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


PHP navbar函数代码示例

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


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

示例1: display_phpc

function display_phpc()
{
    global $phpc_messages, $phpc_redirect, $phpc_script, $phpc_prefix, $phpc_title, $phpcdb, $phpc_cal, $phpc_home_url;
    $navbar = false;
    try {
        $calendars = $phpcdb->get_calendars();
        $list = array();
        if (isset($phpc_cal)) {
            $phpc_title = $phpc_cal->get_title();
            $title_link = tag('a', attrs("href='{$phpc_home_url}?phpcid={$phpc_cal->get_cid()}'", 'class="phpc-dropdown-list-title"'), $phpc_title);
        } else {
            $phpc_title = __("(No calendars)");
            $title_link = $phpc_title;
        }
        foreach ($calendars as $calendar) {
            $list["{$phpc_home_url}?phpcid={$calendar->get_cid()}"] = $calendar->get_title();
        }
        if (sizeof($calendars) > 1) {
            $title_tag = create_dropdown_list($title_link, $list);
        } else {
            $title_tag = $title_link;
        }
        $content = do_action();
        if (sizeof($phpc_messages) > 0) {
            $messages = tag('div');
            foreach ($phpc_messages as $message) {
                $messages->add($message);
            }
            // If we're redirecting, the messages might not get
            //   seen, so don't clear them
            if (empty($phpc_redirect)) {
                $_SESSION["{$phpc_prefix}messages"] = NULL;
            }
        } else {
            $messages = '';
        }
        return tag('div', attrs('class="php-calendar ui-widget"'), userMenu(), tag('br', attrs('style="clear:both;"')), tag('div', attrs('class="phpc-title ui-widget-header"'), $title_tag), navbar(), $messages, $content, footer());
    } catch (PermissionException $e) {
        $msg = __('You do not have permission to do that: ') . $e->getMessage();
        if (is_user()) {
            return error_message_redirect($msg, $phpc_script);
        } else {
            return error_message_redirect($msg, "{$phpc_script}?action=login");
        }
    } catch (InvalidInputException $e) {
        return error_message_redirect($e->getMessage(), $e->target);
    } catch (Exception $e) {
        return display_exception($e, $navbar);
    }
}
开发者ID:hubandbob,项目名称:php-calendar,代码行数:50,代码来源:calendar.php

示例2: array_unique

$row_days = array_unique($row_days);
$column_periods = array_unique($column_periods);
sort($row_days);
sort($column_periods);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php 
head();
?>
</head>
  <body>
	
	<?php 
navbar(1);
?>
	
    <div class="container" role="main">
    	<div class="page-header">
    		<h1><span class="fa fa-table"></span>&nbsp;Your Timetable</h1>
    	</div>
    	<ul class="list-inline">
    	<li>View:</li>
    	<li><a class="btn <?php 
if ($viewing_by_day) {
    echo 'btn-default';
} else {
    echo 'btn-info';
}
?>
开发者ID:ryunoneil,项目名称:a2-comp4,代码行数:31,代码来源:timetable.php

示例3: view_config

