Include page titles in html title
Former-commit-id: a84e9481e0b4d39ba1e6e3776c3376af25f26ed3
--- a/about.php
+++ b/about.php
@@ -1,6 +1,6 @@
<?php
include_once('include/common.inc.php');
-include_header();
+include_header('About');
?>
<div class="foundation-header">
<h1><a href="about.php">About/FAQ</a></h1>
--- a/charts.php
+++ b/charts.php
@@ -1,6 +1,6 @@
<?php
include_once('include/common.inc.php');
-include_header();
+include_header('Charts');
$db = $server->get_db('disclosr-agencies');
?>
<div class="foundation-header">
--- a/getAgency.php
+++ b/getAgency.php
@@ -1,7 +1,7 @@
<?php
include_once('include/common.inc.php');
-include_header();
+
function displayValue($key, $value, $mode) {
global $db, $schemas;
@@ -108,6 +108,7 @@
// edit?
$obj = $db->get($_REQUEST['id']);
+ include_header($obj->name);
//print_r($row);
if (sizeof($_POST) > 0) {
//print_r($_POST);
@@ -185,7 +186,8 @@
echo '<input id="submitbutton" type="submit"/></form>';
}
} else {
-
+// show all list
+ include_header('Agencies');
try {
/* $rows = $db->get_view("app", "showNamesABNs")->rows;
//print_r($rows);
--- a/include/template.inc.php
+++ b/include/template.inc.php
@@ -1,6 +1,6 @@
<?php
-function include_header() {
+function include_header($title) {
global $basePath;
?>
<!DOCTYPE html>
@@ -16,7 +16,7 @@
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-width" />
- <title>Disclosr</title>
+ <title><?php echo $title; ?> - Disclosr</title>
<!-- Included CSS Files -->
<link rel="stylesheet" href="<?php echo $basePath ?>stylesheets/foundation.css">
--- a/score.php
+++ b/score.php
@@ -1,7 +1,7 @@
<?php
include_once('include/common.inc.php');
-include_header();
+include_header('Scores');
$db = $server->get_db('disclosr-agencies');
--- a/search.php
+++ b/search.php
@@ -1,6 +1,6 @@
<?php
include_once('include/common.inc.php');
-include_header();
+include_header('Search');
?>
<div class="foundation-header">
<h1><a href="search.php">Search</a></h1>
--- a/webserver.php
+++ b/webserver.php
@@ -1,7 +1,7 @@
<?php
include_once('include/common.inc.php');
-include_header();
+include_header('Webserver and Accessiblity');
echo "<table>
<tr><th>name</th><th>webserver</th><th>accessiblity errors</th></tr>";