forked from codepoetIn/POSNIC-1.02
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-full-width.php
169 lines (109 loc) · 4.3 KB
/
page-full-width.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
165
166
167
168
169
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>POSNIC - Full width page</title>
<!-- Stylesheets -->
<!--database connection-->
<link rel="stylesheet" href="css/style.css">
<!-- Optimize for mobile devices -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- jQuery & JS files -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="js/script.js"></script>
</head>
<body>
<!-- TOP BAR -->
<div id="top-bar">
<div class="page-full-width cf">
<ul id="nav" class="fl">
<li class="v-sep"><a href="#" class="round button dark ic-left-arrow image-left">Go to website</a></li>
<li class="v-sep"><a href="#" class="round button dark menu-user image-left">Logged in as <strong>admin</strong></a>
<ul>
<li><a href="#">My Profile</a></li>
<li><a href="#">User Settings</a></li>
<li><a href="#">Change Password</a></li>
<li><a href="#">Log out</a></li>
</ul>
</li>
<li><a href="#" class="round button dark menu-email-special image-left">3 new messages</a></li>
<li><a href="#" class="round button dark menu-logoff image-left">Log out</a></li>
</ul> <!-- end nav -->
<form action="#" method="POST" id="search-form" class="fr">
<fieldset>
<input type="text" id="search-keyword" class="round button dark ic-search image-right" placeholder="Search..." />
<input type="hidden" value="SUBMIT" />
</fieldset>
</form>
</div> <!-- end full-width -->
</div> <!-- end top-bar -->
<!-- HEADER -->
<div id="header-with-tabs">
<div class="page-full-width cf">
<ul id="tabs" class="fl">
<li><a href="dashboard.php" class="dashboard-tab">Dashboard</a></li>
<li><a href="page-full-width.php" class="active-tab">Full width page</a></li>
<li><a href="page-other.php">Other page elements</a></li>
</ul> <!-- end tabs -->
<!-- Change this image to your own company's logo -->
<!-- The logo will automatically be resized to 30px height. -->
<a href="#" id="company-branding-small" class="fr"><img src="images/company-logo.png" alt="Blue Hosting" /></a>
</div> <!-- end full-width -->
</div> <!-- end header <th><input type="checkbox" id="table-select-all"></th>-->
<!-- MAIN CONTENT -->
<div id="content">
<div class="page-full-width cf">
<div class="content-module">
<div class="content-module-heading cf">
<h3 class="fl">Full width page</h3>
<span class="fr expand-collapse-text">Click to collapse</span>
<span class="fr expand-collapse-text initial-expand">Click to expand</span>
</div> <!-- end content-module-heading -->
<div class="content-module-main">
<p>This is a page that spans the entire available space. You can use this as an alternative to the two-column
layout that you saw in <a href="dashboard.php">the dashboard page</a>.</p>
<p>Here's what a table looks like when spanned the entire width.</p>
<table>
<thead>
<?php
$con = mysql_connect('localhost', 'root', '');
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("s", $con);
$sql="SELECT * FROM a" ;
$result = mysql_query($sql);
echo "
<tr>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Actions</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['username'] . "</td>";
echo "<td>" . $row['email'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>
</tbody>
</table>
<div class="stripe-separator"><!-- --></div>
<p>When you resize the page, all the elements inside the page will resize as well, this being a liquid or fluid layout.</p>
</div> <!-- end content-module-main -->
</div> <!-- end content-module -->
</div> <!-- end full-width -->
</div> <!-- end content -->
<!-- FOOTER -->
<div id="footer">
<p>© Copyright 2012 <a href="#">BlueHosting, LLC</a>. All rights reserved.</p>
<p><strong>SimpleAdmin</strong> theme by <a href="http://www.adipurdila.com">Adi Purdila</a></p>
</div> <!-- end footer -->
</body>
</html>?>