<?php
 
  // include("pdate.php");
  //$todayDate= $pdate1;
 $todayDate= $pdate1;
 if($todayDate==null){
     $todayDate=jdate("Y-m-d");
  } 
  $explode=explode("-",$todayDate);
  $year=$explode[0];
   
  $mah=$explode[1];
   
  $day=$explode[2];
  
  
 ?>
      
										
				   <select id="d"  name="day"  id="adad"  style ="width:90px;color: #000;height:30px"  >
					    <option <?php if($day==1){ echo "selected";} ?> value="01">1</option>
						<option <?php if($day==2){ echo "selected";} ?> value="02">2</option>
						<option <?php if($day==3){ echo "selected";} ?> value="03">3</option>
						<option <?php if($day==4){ echo "selected";} ?> value="04">4</option>
						<option <?php if($day==5){ echo "selected";} ?> value="05">5</option>
						<option <?php if($day==6){ echo "selected";} ?> value="06">6</option>
						<option <?php if($day==7){ echo "selected";} ?> value="07">7</option>
						<option <?php if($day==8){ echo "selected";} ?> value="08">8</option>
						<option <?php if($day==9){ echo "selected";} ?> value="09">9</option>
						<option <?php if($day==10){ echo "selected";} ?> value="10">10</option>
						<option <?php if($day==11){ echo "selected";} ?> value="11">11</option>
						<option <?php if($day==12){ echo "selected";} ?> value="12">12</option>
						<option <?php if($day==13){ echo "selected";} ?> value="13">13</option>
						<option <?php if($day==14){ echo "selected";} ?> value="14">14</option>
						<option <?php if($day==15){ echo "selected";} ?> value="15">15</option>
						<option <?php if($day==16){ echo "selected";} ?> value="16">16</option>
						<option <?php if($day==17){ echo "selected";} ?> value="17">17</option>
						<option <?php if($day==18){ echo "selected";} ?> value="18">18</option>
						<option <?php if($day==19){ echo "selected";} ?> value="19">19</option>
						<option <?php if($day==20){ echo "selected";} ?> value="20">20</option>
						<option <?php if($day==21){ echo "selected";} ?> value="21">21</option>
						<option <?php if($day==22){ echo "selected";} ?> value="22">22</option>
						<option <?php if($day==23){ echo "selected";} ?> value="23">23</option>
						<option <?php if($day==24){ echo "selected";} ?> value="24">24</option>
						<option <?php if($day==25){ echo "selected";} ?> value="25">25</option>
						<option <?php if($day==26){ echo "selected";} ?> value="26">26</option>
						<option <?php if($day==27){ echo "selected";} ?> value="27">27</option>
						<option <?php if($day==28){ echo "selected";} ?> value="28">28</option>
						<option <?php if($day==29){ echo "selected";} ?> value="29">29</option>
						<option <?php if($day==30){ echo "selected";} ?> value="30">30</option>
						<option <?php if($day==31){ echo "selected";} ?> value="31">31</option>
					
					 
				</select>
				 
				 
					<select id="m"  style="width:90px;color: #000;height:30px" name="month" >
						 
						 <option  <?php if($mah==1) { echo "selected"; } ?>   value ='01' >1</option>  
						 <option  <?php if($mah==2) { echo "selected"; } ?>   value ='02' >2</option>  
						 <option  <?php if($mah==3) { echo "selected"; } ?>   value ='03' >3</option>  
						 <option  <?php if($mah==4) { echo "selected"; } ?>   value ='04' >4</option>  
						 <option  <?php if($mah==5) { echo "selected"; } ?>   value='05'  >5</option>  
						 <option  <?php if($mah==6) { echo "selected"; } ?>   value ='06' >6</option>  
						 <option  <?php if($mah==7) { echo "selected"; } ?>   value='07'  >7</option>  
						 <option  <?php if($mah==8) { echo "selected"; } ?>   value='08'  >8</option>  
						 <option  <?php if($mah==9) { echo "selected"; } ?>   value ='09' >9</option>  
						 <option  <?php if($mah==10) { echo "selected"; } ?>  value ='10' >10</option>  
						 <option  <?php if($mah==11) { echo "selected"; } ?>  value ='11' >11</option>  
						 <option  <?php if($mah==12) { echo "selected"; } ?>  value ='12' >12</option>  
				</select>
				    <select  id="y"   name="year" style="width:90px;color: #000;height: 30px" >
						 
					   <?php
					   for($i=1400;$i<1410;$i++){
						   if($i==$year){
							   	echo "<option selected value=$i>$i</option>";
						   }else{
							    echo "<option  value=$i>$i</option>"; 

						   }
					   }
					   
					   
					   ?>
					
				</select>