-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
54 lines (51 loc) · 1.76 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
<?php
require("conn.php");
if(isset($_GET['page']))
{
if($_GET['page']=='client')
{
include("client.php");
}
if($_GET['page']=='add')
{
include("add.php");
}
if($_GET['page']=='show')
{
include("show.php");
}
if($_GET['page']=='showclient')
{
include("showclient.php");
}
if($_GET['page']=='addclient')
{
include("addclient.php");
}
if($_GET['page']=='addsuccess')
{
echo '<br><div class="label label-success">Details Saved.</div><br><br>
<a href="index.php?page=client"><button class="btn-primary btn col-sm-2">Print Invoice</button></a>
<a href="index.php?page=show"><button class="btn-primary btn col-sm-2">show Invoice</button></a>
<a href="index.php?page=add"><button class="btn-primary btn col-sm-2">Add Invoice</button><a>
<a href="index.php?page=delete"><button class="btn-primary btn col-sm-2">Remove Invoice</button></a><br><br>
<a href="index.php?page=addclient"><button class="btn-primary btn col-sm-2">Add Client</button></a>
<a href="index.php?page=showclient"><button class="btn-primary btn col-sm-2">Show Client</button></a>
';
}
if($_GET['page']=='delete')
{
include("delete.php");
}
}
else{
?>
<a href="index.php?page=client"><button class="btn-primary btn col-sm-2">Print Invoice</button></a>
<a href="index.php?page=show"><button class="btn-primary btn col-sm-2">show Invoice</button></a>
<a href="index.php?page=add"><button class="btn-primary btn col-sm-2">Add Invoice</button><a>
<a href="index.php?page=delete"><button class="btn-primary btn col-sm-2">Remove Invoice</button></a><br><br>
<a href="index.php?page=addclient"><button class="btn-primary btn col-sm-2">Add Client</button></a>
<a href="index.php?page=showclient"><button class="btn-primary btn col-sm-2">Show Client</button></a>
<?php
}
?>