Está en la página 1de 19

Farmacia

5-1-2016
Manual Técnico

Alumno: Génesis Molina


Curso: 3° Alic. Infor. “A”
Materia: Base de Datos
Profesor: Edgar Calderón
Índice
Objetivo.....................................................................................................................................1
Objetivos específicos.........................................................................................................1
Requerimientos técnicos......................................................................................................2
Requerimientos mínimos del hardware.........................................................................2
Requerimientos del software............................................................................................2
Instalación.................................................................................................................................2
Desarrollo..................................................................................................................................3
Creación de la base de datos en MySQL.......................................................................3
Objetivo
La creación de dicho documento con el propicito de mostrar cómo fue diseñado el
sistema y al mismo tiempo dar referencia de como interactuar con el programa.

Objetivos específicos

 Guía de instrucción del sistema.


 Mostrar del código fuente para una posible actualización en el futuro.
 Requisitos para ejecutar de dicha aplicación.

Requerimientos técnicos

Software

 Navegador web (Mozilla Firefox) para el manejo de la aplicación.


 Gestor de base de datos (MySQL) para administrar los registros de
almacenamiento.
 Emulador de servidor (wampserver) para el funcionamiento de la base de
datos.
 Una aplicación de desarrollo (PHP Runner) diseño, modificación y
actualización.

Hardware

 Una computadora completa, esta incluye mouse, teclado, CPU y monitor.


 Conexión a internet vía wifi o fibra óptica para un mejor desempeño.

Requerimientos mínimos del hardware

 Procesador Intel inside 1.5 GHz


 Memoria RAM 512 Mb
 Disco duro 64 gb

Requerimientos del software

 Sistema operativo Windows 7,8y10


Instalación

1. Primero que nada ejecutamos el servidor (wampserver) donde su logotipo debe


de mostrarse de color verde en la barra de tareas y/o iconos ocultos.

2. Abrimos el navegador web, escribimos la dirección que es local host para


poder acceder al proyecto y seleccionamos.
Desarrollo

Creación de la base de datos en MySQL.

ACCESO USUARIO
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");

require_once("include/dbcommon.php");
require_once("include/acceso_usuario_variables.php");
require_once('include/xtempl.php');
require_once('classes/addpage.php');
require_once('include/lookuplinks.php');
require_once("classes/searchclause.php");

add_nocache_headers();

InitLookupLinks();

if( !AddPage::processAddPageSecurity( $strTableName ) )


return;

AddPage::handleBrokenRequest();

$layout = new TLayout("add2", "PurificPink", "MobilePink");


$layout->version = 2;
$layout->blocks["top"] = array();
$layout->containers["all"] = array();
$layout->container_properties["all"] = array( );
$layout->containers["all"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"add" );
$layout->containers["add"] = array();
$layout->container_properties["add"] = array( );
$layout->containers["add"][] = array("name"=>"addheader",
"block"=>"addheader", "substyle"=>2 );

$layout->containers["add"][] = array("name"=>"message",
"block"=>"message_block", "substyle"=>1 );

$layout->containers["add"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"fields" );
$layout->containers["fields"] = array();
$layout->container_properties["fields"] = array( );
$layout->containers["fields"][] = array("name"=>"addfields",
"block"=>"", "substyle"=>1 );

$layout->containers["fields"][] = array("name"=>"addbuttons",
"block"=>"addbuttons", "substyle"=>2 );

$layout->skins["fields"] = "fields";

$layout->skins["add"] = "1";

$layout->skins["all"] = "empty";

$layout->blocks["top"][] = "all";
$page_layouts["acceso_usuario_add"] = $layout;

$layout->skinsparams = array();
$layout->skinsparams["empty"] = array("button"=>"button2");
$layout->skinsparams["menu"] = array("button"=>"button1");
$layout->skinsparams["hmenu"] = array("button"=>"button1");
$layout->skinsparams["undermenu"] = array("button"=>"button1");
$layout->skinsparams["fields"] = array("button"=>"button1");
$layout->skinsparams["form"] = array("button"=>"button1");
$layout->skinsparams["1"] = array("button"=>"button1");
$layout->skinsparams["2"] = array("button"=>"button1");
$layout->skinsparams["3"] = array("button"=>"button1");

