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


PHP JUDownloadHelper::formValidation方法代码示例

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


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

示例1:

		{
			$document->addScript(JUri::root(true) . "/components/com_judownload/assets/js/switch.js");
		}
		break;

	case 'form' :
		$document->addStyleSheet(JUri::root(true) . "/components/com_judownload/templates/" . $self_template . "/assets/css/view.form.css");

		JUDownloadFrontHelper::loadjQueryUI();
		$document->addScript(JUri::root(true) . "/components/com_judownload/assets/js/handlebars.min.js");
		$document->addScript(JUri::root(true) . "/components/com_judownload/assets/js/jquery.dragsort.min.js");
		$document->addStyleSheet(JUri::root(true) . "/components/com_judownload/assets/plupload/css/jquery.plupload.queue.css");
		$document->addScript(JUri::root(true) . "/components/com_judownload/assets/plupload/js/plupload.full.min.js");
		$document->addScript(JUri::root(true) . "/components/com_judownload/assets/plupload/js/jquery.plupload.queue.min.js");

		JUDownloadHelper::formValidation();

		// JText in forms/document.js
		JText::script('COM_JUDOWNLOAD_INVALID_IMAGE');
		JText::script('COM_JUDOWNLOAD_INVALID_FILE_NAME');
		JText::script('COM_JUDOWNLOAD_CAN_NOT_UPLOAD_FILE_BECAUSE_IT_IS_EMPTY');
		JText::script('COM_JUDOWNLOAD_CAN_NOT_UPLOAD_THIS_FILE_PLEASE_RECHECK_MIMETYPE_FILE');
		JText::script('COM_JUDOWNLOAD_CAN_NOT_TRANSFER_FILE');
		JText::script('COM_JUDOWNLOAD_OTHER_FILE_IS_UPLOADING_DO_YOU_WANT_TO_CANCEL_TO_UPLOAD_NEW_FILE');
		JText::script('COM_JUDOWNLOAD_YOU_HAVE_TO_UPLOAD_AT_LEAST_ONE_FILE');
		JText::script('COM_JUDOWNLOAD_YOU_HAVE_NOT_ENTERED_SOURCE_URL');
		JText::script('COM_JUDOWNLOAD_CAN_NOT_UPLOAD_THIS_FILE_DOCUMENT_REACH_MAX_UPLOAD_FILES_N_FILES');
		JText::script('COM_JUDOWNLOAD_PLEASE_UPLOAD_A_FILE');
		JText::script('COM_JUDOWNLOAD_REMOVE');
		JText::script('COM_JUDOWNLOAD_CAN_NOT_ADD_IMAGE_BECAUSE_MAX_NUMBER_OF_IMAGE_IS_N');
		JText::script('COM_JUDOWNLOAD_CAN_NOT_RESTORE_THIS_FILE_DOCUMENT_REACH_MAX_UPLOAD_N_FILES');
开发者ID:kosmosby,项目名称:medicine-prof,代码行数: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_JUDOWNLOAD_PAGE_' . ($checkedOut ? 'VIEW_DOCUMENT' : ($isNew ? 'ADD_DOCUMENT' : 'EDIT_DOCUMENT'))));
     JUDownloadFrontHelper::loadjQueryUI();
     $document->addStyleSheet(JUri::root() . "administrator/components/com_judownload/assets/css/approval.css");
     $document->addScript(JUri::root() . "components/com_judownload/assets/js/handlebars.min.js");
     $document->addStyleSheet(JUri::root() . 'components/com_judownload/assets/plupload/css/jquery.plupload.queue.css');
     $document->addScript(JUri::root() . "components/com_judownload/assets/plupload/js/plupload.full.min.js");
     $document->addScript(JUri::root() . "components/com_judownload/assets/plupload/js/jquery.plupload.queue.min.js");
     JUDownloadHelper::formValidation();
     $document->addScript(JUri::root() . $this->script);
     JText::script('COM_JUDOWNLOAD_INVALID_IMAGE');
     JText::script('COM_JUDOWNLOAD_INVALID_FILE_NAME');
     JText::script('COM_JUDOWNLOAD_CAN_NOT_UPLOAD_FILE_BECAUSE_IT_IS_EMPTY');
     JText::script('COM_JUDOWNLOAD_CAN_NOT_UPLOAD_THIS_FILE_PLEASE_RECHECK_MIMETYPE_FILE');
     JText::script('COM_JUDOWNLOAD_CAN_NOT_TRANSFER_FILE');
     JText::script('COM_JUDOWNLOAD_OTHER_FILE_IS_UPLOADING_DO_YOU_WANT_TO_CANCEL_TO_UPLOAD_NEW_FILE');
     JText::script('COM_JUDOWNLOAD_YOU_HAVE_TO_UPLOAD_AT_LEAST_ONE_FILE');
     JText::script('COM_JUDOWNLOAD_YOU_HAVE_NOT_ENTERED_SOURCE_URL');
     JText::script('COM_JUDOWNLOAD_CAN_NOT_UPLOAD_THIS_FILE_DOCUMENT_REACH_MAX_UPLOAD_FILES_N_FILES');
     JText::script('COM_JUDOWNLOAD_PLEASE_UPLOAD_A_FILE');
     JText::script('COM_JUDOWNLOAD_REMOVE');
     JText::script('COM_JUDOWNLOAD_CAN_NOT_ADD_IMAGE_BECAUSE_MAX_NUMBER_OF_IMAGE_IS_N');
     JText::script('COM_JUDOWNLOAD_CAN_NOT_RESTORE_THIS_FILE_DOCUMENT_REACH_MAX_UPLOAD_N_FILES');
     JText::script('COM_JUDOWNLOAD_TOGGLE_TO_PUBLISH');
     JText::script('COM_JUDOWNLOAD_TOGGLE_TO_UNPUBLISH');
     JText::script('COM_JUDOWNLOAD_CLICK_TO_REMOVE');
     JText::script('COM_JUDOWNLOAD_YOU_MUST_UPLOAD_AT_LEAST_ONE_IMAGE');
     JText::script('COM_JUDOWNLOAD_FILE_TITLE');
     JText::script('COM_JUDOWNLOAD_FILE_NAME');
     JText::script('COM_JUDOWNLOAD_DESCRIPTION');
     JText::script('COM_JUDOWNLOAD_FIELD_TITLE');
     JText::script('COM_JUDOWNLOAD_FIELD_DESCRIPTION');
     JText::script('COM_JUDOWNLOAD_FIELD_PUBLISHED');
     JText::script('COM_JUDOWNLOAD_UPDATE');
     JText::script('COM_JUDOWNLOAD_CANCEL');
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:41,代码来源:view.html.php


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