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

PHP GridView类代码示例

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

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



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

示例1: __construct

 public function __construct(View $view)
 {
     $horizontalGridView = new GridView(1, 1);
     $horizontalGridView->setView($view, 0, 0);
     $this->verticalGridView = new GridView(1, 1);
     $this->verticalGridView->setView($horizontalGridView, 0, 0);
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:7,代码来源:InstallView.php


示例2: makeExternalViewForCurrentUser

 public static function makeExternalViewForCurrentUser(View $containedView)
 {
     $horizontalGridView = new GridView(1, 1);
     $containedView->setCssClasses(array_merge($containedView->getCssClasses(), array('AppContent')));
     $horizontalGridView->setView($containedView, 0, 0);
     $verticalGridView = new GridView(1, 1);
     $verticalGridView->setView($horizontalGridView, 0, 0);
     return $verticalGridView;
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:9,代码来源:ZurmoExternalViewUtil.php


示例3: renderListViews

 /**
  * Render a group of lists that contains the search result from GlobalList
  *
  */
 protected function renderListViews()
 {
     $rows = count($this->views);
     $gridView = new GridView($rows, 1);
     $row = 0;
     foreach ($this->views as $view) {
         $gridView->setView($view, $row++, 0);
     }
     return ZurmoHtml::tag('div', array('id' => 'MixedModelsMultipleListsView'), $gridView->render());
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:14,代码来源:MixedModelsSearchAndListView.php


示例4: __construct

 public function __construct(CController $controller, SplashView $splashView)
 {
     $applicationName = ZurmoConfigurationUtil::getByModuleName('ZurmoModule', 'applicationName');
     $header = new HeaderLinksView(array(), array());
     $gridView = new GridView(3, 1);
     $gridView->setView($header, 0, 0);
     $gridView->setView($splashView, 1, 0);
     $gridView->setView(new FooterView(), 2, 0);
     parent::__construct($gridView);
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:10,代码来源:MarketingListsExternalActionsPageView.php


示例5: __construct

 /**
  * @param CController $controller
  * @param MetadataView $listView
  */
 public function __construct(CController $controller, MetadataView $listView)
 {
     $flashMessageView = new FlashMessageView($controller);
     $gridView = new GridView(3, 1);
     $gridView->setView($listView, 0, 0);
     $gridView->setView($flashMessageView, 1, 0);
     $gridView->setView(new FooterView(), 2, 0);
     $this->registerScripts();
     parent::__construct($gridView);
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:14,代码来源:MarketingListsManageSubscriptionsPageView.php


示例6: __construct

 public function __construct(CController $controller, CFormModel $formModel, $extraHeaderContent = null)
 {
     assert('is_string($extraHeaderContent) || $extraHeaderContent == null');
     $loginview = new LoginView($controller, $formModel, $extraHeaderContent);
     $loginview->setCssClasses(array('clearfix', 'background-' . mt_rand(1, 6)));
     $flashMessageView = new FlashMessageView($controller);
     $gridView = new GridView(3, 1);
     $gridView->setView($flashMessageView, 0, 0);
     $gridView->setView($loginview, 1, 0);
     $gridView->setView(new FooterView(false), 2, 0);
     $this->registerScripts();
     parent::__construct($gridView);
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:13,代码来源:LoginPageView.php


示例7: actionDashboardDetails

 public function actionDashboardDetails()
 {
     $params = array('controllerId' => $this->getId(), 'moduleId' => $this->getModule()->getId());
     $gridViewId = 'notUsed';
     $pageVar = 'notUsed';
     $introView = new MarketingDashboardIntroView(get_class($this->getModule()));
     $actionBarView = new SecuredActionBarForMarketingSearchAndListView('default', 'marketing', new EmailTemplate(), $gridViewId, $pageVar, false, 'MarketingDashboardLink', $introView);
     $marketingDashboardView = new MarketingDashboardView($this->getId(), $this->getModule()->getId(), 'MarketingDashboard', $params);
     $marketingDashboardView->setCssClasses(array('clearfix'));
     $gridView = new GridView(2, 1);
     $gridView->setView($actionBarView, 0, 0);
     $gridView->setView($marketingDashboardView, 1, 0);
     $breadcrumbLinks = static::getDashboardBreadcrumbLinks();
     $view = new MarketingPageView(MarketingDefaultViewUtil::makeViewWithBreadcrumbsForCurrentUser($this, $gridView, $breadcrumbLinks, 'MarketingBreadCrumbView'));
     echo $view->render();
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:16,代码来源:DefaultController.php


示例8: __construct

 /**
  * @param string $controllerId
  * @param string $moduleId
  * @param array $settingsMenuItems
  * @param array $userMenuItems
  * @param array $shortcutsCreateMenuItems
  * @param array $moduleNamesAndLabels
  * @param string $sourceUrl
  * @param string $applicationName
  */
 public function __construct($controllerId, $moduleId, $settingsMenuItems, $userMenuItems, $shortcutsCreateMenuItems, $moduleNamesAndLabels, $sourceUrl, $applicationName)
 {
     assert('is_string($controllerId)');
     assert('is_string($moduleId)');
     assert('is_array($settingsMenuItems)');
     assert('is_array($userMenuItems)');
     assert('is_array($shortcutsCreateMenuItems)');
     assert('is_array($moduleNamesAndLabels)');
     assert('is_string($sourceUrl)');
     assert('is_string($applicationName) || $applicationName == null');
     $shortcutsCreateMenuView = new ShortcutsCreateMenuView($controllerId, $moduleId, $shortcutsCreateMenuItems);
     $this->verticalGridView = new GridView(2, 1);
     $this->verticalGridView->setView(new HeaderLinksView($settingsMenuItems, $userMenuItems, $applicationName), 0, 0);
     $globalSearchAndShortcutsCreateMenuView = new GlobalSearchAndShortcutsCreateMenuView($moduleNamesAndLabels, $sourceUrl, $shortcutsCreateMenuView);
     $horizontalGridView = new GridView(1, 1);
     $horizontalGridView->setView($globalSearchAndShortcutsCreateMenuView, 0, 0);
     $this->verticalGridView->setView($horizontalGridView, 1, 0);
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:28,代码来源:HeaderView.php


示例9: renderLeftAndRightGridViewContent

 protected function renderLeftAndRightGridViewContent($leftTopView, $leftBottomView, $rightTopView, $renderRightSide)
 {
     assert('$leftTopView instanceof View');
     assert('$leftBottomView instanceof View');
     assert('$rightTopView instanceof View || $rightTopView == null');
     assert('is_bool($renderRightSide)');
     $actionView = new ActionBarForUserEditAndDetailsView($this->controllerId, $this->moduleId, $this->params['relationModel'], 'DetailsLink');
     $content = $actionView->render();
     $leftVerticalGridView = new GridView(2, 1);
     $leftVerticalGridView->setView($leftTopView, 0, 0);
     $leftVerticalGridView->setView($leftBottomView, 1, 0);
     $content .= $leftVerticalGridView->render();
     if ($renderRightSide) {
         $rightVerticalGridView = new GridView(1, 1);
         $rightVerticalGridView->setView($rightTopView, 0, 0);
         $content .= $rightVerticalGridView->render();
     }
     return $content;
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:19,代码来源:UserDetailsAndRelationsView.php


示例10: __construct

 public function __construct($controllerId, $moduleId, RedBeanModel $listModel, $moduleName, CDataProvider $dataProvider, $activeActionElementType = null)
 {
     assert('is_string($controllerId)');
     assert('is_string($moduleId)');
     assert('$activeActionElementType == null || is_string($activeActionElementType)');
     parent::__construct(2, 1);
     $listView = new LeaderboardListView($controllerId, $moduleId, get_class($listModel), $dataProvider, array());
     $actionBarView = new LeaderboardActionBarForListView($controllerId, $moduleId, $listModel, $listView->getGridViewId(), $dataProvider->getPagination()->pageVar, $listView->getRowsAreSelectable(), $activeActionElementType);
     $this->setView($actionBarView, 0, 0);
     $this->setView($listView, 1, 0);
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:11,代码来源:LeaderboardActionBarAndListView.php


示例11: actionDashboardDetails

 public function actionDashboardDetails()
 {
     $params = array('controllerId' => $this->getId(), 'moduleId' => $this->getModule()->getId());
     $gridViewId = 'notUsed';
     $pageVar = 'notUsed';
     $introCookieValue = Yii::app()->request->cookies[MarketingDashboardIntroView::resolveCookieId()];
     $actionBarView = new SecuredActionBarForMarketingSearchAndListView('default', 'marketing', new EmailTemplate(), $gridViewId, $pageVar, false, 'MarketingDashboardLink');
     $actionBarView->setIntroCookieValue($introCookieValue);
     $introView = new MarketingDashboardIntroView($introCookieValue);
     $marketingDashboardView = new MarketingDashboardView($this->getId(), $this->getModule()->getId(), 'MarketingDashboard', $params);
     $marketingDashboardView->setCssClasses(array('clearfix'));
     //todo: don't show introView if hidden
     $gridView = new GridView(3, 1);
     $gridView->setView($actionBarView, 0, 0);
     $gridView->setView($introView, 1, 0);
     $gridView->setView($marketingDashboardView, 2, 0);
     $breadcrumbLinks = static::getDashboardBreadcrumbLinks();
     $view = new MarketingPageView(MarketingDefaultViewUtil::makeViewWithBreadcrumbsForCurrentUser($this, $gridView, $breadcrumbLinks, 'MarketingBreadCrumbView'));
     echo $view->render();
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:20,代码来源:DefaultController.php


示例12: __construct

 public function __construct($controllerId, $moduleId, $module, ModuleForm $moduleForm, $title)
 {
     parent::__construct(2, 1);
     $this->setView(new ActionBarForDesignerModuleView($controllerId, $moduleId, $module, 'DesignerGeneralMenu'), 0, 0);
     $moduleEditViewClassName = get_class($module) . 'EditView';
     $this->setView(new $moduleEditViewClassName($controllerId, $moduleId, $moduleForm, $title), 1, 0);
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:7,代码来源:ActionBarAndModuleEditView.php


示例13: __construct

 public function __construct($controllerId, $moduleId, User $user, ConfigurationForm $formModel)
 {
     parent::__construct(2, 1);
     $this->setView(new ActionBarForUserEditAndDetailsView($controllerId, $moduleId, $user, 'UserConfigurationMenu'), 0, 0);
     $title = strval($user) . ': ' . Zurmo::t('ConfigurationModule', 'Configuration');
     $this->setView(new UserConfigurationEditView($controllerId, $moduleId, $formModel, $title), 1, 0);
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:7,代码来源:UserActionBarAndConfigurationEditView.php


示例14: __construct

 public function __construct($controllerId, $moduleId)
 {
     parent::__construct(2, 1);
     $moduleDisplayName = LeadsModule::getModuleLabelByTypeAndLanguage('Plural');
     $this->setView(new ActionBarForDesignerModuleView($controllerId, $moduleId, Yii::app()->getModule('leads'), 'DesignerFieldsLink'), 0, 0);
     $this->setView(new AttributesRedirectToContactsView($controllerId, $moduleId), 1, 0);
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:7,代码来源:LeadsModuleAttributesListView.php


示例15: __construct

 public function __construct($controllerId, $moduleId, UserPasswordForm $userForm)
 {
     parent::__construct(2, 1);
     $this->setView(new ActionBarForUserEditAndDetailsView($controllerId, $moduleId, $userForm->getModel(), 'ChangePasswordMenu'), 0, 0);
     $title = strval($userForm) . ': ' . Zurmo::t('UsersModule', 'Change Password');
     $this->setView(new UserChangePasswordView($controllerId, $moduleId, $userForm, $title), 1, 0);
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:7,代码来源:UserActionBarAndChangePasswordView.php


示例16: __construct

 public function __construct($controllerId, $moduleId, User $user, UserNotificationConfigurationForm $notificationConfigurationForm)
 {
     parent::__construct(2, 1);
     $this->setView(new ActionBarForUserEditAndDetailsView($controllerId, $moduleId, $user, 'UserConfigurationEditLink'), 0, 0);
     $title = strval($user) . ': ' . Zurmo::t('Core', 'Notifications Configuration');
     $this->setView(new UserNotificationConfigurationEditView('Edit', $controllerId, $moduleId, $notificationConfigurationForm, $title), 1, 0);
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:7,代码来源:UserActionBarAndNotificationConfigurationEditView.php


示例17: __construct

 public function __construct($controllerId, $moduleId, RedBeanModel $model, $moduleName)
 {
     parent::__construct(2, 1);
     $this->setView(new ActionBarForUserEditAndDetailsView($controllerId, $moduleId, $model, 'UserEditMenu'), 0, 0);
     $editViewClassName = get_class($model) . 'EditView';
     $this->setView(new $editViewClassName($controllerId, $moduleId, $model), 1, 0);
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:7,代码来源:UserActionBarAndEditView.php


示例18: init

 public function init()
 {
     parent::init();
     if ($this->rankKey === null) {
         if ($this->dataProvider->getItemCount() > 0) {
             $data = $this->dataProvider->data[0];
             $keys = array_keys($data instanceof CActiveRecord ? $data->attributes : $data);
             $this->rankKey = isset($data['rank']) ? 'rank' : $keys[0];
         }
     }
     $hasRankColumn = false;
     foreach ($this->columns as $column) {
         if ($column instanceof RankColumn) {
             $hasRankColumn = true;
             break;
         }
     }
     if ($hasRankColumn === false) {
         array_unshift($this->columns, Yii::createComponent(array('class' => 'RankColumn', 'value' => '$displayRank', 'header' => Yii::t('statistics', 'Rank')), $this));
     }
     $this->lastRank = $this->rank;
     if ($this->count != $this->rank && $this->rankKey !== null) {
         $this->rank++;
         if ($this->dataProvider->getItemCount() > 0) {
             $data = $this->dataProvider->data[0];
             $this->lastRankValue = CHtml::value($data, $this->rankKey);
         }
     }
 }
开发者ID:Baiqiang,项目名称:fewestmov.es,代码行数:29,代码来源:RankGridView.php


示例19: __construct

 public function __construct($controllerId, $moduleId, $module, $attributeTypeName, $modelClassName, AttributeForm $attributeForm, $title)
 {
     parent::__construct(2, 1);
     $this->setView(new ActionBarForDesignerModuleView($controllerId, $moduleId, $module, 'DesignerFieldsMenu'), 0, 0);
     $attributeTypeEditViewClassName = $attributeTypeName . 'AttributeEditView';
     $this->setView(new $attributeTypeEditViewClassName($controllerId, $moduleId, $attributeForm, $title), 1, 0);
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:7,代码来源:ActionBarAndAttributeEditView.php


示例20: __construct

 public function __construct($controllerId, $moduleId, User $user, UserEmailConfigurationForm $emailAccountForm)
 {
     parent::__construct(2, 1);
     $this->setView(new ActionBarForUserEditAndDetailsView($controllerId, $moduleId, $user, 'UserConfigurationEditLink'), 0, 0);
     $title = strval($user) . ': ' . Zurmo::t('UsersModule', 'Email Configuration');
     $this->setView(new UserEmailConfigurationEditView($controllerId, $moduleId, $emailAccountForm, $title), 1, 0);
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:7,代码来源:UserActionBarAndEmailConfigurationEditView.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP Group类代码示例发布时间:2022-05-23
下一篇:
PHP GridRow类代码示例发布时间: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