function view_config($sid)
{
    global $dbconn;
    navbar($sid);
    echo "<CENTER><TEXTAREA rows=15 cols=80 ># " . _("This file was automagically created") . "\n\n";
    if ($_SESSION["scanner"] == "nessus") {
        $query = "SELECT t1.id, t1.enabled FROM vuln_nessus_settings_plugins as t1\n          LEFT JOIN vuln_nessus_category t2 on t1.category=t2.id\n          WHERE t2.name ='scanner' and t1.sid={$sid} order by id";
    } else {
        $query = "SELECT t3.oid, t1.enabled FROM vuln_nessus_settings_plugins as t1\n                LEFT JOIN vuln_nessus_category t2 on t1.category=t2.id\n                LEFT JOIN vuln_nessus_plugins t3 on t1.id=t3.id\n                WHERE t2.name ='scanner' and t1.sid={$sid} order by oid";
    }
    $result = $dbconn->execute($query);
    echo "begin(SCANNER_SET)\n";
    while (list($id, $enabled) = $result->fields) {
        $enabled1 = "yes";
        if ($enabled == "N") {
            $enabled1 = "no";
        }
        echo " {$id} = {$enabled1}\n";
        $result->MoveNext();
    }
    echo "end(SCANNER_SET)\n\n";
    $query = "Select nessus_id, value from vuln_nessus_settings_preferences \n      WHERE category='SERVER_PREFS' and sid={$sid}";
    $result = $dbconn->execute($query);
    echo "begin(SERVER_PREFS)\n";
    while (list($nessus_id, $value) = $result->fields) {
        echo " {$nessus_id} = {$value}\n";
        $result->MoveNext();
    }
    echo "end(SERVER_PREFS)\n\n";
    $query = "Select nessus_id, value from vuln_nessus_settings_preferences\n      WHERE category='PLUGINS_PREFS' and sid={$sid}";
    $result = $dbconn->execute($query);
    echo "begin(PLUGINS_PREFS)\n";
    while (list($nessus_id, $value) = $result->fields) {
        echo " {$nessus_id} = {$value}\n";
        $result->MoveNext();
    }
    echo "end(PLUGINS_PREFS)\n\n";
    if ($_SESSION["scanner"] == "nessus") {
        $query = "SELECT t1.id, t1.enabled FROM vuln_nessus_settings_plugins as t1\n      LEFT JOIN vuln_nessus_category t2 on t1.category=t2.id\n      WHERE t2.name <>'scanner' and t1.sid={$sid} order by id";
    } else {
        $query = "SELECT t3.oid, t1.enabled FROM vuln_nessus_settings_plugins as t1\n      LEFT JOIN vuln_nessus_category t2 on t1.category=t2.id\n      LEFT JOIN vuln_nessus_plugins t3 on t1.id=t3.id\n      WHERE t2.name <>'scanner' and t1.sid={$sid} order by oid";
    }
    $result = $dbconn->execute($query);
    echo "begin(PLUGIN_SET)\n";
    while (list($id, $enabled) = $result->fields) {
        $enabled1 = "yes";
        if ($enabled == "N") {
            $enabled1 = "no";
        }
        echo " {$id} = {$enabled1}\n";
        $result->MoveNext();
    }
    echo "end(PLUGIN_SET)\n\n";
    echo "</TEXTAREA></CENTER>";
}
开发者ID:jhbsz,项目名称:ossimTest,代码行数:55,代码来源:settings.php

示例4: navbar

      <?php 
include "htmlPieces/header_links.php";
?>
      <link rel="stylesheet" type="text/css" href="css/style_gallery.css">
        <script src="js/gallery.js"></script>
      <title>الصور</title>
  </head>
  <body>
      <div class="container">
    <!--*************  header ***************--> 
        <?php 
include "htmlPieces/header.php";
?>

            <?php 
navbar(7);
?>

                <div id="gallery">
                  <div class="row">
                      <div  id="pictureframe"></div>
                  </div>
                  <div class="row">
                     <div  id="thumbnailbox"></div>
                  </div>
                </div>
                <script>ajax_json_gallery();</script>

    

      <!-- ********* footer **************** -->
开发者ID:amjedyousef,项目名称:Alcauther-website,代码行数:31,代码来源:images.php

示例5: head

include DIR_LIB . 'helpers/ui.php';
include DIR_LIB . 'helpers/timetable.php';
Authentication::require_login();
$week_block = 0;
?>

<!DOCTYPE html>
<html lang="en">
<?php 
head();
?>

  <body>
	
	<?php 
navbar();
?>
	
    <div class="container" role="main">
	    
    <h1 align="center" class="home-greeting-text"> <?php 
echo date('l jS M Y');
?>
</h1>
    
    <p class="lead">You have <?php 