$pageMode = AddPage::readAddModeFromRequest();

$xt = new Xtempl();

$id = postvalue("id");
$id = intval($id) == 0 ? 1 : $id;

//an array of AddPage constructor's params


$params = array();
$params["id"] = $id;
$params["xt"] = &$xt;
$params["mode"] = $pageMode;
$params["pageType"] = PAGE_ADD;
$params["tName"] = $strTableName;
$params["action"] = postvalue("a");
$params["needSearchClauseObj"] = false;
$params["baseTableName"] = postvalue("table");
$params["afterAdd_id"] = postvalue("afteradd");
$params["masterTable"] = postvalue("mastertable");

if( $pageMode == ADD_INLINE )


{
// Inline add in a 'List page with search' lookup
$params["forListPageWithSearch"] = postvalue('forLookup');
$params["screenWidth"] = postvalue("screenWidth");
$params["screenHeight"] = postvalue("screenHeight");
$params["orientation"] = postvalue("orientation");

$params["masterPageType"] = postvalue("mainMPageType");
}

if( $pageMode == ADD_ONTHEFLY || $pageMode == ADD_INLINE && (postvalue('forLookup')


|| postvalue("category")) )
{
//table where lookup is set
$params["mainTable"] = postvalue("table");
//field with lookup is set
$params["mainField"] = postvalue("field");
//the ptype od the page where lookup is set
$params["mainPageType"] = postvalue("pageType");

//the parent control value


$params["category"] = postvalue("category");
}

if( $pageMode == ADD_DASHBOARD )


{
$params["dashElementName"] = postvalue("dashelement");
$params["dashTName"] = postvalue("table");
}

$pageObject = new AddPage($params);


$pageObject->init();

$pageObject->process();
?>
Canton add
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");

require_once("include/dbcommon.php");
require_once("include/canton_variables.php");
require_once('include/xtempl.php');
require_once('classes/addpage.php');
require_once('include/lookuplinks.php');
require_once("classes/searchclause.php");

add_nocache_headers();

InitLookupLinks();

if( !AddPage::processAddPageSecurity( $strTableName ) )


return;

AddPage::handleBrokenRequest();
$layout = new TLayout("add2", "PurificPink", "MobilePink");
$layout->version = 2;
$layout->blocks["top"] = array();
$layout->containers["all"] = array();
$layout->container_properties["all"] = array( );
$layout->containers["all"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"add" );
$layout->containers["add"] = array();
$layout->container_properties["add"] = array( );
$layout->containers["add"][] = array("name"=>"addheader",
"block"=>"addheader", "substyle"=>2 );

$layout->containers["add"][] = array("name"=>"message",
"block"=>"message_block", "substyle"=>1 );

$layout->containers["add"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"fields" );
$layout->containers["fields"] = array();
$layout->container_properties["fields"] = array( );
$layout->containers["fields"][] = array("name"=>"addfields",
"block"=>"", "substyle"=>1 );

$layout->containers["fields"][] = array("name"=>"addbuttons",
"block"=>"addbuttons", "substyle"=>2 );

$layout->skins["fields"] = "fields";

$layout->skins["add"] = "1";

$layout->skins["all"] = "empty";

$layout->blocks["top"][] = "all";
$page_layouts["canton_add"] = $layout;

$layout->skinsparams = array();
$layout->skinsparams["empty"] = array("button"=>"button2");
$layout->skinsparams["menu"] = array("button"=>"button1");
$layout->skinsparams["hmenu"] = array("button"=>"button1");
$layout->skinsparams["undermenu"] = array("button"=>"button1");
$layout->skinsparams["fields"] = array("button"=>"button1");
$layout->skinsparams["form"] = array("button"=>"button1");
$layout->skinsparams["1"] = array("button"=>"button1");
$layout->skinsparams["2"] = array("button"=>"button1");
$layout->skinsparams["3"] = array("button"=>"button1");

$pageMode = AddPage::readAddModeFromRequest();
$xt = new Xtempl();

$id = postvalue("id");
$id = intval($id) == 0 ? 1 : $id;

//an array of AddPage constructor's params


