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


PHP BxTemplFormView::addCssJs方法代码示例

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


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

示例1: _addJsCss

 /**
  * add js file for AJAX form submission
  */
 protected function _addJsCss()
 {
     parent::_addJsCss();
     $this->_oTemplate->addJs('jquery.form.min.js');
     $oForm = new BxTemplFormView(array());
     $oForm->addCssJs();
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:10,代码来源:BxAntispamGridIpTable.php

示例2: addCssJs

 function addCssJs()
 {
     if (!isset($this->aParams['view_mode']) || !$this->aParams['view_mode']) {
         if (self::$_isCssJsAdded) {
             return;
         }
         $this->_oModule->_oTemplate->addCss('forms.css');
     }
     return parent::addCssJs();
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:10,代码来源:BxBaseModGeneralFormEntry.php

示例3: getCodeCharts

 function getCodeCharts()
 {
     $aObjects = $GLOBALS['MySQL']->getAll("SELECT * FROM `sys_objects_charts` WHERE `active` = 1 ORDER BY `order` ASC");
     foreach ($aObjects as $k => $a) {
         $aObjects[$k]['title'] = _t($a['title']);
     }
     $sContent = $GLOBALS['oAdmTemplate']->parseHtmlByName('dashboard_charts.html', array('proto' => bx_proto(), 'admin_url' => BX_DOL_URL_ADMIN, 'from' => date('Y-m-d', time() - 30 * 24 * 60 * 60), 'to' => date('Y-m-d', time()), 'bx_repeat:objects' => $aObjects));
     // add datepicker
     bx_import('BxTemplFormView');
     $oForm = new BxTemplFormView(array());
     $oForm->addCssJs(true);
     return DesignBoxAdmin(_t('_adm_box_cpt_charts'), $sContent, '', '', 11);
 }
开发者ID:gorenc,项目名称:dolphin.pro,代码行数:13,代码来源:BxDolAdminDashboard.php

示例4: serviceViewBlockAccount

    function serviceViewBlockAccount($mixed, $iStart = -1, $iPerPage = -1, $sFilter = '', $sTimeline = '', $sType = 'id', $aModules = array())
    {
        $sContent = '';
        $aOwner = $this->_oDb->getUser($mixed, $sType);
        $this->_iOwnerId = $aOwner['id'];
        $aFriends = getMyFriendsEx($this->_iOwnerId, '', '', 'LIMIT 20');
        if (empty($aFriends)) {
            return $this->_oTemplate->getEmpty(true);
        }
        $this->_iOwnerId = array_keys($aFriends);
        if ($iStart == -1) {
            $iStart = 0;
        }
        if ($iPerPage == -1) {
            $iPerPage = $this->_oConfig->getPerPage('account');
        }
        if (empty($sFilter)) {
            $sFilter = BX_WALL_FILTER_ALL;
        }
        //--- Prepare JavaScript paramaters ---//
        $oJson = new Services_JSON();
        $sOwnerId = implode(BX_WALL_DIVIDER_ID, $this->_iOwnerId);
        ob_start();
        ?>
        var <?php 
        echo $this->_sJsViewObject;
        ?>
 = new BxWallView({
            sActionUrl: '<?php 
        echo BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri();
        ?>
',
            sObjName: '<?php 
        echo $this->_sJsViewObject;
        ?>
',
            iOwnerId: '<?php 
        echo $sOwnerId;
        ?>
',
            sAnimationEffect: '<?php 
        echo $this->_oConfig->getAnimationEffect();
        ?>
',
            iAnimationSpeed: '<?php 
        echo $this->_oConfig->getAnimationSpeed();
        ?>
',
            oRequestParams: <?php 
        echo $oJson->encode(array('WallOwnerId' => $sOwnerId, 'WallStart' => $iStart, 'WallPerPage' => $iPerPage, 'WallFilter' => $sFilter, 'WallTimeline' => $sTimeline, 'WallModules' => $aModules));
        ?>
        });
<?php 
        $sJsContent = ob_get_clean();
        //--- Is used with common Pagination
        //$oPaginate = $this->_getPaginate($sFilter, $sTimeline, $aModules);
        $aVariables = array('timeline' => $this->_getTimeline($iStart, $iPerPage, $sFilter, $sTimeline, $aModules), 'content' => $this->_getPosts('desc', $iStart, $iPerPage, $sFilter, $sTimeline, $aModules), 'view_js_content' => $sJsContent);
        bx_import('BxTemplFormView');
        $oForm = new BxTemplFormView(array());
        $oForm->addCssJs(true, true);
        $this->_oTemplate->addCss(array('forms_adv.css', 'view.css'));
        $this->_oTemplate->addJs(array('main.js', 'view.js'));
        return array($this->_oTemplate->parseHtmlByName('view.html', $aVariables), array(), LoadingBox('bx-wall-view-loading'), false, 'getBlockCaptionMenu');
    }
开发者ID:noormcs,项目名称:studoro,代码行数:64,代码来源:BxWallModule.php

示例5: _getCellSwitcher

 protected function _getCellSwitcher($mixedValue, $sKey, $aField, $aRow)
 {
     $sAttr = $this->_convertAttrs($aField, 'attr_cell', 'bx-def-padding-sec-bottom bx-def-padding-sec-top', isset($aField['width']) ? 'width:' . $aField['width'] : false);
     bx_import('BxTemplFormView');
     $oForm = new BxTemplFormView(array(), $this->_oTemplate);
     $oForm->addCssJs();
     $aInput = array('type' => 'switcher', 'name' => $this->_sObject . '_switch_' . $aRow[$this->_aOptions['field_id']], 'caption' => '', 'attrs' => array('bx_grid_action_single' => 'enable', 'bx_grid_action_confirm' => '', 'bx_grid_action_data' => $aRow[$this->_aOptions['field_id']]), 'value' => $aRow[$this->_aOptions['field_id']], 'checked' => $this->_isSwitcherOn(isset($aRow[$this->_aOptions['field_active']]) ? $aRow[$this->_aOptions['field_active']] : false, $sKey, $aField, $aRow));
     $sSwitcher = $oForm->genInput($aInput);
     return '<td ' . $sAttr . '>' . $sSwitcher . '</td>';
 }
开发者ID:Baloo7super,项目名称:dolphin,代码行数:10,代码来源:BxBaseGrid.php

示例6: serviceViewBlockAccountTimeline

 function serviceViewBlockAccountTimeline($mixed, $iStart = -1, $iPerPage = -1, $sFilter = '', $sTimeline = '', $sType = 'id', $aModules = array())
 {
     $aOwner = $this->_oDb->getUser($mixed, $sType);
     $this->_iOwnerId = $aOwner['id'];
     $aFriends = getMyFriendsEx($this->_iOwnerId, '', '', 'LIMIT 20');
     if (empty($aFriends)) {
         return $this->_oTemplate->getEmpty(true);
     }
     $this->_iOwnerId = array_keys($aFriends);
     $sOwnerId = implode(BX_WALL_DIVIDER_ID, $this->_iOwnerId);
     if ($iStart == -1) {
         $iStart = 0;
     }
     if ($iPerPage == -1) {
         $iPerPage = $this->_oConfig->getPerPage('account');
     }
     if (empty($sFilter)) {
         $sFilter = BX_WALL_FILTER_ALL;
     }
     $aVariables = array('timeline' => $this->_getTimeline($iStart, $iPerPage, $sFilter, $sTimeline, $aModules), 'content' => $this->_getPosts('desc', $iStart, $iPerPage, $sFilter, $sTimeline, $aModules), 'view_js_content' => $this->_oTemplate->getJsCode('view', array('iOwnerId' => $sOwnerId), array('WallOwnerId' => $sOwnerId, 'WallStart' => $iStart, 'WallPerPage' => $iPerPage, 'WallFilter' => $sFilter, 'WallTimeline' => $sTimeline, 'WallModules' => $aModules)));
     bx_import('BxTemplFormView');
     $oForm = new BxTemplFormView(array());
     $oForm->addCssJs(true, true);
     $this->_oTemplate->addCss(array('view.css', 'view_phone.css'));
     $this->_oTemplate->addJs(array('main.js', 'view.js'));
     return array($this->_oTemplate->parseHtmlByName('view.html', $aVariables), array(), LoadingBox('bx-wall-view-loading'), false, 'getBlockCaptionMenu');
 }
开发者ID:boonex,项目名称:dolphin.pro,代码行数:27,代码来源:BxWallModule.php

示例7: PageCodeMain

                            }
                        }
                    }
                }
            }
        }
    }
}
$iLevelId = bx_get('level') !== false ? (int) bx_get('level') : 0;
$iNameIndex = 6;
$_page = array('name_index' => $iNameIndex, 'css_name' => array('settings.css', 'memb_levels.css'), 'js_name' => array('memb_levels.js'), 'header' => _t('_adm_page_cpt_memb_levels'));
$_page_cont[$iNameIndex] = array('page_code_main' => PageCodeMain($aResults, $iLevelId), 'page_code_actions' => bx_get('action') !== false && bx_get('action') == 'actions' && $iLevelId > 0 ? PageCodeActions($iLevelId, $mixedResultActions) : "", 'page_code_prices' => bx_get('action') !== false && bx_get('action') == 'prices' && $iLevelId > 0 ? PageCodePrices($iLevelId, $mixedResultPrices) : "");
// add necessary js and css files
bx_import('BxTemplFormView');
$oForm = new BxTemplFormView(array());
$oForm->addCssJs(true, true);
PageCodeAdmin();
function PageCodeMain($aResults, $iLevelId)
{
    $sTab = bx_get('tab') !== false ? process_db_input(bx_get('tab')) : 'levels';
    $bEdit = bx_get('action') !== false && bx_get('action') == 'edit';
    if ($bEdit) {
        $sTab = 'levels_add';
    }
    $aTopItems = array('adm-mlevels-btn-levels' => array('href' => 'javascript:void(0)', 'onclick' => 'javascript:onChangeType(this)', 'title' => _t('_adm_txt_mlevels_levels'), 'active' => $sTab == 'levels' ? 1 : 0), 'adm-mlevels-btn-levels-add' => array('href' => 'javascript:void(0)', 'onclick' => 'javascript:onChangeType(this)', 'title' => _t('_adm_txt_mlevels_levels_add'), 'active' => $sTab == 'levels_add' ? 1 : 0), 'adm-mlevels-btn-settings' => array('href' => 'javascript:void(0)', 'onclick' => 'javascript:onChangeType(this)', 'title' => _t('_adm_txt_mlevels_settings'), 'active' => $sTab == 'settings' ? 1 : 0));
    $sResult = $GLOBALS['oAdmTemplate']->parseHtmlByName('mlevels.html', array('content_levels' => _getLevelsList(isset($aResults['levels']) ? $aResults['levels'] : true, $sTab == 'levels'), 'content_create' => _getLevelsCreateForm($bEdit ? $iLevelId : 0, $sTab == 'levels_add'), 'content_settings' => _getLevelsSettingsForm(isset($aResults['settings']) ? $aResults['settings'] : true, $sTab == 'settings')));
    return DesignBoxAdmin(_t('_adm_box_cpt_mlevel_memberships'), $sResult, $aTopItems);
}
function _getLevelsList($mixedResult, $bActive = false)
{
    $sSubmitUrl = BX_DOL_URL_ADMIN . 'memb_levels.php?tab=levels';
开发者ID:newton27,项目名称:dolphin.pro,代码行数:31,代码来源:memb_levels.php

示例8: _addJsCss

 protected function _addJsCss()
 {
     parent::_addJsCss();
     $this->_oTemplate->addJs(array('jquery.form.min.js'));
     $this->_oTemplate->addJsTranslation(array('_bx_sites_form_site_input_do_cancel_confirm'));
     $oForm = new BxTemplFormView(array());
     $oForm->addCssJs();
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:8,代码来源:BxSitesGridOverview.php


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