/var/www/(Del)skdb.hk/attendaddform.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
<?php require("configure.php");
$calendarId = (int)$_GET['calendarId'];
 
?>
<html>
<head>
<link rel="stylesheet" href="main.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin Page</title>
</head>
<body>
<?
$sql 
"select * from Calendar where calendarId = $calendarId ";    
$result mysql_query($sql);
$row mysql_fetch_array($result,MYSQL_ASSOC);
?>
<form action="attendadd.php" method="post" name="addform" enctype="multipart/form-data">
    <table border="0" cellpadding="0" cellspacing="0" width="400">    
    <input type="hidden" name="calendarId" value="<?=$calendarId?>">
    <tr><td class='content' align="right" valign="top"></td><td class='content' valign="top">&nbsp;</td>
            <td class='content'><b><? echo $row{'calTitle'}; ?></b></td></tr>
    
        <tr><td class='content' align="right" valign="top">是否出席</td><td class='content' valign="top">:&nbsp;</td>
            <td class='content'>
            <select name="attendstatus" class="content">
                <option value="1" selected>是</option>
                <option value="2">否</option>
            </select></td></tr>
        <tr><td class='content' align="right" valign="top">會員姓名</td><td class='content' valign="top">:&nbsp;</td>
            <td class='content'><input type="text" class="content" name="attendname" size="30"></td></tr>
        <tr><td colspan="2"></td><td>
            <br><input type="submit" value="Submit" class='content'>
        </td></tr>
    </table>
</form>
</body>
</html>