當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CKunenaLink::GetPollURL方法代碼示例

本文整理匯總了PHP中CKunenaLink::GetPollURL方法的典型用法代碼示例。如果您正苦於以下問題:PHP CKunenaLink::GetPollURL方法的具體用法?PHP CKunenaLink::GetPollURL怎麽用?PHP CKunenaLink::GetPollURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CKunenaLink的用法示例。


在下文中一共展示了CKunenaLink::GetPollURL方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

">
										<?php 
        echo JText::_('COM_KUNENA_POLL_BUTTON_VOTE');
        ?>
									</a>

								</td>
							</tr>
							<?php 
    } else {
        ?>
							<tr class="krow2">
								<td colspan="4">

										<a href = <?php 
        echo CKunenaLink::GetPollURL('changevote', $this->id, $this->catid);
        ?>
>
											<?php 
        echo JText::_('COM_KUNENA_POLL_BUTTON_CHANGEVOTE');
        ?>
										</a>

								</td>
							</tr>
							<?php 
    }
    ?>
						</table>
					<?php 
}
開發者ID:vuchannguyen,項目名稱:hoctap,代碼行數:31,代碼來源:pollbox.php

示例2: if

									echo " ( ".implode(', ', $this->users_voted_list)." ) "; ?>
									<?php if ( $this->usercount > '5' ) : ?><a href="#" id="kpoll-moreusers"><?php echo JText::_('COM_KUNENA_POLLUSERS_MORE')?></a>
									<div style="display: none;" id="kpoll-moreusers-div"><?php echo implode(', ', $this->users_voted_morelist); ?></div>
									<?php endif; ?>
								</td>
							</tr>
							<tr class="krow<?php echo $row%2+1;?>">
								<td colspan="4" class="kpoll-info">
									<?php if (!$this->me->exists()) : ?>
										<?php echo JText::_('COM_KUNENA_POLL_NOT_LOGGED'); ?>
									<?php elseif ($this->voted && !$this->config->pollallowvoteone) : ?>
									<a class="tk-submit-button" href="<?php echo CKunenaLink::GetPollURL('vote', $this->topic->id, $this->category->id);?>">
										<?php echo JText::_('COM_KUNENA_POLL_BUTTON_VOTE'); ?>
									</a>
									<?php else : ?>
									<a class="tk-cancel-button" href="<?php echo CKunenaLink::GetPollURL('changevote', $this->topic->id, $this->category->id); ?>">
										<?php echo JText::_('COM_KUNENA_POLL_BUTTON_CHANGEVOTE'); ?>
									</a>
									<?php endif; ?>
									<?php if( $this->me->isModerator() ) : ?>
									<a class="tk-cancel-button" href="<?php echo KunenaRoute::_("index.php?option=com_kunena&view=topic&id={$this->topic->id}&catid={$this->category->id}&pollid={$this->poll->id}&task=resetvotes&".JUtility::getToken() .'=1') ?>">Reset votes</a>
									<?php endif; ?>
								</td>
							</tr>
							</table>
						</div>
					</td>
				</tr>
			</table>
		</div>
	</div>
開發者ID:GoremanX,項目名稱:Kunena-2.0,代碼行數:31,代碼來源:default_pollresults.php

示例3: elseif

									<?php 
} elseif ($this->voted && !$this->config->pollallowvoteone) {
    ?>
									<a href="<?php 
    echo CKunenaLink::GetPollURL('vote', $this->topic->id, $this->category->id);
    ?>
">
										<?php 
    echo JText::_('COM_KUNENA_POLL_BUTTON_VOTE');
    ?>
									</a>
									<?php 
} else {
    ?>
									<a href="<?php 
    echo CKunenaLink::GetPollURL('changevote', $this->topic->id, $this->category->id);
    ?>
">
										<?php 
    echo JText::_('COM_KUNENA_POLL_BUTTON_CHANGEVOTE');
    ?>
									</a>
									<?php 
}
?>
									<?php 
if ($this->me->isModerator($this->topic->getCategory())) {
    ?>
									<a href="<?php 
    echo KunenaRoute::_("index.php?option=com_kunena&view=topic&id={$this->topic->id}&catid={$this->category->id}&pollid={$this->poll->id}&task=resetvotes&" . JUtility::getToken() . '=1');
    ?>
開發者ID:laiello,項目名稱:senluonirvana,代碼行數:31,代碼來源:default_pollresults.php


注:本文中的CKunenaLink::GetPollURL方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。