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


PHP RSFormProHelper::isJ方法代码示例

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


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

示例1: addToolBar

 protected function addToolBar()
 {
     // set title
     JToolBarHelper::title('RSForm! Pro', 'rsform');
     $backupIcon = RSFormProHelper::isJ('3.0') ? 'download' : 'archive';
     $restoreIcon = RSFormProHelper::isJ('3.0') ? 'upload' : 'unarchive';
     JToolBarHelper::custom('backup.download', $backupIcon, $backupIcon, JText::_('RSFP_BACKUP_GENERATE'), false);
     JToolBarHelper::custom('restore.process', $restoreIcon, $restoreIcon, JText::_('RSFP_RESTORE'), false);
     require_once JPATH_COMPONENT . '/helpers/toolbar.php';
     RSFormProToolbarHelper::addToolbar('backuprestore');
 }
开发者ID:ForAEdesWeb,项目名称:AEW4,代码行数:11,代码来源:view.html.php

示例2: display

 function display($tpl = null)
 {
     $this->addToolbar();
     $doc = JFactory::getDocument();
     $doc->addStyleSheet(JURI::root(true) . '/administrator/components/com_rsform/assets/css/dashboard.css');
     $this->isJ30 = RSFormProHelper::isJ('3.0');
     $this->buttons = $this->get('Buttons');
     $this->code = $this->get('code');
     $this->version = (string) new RSFormProVersion();
     $this->sidebar = $this->get('SideBar');
     parent::display($tpl);
 }
开发者ID:AlexanderKri,项目名称:joom-upd,代码行数:12,代码来源:view.html.php