$params = array();
$params["id"] = $id;
$params["xt"] = &$xt;
$params["mode"] = $pageMode;
$params["pageType"] = PAGE_ADD;
$params["tName"] = $strTableName;
$params["action"] = postvalue("a");
$params["needSearchClauseObj"] = false;
$params["baseTableName"] = postvalue("table");
$params["afterAdd_id"] = postvalue("afteradd");
$params["masterTable"] = postvalue("mastertable");

if( $pageMode == ADD_INLINE )


{
// Inline add in a 'List page with search' lookup
$params["forListPageWithSearch"] = postvalue('forLookup');

$params["screenWidth"] = postvalue("screenWidth");
$params["screenHeight"] = postvalue("screenHeight");
$params["orientation"] = postvalue("orientation");

$params["masterPageType"] = postvalue("mainMPageType");
}

if( $pageMode == ADD_ONTHEFLY || $pageMode == ADD_INLINE && (postvalue('forLookup')


|| postvalue("category")) )
{
//table where lookup is set
$params["mainTable"] = postvalue("table");
//field with lookup is set
$params["mainField"] = postvalue("field");
//the ptype od the page where lookup is set
$params["mainPageType"] = postvalue("pageType");

//the parent control value


$params["category"] = postvalue("category");
}

if( $pageMode == ADD_DASHBOARD )


{
$params["dashElementName"] = postvalue("dashelement");
$params["dashTName"] = postvalue("table");
}

$pageObject = new AddPage($params);


$pageObject->init();

$pageObject->process();
?>
Cliente add
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");

require_once("include/dbcommon.php");
require_once("include/cliente_variables.php");
require_once('include/xtempl.php');
require_once('classes/addpage.php');
require_once('include/lookuplinks.php');
require_once("classes/searchclause.php");

add_nocache_headers();

InitLookupLinks();

if( !AddPage::processAddPageSecurity( $strTableName ) )


return;

AddPage::handleBrokenRequest();

$layout = new TLayout("add2", "PurificPink", "MobilePink");


$layout->version = 2;
$layout->blocks["top"] = array();
$layout->containers["all"] = array();
$layout->container_properties["all"] = array( );
$layout->containers["all"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"add" );
$layout->containers["add"] = array();
$layout->container_properties["add"] = array( );
$layout->containers["add"][] = array("name"=>"addheader",
"block"=>"addheader", "substyle"=>2 );

$layout->containers["add"][] = array("name"=>"message",
"block"=>"message_block", "substyle"=>1 );

$layout->containers["add"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"fields" );
$layout->containers["fields"] = array();
$layout->container_properties["fields"] = array( );
$layout->containers["fields"][] = array("name"=>"addfields",
"block"=>"", "substyle"=>1 );

$layout->containers["fields"][] = array("name"=>"addbuttons",
"block"=>"addbuttons", "substyle"=>2 );

$layout->skins["fields"] = "fields";

$layout->skins["add"] = "1";
$layout->skins["all"] = "empty";

$layout->blocks["top"][] = "all";
$page_layouts["cliente_add"] = $layout;

$layout->skinsparams = array();
$layout->skinsparams["empty"] = array("button"=>"button2");
$layout->skinsparams["menu"] = array("button"=>"button1");
$layout->skinsparams["hmenu"] = array("button"=>"button1");
$layout->skinsparams["undermenu"] = array("button"=>"button1");
$layout->skinsparams["fields"] = array("button"=>"button1");
$layout->skinsparams["form"] = array("button"=>"button1");
$layout->skinsparams["1"] = array("button"=>"button1");
$layout->skinsparams["2"] = array("button"=>"button1");
$layout->skinsparams["3"] = array("button"=>"button1");

$pageMode = AddPage::readAddModeFromRequest();

$xt = new Xtempl();

$id = postvalue("id");
$id = intval($id) == 0 ? 1 : $id;

//an array of AddPage constructor's params


$params = array();
$params["id"] = $id;
$params["xt"] = &$xt;
$params["mode"] = $pageMode;
$params["pageType"] = PAGE_ADD;
$params["tName"] = $strTableName;
$params["action"] = postvalue("a");
$params["needSearchClauseObj"] = false;
$params["baseTableName"] = postvalue("table");
$params["afterAdd_id"] = postvalue("afteradd");
$params["masterTable"] = postvalue("mastertable");

if( $pageMode == ADD_INLINE )


