當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。