当前位置: 首页>>代码示例>>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;未经允许,请勿转载。