本文整理汇总了PHP中AImporter::js方法的典型用法代码示例。如果您正苦于以下问题:PHP AImporter::js方法的具体用法?PHP AImporter::js怎么用?PHP AImporter::js使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AImporter
的用法示例。
在下文中一共展示了AImporter::js方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
/**
* @package Bookpro
* @author Ngo Van Quan
* @link http://joombooking.com
* @copyright Copyright (C) 2011 - 2012 Ngo Van Quan
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @version $Id$
**/
defined('_JEXEC') or die('Restricted access');
JHtmlJquery::framework();
$config = JBFactory::getConfig();
AImporter::helper('tour', 'currency');
AImporter::js('footable');
AImporter::css('footable.core');
$total = 0;
if (count($displayData) > 0) {
?>
<script type="text/javascript">
jQuery(function () {
jQuery('.footable').footable();
});
</script>
<div class="box-heading">
<?php
示例2: defined
* @author Ngo Van Quan
* @link http://joombooking.com
* @copyright Copyright (C) 2011 - 2012 Ngo Van Quan
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @version $Id$
**/
defined('_JEXEC') or die('Restricted access');
JHtml::_('jquery.ui');
AImporter::css('common', 'tour');
JHtml::_('jquery.framework');
//JHtml::_('behavior.modal','a.modal_term');
AImporter::css('jquery-ui');
JHtmlBehavior::modal('a.modal_term');
//Start library gallery
AImporter::css('jquery-ui', 'responsive-calendar', 'fotorama');
AImporter::js('responsive-calendar', 'fotorama', 'underscore-min');
//End library gallery
AImporter::css('jquery.ui.datepicker');
$document = JFactory::getDocument();
$document->addScript(JURI::root() . 'components/com_bookpro/assets/js/jquery.ui.datepicker.js');
$action = 'index.php?option=com_bookpro&view=tourbook?Itemid=' . JFactory::getApplication()->input->get('Itemid');
$group_p = explode(';', trim($this->tour->pax_group));
?>
<script type="text/javascript">
jQuery(document).ready(function(){
});
</script>
<div class="widgetbookpro-loading"></div>
示例3: defined
<?php
defined('_JEXEC') or die('Restricted access');
AImporter::js('master');
$config = JBFactory::getConfig();
AImporter::css('customer');
JHtml::_('jquery.framework');
JHtml::_('behavior.framework');
AImporter::js('master');
JHtml::_('behavior.modal', 'a.modal_term');
$lang = JFactory::getLanguage();
$local = substr($lang->getTag(), 0, 2);
ob_start();
BookProHelper::addJqueryValidate();
?>
<script type="text/javascript">
jQuery(document).ready(function($){
$("#registerform").validate({
lang: '<?php
echo $local;
?>
',
rules: {
firstname: "required",
lastname: "required",
username: {
required: true,
minlength: 2
},
password: {
示例4: defined
<?php
/**
* Popup element to select destination.
* @package Bookpro
* @author Ngo Van Quan
* @link http://joombooking.com
* @copyright Copyright (C) 2011 - 2012 Ngo Van Quan
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @version $Id: destination.php 44 2012-07-12 08:05:38Z quannv $
**/
defined('_JEXEC') or die('Restricted access');
jimport('joomla.html.parameter.element');
jimport('joomla.form.helper');
JFormHelper::loadFieldClass('list');
AImporter::js('view-images');
class JFormFieldImage extends JFormFieldList
{
protected function getInput()
{
jimport('joomla.filesystem.folder');
$bar = JToolBar::getInstance('toolbar_image');
$bar->addButtonPath(JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'toolbar');
/* @var $bar JToolBar */
$bar->appendButton('Popup', 'new1', 'Add', ARoute::view(VIEW_IMAGES, null, null, array('tmpl' => 'component', 'type' => '1')), 800, 600);
$bar->appendButton('ALink', 'delete', 'Delete', 'javascript:AImages.removeMain()', 'imageMainRemove');
$html[] = $bar->render();
$thumb = AImage::thumb(BookProHelper::getIPath($this->image), null, ADMIN_SET_IMAGES_WIDTH);
$html[] = '<img src="' . $thumb . '" alt="" id="imageMainSource" class="thumb' . $thumb ? '' : ' blind' . '" />';
if (!$thumb) {
$html[] = ADocument::addDomreadyEvent('AImages.hideRemoveMain()');