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


PHP JHTML::calendar方法代码示例

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


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

示例1: getControlHtml

 /**
  * Method to create the html string for control
  * @return string html
  */
 public function getControlHtml()
 {
     $field = $this->field->getField();
     //input
     $html = JHTML::calendar($field->attribute_value, $field->name, 'field' . $field->id, $field->dateFormatJs, $field->attributeArray);
     return $html;
 }
开发者ID:shamusdougan,项目名称:GDMCWebsite,代码行数:11,代码来源:date.php

示例2: display

 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     JToolBarHelper::title('RSMembership!', 'rsmembership');
     JSubMenuHelper::addEntry(JText::_('RSM_TRANSACTIONS'), 'index.php?option=com_rsmembership&view=transactions');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIPS'), 'index.php?option=com_rsmembership&view=memberships');
     JSubMenuHelper::addEntry(JText::_('RSM_CATEGORIES'), 'index.php?option=com_rsmembership&view=categories');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_EXTRAS'), 'index.php?option=com_rsmembership&view=extras');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_UPGRADES'), 'index.php?option=com_rsmembership&view=upgrades');
     JSubMenuHelper::addEntry(JText::_('RSM_COUPONS'), 'index.php?option=com_rsmembership&view=coupons', true);
     JSubMenuHelper::addEntry(JText::_('RSM_PAYMENT_INTEGRATIONS'), 'index.php?option=com_rsmembership&view=payments');
     JSubMenuHelper::addEntry(JText::_('RSM_FILES'), 'index.php?option=com_rsmembership&view=files');
     JSubMenuHelper::addEntry(JText::_('RSM_FILE_TERMS'), 'index.php?option=com_rsmembership&view=terms');
     JSubMenuHelper::addEntry(JText::_('RSM_USERS'), 'index.php?option=com_rsmembership&view=users');
     JSubMenuHelper::addEntry(JText::_('RSM_FIELDS'), 'index.php?option=com_rsmembership&view=fields');
     JSubMenuHelper::addEntry(JText::_('RSM_REPORTS'), 'index.php?option=com_rsmembership&view=reports');
     JSubMenuHelper::addEntry(JText::_('RSM_CONFIGURATION'), 'index.php?option=com_rsmembership&view=configuration');
     JSubMenuHelper::addEntry(JText::_('RSM_UPDATES'), 'index.php?option=com_rsmembership&view=updates');
     $task = JRequest::getVar('task', '');
     if ($task == 'edit') {
         JToolBarHelper::title('RSMembership! <small>[' . JText::_('RSM_EDIT_TERM') . ']</small>', 'rsmembership');
         JToolBarHelper::apply();
         JToolBarHelper::save();
         JToolBarHelper::cancel();
         $this->assignRef('editor', JFactory::getEditor());
         $row = $this->get('coupon');
         $this->assignRef('row', $row);
         $calendars['date_start'] = JHTML::calendar($row->date_start > 0 ? date('Y-m-d', RSMembershipHelper::getCurrentDate($row->date_start)) : '', 'date_start', 'date_start');
         $calendars['date_end'] = JHTML::calendar($row->date_end > 0 ? date('Y-m-d', RSMembershipHelper::getCurrentDate($row->date_end)) : '', 'date_end', 'date_end');
         $lists['items'] = JHTML::_('select.genericlist', $this->get('memberships'), 'items[]', 'size="5" multiple="multiple"', 'id', 'name', $row->items);
         $lists['discount_type'] = JHTML::_('select.booleanlist', 'discount_type', 'class="inputbox"', $row->discount_type, JText::_('RSM_FIXED_VALUE'), JText::_('RSM_PERCENT'), 'discount_type');
         $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $row->published);
         $this->assignRef('lists', $lists);
         $this->assignRef('calendars', $calendars);
     } else {
         JToolBarHelper::addNewX('edit');
         JToolBarHelper::editListX('edit');
         JToolBarHelper::spacer();
         JToolBarHelper::publishList();
         JToolBarHelper::unpublishList();
         JToolBarHelper::spacer();
         JToolBarHelper::deleteList('RSM_CONFIRM_DELETE');
         $filter_state = $mainframe->getUserStateFromRequest('rsmembership.filter_state', 'filter_state');
         $mainframe->setUserState('rsmembership.filter_state', $filter_state);
         $lists['state'] = JHTML::_('grid.state', $filter_state);
         $this->assignRef('lists', $lists);
         $this->assignRef('sortColumn', JRequest::getVar('filter_order', 'date_added'));
         $this->assignRef('sortOrder', JRequest::getVar('filter_order_Dir', 'DESC'));
         $this->assignRef('coupons', $this->get('coupons'));
         $this->assignRef('pagination', $this->get('pagination'));
         $filter_word = JRequest::getString('search', '');
         $this->assignRef('filter_word', $filter_word);
     }
     parent::display($tpl);
 }
