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


PHP JEventsHTML::buildYearSelect方法代码示例

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


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

示例1: _viewHiddenJumpto

    function _viewHiddenJumpto($this_date, $view, $Itemid)
    {
        $cfg = JEVConfig::getInstance();
        $hiddencat = "";
        if ($view->datamodel->catidsOut != 0) {
            $hiddencat = '<input type="hidden" name="catids" value="' . $view->datamodel->catidsOut . '"/>';
        }
        $index = JRoute::_("index.php");
        ?>
        <div id="jumpto"  class="jev_none">
            <form name="BarNav" action="<?php 
        echo $index;
        ?>
" method="get">
                <input type="hidden" name="option" value="<?php 
        echo JEV_COM_COMPONENT;
        ?>
" />
                <input type="hidden" name="task" value="month.calendar" />
        <?php 
        echo $hiddencat;
        /* Day Select */
        // JEventsHTML::buildDaySelect( $this_date->getYear(1), $this_date->getMonth(1), $this_date->getDay(1), ' style="font-size:10px;"' );
        /* Month Select */
        JEventsHTML::buildMonthSelect($this_date->getMonth(1), '');
        /* Year Select */
        JEventsHTML::buildYearSelect($this_date->getYear(1), '');
        ?>
                <button onclick="submit(this.form)"><?php 
        echo JText::_('JEV_JUMPTO');
        ?>
</button>
                <input type="hidden" name="Itemid" value="<?php 
        echo $Itemid;
        ?>
" />
            </form>
        </div>
        <?php 
    }
开发者ID:madcsaba,项目名称:li-de,代码行数:40,代码来源:flatviewnavtablebariconic.php

示例2: DefaultViewNavTableBar


//.........这里部分代码省略.........
        }
        if (in_array("bymonth", $iconstoshow)) {
            ?>
									<option value="month.calendar"><?php 
            echo JText::_('JEV_VIEWBYMONTH');
            ?>
</option>
									<?php 
        }
        if (in_array("byyear", $iconstoshow)) {
            ?>
									<option value="year.listevents"><?php 
            echo JText::_('JEV_VIEWBYYEAR');
            ?>
</option>
									<?php 
        }
        if (in_array("search", $iconstoshow)) {
            ?>
									<option value="search.form"><?php 
            echo JText::_('JEV_SEARCH_TITLE');
            ?>
</option>
									<?php 
        }
        if (in_array("bycat", $iconstoshow)) {
            ?>
									<option value="cat.listevents"><?php 
            echo JText::_('JEV_VIEWBYCAT');
            ?>
</option>
									<?php 
        }
        ?>
							</select>
						</form>
					</td>
					<td height="1" width="100" align="left" valign="top">
						<a href="<?php 
        echo JRoute::_('index.php?option=' . JEV_COM_COMPONENT . $this->cat . '&task=month.calendar&' . $today_date->toDateURL() . '&Itemid=' . $this->Itemid);
        ?>
" title="<?php 
        echo JText::_('JEV_VIEWTOCOME');
        ?>
">
							<?php 
        echo JText::_('JEV_VIEWTOCOME');
        ?>
						</a>
					</td>
				</tr>
			</table>
			<table width="300" border="0" align="center">
				<tr valign="top">
					<?php 
        if (in_array("byyear", $iconstoshow)) {
            echo $this->_lastYearIcon($dates, $alts);
        }
        if (in_array("bymonth", $iconstoshow)) {
            echo $this->_lastMonthIcon($dates, $alts);
        }
        ?>
					<td align="center" valign="top">
						<form name="BarNav" action="index.php" method="get">
							<input type="hidden" name="option" value="<?php 
        echo JEV_COM_COMPONENT;
        ?>
" />
							<input type="hidden" name="task" value="<?php 
        echo $this->task;
        ?>
" />
							<?php 
        /* Day Select */
        JEventsHTML::buildDaySelect($year, $month, $day, ' style="font-size:10px;" onchange="submit(this.form)"');
        /* Month Select */
        JEventsHTML::buildMonthSelect($month, 'style="font-size:10px;" onchange="submit(this.form)"');
        /* Year Select */
        JEventsHTML::buildYearSelect($year, 'style="font-size:10px;" onchange="submit(this.form)"');
        ?>
							<input type="hidden" name="Itemid" value="<?php 
        echo $this->Itemid;
        ?>
" />
						</form>
					</td>
					<?php 
        if (in_array("bymonth", $iconstoshow)) {
            echo $this->_nextMonthIcon($dates, $alts);
        }
        if (in_array("byyear", $iconstoshow)) {
            echo $this->_nextYearIcon($dates, $alts);
        }
        ?>
				</tr>
			</table>

		</div>
		<?php 
    }
开发者ID:madseller,项目名称:coperio,代码行数:101,代码来源:defaultviewnavtablebar.php

示例3: _viewHiddenJumpto

    function _viewHiddenJumpto($this_date)
    {
        $cfg =& JEVConfig::getInstance();
        $hiddencat = "";
        if ($this->view->datamodel->catidsOut != 0) {
            $hiddencat = '<input type="hidden" name="catids" value="' . $this->view->datamodel->catidsOut . '"/>';
        }
        ?>
		<tr align="center" valign="top">
			<?php 
        if ($cfg->get('com_calUseIconic', 1) != 2) {
            ?>
	    	<td colspan="10" align="center" valign="top">
	    	<?php 
        } else {
            ?>
	    	<td colspan="6" align="center" valign="top">
	    	<?php 
        }
        $index = JRoute::_("index.php");
        ?>
	    	<div id="jumpto"  style="display:none">
			<form name="BarNav" action="<?php 
        echo $index;
        ?>
" method="get">
				<input type="hidden" name="option" value="<?php 
        echo JEV_COM_COMPONENT;
        ?>
" />
				<input type="hidden" name="task" value="month.calendar" />
				<?php 
        echo $hiddencat;
        /*Day Select*/
        // JEventsHTML::buildDaySelect( $this_date->getYear(1), $this_date->getMonth(1), $this_date->getDay(1), ' style="font-size:10px;"' );
        /*Month Select*/
        JEventsHTML::buildMonthSelect($this_date->getMonth(1), 'style="font-size:10px;"');
        /*Year Select*/
        JEventsHTML::buildYearSelect($this_date->getYear(1), 'style="font-size:10px;"');
        ?>
				<button onclick="submit(this.form)"><?php 
        echo JText::_('JEV_JUMPTO');
        ?>
</button>
				<input type="hidden" name="Itemid" value="<?php 
        echo $this->Itemid;
        ?>
" />
			</form>
			</div>
			</td>
	    </tr>
		<?php 
    }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:54,代码来源:defaultviewnavtablebariconic.php


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