示例3: display

 public function display($tpl = null)
 {
     // set title
     JToolBarHelper::title('RSForm! Pro', 'rsform');
     // adding the toolbar on 2.5
     if (!RSFormProHelper::isJ('3.0')) {
         $this->addToolbar();
     }
     $layout = strtolower($this->getLayout());
     if ($layout == 'edit') {
         JToolBarHelper::apply('directory.apply');
         JToolBarHelper::save('directory.save');
         JToolBarHelper::cancel('directory.cancel');
         $backIcon = RSFormProHelper::isJ('3.0') ? 'previous' : 'back';
         JToolBarHelper::custom('directory.cancelform', $backIcon, $backIcon, JText::_('RSFP_BACK_TO_FORM'), false);
         RSFormProHelper::loadCodeMirror();
         $this->directory = $this->get('Directory');
         $this->formId = JRequest::getInt('formId', 0);
         $this->tab = JRequest::getInt('tab', 0);
         $this->emails = $this->get('emails');
         $this->fields = RSFormProHelper::getDirectoryFields($this->formId);
         $this->quickfields = $this->get('QuickFields');
         $lists['ViewLayoutAutogenerate'] = RSFormProHelper::renderHTML('select.booleanlist', 'jform[ViewLayoutAutogenerate]', 'onclick="changeDirectoryAutoGenerateLayout(' . $this->formId . ', this.value);"', $this->directory->ViewLayoutAutogenerate);
         $lists['enablepdf'] = RSFormProHelper::renderHTML('select.booleanlist', 'jform[enablepdf]', '', $this->directory->enablepdf);
         $lists['enablecsv'] = RSFormProHelper::renderHTML('select.booleanlist', 'jform[enablecsv]', '', $this->directory->enablecsv);
         $this->lists = $lists;
     } elseif ($layout == 'edit_emails') {
         $this->emails = $this->get('emails');
     } else {
         $this->addToolbar();
         JToolBarHelper::title(JText::_('RSFP_SUBM_DIR'), 'rsform');
         JToolbarHelper::deleteList('', 'directory.remove');
         $this->sidebar = $this->get('Sidebar');
         $this->forms = $this->get('forms');
         $this->pagination = $this->get('pagination');
         $this->sortColumn = $this->get('sortColumn');
         $this->sortOrder = $this->get('sortOrder');
     }
     parent::display($tpl);
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:40,代码来源:view.html.php

示例4: __construct

 function __construct()
 {
     parent::__construct();
     if (RSFormProHelper::isJ16()) {
         JHTML::_('behavior.framework');
     }
     $this->_db = JFactory::getDBO();
     $version = new RSFormProVersion();
     $v = $version->revision;
     $doc = JFactory::getDocument();
     $doc->addScript(JURI::root(true) . '/administrator/components/com_rsform/assets/js/jquery.js?v=' . $v);
     $doc->addScript(JURI::root(true) . '/administrator/components/com_rsform/assets/js/script.js?v=' . $v);
     $doc->addScript(JURI::root(true) . '/administrator/components/com_rsform/assets/js/tablednd.js?v=' . $v);
     $doc->addScript(JURI::root(true) . '/administrator/components/com_rsform/assets/js/jquery.scrollto.js?v=' . $v);
     $doc->addStyleSheet(JURI::root(true) . '/administrator/components/com_rsform/assets/css/style.css?v=' . $v);
     if (RSFormProHelper::isJ('2.5') && !RSFormProHelper::isJ('3.0')) {
         $doc->addStyleSheet(JURI::root(true) . '/administrator/components/com_rsform/assets/css/style25.css?v=' . $v);
     } elseif (RSFormProHelper::isJ('3.0')) {
         $doc->addStyleSheet(JURI::root(true) . '/administrator/components/com_rsform/assets/css/style30.css?v=' . $v);
     }
     $doc->addStyleSheet(JURI::root(true) . '/administrator/components/com_rsform/assets/css/rsdesign.css?v=' . $v);
 }
开发者ID:ForAEdesWeb,项目名称:AEW4,代码行数:22,代码来源:controller.php

示例5: renderHTML

 protected function renderHTML()
 {
     $args = func_get_args();
     if (RSFormProHelper::isJ('3.0')) {
         if ($args[0] == 'select.booleanlist') {
             // 0 - type
             // 1 - name
             // 2 - additional
             // 3 - value
             // 4 - yes
             // 5 - no
             // get the radio element
             $radio = JFormHelper::loadFieldType('radio');
             // setup the properties
             $name = $this->escape($args[1]);
             $additional = isset($args[2]) ? (string) $args[2] : '';
             $value = $args[3];
             $yes = isset($args[4]) ? $this->escape($args[4]) : 'JYES';
             $no = isset($args[5]) ? $this->escape($args[5]) : 'JNO';
             // prepare the xml
             $element = new SimpleXMLElement('<field name="' . $name . '" type="radio" class="btn-group"><option ' . $additional . ' value="0">' . $no . '</option><option ' . $additional . ' value="1">' . $yes . '</option></field>');
             // run
             $radio->setup($element, $value);
             return $radio->input;
         }
     } else {
         if ($args[0] == 'select.booleanlist') {
             $name = $args[1];
             $additional = isset($args[2]) ? (string) $args[2] : '';
             $value = $args[3];
             $yes = isset($args[4]) ? $this->escape($args[4]) : 'JYES';
             $no = isset($args[5]) ? $this->escape($args[5]) : 'JNO';
             return JHtml::_($args[0], $name, $additional, $value, $yes, $no);
         }
     }
 }
开发者ID:AlexanderKri,项目名称:joom-upd,代码行数:36,代码来源:view.html.php

示例6: mappingDBO

 function mappingDBO($config)
 {
     $database = JFactory::getDBO();
     if ($config['connection']) {
         $options = array('driver' => 'mysql', 'host' => $config['host'], 'user' => $config['username'], 'password' => $config['password'], 'database' => $config['database']);
         if (!strlen($config['database'])) {
             return 'Please select a database first.';
         }
         if (RSFormProHelper::isJ('3.0')) {
             $database2 = JDatabaseDriver::getInstance($options);
         } else {
             $database2 = JDatabase::getInstance($options);
         }
         try {
             $database2->connect();
         } catch (RuntimeException $e) {
             return $e->getMessage();
         }
         if (is_a($database2, 'JException') || is_a($database2, 'JError')) {
             return $database2->getMessage();
         }
         if ($database2->getErrorNum()) {
             return $database2->getErrorMsg();
         }
         return $database2;
     }
     return $database;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:28,代码来源:mappings.php

示例7:

}
?>
	</table>
	</div>
	
	<table class="adminlist table table-striped" id="articleList">
	<tfoot>
		<tr>
			<td>
				<div class="pull-left">
					<?php 
echo $this->pagination->getListFooter();
?>
				</div>
				<?php 
if (RSFormProHelper::isJ('3.0')) {
    ?>
				<div class="pull-right">
					<label for="limit" class="element-invisible"><?php 
    echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');
    ?>
</label>
					<?php 
    echo $this->pagination->getLimitBox();
    ?>
				</div>
				<?php 
}
?>
			</td>
		</tr>
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:default.php


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