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


PHP RSFormProHelper::renderHTML方法代码示例

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


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

示例1: 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

示例2: rsfp_bk_onAfterShowFormEditTabs

 public function rsfp_bk_onAfterShowFormEditTabs()
 {
     $formId = JRequest::getInt('formId');
     $lang = JFactory::getLanguage();
     $lang->load('plg_system_rsfppayment');
     $row = JTable::getInstance('RSForm_Payment', 'Table');
     if (!$row) {
         return;
     }
     $row->load($formId);
     $row->params = !empty($row->params) ? unserialize($row->params) : new stdClass();
     $def_params = array('UserEmail', 'AdminEmail', 'AdditionalEmails');
     foreach ($def_params as $def_param) {
         if (!isset($row->params->{$def_param})) {
             $row->params->{$def_param} = 0;
         }
     }
     $lists['UserEmail'] = RSFormProHelper::renderHTML('select.booleanlist', 'payment[UserEmail]', 'class="inputbox"', $row->params->UserEmail);
     $lists['AdminEmail'] = RSFormProHelper::renderHTML('select.booleanlist', 'payment[AdminEmail]', 'class="inputbox"', $row->params->AdminEmail);
     $lists['AdditionalEmails'] = RSFormProHelper::renderHTML('select.booleanlist', 'payment[AdditionalEmails]', 'class="inputbox"', $row->params->AdditionalEmails);
     echo '<div id="paymentdiv">';
     include JPATH_ADMINISTRATOR . '/components/com_rsform/helpers/payment.php';
     echo '</div>';
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:24,代码来源:rsfppayment.php


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