Example #1
0
                ?>
                <fieldset class="no_print">
                    <legend>��͡������ <?=$type_lists[$type];?></legend>
                    <form action="nhso_and_sso.php" method="post" target="_blank">
                        <div class="col">
                            <div class="cell">
                                <label for="run_number">���� ��:</label>
                                <input type="text" id="run_number" name="run_number" >
                            </div>
                        </div>
                        <div class="col">
                            <div class="cell">
                                <label for="run_number">�ѹ/��͹/��:</label>
                                <?php
                                $def_day = date('d');
                                getDateList('select_day', $def_day);

                                $def_month = date('m');
                                getMonthList('select_month', $def_month);

                                $def_year = date('Y');
                                getYearList('select_year', true, $def_year);
                                ?>
                            </div>
                        </div>
                        <?php
                        if ( $type !== 'nhso-lmc' ) {

                            ?>
                            <div class="col">
                                <div class="cell">
Example #2
0
         }
     }
     break;
 case "edit_event":
     if (strtolower($username) == "student") {
         echo send_notice("ERROR", "Students may not edit events.");
     } else {
         $id = getVAR("id");
         if (getVAR("txttitle") == "") {
             $event = getValueFromID($events_table, $id, "event");
             $details = getValueFromID($events_table, $id, "details");
             $date = strtotime(getValueFromID($events_table, $id, "event_date"));
             echo "\n<form method=\"POST\" action=\"{$PHP_SELF}?action=edit_event&display_date={$display_date}&id={$id}&username={$username}&password={$password}\">";
             echo "\n<table bgcolor={$table_heading_bgcolour} width=100%>";
             echo "\n<tr><td colspan=2><h2>Edit Event</h2></td></tr>";
             echo "\n<tr><td>Date(s):</td><td>" . getDateList(false, $date) . "</td></tr>";
             echo "\n<tr><td>Event:</td><td><input type=\"text\" size=40 value=\"{$event}\" name=\"txttitle\"></td></tr>";
             echo "\n<tr><td>Details:</td><td><textarea rows=5 cols=40 name=\"txtnotice\">{$details}</textarea><p>";
             echo "\n<input type=\"submit\" value=\"Save Changes\" name=\"B1\"></td></tr>";
             echo "\n</table>";
             echo "\n</form>";
         } else {
             $tempDate = getVAR("lstdate");
             $tempTitle = mysql_real_escape_string(getVAR("txttitle"));
             $tempNotice = mysql_real_escape_string(getVAR("txtnotice"));
             foreach ($tempDate as $d) {
                 $d = date("Y-m-d", $d);
                 $query = "UPDATE {$events_table} SET event='{$tempTitle}',details='{$tempNotice}', event_date='{$d}' WHERE ID={$id}";
                 $result = do_mysql_query($query);
                 echo send_notice("OK", "Event edited.");
             }
Example #3
0
?>
</td>
				</tr>
				<tr>
				  <td width="24%"><strong> Search Date </strong>: </td>
				  <td width="24%"><select name="searchDate" style="width: 100px" size="1">
					   <option value="<?php 
echo trim($_GET['searchDate']);
?>
"> <?php 
echo trim($_GET['searchDate']);
?>
</option>
					   <option value=""><option>
					   <?php 
$index_list = getDateList();
$list_size = sizeof($index_list);
while ($list_size != 0) {
    $list_size--;
    ?>
					   <option value=<?php 
    echo '"' . $index_list[$list_size] . '"';
    ?>
> <?php 
    echo $index_list[$list_size];
    ?>
 </option>
					   <?php 
}
?>
					   </select>