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


PHP print_optionbar_start函数代码示例

本文整理汇总了PHP中print_optionbar_start函数的典型用法代码示例。如果您正苦于以下问题:PHP print_optionbar_start函数的具体用法?PHP print_optionbar_start怎么用?PHP print_optionbar_start使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了print_optionbar_start函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<?php

if ($_SESSION['userlevel'] < '5') {
    include 'includes/error-no-perm.inc.php';
} else {
    $link_array = array('page' => 'routing', 'protocol' => 'bgp');
    print_optionbar_start('', '');
    echo '<span style="font-weight: bold;">BGP</span> &#187; ';
    if (!$vars['type']) {
        $vars['type'] = 'all';
    }
    if ($vars['type'] == 'all') {
        echo "<span class='pagemenu-selected'>";
    }
    echo generate_link('All', $vars, array('type' => 'all'));
    if ($vars['type'] == 'all') {
        echo '</span>';
    }
    echo ' | ';
    if ($vars['type'] == 'internal') {
        echo "<span class='pagemenu-selected'>";
    }
    echo generate_link('iBGP', $vars, array('type' => 'internal'));
    if ($vars['type'] == 'internal') {
        echo '</span>';
    }
    echo ' | ';
    if ($vars['type'] == 'external') {
        echo "<span class='pagemenu-selected'>";
    }
    echo generate_link('eBGP', $vars, array('type' => 'external'));
开发者ID:n-st,项目名称:librenms,代码行数:31,代码来源:bgp.inc.php

示例2: generate_url

<?php 
if (isset($vars['searchbar']) && $vars['searchbar'] == "hide") {
    echo '<a href="' . generate_url($vars, array('searchbar' => '')) . '">Search</a>';
} else {
    echo '<a href="' . generate_url($vars, array('searchbar' => 'hide')) . '">Search</a>';
}
echo "  | ";
if (isset($vars['bare']) && $vars['bare'] == "yes") {
    echo '<a href="' . generate_url($vars, array('bare' => '')) . '">Header</a>';
} else {
    echo '<a href="' . generate_url($vars, array('bare' => 'yes')) . '">Header</a>';
}
echo '</div>';
print_optionbar_end();
print_optionbar_start();
if (isset($vars['searchbar']) && $vars['searchbar'] != "hide" || !isset($vars['searchbar'])) {
    ?>
  <form method='post' action='' class='form-inline' role='form'>
    <div class="form-group">
      <select name='device_id' id='device_id' class='form-control input-sm'>
        <option value=''>All Devices</option>
<?php 
    if ($_SESSION['userlevel'] >= 5) {
        $results = dbFetchRows("SELECT `device_id`,`hostname` FROM `devices` GROUP BY `hostname` ORDER BY `hostname`");
    } else {
        $results = dbFetchRows("SELECT `D`.`device_id`,`D`.`hostname` FROM `devices` AS `D`, `devices_perms` AS `P` WHERE `P`.`user_id` = ? AND `P`.`device_id` = `D`.`device_id` GROUP BY `hostname` ORDER BY `hostname`", array($_SESSION['user_id']));
    }
    foreach ($results as $data) {
        echo '        <option value="' . $data['device_id'] . '"';
        if ($data['device_id'] == $vars['device_id']) {
开发者ID:sfromm,项目名称:librenms,代码行数:30,代码来源:ports.inc.php

示例3: print_optionbar_start

<?php

echo "<div style='margin:auto; text-align: center; margin-top: 50px; max-width:600px'>";
print_optionbar_start(100, 600);
echo "\n   <table height=100% width=100%><tr>\n   <td><img src='images/no-48.png' valign=absmiddle></td>\n   <td width=10></td>\n   <td>\n     <span style='color: #990000; font-weight: bold;'>\n       <span style='font-size: 16px; font-weight: bold;'>Error</span>\n       <br />\n       <span style='font-size: 12px;'>You have insufficient permissions to view this page.</span>\n     </span>\n   </td>\n   </tr></table>";
print_optionbar_end();
echo "</div>";
开发者ID:samyscoub,项目名称:librenms,代码行数:7,代码来源:error-no-perm.inc.php

示例4: print_optionbar_start

<?php

print_optionbar_start(62);
?>
<table cellpadding="4" cellspacing="0" class="devicetable" width="100%">
  <form method="post" action="">
    <tr> 
      <td width="30" align="center" valign="middle"></td>
      <td width="300"><span style="font-weight: bold; font-size: 14px;"></span>
        <input type="text" name="hostname" id="hostname" size="40" value="<?php 
echo $_POST['hostname'];
?>
" />
      </td>
      <td width="200">
        <select name='os' id='os'>
          <option value=''>All OSes</option>
          <?php 
if ($_SESSION['userlevel'] == '10') {
    $query = mysql_query("SELECT `os` FROM `devices` GROUP BY `os` ORDER BY `os`");
} else {
    $query = mysql_query("SELECT `os` FROM `devices` AS D, `devices_perms` AS P WHERE D.device_id =\n                P.device_id AND P.user_id = " . $_SESSION['user_id'] . " GROUP BY `os` ORDER BY `os`");
}
while ($data = mysql_fetch_array($query)) {
    if ($data['os']) {
        echo "<option value='" . $data['os'] . "'";
        if ($data['os'] == $_POST['os']) {
            echo " selected";
        }
        echo ">" . $data['os'] . "</option>";
    }
开发者ID:kyrisu,项目名称:observernms,代码行数:31,代码来源:devices.php

示例5: print_optionbar_start

<?php

print_optionbar_start(28);
?>

<table cellpadding=0 cellspacing=0 class=devicetable width=100%>
  <tr>
  <form method='post' action=''>
    <td width='200' style="padding: 1px;">
      <select name='device_id' id='device_id'>
      <option value=''>All Devices</option>
      <?php 
$query = mysql_query("SELECT `device_id`,`hostname` FROM `devices` GROUP BY `hostname` ORDER BY `hostname`");
while ($data = mysql_fetch_array($query)) {
    echo "<option value='" . $data['device_id'] . "'";
    if ($data['device_id'] == $_POST['device_id']) {
        echo "selected";
    }
    echo ">" . $data['hostname'] . "</option>";
}
?>
      </select>
    </td>
    <td width='200' style="padding: 1px;">
      <select name='interface' id='interface'>
      <option value=''>All Interfaces</option>
      <option value='Loopback%' <?php 
if ($_POST['interface'] == "Loopback%") {
    echo "selected";
}
?>
开发者ID:kyrisu,项目名称:observernms,代码行数:31,代码来源:ipv4.php

示例6: print_optionbar_start

<?php

print_optionbar_start('40');
?>

<form method='post' action='' class="form-inline" role="form">
  <div class="form-group">
    Bills
  </div>
  <div class="form-group">
    <input type="text" name="hostname" id="hostname" class="form-control input-sm" value="<?php 
echo $vars['hostname'];
?>
" />
  </div>
  <div class="form-group">
    <select name='os' id='os' class="form-control input-sm">
      <option value=''>All Types</option>
      <option value=''>CDR</option>
      <option value=''>95th</option>
      <option value=''>Quota</option>
    </select>
  </div>
  <div class="form-group">
    <select name='hardware' id='hardware' class="form-control input-sm">
      <option value=''>All States</option>
      <option value=''>Under Quota</option>
      <option value=''>Over Quota</option>
    </select>
  </div>
  <div class="form-group">
开发者ID:jmacul2,项目名称:librenms,代码行数:31,代码来源:search.inc.php

示例7: print_optionbar_start

<?php

print_optionbar_start(50);
?>
<table style="text-align: left;" cellpadding=0 cellspacing=5 class=devicetable width=100%>
  <tr style='padding: 0px;'>
  <form method='post' action=''>
    <td width='200'>
      <select name='device_id' id='device_id'>
      <option value=''>All Devices</option>
      <?php 
$query = mysql_query("SELECT `device_id`,`hostname` FROM `devices` GROUP BY `hostname` ORDER BY `hostname`");
while ($data = mysql_fetch_array($query)) {
    echo "<option value='" . $data['device_id'] . "'";
    if ($data['device_id'] == $_POST['device_id']) {
        echo "selected";
    }
    echo ">" . $data['hostname'] . "</option>";
}
?>
      </select>
    </td>
    <td width='150'>
      <select name='state' id='state'>
        <option value=''>All States</option>
        <option value='up' <?php 
if ($_POST['state'] == "up") {
    echo "selected";
}
?>
>Up</option>
开发者ID:kyrisu,项目名称:observernms,代码行数:31,代码来源:ports.php

示例8: str_replace

  </div>

  <div style="float: left; padding: 0px; width: 49%">

    <h3>LibreNMS is an autodiscovering PHP/MySQL-based network monitoring system forked from the last GPL-licensed revision of Observium.</h3>
<?php 
$project_name = $config['project_name'];
$project_version = $config['version'];
$apache_version = str_replace("Apache/", "", $_SERVER['SERVER_SOFTWARE']);
$php_version = phpversion();
$mysql_version = dbFetchCell("SELECT version()");
$netsnmp_version = shell_exec($config['snmpget'] . " --version 2>&1");
$rrdtool_version = implode(" ", array_slice(explode(" ", shell_exec($config['rrdtool'] . " --version |head -n1")), 1, 1));
$schema_version = dbFetchCell("SELECT version FROM dbSchema");
$git_log = `git log -10`;
print_optionbar_start(NULL);
echo "\n    <table width=100% cellpadding=3 cellspacing=0 border=0>\n      <tr valign=top><td width=150><b>{$project_name}</b></td><td><a href='http://www.librenms.org/changelog.html'>{$project_version}</a></td></tr>\n      <tr valign=top><td><b>DB Schema</b></td><td>#{$schema_version}</td></tr>\n      <tr valign=top><td><b>Apache</b></td><td>{$apache_version}</td></tr>\n      <tr valign=top><td><b>PHP</b></td><td>{$php_version}</td></tr>\n      <tr valign=top><td><b>MySQL</b></td><td>{$mysql_version}</td></tr>\n      <tr valign=top><td><b>RRDtool</b></td><td>{$rrdtool_version}</td></tr>\n    </table>\n";
print_optionbar_end();
?>

    <h5>LibreNMS is a community-based project. Please feel free to join us and contribute code, documentation, and bug reports:</h5>

    <p>
      <a href="https://github.com/librenms/">Web site</a> |
      <a href="https://github.com/librenms/librenms/issues">Bug tracker</a> |
      <a href="https://groups.google.com/forum/#!forum/librenms-project">Mailing list</a> |
      <a href="http://twitter.com/librenms">Twitter</a> |
      <a href="http://www.librenms.org/changelog.html">Changelog</a> |
      <a href="#" data-toggle="modal" data-target="#git_log">Git log</a>
    </p>
开发者ID:CumulusNetworks,项目名称:cldemo-archive,代码行数:30,代码来源:about.inc.php

示例9: print_optionbar_start

<?php 
print_optionbar_start('25');
?>

<form method="post" action="" class="form-inline">
  <div class="input-prepend" style="margin-right: 3px;">
    <span class="add-on">Desc</span>
    <input type="text" name="string" id="prependedInput" class="input-medium" value="<?php 
echo $_POST['string'];
?>
" />
  </div>

  <div class="input-prepend" style="margin-right: 3px;">
    <span class="add-on">Part #</span>
    <select name="part" id="part" class="span2">
      <option value="">All Parts</option>
      <?php 
foreach (dbFetchRows("SELECT `entPhysicalModelName` FROM `entPhysical` GROUP BY `entPhysicalModelName` ORDER BY `entPhysicalModelName`") as $data) {
    echo "<option value='" . $data['entPhysicalModelName'] . "'";
    if ($data['entPhysicalModelName'] == $_POST['part']) {
        echo "selected";
    }
    echo ">" . $data['entPhysicalModelName'] . "</option>";
}
?>
    </select>
  </div>

  <div class="input-prepend" style="margin-right: 3px;">
开发者ID:RomanBogachev,项目名称:observium,代码行数:30,代码来源:inventory.inc.php


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