• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CJuiWidget类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: init

 /**
  * 初始化
  * @see CJuiWidget::init()
  */
 public function init()
 {
     $path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'assets';
     $this->baseUrl = Yii::app()->getAssetManager()->publish($path);
     $this->themeUrl = $this->scriptUrl = $this->baseUrl;
     parent::init();
     $this->htmlOptions['id'] = $this->id;
     $this->htmlOptions['class'] .= ' tree';
     if ($this->iconsCss) {
         $this->cssFile[] = 'zTreeIcons.css';
     }
     if ($this->treeNodeKey !== null) {
         $this->options['treeNodeKey'] = $this->treeNodeKey;
     }
     if ($this->treeNodeParentKey !== null) {
         $this->options['treeNodeParentKey'] = $this->treeNodeParentKey;
     }
     $this->options['isSimpleData'] = $this->isSimpleData;
     if ($this->width !== null) {
         $this->backgroundHtmlOptions['style'] .= " width:{$this->width}px;";
     }
     if ($this->height !== null) {
         $this->backgroundHtmlOptions['style'] .= " height:{$this->height}px;";
     }
     if ($this->backgroundId['id'] === null) {
         $this->backgroundId = isset($this->backgroundHtmlOptions['id']) ? $this->backgroundHtmlOptions['id'] : $this->id . 'background';
     }
     $this->backgroundHtmlOptions['id'] = $this->backgroundId;
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:33,代码来源:zTree.php


示例2: init

 /**
  * Initialize the JNotify Widget
  */
 public function init()
 {
     $this->registerClientScripts();
     $this->themeUrl = Yii::app()->themeManager->baseUrl;
     $this->theme = Yii::app()->theme->name;
     parent::init();
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:10,代码来源:JNotify.php


示例3: run

 public function run()
 {
     $this->publishAssets();
     $this->registerClientScripts();
     Yii::app()->getClientScript()->registerScript($this->id . '-js', "jQuery('#{$this->id}').checkboxTree(" . json_encode($this->options) . ")", CClientScript::POS_READY);
     parent::run();
     echo '</ul>';
 }
开发者ID:Gameonn,项目名称:JS_API,代码行数:8,代码来源:ECheckBoxTree.php


示例4: init

 /**
  * Renders the open tag of the draggable element.
  * This method also registers the necessary javascript code.
  */
 public function init()
 {
     parent::init();
     $id = $this->getId();
     $this->htmlOptions['id'] = $id;
     $options = empty($this->options) ? '' : CJavaScript::encode($this->options);
     Yii::app()->getClientScript()->registerScript(__CLASS__ . '#' . $id, "jQuery('#{$id}').draggable({$options});");
     echo CHtml::openTag($this->tagName, $this->htmlOptions) . "\n";
 }
开发者ID:BGCX261,项目名称:zii-svn-to-git,代码行数:13,代码来源:CJuiDraggable.php


示例5: init

 /**
  * Publishes the required assets
  */
 public function init()
 {
     parent::init();
     if (!isset($this->htmlOptions['id']) && !isset($this->fileKey)) {
         $this->htmlOptions['id'] = \CHtml::modelName($this->model);
     } elseif (!isset($this->htmlOptions['id']) && isset($this->fileKey)) {
         $this->htmlOptions['id'] = \CHtml::modelName($this->model) . $this->fileKey;
     }
     if (!isset($this->htmlOptions['enctype'])) {
         $this->htmlOptions['enctype'] = 'multipart/form-data';
     }
 }
开发者ID:hanterrian,项目名称:xupload-fpm-tmp,代码行数:15,代码来源:XUpload.php


示例6: init

 /**
  * Renders the open tag of the resizable element.
  * This method also registers the necessary javascript code.
  */
 public function init()
 {
     parent::init();
     $id = $this->getId();
     if (isset($this->htmlOptions['id'])) {
         $id = $this->htmlOptions['id'];
     } else {
         $this->htmlOptions['id'] = $id;
     }
     $options = CJavaScript::encode($this->options);
     Yii::app()->getClientScript()->registerScript(__CLASS__ . '#' . $id, "jQuery('#{$id}').resizable({$options});");
     echo CHtml::openTag($this->tagName, $this->htmlOptions) . "\n";
 }
开发者ID:gilyaev,项目名称:framework-bench,代码行数:17,代码来源:CJuiResizable.php


示例7: init

 /**
 * Initializes the widget.
 * This method registers all needed client scripts
 */
 public function init()
 {
     parent::init();
     $this->baseUrl = CHtml::asset(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'assets');
     $url = $this->cssFile !== false ? $this->cssFile : $this->baseUrl . '/css/juiBlockUI.css';
     $blockUI = YII_DEBUG ? '/js/jquery.blockUI.js' : '/js/jquery.blockUI.min.js';
     $cs = Yii::app()->getClientScript();
     $cs->registerScriptFile($this->baseUrl . $blockUI);
     if ($this->useExternalStylesheet) {
         $cs->registerCssFile($url);
         $this->addScriptLines(array('$.blockUI.defaults.css = {}'));
     }
 }
开发者ID:hipogea,项目名称:zega,代码行数:17,代码来源:JuiBlockUI.php


示例8: init

 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     //get comments module
     $commentsModule = Yii::app()->getModule('comments');
     //get model config for comments module
     $this->_config = $commentsModule->getModelConfig($this->model);
     if (count($this->_config) > 0) {
         $this->registeredOnly = isset($this->_config['registeredOnly']) ? $this->_config['registeredOnly'] : $this->registeredOnly;
         $this->useCaptcha = isset($this->_config['useCaptcha']) ? $this->_config['useCaptcha'] : $this->useCaptcha;
         $this->postCommentAction = isset($this->_config['postCommentAction']) ? $this->_config['postCommentAction'] : $this->postCommentAction;
     }
     $this->registerScripts();
 }
开发者ID:awecode,项目名称:awecms,代码行数:17,代码来源:ECommentsBaseWidget.php


示例9: init

 /**
  * Renders the open tag of the dialog.
  * This method also registers the necessary javascript code.
  */
 public function init()
 {
     parent::init();
     $cs = Yii::app()->getClientScript();
     $scriptUrl = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.modules.dashboard.assets'));
     $cs->registerCssFile($scriptUrl . '/jgrowl/jquery.jgrowl.css');
     $cs->registerScriptFile($scriptUrl . '/jgrowl/jquery.jgrowl.js');
     $cs->registerScriptFile($scriptUrl . '/js/json2.js');
     $cs->registerCssFile($scriptUrl . '/css/dashboard.css');
     $cs->registerScriptFile($scriptUrl . '/js/dashboard.js');
     $param['baseUrl'] = Yii::app()->createUrl('dashboard/default') . '/';
     $param = CJavaScript::encode($param);
     $js = "jQuery.dashboard({$param});";
     $cs->registerScript(__CLASS__ . '#dashboard', $js);
     $id = $this->getId();
     if (isset($this->htmlOptions['id'])) {
         $id = $this->htmlOptions['id'];
     } else {
         $this->htmlOptions['id'] = $id;
     }
     echo CHtml::openTag($this->tagName, $this->htmlOptions) . "\n";
     $this->render('dashboard', array('portlets' => $this->portlets, 'allPortlets' => $this->allPortlets));
 }
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:27,代码来源:DWidget.php


示例10: registerScripts

 /**
  * Registers the JS and CSS Files
  *
  * @return void
  */
 protected function registerScripts()
 {
     parent::registerCoreScripts();
     $basePath = Yii::getPathOfAlias('application.extensions.emultiselect.assets');
     $baseUrl = Yii::app()->getAssetManager()->publish($basePath);
     $cs = Yii::app()->getClientScript();
     $cs->registerCssFile($baseUrl . '/' . 'ui.multiselect.css');
     $this->scriptUrl = $baseUrl;
     $this->registerScriptFile('ui.multiselect.js');
     $params = array();
     if ($this->sortable) {
         $params[] = "sortable:true";
     } else {
         $params[] = "sortable:false";
     }
     if ($this->searchable) {
         $params[] = "searchable:true";
     } else {
         $params[] = "searchable:false";
     }
     $parameters = '{' . implode(',', $params) . '}';
     Yii::app()->clientScript->registerScript('EMultiSelect', '$(".multiselect").multiselect(' . $parameters . ');', CClientScript::POS_READY);
 }
开发者ID:rusli-nasir,项目名称:smsempresayii,代码行数:28,代码来源:EMultiSelect.php


示例11: init

    /**
     * Renders the open tag of the dialog.
     * This method also registers the necessary javascript code.
     */
    public function init()
    {
        //js part
        Yii::app()->clientScript->registerScript('ui_dialog_ace_extend', ' 
				$.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, {
					_title: function(title) {
						var $title = this.options.title || "&nbsp;"
						if( ("title_html" in this.options) && this.options.title_html == true )
							title.html($title);
						else title.text($title);
					}
				}));

            ');
        $ace_link = Yii::app()->assetManager->publish(Yii::app()->params['ace_assets'], false, -1, false);
        // forceCopy
        $this->scriptUrl = $ace_link . '/js';
        //$this->scriptFile = array('jquery.ui.touch-punch.min.js'); // don't need it yet
        $this->themeUrl = $ace_link;
        $this->theme = 'css';
        //$this->cssFile = 'jquery-ui-1.10.3.full.min.css';
        parent::init();
        //set id
        $id = $this->getId();
        if (isset($this->htmlOptions['id'])) {
            $id = $this->htmlOptions['id'];
        } else {
            $this->htmlOptions['id'] = $id;
        }
        $this->registreSelector();
        //options
        $this->options['title'] = $this->createTilte();
        $this->options['title_html'] = true;
        $options = CJavaScript::encode($this->options);
        Yii::app()->getClientScript()->registerScript(__CLASS__ . '#' . $id, "jQuery('#{$id}').dialog({$options});");
        echo CHtml::openTag($this->tagName, $this->htmlOptions) . "\n";
    }
