-
Notifications
You must be signed in to change notification settings - Fork 0
/
dns-notuse.php
137 lines (105 loc) · 5.25 KB
/
dns-notuse.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php include 'header.php';
?>
<body class="skin-blue">
<!-- header logo: style can be found in header.less -->
<?php include 'nav.php';?>
<!-- Left side column. contains the logo and sidebar -->
<?php include 'menu.php';?>
<!-- Right side column. Contains the navbar and content of the page -->
<aside class="right-side">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active">Dashboard</li>
</ol>
</section>
<!-- Main content -->
<section class="content invoice">
<!-- title row -->
<div class="row">
<div class="col-xs-12">
<h2 class="page-header">
<i class="fa fa-globe"></i>
<small class="pull-right">Date: 2/10/2014</small>
</h2>
</div><!-- /.col -->
</div>
<a href="dns-new.php">
<button class="btn btn-primary" data-toggle="modal" data-target="#NewFloor"><i class="fa fa-file-o"></i> New DNS</button>
</a>
<div class="col-sm-3 col-md-3 pull-right">
<form class="navbar-form" role="search" action="search.php">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search" name="srch-term" id="srch-term">
<div class="input-group-btn">
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
</div>
</div>
</form>
</div>
<!-- Table row -->
<div class="row">
<div class="col-xs-12 table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>No</th>
<th>DNS Name</th>
<th>Customer</th>
<th>Phone</th>
<th>From Date</th>
<th>To Date</th>
<th>Is Live Time</th>
</tr>
</thead>
<tbody>
<?php
$_slide1 = $db->query("SELECT dnsID, dnsName, DateFrom, DateTo, IsLiveTime, CusName, CusPhone FROM `tblDNS`;");
$numrow=$db->dbCountRows($_slide1);
$i = 1;
if($numrow>0)
{
while($row=$db->fetch($_slide1)){
$dnsID = $row->dnsID;
$dnsName = $row->dnsName;
$CusName = $row->CusName;
$DateFrom = $row->DateFrom;
$DateTo = $row->DateTo;
$IsLiveTime = $row->IsLiveTime;
$CusPhone = $row->CusPhone;
echo '<tr>
<td>'.$i++.'</td>
<td><a href="dns-update.php?id='.$dnsID.'">'.$dnsName.'</a></td>
<td>'.$CusName.'</td>
<td>'.$CusPhone.'</td>
<td>'.$DateFrom.'</td>
<td>'.$DateTo.'</td>
<td>'.$IsLiveTime.'</td>
</tr>';
}
}
else
echo'<tr><td>No Record Found.</td></tr>';
?>
</tbody>
</table>
</div><!-- /.col -->
</div><!-- /.row -->
<div class="row">
<!-- accepted payments column -->
<!-- this row will not appear when printing -->
<div class="row no-print">
<div class="col-xs-12">
<button class="btn btn-primary pull-right" onClick="window.print();"><i class="fa fa-print"></i> Print</button>
</div>
</div>
</section>
</aside><!-- /.right-side -->
</div><!-- ./wrapper -->
<!-- add new calendar event modal -->
<?php include 'footer.php';?>