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


PHP BxTemplStudioFormView::genRow方法代码示例

本文整理汇总了PHP中BxTemplStudioFormView::genRow方法的典型用法代码示例。如果您正苦于以下问题:PHP BxTemplStudioFormView::genRow方法的具体用法?PHP BxTemplStudioFormView::genRow怎么用?PHP BxTemplStudioFormView::genRow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BxTemplStudioFormView的用法示例。


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

示例1: getSearchInput

 public function getSearchInput()
 {
     bx_import('BxTemplStudioFormView');
     $oForm = new BxTemplStudioFormView(array());
     $aInputSearch = array('type' => 'text', 'name' => 'keyword', 'attrs' => array('id' => 'bx-grid-search-' . $this->_sObject, 'onKeyup' => 'javascript:$(this).off(\'keyup\'); ' . $this->getJsObject() . '.onChangeFilter()'));
     return $oForm->genRow($aInputSearch);
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:7,代码来源:BxBaseStudioGridNavigation.php

示例2: getModulesSelectOne

 public function getModulesSelectOne($sGetItemsMethod, $bShowCustom = true, $bShowSystem = true)
 {
     if (empty($sGetItemsMethod)) {
         return '';
     }
     $oForm = new BxTemplStudioFormView(array());
     $aInputModules = array('type' => 'select', 'name' => 'module', 'attrs' => array('id' => 'bx-grid-module-' . $this->_sObject, 'onChange' => 'javascript:' . $this->getJsObject() . '.onChangeModule()'), 'value' => $this->sModule, 'values' => $this->getModules($bShowCustom, $bShowSystem));
     $aCounter = array();
     $this->oDb->{$sGetItemsMethod}(array('type' => 'counter_by_modules'), $aCounter, false);
     foreach ($aInputModules['values'] as $sKey => $sValue) {
         $aInputModules['values'][$sKey] = $aInputModules['values'][$sKey] . " (" . (isset($aCounter[$sKey]) ? $aCounter[$sKey] : "0") . ")";
     }
     $aInputModules['values'] = array_merge(array('' => _t('_adm_txt_select_module')), $aInputModules['values']);
     return $oForm->genRow($aInputModules);
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:15,代码来源:BxBaseStudioGrid.php

示例3: _getFilterControls

 protected function _getFilterControls()
 {
     parent::_getFilterControls();
     $sContent = "";
     $oForm = new BxTemplStudioFormView(array());
     $aInputModules = array('type' => 'select', 'name' => 'module', 'attrs' => array('id' => 'bx-grid-module-' . $this->_sObject, 'onChange' => 'javascript:' . $this->getJsObject() . '.onChangeFilter()'), 'value' => '', 'values' => $this->getModules(false));
     $aCounter = array();
     $this->oDb->getEtemplates(array('type' => 'counter_by_modules'), $aCounter, false);
     foreach ($aInputModules['values'] as $sKey => $sValue) {
         $aInputModules['values'][$sKey] = $aInputModules['values'][$sKey] . " (" . (isset($aCounter[$sKey]) ? $aCounter[$sKey] : "0") . ")";
     }
     $aInputModules['values'] = array_merge(array('' => _t('_adm_pgt_txt_all_modules')), $aInputModules['values']);
     $sContent .= $oForm->genRow($aInputModules);
     $aInputSearch = array('type' => 'text', 'name' => 'keyword', 'attrs' => array('id' => 'bx-grid-search-' . $this->_sObject, 'onKeyup' => 'javascript:$(this).off(\'keyup\'); ' . $this->getJsObject() . '.onChangeFilter()'));
     $sContent .= $oForm->genRow($aInputSearch);
     return $sContent;
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:17,代码来源:BxBaseStudioPolyglotEtemplates.php

示例4: _getFilterControls

 protected function _getFilterControls()
 {
     parent::_getFilterControls();
     $sContent = $this->getModulesSelectOne('getValues') . $this->getListsSelector($this->sModule);
     $oForm = new BxTemplStudioFormView(array());
     $aInputSearch = array('type' => 'text', 'name' => 'keyword', 'attrs' => array('id' => 'bx-grid-search-' . $this->_sObject), 'tr_attrs' => array('style' => 'display:none;'));
     $sContent .= $oForm->genRow($aInputSearch);
     return $sContent;
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:9,代码来源:BxBaseStudioFormsPreValues.php

示例5: _getTmplVarsBlockPanelTop

 protected function _getTmplVarsBlockPanelTop()
 {
     $sJsObject = $this->getPageJsObject();
     $oForm = new BxTemplStudioFormView(array());
     $aInputPages = array('type' => 'select', 'name' => 'page', 'attrs' => array('onChange' => 'javascript:' . $this->getPageJsObject() . '.onChangePage(this)'), 'value' => $this->sPage, 'values' => array(array('key' => '', 'value' => _t('_adm_bp_txt_select_page'))));
     $aPages = $aCounter = array();
     $this->oDb->getPages(array('type' => 'by_module', 'value' => $this->sType), $aPages, false);
     $this->oDb->getBlocks(array('type' => 'counter_by_pages'), $aCounter, false);
     foreach ($aPages as $aPage) {
         $aInputPages['values'][] = array('key' => $aPage['object'], 'value' => _t($aPage['title_system']) . " (" . (isset($aCounter[$aPage['object']]) ? $aCounter[$aPage['object']] : "0") . ")");
     }
     $aTmplVarsActions = array();
     if (($this->sPage != '' && !empty($this->aPageRebuild)) !== false) {
         $aTmplVarsActions = $this->_getTmplVarsBlockPanelTopActions();
     }
     return array('js_object' => $this->getPageJsObject(), 'selector' => $oForm->genRow($aInputPages), 'action_page_create' => $this->sActionPageCreate, 'bx_if:show_actions' => array('condition' => $this->sPage != '', 'content' => $aTmplVarsActions));
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:17,代码来源:BxBaseStudioBuilderPage.php

示例6: _getFilterControls

 protected function _getFilterControls()
 {
     parent::_getFilterControls();
     $sContent = "";
     $oForm = new BxTemplStudioFormView(array());
     $aInputModules = array('type' => 'select', 'name' => 'module', 'attrs' => array('id' => 'bx-grid-module-' . $this->_sObject, 'onChange' => 'javascript:' . $this->getJsObject() . '.onChangeFilter()'), 'values' => array('id-' . BX_DOL_LANGUAGE_CATEGORY_SYSTEM => '', 'id-' . BX_DOL_LANGUAGE_CATEGORY_CUSTOM => ''));
     $aCategories = $aCounter = array();
     $this->oDb->getCategoriesBy(array('type' => 'all'), $aCategories, false);
     $this->oDb->getKeysBy(array('type' => 'counter_by_category'), $aCounter, false);
     foreach ($aCategories as $aCategory) {
         $aInputModules['values']['id-' . $aCategory['id']] = $aCategory['name'] . " (" . (isset($aCounter[$aCategory['id']]) ? $aCounter[$aCategory['id']] : "0") . ")";
     }
     $aInputModules['values'] = array_merge(array('id-0' => _t('_adm_pgt_txt_all_modules')), $aInputModules['values']);
     $sContent .= $oForm->genRow($aInputModules);
     $aInputSearch = array('type' => 'text', 'name' => 'keyword', 'attrs' => array('id' => 'bx-grid-search-' . $this->_sObject, 'onKeyup' => 'javascript:$(this).off(); ' . $this->getJsObject() . '.onChangeFilter()'));
     $sContent .= $oForm->genRow($aInputSearch);
     return $sContent;
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:18,代码来源:BxBaseStudioPolyglotKeys.php

示例7: _getFilterControls

 protected function _getFilterControls()
 {
     bx_import('BxTemplStudioFormView');
     $oForm = new BxTemplStudioFormView(array());
     $aInput = array('type' => 'text', 'name' => 'keyword', 'attrs' => array('id' => 'bx-grid-search-' . $this->_sObject));
     $this->_oTemplate->addCss('forms.css');
     return $oForm->genRow($aInput);
 }
开发者ID:Baloo7super,项目名称:dolphin,代码行数:8,代码来源:BxBaseGrid.php

示例8: _getFilterControls

 protected function _getFilterControls()
 {
     parent::_getFilterControls();
     $sContent = "";
     bx_import('BxTemplStudioFormView');
     $oForm = new BxTemplStudioFormView(array());
     $aInputLevels = array('type' => 'select', 'name' => 'level', 'attrs' => array('id' => 'bx-grid-level-' . $this->_sObject, 'onChange' => 'javascript:' . $this->getJsObject() . '.onChangeLevel()'), 'value' => 'id-' . $this->iLevel, 'values' => array());
     $aLevels = $aCounter = array();
     $this->oDb->getLevels(array('type' => 'all'), $aLevels, false);
     $this->oDb->getPrices(array('type' => 'counter_by_levels'), $aCounter, false);
     foreach ($aLevels as $aLevel) {
         $aInputLevels['values']['id-' . $aLevel['id']] = _t($aLevel['name']) . " (" . (isset($aCounter[$aLevel['id']]) ? $aCounter[$aLevel['id']] : "0") . ")";
     }
     asort($aInputLevels['values']);
     $aInputLevels['values'] = array_merge(array('id-0' => _t('_adm_prm_txt_select_level')), $aInputLevels['values']);
     $sContent .= $oForm->genRow($aInputLevels);
     if ($this->iLevel == 0) {
         return $sContent;
     }
     $aInputSearch = array('type' => 'text', 'name' => 'keyword', 'attrs' => array('id' => 'bx-grid-search-' . $this->_sObject));
     $sContent .= $oForm->genRow($aInputSearch);
     return $sContent;
 }
开发者ID:Baloo7super,项目名称:dolphin,代码行数:23,代码来源:BxBaseStudioPermissionsPrices.php

示例9: _getFilterControls

 protected function _getFilterControls()
 {
     $sContent = parent::_getFilterControls();
     bx_import('BxTemplStudioFormView');
     $oForm = new BxTemplStudioFormView(array());
     $aInputModules = array('type' => 'select', 'name' => 'module', 'attrs' => array('id' => 'bx-grid-module-' . $this->_sObject, 'onChange' => 'javascript:' . $this->getJsObject() . '.onChangeFilter()'), 'value' => '', 'values' => $this->getModules());
     $aCounter = array();
     $this->oDb->getLists(array('type' => 'counter_by_modules'), $aCounter, false);
     foreach ($aInputModules['values'] as $sKey => $sValue) {
         $aInputModules['values'][$sKey] = $aInputModules['values'][$sKey] . " (" . (isset($aCounter[$sKey]) ? $aCounter[$sKey] : "0") . ")";
     }
     $aInputModules['values'] = array_merge(array('' => _t('_adm_form_txt_all_modules')), $aInputModules['values']);
     return $oForm->genRow($aInputModules) . $sContent;
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:14,代码来源:BxBaseStudioFormsPreLists.php

示例10: _getFilterControls

 protected function _getFilterControls()
 {
     parent::_getFilterControls();
     bx_import('BxTemplStudioFormView');
     $oForm = new BxTemplStudioFormView(array());
     $aInputSets = array('type' => 'select', 'name' => 'set', 'attrs' => array('id' => 'bx-grid-set-' . $this->_sObject, 'onChange' => 'javascript:' . $this->getJsObject() . '.onChangeFilter()'), 'value' => '', 'values' => array());
     $aSets = $aCounter = array();
     $this->oDb->getSets(array('type' => 'all', 'except' => $this->sSet), $aSets, false);
     $this->oDb->getItems(array('type' => 'counter_by_sets'), $aCounter, false);
     foreach ($aSets as $aSet) {
         $aInputSets['values'][$aSet['name']] = _t($aSet['title']) . " (" . (isset($aCounter[$aSet['name']]) ? $aCounter[$aSet['name']] : "0") . ")";
     }
     asort($aInputSets['values']);
     $aInputSets['values'] = array_merge(array('' => _t('_adm_nav_txt_select_set')), $aInputSets['values']);
     return $oForm->genRow($aInputSets) . $this->getModulesSelectAll('getItems') . $this->getSearchInput();
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:16,代码来源:BxBaseStudioNavigationImport.php

示例11: _getFilterControls

 protected function _getFilterControls()
 {
     parent::_getFilterControls();
     $sContent = "";
     $oForm = new BxTemplStudioFormView(array());
     $aInputLevels = array('type' => 'select', 'name' => 'level', 'attrs' => array('id' => 'bx-grid-level-' . $this->_sObject, 'onChange' => 'javascript:' . $this->getJsObject() . '.onChangeLevel()'), 'value' => 'id-' . $this->iLevel, 'values' => array());
     $aLevels = $aCounter = array();
     $this->oDb->getLevels(array('type' => 'all'), $aLevels, false);
     $this->oDb->getActions(array('type' => 'counter_by_levels'), $aCounter, false);
     foreach ($aLevels as $aLevel) {
         $aInputLevels['values']['id-' . $aLevel['id']] = _t($aLevel['name']) . " (" . (isset($aCounter[$aLevel['id']]) ? $aCounter[$aLevel['id']] : "0") . ")";
     }
     asort($aInputLevels['values']);
     $aInputLevels['values'] = array_merge(array('id-0' => _t('_adm_prm_txt_select_level')), $aInputLevels['values']);
     $sContent .= $oForm->genRow($aInputLevels);
     if ($this->iLevel == 0) {
         return $sContent;
     }
     $aInputModules = array('type' => 'select', 'name' => 'module', 'attrs' => array('id' => 'bx-grid-module-' . $this->_sObject, 'onChange' => 'javascript:' . $this->getJsObject() . '.onChangeFilter()'), 'value' => '', 'values' => $this->getModules(false));
     $aInputModules['values'] = array_merge(array('' => _t('_adm_prm_txt_all_modules')), $aInputModules['values']);
     $aCounter = array();
     $this->oDb->getActions(array('type' => 'counter_by_modules'), $aCounter, false);
     foreach ($aInputModules['values'] as $sKey => $sValue) {
         if (isset($aCounter[$sKey])) {
             $aInputModules['values'][$sKey] = $aInputModules['values'][$sKey] . " (" . $aCounter[$sKey] . ")";
         }
     }
     $sContent .= $oForm->genRow($aInputModules);
     $aInputSearch = array('type' => 'text', 'name' => 'keyword', 'attrs' => array('id' => 'bx-grid-search-' . $this->_sObject, 'onKeyup' => 'javascript:$(this).off(\'keyup\'); ' . $this->getJsObject() . '.onChangeFilter()'));
     $sContent .= $oForm->genRow($aInputSearch);
     return $sContent;
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:32,代码来源:BxBaseStudioPermissionsActions.php


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