echo TaskList::getAllOutstandingCount(Authentication::get_user());
?>
 tasks outstanding.</p>
    
    <h2>Your Timetable</h2>
开发者ID:ryunoneil,项目名称:a2-comp4,代码行数:31,代码来源:index.php

示例6: head_tags

<!DOCTYPE html>
<html>
	<head>
		<title>Maaatch&nbsp;&nbsp;|&nbsp;&nbsp;Register</title>
		<?php 
require '/var/www/maaatch.com/htdocs/common/common.php';
?>
		<?php 
head_tags();
?>
		<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
		<script src="rvalidate.js"></script>
	</head>
	<body>
		<?php 
navbar("Sign Up", 0);
?>
		<main class="container">
			<form class="form-signin" action="register.php" method="post">

				<h2 class="form-signin-heading">Register an account</h2>
				
				<label for="inputUser" class="sr-only">Username</label>
				<input name="username" type="text" id="inputUser" class="form-control" placeholder="Username" required autofocus>
				
				<label for="inputFirstName" class="sr-only">First Name</label>
				<input name="firstname" type="text" id="inputFirstName" class="form-control" placeholder="First Name" required>
				
				<label for="inputLastName" class="sr-only">Last Name</label>
				<input name="lastname" type="text" id="inputLastName" class="form-control" placeholder="Last Name" required>
开发者ID:Inityx,项目名称:maaatch.com,代码行数:30,代码来源:index.php

示例7: navbar

                        </table>
                        </form>
                        </center>
                        <!-- END add new entry -->

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
             <?php 
