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


PHP ZurmoHtml::openTag方法代码示例

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


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

示例1: run

 /**
  * Run this widget.
  * This method registers necessary javascript and renders the needed HTML code.
  */
 public function run()
 {
     $id = $this->getId();
     if (isset($this->htmlOptions['id'])) {
         $id = $this->htmlOptions['id'];
     } else {
         $this->htmlOptions['id'] = $id;
     }
     if (empty($this->options)) {
         $options = '';
     } else {
         $options = CJavaScript::encode($this->options);
     }
     if ($this->baseInputNameForSortableCollection != null) {
         echo ZurmoHtml::hiddenField($this->baseInputNameForSortableCollection);
     }
     Yii::app()->getClientScript()->registerScript(__CLASS__ . '#' . $id, "jQuery('#{$id}').sortable({$options});");
     echo ZurmoHtml::openTag($this->tagName, $this->htmlOptions) . "\n";
     if (empty($this->items) && $this->showEmptyList) {
         echo '<li></li>' . "\n";
     }
     foreach ($this->items as $id => $data) {
         echo strtr($this->itemTemplate, array_merge(array('{id}' => $id), $data)) . "\n";
     }
     echo ZurmoHtml::closeTag($this->tagName);
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:30,代码来源:JuiSortable.php

示例2: render

 public function render()
 {
     $content = ZurmoHtml::openTag('div', array('class' => 'default-button'));
     $content .= parent::render();
     $content .= ZurmoHtml::closeTag('div');
     return $content;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:7,代码来源:AddPortletAjaxLinkActionElement.php

示例3: renderContent

 protected function renderContent()
 {
     $content = $this->renderTitleContent();
     $content .= '<ul class="configuration-list">';
     $modules = Module::getModuleObjects();
     $moduleClassNamesAndLabels = array();
     foreach ($modules as $module) {
         $moduleTreeMenuItems = $module->getDesignerMenuItems();
         if ($module->isEnabled() && !empty($moduleTreeMenuItems)) {
             $moduleClassNamesAndLabels[get_class($module)] = $module::getModuleLabelByTypeAndLanguage('Plural');
         }
     }
     asort($moduleClassNamesAndLabels);
     foreach ($moduleClassNamesAndLabels as $moduleClassName => $label) {
         if (RightsUtil::canUserAccessModule($moduleClassName, Yii::app()->user->userModel)) {
             $route = $this->moduleId . '/' . $this->controllerId . '/modulesMenu/';
             $content .= ZurmoHtml::openTag('li');
             $content .= '<h4>' . $label . '</h4>';
             $content .= ZurmoHtml::link(ZurmoHtml::wrapLabel(Zurmo::t('Core', 'Configure')), Yii::app()->createUrl($route, array('moduleClassName' => $moduleClassName)), array('class' => 'white-button'));
             $content .= ZurmoHtml::closeTag('li');
         }
     }
     $content .= '</ul>';
     return $content;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:25,代码来源:DesignerPageMenuView.php

示例4: render

 /**
  * @return string
  */
 public function render()
 {
     $content = ZurmoHtml::openTag('div', $this->resolveHtmlOptionsForRendering());
     $content .= ZurmoHtml::link($this->resolveLabelAndWrap(), '#', array('class' => 'button-action'));
     $content .= ZurmoHtml::closeTag('div');
     return $content;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:10,代码来源:TaskLinkActionElement.php

示例5: renderEditableByAttribute

 protected function renderEditableByAttribute($attribute)
 {
     $content = ZurmoHtml::openTag('div', array('class' => 'multi-select-checkbox-input'));
     $content .= $this->renderEditableCheckBoxByAttribute($attribute);
     $content .= $this->form->labelEx($this->model, $attribute, array('for' => $this->getEditableInputId($attribute)));
     $content .= ZurmoHtml::closeTag('div');
     return $content;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:8,代码来源:UpdateContactLatestActivityDateTimeElement.php

示例6: renderExpandableRow

 /**
  * @param bean $row
  * @param $id
  */
 protected function renderExpandableRow($row, $id)
 {
     $content = ZurmoHtml::openTag('tr', array('style' => 'display:none;'));
     $content .= ZurmoHtml::openTag('td', array('class' => 'hasDrillDownContent', 'colspan' => count($this->columns)));
     $content .= ZurmoHtml::tag('div', array('class' => 'drillDownContent', 'id' => 'drillDownContentFor-' . $id));
     $content .= ZurmoHtml::closeTag('td');
     $content .= ZurmoHtml::closeTag('tr');
     return $content;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:13,代码来源:CampaignItemsExtendedGridView.php

示例7: render

 public function render()
 {
     $content = ZurmoHtml::openTag('div', array('class' => 'default-button'));
     $label = ZurmoHtml::tag('i', array('class' => $this->params['iconClass']), null);
     $label .= ZurmoHtml::tag('span', array('class' => 'button-label'), $this->getLabel());
     $content .= $ajaxLink = ZurmoHtml::ajaxLink($label, $this->getDefaultRoute(), $this->getAjaxLinkOptions(), $this->getHtmlOptions());
     $content .= ZurmoHtml::closeTag('div');
     return $content;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:9,代码来源:AuditEventsModalListLinkActionElement.php

示例8: render

 public function render()
 {
     $id = HeaderLinksView::USER_GAME_DASHBOARD_LINK_ID;
     $content = ZurmoHtml::openTag('div', array('class' => 'default-button'));
     $label = ZurmoHtml::tag('i', array('class' => $this->params['iconClass']), null);
     $label .= ZurmoHtml::tag('span', array('class' => 'button-label'), $this->getLabel());
     $content .= $ajaxLink = ZurmoHtml::ajaxLink($label, $this->getDefaultRoute(), HeaderLinksView::resolveAjaxOptionsForGameDashboardModel($id), $this->getHtmlOptions());
     $content .= ZurmoHtml::closeTag('div');
     return $content;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:10,代码来源:GameDashboardLinkActionElement.php

示例9: renderContent

 protected function renderContent()
 {
     $url = $this->getCreateMeetingUrl();
     $content = ZurmoHtml::openTag('div', array('class' => $this->getIconName()));
     $content .= $this->getMessageContent();
     if (RightsUtil::doesUserHaveAllowByRightName('MeetingsModule', MeetingsModule::getCreateRight(), Yii::app()->user->userModel)) {
         $content .= ZurmoHtml::link(ZurmoHtml::wrapLabel($this->getCreateLinkDisplayLabel()), $url, array('class' => 'z-button green-button'));
     }
     $content .= ZurmoHtml::closeTag('div');
     return $content;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:11,代码来源:NoMeetingsYetView.php

示例10: renderMenuRecursive

 protected function renderMenuRecursive($items)
 {
     foreach ($items as $item) {
         $liClose = null;
         $rendered = false;
         if (!array_key_exists('renderHeader', $item) || $item['renderHeader']) {
             $rendered = true;
             $liClose = ZurmoHtml::closeTag('li') . "\n";
             $liOptions = array();
             if (isset($item['itemOptions'])) {
                 $liOptions = $item['itemOptions'];
             }
             echo ZurmoHtml::openTag('li', $liOptions);
             if (isset($item['linkOptions'])) {
                 $htmlOptions = $item['linkOptions'];
             } else {
                 $htmlOptions = array();
             }
             if (!empty($item['label'])) {
                 $resolvedLabelContent = $this->renderLabelPrefix() . ZurmoHtml::tag('span', array(), $item['label']);
             } else {
                 $resolvedLabelContent = static::resolveAndGetSpanAndDynamicLabelContent($item);
             }
             if (isset($item['ajaxLinkOptions'])) {
                 echo ZurmoHtml::ajaxLink($resolvedLabelContent, $item['url'], $item['ajaxLinkOptions'], $htmlOptions);
             } elseif (isset($item['url'])) {
                 echo ZurmoHtml::link($this->renderLinkPrefix() . $resolvedLabelContent, $item['url'], $htmlOptions);
             } else {
                 if (!empty($item['label'])) {
                     echo ZurmoHtml::link($resolvedLabelContent, "javascript:void(0);", $htmlOptions);
                 } else {
                     echo $resolvedLabelContent;
                 }
             }
         }
         if (isset($item['items']) && count($item['items'])) {
             $nestedUlOpen = null;
             $nestedUlClose = null;
             if ($rendered) {
                 $nestedUlOpen = "\n" . ZurmoHtml::openTag('ul', $this->submenuHtmlOptions) . "\n";
                 $nestedUlClose = ZurmoHtml::closeTag('ul') . "\n";
             }
             echo $nestedUlOpen;
             $this->renderMenuRecursive($item['items']);
             echo $nestedUlClose;
         }
         echo $liClose;
     }
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:49,代码来源:MinimalDynamicLabelMbMenu.php

示例11: renderSelectLink

 protected function renderSelectLink()
 {
     if (!$this->shouldRenderSelectLink) {
         return null;
     }
     $cs = Yii::app()->getClientScript();
     $cs->registerCoreScript('bbq');
     $cs->registerScriptFile(Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.core.elements.assets')) . '/Modal.js', CClientScript::POS_END);
     $this->registerSelectLinkScripts();
     $content = ZurmoHtml::openTag('div', array('class' => 'has-model-select'));
     $content .= ZurmoHtml::hiddenField($this->getIdForHiddenSelectLinkField());
     $content .= ZurmoHtml::ajaxLink('<span class="model-select-icon"></span>', Yii::app()->createUrl($this->getSourceUrlForSelectLink(), $this->getSelectLinkUrlParams()), $this->resolveAjaxOptionsForSelectingModel(), array('id' => $this->getWidgetId() . '-select-link'));
     $content .= ZurmoHtml::closeTag('div');
     return $content;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:15,代码来源:AutoCompleteTextElement.php

示例12: renderForm

 protected function renderForm()
 {
     list($form, $formStart) = $this->controller->renderBeginWidget('ZurmoActiveForm', array('id' => 'image-import-form', 'action' => Yii::app()->controller->createUrl('imageModel/uploadFromUrl'), 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false, 'beforeValidate' => 'js:$(this).beforeValidateAction', 'afterValidate' => 'js:$(this).afterValidateAjaxAction', 'afterValidateAjax' => $this->renderPreviewImportedImageScript())));
     $content = $formStart;
     $content .= $form->labelEx($this->formModel, 'url');
     $content .= ZurmoHtml::openTag('div', array('class' => 'import-url-field'));
     $content .= $form->urlField($this->formModel, 'url');
     $content .= $form->error($this->formModel, 'url');
     $content .= ZurmoHtml::closeTag('div');
     $linkOptions = array('onclick' => "\$(this).addClass('attachLoadingTarget').closest('form').submit();" . "\$(this).makeOrRemoveLoadingSpinner(true, \$(this), 'dark');", 'class' => 'secondary-button');
     $content .= ZurmoHtml::tag('div', array('id' => 'import-image-hidden-div', 'class' => Redactor::LINK_FOR_INSERT_CLASS, 'style' => 'display:none;'), '');
     $spinner = ZurmoHtml::tag('span', array('class' => 'z-spinner'));
     $label = ZurmoHtml::tag('span', array('class' => 'z-label'), Zurmo::t('ZurmoModule', 'Import'));
     $content .= ZurmoHtml::link($spinner . $label, "#", $linkOptions);
     $content .= $this->controller->renderEndWidget();
     return $content;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:17,代码来源:ImageFilesImportFromUrlView.php

示例13: render

 /**
  * @return string
  */
 public function render()
 {
     $kanbanBoardClass = 'default-button';
     if ($this->getActive() == static::TYPE_KANBAN_BOARD) {
         $kanbanBoardClass .= ' active';
     }
     $content = ZurmoHtml::openTag('div', array('class' => $kanbanBoardClass));
     $content .= ZurmoHtml::link($this->resolveLabelForKanbanBoard(), $this->getKanbanBoardUrl(), array('title' => Zurmo::t('Core', 'View as Kanban Board')));
     $content .= ZurmoHtml::closeTag('div');
     $gridClass = 'default-button';
     if ($this->getActive() == static::TYPE_NON_KANBAN_BOARD) {
         $gridClass .= ' active';
     }
     $content .= ZurmoHtml::openTag('div', array('class' => $gridClass));
     $content .= ZurmoHtml::link($this->resolveLabelForNonKanbanBoard(), $this->getNonKanbanBoardUrl(), array('title' => $this->getViewLabelForNonKanbanBoard()));
     $content .= ZurmoHtml::closeTag('div');
     return $content;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:21,代码来源:ViewTypesToggleLinkActionElement.php

示例14: renderBannerContent

 protected function renderBannerContent()
 {
     if (Yii::app()->edition != 'Community') {
         return;
     }
     $content = ZurmoHtml::openTag('div', array('class' => 'get-pro-message'));
     $content .= ZurmoHtml::openTag('div');
     $content .= ZurmoHtml::openTag('h2');
     $content .= Zurmo::t('ZurmoModule', 'Achieve more with a Zurmo subscription');
     $content .= ZurmoHtml::closeTag('h2');
     $content .= ZurmoHtml::openTag('p');
     $content .= Zurmo::t('HomeModule', 'Get more features, proactive support, access ' . 'to training and consulting, blazing fast hosting, ' . 'and in-depth documentation with a Zurmo subscription.');
     $content .= ZurmoHtml::closeTag('p');
     $content .= '<a href="http://www.zurmo.com/needSupport.php?source=amenu" class="z-button"><span class="z-label">' . Zurmo::t('ZurmoModule', 'Learn More' . '</span></a>');
     $content .= ZurmoHtml::closeTag('div');
     $content .= ZurmoHtml::closeTag('div');
     return $content;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:18,代码来源:ConfigureModulesView.php

示例15: renderMarketingListsList

 protected function renderMarketingListsList()
 {
     $colGroupContent = ZurmoHtml::openTag('colgroup');
     $colGroupContent .= ZurmoHtml::tag('col', array('style' => 'width:20%'));
     $colGroupContent .= ZurmoHtml::tag('col', array('style' => 'width:80%'));
     $colGroupContent .= ZurmoHtml::closeTag('colgroup');
     $rowsContentArray = array();
     foreach ($this->marketingLists as $marketingList) {
         $marketingListModel = $marketingList['model'];
         $subscribed = $marketingList['subscribed'];
         $columnsContent = ZurmoHtml::tag('td', array(), $this->renderToggleSubscriptionSwitch($marketingListModel->id, $subscribed));
         $columnsContent .= ZurmoHtml::tag('td', array(), strval($marketingListModel));
         $rowsContentArray[] = ZurmoHtml::tag('tr', array(), $columnsContent);
     }
     $linkColumnsContent = ZurmoHtml::tag('td', array(), $this->renderUnsubscribeAllLink());
     $linkColumnsContent .= ZurmoHtml::tag('td');
     $rowsContentArray[] = ZurmoHtml::tag('tr', array(), $linkColumnsContent);
     $rowsContent = implode("\n", $rowsContentArray);
     $content = $colGroupContent . $rowsContent;
     $tableContent = ZurmoHtml::tag('table', array(), $content);
     return $tableContent;
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:22,代码来源:MarketingListsManageSubscriptionsListView.php


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