{
// Inline add in a 'List page with search' lookup
$params["forListPageWithSearch"] = postvalue('forLookup');

$params["screenWidth"] = postvalue("screenWidth");
$params["screenHeight"] = postvalue("screenHeight");
$params["orientation"] = postvalue("orientation");

$params["masterPageType"] = postvalue("mainMPageType");
}

if( $pageMode == ADD_ONTHEFLY || $pageMode == ADD_INLINE && (postvalue('forLookup')


|| postvalue("category")) )
{
//table where lookup is set
$params["mainTable"] = postvalue("table");
//field with lookup is set
$params["mainField"] = postvalue("field");
//the ptype od the page where lookup is set
$params["mainPageType"] = postvalue("pageType");

//the parent control value


$params["category"] = postvalue("category");
}

if( $pageMode == ADD_DASHBOARD )


{
$params["dashElementName"] = postvalue("dashelement");
$params["dashTName"] = postvalue("table");
}

$pageObject = new AddPage($params);


$pageObject->init();

$pageObject->process();
?>
Egreso medicina add
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");

require_once("include/dbcommon.php");
require_once("include/egreso_medicina_variables.php");
require_once('include/xtempl.php');
require_once('classes/addpage.php');
require_once('include/lookuplinks.php');
require_once("classes/searchclause.php");

add_nocache_headers();

InitLookupLinks();

if( !AddPage::processAddPageSecurity( $strTableName ) )


return;

AddPage::handleBrokenRequest();

$layout = new TLayout("add2", "PurificPink", "MobilePink");


$layout->version = 2;
$layout->blocks["top"] = array();
$layout->containers["all"] = array();
$layout->container_properties["all"] = array( );
$layout->containers["all"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"add" );
$layout->containers["add"] = array();
$layout->container_properties["add"] = array( );
$layout->containers["add"][] = array("name"=>"addheader",
"block"=>"addheader", "substyle"=>2 );

$layout->containers["add"][] = array("name"=>"message",
"block"=>"message_block", "substyle"=>1 );

$layout->containers["add"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"fields" );
$layout->containers["fields"] = array();
$layout->container_properties["fields"] = array( );
$layout->containers["fields"][] = array("name"=>"addfields",
"block"=>"", "substyle"=>1 );

$layout->containers["fields"][] = array("name"=>"addbuttons",
"block"=>"addbuttons", "substyle"=>2 );

$layout->skins["fields"] = "fields";

$layout->skins["add"] = "1";

$layout->skins["all"] = "empty";

$layout->blocks["top"][] = "all";
$page_layouts["egreso_medicina_add"] = $layout;

$layout->skinsparams = array();
$layout->skinsparams["empty"] = array("button"=>"button2");
$layout->skinsparams["menu"] = array("button"=>"button1");
$layout->skinsparams["hmenu"] = array("button"=>"button1");
$layout->skinsparams["undermenu"] = array("button"=>"button1");
$layout->skinsparams["fields"] = array("button"=>"button1");
$layout->skinsparams["form"] = array("button"=>"button1");
$layout->skinsparams["1"] = array("button"=>"button1");
$layout->skinsparams["2"] = array("button"=>"button1");
$layout->skinsparams["3"] = array("button"=>"button1");

$pageMode = AddPage::readAddModeFromRequest();

$xt = new Xtempl();

$id = postvalue("id");
$id = intval($id) == 0 ? 1 : $id;

//an array of AddPage constructor's params


$params = array();
$params["id"] = $id;
$params["xt"] = &$xt;
$params["mode"] = $pageMode;
$params["pageType"] = PAGE_ADD;
$params["tName"] = $strTableName;
$params["action"] = postvalue("a");
$params["needSearchClauseObj"] = false;
$params["baseTableName"] = postvalue("table");
$params["afterAdd_id"] = postvalue("afteradd");
$params["masterTable"] = postvalue("mastertable");

if( $pageMode == ADD_INLINE )


{
// Inline add in a 'List page with search' lookup
$params["forListPageWithSearch"] = postvalue('forLookup');

$params["screenWidth"] = postvalue("screenWidth");
$params["screenHeight"] = postvalue("screenHeight");
$params["orientation"] = postvalue("orientation");

$params["masterPageType"] = postvalue("mainMPageType");
}

