/
index.php
54 lines (49 loc) · 3.06 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* index.php is a model for largely static PHP pages
*
* @package nmCommon
* @author Blake Schwartz
* @version 2.09x 2015
* @link http://www.newmanix.com/
* @license http://opensource.org/licenses/osl-3.0.php Open Software License ("OSL") v. 3.0
* @see config_inc.php
* @todo none
*/
require 'inc_0700/config_inc.php'; #provides configuration, pathing, error handling, db credentials
$config->titleTag = THIS_PAGE; #Fills <title> tag. If left empty will fallback to $config->titleTag in config_inc.php
$config->nav1 = array("aboutus.php"=>"About Us") + $config->nav1;
/*
$config->metaDescription = 'Web Database ITC281 class website.'; #Fills <meta> tags.
$config->metaKeywords = 'SCCC,Seattle Central,ITC281,database,mysql,php';
$config->metaRobots = 'no index, no follow';
$config->loadhead = ''; #load page specific JS
$config->banner = ''; #goes inside header
$config->copyright = ''; #goes inside footer
$config->sidebar1 = ''; #goes inside left side of page
$config->sidebar2 = ''; #goes inside right side of page
$config->nav1["page.php"] = "New Page!"; #add a new page to end of nav1 (viewable this page only)!!
$config->nav1 = array("page.php"=>"New Page!") + $config->nav1; #add a new page to beginning of nav1 (viewable this page only)!!
*/
# END CONFIG AREA ----------------------------------------------------------
get_header(); #defaults to theme header or header_inc.php
?>
<div class="jumbotron" style="margin-top:.5em;">
<h1><?=$config->banner;?></h1>
<p><em><?=$config->slogan;?></em></p>
<a href="http://www.bootswatch.com/" target="_blank" class="btn btn-primary btn-lg">Learn more</a>
</div>
<p>Here are a few more links to demo files that can be used as starting points when building web applications:</p>
<p><a href="<?=VIRTUAL_PATH;?>demo/demo_shared.php" target="_blank">demo_shared</a>: A singleton class based mysqli database (shared) connection application using the Customers table. Best starting point for a non-specific database enabled application </p>
<p><a href="<?=VIRTUAL_PATH;?>demo/demo_postback_nohtml.php">postback_no_html</a>: A vanilla postback switch based application with no specific code other than submittal via POST. Use for building complex postback applications. Compare to <strong>demo_edit</strong> to see what this file can be used to create. </p>
<p><a href="<?=VIRTUAL_PATH;?>demo/demo_list_pager.php" target="_blank">demo_list_pager</a>: A "muffin" example that incorporates the Pager class into a list/view application. Best starting point for a List/View app </p>
<p><a href="<?=VIRTUAL_PATH;?>demo/demo_add.php" target="_blank">demo_add</a>: A postback switch based application for adding new records to the Customers table.</p>
<p><a href="<?=VIRTUAL_PATH;?>demo/demo_edit.php" target="_blank">demo_edit</a>: A postback switch based application for editing existing records in the Customers table</p>
<p> </p>
<?php
//benchmarkNote("Test from index file!");
$config->benchNote = "Test From Index File!";
//echo $config->benchNote;die;
//dumpDie($config);
get_footer(); #defaults to theme header or footer_inc.php
?>