Clean up page headers

This commit is contained in:
Ruan 2015-07-08 08:36:27 +02:00
parent 2db9e7ec6a
commit 4fee252b31
4 changed files with 13 additions and 27 deletions

View File

@ -1,15 +1,7 @@
<?php require './includes/page.php'; ?> <?php require './includes/page.php'; ?>
<title>Tempbans - <?php echo $name; ?></title> <title>Tempbans - <?php echo $name; ?></title>
<div class="container"> <div class="container">
<div class="row"> <?php print_page_header("Bans"); ?>
<div class="col-lg-12">
<h1 class="page-header">Bans</h1>
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li class="active">Bans</li>
</ol>
</div>
</div>
<br/> <br/>
<!-- Ban check form --> <!-- Ban check form -->
<form onsubmit="captureForm(event);" class="form-inline"> <form onsubmit="captureForm(event);" class="form-inline">

View File

@ -77,6 +77,16 @@ function clean($text) {
return $text; return $text;
} }
function print_page_header($title) {
echo('
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">' . $title . '</h1>
</div>
</div>
');
}
function print_table_headers($headers) { function print_table_headers($headers) {
echo("<thead><tr>"); echo("<thead><tr>");
foreach ($headers as $header) { foreach ($headers as $header) {

View File

@ -1,15 +1,7 @@
<?php require './includes/page.php'; ?> <?php require './includes/page.php'; ?>
<title>TempMutes - <?php echo $name; ?></title> <title>TempMutes - <?php echo $name; ?></title>
<div class="container"> <div class="container">
<div class="row"> <?php print_page_header("Mutes"); ?>
<div class="col-lg-12">
<h1 class="page-header">Mutes</h1>
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li class="active">Mutes</li>
</ol>
</div>
</div>
<div class="row" style="margin-bottom:60px;"> <div class="row" style="margin-bottom:60px;">
<div class="col-lg-12"> <div class="col-lg-12">
<table class="table table-hover table-bordered table-condensed"> <table class="table table-hover table-bordered table-condensed">

View File

@ -1,15 +1,7 @@
<?php require './includes/page.php'; ?> <?php require './includes/page.php'; ?>
<title>Warnings - <?php echo $name; ?></title> <title>Warnings - <?php echo $name; ?></title>
<div class="container"> <div class="container">
<div class="row"> <?php print_page_header("Warnings"); ?>
<div class="col-lg-12">
<h1 class="page-header">Warnings</h1>
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li class="active">Warnings</li>
</ol>
</div>
</div>
<div class="row" style="margin-bottom:60px;"> <div class="row" style="margin-bottom:60px;">
<div class="col-lg-12"> <div class="col-lg-12">
<table class="table table-hover table-bordered table-condensed"> <table class="table table-hover table-bordered table-condensed">