コード例 #1
0
<?php

require_once './function.php';
$result = view_student();
?>
<!DOCTYPE html>
<html>
    <head>
        <title>View Student</title>
        <link rel="stylesheet" type="text/css" href="./css/bootstrap.min.css" />
        <script src="js/jquery.min.js"></script>
        <script src="js/bootstrap.js"></script>
        
    </head>
    <body>
        
        <nav class="navbar navbar-inverse navbar-fixed-top" >
            <div class="container">
                <div class="navbar-header" >
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#my_menu">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span> 
                    </button>
                    <a href="#" class="navbar-brand">My Site</a>
                        
                </div>
                
                <div class="navbar-collapse collapse" id="my_menu">
                    <ul class="nav navbar-nav">
コード例 #2
0
ファイル: viewStudent.php プロジェクト: Jack082595/SitInMGT
<?php

$viewStudent = view_student();
?>
<html>
<body>
	<div class="container">
		<div class="row col-md-12">
		<h4>View All Student</h4>
		<?php 
if (count($viewStudent) > 0) {
    ?>
	
		<hr/>
		<table border="0" class="table table-striped table-condensed table-bordered">
			<thead>
				<tr>
					<th width="40"></th>
					<th width="80"><center>Student ID</center></th>
					<th width="80"><center>Name</center></th>
					<th width="80"><center>Course</center></th>
					<th width="80"><center>Year level</center></th>
					<th width="200"><center>Status</center></th>
				</tr>
			</thead>
			<tbody>
				<?php 
    foreach ($viewStudent as $v) {
        ?>
				<tr>
					<td><center>
コード例 #3
0
ファイル: searchStudent.php プロジェクト: Jack082595/SitInMGT
<?php

$q = '';
if (isset($_POST['q'])) {
    $q = trim($_POST['q']);
}
if ($q == '') {
    $search = view_student();
} else {
    $search = search_student($q);
}
?>

<html>
<body>
	<div class="container">
		<div class="row col-lg-12">
			<h4>
				Search Student
					<div class="pull-right">
					<form method="post" class="form-inline">
						<div class="input-group">
							<input type="text" name="q" value="<?php 
echo htmlentities($q);
?>
" class="form-control input-small" placeholder="Search for student...">
						  <span class="input-group-btn">
							<button class="btn btn-default btn-large" type="submit" name="go">Go</button>
						  </span>					  
						</div><!-- /input-group -->					
					</form>