version = 3; $layout->bootstrapTheme = "cerulean"; $layout->customCssPageName = "sicex_empresas_edit"; $layout->blocks["top"] = array(); $layout->containers["editpage"] = array(); $layout->container_properties["editpage"] = array( ); $layout->containers["editpage"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"header" ); $layout->containers["header"] = array(); $layout->container_properties["header"] = array( ); $layout->containers["header"][] = array("name"=>"editheader", "block"=>"editheader", "substyle"=>1 ); $layout->skins["header"] = ""; $layout->containers["editpage"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"message" ); $layout->containers["message"] = array(); $layout->container_properties["message"] = array( ); $layout->containers["message"][] = array("name"=>"message", "block"=>"message_block", "substyle"=>1 ); $layout->skins["message"] = ""; $layout->skins["editpage"] = ""; $layout->blocks["top"][] = "editpage"; $layout->containers["fields"] = array(); $layout->container_properties["fields"] = array( ); $layout->containers["fields"][] = array("name"=>"editfields", "block"=>"", "substyle"=>1 ); $layout->skins["fields"] = ""; $layout->blocks["top"][] = "fields"; $layout->containers["bottombuttons"] = array(); $layout->container_properties["bottombuttons"] = array( ); $layout->containers["bottombuttons"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"buttons" ); $layout->containers["buttons"] = array(); $layout->container_properties["buttons"] = array( ); $layout->containers["buttons"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"leftbuttons" ); $layout->containers["leftbuttons"] = array(); $layout->container_properties["leftbuttons"] = array( ); $layout->containers["leftbuttons"][] = array("name"=>"editbuttons", "block"=>"editbuttons", "substyle"=>1 ); $layout->skins["leftbuttons"] = ""; $layout->containers["buttons"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"leftbuttons_1" ); $layout->containers["leftbuttons_1"] = array(); $layout->container_properties["leftbuttons_1"] = array( ); $layout->containers["leftbuttons_1"][] = array("name"=>"righteditbuttons", "block"=>"righteditbuttons", "substyle"=>1 ); $layout->skins["leftbuttons_1"] = ""; $layout->skins["buttons"] = ""; $layout->skins["bottombuttons"] = ""; $layout->blocks["top"][] = "bottombuttons"; $page_layouts["sicex_empresas_edit"] = $layout; $layout = new TLayout("list_bootstrap1", "OfficeGreen", "MobileGreen"); $layout->version = 3; $layout->bootstrapTheme = "cerulean"; $layout->customCssPageName = "sicex_empresas_list"; $layout->blocks["center"] = array(); $layout->containers["messagerow"] = array(); $layout->container_properties["messagerow"] = array( ); $layout->containers["messagerow"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"message" ); $layout->containers["message"] = array(); $layout->container_properties["message"] = array( ); $layout->containers["message"][] = array("name"=>"message", "block"=>"message_block", "substyle"=>1 ); $layout->skins["message"] = ""; $layout->skins["messagerow"] = ""; $layout->blocks["center"][] = "messagerow"; $layout->containers["gridcontrols"] = array(); $layout->container_properties["gridcontrols"] = array( ); $layout->containers["gridcontrols"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"add_delete" ); $layout->containers["add_delete"] = array(); $layout->container_properties["add_delete"] = array( ); $layout->containers["add_delete"][] = array("name"=>"add", "block"=>"newrecord_controls_block", "substyle"=>1 ); $layout->containers["add_delete"][] = array("name"=>"recordcontrol", "block"=>"record_controls_block", "substyle"=>1 ); $layout->skins["add_delete"] = ""; $layout->containers["gridcontrols"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"gridinfo" ); $layout->containers["gridinfo"] = array(); $layout->container_properties["gridinfo"] = array( ); $layout->containers["gridinfo"][] = array("name"=>"details_found", "block"=>"details_found", "substyle"=>1 ); $layout->containers["gridinfo"][] = array("name"=>"printpanel", "block"=>"print_friendly", "substyle"=>1 ); $layout->skins["gridinfo"] = ""; $layout->skins["gridcontrols"] = ""; $layout->blocks["center"][] = "gridcontrols"; $layout->containers["center"] = array(); $layout->container_properties["center"] = array( ); $layout->containers["center"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"grid" ); $layout->containers["grid"] = array(); $layout->container_properties["grid"] = array( ); $layout->containers["grid"][] = array("name"=>"grid", "block"=>"grid_block", "substyle"=>1 ); $layout->skins["grid"] = ""; $layout->skins["center"] = ""; $layout->blocks["center"][] = "center"; $layout->containers["pagination"] = array(); $layout->container_properties["pagination"] = array( ); $layout->containers["pagination"][] = array("name"=>"pagination", "block"=>"pagination_block", "substyle"=>1 ); $layout->skins["pagination"] = ""; $layout->blocks["center"][] = "pagination"; $layout->blocks["left"] = array(); $layout->containers["left"] = array(); $layout->container_properties["left"] = array( ); $layout->containers["left"][] = array("name"=>"searchpanel", "block"=>"searchPanel", "substyle"=>1 ); $layout->skins["left"] = ""; $layout->blocks["left"][] = "left"; $layout->blocks["top"] = array(); $layout->containers["menu"] = array(); $layout->container_properties["menu"] = array( ); $layout->containers["menu"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"hdr" ); $layout->containers["hdr"] = array(); $layout->container_properties["hdr"] = array( ); $layout->containers["hdr"][] = array("name"=>"logo", "block"=>"logo_block", "substyle"=>1 ); $layout->containers["hdr"][] = array("name"=>"bsnavbarcollapse", "block"=>"collapse_block", "substyle"=>1 ); $layout->skins["hdr"] = ""; $layout->containers["menu"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"menu_1" ); $layout->containers["menu_1"] = array(); $layout->container_properties["menu_1"] = array( ); $layout->containers["menu_1"][] = array("name"=>"hmenu", "block"=>"menu_block", "substyle"=>1 ); $layout->containers["menu_1"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"more" ); $layout->containers["more"] = array(); $layout->container_properties["more"] = array( ); $layout->containers["more"][] = array("name"=>"morebutton", "block"=>"more_list", "substyle"=>1 ); $layout->skins["more"] = ""; $layout->containers["menu_1"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"more_1" ); $layout->containers["more_1"] = array(); $layout->container_properties["more_1"] = array( ); $layout->containers["more_1"][] = array("name"=>"search", "block"=>"searchform_block", "substyle"=>1 ); $layout->skins["more_1"] = ""; $layout->skins["menu_1"] = ""; $layout->skins["menu"] = ""; $layout->blocks["top"][] = "menu"; $layout->blocks["topmiddle"] = array(); $layout->containers["breadcrumbs"] = array(); $layout->container_properties["breadcrumbs"] = array( ); $layout->containers["breadcrumbs"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"bc" ); $layout->containers["bc"] = array(); $layout->container_properties["bc"] = array( ); $layout->containers["bc"][] = array("name"=>"breadcrumbs", "block"=>"breadcrumbs", "substyle"=>1 ); $layout->skins["bc"] = ""; $layout->skins["breadcrumbs"] = ""; $layout->blocks["topmiddle"][] = "breadcrumbs"; $layout->skins["masterinfo"] = ""; $layout->blocks["topmiddle"][] = "masterinfo"; $page_layouts["sicex_empresas_list"] = $layout; // add master layouts $layout = new TLayout("list_bootstrap1", "OfficeGreen", "MobileGreen"); $layout->version = 3; $layout->bootstrapTheme = "cerulean"; $layout->customCssPageName = "sicex_dofa_list"; $layout->blocks["center"] = array(); $layout->containers["messagerow"] = array(); $layout->container_properties["messagerow"] = array( ); $layout->containers["messagerow"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"message" ); $layout->containers["message"] = array(); $layout->container_properties["message"] = array( ); $layout->containers["message"][] = array("name"=>"message", "block"=>"message_block", "substyle"=>1 ); $layout->skins["message"] = ""; $layout->skins["messagerow"] = ""; $layout->blocks["center"][] = "messagerow"; $layout->containers["gridcontrols"] = array(); $layout->container_properties["gridcontrols"] = array( ); $layout->containers["gridcontrols"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"add_delete" ); $layout->containers["add_delete"] = array(); $layout->container_properties["add_delete"] = array( ); $layout->containers["add_delete"][] = array("name"=>"add", "block"=>"newrecord_controls_block", "substyle"=>1 ); $layout->containers["add_delete"][] = array("name"=>"recordcontrol", "block"=>"record_controls_block", "substyle"=>1 ); $layout->skins["add_delete"] = ""; $layout->containers["gridcontrols"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"gridinfo" ); $layout->containers["gridinfo"] = array(); $layout->container_properties["gridinfo"] = array( ); $layout->containers["gridinfo"][] = array("name"=>"details_found", "block"=>"details_found", "substyle"=>1 ); $layout->skins["gridinfo"] = ""; $layout->skins["gridcontrols"] = ""; $layout->blocks["center"][] = "gridcontrols"; $layout->containers["center"] = array(); $layout->container_properties["center"] = array( ); $layout->containers["center"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"grid" ); $layout->containers["grid"] = array(); $layout->container_properties["grid"] = array( ); $layout->containers["grid"][] = array("name"=>"grid", "block"=>"grid_block", "substyle"=>1 ); $layout->skins["grid"] = ""; $layout->skins["center"] = ""; $layout->blocks["center"][] = "center"; $layout->containers["pagination"] = array(); $layout->container_properties["pagination"] = array( ); $layout->containers["pagination"][] = array("name"=>"pagination", "block"=>"pagination_block", "substyle"=>1 ); $layout->skins["pagination"] = ""; $layout->blocks["center"][] = "pagination"; $layout->blocks["left"] = array(); $layout->containers["left"] = array(); $layout->container_properties["left"] = array( ); $layout->containers["left"][] = array("name"=>"searchpanel", "block"=>"searchPanel", "substyle"=>1 ); $layout->skins["left"] = ""; $layout->blocks["left"][] = "left"; $layout->blocks["top"] = array(); $layout->containers["menu"] = array(); $layout->container_properties["menu"] = array( ); $layout->containers["menu"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"hdr" ); $layout->containers["hdr"] = array(); $layout->container_properties["hdr"] = array( ); $layout->containers["hdr"][] = array("name"=>"logo", "block"=>"logo_block", "substyle"=>1 ); $layout->containers["hdr"][] = array("name"=>"bsnavbarcollapse", "block"=>"collapse_block", "substyle"=>1 ); $layout->skins["hdr"] = ""; $layout->containers["menu"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"menu_1" ); $layout->containers["menu_1"] = array(); $layout->container_properties["menu_1"] = array( ); $layout->containers["menu_1"][] = array("name"=>"hmenu", "block"=>"menu_block", "substyle"=>1 ); $layout->containers["menu_1"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"more" ); $layout->containers["more"] = array(); $layout->container_properties["more"] = array( ); $layout->containers["more"][] = array("name"=>"morebutton", "block"=>"more_list", "substyle"=>1 ); $layout->skins["more"] = ""; $layout->containers["menu_1"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"more_1" ); $layout->containers["more_1"] = array(); $layout->container_properties["more_1"] = array( ); $layout->containers["more_1"][] = array("name"=>"search", "block"=>"searchform_block", "substyle"=>1 ); $layout->skins["more_1"] = ""; $layout->skins["menu_1"] = ""; $layout->skins["menu"] = ""; $layout->blocks["top"][] = "menu"; $layout->blocks["topmiddle"] = array(); $layout->containers["breadcrumbs"] = array(); $layout->container_properties["breadcrumbs"] = array( ); $layout->containers["breadcrumbs"][] = array("name"=>"wrapper", "block"=>"", "substyle"=>1 , "container"=>"bc" ); $layout->containers["bc"] = array(); $layout->container_properties["bc"] = array( ); $layout->containers["bc"][] = array("name"=>"breadcrumbs", "block"=>"breadcrumbs", "substyle"=>1 ); $layout->skins["bc"] = ""; $layout->skins["breadcrumbs"] = ""; $layout->blocks["topmiddle"][] = "breadcrumbs"; $layout->containers["masterinfo"] = array(); $layout->container_properties["masterinfo"] = array( ); $layout->containers["masterinfo"][] = array("name"=>"masterinfo", "block"=>"mastertable_block", "substyle"=>1 ); $layout->skins["masterinfo"] = ""; $layout->blocks["topmiddle"][] = "masterinfo"; $page_layouts["sicex_dofa_list"] = $layout; // parse control parameters $pageMode = EditPage::readEditModeFromRequest(); $xt = new Xtempl(); $id = postvalue("id"); $id = intval($id) == 0 ? 1 : $id; // $keys could not be set properly if editid params were no passed $keys = array(); $keys["user_id_fk"] = postvalue("editid1"); //array of params for classes $params = array(); $params["id"] = $id; $params["xt"] = &$xt; $params["keys"] = $keys; $params["mode"] = $pageMode; $params["pageType"] = PAGE_EDIT; $params["tName"] = $strTableName; $params["action"] = postvalue("a"); $params["selectedFields"] = postvalue("fields"); ; $params["captchaValue"] = postvalue("value_captcha_" . $id); $params["selection"] = postvalue("selection"); $params["rowIds"] = my_json_decode( postvalue("rowIds") ); $params["masterTable"] = postvalue("mastertable"); // locking parameters $params["lockingAction"] = postvalue("action"); $params["lockingSid"] = postvalue("sid"); $params["lockingKeys"] = postvalue("keys"); $params["lockingStart"] = postvalue("startEdit"); if( $pageMode == EDIT_INLINE ) { $params["screenWidth"] = postvalue("screenWidth"); $params["screenHeight"] = postvalue("screenHeight"); $params["orientation"] = postvalue("orientation"); } if( $pageMode == EDIT_DASHBOARD ) { $params["dashElementName"] = postvalue("dashelement"); $params["dashTName"] = postvalue("table"); if( postvalue("mapRefresh") ) { $params["mapRefresh"] = true; $params["vpCoordinates"] = my_json_decode( postvalue("vpCoordinates") ); } } if(( $pageMode == EDIT_POPUP || $pageMode == EDIT_INLINE ) && postvalue("dashTName")) { $params["dashTName"] = postvalue("dashTName"); $params["dashElementName"] = postvalue("dashelement"); } if( $params["masterTable"] ) { $params["masterKeysReq"] = EditPage::processMasterKeys(); } $pageObject = EditPage::EditPageFactory($params); if( $pageObject->isLockingRequest() ) { $pageObject->doLockingAction(); exit(); } $pageObject->init(); $pageObject->process(); ?>