开发者ID:atikahmed,项目名称:joomla-probid,代码行数:55,代码来源:view.html.php

示例3: editEndDate

 static function editEndDate(&$auction, $isAdmin = false)
 {
     $cfg = BidsHelperTools::getConfig();
     $dateFormat = BidsHelperDateTime::dateFormatConvert2JHTML(false);
     $fType = CustomFieldsFactory::getFieldType('date');
     $calendarFormat = $fType->dateFormatConversion($dateFormat);
     $dateFormat = BidsHelperDateTime::dateFormatConvert2JHTML(false);
     if (!$cfg->bid_opt_enable_date) {
         if ($auction->id && $auction->published) {
             $html = JHTML::date(JFactory::getDate($auction->end_date)->toUnix(), $dateFormat);
         } else {
             $tooltipMsg = array();
             if (intval($cfg->bid_opt_default_period) > 0) {
                 $tooltipMsg[] = JText::_('COM_BIDS_AUTO_END_DATE_TOOLTIP_1') . ' ' . $cfg->bid_opt_default_period . ' ' . JText::_('COM_BIDS_DAYS');
             }
             if ($cfg->bid_opt_allow_proxy && intval($cfg->bid_opt_proxy_default_period) > 0) {
                 $tooltipMsg[] = JText::_('COM_BIDS_AUTO_END_DATE_TOOLTIP_2') . ' ' . $cfg->bid_opt_proxy_default_period . ' ' . JText::_('COM_BIDS_DAYS');
             }
             if (($cfg->bid_opt_global_enable_bin || $cfg->bid_opt_enable_bin_only) && intval($cfg->bid_opt_bin_default_period) > 0) {
                 $tooltipMsg[] = JText::_('COM_BIDS_AUTO_END_DATE_TOOLTIP_3') . ' ' . $cfg->bid_opt_bin_default_period . ' ' . JText::_('COM_BIDS_DAYS');
             }
             if ($cfg->bid_opt_global_enable_reserve_price && intval($cfg->bid_opt_reserve_price_default_period) > 0) {
                 $tooltipMsg[] = JText::_('COM_BIDS_AUTO_END_DATE_TOOLTIP_4') . ' ' . $cfg->bid_opt_reserve_price_default_period . ' ' . JText::_('COM_BIDS_DAYS');
             }
             $html = count($tooltipMsg) ? JHtml::tooltip(implode('<br />', $tooltipMsg)) : '-';
         }
     } else {
         if ($auction->published && !$isAdmin) {
             $html = JHTML::date(JFactory::getDate($auction->end_date)->toUnix(), $dateFormat);
         } else {
             $attribs = array('class' => 'inputbox required validate-start-date');
             $date = $auction->end_date ? $auction->end_date : '';
             $d = $date ? $date : '';
             if (preg_match('/^[0-9][0-9]:[0-9][0-9]$/', $date)) {
                 //if it's only end hour
                 $d = "";
             }
             $html = JHTML::calendar($d, 'end_date', 'end_date', $calendarFormat, $attribs);
             if ($d) {
                 $html = str_replace(' value="' . htmlspecialchars($d, ENT_COMPAT, 'UTF-8') . '"', ' value="' . htmlspecialchars(JHtml::date($d, $cfg->bid_opt_date_format, false), ENT_COMPAT, 'UTF-8') . '"', $html);
             }
             if ($cfg->bid_opt_enable_hour) {
                 $endHours = $auction->end_date ? JHTML::date($auction->end_date, 'H') : '00';
                 $endMinutes = $auction->end_date ? JHTML::date($auction->end_date, 'i') : '00';
                 $html .= '&nbsp;<input name="end_hour" size="1" value="' . $endHours . '" maxlength="2" class="inputbox required" onblur="bidCheckHours(this)" /> :
                     <input name="end_minutes" size="1" value="' . $endMinutes . '" maxlength="2" class="inputbox required" onblur="bidCheckMinutes(this)" />';
             }
             $html .= '&nbsp;' . JHtml::image(JUri::root() . 'components/com_bids/images/requiredfield.gif', 'Required');
         }
     }
     return $html;
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:52,代码来源:editauction.php

示例4: render

 function render($id, $value = null, $label = null, $required = null, $params = null)
 {
     $req = $required == null ? '' : $required == 0 ? '' : 'required';
     $req == 'required' ? $reqLabel = '*' : ($reqLabel = '');
     $attrib = array('class' => $req, 'onBlur' => 'validate_attr(attr_' . $id . ')');
     $return = '<div class="render">
              <td class="key">
                 <label>' . $label . ' ' . $reqLabel . '</label>
              </td>
              <td colspan="2">' . JHTML::calendar($value, 'attr_' . $id, 'attr_' . $id, '%Y-%m-%d', $attrib) . '<div id="valid_' . $id . '" style="float: right; color: red"></div>
              </td>
          </div>';
     return $return;
 }
开发者ID:BGCX261,项目名称:zonales-svn-to-git,代码行数:14,代码来源:render_for_DATE_data_type.php

示例5: render

 /**
  * returns the html code for the form element
  *
  * @param array $attributes
  * @return string
  */
 function render($attributes = array())
 {
     if ($this->required) {
         if (isset($attributes['class'])) {
             $attributes['class'] .= ' required';
         } else {
             $attributes['class'] = 'required';
         }
     }
     if (!is_null($this->value)) {
         $selected = $this->value;
     } else {
         $selected = $this->default_value;
     }
     return JHTML::calendar($selected, 'custom' . $this->id, 'custom' . $this->id, '%Y-%m-%d', $this->attributesToString($attributes));
 }
开发者ID:jaanusnurmoja,项目名称:redjoomla,代码行数:22,代码来源:date.php

示例6: display

    function display() {

        $model = $this->getModel('auctions');

        $lists = array();
        $lists['users'] = JHTML::_('searchform.selectUsers',$model->getState('filters.users') );
        $lists['active_users'] = JHTML::_('searchform.selectActiveUsers', $model->getState('filters.username') );
        $lists['cats'] = JHTML::_('searchform.selectCategory', $model->getState('filters.cat') );
        $lists['tags'] = JHTML::_('searchform.inputTags', $model->getState('filters.tagnames') );
        $lists['after_calendar'] = JHTML::calendar($model->getState('filters.afterd'),'afterd','afterd','%Y-%m-%d');
        $lists['before_calendar'] = JHTML::calendar($model->getState('filters.befored'),'befored','befored','%Y-%m-%d');
        $lists['startprice'] = JHTML::_('searchform.inputPrice', 'startprice', $model->getState('filters.startprice') );
        $lists['endprice'] = JHTML::_('searchform.inputPrice', 'endprice', $model->getState('filters.endprice') );
        $lists['currency'] = JHTML::_('searchform.selectCurrency', 'currency', $model->getState('filters.currency'));
        $lists['inputReset'] = JHTML::_('searchform.inputReset');

        //filters for integration fields

        $profile = BidsHelperTools::getUserProfileObject();
        $integrationArray = $profile->getIntegrationArray();
        foreach($integrationArray as $alias=>$fieldName) {
            if(''!=$fieldName) {
                $lists[$alias] = JHTML::_('searchform._selectProfileIntegrationFilter', $fieldName, $model->getState('filters.user_profile%'.$fieldName) );
            }
        }

        JHTML::_('behavior.calendar');

        JHTML::script(JURI::root() . 'components/com_bids/js/auctions.js');

        $fields = CustomFieldsFactory::getSearchableFieldsList('auctions');
        $fields_html=JHtml::_('customfields.displaysearchhtml',$fields,'divs');

        $this->assign('lists', $lists);
        $this->assign("custom_fields_html", $fields_html );

        parent::display('t_search.tpl');
    }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:38,代码来源:view.html.php

示例7: array

					<span class="add-on"><?php 
echo JText::_('COM_RAIDPLANNER_MINUTES');
?>
</span>
				</div>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="invite_time_0"><?php 
echo JText::_('COM_RAIDPLANNER_INVITE_TIME');
?>
: </label>
			<div class="controls">
				<?php 
echo JHTML::calendar($invite_time['date'], 'invite_time[0]', 'invite_time_0', $dateFormat, array('class' => 'input-small'));
?>
				<input type="text" name="invite_time[1]" id="invite_time_1" value="<?php 
echo $invite_time['time'];
?>
" size="6" class="input-mini" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="freeze_time"><?php 
echo JText::_('COM_RAIDPLANNER_FREEZE_TIME');
?>
: </label>
			<div class="controls">
				<div class="input-append">
					<input type="text" name="freeze_time" id="freeze_time" value="<?php 
开发者ID:dnaoverride,项目名称:RaidPlanner,代码行数:31,代码来源:default.php

示例8: display

 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     JToolBarHelper::title('RSForm! Pro', 'rsform');
     if (RSFormProHelper::isJ16()) {
         $lang =& JFactory::getLanguage();
         $lang->load('com_rsform.sys', JPATH_ADMINISTRATOR);
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_MANAGE_FORMS'), 'index.php?option=com_rsform&task=forms.manage');
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_MANAGE_SUBMISSIONS'), 'index.php?option=com_rsform&task=submissions.manage', true);
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_CONFIGURATION'), 'index.php?option=com_rsform&task=configuration.edit');
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_BACKUP_RESTORE'), 'index.php?option=com_rsform&task=backup.restore');
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_UPDATES'), 'index.php?option=com_rsform&task=updates.manage');
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_PLUGINS'), 'index.php?option=com_rsform&task=goto.plugins');
     }
     $layout = $this->getLayout();
     if ($layout == 'export') {
         JToolBarHelper::custom('submissions.export.task', 'archive', 'archive', JText::_('RSFP_EXPORT'), false);
         JToolBarHelper::spacer();
         JToolBarHelper::cancel('submissions.manage');
         $this->assignRef('formId', $this->get('formId'));
         $this->assignRef('headers', $this->get('headers'));
         $this->assignRef('staticHeaders', $this->get('staticHeaders'));
         $previewArray = array();
         $i = 0;
         foreach ($this->staticHeaders as $header) {
             $i++;
             $previewArray[] = 'Value ' . $i;
         }
         foreach ($this->headers as $header) {
             $i++;
             $previewArray[] = 'Value ' . $i;
         }
         $this->assign('previewArray', $previewArray);
         $this->assignRef('formTitle', $this->get('formTitle'));
         $this->assignRef('exportSelected', $this->get('exportSelected'));
         $this->assign('exportSelectedCount', count($this->exportSelected));
         $this->assign('exportAll', $this->exportSelectedCount == 0);
         $this->assign('exportType', $this->get('exportType'));
         $this->assign('exportFile', $this->get('exportFile'));
         $formTitle = $this->get('formTitle');
         JToolBarHelper::title('RSForm! Pro <small>[' . JText::sprintf('RSFP_EXPORTING', $this->exportType, $formTitle) . ']</small>', 'rsform');
         $tabs =& JPane::getInstance('Tabs', array(), true);
         $this->assignRef('tabs', $tabs);
     } elseif (strtolower($layout) == 'exportprocess') {
         $this->assign('limit', 500);
         $this->assign('total', $this->get('exportTotal'));
         $this->assign('file', JRequest::getCmd('ExportFile'));
         $this->assign('exportType', JRequest::getCmd('exportType'));
         $formTitle = $this->get('formTitle');
         JToolBarHelper::title('RSForm! Pro <small>[' . JText::sprintf('RSFP_EXPORTING', $this->exportType, $formTitle) . ']</small>', 'rsform');
     } elseif ($layout == 'edit') {
         JToolBarHelper::custom('submission.export.pdf', 'archive', 'archive', JText::_('RSFP_EXPORT_PDF'), false);
         JToolBarHelper::spacer();
         JToolBarHelper::apply('submissions.apply');
         JToolBarHelper::save('submissions.save');
         JToolBarHelper::spacer();
         JToolBarHelper::cancel('submissions.manage');
         $this->assignRef('formId', $this->get('submissionFormId'));
         $this->assignRef('submissionId', $this->get('submissionId'));
         $this->assignRef('submission', $this->get('submission'));
         $this->assignRef('staticHeaders', $this->get('staticHeaders'));
         $this->assignRef('staticFields', $this->get('staticFields'));
         $this->assignRef('fields', $this->get('editFields'));
     } else {
         JToolBarHelper::custom('submissions.export.csv', 'archive', 'archive', JText::_('RSFP_EXPORT_CSV'), false);
         JToolBarHelper::custom('submissions.export.excel', 'archive', 'archive', JText::_('RSFP_EXPORT_EXCEL'), false);
         JToolBarHelper::custom('submissions.export.xml', 'archive', 'archive', JText::_('RSFP_EXPORT_XML'), false);
         JToolBarHelper::spacer();
         JToolBarHelper::custom('submissions.cancelform', 'back', 'back', JText::_('RSFP_BACK_TO_FORM'), false);
         JToolBarHelper::spacer();
         JToolBarHelper::custom('submissions.resend', 'send', 'send', JText::_('RSFP_RESEND_EMAILS'), false);
         JToolBarHelper::editListX('submissions.edit', RSFormProHelper::isJ16() ? JText::_('JTOOLBAR_EDIT') : JText::_('Edit'));
         JToolBarHelper::deleteList(JText::_('VALIDDELETEITEMS'), 'submissions.delete', RSFormProHelper::isJ16() ? JText::_('JTOOLBAR_DELETE') : JText::_('DELETE'));
         JToolBarHelper::spacer();
         JToolBarHelper::cancel('submissions.cancel', RSFormProHelper::isJ16() ? JText::_('JTOOLBAR_CLOSE') : JText::_('Close'));
         $forms = $this->get('forms');
         $formId = $this->get('formId');
         $formTitle = $this->get('formTitle');
         JToolBarHelper::title('RSForm! Pro <small>[' . $formTitle . ']</small>', 'rsform');
         $this->assignRef('headers', $this->get('headers'));
         $this->assignRef('staticHeaders', $this->get('staticHeaders'));
         $this->assignRef('submissions', $this->get('submissions'));
         $this->assignRef('pagination', $this->get('pagination'));
         $this->assignRef('sortColumn', $this->get('sortColumn'));
         $this->assignRef('sortOrder', $this->get('sortOrder'));
         $this->assign('filter', $this->get('filter'));
         $this->assign('formId', $formId);
         $calendars['from'] = JHTML::calendar($this->get('dateFrom'), 'dateFrom', 'dateFrom');
         $calendars['to'] = JHTML::calendar($this->get('dateTo'), 'dateTo', 'dateTo');
         $this->assignRef('calendars', $calendars);
         $lists['Languages'] = JHTML::_('select.genericlist', $this->get('languages'), 'Language', '', 'value', 'text', $this->get('lang'));
         $lists['forms'] = JHTML::_('select.genericlist', $forms, 'formId', 'onchange="submissionChangeForm(this.value)"', 'value', 'text', $formId);
         $this->assignRef('lists', $lists);
     }
     parent::display($tpl);
 }
