当前位置: 首页>>代码示例>>PHP>>正文


PHP isEnableSection508函数代码示例

本文整理汇总了PHP中isEnableSection508函数的典型用法代码示例。如果您正苦于以下问题:PHP isEnableSection508函数的具体用法?PHP isEnableSection508怎么用?PHP isEnableSection508使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了isEnableSection508函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: EditControl

 function EditControl($field, $pageObject, $id)
 {
     $this->field = $field;
     $this->goodFieldName = GoodFieldName($field);
     $this->setID($id);
     $this->pageObject = $pageObject;
     $this->is508 = isEnableSection508();
     $this->strLabel = $pageObject->pSetEdit->label($field);
     $this->type = $pageObject->pSetEdit->getFieldType($this->field);
     $this->like = "ilike";
     $this->searchOptions[CONTAINS] = "Contains";
     $this->searchOptions[EQUALS] = "Equals";
     $this->searchOptions[STARTS_WITH] = "Starts with";
     $this->searchOptions[MORE_THAN] = "More than";
     $this->searchOptions[LESS_THAN] = "Less than";
     $this->searchOptions[BETWEEN] = "Between";
     $this->searchOptions[EMPTY_SEARCH] = "Empty";
     $this->searchOptions[NOT_CONTAINS] = "Doesn't contain";
     $this->searchOptions[NOT_EQUALS] = "Doesn't equal";
     $this->searchOptions[NOT_STARTS_WITH] = "Doesn't start with";
     $this->searchOptions[NOT_MORE_THAN] = "Is not more than";
     $this->searchOptions[NOT_LESS_THAN] = "Is not less than";
     $this->searchOptions[NOT_BETWEEN] = "Is not between";
     $this->searchOptions[NOT_EMPTY] = "Is not empty";
     $this->init();
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:26,代码来源:Control.php

示例2: ViewControl

 public function ViewControl($field, $container, $pageObject = null)
 {
     $this->field = $field;
     $this->container = $container;
     $this->pageObject = $pageObject;
     $this->is508 = isEnableSection508();
     $this->fieldType = $this->container->pSet->getFieldType($this->field);
     $this->viewFormat = $this->container->pSet->getViewFormat($this->field);
     $this->editFormat = $this->container->pSet->getEditFormat($this->field);
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:10,代码来源:ViewControl.php

示例3: prepareFields

 protected function prepareFields()
 {
     foreach ($this->pSet->getDashboardSearchFields() as $f => $fdata) {
         $field = $fdata[0]["field"];
         $table = $fdata[0]["table"];
         $fSet = $this->getTableSettings($table);
         $lookupTable = $fSet->getLookupTable($field);
         if ($lookupTable) {
             $this->settingsMap["globalSettings"]['shortTNames'][$lookupTable] = GetTableURL($lookupTable);
         }
         $this->fillFieldToolTips($f);
         $srchFields = $this->searchClauseObj->getSearchCtrlParams($f);
         $firstFieldParams = array();
         if (count($srchFields)) {
             $firstFieldParams = $srchFields[0];
         } else {
             $firstFieldParams['fName'] = $f;
             $firstFieldParams['eType'] = '';
             $firstFieldParams['value1'] = $fSet->getDefaultValue($field, $table);
             $firstFieldParams['opt'] = '';
             $firstFieldParams['value2'] = '';
             $firstFieldParams['not'] = false;
         }
         // create control
         $ctrlBlockArr = $this->searchControlBuilder->buildSearchCtrlBlockArr($this->id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
         if ($firstFieldParams['opt'] == "") {
             $firstFieldParams['opt'] = $this->pSet->getDefaultSearchOption($firstFieldParams['fName']);
         }
         $srchTypeFull = $this->searchControlBuilder->getCtrlSearchType($firstFieldParams['fName'], $this->id, 0, $firstFieldParams['opt'], $firstFieldParams['not'], true, true);
         if (isEnableSection508()) {
             $this->xt->assign_section($f . "_label", "<label for=\"" . $this->getInputElementId($field, $fSet) . "\">", "</label>");
         } else {
             $this->xt->assign($f . "_label", true);
         }
         $this->xt->assign($f . "_fieldblock", true);
         $this->xt->assignbyref($f . "_editcontrol", $ctrlBlockArr['searchcontrol']);
         $this->xt->assign($f . "_notbox", $ctrlBlockArr['notbox']);
         // create second control, if need it
         $this->xt->assignbyref($f . "_editcontrol1", $ctrlBlockArr['searchcontrol1']);
         // create search type select
         $this->xt->assign("searchtype_" . $f, $ctrlBlockArr['searchtype']);
         $this->xt->assign("searchtypefull_" . $f, $srchTypeFull);
         $isFieldNeedSecCtrl = $this->searchControlBuilder->isNeedSecondCtrl($f);
         $ctrlInd = 0;
         if ($isFieldNeedSecCtrl) {
             $this->controlsMap["search"]["searchBlocks"][] = array('fName' => $f, 'recId' => $this->id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
             $ctrlInd += 2;
         } else {
             $this->controlsMap["search"]["searchBlocks"][] = array('fName' => $f, 'recId' => $this->id, 'ctrlsMap' => array(0 => $ctrlInd));
             $ctrlInd++;
         }
     }
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:53,代码来源:searchpage_dash.php

示例4: RightsPage

 /**
  * Contructor
  *
  * @param array $params
  * @return RightsPage
  */
 function RightsPage(&$params)
 {
     $this->cbxNames = array('add' => array('mask' => 'A', 'rightName' => 'add'), 'edt' => array('mask' => 'E', 'rightName' => 'edit'), 'del' => array('mask' => 'D', 'rightName' => 'delete'), 'lst' => array('mask' => 'S', 'rightName' => 'list'), 'exp' => array('mask' => 'P', 'rightName' => 'export'), 'imp' => array('mask' => 'I', 'rightName' => 'import'), 'adm' => array('mask' => 'M'));
     // copy properties to object
     //RunnerApply($this, $params);
     parent::RunnerPage($params);
     //fill session variables
     $this->setSessionVariables();
     // Set language params, if have more than one language
     $this->setLangParams();
     // get permissions
     $this->permis[$this->tName] = $this->getPermissions();
     $this->is508 = isEnableSection508();
     $this->DPOrderTables($this->nonAdminTablesArr);
     $this->fillGroupsArr();
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:22,代码来源:rightspage.php

示例5: showDBValue

 public function showDBValue(&$data, $keylink)
 {
     $result = "<img src=\"";
     $imgSrc = "images/check_";
     if ($this->getHostPageDbType() == nDATABASE_PostgreSQL) {
         $trueCondition = $data[$this->field] == "t" || $data[$this->field] != 0 && $data[$this->field] != "";
     } else {
         $trueCondition = $data[$this->field] != 0;
     }
     $imgSrc .= $trueCondition ? "yes" : "no";
     $result .= GetRootPathForResources($imgSrc . ".gif") . "\" border=0";
     if (isEnableSection508()) {
         $result .= " alt=\" \"";
     }
     $result .= ">";
     return $result;
 }
开发者ID:kcallow,项目名称:MatchMe,代码行数:17,代码来源:ViewCheckboxField.php

示例6: showDBValue

 public function showDBValue(&$data, $keylink)
 {
     if ($this->container->forExport) {
         return $this->checkForEncoding($data[$this->field], $keylink);
     }
     $result = "<img src=\"images/check_";
     if ($data[$this->field] && $data[$this->field] != 0) {
         $result .= "yes";
     } else {
         $result .= "no";
     }
     $result .= ".gif\" border=0";
     if (isEnableSection508()) {
         $result .= " alt=\" \"";
     }
     $result .= ">";
     return $result;
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:18,代码来源:ViewCheckboxField.php

示例7: EditControl

 function EditControl($field, $pageObject, $id, $connection)
 {
     $this->field = $field;
     $this->goodFieldName = GoodFieldName($field);
     $this->setID($id);
     $this->connection = $connection;
     $this->pageObject = $pageObject;
     $this->is508 = isEnableSection508();
     $this->strLabel = $pageObject->pSetEdit->label($field);
     $this->type = $pageObject->pSetEdit->getFieldType($this->field);
     if ($this->connection->dbType == nDATABASE_Oracle) {
         $this->isOracle = true;
     }
     if ($this->connection->dbType == nDATABASE_MSSQLServer) {
         $this->ismssql = true;
     }
     if ($this->connection->dbType == nDATABASE_DB2) {
         $this->isdb2 = true;
     }
     if ($this->connection->dbType == nDATABASE_MySQL) {
         $this->isMysql = true;
     }
     if ($this->connection->dbType == nDATABASE_PostgreSQL) {
         $this->like = "ilike";
     }
     $this->searchOptions[CONTAINS] = "Contiene";
     $this->searchOptions[EQUALS] = "Equivale";
     $this->searchOptions[STARTS_WITH] = "Empieza con";
     $this->searchOptions[MORE_THAN] = "Más que";
     $this->searchOptions[LESS_THAN] = "Menos que";
     $this->searchOptions[BETWEEN] = "Entre";
     $this->searchOptions[EMPTY_SEARCH] = "Vacio";
     $this->searchOptions[NOT_CONTAINS] = "No contiene";
     $this->searchOptions[NOT_EQUALS] = "No es igual";
     $this->searchOptions[NOT_STARTS_WITH] = "No empieza por";
     $this->searchOptions[NOT_MORE_THAN] = "No mayor que";
     $this->searchOptions[NOT_LESS_THAN] = "No menor que";
     $this->searchOptions[NOT_BETWEEN] = "No está entre";
     $this->searchOptions[NOT_EMPTY] = "No está vacío";
     $this->init();
 }
开发者ID:kcallow,项目名称:MatchMe,代码行数:41,代码来源:Control.php

示例8: EditControl

 function EditControl($field, $pageObject, $id, $connection)
 {
     $this->field = $field;
     $this->goodFieldName = GoodFieldName($field);
     $this->setID($id);
     $this->connection = $connection;
     $this->pageObject = $pageObject;
     $this->is508 = isEnableSection508();
     $this->strLabel = $pageObject->pSetEdit->label($field);
     $this->type = $pageObject->pSetEdit->getFieldType($this->field);
     if ($this->connection->dbType == nDATABASE_Oracle) {
         $this->isOracle = true;
     }
     if ($this->connection->dbType == nDATABASE_MSSQLServer) {
         $this->ismssql = true;
     }
     if ($this->connection->dbType == nDATABASE_DB2) {
         $this->isdb2 = true;
     }
     if ($this->connection->dbType == nDATABASE_MySQL) {
         $this->isMysql = true;
     }
     if ($this->connection->dbType == nDATABASE_PostgreSQL) {
         $this->like = "ilike";
     }
     $this->searchOptions[CONTAINS] = "Contains";
     $this->searchOptions[EQUALS] = "Equals";
     $this->searchOptions[STARTS_WITH] = "Starts with";
     $this->searchOptions[MORE_THAN] = "More than";
     $this->searchOptions[LESS_THAN] = "Less than";
     $this->searchOptions[BETWEEN] = "Between";
     $this->searchOptions[EMPTY_SEARCH] = "Empty";
     $this->searchOptions[NOT_CONTAINS] = "Doesn't contain";
     $this->searchOptions[NOT_EQUALS] = "Doesn't equal";
     $this->searchOptions[NOT_STARTS_WITH] = "Doesn't start with";
     $this->searchOptions[NOT_MORE_THAN] = "Is not more than";
     $this->searchOptions[NOT_LESS_THAN] = "Is not less than";
     $this->searchOptions[NOT_BETWEEN] = "Is not between";
     $this->searchOptions[NOT_EMPTY] = "Is not empty";
     $this->init();
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:41,代码来源:Control.php

示例9: xt_displaymenu

 function xt_displaymenu($params)
 {
     global $strTableName, $pageName;
     $menuparams = array();
     foreach ($params as $p) {
         $menuparams[] = $p;
     }
     $menuId = $menuparams[0];
     $ProjectSettings = new ProjectSettings();
     $menuName = $ProjectSettings->getMenuName($this->template_file, $menuId, $menuparams[1]);
     $menuStyle = $ProjectSettings->getMenuStyle($this->template_file, $menuId, $menuparams[1]);
     $isMobyleLayout = isMobile();
     array_shift($menuparams);
     global $pageObject;
     $pageType = "";
     $pageMode = 0;
     $menuNodes = array();
     $isAdminTable = false;
     if (isset($pageObject)) {
         $pageObject->getMenuNodes();
         $pageType = $pageObject->pageType;
         $pageMode = $pageObject->mode;
         $isAdminTable = $pageObject->isAdminTable();
         if ($isAdminTable) {
             $menuName = "adminarea";
         }
         $menuNodes = $pageObject->getMenuNodes($menuName);
     }
     $xt = new Xtempl();
     $xt->assign("menuName", $menuName);
     $xt->assign("menustyle", $menuStyle ? "second" : "main");
     $quickjump = false;
     $horizontal = false;
     if (count($menuparams)) {
         if ($menuparams[0] == "horizontal") {
             $horizontal = true;
         } elseif ($menuparams[0] == "quickjump") {
             $quickjump = true;
         }
     }
     if (!$isAdminTable) {
         if (!$quickjump) {
             if (!$isMobyleLayout) {
                 $xt->assign("simpleTypeMenu", true);
             } else {
                 $xt->assign("treeLikeTypeMenu", true);
             }
         }
         if ($pageType == PAGE_MENU && IsAdmin() && !$isMobyleLayout) {
             $xt->assign("adminarea_link", true);
         }
     } else {
         //Admin Area menu items
         $xt->assign("adminAreaTypeMenu", true);
     }
     // need to predefine vars
     $nullParent = NULL;
     $rootInfoArr = array("id" => 0, "href" => "");
     // create treeMenu instance
     $menuNodesIndex = 0;
     $menuMap = array();
     $menuRoot = new MenuItem($rootInfoArr, $menuNodes, $nullParent, $menuMap);
     // call xtempl assign, set session params
     $menuRoot->setMenuSession();
     $menuRoot->assignMenuAttrsToTempl($xt);
     $menuRoot->setCurrMenuElem($xt);
     $xt->assign("mainmenu_block", true);
     $mainmenu = array();
     if (isEnableSection508()) {
         $mainmenu["begin"] = "<a name=\"skipmenu\"></a>";
     }
     $mainmenu["end"] = '';
     $countLinks = 0;
     $countGroups = 0;
     $showMenuCollapseExpandAll = false;
     foreach ($menuRoot->children as $ind => $val) {
         if ($val->showAsLink) {
             $countLinks++;
         }
         if ($val->showAsGroup) {
             if (count($val->children)) {
                 $showMenuCollapseExpandAll = true;
             }
             $countGroups++;
         }
     }
     $xt->assign("menu_collapse_expand_all", $showMenuCollapseExpandAll);
     if ($pageType == PAGE_MENU || $countLinks > 1 || $countGroups > 0) {
         $xt->assignbyref("mainmenu_block", $mainmenu);
         if ($this->layout->version == 1) {
             $menuName = "old" . $menuName;
         }
         if ($quickjump) {
             $xt->display($menuName . "_" . "mainmenu_quickjump.htm");
         } else {
             if ($horizontal) {
                 $xt->display($menuName . "_" . "mainmenu_horiz.htm");
             } else {
                 if ($isMobyleLayout && $this->layout->version != 1) {
                     $xt->display($menuName . "_" . "mainmenu_m.htm");
//.........这里部分代码省略.........
开发者ID:kcallow,项目名称:MatchMe,代码行数:101,代码来源:xtempl.php

示例10: RunnerPage

 function RunnerPage(&$params)
 {
     global $locale_info, $cCharset, $page_layouts;
     // copy properties to object
     RunnerApply($this, $params);
     $this->setTableConnection();
     $this->pSet = new ProjectSettings($this->tName, $this->pageType);
     $this->pSetEdit = $this->pSet;
     $this->pSetSearch = new ProjectSettings($this->tName, PAGE_SEARCH);
     $this->searchTableName = $this->tName;
     $this->assignCipherer();
     include_once getabspath("classes/controls/EditControlsContainer.php");
     $this->controls = new EditControlsContainer($this, $this->pSetEdit, $this->pageType);
     include_once getabspath("classes/controls/ViewControlsContainer.php");
     $this->viewControls = new ViewControlsContainer($this->pSet, $this->pageType, $this);
     $this->gQuery = $this->pSet->getSQLQuery();
     //set google map configuration
     $this->googleMapCfg = array('isUseMainMaps' => false, 'isUseFieldsMaps' => false, 'isUseGoogleMap' => false, 'APIcode' => GetGlobalData("apiGoogleMapsCode", ""), 'mainMapIds' => array(), 'fieldMapsIds' => array(), 'mapsData' => array());
     $this->debugJSMode = false;
     if ($this->flyId < $this->id + 1) {
         $this->flyId = $this->id + 1;
     }
     // get permissions
     if ($this->tName) {
         $this->permis[$this->tName] = $this->getPermissions();
         $this->eventsObject =& getEventObject($this->tName);
     }
     if (!$this->sessionPrefix) {
         $this->assignSessionPrefix();
     }
     $this->isDisplayLoading = $this->pSet->displayLoading();
     //init settingMap globalSettings
     $this->settingsMap["globalSettings"] = array();
     $this->settingsMap["globalSettings"]["shortTNames"] = array();
     $this->searchPanelActivated = $this->checkIfSearchPanelActivated(isMobile());
     //global settings including "shortTNames" might be updated
     $this->setParamsForSearchPanel();
     $this->searchSavingEnabled = $this->isSearchSavingEnabled() && $this->needSearchClauseObj;
     $this->setSessionVariables();
     //	get locking object
     $this->lockingObj = GetLockingObject($this->tName);
     $this->warnLeavingPages = $this->pSet->warnLeavingPages();
     $this->is508 = isEnableSection508();
     $this->isUseVideo = $this->pSet->isUseVideo();
     $this->strCaption = GetTableCaption(GoodFieldName($this->tName));
     $this->tableType = $this->pSet->getTableType();
     $this->isAddWebRep = GetGlobalData("isAddWebRep", false);
     //	get details keys by master table
     $this->detailKeysByM = $this->getDetailKeysByMasterTable();
     $this->isDynamicPerm = GetGlobalData("isDynamicPerm", false);
     $this->shortTableName = $this->pSet->getShortTableName();
     $this->isResizeColumns = $this->pSet->isResizeColumns();
     $this->isUseAjaxSuggest = $this->pSetSearch->isUseAjaxSuggest();
     $this->useDetailsPreview = $this->pSet->isUseDetailsPreview();
     $this->isShowDetailTables = displayDetailsOn($this->tName, $this->pageType);
     //	get all details table for current table
     $this->allDetailsTablesArr = $this->pSet->getDetailTablesArr();
     //	set template file
     $this->setTemplateFile();
     //	init jsSettings
     $this->jsSettings = array();
     $this->jsSettings["tableSettings"] = array();
     $this->jsSettings["tableSettings"][$this->tName] = array();
     $this->jsSettings["tableSettings"][$this->tName]["proxy"] = array("proxy" => "");
     $this->jsSettings["tableSettings"][$this->tName]['fieldSettings'] = array();
     $this->settingsMap["globalSettings"]["webRootPath"] = GetWebRootPath();
     $this->settingsMap["globalSettings"]["ext"] = "php";
     $this->settingsMap["globalSettings"]["charSet"] = $cCharset;
     $this->settingsMap["globalSettings"]["debugMode"] = $this->debugJSMode;
     $this->settingsMap["globalSettings"]["googleMapsApiCode"] = $this->googleMapCfg['APIcode'];
     $this->settingsMap["globalSettings"]["shortTNames"][$this->tName] = $this->shortTableName;
     $globalPopupPagesLayoutNames = GetGlobalData("popupPagesLayoutNames", array());
     if (count($globalPopupPagesLayoutNames)) {
         $this->settingsMap["globalSettings"]["popupPagesLayoutNames"] = $globalPopupPagesLayoutNames;
     }
     //isMobile
     $this->settingsMap["globalSettings"]["isMobile"] = isMobile();
     $this->settingsMap["globalSettings"]["mobileDeteced"] = detectMobileDevice();
     // s508 must be in global settings
     $this->settingsMap['globalSettings']['s508'] = $this->is508;
     $this->settingsMap["globalSettings"]["locale"] = array();
     $this->settingsMap["globalSettings"]["locale"]["dateFormat"] = $locale_info["LOCALE_IDATE"];
     $this->settingsMap["globalSettings"]["locale"]["startWeekDay"] = $locale_info["LOCALE_IFIRSTDAYOFWEEK"];
     $this->settingsMap["globalSettings"]["locale"]["dateDelimiter"] = $locale_info["LOCALE_SDATE"];
     $this->settingsMap["tableSettings"] = array();
     $this->settingsMap['tableSettings']['hasEvents'] = array("default" => false, "jsName" => "hasEvents");
     $this->settingsMap["tableSettings"]["strCaption"] = array("default" => "", "jsName" => "strCaption");
     $this->settingsMap["tableSettings"]["isUseAudio"] = array("default" => false, "jsName" => "isUseAudio");
     //fix it
     $this->settingsMap["tableSettings"]["isUseVideo"] = array("default" => false, "jsName" => "isUseVideo");
     $this->settingsMap['tableSettings']['listGridLayout'] = array("default" => gltHORIZONTAL, "jsName" => "listGridLayout");
     $this->settingsMap["tableSettings"]["rowHighlite"] = array("default" => false, "jsName" => "isUseHighlite");
     $this->settingsMap["tableSettings"]["isUseToolTips"] = array("default" => false, "jsName" => "isUseToolTips");
     $this->settingsMap['tableSettings']['recsPerRowList'] = array("default" => 1, "jsName" => "recsPerRowList");
     $this->settingsMap["tableSettings"]["showAddInPopup"] = array("default" => false, "jsName" => "showAddInPopup");
     $this->settingsMap["tableSettings"]["showEditInPopup"] = array("default" => false, "jsName" => "showEditInPopup");
     $this->settingsMap["tableSettings"]["showViewInPopup"] = array("default" => false, "jsName" => "showViewInPopup");
     $this->settingsMap["tableSettings"]["isResizeColumns"] = array("default" => false, "jsName" => "isUseResize");
     $this->settingsMap["tableSettings"]["useDetailsPreview"] = array("default" => false, "jsName" => "isUseDP");
     $this->settingsMap['tableSettings']['isUsebuttonHandlers'] = array("default" => false, "jsName" => "isUseButtons");
//.........这里部分代码省略.........
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:101,代码来源:runnerpage.php

示例11: GetInputElementId

    if (!$pageObject->isAppearOnTabs("npwpd_old")) {
        $xt->assign("npwpd_old_fieldblock", true);
    } else {
        $xt->assign("npwpd_old_tabfieldblock", true);
    }
    $xt->assign("npwpd_old_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("npwpd_old_label", "<label for=\"" . GetInputElementId("npwpd_old", $id, PAGE_ADD) . "\">", "</label>");
    }
    if (!$pageObject->isAppearOnTabs("id_old")) {
        $xt->assign("id_old_fieldblock", true);
    } else {
        $xt->assign("id_old_tabfieldblock", true);
    }
    $xt->assign("id_old_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("id_old_label", "<label for=\"" . GetInputElementId("id_old", $id, PAGE_ADD) . "\">", "</label>");
    }
    if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
        $pageObject->body["begin"] .= $includes;
        $xt->assign("backbutton_attrs", "id=\"backButton" . $id . "\"");
        $xt->assign("back_button", true);
    } else {
        $xt->assign("cancelbutton_attrs", "id=\"cancelButton" . $id . "\"");
        $xt->assign("cancel_button", true);
        $xt->assign("header", "");
    }
    $xt->assign("save_button", true);
}
$xt->assign("savebutton_attrs", "id=\"saveButton" . $id . "\"");
$xt->assign("message_block", true);
开发者ID:aagusti,项目名称:padl-tng,代码行数:31,代码来源:pad_pad_customer_add.php

示例12: buildControl

 function buildControl($value, $mode, $fieldNum = 0, $validate, $additionalCtrlParams, $data)
 {
     parent::buildControl($value, $mode, $fieldNum, $validate, $additionalCtrlParams, $data);
     if ($this->pageObject->pageType == PAGE_SEARCH || $this->pageObject->pageType == PAGE_LIST) {
         echo '<input id="' . $this->cfield . '" ' . $this->inputStyle . ' type="text" ' . ($mode == MODE_SEARCH ? 'autocomplete="off" ' : '') . (($mode == MODE_INLINE_EDIT || $mode == MODE_INLINE_ADD) && $this->is508 == true ? 'alt="' . $this->strLabel . '" ' : '') . 'name="' . $this->cfield . '" ' . $this->pageObject->pSetEdit->getEditParams($this->field) . ' value="' . htmlspecialchars($value) . '">';
         $this->buildControlEnd($validate);
         return;
     }
     if ($mode == MODE_SEARCH) {
         $this->format = "";
     }
     $disp = "";
     $strfilename = "";
     $function = "";
     if ($mode == MODE_EDIT || $mode == MODE_INLINE_EDIT) {
         //	show current file
         $fileName = $value;
         if ($this->pageObject->pSet->getViewFormat($this->field) == FORMAT_FILE || $this->pageObject->pSet->getViewFormat($this->field) == FORMAT_FILE_IMAGE) {
             $uploadFolder = $this->pageObject->pSet->getUploadFolder($this->field);
             if (!CheckImageExtension($value)) {
                 $disp = "<a target=\"_blank\" href=\"" . htmlspecialchars($uploadFolder . $value) . "\">" . htmlspecialchars($value) . "</a>";
             } else {
                 $finalUploadFolder = $this->pageObject->pSet->getFinalUploadFolder($this->field);
                 if (!myfile_exists(getabspath($finalUploadFolder . $value))) {
                     $value = "images/no_image.gif";
                 } else {
                     $value = $uploadFolder . $value;
                 }
                 if ($this->pageObject->pSet->showThumbnail($this->field)) {
                     $thumbprefix = $this->pageObject->pSet->getStrThumbnail($this->field);
                     // show thumbnail
                     $thumbname = $thumbprefix . $fileName;
                     if (substr($uploadFolder, 0, 7) != "http://") {
                         if (!myfile_exists(getabspath($finalUploadFolder . $thumbname))) {
                             $thumbname = $value;
                         } else {
                             $thumbname = $uploadFolder . $thumbname;
                         }
                     }
                     $disp = "<a target=\"_blank\" href=\"" . htmlspecialchars($value) . "\" class='zoombox zgallery'>";
                     $disp .= "<img";
                     if (isEnableSection508()) {
                         $disp .= " alt=\"" . htmlspecialchars($fileName) . "\"";
                     }
                     $disp .= " border=0";
                     $disp .= " src=\"" . htmlspecialchars($thumbname) . "\"></a>";
                 } else {
                     if ($value != "images/no_image.gif") {
                         if (filesize($finalUploadFolder . $fileName) > 51200) {
                             $imageValue = "images/icons/jpg.png";
                         } else {
                             $imageValue = $value;
                         }
                     } else {
                         $imageValue = "images/no_image.gif";
                     }
                     if (isEnableSection508()) {
                         $disp = '<img alt=\\"' . htmlspecialchars($fileName) . '\\" src="' . htmlspecialchars($imageValue) . '" border=0>';
                     } else {
                         $disp = '<img src="' . htmlspecialchars($imageValue) . '" border=0>';
                     }
                     if ($imageValue != "images/no_image.gif") {
                         $disp = "<a target=\"_blank\" href=\"" . htmlspecialchars($value) . "\">" . $disp . "</a>";
                     }
                 }
             }
             $disp .= "<br />";
         }
         //	filename edit
         $filename_size = 30;
         if ($this->pageObject->pSet->isUseTimestamp($this->field)) {
             $filename_size = 50;
         }
         $strfilename = '<input type=hidden name="filenameHidden_' . $this->cfieldname . '" value="' . htmlspecialchars($fileName) . '"><br>' . "Filename" . '&nbsp;&nbsp;<input type="text" style="background-color:gainsboro" disabled id="filename_' . $this->cfieldname . '" name="filename_' . $this->cfieldname . '" size="' . $filename_size . '" maxlength="100" value="' . htmlspecialchars($fileName) . '">';
         $strtype = '<br><input id="' . $this->ctype . '_keep" type="Radio" name="' . $this->ctype . '" value="upload0" checked class="runner-uploadtype">' . "Keep";
         if ((strlen($value) || $mode == MODE_INLINE_EDIT) && !$this->pageObject->pSet->isRequired($this->field)) {
             $strtype .= '<input id="' . $this->ctype . '_delete" type="Radio" name="' . $this->ctype . '" value="upload1" class="runner-uploadtype">' . "Delete";
         }
         $strtype .= '<input id="' . $this->ctype . '_update" type="Radio" name="' . $this->ctype . '" value="upload2" class="runner-uploadtype">' . "Update";
     } else {
         //	if Adding record
         $filename_size = 30;
         if ($this->pageObject->pSet->isUseTimestamp($this->field)) {
             $filename_size = 50;
         }
         $strtype = '<input id="' . $this->ctype . '" type="hidden" name="' . $this->ctype . '" value="upload2">';
         $strfilename = '<br>' . "Filename" . '&nbsp;&nbsp;<input type="text" id="filename_' . $this->cfieldname . '" name="filename_' . $this->cfieldname . '" size="' . $filename_size . '" maxlength="100">';
     }
     echo $disp . $strtype . $function;
     if ($mode == MODE_EDIT || $mode == MODE_INLINE_EDIT) {
         echo '<br>';
     }
     echo '<input type="File" id="' . $this->cfield . '" ' . (($mode == MODE_INLINE_EDIT || $mode == MODE_INLINE_ADD) && $this->is508 == true ? 'alt="' . $this->strLabel . '" ' : '') . ' name="' . $this->cfield . '" >' . $strfilename;
     echo '<input type="Hidden" id="notempty_' . $this->cfieldname . '" value="' . (strlen($value) ? 1 : 0) . '">';
     $this->buildControlEnd($validate);
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:96,代码来源:FileFieldSingle.php

示例13: searchAssign

 function searchAssign()
 {
     $this->pageObj->xt->assign("asearch_link", $this->searchPerm);
     $this->pageObj->xt->assign("asearchlink_attrs", "id=\"asearch_" . $this->id . "\" name=\"asearch_" . $this->id . "\" href=\"" . $this->pageObj->shortTableName . "_search.php\" onclick=\"window.location.href='" . $this->pageObj->shortTableName . "_search.php';return false;\"");
     if (isEnableSection508() && $this->searchPerm) {
         $searchPerm = array();
         $searchPerm["begin"] = "<a name=\"skipsearch\"></a>";
     } else {
         $searchPerm = $this->searchPerm;
     }
     $this->pageObj->xt->assign("searchform_block", $searchPerm);
     if (isMobile()) {
         $this->pageObj->xt->assign("searchformmobile_block", $searchPerm);
     }
     $this->pageObj->xt->assign("searchformbuttons_block", $searchPerm);
     $this->pageObj->xt->assign("searchform_text", true);
     $this->pageObj->xt->assign("searchform_search", true);
     if (isMobile()) {
         $this->pageObj->xt->assign("searchform_showall_mobile", true);
     } else {
         $this->pageObj->xt->assign("searchform_showall", true);
     }
     if (!$this->searchClauseObj->isUsedSrch()) {
         $this->pageObj->xt->assign("showAllCont_attrs", 'style="display: none;"');
     }
     $srchButtTitle = "Search";
     $this->pageObj->xt->assign("searchbutton_attrs", "id=\"searchButtTop" . $this->id . "\"  title=\"" . $srchButtTitle . '"');
     $this->pageObj->xt->assign("showallbutton_attrs", "id=\"showAll" . $this->id . "\"");
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:29,代码来源:searchpanel.php

示例14: SetLangVars

/**
 * @intellisense
 */
function SetLangVars($xt, $prefix, $pageName = "", $extraparams = "")
{
	$xt->assign("lang_label",true);
	if(@$_REQUEST["language"])
		$_SESSION["language"]=@$_REQUEST["language"];

	if( $extraparams )
		$extraparams = $extraparams."&";

	$var=GoodFieldName(mlang_getcurrentlang())."_langattrs";
	$xt->assign($var,"selected");
	$is508=isEnableSection508();
	if($is508)
		$xt->assign_section("lang_label","<label for=\"lang\">","</label>");
	if($prefix.$pageName == "login")
		$xt->assign("langselector_attrs","name=lang ".($is508==true ? "id=\"lang\" " : "")."onchange=\"javascript: document.forms[0].btnSubmit.value='';document.forms[0].action = '".GetTableLink($prefix, $pageName)."?".$extraparams."language='+this.options[this.selectedIndex].value;document.forms[0].submit();\"");
	else
		$xt->assign("langselector_attrs","name=lang ".($is508==true ? "id=\"lang\" " : "")."onchange=\"javascript: window.location='".GetTableLink($prefix, $pageName)."?".$extraparams."language='+this.options[this.selectedIndex].value\"");
}
开发者ID:helbertfurbino,项目名称:sgmofinanceiro,代码行数:22,代码来源:commonfunctions.php

示例15: SetLangVars

function SetLangVars($links)
{
    global $xt;
    $xt->assign("lang_label", true);
    if (@$_REQUEST["language"]) {
        $_SESSION["language"] = @$_REQUEST["language"];
    }
    $var = GoodFieldName(mlang_getcurrentlang()) . "_langattrs";
    $xt->assign($var, "selected");
    $is508 = isEnableSection508();
    if ($is508) {
        $xt->assign_section("lang_label", "<label for=\"lang\">", "</label>");
    }
    if ($links == "login") {
        $xt->assign("langselector_attrs", "name=lang " . ($is508 == true ? "id=\"lang\" " : "") . "onchange=\"javascript: document.forms[0].btnSubmit.value='';document.forms[0].action = '" . $links . ".php?language='+this.options[this.selectedIndex].value;document.forms[0].submit();\"");
    } else {
        $xt->assign("langselector_attrs", "name=lang " . ($is508 == true ? "id=\"lang\" " : "") . "onchange=\"javascript: window.location='" . $links . ".php?language='+this.options[this.selectedIndex].value\"");
    }
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:19,代码来源:commonfunctions.php


注:本文中的isEnableSection508函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。