当前位置: 首页>>代码示例>>PHP>>正文


PHP print_optionbar_end函数代码示例

本文整理汇总了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 != "") {
开发者ID:sfromm,项目名称:librenms,代码行数:30,代码来源:ports.inc.php

示例2: print_optionbar_start

if (!isset($vars['search'])) {
    $vars['search'] = "ipv4";
}
print_optionbar_start('', '');
echo '<span style="font-weight: bold;">Search</span> &#187; ';
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;
}
开发者ID:CumulusNetworks,项目名称:cldemo-archive,代码行数:31,代码来源:search.inc.php


注:本文中的print_optionbar_end函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。