开发者ID:jtresca,项目名称:nysurveyor,代码行数:96,代码来源:view.html.php

示例9: display

 function display($tpl = null)
 {
     $mainframe = JFactory::getApplication();
     JToolBarHelper::title('RSForm! Pro', 'rsform');
     // adding the toolbar on 2.5
     if (!RSFormProHelper::isJ('3.0')) {
         $this->addToolbar();
     }
     $this->tooltipClass = RSFormProHelper::getTooltipClass();
     $layout = strtolower($this->getLayout());
     if ($layout == 'export') {
         JToolBarHelper::custom('submissions.export.task', 'archive', 'archive', JText::_('RSFP_EXPORT'), false);
         JToolBarHelper::spacer();
         JToolBarHelper::cancel('submissions.manage');
         $this->formId = $this->get('formId');
         $this->headers = $this->get('headers');
         $this->staticHeaders = $this->get('staticHeaders');
         $previewArray = array();
         $i = 0;
         foreach ($this->staticHeaders as $header) {
             $i++;
             $previewArray[] = 'Value ' . $i;
         }
         foreach ($this->headers as $header) {
             $i++;
             $previewArray[] = 'Value ' . $i;
         }
         $this->previewArray = $previewArray;
         $this->formTitle = $this->get('formTitle');
         $this->exportSelected = $this->get('exportSelected');
         $this->exportSelectedCount = count($this->exportSelected);
         $this->exportAll = $this->exportSelectedCount == 0;
         $this->exportType = $this->get('exportType');
         $this->exportFile = $this->get('exportFile');
         $formTitle = $this->get('formTitle');
         JToolBarHelper::title('RSForm! Pro <small>[' . JText::sprintf('RSFP_EXPORTING', $this->exportType, $formTitle) . ']</small>', 'rsform');
         // tabs
         $this->tabs = $this->get('RSTabs');
     } elseif ($layout == 'exportprocess') {
         $this->limit = 500;
         $this->total = $this->get('exportTotal');
         $this->file = JRequest::getCmd('ExportFile');
         $this->exportType = JRequest::getCmd('exportType');
         $this->formId = $this->get('FormId');
         $formTitle = $this->get('formTitle');
         JToolBarHelper::title('RSForm! Pro <small>[' . JText::sprintf('RSFP_EXPORTING', $this->exportType, $formTitle) . ']</small>', 'rsform');
     } elseif ($layout == 'edit') {
         JToolBarHelper::custom('submission.export.pdf', 'archive', 'archive', JText::_('RSFP_EXPORT_PDF'), false);
         JToolBarHelper::spacer();
         JToolBarHelper::apply('submissions.apply');
         JToolBarHelper::save('submissions.save');
         JToolBarHelper::spacer();
         JToolBarHelper::cancel('submissions.manage');
         $this->formId = $this->get('submissionFormId');
         $this->submissionId = $this->get('submissionId');
         $this->submission = $this->get('submission');
         $this->staticHeaders = $this->get('staticHeaders');
         $this->staticFields = $this->get('staticFields');
         $this->fields = $this->get('editFields');
     } else {
         JToolBarHelper::custom('submissions.export.csv', 'archive', 'archive', JText::_('RSFP_EXPORT_CSV'), false);
         JToolBarHelper::custom('submissions.export.ods', 'archive', 'archive', JText::_('RSFP_EXPORT_ODS'), false);
         JToolBarHelper::custom('submissions.export.excelxml', 'archive', 'archive', JText::_('RSFP_EXPORT_EXCEL_XML'), false);
         JToolBarHelper::custom('submissions.export.excel', 'archive', 'archive', JText::_('RSFP_EXPORT_EXCEL'), false);
         JToolBarHelper::custom('submissions.export.xml', 'archive', 'archive', JText::_('RSFP_EXPORT_XML'), false);
         JToolBarHelper::spacer();
         $backIcon = RSFormProHelper::isJ('3.0') ? 'previous' : 'back';
         $sendIcon = RSFormProHelper::isJ('3.0') ? 'mail' : 'send';
         JToolBarHelper::custom('submissions.cancelform', $backIcon, $backIcon, JText::_('RSFP_BACK_TO_FORM'), false);
         JToolBarHelper::spacer();
         JToolBarHelper::custom('submissions.resend', $sendIcon, $sendIcon, JText::_('RSFP_RESEND_EMAILS'), false);
         JToolbarHelper::editList('submissions.edit', JText::_('JTOOLBAR_EDIT'));
         JToolBarHelper::deleteList(JText::_('RSFP_ARE_YOU_SURE_DELETE'), 'submissions.delete', JText::_('JTOOLBAR_DELETE'));
         JToolBarHelper::spacer();
         JToolBarHelper::cancel('submissions.cancel', JText::_('JTOOLBAR_CLOSE'));
         $forms = $this->get('forms');
         $formId = $this->get('formId');
         $formTitle = $this->get('formTitle');
         JToolBarHelper::title('RSForm! Pro <small>[' . $formTitle . ']</small>', 'rsform');
         $this->headers = $this->get('headers');
         $this->uploads = $this->get('uploadFields');
         $this->staticHeaders = $this->get('staticHeaders');
         $this->submissions = $this->get('submissions');
         $this->pagination = $this->get('pagination');
         $this->sortColumn = $this->get('sortColumn');
         $this->sortOrder = $this->get('sortOrder');
         $this->filter = $this->get('filter');
         $this->formId = $formId;
         $calendars['from'] = JHTML::calendar($this->get('dateFrom'), 'dateFrom', 'dateFrom');
         $calendars['to'] = JHTML::calendar($this->get('dateTo'), 'dateTo', 'dateTo');
         $this->calendars = $calendars;
         $lists['Languages'] = JHTML::_('select.genericlist', $this->get('languages'), 'Language', '', 'value', 'text', $this->get('lang'));
         $lists['forms'] = JHTML::_('select.genericlist', $forms, 'formId', 'onchange="submissionChangeForm(this.value)"', 'value', 'text', $formId);
         $this->lists = $lists;
     }
     parent::display($tpl);
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:97,代码来源:view.html.php

示例10:

            }
            ?>
  <div class="s5_regfloatleft s5_reglabel">
    <label for="jform_profile_dob" id="jform_profile_dob-lbl" class="<?php 
            echo $class;
            ?>
