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


PHP JEVHelper::loadCalendar方法代码示例

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


在下文中一共展示了JEVHelper::loadCalendar方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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::loadCalendar($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:pguilford,项目名称:vcomcc,代码行数:38,代码来源:jeveventdate.php

示例2: fetchElement

 function fetchElement($name, $value, &$node, $control_name)
 {
     // Must load admin language files
     $lang =& JFactory::getLanguage();
     $lang->load("com_jevents", JPATH_ADMINISTRATOR);
     $lang->load("com_jevents", JPATH_SITE);
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     $option = "com_jevents";
     $params =& JComponentHelper::getParams($option);
     $minyear = $params->get("com_earliestyear", 1970);
     $maxyear = $params->get("com_latestyear", 2150);
     ob_start();
     JEVHelper::loadCalendar($control_name . '[' . $name . ']', $control_name . $name, $value, $minyear, $maxyear, '', "", 'Y-m-d');
     return ob_get_clean();
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:15,代码来源:jevdate.php

示例3:

?>
</span>
			</fieldset>
		</div>
		<div style="float:left;margin-left:20px!important;background-color:#dddddd;" id="cu_until">
			<fieldset style="background-color:#dddddd">
				<legend  style="background-color:#dddddd"><input type="radio" name="countuntil" value="until" id="cuu" onclick="toggleCountUntil('cu_until');" /><?php 
echo JText::_('REPEAT_UNTIL');
?>
</legend>
				<?php 
$params = JComponentHelper::getParams(JEV_COM_COMPONENT);
$minyear = JEVHelper::getMinYear();
$maxyear = JEVHelper::getMaxYear();
$inputdateformat = $params->get("com_editdateformat", "d.m.Y");
JEVHelper::loadCalendar("until", "until", JevDate::strftime("%Y-%m-%d", $this->row->until()), $minyear, $maxyear, 'updateRepeatWarning();', "checkUntil();updateRepeatWarning();", $inputdateformat);
?>
				<input type="hidden"  name="until2" id="until2" value="" />

			</fieldset>
		</div>
	</div>
	<div style="clear:both;">
		<div   id="byyearday">
			<fieldset><legend><input type="radio" name="whichby" id="jevbyd" value="byd"  onclick="toggleWhichBy('byyearday');" /><?php 
echo JText::_('BY_YEAR_DAY');
?>
</legend>
				<div>					
					<?php 
echo JText::_('COMMA_SEPARATED_LIST');
开发者ID:pguilford,项目名称:vcomcc,代码行数:31,代码来源:editjq_datetime.php


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