本文整理汇总了PHP中Poll::noGraph方法的典型用法代码示例。如果您正苦于以下问题:PHP Poll::noGraph方法的具体用法?PHP Poll::noGraph怎么用?PHP Poll::noGraph使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Poll
的用法示例。
在下文中一共展示了Poll::noGraph方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: LTS
$Poll->addOption(3, "Windows 7");
$Poll->addOption(4, "RHEL 4");
$Poll->addOption(5, "RHEL 5");
$Poll->addOption(6, "RHEL 6");
$Poll->addOption(7, "SLES 10");
$Poll->addOption(8, "SLES 11");
$Poll->addOption(9, "Ubuntu LTS (10.4)");
$Poll->addOption(10, "Ubuntu 11.04");
$Poll->addOption(11, "Ubuntu 11.10");
$Poll->addOption(12, "Solaris 10 or earlier");
$Poll->addOption(13, "Solaris 11");
$Poll->addOption(14, "HP-UX 11 v2 or earlier");
$Poll->addOption(15, "HP-UX 11 v3");
$Poll->addOption(16, "Mac OS X 10.6 or earlier");
$Poll->addOption(17, "Mac OS X 10.7");
$Poll->noGraph();
# uncomment to disable bar graph
$Poll->requireLogin();
# no anonymous votes
$pollHTML = $Poll->getHTML();
# Paste your HTML content between the markers!
ob_start();
?>
<div id="maincontent" style="width: 90%; padding: 5%;">
<h1><?php
echo $pageTitle;
?>