本文整理汇总了PHP中print_optionbar_end函数的典型用法代码示例。如果您正苦于以下问题:PHP print_optionbar_end函数的具体用法?PHP print_optionbar_end怎么用?PHP print_optionbar_end使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_optionbar_end函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: generate_url
</select>
</div>
<button type="submit" class="btn btn-default btn-sm">Search</button>
<a class="btn btn-default btn-sm" href="<?php
echo generate_url(array('page' => 'ports', 'section' => $vars['section'], 'bare' => $vars['bare']));
?>
" title="Reset critera to default." >Reset</a>
</td>
</form>
</tr>
</table>
<?php
}
print_optionbar_end();
$param = array();
if (!isset($vars['ignore'])) {
$vars['ignore'] = "0";
}
if (!isset($vars['disabled'])) {
$vars['disabled'] = "0";
}
if (!isset($vars['deleted'])) {
$vars['deleted'] = "0";
}
$where = '';
$ignore_filter = 0;
$disabled_filter = 0;
foreach ($vars as $var => $value) {
if ($value != "") {
示例2: print_optionbar_start
if (!isset($vars['search'])) {
$vars['search'] = "ipv4";
}
print_optionbar_start('', '');
echo '<span style="font-weight: bold;">Search</span> » ';
unset($sep);
foreach ($sections as $type => $texttype) {
echo $sep;
if ($vars['search'] == $type) {
echo "<span class='pagemenu-selected'>";
}
# echo('<a href="search/' . $type . ($_GET['optb'] ? '/' . $_GET['optb'] : ''). '/">' . $texttype .'</a>');
echo generate_link($texttype, array('page' => 'search', 'search' => $type));
if ($vars['search'] == $type) {
echo "</span>";
}
$sep = ' | ';
}
unset($sep);
print_optionbar_end('', '');
switch ($vars['search']) {
case 'ipv4':
case 'ipv6':
case 'mac':
case 'arp':
include 'pages/search/' . $vars['search'] . '.inc.php';
break;
default:
echo report_this('Unknown search type ' . $vars['search']);
break;
}