<!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">

<style>
label.label_std{
	margin-left:5px;
    line-height:20px;
	padding-top:6px;
    color:#000;
    text-shadow:1px 1px 1px #fff;
    font:bold 12px Arial;
}

input.imagebutton{
	background-color:#E1E1E1;
	width:auto;
	min-width:100px;
	height: 24px;
	border:solid;
	border-width:1px;
	border-color:#0047D4;
	cursor:pointer;
	color:#000000;
	font:bold 12px Arial;
	
	border-radius: 5px;
	
	-webkit-box-shadow:0px 0px 0px #CCC;
	box-shadow:0px 0px 0px #CCC;
	
}

input.imagebutton:hover{
	background-color:#E4E4E4;
	width:auto;
	min-width:100px;
	height: 24px;
	border:solid;
	border-width:2px;
	border-color:#0047D4;
	cursor:pointer;
	color:#000000;
	font:bold 12px Arial;
	
	
	border-radius: 5px;
	
	-webkit-box-shadow:5px 5px 5px #666;
	box-shadow:5px 5px 5px #666;
	
}

input.imagebutton:focus{
	background-color:#E4E4E4;
	width:auto;
	min-width:100px;
	height: 24px;
	border:solid;
	border-width:2px;
	border-color:#0047D4;
	cursor:pointer;
	color:#000000;
	font:bold 12px Arial;
	
	
	border-radius: 5px;
	
	-webkit-box-shadow:5px 5px 5px #666;
	box-shadow:5px 5px 5px #666;
	
}
input.imagebutton1 {	background-color:#E1E1E1;
	width: 100px;
	height: 24px;
	border:solid;
	border-width:1px;
	border-color:#39A751;
	cursor:pointer;
	color:#000000;
	font:bold 12px Arial;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-moz-box-shadow:0px 0px 0px #CCC;
	-webkit-box-shadow:0px 0px 0px #CCC;
	box-shadow:0px 0px 0px #CCC;
}
</style>
<head>
<?php
include('../include/session.php');

require_once ('../include/tc_calendar.php');
$production_date = strtotime($_SESSION['production_date']);
$d = date("d", $production_date );
$m = date("m", $production_date );
$y = date("Y", $production_date );
?>
</head>

<body style="width:300px;">
 <form action='../production/production_planWiz0.php' method="GET" name="form2" target="_top" id="form2">
 <input name="p" type="hidden" value="1" />
 <input name="s" type="hidden" value="1" />
 <input name="line_num" type="hidden" value="0" />
 <input name="e" type="hidden" value="5" />
 
 
<table width="292" border="0">
<tr>
  <td width="286" height="30"><label class="label_std">Production date:
    <?php
echo date("l, d-m-Y", strtotime($_SESSION['production_date']));
?></label></td>
</tr>
<tr>
  <td height="58"><label class="label_std">Change to:</label>
    <select name="day_select">
      <option value="<?php echo $d ?>" selected="selected"><?php echo $d ?></option>
      <option value="01">01</option>
      <option value="02">02</option>
      <option value="03">03</option>
      <option value="04">04</option>
      <option value="05">05</option>
      <option value="06">06</option>
      <option value="07">07</option>
      <option value="08">08</option>
      <option value="09">09</option>
      <option value="10">10</option>
      <option value="11">11</option>
      <option value="12">12</option>
      <option value="13">13</option>
      <option value="14">14</option>
      <option value="15">15</option>
      <option value="16">16</option>
      <option value="17">17</option>
      <option value="18">18</option>
      <option value="19">19</option>
      <option value="20">20</option>
      <option value="21">21</option>
      <option value="22">22</option>
      <option value="23">23</option>
      <option value="24">24</option>
      <option value="25">25</option>
      <option value="26">26</option>
      <option value="27">27</option>
      <option value="28">28</option>
      <option value="29">29</option>
      <option value="30">30</option>
      <option value="31">31</option>
      
    </select>
    <select name="month_select" id="month_select">
      <option value="<?php echo $m ?>" selected="selected"><?php echo $m ?></option>
      <option value="01">01</option>
      <option value="02">02</option>
      <option value="03">03</option>
      <option value="04">04</option>
      <option value="05">05</option>
      <option value="06">06</option>
      <option value="07">07</option>
      <option value="08">08</option>
      <option value="09">09</option>
      <option value="10">10</option>
      <option value="11">11</option>
      <option value="12">12</option>
      
    </select>
    <select name="year_select" id="year_select">
      <option value="<?php echo $y ?>" selected="selected"><?php echo $y ?></option>
      <option value="2015">2015</option>
      <option value="2016">2016</option>
      <option value="2016">2017</option>
      <option value="2016">2018</option>
      <option value="2016">2019</option>
      <option value="2016">2020</option>
      
    </select>
    
    <?php
//
//		$myCalendar = new tc_calendar("date1", true);
//		$myCalendar->setIcon("../images/iconCalendar.gif");
//		$myCalendar->setDate($d, $m, $y);
//		$myCalendar->setPath("./");
//		$myCalendar->setYearInterval(2015, 2090);
//		$myCalendar->writeScript();
		?></td>
</tr>
<tr>
  <td><input type="submit" name="set_button" id="set_button" value="Set date" class="imagebutton"/></td>
</tr>
</table>
</form>
</body>
</html>