if( $pageMode == ADD_ONTHEFLY || $pageMode == ADD_INLINE && (postvalue('forLookup')


|| postvalue("category")) )
{
//table where lookup is set
$params["mainTable"] = postvalue("table");
//field with lookup is set
$params["mainField"] = postvalue("field");
//the ptype od the page where lookup is set
$params["mainPageType"] = postvalue("pageType");

//the parent control value


$params["category"] = postvalue("category");
}

if( $pageMode == ADD_DASHBOARD )


{
$params["dashElementName"] = postvalue("dashelement");
$params["dashTName"] = postvalue("table");
}

$pageObject = new AddPage($params);


$pageObject->init();

$pageObject->process();
?>
Medicina add
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");

require_once("include/dbcommon.php");
require_once("include/medicina_variables.php");
require_once('include/xtempl.php');
require_once('classes/addpage.php');
require_once('include/lookuplinks.php');
require_once("classes/searchclause.php");

add_nocache_headers();
InitLookupLinks();

if( !AddPage::processAddPageSecurity( $strTableName ) )


return;

AddPage::handleBrokenRequest();

$layout = new TLayout("add2", "PurificPink", "MobilePink");


$layout->version = 2;
$layout->blocks["top"] = array();
$layout->containers["all"] = array();
$layout->container_properties["all"] = array( );
$layout->containers["all"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"add" );
$layout->containers["add"] = array();
$layout->container_properties["add"] = array( );
$layout->containers["add"][] = array("name"=>"addheader",
"block"=>"addheader", "substyle"=>2 );

$layout->containers["add"][] = array("name"=>"message",
"block"=>"message_block", "substyle"=>1 );

$layout->containers["add"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"fields" );
$layout->containers["fields"] = array();
$layout->container_properties["fields"] = array( );
$layout->containers["fields"][] = array("name"=>"addfields",
"block"=>"", "substyle"=>1 );

$layout->containers["fields"][] = array("name"=>"addbuttons",
"block"=>"addbuttons", "substyle"=>2 );

$layout->skins["fields"] = "fields";

$layout->skins["add"] = "1";

$layout->skins["all"] = "empty";

$layout->blocks["top"][] = "all";
$page_layouts["medicina_add"] = $layout;

$layout->skinsparams = array();
$layout->skinsparams["empty"] = array("button"=>"button2");
$layout->skinsparams["menu"] = array("button"=>"button1");
$layout->skinsparams["hmenu"] = array("button"=>"button1");
$layout->skinsparams["undermenu"] = array("button"=>"button1");
$layout->skinsparams["fields"] = array("button"=>"button1");
$layout->skinsparams["form"] = array("button"=>"button1");
$layout->skinsparams["1"] = array("button"=>"button1");
$layout->skinsparams["2"] = array("button"=>"button1");
$layout->skinsparams["3"] = array("button"=>"button1");
$pageMode = AddPage::readAddModeFromRequest();

$xt = new Xtempl();

$id = postvalue("id");
$id = intval($id) == 0 ? 1 : $id;

//an array of AddPage constructor's params


$params = array();
$params["id"] = $id;
$params["xt"] = &$xt;
$params["mode"] = $pageMode;
$params["pageType"] = PAGE_ADD;
$params["tName"] = $strTableName;
$params["action"] = postvalue("a");
$params["needSearchClauseObj"] = false;
$params["baseTableName"] = postvalue("table");
$params["afterAdd_id"] = postvalue("afteradd");
$params["masterTable"] = postvalue("mastertable");

if( $pageMode == ADD_INLINE )


{
// Inline add in a 'List page with search' lookup
$params["forListPageWithSearch"] = postvalue('forLookup');

$params["screenWidth"] = postvalue("screenWidth");
$params["screenHeight"] = postvalue("screenHeight");
$params["orientation"] = postvalue("orientation");

$params["masterPageType"] = postvalue("mainMPageType");
}

if( $pageMode == ADD_ONTHEFLY || $pageMode == ADD_INLINE && (postvalue('forLookup')


|| postvalue("category")) )
{
//table where lookup is set
$params["mainTable"] = postvalue("table");
//field with lookup is set
$params["mainField"] = postvalue("field");
//the ptype od the page where lookup is set
$params["mainPageType"] = postvalue("pageType");

//the parent control value


$params["category"] = postvalue("category");
}
if( $pageMode == ADD_DASHBOARD )
{
$params["dashElementName"] = postvalue("dashelement");
$params["dashTName"] = postvalue("table");
}

