<?php
include("CheckSession.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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="馬戲團" />
<title>馬戲團</title>
<Script Language="javascript" src="control/calendar.js"></Script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<?php
$CMissCount = $_GET['CMissCount'];
$action = $_GET['action'];
$tempCustomerId = $_GET['tempCustomerId'];

date_default_timezone_set('Asia/Taipei');
$strNowDate = Date('Y-m-d');
?>
<body>
<form name="CustomerForm" method="post" action="CustomerMissContentDeal.php" id="CustomerForm">
<input type="hidden" name="action" id="action" value="<?php echo $action ?>"/>
<input type="hidden" name="CMissCount" id="CMissCount" value="<?php echo $CMissCount ?>"/>
<input type="hidden" name="tempCustomerId" id="tempCustomerId" value="<?php echo $tempCustomerId ?>"/>
<table border="0" cellspacing="0" cellspadding="0" width="100%">
<!--
<tr>
<td align="center" colspan="2">
<span class="title"><b>客戶資料查詢</b></span>
</td>
</tr>
-->
<tr>
<td align="left" colspan="2">
&nbsp;
</td>
</tr>
<tr>
<td align="left" colspan="2">
<table border="3" cellspacing="2" cellspadding="2" width="100%">
<?php
for($x=1;$x<=$CMissCount;$x++)
{
?>
<tr>
<td align="left" width="16%">
<span class="t12">消費內容<?php echo $x;?></span>
</td>
<td align="left" width="84%">
<table border="0" cellspacing="5" cellspadding="5" width="80%">
<tr>
<td align="left" width="55%">
<span class="t12">消費內容</span>
<br>
<input type="text" name="CMiss<?php echo $x;?>" id="CMiss<?php echo $x;?>" size="30" maxlength="70" class="t12"/>
</td>
<td align="left">
<span class="t12">消費日期</span>
<br>
<input type="text" value="<?php echo $strNowDate;?>"" name="CMissDate<?php echo $x;?>" id="CMissDate<?php echo $x;?>" readonly="readonly" class="t12">
<img align="top" onmousedown="Cal(CustomerForm.CMissDate<?php echo $x;?>,1,100,50,999,0,'')" src="images/cal.gif" width="16" height="16" style="cursor:hand">
</td>
</tr>
</table>
</td>
</tr>
<?php
}
?>
<tr>
<td  align="center" colspan="2">
<input type="submit" name="btnSub" id="btnSub" value="新增/修改" class="t12" />
</td>
</tr>
</table>

</td>
</tr>
</table>
</form>
</body>
</html>
