-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview_glossary.php
68 lines (66 loc) · 2.57 KB
/
view_glossary.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
<?php
// ReqHeap - a simple requirement management program.
//
// Copyright (C) 2007 Slav Peev , Matthias Gunter
// Programmed by i-nature.com
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// -----------------------------------------------------------------
//
// Page: "View glossary" - showing glossary info
//check
if ($g_id=="") header("Location:index.php");
$query="select * from glossary where g_id=".$g_id;
$rs = mysql_query($query) or die(mysql_error());
if($row=mysql_fetch_array($rs))
{
$g_name=htmlspecialchars($row['g_name']);
$g_term=htmlspecialchars($row['g_term']);
$g_abbreviation=htmlspecialchars($row['g_abbreviation']);
$g_desc=nl2br(($row['g_desc']));
$g_global=htmlspecialchars($row['g_global']);
}
?>
<table border="0" width="50%">
<tr valign="top">
<td>
<table border="0" cellpadding="2" cellspacing="2" class="content" width="100%">
<tr class="gray">
<td colspan="2" align="center"><b><?=$lng[24][1]?></b></td>
</tr>
<tr class="blue" title="<?=$lng[25][13]?>">
<td align="right" width="50%"> <?=$lng[25][3]?> : </td>
<td><?for ($i=0;$i<6-strlen($g_id);$i++) echo "0";echo $g_id;?></td>
</tr>
<tr class="light_blue" title="<?=$lng[25][14]?>">
<td align="right"> <?=$lng[25][5]?> : </td>
<td><?=$g_term?></td>
</tr>
<tr class="blue" valign=top title="<?=$lng[25][15]?>">
<td align="right"> <?=$lng[25][6]?> : </td>
<td><?=$g_abbreviation?></td>
</tr>
<tr class="light_blue" valign=top title="<?=$lng[25][16]?>">
<td align="right"> <?=$lng[25][12]?> : </td>
<td><?=$g_desc?></td>
</tr>
<tr class="blue" valign=top title="<?=$lng[13][13]?>">
<td align="right"> <?=$lng[13][12]?> : </td>
<td><?=$g_global?"global":"local"?></td>
</tr>
</table>
</td>
</tr>
</table>