" title="<?php 
            echo JTEXT::_('PLG_USER_PROFILE_FIELD_DOB_LABEL');
            ?>
"><?php 
            echo $lable;
            ?>
</label>
  </div>
  <div class="s5_regfloatleft s5_reginput"> <?php 
            echo JHTML::calendar('', 'jform[profile][dob]', 'jform_profile_dob1', '%Y-%m-%d', '');
            ?>
 </div>
  <div style="clear:both;"></div>
  <?php 
        }
        ?>
  <?php 
        if ($pluginParams->get('register-require_tos') && $pluginParams->get('register_tos_article') > 0) {
            ?>
  <div class="s5_regfloatleft s5_regagreement">
    <?php 
            $db = JFactory::getDBO();
            $q = 'SELECT introtext FROM #__content WHERE id ="' . $pluginParams->get('register_tos_article') . '"';
            $db->setQuery($q);
            $introtext = $db->loadResult();
开发者ID:bobozhangshao,项目名称:HeartCare,代码行数:31,代码来源:default.php

示例11: isset

								<td colspan="4" nowrap="nowrap" >
									<?php 
$jhotelreservation_datas = isset($jhotelreservation_datas) ? $jhotelreservation_datas : $startDate;
echo JHTML::calendar($jhotelreservation_datas, 'jhotelreservation_datas', 'jhotelreservation_datas3', $appSettings->calendarFormat, array('class' => 'date_hotelreservation keyObserver inner-shadow', 'onchange' => "\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcheckStartDate(this.value,defaultStartDate,defaultEndDate);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetDepartureDate('jhotelreservation_datae3',this.value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"));
?>
								</td>
							</tr>
							<tr>
								<td class="td_title_hotelreservation" ><?php 
echo JText::_('LNG_DEPARTURE', true);
?>
</td>
								<td colspan=4 nowrap>
									<?php 
$jhotelreservation_datae = isset($jhotelreservation_datae) ? $jhotelreservation_datae : $endDate;
echo JHTML::calendar($jhotelreservation_datae, 'jhotelreservation_datae', 'jhotelreservation_datae3', $appSettings->calendarFormat, array('class' => 'date_hotelreservation keyObserver inner-shadow', 'onchange' => 'checkEndDate(this.value,defaultStartDate,defaultEndDate);'));
?>
								</td>
							</tr>
							<tr>
								<td class="td_title_hotelreservation"><?php 
echo JText::_('LNG_ROOMS', true);
?>
</td>
								<td colspan=4 >
									<select id='jhotelreservation_rooms3' name='jhotelreservation_rooms'
										class		= 'select_hotelreservation keyObserver' disabled="disabled"
									>
										<?php 
$i_min = 1;
$i_max = 5;
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:multipleroomselection.php

示例12:

    $date1 = JoomleagueHelper::convertDate($row->round_date_first, 1);
    $append = '';
    if ($date1 == '00-00-0000' || $date1 == '') {
        $append = ' style="background-color:#FFCCCC;" ';
    }
    echo JHTML::calendar($date1, 'round_date_first' . $row->id, 'round_date_first' . $row->id, '%d-%m-%Y', 'size="10" ' . $append . 'tabindex="3" ' . 'class="center" ' . 'onchange="document.getElementById(\'cb' . $i . '\').checked=true"');
    ?>
							</td>
							<td class="center">&nbsp;-&nbsp;</td>
							<td class="center"><?php 
    $date2 = JoomleagueHelper::convertDate($row->round_date_last, 1);
    $append = '';
    if ($date2 == '00-00-0000' || $date2 == '') {
        $append = ' style="background-color:#FFCCCC;"';
    }
    echo JHTML::calendar($date2, 'round_date_last' . $row->id, 'round_date_last' . $row->id, '%d-%m-%Y', 'size="10" ' . $append . 'tabindex="3" ' . 'class="center" ' . 'onchange="document.getElementById(\'cb' . $i . '\').checked=true"');
    ?>
</td>
							<td class="center" class="nowrap"><?php 
    $link2Title = JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_EDIT_MATCHES_LINK');
    $link2Params = "title='{$link2Title}'";
    echo JHTML::link($link2, $link2Title, $link2Params);
    ?>
</td>
							<td class="center" class="nowrap"><?php 
    if ($row->countUnPublished == 0 && $row->countMatches > 0) {
        $imageTitle = JText::sprintf('COM_JOOMLEAGUE_ADMIN_ROUNDS_ALL_PUBLISHED', $row->countMatches);
        $imageFile = 'administrator/components/com_joomleague/assets/images/ok.png';
        $imageParams = "title='{$imageTitle}'";
        echo JHTML::image($imageFile, $imageTitle, $imageParams);
    } else {
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default.php

示例13: my1901contactValidate

    echo $lsMessage;
    ?>
</p>
	<?php 
}
?>
	<form id="contactForm" method="post" class="form-validate" onSubmit="return my1901contactValidate(this);" action="<?php 
echo $_SERVER['REQUEST_URI'];
?>
">
		<div class="cformlabel">Name</div><div class="cforminput"><input type="text" name="name" value="" onFocus="clear1901contactText(this)" class="inputbox" /></div>
		<div class="cformlabel">Email</div><div class="cforminput"><input type="text" name="email" value="" onFocus="clear1901contactText(this)" class="inputbox required validate-email" /></div>
		<div class="cformlabel">Phone</div><div class="cforminput"><input type="text" name="Phone" value="" onFocus="clear1901contactText(this)" class="inputbox" /></div>
		<div class="cformlabel">Nr. of Beds</div><div class="cforminput" style="width:50px;"><input type="text" name="bed" value="" onFocus="clear1901contactText(this)" class="inputbox" style="width:50px;"/></div><div class="cformlabel" style="width:80px;margin-left:15px;">Nr. of Guests</div><div class="cforminput" style="width:50px;"><input type="text" name="guest" value="" onFocus="clear1901contactText(this)" class="inputbox" style="width:50px;"/></div>
		<div class="cformlabel">Check in</div><div class="cforminput"><?php 
echo JHTML::calendar('', 'checkin', 'checkin', "%d-%m-%Y");
?>
</div>
		<div class="cformlabel">Check out</div><div class="cforminput"><?php 
echo JHTML::calendar('', 'checkout', 'checkout', "%d-%m-%Y");
?>
</div>
		<div class="clear"></div>
		<input type="submit" value="<?php 
echo $lsSubmitText;
?>
" class="button" />
		<input type="hidden" name="1901contactAction" value="send" />
		<input type="hidden" name="check" value="post" />
	</form>
</div>
开发者ID:BGCX261,项目名称:zhe-trunk-hg-to-git,代码行数:31,代码来源:mod_1901contact.php

示例14: calendar

 function calendar($value, $name, $id, $format)
 {
     JHTML::calendar($value, $name, $id, $format);
 }
开发者ID:jtresca,项目名称:nysurveyor,代码行数:4,代码来源:legacy.php

示例15:

" />
    </td>
  </tr>
  <tr>
    <td class="key hasTip" title="<?php 
echo JText::_('COM_REDEVENT_EDIT_XREF_REGISTRATION_END_TIP');
?>
">
      <label for="registrationend"><?php 
echo JText::_('COM_REDEVENT_EDIT_XREF_REGISTRATION_END') . ': ';
?>
</label>
    </td>
    <td>
      <?php 
echo JHTML::calendar($this->xref->registrationend, 'registrationend', 'registrationend', '%Y-%m-%d %H:%M');
?>
    </td>
  </tr>
  <tr>
    <td class="key hasTip" title="<?php 
echo JText::_('COM_REDEVENT_XREF_EXTERNAL_REGISTRATION_TIP');
?>
">
      <label for="external_registration_url"><?php 
echo JText::_('COM_REDEVENT_XREF_EXTERNAL_REGISTRATION') . ': ';
?>
</label>
    </td>
    <td>
      <input type="text" size="50" maxlength="255" name="external_registration_url" id="external_registration_url" value="<?php 
开发者ID:,项目名称:,代码行数:31,代码来源:


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