-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharticle.php
More file actions
executable file
·79 lines (75 loc) · 2.59 KB
/
article.php
File metadata and controls
executable file
·79 lines (75 loc) · 2.59 KB
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
<?php
// get library file and include
include_once ("lib/lib.inc.php");
// setup page vars
$pageID = $_GET['pageID'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>COMPANY NAME</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="JavaScript1.2" src="menu/stmenu.js"></script>
</head>
<body>
<div id="wrapper">
<div id="header">
<?php include ("inc/search.inc.php"); ?>
</div>
<div id="navigation"><?php include ("inc/menu.inc.php"); ?></div>
<div id="date"><?php echo date("D jS M Y"); ?></div>
<div id="container">
<div id="leftcolumn">
<!-- <?php include ("inc/news_menu.inc.php"); ?> -->
</div>
<!-- start main content -->
<div id="content">
<!-- page title -->
<div id="title">
<h2 class="bluetxt">
<?php
// get page name
if ($pageID && $pageID >= "81150") {
$distitle = db_query("select name from ".$dbext."child_menu where cid = '".$pageID."' and active = '1' limit 1") or db_die();
$pgtitle = fetch_row($distitle);
echo $pgtitle[0];
} elseif ($pageID && $pageID <= "81150") {
$distitle = db_query("select name from ".$dbext."sub_menu where sid = '".$pageID."' and active = '1' limit 1") or db_die();
$pgtitle = fetch_row($distitle);
echo $pgtitle[0];
} else {
$distitle = db_query("select name from ".$dbext."parent_menu where pid = '91112' limit 1") or db_die();
$pgtitle = fetch_row($distitle);
echo $pgtitle[0];
}
?>
</h2>
</div>
<!-- body copy -->
<?php
// content begins - the query
if ($pageID) {
$sql = db_query ("select headline, newsbody, release_date, attachedfile from ".$dbext."news where newsid = '".$pageID."' limit 1") or db_die();
$row = fetch_row($sql);
print '<h2 class="bluetxt">'.$row[0].'</h2>
'.$row[1].'<br /><br /><em class="greytxt txt10">';
goBack();
print ' : Release Date: '.$row[2].' ';
if ($row[3] != "") {
print ': <a href="'.$nwdocsurl.'/'.$row[3].'" target="_blank">Download PDF attachment</a>';
}
print '</em>';
}
?>
</div>
<!-- end main content -->
<div id="rightcolumn">
<?php include ("inc/photos.inc.php"); ?>
</div>
<div id="divider"></div>
<div id="base"><?php include("inc/base.inc.php"); ?></div>
</div>
</div>
</body>
</html>