-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist_public.php
More file actions
37 lines (32 loc) · 1.19 KB
/
Copy pathlist_public.php
File metadata and controls
37 lines (32 loc) · 1.19 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
<?php
$pagename="list_public";
include "page_header.php";
?>
<div name="frm_list">
<h3>表單列表</h3>
<?php
include "include_common.php";
include "include_mysql.php";
if( $link=connect() )
{
echo "<div class=\"tb\">\n";
echo "<div class=\"tr\"><div class=\"td\">名稱</div><div class=\"td\">描述</div><div class=\"td\">結果</div></div>\n";
$r=query($link, "select * from `forminfo` order by `ctime` desc");
while( $row=mysqli_fetch_array($r) )
{
if( $row['upbl'] )
echo "<div class=\"tr\"><div class=\"td\"><a href=\"display_form.php?fid=" . $row['fid'] . "\">" . htmle($row['fname']) . "</a></div><div class=\"td\"><pre>" . htmle($row['fdesc']) . "</pre></div>";
else
echo "<div class=\"tr\"><div class=\"td\"><font color=\"grey\">" . htmle($row['fname']) . "</font></div><div class=\"td\"><font color=\"grey\"><pre>" . htmle($row['fdesc']) . "</pre></font></div>";
if( $row['rpbl'] )
echo "<div class=\"td\"><a href=\"display_result_public.php?fid=" . $row['fid'] . "\">查看</a></div></div>\n";
else
echo "<div class=\"td\"><font color=\"grey\">不公開</font></div></div>\n";
}
echo "</div>\n";
}
?>
</div>
<?php
include "page_footer.php";
?>