本文整理汇总了PHP中CKunenaLink::GetPollsURL方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaLink::GetPollsURL方法的具体用法?PHP CKunenaLink::GetPollsURL怎么用?PHP CKunenaLink::GetPollsURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetPollsURL方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
<?php
echo JText::_('COM_KUNENA_POLL_BUTTON_CHANGEVOTE');
?>
</a>
</td>
</tr>
<?php
}
?>
</table>
<?php
} elseif (JFactory::getDate()->toMySQL() <= $dataspollresult[0]->polltimetolive || $dataspollresult[0]->polltimetolive == "0000-00-00 00:00:00") {
?>
<div id="kpoll-text-help"></div>
<form id="kpoll-form-vote" method="post" action="<?php
echo CKunenaLink::GetPollsURL('vote', intval($this->catid));
?>
">
<fieldset>
<legend><?php
echo JText::_('COM_KUNENA_POLL_OPTIONS');
?>
</legend>
<ul>
<?php
foreach ($dataspollresult as $i => $option) {
?>
<li>
<input class="kpoll-boxvote" type="radio" name="kpollradio" id="radio_name<?php
echo intval($i);
?>
示例2: intval
echo JText::_('COM_KUNENA_POLL_NAME');
?>
<?php
echo KunenaParser::parseText($dataspollresult[0]->title);
?>
</span></h2>
</div>
<div class="kcontainer" id="kpolls_tbody">
<div class="kbody">
<table class = "kblocktable" id = "kpoll">
<tr class="krow2">
<td class="kcol-first km">
<div class="kpolldesc">
<div id="kpoll-text-help"></div>
<form id="kpoll-form-vote" method="post" action="<?php
echo CKunenaLink::GetPollsURL($json_action, intval($this->catid));
?>
">
<fieldset class="fieldset">
<legend><?php
echo JText::_('COM_KUNENA_POLL_OPTIONS');
?>
</legend>
<ul>
<?php
foreach ($dataspollresult as $i => $result) {
if ($this->changevote) {
if ($result->id == $id_last_vote) {
?>
<li>
<input class="kpoll-boxvote" type="radio" name="kpollradio" id="radio_name<?php