-
Notifications
You must be signed in to change notification settings - Fork 0
/
dns-advance-name.php
164 lines (127 loc) · 6.05 KB
/
dns-advance-name.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?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">
<!-- Table row -->
<div class="panel-body">
<div class="dataTable_wrapper">
<div class="row">
<div class="col-xs-12 table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th colspan="7">
<div class="col-md-5">
<button style="margin-left:-20px;"type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@mdo"><i class="fa fa-file-o"></i>New DNS</button>
</div>
<div class="col-md-5">
<form class="navbar-form" role="search">
<div class=" pull-right" style="margin-top:-8px;">
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Advance (All) <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
<li><a href="dns-advance-name.php">DNS Name</a></li>
<li><a href="dns-advance-date.php">Date</a></li>
<li class="divider"></li>
<li><a href="dns-advance-cusname.php">Customer Name</a></li>
<li><a href="dns-advance-phone.php">Phone Number</a></li>
</ul>
</div><!-- /btn-group -->
<input type="text" class="form-control" placeholder="Search" name="srch-advance" id="search.php?dnsname=name&srch-term">
<div class="input-group-btn">
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
</div><!-- /btn-group -->
</div><!-- /input-group -->
</div><!-- /.col-lg-3 -->
</form>
</div><!-- /.row -->
<!-- Table row -->
<div class="col-md-2">
<h5 class="pull-right">Date: 2/10/2014</h5>
</div>
</tr>
</thead>
<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
$db->disconnect();
$db->connect();
$txtsrch = get('srch-advance');
$_slide1 = $db->query("SELECT dnsID, dnsName, DateFrom, DateTo, IsLiveTime, CusName, CusPhone
FROM `tblDNS`
WHERE dnsName LIKE '%".$txtsrch."%'
;");
$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 class="iframe" 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 colspan="7"><font color =Red>No Record Found.</font></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>
</div>
</div>
</section>
</aside><!-- /.right-side -->
</div><!-- ./wrapper -->
<!-- add new calendar event modal -->
<?php include 'footer.php';?>