$pageObject = new AddPage($params);


$pageObject->init();

$pageObject->process();
?>
Vendedor add
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");

require_once("include/dbcommon.php");
require_once("include/vendedor_variables.php");
require_once('include/xtempl.php');
require_once('classes/addpage.php');
require_once('include/lookuplinks.php');
require_once("classes/searchclause.php");

add_nocache_headers();

InitLookupLinks();

if( !AddPage::processAddPageSecurity( $strTableName ) )


return;

AddPage::handleBrokenRequest();

$layout = new TLayout("add2", "PurificPink", "MobilePink");


$layout->version = 2;
$layout->blocks["top"] = array();
$layout->containers["all"] = array();
$layout->container_properties["all"] = array( );
$layout->containers["all"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"add" );
$layout->containers["add"] = array();
$layout->container_properties["add"] = array( );
$layout->containers["add"][] = array("name"=>"addheader",
"block"=>"addheader", "substyle"=>2 );

$layout->containers["add"][] = array("name"=>"message",
"block"=>"message_block", "substyle"=>1 );

$layout->containers["add"][] = array("name"=>"wrapper",
"block"=>"", "substyle"=>1 , "container"=>"fields" );
$layout->containers["fields"] = array();
$layout->container_properties["fields"] = array( );
$layout->containers["fields"][] = array("name"=>"addfields",
"block"=>"", "substyle"=>1 );
$layout->containers["fields"][] = array("name"=>"addbuttons",
"block"=>"addbuttons", "substyle"=>2 );

$layout->skins["fields"] = "fields";

$layout->skins["add"] = "1";

$layout->skins["all"] = "empty";

$layout->blocks["top"][] = "all";
$page_layouts["vendedor_add"] = $layout;

$layout->skinsparams = array();
$layout->skinsparams["empty"] = array("button"=>"button2");
$layout->skinsparams["menu"] = array("button"=>"button1");
$layout->skinsparams["hmenu"] = array("button"=>"button1");
$layout->skinsparams["undermenu"] = array("button"=>"button1");
$layout->skinsparams["fields"] = array("button"=>"button1");
$layout->skinsparams["form"] = array("button"=>"button1");
$layout->skinsparams["1"] = array("button"=>"button1");
$layout->skinsparams["2"] = array("button"=>"button1");
$layout->skinsparams["3"] = array("button"=>"button1");

$pageMode = AddPage::readAddModeFromRequest();

$xt = new Xtempl();

$id = postvalue("id");
$id = intval($id) == 0 ? 1 : $id;

//an array of AddPage constructor's params


$params = array();
$params["id"] = $id;
$params["xt"] = &$xt;
$params["mode"] = $pageMode;
$params["pageType"] = PAGE_ADD;
$params["tName"] = $strTableName;
$params["action"] = postvalue("a");
$params["needSearchClauseObj"] = false;
$params["baseTableName"] = postvalue("table");
$params["afterAdd_id"] = postvalue("afteradd");
$params["masterTable"] = postvalue("mastertable");

if( $pageMode == ADD_INLINE )


{
// Inline add in a 'List page with search' lookup
$params["forListPageWithSearch"] = postvalue('forLookup');

$params["screenWidth"] = postvalue("screenWidth");
$params["screenHeight"] = postvalue("screenHeight");
$params["orientation"] = postvalue("orientation");

$params["masterPageType"] = postvalue("mainMPageType");
}

if( $pageMode == ADD_ONTHEFLY || $pageMode == ADD_INLINE && (postvalue('forLookup')


|| postvalue("category")) )
{
//table where lookup is set
$params["mainTable"] = postvalue("table");
//field with lookup is set
$params["mainField"] = postvalue("field");
//the ptype od the page where lookup is set
$params["mainPageType"] = postvalue("pageType");

//the parent control value


$params["category"] = postvalue("category");
}

if( $pageMode == ADD_DASHBOARD )


{
$params["dashElementName"] = postvalue("dashelement");
$params["dashTName"] = postvalue("table");
}

$pageObject = new AddPage($params);


$pageObject->init();

$pageObject->process();
?>