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


PHP JEVHelper::loadElectricCalendar方法代码示例

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


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

示例1: getInput

    /**
     * Method to get the field input markup.
     *
     * @return	string	The field input markup.
     * @since	1.6
     */
    protected function getInput()
    {
        ob_start();
        $event = $this->form->jevdata[$this->name]["event"];
        $eventfield = $this->name == "publish_up" ? "startDate" : "endDate";
        $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
        $minyear = JEVHelper::getMinYear();
        $maxyear = JEVHelper::getMaxYear();
        $inputdateformat = $params->get("com_editdateformat", "d.m.Y");
        static $firsttime;
        if (!defined($firsttime)) {
            $document = JFactory::getDocument();
            $js = "\neventEditDateFormat='{$inputdateformat}';//Date.defineParser(eventEditDateFormat.replace('d','%d').replace('m','%m').replace('Y','%Y'));";
            $document->addScriptDeclaration($js);
            $firsttime = false;
        }
        $cal = JEVHelper::loadElectricCalendar($this->name, $this->name, $event->{$eventfield}(), $minyear, $maxyear, 'var elem =jevjq(this);' . $this->element['onhidestart'], "var elem = jevjq(this);" . $this->element['onchange'], $inputdateformat);
        echo $cal;
        ?>
		<input type="hidden"  name="<?php 
        echo $this->name;
        ?>
2" id="<?php 
        echo $this->name;
        ?>
2" value="" />
		<?php 
        $html = ob_get_clean();
        JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
        JEVHelper::ConditionalFields($this->element, $this->form->getName());
        return $html;
    }
开发者ID:poorgeek,项目名称:JEvents,代码行数:38,代码来源:jeveventdate.php

示例2: str_replace

			</fieldset>
		</div>
		<div id="byirregular">
			<fieldset >
				<legend><?php 
echo JText::_('JEV_SELECT_REPEAT_DATES');
?>
</legend>
				<div class="irregularDateSelector">
				<?php 
$params = JComponentHelper::getParams(JEV_COM_COMPONENT);
$minyear = JEVHelper::getMinYear();
$maxyear = JEVHelper::getMaxYear();
$inputdateformat = $params->get("com_editdateformat", "d.m.Y");
$inputdateformat2 = str_replace(array("Y", "m", "d"), array("%Y", "%m", "%d"), $inputdateformat);
JEVHelper::loadElectricCalendar("irregular", "irregular", "", $minyear, $maxyear, '', "selectIrregularDate();updateRepeatWarning();", $inputdateformat, array("style" => "display:none;"));
?>
				</div>
				<select  id="irregularDates" name="irregularDates[]" multiple="multiple" size="5" onchange="updateRepeatWarning()">
					<?php 
sort($this->row->_irregulardates);
array_unique($this->row->_irregulardates);
foreach ($this->row->_irregulardates as $irregulardate) {
    $irregulardateval = JevDate::strftime('%Y-%m-%d', $irregulardate);
    $irregulardatetext = JevDate::strftime($inputdateformat2, $irregulardate);
    ?>
					<option value="<?php 
    echo $irregulardateval;
    ?>
" selected="selected"><?php 
    echo $irregulardatetext;
开发者ID:poorgeek,项目名称:JEvents,代码行数:31,代码来源:edit_datetime.php


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