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


PHP JUDirectoryHelper::formValidation方法代码示例

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


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

示例1:

     $document->addScript(JUri::root(true) . "/components/com_judirectory/assets/js/compare.js");
     $JUDIRTemplateDefaultHelper->loadTooltipster();
     // Load switch mode view
     if ($this->allow_user_select_view_mode) {
         $document->addScript(JUri::root(true) . "/components/com_judirectory/assets/js/switch.js");
     }
     break;
 case 'form':
     $document->addStyleSheet(JUri::root(true) . "/components/com_judirectory/templates/" . $self_template . "/assets/css/view.form.css");
     JUDirectoryFrontHelper::loadjQueryUI();
     $document->addScript(JUri::root(true) . "/components/com_judirectory/assets/js/handlebars.min.js");
     $document->addScript(JUri::root(true) . "/components/com_judirectory/assets/js/jquery.dragsort.min.js");
     $document->addStyleSheet(JUri::root(true) . "/components/com_judirectory/assets/plupload/css/jquery.plupload.queue.css");
     $document->addScript(JUri::root(true) . "/components/com_judirectory/assets/plupload/js/plupload.full.min.js");
     $document->addScript(JUri::root(true) . "/components/com_judirectory/assets/plupload/js/jquery.plupload.queue.min.js");
     JUDirectoryHelper::formValidation();
     // JText in forms/listing.js
     JText::script('COM_JUDIRECTORY_INVALID_IMAGE');
     JText::script('COM_JUDIRECTORY_REMOVE');
     JText::script('COM_JUDIRECTORY_CAN_NOT_ADD_IMAGE_BECAUSE_MAX_NUMBER_OF_IMAGE_IS_N');
     JText::script('COM_JUDIRECTORY_TOGGLE_TO_PUBLISH');
     JText::script('COM_JUDIRECTORY_TOGGLE_TO_UNPUBLISH');
     JText::script('COM_JUDIRECTORY_CLICK_TO_REMOVE');
     JText::script('COM_JUDIRECTORY_YOU_MUST_UPLOAD_AT_LEAST_ONE_IMAGE');
     JText::script('COM_JUDIRECTORY_DESCRIPTION');
     JText::script('COM_JUDIRECTORY_FIELD_TITLE');
     JText::script('COM_JUDIRECTORY_FIELD_DESCRIPTION');
     JText::script('COM_JUDIRECTORY_FIELD_PUBLISHED');
     JText::script('COM_JUDIRECTORY_UPDATE');
     JText::script('COM_JUDIRECTORY_CANCEL');
     $document->addScript(JUri::root(true) . "/" . $this->script);
开发者ID:ranrolls,项目名称:ras-full-portal,代码行数:31,代码来源:load_assets.php

示例2: setDocument

 protected function setDocument()
 {
     $isNew = $this->item->id == 0;
     $userId = JFactory::getUser()->id;
     $document = JFactory::getDocument();
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $userId);
     $document->setTitle(JText::_('COM_JUDIRECTORY_PAGE_' . ($checkedOut ? 'VIEW_LISTING' : ($isNew ? 'ADD_LISTING' : 'EDIT_LISTING'))));
     JUDirectoryFrontHelper::loadjQueryUI();
     $document->addStyleSheet(JUri::root() . "administrator/components/com_judirectory/assets/css/approval.css");
     $document->addScript(JUri::root() . "components/com_judirectory/assets/js/handlebars.min.js");
     JUDirectoryHelper::formValidation();
     $document->addScript(JUri::root() . $this->script);
     JText::script('COM_JUDIRECTORY_INVALID_IMAGE');
     JText::script('COM_JUDIRECTORY_REMOVE');
     JText::script('COM_JUDIRECTORY_CAN_NOT_ADD_IMAGE_BECAUSE_MAX_NUMBER_OF_IMAGE_IS_N');
     JText::script('COM_JUDIRECTORY_TOGGLE_TO_PUBLISH');
     JText::script('COM_JUDIRECTORY_TOGGLE_TO_UNPUBLISH');
     JText::script('COM_JUDIRECTORY_CLICK_TO_REMOVE');
     JText::script('COM_JUDIRECTORY_YOU_MUST_UPLOAD_AT_LEAST_ONE_IMAGE');
     JText::script('COM_JUDIRECTORY_DESCRIPTION');
     JText::script('COM_JUDIRECTORY_FIELD_TITLE');
     JText::script('COM_JUDIRECTORY_FIELD_DESCRIPTION');
     JText::script('COM_JUDIRECTORY_FIELD_PUBLISHED');
     JText::script('COM_JUDIRECTORY_UPDATE');
     JText::script('COM_JUDIRECTORY_CANCEL');
 }
开发者ID:ranrolls,项目名称:ras-full-portal,代码行数:26,代码来源:view.html.php


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