开发者ID:uldisn,项目名称:ace,代码行数:41,代码来源:CJuiAceDialog.php


示例12: init

 public function init()
 {
     assert('!empty($this->layoutType)');
     assert('!empty($this->uniqueLayoutId)');
     assert('!empty($this->moduleId)');
     assert('!empty($this->saveUrl)');
     assert('is_bool($this->collapsible)');
     assert('is_bool($this->movable)');
     assert('in_array($this->layoutType, array("100", "50,50", "75,25"))');
     // Not Coding Standard
     $this->themeUrl = Yii::app()->baseUrl . '/themes';
     $this->theme = Yii::app()->theme->name;
     $this->registerJuiPortletsScripts();
     parent::init();
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:15,代码来源:JuiPortlets.php


示例13: __construct

 public function __construct()
 {
     $this->attachBehaviors($this->behaviors());
     parent::__construct();
 }
开发者ID:nizsheanez,项目名称:blog.ru,代码行数:5,代码来源:JuiWidget.php


示例14: registerCoreScripts

 /**
  * Registers the core script files.
  * This method overrides the parent implementation by registering the cookie plugin when cookie option is used.
  */
 protected function registerCoreScripts()
 {
     parent::registerCoreScripts();
     if (isset($this->options['cookie'])) {
         Yii::app()->getClientScript()->registerCoreScript('cookie');
     }
 }
开发者ID:gilyaev,项目名称:framework-bench,代码行数:11,代码来源:CJuiTabs.php


示例15: init

 public function init()
 {
     parent::init();
 }
开发者ID:Aldanzein,项目名称:bursa-kerja,代码行数:4,代码来源:S3Slider.php


示例16: init

 /**
  *  Initialize the class
  */
 public function init()
 {
     assert('$this->designerLayoutAttributes instanceof DesignerLayoutAttributes');
     assert('is_bool($this->canAddRows)');
     assert('is_bool($this->canMoveRows)');
     assert('is_bool($this->canRemoveRows)');
     assert('is_bool($this->canAddPanels)');
     assert('is_bool($this->canModifyPanelSettings)');
     assert('is_bool($this->canRemovePanels)');
     assert('is_bool($this->canMovePanels)');
     assert('is_bool($this->canModifyCellSettings)');
     assert('is_bool($this->canMergeAndSplitCells)');
     assert('is_bool($this->mergeRowAndAttributePlacement)');
     assert('is_int($this->maxCellsPerRow)');
     assert('is_bool($this->showRequiredAttributeSpan)');
     assert('!empty($this->viewMetadata["global"]["panels"])');
     if ($this->canMoveRows == false) {
         assert('!$this->canAddRows');
     }
     if ($this->canMovePanels == false) {
         assert('!$this->canAddPanels');
     }
     $this->registerScripts();
     parent::init();
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:28,代码来源:DesignerLayoutEditor.php


示例17: init

 public function init()
 {
     parent::init();
     $this->getSessionTimeout();
     $this->countdown = 60;
     $this->title = Zurmo::t('Core', 'Your Zurmo session is about to expire?', LabelUtil::getTranslationParamsForAllModules());
     $this->message = Zurmo::t('Core', 'You will be logged out in {0} seconds.');
     $this->question = Zurmo::t('Core', 'Do you want to stay signed in?');
     $this->keepAliveButtonText = Zurmo::t('Core', 'Yes, Keep me signed in');
     $this->signOutButtonText = Zurmo::t('Core', 'No, Sign me out');
     $this->keepAliveUrl = Yii::app()->request->url;
     $this->logoutUrl = Yii::app()->baseUrl . '/index.php/zurmo/default/logout';
     $this->logoutRedirectUrl = Yii::app()->baseUrl . '/index.php/zurmo/default/logout';
     $this->countdownCookieName = 'Countdown_' . Yii::app()->request->getHostInfo() . Yii::app()->baseUrl;
     $cs = Yii::app()->getClientScript();
     $baseScriptUrl = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.core.widgets.assets'));
     $cs->registerScriptFile($baseScriptUrl . '/sessionTimeout/timeout-dialog.js', ClientScript::POS_HEAD);
 }
开发者ID:KulturedKitsch,项目名称:kulturedkitsch.info,代码行数:18,代码来源:SessionTimeout.php


示例18: init

 public function init()
 {
     $this->attachBehaviors($this->behaviors());
     parent::init();
 }
开发者ID:nizsheanez,项目名称:alp.ru,代码行数:5,代码来源:JuiWidget.php


示例19: init

 public function init()
 {
     $this->cache_id = get_class($this);
     $this->attachBehaviors($this->behaviors());
     parent::init();
 }
开发者ID:nizsheanez,项目名称:kur.ru,代码行数:6,代码来源:JuiWidget.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CKEditor类代码示例发布时间:2022-05-23
下一篇:
PHP CJs类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap