File: C:/xampp/htdocs/cieclock/doyindex.php
<!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" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>DayOfColor</title>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<meta charset="utf-8">
<title>Demo</title>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/minified/jquery-ui.min.css" type="text/css" />
<style type="text/css">
body,td,th {
font-size: 14px;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
</style>
<body vlink="#0000FF"><basefont face="Verdana">
<!-- link calendar files -->
<script language="JavaScript" src="calendar_db.js"></script>
<link rel="stylesheet" href="calendar.css">
</head>
<p> </p>
<p>
<a name="DETAILS"></a>
<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td></td>
</tr>
<tr>
<td bgcolor="Navy"><font size="-1" color="White"><b>Day of Color<?php ;$DM=date('m');print $DM;?></b></font></td>
</tr>
</table>
<table width="100%" bgcolor="cccccc"><tr>
<td><font size="4"><b>Day of Color Request</b></font></td>
</tr></table>
<p>
<form name="testform" method="post" action="doyColor.php">
<tr>
<td valign="top"><b><font size="-1">月: </font></b></td>
<td><SELECT NAME="pmon">
<OPTION VALUE=01 <?php if ($DM==1) { print"selected";} ?>>01
<OPTION VALUE=02 <?php if ($DM==2) { print"selected";} ?>>02
<OPTION VALUE=03 <?php if ($DM==3) { print"selected";} ?>>03
<OPTION VALUE=04 <?php if ($DM==4) { print"selected";} ?>>04
<OPTION VALUE=05 <?php if ($DM==5) { print"selected";} ?>>05
<OPTION VALUE=06 <?php if ($DM==6) { print"selected";} ?>>06
<OPTION VALUE=07 <?php if ($DM==7) { print"selected";} ?>>07
<OPTION VALUE=08 <?php if ($DM==8) { print"selected";} ?>>08
<OPTION VALUE=09 <?php if ($DM==9) { print"selected";} ?>>09
<OPTION VALUE=10 <?php if ($DM==10) { print"selected";} ?>>10
<OPTION VALUE=11 <?php if ($DM==11) { print"selected";} ?> >11
<OPTION VALUE=12 <?php if ($DM==12) { print"selected";} ?>>12
</SELECT></td>
</tr>
<tr>
<td valign="top"><b><font size="-1">日: </font></b></td>
<td><SELECT NAME="pdate">
<OPTION VALUE=01 >01
<OPTION VALUE=02 >02
<OPTION VALUE=03 >03
<OPTION VALUE=04 >04
<OPTION VALUE=05 >05
<OPTION VALUE=06 >06
<OPTION VALUE=07 >07
<OPTION VALUE=08 >08
<OPTION VALUE=09 >09
<OPTION VALUE=10 >10
<OPTION VALUE=11 >11
<OPTION VALUE=12 >12
<OPTION VALUE=13 >13
<OPTION VALUE=14 >14
<OPTION VALUE=15 >15
<OPTION VALUE=16 >16
<OPTION VALUE=17 >17
<OPTION VALUE=18 >18
<OPTION VALUE=19 >19
<OPTION VALUE=20 >20
<OPTION VALUE=21 >21
<OPTION VALUE=22 >22
<OPTION VALUE=23 >23
<OPTION VALUE=24 >24
<OPTION VALUE=25 >25
<OPTION VALUE=26 >26
<OPTION VALUE=27 >27
<OPTION VALUE=28 >28
<OPTION VALUE=29 >29
<OPTION VALUE=30 >30
<OPTION VALUE=31 >31
</SELECT></td>
</tr>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("pressmenu1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.1/jquery-ui.min.js"></script>
<script type="text/javascript">
$(function() {
//autocomplete
$(".auto").autocomplete({
source: "doyColor.php",
minLength: 1,
});
});
</script>
<input type="submit" name="submit" value="查詢" /></p>
</table>