-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
36 lines (30 loc) · 898 Bytes
/
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
<!--
#*************************************************************
#
# SUBJECT: SIMPLE PHP AJAX CRUD
# AUTHOR NAME: JAYVEE P AYAO
# CREATED DATE : March 15, 2018
# FACEBOOK: https://www.facebook.com/jay.romantiko
# LINKEDIN: https://www.linkedin.com/in/jayvee-ayao-487b5613a/
#
#*************************************************************
-->
<?php require 'config/db.php' ?>
<?php
$pg = (isset($_GET['pg']) && !empty($_GET['pg'])? $_GET['pg']:'');
switch($pg){
case 'home':
$title = 'home';
$active = 'home';
$content = 'view/home.php';
$js=array("asset/action.js");
break;
default:
$title = 'home';
$active = 'home';
$content = 'view/home.php';
$js=array("asset/action.js");
break;
}
include 'template/content.php';
?>