-
Notifications
You must be signed in to change notification settings - Fork 2
/
News.php
143 lines (113 loc) · 3.72 KB
/
News.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
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="cs" />
<meta name="robots" content="all,follow" />
<meta name="author" content="All: ... [Nazev webu - www.url.cz]; e-mail: [email protected]" />
<meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-mail: [email protected]" />
<title>JOB PORTAL</title>
<meta name="description" content="..." />
<meta name="keywords" content="..." />
<link rel="index" href="./" title="Home" />
<link rel="stylesheet" media="screen,projection" type="text/css" href="./css/main.css" />
<link rel="stylesheet" media="print" type="text/css" href="./css/print.css" />
<link rel="stylesheet" media="aural" type="text/css" href="./css/aural.css" />
<style type="text/css">
<!--
.style1 {
color: #000066;
font-weight: bold;
}
.style2 {font-weight: bold}
-->
</style>
</head>
<body id="www-url-cz">
<!-- Main -->
<div id="main" class="box">
<?php
include "Header.php"
?>
<?php
include "menu.php"
?>
<!-- Page (2 columns) -->
<div id="page" class="box">
<div id="page-in" class="box">
<div id="strip" class="box noprint">
<!-- RSS feeds -->
<hr class="noscreen" />
<!-- Breadcrumbs -->
<p id="breadcrumbs"> </p>
<hr class="noscreen" />
</div> <!-- /strip -->
<!-- Content -->
<div id="content">
<!-- /article -->
<hr class="noscreen" />
<!-- /article -->
<hr class="noscreen" />
<!-- Article -->
<!-- /article -->
<hr class="noscreen" />
<!-- Article -->
<div class="article">
<h2><span><a href="#">Latest News</a></span></h2>
<p>
<table width="100%" border="1" cellpadding="1" cellspacing="2" bordercolor="#006699" >
<tr>
<th bgcolor="#006699" class="style3"> </th>
<th height="32" bgcolor="#006699" class="style3"><div align="left" class="style9 style5 style2"><strong>News</strong></div></th>
<th bgcolor="#006699" class="style3"><div align="left" class="style9 style5 style2"><strong>News Date</strong></div></th>
</tr>
<?php
// Establish Connection with Database
$con = mysql_connect("localhost","root");
// Select Database
mysql_select_db("job", $con);
// Specify the query to execute
$sql = "select * from News_Master";
// Execute query
$result = mysql_query($sql,$con);
// Loop through each records
while($row = mysql_fetch_array($result))
{
$News=$row['News'];
$NewsDate=$row['NewsDate'];
?>
<tr>
<td class="style3"><img src="design/ico_archive2.gif" alt="" width="9" height="11" /></td>
<td class="style3"><div align="left" class="style9 style5"><strong><?php echo $News;?></strong></div></td>
<td class="style3"><div align="left" class="style9 style5"><strong><?php echo $NewsDate;?></strong></div></td>
</tr>
<?php
}
// Retrieve Number of records returned
$records = mysql_num_rows($result);
?>
<?php
// Close the connection
mysql_close($con);
?>
</table>
</td>
</tr>
</table>
</p>
<p class="btn-more box noprint"> </p>
</div> <!-- /article -->
<hr class="noscreen" />
</div> <!-- /content -->
<?php
include "right.php"
?>
</div> <!-- /page-in -->
</div> <!-- /page -->
<?php
include "footer.php"
?>
</div> <!-- /main -->
</body>
</html>