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


PHP JHtml::calendar方法代码示例

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


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

示例1:

								<input onchange="document.getElementById('cb<?php 
    echo $i;
    ?>
').checked=true" type="text" name="match_number<?php 
    echo $row->id;
    ?>
"
										value="<?php 
    echo $row->match_number;
    ?>
" size="6" tabindex="1" class="inputbox" />
							</td>
							<td class="center">
								<?php 
    $date = JoomleagueHelper::getMatchDate($row, JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_DATE_FORMAT'));
    echo JHtml::calendar($date, 'match_date' . $row->id, 'match_date' . $row->id, JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_DATE_FORMAT_CAL'), 'size="9"  tabindex="2" ondblclick="copyValue(\'match_date\')"
														 onchange="document.getElementById(\'cb' . $i . '\').checked=true"');
    ?>
							</td>
							<td class="left">
								<?php 
    $time = JoomleagueHelper::getMatchTime($row);
    ?>
								<input ondblclick="copyValue('match_time')" onchange="document.getElementById('cb<?php 
    echo $i;
    ?>
').checked=true" type="text" name="match_time<?php 
    echo $row->id;
    ?>
"
										value="<?php 
    echo $time;
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:32,代码来源:default_matches.php

示例2: testCalendar

 /**
  * Tests JHtml::calendar() method with and without 'readonly' attribute.
  */
 public function testCalendar()
 {
     // Create a world for the test
     jimport('joomla.session.session');
     jimport('joomla.application.application');
     jimport('joomla.document.document');
     $cfg = new JObject();
     JFactory::$session = $this->getMock('JSession', array('_start'));
     JFactory::$application = $this->getMock('ApplicationMock');
     JFactory::$config = $cfg;
     JFactory::$application->expects($this->any())->method('getTemplate')->will($this->returnValue('atomic'));
     $cfg->live_site = 'http://example.com';
     $cfg->offset = 'Europe/Kiev';
     $_SERVER['HTTP_USER_AGENT'] = 'Test Browser';
     // two sets of test data
     $test_data = array('date' => '2010-05-28 00:00:00', 'friendly_date' => 'Friday, 28 May 2010', 'name' => 'cal1_name', 'id' => 'cal1_id', 'format' => '%Y-%m-%d', 'attribs' => array());
     $test_data_ro = array_merge($test_data, array('attribs' => array('readonly' => 'readonly')));
     foreach (array($test_data, $test_data_ro) as $data) {
         // Reset the document
         JFactory::$document = JDocument::getInstance('html', array('unique_key' => serialize($data)));
         $input = JHtml::calendar($data['date'], $data['name'], $data['id'], $data['format'], $data['attribs']);
         $this->assertEquals((string) $xml->input['title'], $data['friendly_date'], 'Line:' . __LINE__ . ' The calendar input should have `title == "' . $data['friendly_date'] . '"`');
         $this->assertEquals((string) $xml->input['name'], $data['name'], 'Line:' . __LINE__ . ' The calendar input should have `name == "' . $data['name'] . '"`');
         $this->assertEquals((string) $xml->input['id'], $data['id'], 'Line:' . __LINE__ . ' The calendar input should have `id == "' . $data['id'] . '"`');
         $head_data = JFactory::getDocument()->getHeadData();
         if (!isset($data['attribs']['readonly']) || !$data['attribs']['readonly'] === 'readonly') {
             $this->assertArrayHasKey('/media/system/js/calendar.js', $head_data['scripts'], 'Line:' . __LINE__ . ' JS file "calendar.js" should be loaded');
             $this->assertArrayHasKey('/media/system/js/calendar-setup.js', $head_data['scripts'], 'Line:' . __LINE__ . ' JS file "calendar-setup.js" should be loaded');
         }
     }
 }
开发者ID:realityking,项目名称:oldunittests,代码行数:34,代码来源:JHtmlTest.php

示例3: testCalendar

 /**
  * Tests JHtml::calendar() method with and without 'readonly' attribute.
  */
 public function testCalendar()
 {
     // Create a world for the test
     jimport('joomla.session.session');
     jimport('joomla.application.application');
     jimport('joomla.document.document');
     $cfg = new JObject();
     JFactory::$session = $this->getMock('JSession', array('_start'));
     JFactory::$application = $this->getMock('ApplicationMock');
     JFactory::$config = $cfg;
     JFactory::$application->expects($this->any())->method('getTemplate')->will($this->returnValue('atomic'));
     $cfg->live_site = 'http://example.com';
     $cfg->offset = 'Europe/Kiev';
     $_SERVER['HTTP_USER_AGENT'] = 'Test Browser';
     // two sets of test data
     $test_data = array('date' => '2010-05-28', 'friendly_date' => 'Friday, 28 May 2010', 'name' => 'cal1_name', 'id' => 'cal1_id', 'format' => '%Y-%m-%d', 'attribs' => array());
     $test_data_ro = array_merge($test_data, array('attribs' => array('readonly' => 'readonly')));
     foreach (array($test_data, $test_data_ro) as $data) {
         // Reset the document
         JFactory::$document = JDocument::getInstance('html', array('unique_key' => serialize($data)));
         $input = JHtml::calendar($data['date'], $data['name'], $data['id'], $data['format'], $data['attribs']);
         $this->assertThat(strlen($input), $this->greaterThan(0), 'Line:' . __LINE__ . ' The calendar method should return something without error.');
         $xml = new simpleXMLElement('<calendar>' . $input . '</calendar>');
         $this->assertEquals((string) $xml->input['type'], 'text', 'Line:' . __LINE__ . ' The calendar input should have `type == "text"`');
         $this->assertEquals((string) $xml->input['title'], $data['friendly_date'], 'Line:' . __LINE__ . ' The calendar input should have `title == "' . $data['friendly_date'] . '"`');
         $this->assertEquals((string) $xml->input['name'], $data['name'], 'Line:' . __LINE__ . ' The calendar input should have `name == "' . $data['name'] . '"`');
         $this->assertEquals((string) $xml->input['id'], $data['id'], 'Line:' . __LINE__ . ' The calendar input should have `id == "' . $data['id'] . '"`');
         $this->assertEquals((string) $xml->input['value'], $data['date'], 'Line:' . __LINE__ . ' The calendar input should have `value == "' . $data['date'] . '"`');
         $head_data = JFactory::getDocument()->getHeadData();
         if (isset($data['attribs']['readonly']) && $data['attribs']['readonly'] === 'readonly') {
             $this->assertEquals((string) $xml->input['readonly'], $data['attribs']['readonly'], 'Line:' . __LINE__ . ' The readonly calendar input should have `readonly == "' . $data['attribs']['readonly'] . '"`');
             $this->assertFalse(isset($xml->img), 'Line:' . __LINE__ . ' The readonly calendar input shouldn\'t have a calendar image');
             $this->assertArrayNotHasKey('/media/system/js/calendar.js', $head_data['scripts'], 'Line:' . __LINE__ . ' JS file "calendar.js" shouldn\'t be loaded');
             $this->assertArrayNotHasKey('/media/system/js/calendar-setup.js', $head_data['scripts'], 'Line:' . __LINE__ . ' JS file "calendar-setup.js" shouldn\'t be loaded');
             $this->assertArrayNotHasKey('text/javascript', $head_data['script'], 'Line:' . __LINE__ . ' Inline JS for the calendar shouldn\'t be loaded');
         } else {
             $this->assertFalse(isset($xml->input['readonly']), 'Line:' . __LINE__ . ' The calendar input shouldn\'t have readonly attribute');
             $this->assertTrue(isset($xml->img), 'Line:' . __LINE__ . ' The calendar input should have a calendar image');
             $this->assertEquals((string) $xml->img['id'], $data['id'] . '_img', 'Line:' . __LINE__ . ' The calendar image should have `id == "' . $data['id'] . '_img' . '"`');
             $this->assertEquals((string) $xml->img['class'], 'calendar', 'Line:' . __LINE__ . ' The calendar image should have `class == "calendar"`');
             $this->assertFileExists(JPATH_ROOT . $xml->img['src'], 'Line:' . __LINE__ . ' The calendar image source should point to an existent file');
             $this->assertArrayHasKey('/media/system/js/calendar.js', $head_data['scripts'], 'Line:' . __LINE__ . ' JS file "calendar.js" should be loaded');
             $this->assertArrayHasKey('/media/system/js/calendar-setup.js', $head_data['scripts'], 'Line:' . __LINE__ . ' JS file "calendar-setup.js" should be loaded');
             $this->assertContains('DHTML Date/Time Selector', $head_data['script']['text/javascript'], 'Line:' . __LINE__ . ' Inline JS for the calendar should be loaded');
         }
     }
 }
开发者ID:exntu,项目名称:joomla-cms,代码行数:50,代码来源:JHtmlTest.php

示例4: render

    public static function render()
    {
        if (self::$isJ30) {
            $return = JHtmlSidebar::render();
            if (count(self::$entries) > 0) {
                $return .= '<div class="filter-custom hidden-phone">';
                foreach (self::$entries as $entry) {
                    switch ($entry['type']) {
                        case 'calendar':
                            $return .= '<div><center>' . JHtml::calendar($entry['options'], $entry['key'], $entry['key'], '%Y-%m-%d', array('class' => 'input input-medium', 'placeholder' => $entry['label'])) . '</center></div>';
                            break;
                        case 'calendar_btn':
                            $return .= '<center><div class="rsmem_calendar_btn"><button type="button" class="hasTip btn btn-warning pull-right" title="' . JText::_('JSEARCH_FILTER_CLEAR') . '" onclick="document.id(\'' . $entry['options']['to_btn'] . '\').value=\'\';document.id(\'' . $entry['options']['from_btn'] . '\').value=\'\';this.form.submit();"><i class="icon-remove"></i></button>
							<button type="submit" class="hasTip btn btn-info pull-right" title="' . $entry['key'] . '">' . $entry['label'] . '</button></div></center>';
                            break;
                    }
                }
                $return .= '</div> <hr class="hr-condensed">';
            }
            return $return;
        } else {
            return '';
        }
    }
开发者ID:JozefAB,项目名称:qk,代码行数:24,代码来源:toolbar.php

示例5:

" >
				<img src="components/com_adagency/images/tooltip.png" border="0"/></span>
			</div>
	</div>
<div class="control-group">
			<label class="control-label"> <?php 
echo JText::_('VIEWPROMOENDPUB');
?>
 </label>
			<div class="controls">
				
				<?php 
if ($promo->codeend == "Never") {
    $promo->codeend = "";
}
$calendar = JHtml::calendar(trim($promo->codeend), 'ad_end_date', 'ad_end_date', $format_string_2, '');
if ($promo->codeend == "") {
    $calendar = str_replace('value=""', 'value="Never"', $calendar);
}
echo $calendar;
?>
				<span class="editlinktip hasTip" title="<?php 
echo JText::_('COM_DIGISTORE_PROMOENDPUB_TIP');
?>
" >
				<img src="components/com_adagency/images/tooltip.png" border="0"/></span>
			</div>
	</div>
	
	<div class="control-group">
			<label class="control-label"> <?php 
开发者ID:politik86,项目名称:test2,代码行数:31,代码来源:editform.php

示例6: dates

 /**
  * Method to generate fields for filtering dates
  *
  * @param   FinderIndexerQuery  $idxQuery  A FinderIndexerQuery object.
  * @param   array               $options   An array of options.
  *
  * @return  mixed  A rendered HTML widget on success, null otherwise.
  *
  * @since   2.5
  */
 public static function dates($idxQuery, $options)
 {
     $html = '';
     // Get the configuration options.
     $classSuffix = $options->get('class_suffix', null);
     $loadMedia = $options->get('load_media', true);
     $showDates = $options->get('show_date_filters', false);
     if (!empty($showDates)) {
         // Build the date operators options.
         $operators = array();
         $operators[] = JHtml::_('select.option', 'before', JText::_('COM_FINDER_FILTER_DATE_BEFORE'));
         $operators[] = JHtml::_('select.option', 'exact', JText::_('COM_FINDER_FILTER_DATE_EXACTLY'));
         $operators[] = JHtml::_('select.option', 'after', JText::_('COM_FINDER_FILTER_DATE_AFTER'));
         // Load the CSS/JS resources.
         if ($loadMedia) {
             JHtml::stylesheet('com_finder/dates.css', false, true, false);
         }
         // Open the widget.
         $html .= '<ul id="finder-filter-select-dates">';
         // Start date filter.
         $attribs['class'] = 'input-medium';
         $html .= '<li class="filter-date' . $classSuffix . '">';
         $html .= '<label for="filter_date1" class="hasTooltip" title ="' . JText::_('COM_FINDER_FILTER_DATE1_DESC') . '">';
         $html .= JText::_('COM_FINDER_FILTER_DATE1');
         $html .= '</label>';
         $html .= '<br />';
         $html .= JHtml::_('select.genericlist', $operators, 'w1', 'class="inputbox filter-date-operator advancedSelect"', 'value', 'text', $idxQuery->when1, 'finder-filter-w1');
         $html .= JHtml::calendar($idxQuery->date1, 'd1', 'filter_date1', '%Y-%m-%d', $attribs);
         $html .= '</li>';
         // End date filter.
         $html .= '<li class="filter-date' . $classSuffix . '">';
         $html .= '<label for="filter_date2" class="hasTooltip" title ="' . JText::_('COM_FINDER_FILTER_DATE2_DESC') . '">';
         $html .= JText::_('COM_FINDER_FILTER_DATE2');
         $html .= '</label>';
         $html .= '<br />';
         $html .= JHtml::_('select.genericlist', $operators, 'w2', 'class="inputbox filter-date-operator advancedSelect"', 'value', 'text', $idxQuery->when2, 'finder-filter-w2');
         $html .= JHtml::calendar($idxQuery->date2, 'd2', 'filter_date2', '%Y-%m-%d', $attribs);
         $html .= '</li>';
         // Close the widget.
         $html .= '</ul>';
     }
     return $html;
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:53,代码来源:filter.php

示例7:

echo JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_MASSADD_COPY2');
?>
</td>
										<td><?php 
echo $this->lists['project_rounds2'];
?>
</td>
									</tr>
									<tr>
										<td width="100" align="right" class="key"><?php 
echo JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_MASSADD_DEFAULT_DATE');
?>
</td>
										<td>
											<?php 
echo JHtml::calendar($date->format(JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_DATE_FORMAT'), true), 'date', 'date', JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_DATE_FORMAT_CAL'), 'size="10" ');
?>
											&nbsp;
											<input type='text' name='time' value='<?php 
echo $this->projectws->start_time;
?>
' size='4' maxlength='5' class='inputbox' />
										</td>
									</tr>
									<tr>
										<td width="100" align="right" class="key"><?php 
echo JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_MASSADD_FIRST_MATCHNR');
?>
</td>
										<td><input type="text" name="start_match_number" size="4" value="" /></td>
									</tr>
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:31,代码来源:default_massadd.php

示例8: testCalendar

 /**
  * Tests JHtml::calendar() method with and without 'readonly' attribute.
  *
  * @return  void
  *
  * @since   3.1
  */
 public function testCalendar()
 {
     $cfg = $this->getMockConfig();
     $map = array(array('live_site', 'http://example.com'), array('offset', 'Europe/Kiev'));
     $cfg->expects($this->any())->method('get')->willReturnMap($map);
     JFactory::$session = $this->getMockSession();
     JFactory::$config = $cfg;
     JFactory::$application->expects($this->any())->method('getTemplate')->will($this->returnValue('atomic'));
     // Two sets of test data
     $test_data = array('date' => '2010-05-28 00:00:00', 'friendly_date' => 'Friday, 28 May 2010', 'name' => 'cal1_name', 'id' => 'cal1_id', 'format' => '%Y-%m-%d', 'attribs' => array(), 'formattedDate' => '2010-05-28');
     $test_data_ro = array_merge($test_data, array('attribs' => array('readonly' => 'readonly')));
     foreach (array($test_data, $test_data_ro) as $data) {
         // Reset the document
         JFactory::$document = $this->getMockDocument();
         $input = JHtml::calendar($data['date'], $data['name'], $data['id'], $data['format'], $data['attribs']);
         $this->assertGreaterThan(0, strlen($input), 'Line:' . __LINE__ . ' The calendar method should return something without error.');
         $xml = new SimpleXMLElement('<calendar>' . $input . '</calendar>');
         $this->assertEquals('text', (string) $xml->div->input['type'], 'Line:' . __LINE__ . ' The calendar input should have `type == "text"`');
         $this->assertEquals($data['friendly_date'], (string) $xml->div->input['title'], 'Line:' . __LINE__ . ' The calendar input should have `title == "' . $data['friendly_date'] . '"`');
         $this->assertEquals($data['name'], (string) $xml->div->input['name'], 'Line:' . __LINE__ . ' The calendar input should have `name == "' . $data['name'] . '"`');
         $this->assertEquals($data['id'], (string) $xml->div->input['id'], 'Line:' . __LINE__ . ' The calendar input should have `id == "' . $data['id'] . '"`');
         $this->assertEquals($data['formattedDate'], (string) $xml->div->input['value'], 'Line:' . __LINE__ . ' The calendar input should have `value == "' . $data['formattedDate'] . '"`');
         if (isset($data['attribs']['readonly']) && $data['attribs']['readonly'] === 'readonly') {
             $this->assertEquals($data['attribs']['readonly'], (string) $xml->div->input['readonly'], 'Line:' . __LINE__ . ' The readonly calendar input should have `readonly == "' . $data['attribs']['readonly'] . '"`');
             $this->assertTrue(isset($xml->div->button['style']), 'Line:' . __LINE__ . ' The calendar input should not have a visible button');
             $this->assertArrayNotHasKey('/media/system/js/calendar.js', JFactory::getDocument()->_scripts, 'Line:' . __LINE__ . ' JS file "calendar.js" shouldn\'t be loaded');
             $this->assertArrayNotHasKey('/media/system/js/calendar-setup.js', JFactory::getDocument()->_scripts, 'Line:' . __LINE__ . ' JS file "calendar-setup.js" shouldn\'t be loaded');
             $this->assertArrayNotHasKey('text/javascript', JFactory::getDocument()->_script, 'Line:' . __LINE__ . ' Inline JS for the calendar shouldn\'t be loaded');
         } else {
             $this->assertFalse(isset($xml->div->input['readonly']), 'Line:' . __LINE__ . ' The calendar input shouldn\'t have readonly attribute');
             $this->assertFalse(isset($xml->div->button['style']), 'Line:' . __LINE__ . ' The calendar input should visible button');
             $this->assertEquals($data['id'] . '_img', (string) $xml->div->button['id'], 'Line:' . __LINE__ . ' The calendar button should have `id == "' . $data['id'] . '_img' . '"`');
             $this->assertArrayHasKey('/media/system/js/calendar.js', JFactory::getDocument()->_scripts, 'Line:' . __LINE__ . ' JS file "calendar.js" should be loaded');
             $this->assertArrayHasKey('/media/system/js/calendar-setup.js', JFactory::getDocument()->_scripts, 'Line:' . __LINE__ . ' JS file "calendar-setup.js" should be loaded');
             $this->assertContains('jQuery(document).ready(function($) {Calendar.setup({', JFactory::getDocument()->_script['text/javascript'], 'Line:' . __LINE__ . ' Inline JS for the calendar should be loaded');
         }
     }
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:45,代码来源:JHtmlTest.php

示例9:

			</td>
			<td><input type="text" name="interval" value="7"/></td>
		</tr>
		
		<tr>
			<td nowrap='nowrap' class="key hasTip" title="<?php 
echo JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_STARTDATE_LABEL') . '::' . JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_STARTDATE_TIP');
?>
">
				<label for="start"><?php 
echo JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_STARTDATE_LABEL');
?>
</label>
			</td>
			<td><?php 
echo JHtml::calendar(strftime('%Y-%m-%d'), 'start', 'start', '%Y-%m-%d');
?>
</td>
		</tr>
		
		<tr>
			<td nowrap='nowrap' class="key hasTip" title="<?php 
echo JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_NEW_ROUND_NAME_LABEL') . '::' . JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_NEW_ROUND_NAME_TIP');
?>
">
				<label for="roundname"><?php 
echo JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_NEW_ROUND_NAME_LABEL');
?>
</label>
			</td>
			<td><input type="text" name="roundname" value="<?php 
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:populate.php

示例10: date

				<td>
					<?php 
echo JHtml::calendar($validfrom, 'validfrom', 'validfrom', '%Y-%m-%d ' . date("H:i:s"));
?>
			
				</td>
			</tr>
			<tr>
				<td align="right" class="key">
					<?php 
echo JText::_('COM_VMCOUPONS_VALIDITY_PERIOD_END');
?>
				</td>					
				<td>
					<?php 
echo JHtml::calendar($validtill, 'validtill', 'validtill', '%Y-%m-%d ' . date("H:i:s"));
?>
				
				</td>
			</tr>	
			<tr>
				<td align="right" class="key">
					<?php 
echo JText::_('COM_VMCOUPONS_USES_REMAIN');
?>
				</td>					
				<td>
					<input class="text_area" type="text" name="remain_use" id="remain_use" size="20" maxlength="100" value="<?php 
echo $this->row->remain_use;
?>
" />
开发者ID:alesconti,项目名称:FF_2015,代码行数:31,代码来源:default.php

示例11: DateInterval

	<div class="span3" id="formvalidate">
		
		<label><?php 
echo JText::_('COM_BOOKPRO_START_DATE_');
?>
 </label>
		<?php 
echo JHtml::calendar(JFactory::getDate()->format('Y-m-d'), 'jform[startdate]', 'startdate', DateHelper::getConvertDateFormat('M'), 'readonly="readonly"');
?>

		<label><?php 
echo JText::_('COM_BOOKPRO_END_DATE_');
?>
 </label>
		<?php 
echo JHtml::calendar(JFactory::getDate()->add(new DateInterval('P60D'))->format('Y-m-d'), 'jform[enddate]', 'enddate', DateHelper::getConvertDateFormat('M'), 'readonly="readonly"');
?>

		<label><?php 
echo JText::_('COM_BOOKPRO_WEEK_DAY');
?>
 </label>

		<?php 
echo $this->getDayWeek('weekday[]');
?>
		<hr />

		<?php 
echo $this->loadTemplate('base');
?>
开发者ID:hixbotay,项目名称:executivetransport,代码行数:31,代码来源:default.php

示例12: defined

<?php

// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// add css
$csspath = JUri::base() . 'components/com_easyreservation/css/newreservation.css';
$document = JFactory::getDocument();
$document->addStyleSheet($csspath);
$user = JFactory::getUser();
JHtml::calendar(date('Y-m-d', strtotime($this->input_data['start_date'])), 'start_date', 'start_date', '%d.%m.%Y');
if ($user->authorise('core.admin')) {
    JHtml::calendar(date('Y-m-d', strtotime($this->input_data['end_day'])), 'end_day', 'end_day', '%d.%m.%Y');
}
function option($value, $msg, $selectedValue)
{
    if ($value == $selectedValue) {
        $selected = 'selected';
    }
    if (isset($value)) {
        $v = "value='{$value}'";
    }
    echo "<option {$v} {$selected}>{$msg}</option>\n";
}
echo $this->msg;
?>

<h1><?php 
echo JText::_(COM_EASYRESERVATION_NEW_RESERVATION);
?>
</h1>
开发者ID:johannestigges,项目名称:ezreservation,代码行数:30,代码来源:default.php

示例13: trim

:</td>
			<td><?php 
    echo $helper->formatime($camp_row->start_date, $configs->params['timeformat']);
    ?>
</td>
		</tr>
        
        <tr>
			<td><?php 
    echo JText::_('REPENDDATE');
    ?>
:</td>
			<td>
				<?php 
    $end_date = $camp_row->validity;
    $calendar = JHtml::calendar($helper->formatime($end_date, $configs->params['timeformat']), 'validity', 'validity', '' . $ymd . $hms, '');
    if ($end_date == "0000-00-00 00:00:00") {
        $end_date = "Never";
        $calendar = str_replace('value=""', 'value="' . trim($end_date) . '"', $calendar);
    }
    echo $calendar;
    ?>
            </td>
		</tr>


		<?php 
    if ($camp_row->type == "cpm") {
        if ($camp_row->quantity > 0) {
            $package_row->quantity = intval($package_row->quantity) - intval($camp_row->quantity);
            ?>
开发者ID:politik86,项目名称:test2,代码行数:31,代码来源:editform.php

示例14: foreach

         echo '<tr><td><label for="joomdoc_keywords_text">' . JText::_('JOOMDOC_SEARCH_AREA_TEXT') . '</label></td>';
         echo '<td><input type="text" name="joomdoc_keywords_text" id="joomdoc_keywords_text" value="' . $this->escape($this->search->keywords_text) . '" /></td></tr>';
     }
     if ($config->searchShowMetadata) {
         echo '<tr><td><label for="joomdoc_keywords_meta">' . JText::_('JOOMDOC_SEARCH_AREA_META') . '</label></td>';
         echo '<td><input type="text" name="joomdoc_keywords_meta" id="joomdoc_keywords_meta" value="' . $this->escape($this->search->keywords_meta) . '" /></td></tr>';
     }
     if ($config->searchShowFulltext) {
         echo '<tr><td><label for="joomdoc_keywords_full">' . JText::_('JOOMDOC_SEARCH_AREA_FULL') . '</label></td>';
         echo '<td><input type="text" name="joomdoc_keywords_full" id="joomdoc_keywords_full" value="' . $this->escape($this->search->keywords_full) . '" /></td></tr>';
     }
 }
 foreach ($this->searchablefields as $field) {
     if ($field->type == JOOMDOC_FIELD_DATE) {
         echo '<tr><td><label for="' . $field->name . '">' . $field->title . '</label></td><td>';
         echo JHtml::calendar($this->search->fields[$field->id]['value'], $field->name, $field->name);
         echo '</td></tr>';
     } elseif ($field->type == JOOMDOC_FIELD_SELECT) {
         echo '<tr><td><label for="' . $field->name . '">' . $field->title . '</label></td><td>';
         echo JHtml::_('select.genericlist', array_merge(array('' => ''), $field->options), $field->name, '', 'value', 'label', $this->search->fields[$field->id]['value']);
         echo '</td></tr>';
     } elseif ($field->type == JOOMDOC_FIELD_MULTI_SELECT || $field->type == JOOMDOC_FIELD_SUGGEST) {
         echo '<tr><td><label for="' . $field->name . '">' . $field->title . '</label></td><td>';
         echo '<input type="hidden" name="' . $field->name . '[]" value="" />';
         echo JHtml::_('select.genericlist', $field->options, $field->name . '[]', 'multiple="multiple"' . ($field->params->get('size') ? ' size="' . $this->escape($field->params->get('size')) . '"' : ''), 'value', 'label', $this->search->fields[$field->id]['value']);
         JHtml::_('joomdoc.chosen', $field->name, false);
         echo '</td></tr>';
     } elseif ($field->type == JOOMDOC_FIELD_RADIO) {
         echo '<tr><td><label for="' . $field->name . '">' . $field->title . '</label></td><td>';
         echo '<fieldset class="radio btn-group">';
         echo '<input type="hidden" name="' . $field->name . '" value="" />';
开发者ID:abdullah929,项目名称:bulletin,代码行数:31,代码来源:default.php

示例15: getRangeSelect

?>
" id="adminForm" name="adminForm">

<div class="row-fluid">
	<div class="filter-search fltlft form-inline">
		<?php 
echo getRangeSelect($chartState->range);
?>
		<?php 
echo getChartTypeSelect($chartState->chartType);
?>
		<?php 
echo JHtml::calendar($chartState->fromDate, 'filter_from_date', 'filter_from_date', '%Y-%m-%d', 'for =1 placeholder="From date" readonly="true" style="width: 100px;"');
?>
		<?php 
echo JHtml::calendar($chartState->toDate, 'filter_to_date', 'filter_to_date', '%Y-%m-%d', 'for=1 readonly="true" placeholder="To date" style="width: 100px;"');
?>
		
		<button class="btn btn-primary" type="submit" id="submit_chart"><i class="icon-bars "></i>&nbsp;<?php 
echo JText::_('COM_BOOKPRO_SHOW');
?>
</button>
		<button class="btn btn-primary" type="button" onclick="
			document.id('filter_from_date').value='';	
			document.id('filter_to_date').value='';
			document.id('filter_range').value='0';
			this.form.submit();"
			><i class="icon-remove "></i>&nbsp;</button>
		
	</div>
	<div class="clearfix"></div>
开发者ID:hixbotay,项目名称:executivetransport,代码行数:31,代码来源:default_chart.php


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