navbar("coordination_of_services.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
开发者ID:Byrnesz,项目名称:MyIEP,代码行数:30,代码来源:edit_coordination_of_services.php

示例8: navbar

  
  .tasks-actionbtn
  {
	  cursor:hand;
	  cursor:pointer;
  }
  
  </style>
  
  </head>


  <body>
	
	<?php 
navbar(2);
?>
	
    <div class="container" role="main">
        <div class="page-header">
        <h1><span class="glyphicon glyphicon-ok"></span>&nbsp;Tasks <small><?php 
$conditions = array('user_id' => Authentication::get_user());
$viewing_single = false;
if (isset($_GET['list'])) {
    if (ctype_digit($_GET['list'])) {
        $conditions['id'] = $_GET['list'];
        $viewing_single = true;
        echo 'single view';
    }
} else {
    echo TaskList::getAllOutstandingCount(Authentication::get_user()) . ' outstanding';
开发者ID:ryunoneil,项目名称:a2-comp4,代码行数:30,代码来源:tasks.php

示例9: navbar

    //while (list($k,$v) = each($headers)) {
    //  echo "<!-- ", htmlspecialchars($k),": ",preg_replace("/-+/", "-", htmlspecialchars($v))," -->\n";
    //}
    echo "   </table>\n";
    echo "  </blockquote>\n";
    echo "  <blockquote>\n";
    echo "   <pre>\n";
}
// Does not check existence of next, so consider this the super duper fast [broken] version
// Based off navbar() in group.php
function navbar($group, $current)
{
    $group = htmlspecialchars($group, ENT_QUOTES, "UTF-8");
    echo '  <table border="0" cellpadding="2" cellspacing="2" width="100%">' . "\n";
    echo '   <tr>' . "\n";
    echo '    <th class="nav">';
    if ($current > 1) {
        echo '     <a href="/', $group, '/', $current - 1, '"><b>&laquo; previous</b></a>';
    } else {
        echo '&nbsp;';
    }
    echo '    </th>' . "\n";
    echo '    <th align="center">' . "{$group} (#{$current})</th>\n";
    echo '    <th align="right" class="nav">';
    echo '     <a href="/', $group, '/', $current + 1, '"><b>next &raquo;</b></a>';
    echo '    </th>' . "\n";
    echo '   </tr>' . "\n";
    echo '  </table>' . "\n";
}
navbar($group, $article);
foot();
开发者ID:adduc,项目名称:web-news,代码行数:31,代码来源:article.php

示例10: DisplayTopic

function DisplayTopic($pollID, $pid = 0, $tid = 0, $mode = "thread", $order = 0, $thold = 0, $level = 0, $nokids = 0)
{
    global $hr, $user, $datetime, $cookie, $userinfo, $admin, $commentlimit, $anonymous, $reasons, $anonpost, $foot1, $foot2, $foot3, $foot4, $prefix, $module_name, $db, $admin_file, $user_prefix;
    if (defined('NUKE_FILE')) {
        global $title, $bgcolor1, $bgcolor2, $bgcolor3;
    } else {
        global $title, $bgcolor1, $bgcolor2, $bgcolor3;
        include "mainfile.php";
        include "header.php";
    }
    if ($pid != 0) {
        include "header.php";
    }
    $count_times = 0;
    cookiedecode($user);
    getusrinfo($user);
    $pollID = intval($pollID);
    $pid = intval($pid);
    if (!isset($mode) or empty($mode)) {
        if (isset($userinfo['umode'])) {
            $mode = $userinfo['umode'];
        } else {
            $mode = "thread";
        }
    }
    if (!isset($order) or empty($order)) {
        if (isset($userinfo['uorder'])) {
            $order = $userinfo['uorder'];
        } else {
            $order = 0;
        }
    }
    if (!isset($thold) or empty($thold)) {
        if (isset($userinfo['thold'])) {
            $thold = $userinfo['thold'];
        } else {
            $thold = 0;
        }
    }
    $tid = intval($tid);
    $q = "select tid, pid, pollID, date, name, email, host_name, subject, comment, score, reason from " . $prefix . "_pollcomments where pollID='{$pollID}' and pid='{$pid}'";
    if (!empty($thold)) {
        $q .= " and score>='{$thold}'";
    } else {
        $q .= " and score>='0'";
    }
    if ($order == 1) {
        $q .= " order by date desc";
    }
    if ($order == 2) {
        $q .= " order by score desc";
    }
    $something = $db->sql_query($q);
    $num_tid = $db->sql_numrows($something);
    navbar($pollID, $title, $thold, $mode, $order);
    modone();
    while ($count_times < $num_tid) {
        echo "<br>";
        OpenTable();
        $row_q = $db->sql_fetchrow($something);
        $tid = intval($row_q['tid']);
        $pid = intval($row_q['pid']);
        $pollID = intval($row_q['pollID']);
        $date = $row_q['date'];
        $c_name = filter($row_q['name'], "nohtml");
        $email = filter($row_q['email'], "nohtml");
        $host_name = filter($row_q['host_name'], "nohtml");
        $subject = filter($row_q['subject'], "nohtml");
        $comment = filter($row_q['comment']);
        $score = intval($row_q['score']);
        $reason = intval($row_q['reason']);
        $karma = $db->sql_fetchrow($db->sql_query("SELECT karma FROM " . $user_prefix . "_users WHERE username='{$c_name}'"));
        $karma = intval($karma['karma']);
        if (is_admin($admin)) {
            if ($karma == 1) {
                $karma = "<img src=\"images/karma/1.gif\" border=\"0\" alt=\"" . _KARMALOW . "\" title=\"" . _KARMALOW . "\">&nbsp;";
            } elseif ($karma == 2) {
                $karma = "<img src=\"images/karma/2.gif\" border=\"0\" alt=\"" . _KARMABAD . "\" title=\"" . _KARMABAD . "\">&nbsp;";
            } elseif ($karma == 3) {
                $karma = "<img src=\"images/karma/3.gif\" border=\"0\" alt=\"" . _KARMADEVIL . "\" title=\"" . _KARMADEVIL . "\">&nbsp;";
            } else {
                $karma = "";
            }
        } else {
            $karma = "";
        }
        if (empty($c_name)) {
            $c_name = $anonymous;
        }
        if (empty($subject)) {
            $subject = "[" . _NOSUBJECT . "]";
        }
        echo "<a name=\"{$tid}\">";
        echo "<table width=99% border=0><tr bgcolor=\"{$bgcolor1}\"><td width=500>";
        formatTimestamp($date);
        if ($email) {
            echo "<p><b>{$subject}</b> <font class=content>";
            if ($userinfo['noscore'] == 0) {
                echo "(" . _SCORE . " {$score}";
                if ($reason > 0) {
//.........这里部分代码省略.........
开发者ID:rotvulpix,项目名称:php-nuke,代码行数:101,代码来源:comments.php

示例11: navbar

                        </form>
                        </center>
                        <!-- END edit accomodation -->


                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
            <?php 
navbar("accomodations.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
开发者ID:Byrnesz,项目名称:MyIEP,代码行数:30,代码来源:edit_accomodations.php

示例12: navbar

                        </table>
                        </form>
                        </center>
                        <!-- END edit entry -->

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
                <?php 
navbar("achieve_level.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
开发者ID:Byrnesz,项目名称:MyIEP,代码行数:30,代码来源:edit_achieve_level.php

示例13: format_date

            echo "    <td align=\"center\"><tt>" . format_date($details['date']) . "</tt></td>\n";
            echo "    <td align=\"right\">{$details['lines']}</td>\n";
            echo "   </tr>\n";
    }
}
switch ($format) {
    case 'rss':
        echo " </channel>\n</rss>\n";
        break;
    case 'rdf':
        echo "</rdf:RDF>\n";
        break;
    case 'html':
    default:
        echo "  </table>\n";
        navbar($group, $overview['group']['low'], $overview['group']['high'], $overview['group']['start']);
        foot();
}
function navbar($g, $f, $l, $i)
{
    echo '  <table border="0" cellpadding="2" cellspacing="2" width="100%">' . "\n";
    echo '   <tr>' . "\n";
    echo '    <th class="nav">';
    if ($i > $f) {
        $p = max($i - 20, $f);
        echo "<a href=\"/" . htmlspecialchars($g, ENT_QUOTES, "UTF-8") . "/start/{$p}\"><b>&laquo; previous</b></a>";
    } else {
        echo "&nbsp;";
    }
    echo '</th>' . "\n";
    $j = min($i + 20, $l);
开发者ID:ramsey,项目名称:web-news,代码行数:31,代码来源:group.php

示例14: navbar

                        </tr>
                        </table>
                        </form>
                        </center>

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
            <?php 
navbar("guardian_view.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
开发者ID:Byrnesz,项目名称:MyIEP,代码行数:30,代码来源:edit_address.php

示例15: printheader

    echo "<table align='center'>\n";
    echo "<tr><td>New Group Name:</td>\n";
    echo "<td><input type='text' name='groupname' value='{$groupname}'></td></tr>\n";
    echo "<tr><td colspan=2 align='center'>";
    if ($groupid) {
        echo "<input type='submit' name='submit' value='Modify Group'>";
    } else {
        echo "<input type='submit' name='submit' value='Add Group'>";
    }
    echo "</td></tr>\n";
    echo "</table>\n";
    echo "</form>\n";
}
/****************************************************************/
printheader("Groups of PhpLabware");
navbar($USER["permissions"]);
// when the 'Add a new Group' button has been chosen:
if ($add) {
    group_form("", "");
} elseif ($mod == "true") {
    group_form($groupid, $groupname);
} else {
    // print header of table
    echo "<table border=\"1\" align=center >\n";
    echo "<caption>\n";
    // first handle addition of a new group
    if ($submit == "Add Group") {
        if ($test = add_new_group($db, $groupname)) {
            echo "</caption>\n</table>\n";
            echo "<table align='center'><caption>{$test}</caption></table>";
            group_form("", $groupname);
开发者ID:nicost,项目名称:phplabware,代码行数:31,代码来源:groups.php


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