<?php

include "dbconfig.php";

session_start();
$login_session=$_SESSION['login_user']; 
		if($login_session==""){
		?>
        <h1>Please Login Again.........</h1>
        <script type="text/javascript">

				 <!--

					function Redirect() {

					   window.location="http://rnsc.mdsoftware.co.in/old/admin";

					}

					document.write("<h1>You will be redirected to main page in 10 sec.</h1>");

					setTimeout('Redirect()', 1000);

				 //-->

			  </script>
        <?php
}

		$fno=$_GET['fno'];



		$class_app=$_GET['all_game_valueb'];



		$CourseType=$_GET['CourseType'];



		$Course=$_GET['Course'];



		$Course_Details=$_GET['Course_Details'];



		$session=$_GET['session'];



		$Student_Type=$_GET['Student_Type'];



		$college=$_GET['college'];



		$college_roll=$_GET['college_roll'];
$sd=$_GET['sd'];



		?>



		<style type="text/css">



		<!--



		.style1 {



			color: #FFFFFF;



			font-weight: bold;



		}



		-->



		</style>



		



		<div align="center">



		<iframe src="../print_form.php?fno=<?php echo $fno;?>&&btnSave2=Save&&all_game_valueb=<?php echo $class_app;?>&&CourseType=<?php echo $CourseType;?>&&Course=<?php echo $Course;?>&&Course_Details=<?php echo $Course_Details;?>&&session=<?php echo $session;?>&&Student_Type=<?php echo $Student_Type;?>&&college=<?php echo $college;?>&college_roll=<?php echo $college_roll;?>" width="1000" height="800" scrolling="yes"></iframe>



        </div>



		



		



		<?php



				$Submit=$_GET['Submit'];



				if($Submit!=''){

				$status=$_GET['status'];



				$college_roll=$_GET['college_roll'];



				$total_fees=$_GET['ghtotal'];
$admin=$_GET['admin'];
$para=$_GET['para'];
$pra_file_fee=$_GET['pra_file_fee'];
$uin_fee=$_GET['uin_fee'];
$other_fee=$_GET['other_fee'];
$other_fee2=$_GET['other_fee2'];
		$pay_fee=$admin+$para+$pra_file_fee+$uin_fee+$other_fee+$other_fee2;

		$pay_date=$_GET['pay_date'];

		$checked_by=$_GET['checked_by'];
$dis_admin=$_GET['dis_admin'];
$dis_parac=$_GET['dis_parac'];
$dis_para_file=$_GET['dis_para_file'];
$dis_uin=$_GET['dis_uin'];
$dis_other=$_GET['dis_other'];
$dis_other2=$_GET['dis_other2'];;
		$dis_amount=$dis_admin+$dis_parac+$dis_para_file+$dis_uin+$dis_other+$dis_other2;

$due_adm=$_GET['due_adm'];
$due_prafee=$_GET['due_prafee'];
$due_prafile=$_GET['due_prafile'];
$due_uin=$_GET['due_uin'];
$due_ot1=$_GET['due_ot1'];
$due_ot2=$_GET['due_ot2'];
				
///////////////////////////////////////////////
$dis_admin1=$dis_admin+$admin;
$dis_parac1=$dis_parac+$para;
$dis_para_file1=$dis_para_file+$pra_file_fee;
$dis_uin1=$dis_uin+$uin_fee;
$dis_other1=$dis_other+$other_fee;
$dis_other21=$dis_other2+$other_fee2;


				$pay_date=$_GET['pay_date'];



				$checked_by=$_GET['checked_by'];



			


				$note=$_GET['note'];

$sd=$_GET['sd'];


				$disc=$total_fees-$pay_fee;



				


if(($admin>$due_adm)||($para>$due_prafee)||($pra_file_fee>$due_prafile)||($uin_fee>$due_uin)||($other_fee>$due_ot1)||($other_fee2>$due_ot2)){
echo "<center><h1>Please Fill Correct Amount of Pay Fee (Grater Than Dues Amount Please Check it)</h1></center>";
}
elseif(($dis_admin1>$due_adm)||($dis_parac1>$due_prafee)||($dis_para_file1>$due_prafile)||($dis_uin1>$due_uin)||($dis_other1>$due_ot1)||($dis_other21>$due_ot2)){
echo "<center><h1>Please Fill Correct Amount of Discount Fee (Grater Than Dues Amount Please Check it)</h1></center>";
}
elseif($dis_amount>$disc){
echo "<center><h1>Please Fill Correct Amount of Discount Text Box</h1></center>";
}elseif(($pay_fee!='')&&($dis_amount<=$disc)){



		//////////////////////////////////////



				$queryyp = "SELECT * FROM class2 where college_roll='$college_roll' and session='$session' and code='$code'";



		$numresultsyp=mysql_query($queryyp);



		$resultyp= mysql_query($queryyp) or die("Couldn't execute query");



		$a_rowwp = mysql_fetch_array( $resultyp );



		$crollp=$a_rowwp['college_roll'];

		

		//echo '********'.$crollp.'--'.$college_roll;





	//if(empty($_SESSION['captcha_code'] ) || strcasecmp($_SESSION['captcha_code'], $_GET['captcha_code']) != 0){  

		//$msg="<span style='color:white'>The Validation code does not match!</span>";// Captcha verification is incorrect.		

	//}else
	
	if($crollp!=""){// Captcha verification is Correct. Final Code Execute here!		

		//$msg="<span style='color:green'>The Validation code has been matched.</span>";		

	

	

		



		

//include "sendsms.php";

	//	$mnoo=$a_rowwp['MobileNO'];

//$message2="**Fees Details**

//Pay Date : $pay_date

//Admission Fees : $pay_fee

//Discount : $dis_amount

//For any Query : Please Contact to College.";

//$sendsms=new sendsms("http://speed.mdsoftech.com/api/v3",'sms'//,"A0b6f5f6aeb5d1804b7650817278a332b", "MDSOFT");

//$sendsms->send_sms("$mnoo", "$message2", 'http://speed.mdsoftech.com/thankyou//.php&custom=XX', 'xml');





				 if (function_exists('date_default_timezone_set'))



{



  date_default_timezone_set('Asia/Kolkata');



}







$pay_time=date('H:i:s');



$sem_year23=$a_rowwp['Course_Details'];

$college_type23=$a_rowwp['CourseType'];

$sv23=$a_rowwp['Course'];

echo $CourseType.'-'.$college_type23.'/'.$Course.'-'.$sv23.'/'.$Course_Details.'-'.$sem_year23;








if(($CourseType==$college_type23)&&($Course==$sv23)&&($Course_Details==$sem_year23)&&($sd!='')){



		 /////////////////////////////////////////////////////////////////



		 $queryY = "INSERT INTO `pay_fees` (`id`, `roll_no`, `pay_date`, `pay_time`, `pay_amount`, `dis_amount`, `checked_by`, `code`, `college_type`, `sv`, `sem_yer`, `note`, `sd`, `admin`, `para`, `para_file`, `uin`, `other`, `other2`, `dis_admin`, `dis_parac`, `dis_para_file`, `dis_uin`, `dis_other`, `dis_other2`,`session`) VALUES ('$id','$fno','$pay_date','$pay_time','$pay_fee','$dis_amount','$checked_by','$college','$CourseType','$Course','$Course_Details','$note','$sd','$admin','$para','$pra_file_fee','$uin_fee','$other_fee','$other_fee2','$dis_admin','$dis_parac','$dis_para_file','$dis_uin','$dis_other','$dis_other2','$session'
)";



		 $resultY = mysql_query( $queryY );

		 ////////////////////////////////////////////////////////////////



		 if ( ! $resultY )



		die ("Couldn't update: ".mysql_error());



		print "<h1>Table Updated ". mysql_affected_rows() .



		" row(s) updated</h1>";

}



		



		?>
<script type="text/javascript">

         <!--

            function Redirect() {

               window.location="pay_fees_2.php?fno=<?php echo $fno;?>&&btnSave2=Save&&all_game_valueb=<?php echo $class_app;?>&&CourseType=<?php echo $CourseType;?>&&Course=<?php echo $Course;?>&&Course_Details=<?php echo $Course_Details;?>&&session=<?php echo $session;?>&&Student_Type=<?php echo $Student_Type;?>&&college=<?php echo $college;?>&college_roll=<?php echo $college_roll;?>";

            }

            

            document.write("<h1>You will be redirected to main page in 10 sec.</h1>");

            setTimeout('Redirect()', 1000);

         //-->

      </script>


		<?php /*?><script type="text/javascript">



				 <!--



					function Redirect() {



					   window.location="pay_fees_2.php?fno=<?php echo $fno;?>&&btnSave2=Save&&all_game_valueb=<?php echo $class_app;?>&&CourseType=<?php echo $CourseType;?>&&Course=<?php echo $Course;?>&&Course_Details=<?php echo $Course_Details;?>&&session=<?php echo $session;?>&&Student_Type=<?php echo $Student_Type;?>&college_roll=<?php echo $a_rowwp['college_roll'];?>";



					}



					document.write("<h1>You will be redirected to main page in 10 sec.</h1>");



					setTimeout('Redirect()', 1000);



				 //-->



			  </script><?php */?>



		<?php



				}



				}}



									



		$queryy = "SELECT * FROM class2 where college_roll='$college_roll' and session='$session' and code='$code'";



		$numresultsy=mysql_query($queryy);



		$resulty= mysql_query($queryy) or die("Couldn't execute query");



		$a_roww = mysql_fetch_array( $resulty );



		$st=$a_roww['status'];



		$collegeop=$a_roww['college'];



		$tofees=$a_roww['total_fees'];



		?>



         



         	<table width="90%" border="0" cellspacing="2" cellpadding="2" align="center" bgcolor="#009900">



		  <tr>



			<td colspan="2"><div align="center" style="background:#990000; color:#FFFFFF; font-size:26px;">College Fees Report</div></td>



		  </tr>



		  <tr>



			<td width="246"><span class="style1">College Roll Number</span></td>



			<td width="240"><span class="style1">



			  <label>



			  <?php echo $a_roww['college_roll']; ?>      </label>



			</span></td>



		  </tr>



		  <tr>



			<td><span class="style1">Total Course Fees - Dues</span></td>



			<td><span class="style1">



			  <label>



			  <?php 



											



											$queryx = "SELECT * FROM fees where class='$Course' and section='$Course_Details'  and session='$session' and code='$code'";



$numresultsyx=mysql_query($queryx);



$resultyx= mysql_query($queryx) or die("Couldn't execute query");



$a_rowx = mysql_fetch_row( $resultyx );



 $fees_1=$a_rowx[3];

  $fees_2=$a_rowx[4];
  $fees_8=$a_rowx[8];
  $fees_9=$a_rowx[9];
  $fees_10=$a_rowx[10];
  $fees_11=$a_rowx[11];
  $fees_12=$a_rowx[12];



  //////////////////////////////////////////////



  



 



 $check_exist_qryfe="select * from class2 where fno='$fno' and session='$session' and code='$code'";



$run_qryfe=mysql_query($check_exist_qryfe);



$total_foundfe=mysql_num_rows($run_qryfe);



$roww_fe = mysql_fetch_array($run_qryfe, MYSQL_BOTH);



	 $str = $roww_fe['class_app']; 



	 $college_codex = $roww_fe['college'];



	 $CourseTypex = $roww_fe['CourseType'];



	 



	 if($str!=""){



	 $class_app=explode(",",$str);



	



foreach ($class_app as $value) {







//////////////////////////////////////////////







//echo $value;



 $queryyr = "SELECT * FROM subject where college_code='$college_codex' and college_type='$CourseTypex' and subject='$value' and subject_type='P' and session='$session' and code='$code'";



$numresultsyr=mysql_query($queryyr);



$numrows=mysql_num_rows($numresultsyr);



$resultyr= mysql_query($queryyr) or die("Couldn't execute query");



$a_rowwr = mysql_fetch_row( $resultyr );



$pra_chk=$a_rowwr[5]; 



if(($numrows!="")&&($pra_chk=="P")&&($a=="")){



$a=0;



//echo '*';



}



if(($numrows!="")&&($pra_chk="P")){







$a;



$a++;



}



//echo $pra_chk;







  



//echo $a;







}}



  ////////////////////////////////////////////
  $fees_2=$fees_2*$a;
$fees_9=$fees_9;
  $gtotalp=$fees_2+$fees_9;

    
//$tofees=$fees_8+$fees_10+$fees_11+$fees_12+$gtotalp;
  echo $tofees;
 

  ?>     </label>



			</span></td>



		  </tr>



		  <tr>



			<td><span class="style1">Pay Fees Details</span></td>



			<td><label>



		<table width="100%" border="1" cellspacing="2" cellpadding="2" bgcolor="#FFFFFF">



		  <tr bordercolor="#0000FF" style=" background-color:#0000CC;color:#FFFFFF">
		    <td rowspan="2">R.No.</td>
		    <td rowspan="2">Pay Date/Time</td>
		    <td colspan="6"><div align="center">Fee Head Pay</div></td>
            <td rowspan="2">Total Pay Amount</td>
		    <td colspan="6" bordercolor="#FFFFFF"><div align="center">Fee Head Discount</div></td>
		    <td rowspan="2">Total Discount</td>
		    
		    <td rowspan="2">Checked By</td>
		    <td rowspan="2">Print</td>
	      </tr>
		  <tr bordercolor="#0000FF" style=" background-color:#0000CC;color:#FFFFFF">



		    <td>Adm. Fee <br/><?php echo $fees_8; ?></td>
			<td>Pra. Fee<br/><?php echo $fees_2; ?></td>
			<td><?php echo $a_rowx[14]; ?><br/>
		    <?php echo $fees_9=$fees_9; ?></td>
			<td><?php echo $a_rowx[15]; ?><br/>
		    <?php echo $fees_10; ?></td>
			<td><?php echo $a_rowx[16]; ?><Br/>
		    <?php echo $fees_11; ?></td>
			<td><?php echo $a_rowx[17]; ?><br/>
		    <?php echo $fees_12; ?></td>
		    <td bordercolor="#FFFFFF">Adm. Fee</td>
		    <td bordercolor="#FFFFFF">Pra. Fee</td>
		    <td bordercolor="#FFFFFF"><?php echo $a_rowx[14]; ?></td>
		    <td bordercolor="#FFFFFF"><?php echo $a_rowx[15]; ?></td>
		    <td bordercolor="#FFFFFF"><?php echo $a_rowx[16]; ?></td>
		    <td bordercolor="#FFFFFF"><?php echo $a_rowx[17]; ?></td>
		  </tr>



		



		



			<?php



					$roll=$a_roww['fno'];				



		$queryy = "SELECT * FROM pay_fees where roll_no='$roll' and session='$session' and code='$code'";



		$numresultsy=mysql_query($queryy);



		$resulty= mysql_query($queryy) or die("Couldn't execute query");



		?>



					  



						<?php



		while ( $a_rowd = mysql_fetch_row( $resulty ) )



		 {



		 $idd=$a_rowd[9];



 $check_exist_qryfe="select * from course_name where id='$idd' and session='$session' and code='$code'";



$run_qryfe=mysql_query($check_exist_qryfe);



$total_foundfe=mysql_num_rows($run_qryfe);



$roww_fe = mysql_fetch_array($run_qryfe, MYSQL_BOTH);



		 ?>



					   



						  



					   



					   



					 <tr bgcolor="#FFFF33">



					   <td><?php echo $a_rowd[0];?></td>



					   <td><?php echo $a_rowd[2];?>/<?php echo $a_rowd[3];?>{ <?php echo $roww_fe['course_name']; ?>-<?php echo $a_rowd[10];?> }</td>



			           <td><?php echo $a_rowd[13]; $payy1+=$a_rowd[13];?></td>
			           <td><?php echo $a_rowd[14]; $payy2+=$a_rowd[14];?></td>
			           <td><?php echo $a_rowd[15]; $payy3+=$a_rowd[15];?></td>
			           <td><?php echo $a_rowd[16]; $payy4+=$a_rowd[16];?></td>
			           <td><?php echo $a_rowd[17]; $payy5+=$a_rowd[17];?></td>
			           <td><?php echo $a_rowd[18]; $payy6+=$a_rowd[18];?></td>
                       <td><?php echo $pay1=$a_rowd[4]; $ggtotal+=$a_rowd[4];?>/-</td>
			           <td><?php echo $a_rowd[19]; $duee1+=$a_rowd[19];?></td>
			           <td><?php echo $a_rowd[20]; $duee2+=$a_rowd[20];?></td>
			           <td><?php echo $a_rowd[21]; $duee3+=$a_rowd[21];?></td>
			           <td><?php echo $a_rowd[22]; $duee4+=$a_rowd[22];?></td>
			           <td><?php echo $a_rowd[23]; $duee5+=$a_rowd[23];?></td>
			           <td><?php echo $a_rowd[24]; $duee6+=$a_rowd[24];?></td>
			           <td><?php echo $dis1=$a_rowd[5]; $dgtotal+=$a_rowd[5];?>/-</td>



			



			<td><?php echo $a_rowd[6];?></td>



		    <td><script language="JavaScript" type="text/javascript">



<!--



function popitup(url) {



	newwindow=window.open(url,'print_fees','height=600,width=800');



	if (window.focus) {newwindow.focus()}



	return false;



}







// -->



            </script>



                <a href="print_fees.php" onClick="return popitup('print_fees.php?fno=<?php echo $fno;?>&&college=<?php echo $college;?>&&rno=<?php echo $a_rowd[0];?>')"



	>Print</a> &nbsp;</td>
		 


					 



				<?php 



		  $pay2+=$pay1;



		  $dis2+=$dis1;  



		  } ?>
 </tr>
					 <tr bgcolor="#FF0000" style="color:#FFFFFF">
					   <td>&nbsp;</td>
					   <td>&nbsp;</td>
					   <td><?php echo $payy1;?></td>
					   <td><?php echo $payy2; ?></td>
					  <td><?php echo $payy3;?></td>
			           <td><?php echo $payy4;?></td>
			           <td><?php echo $payy5;?></td>
			           <td><?php echo $payy6;?></td>
			           <td><?php echo $ggtotal;?>/-</td>
			           <td><?php echo $duee1;?></td>
                       <td><?php echo $duee2;?></td>
			           <td><?php echo $duee3;?></td>
			           <td><?php echo $duee4;?></td>
			           <td><?php echo $duee5;?></td>
			           <td><?php echo $duee6;?></td>
			           <td><?php echo $dgtotal;?>/-</td>
			           <td>&nbsp;</td>
			           <td>&nbsp;</td>
	      </tr>


				<tr >



				  <td colspan="18"><table width="100%" border="0" cellspacing="2" cellpadding="2">



					<tr>




					  <td width="56%"><div align="right">Total Course Fees</div></td>



					  <td width="13%"><div align="right"><strong><?php echo $tofees; 



						$s1=$tofees-$dis2;



					   $dues3=$s1-$pay2;



					   ?>/-</strong></div></td>



					  <td width="31%">&nbsp;</td>
					</tr>



					<tr>



					  <td><div align="right">Total Discount</div></td>



					  <td><div align="right"><strong>-<?php echo $dis2; ?>/-</strong></div></td>



					  <td>&nbsp;</td>
					</tr>



					<tr>



					  <td><div align="right">Your Total Course Fees After Adustment</div></td>



					  <td><div align="right"><?php echo $s1; ?>/-</div></td>



					  <td>&nbsp;</td>
					</tr>



					<tr>



					  <td><div align="right">Total Pay Amount</div></td>



					  <td><div align="right"><strong><?php echo $pay2; ?>/-</strong></div></td>



					  <td>&nbsp;</td>
					</tr>



					<tr>



					  <td><div align="right">Total Dues</div></td>



					  <td><div align="right">



						<?php echo $dues3; $dues3888=$dues3; ?>/-



					  </div></td>



					  <td>&nbsp;</td>
					</tr>



					



				  </table></td>
				</tr>
		</table>



			



			



			</label></td>



		  </tr>



		  



		  <tr>



			<td><span class="style1">Form Checked By</span></td>



			<td><span class="style1">



			  <label>



			  <?php echo $a_roww['checked_by']; ?>      </label>



			</span></td>



		  </tr>



		  <tr>



			<td><span class="style1">Form Status</span></td>



			<td><span class="style1">



			  <label>



			  <?php echo $a_roww['status']; ?>      </label>



			</span></td>



		  </tr>



		</table>

        <script type='text/javascript'>

function refreshCaptcha(){

	var img = document.images['captchaimg'];

	img.src = img.src.substring(0,img.src.lastIndexOf("?"))+"?rand="+Math.random()*1000;

}

</script>

<?php if($dues3888>0){ ?>

		<form name="form1" method="get" action="pay_fees_2.php"  id="form1">



		<input name="fno" value="<?php echo $fno; ?>" type="hidden" >



		<input name="all_game_valueb" value="<?php echo $class_app; ?>" type="hidden" >



		<input name="CourseType" value="<?php echo $CourseType; ?>" type="hidden" >



		<input name="Course" value="<?php echo $Course; ?>" type="hidden" >



		<input name="Course_Details" value="<?php echo $Course_Details; ?>" type="hidden" >



		<input name="session" value="<?php echo $session; ?>" type="hidden" >



		<input name="Student_Type" value="<?php echo $Student_Type; ?>" type="hidden" >



		<input name="college" value="<?php echo $collegeop; ?>" type="hidden" >



		



		



		<table width="800px" border="0" cellspacing="2" cellpadding="2" align="center" bgcolor="#FF0033">



		  <tr>



			<td colspan="2"><div align="center"><strong>Pay College Fees </strong></div></td>

		  </tr>



		  <tr>



			<td width="246"><strong>College Roll Number</strong></td>



			<td width="540"><label>



			  <input type="text" name="college_roll" id="college_roll" value="<?php echo $college_roll; ?>" required readonly="readonly">



			</label></td>

		  </tr>



		  <tr>



			<td><strong>Total Course Fees</strong></td>



			<td><label>


<table width="100%" border="1" cellspacing="2" cellpadding="2" bgcolor="#FFFF99">
      <tr>
    <td><strong>Fee Head</strong></td>
    <td><strong>Total Fee</strong></td>
    <td>Dues</td>
    <td><strong>Discount</strong></td>
    <td><strong>Pay</strong></td>
  </tr>

  <tr>
    <td>Admission Fee</td>
    <td><?php echo $fees_8=$tofees;  $due_adm=$fees_8-($payy1+$duee1);?></td>
    <td><input type="text" readonly="readonly" name="due_adm" value="<?php echo $due_adm; ?>"/></td>
    <td><input type="text" name="dis_admin" id="dis_admin" <?php if($_SESSION['login_type']!='admin'){ ?>readonly="readonly" <?php } ?>  required="required" value="<?php echo $dis_admin; ?>" <?php if($dis_admin>$fees_8){ ?>style="color:#FF0000"<?php }else{ ?> style="color:#009900" <?php } ?>/><?php if($dis_admin>$fees_8){ ?><div style="background-color:#FFFF00; color:#FF0000; font-size:14px;">Wrong Entry</span><?php }else{ ?><span style="color:#009900; font-size:14px;">Correct Entry</span><?php } ?></td>
    <td><input type="text" name="admin" id="admin" value="<?php echo $admin; ?>" required>
    <?php if($dis_admin1>$fees_8){ ?><div style="background-color:#FFFF00; color:#FF0000; font-size:14px;">Wrong Entry</span><?php }else{ ?><span style="color:#009900; font-size:14px;">Correct Entry</span><?php } ?></td>
  </tr>
 
 
  <tr>
    <td><strong></strong></td>
    <td><strong><?php echo $ghtotal=$fees_8+$fees_10+$fees_11+$fees_12+$gtotalp; ?>
    <input type="hidden" name="ghtotal" id="ghtotal" value="<?php echo $ghtotal; ?>" required>
    </strong></td>
    <td><?php echo $dues3; ?></td>
    <td><strong></strong></td>
    <td><strong></strong></td>
  </tr>
</table>
			  <input type="hidden" name="total_fees" id="total_fees" value="<?php echo $dues3; ?>" required readonly="readonly">



			</label></td>

		  </tr>



		  



		  



		  <tr>



			<td><strong>Pay Date</strong></td>



			<td><label>



			  <input type="text" name="pay_date" readonly="readonly" id="pay_date" value="<?php 



			if (function_exists('date_default_timezone_set'))



		{



		  date_default_timezone_set('Asia/Kolkata');



		}



		



		echo date('Y-m-d');



			?>" required>



			</label></td>

		  </tr>



		  <tr>



			<td><strong>Checked By</strong></td>



			<td><label>



			  <input type="text" name="checked_by" id="checked_by" value="<?php $login_session=$_SESSION['login_user']; echo $login_session;?>" readonly required>



			</label></td>

		  </tr>



		  <?php /*?><tr>



			<td><strong>Form Status</strong></td>



			<td><label>



			  <input type="text" name="status" id="status" value="Locked" readonly required>



			</label></td>



		  </tr><?php */?>



          <tr>



    <td><strong>Note</strong></td>



    <td><label>



      <textarea name="note" id="note" required="required"></textarea>



    </label></td>

  </tr>

         <?php if(isset($msg)){?>

    <tr>

      <td colspan="2" align="center" valign="top" style="color:#FFFFFF; font-size:16px"><?php echo $msg;?></td>

    </tr>

    <?php } ?>

         

          <?php /*?><tr>

            <td><img src="captcha.php?rand=<?php echo rand();?>" id='captchaimg' border="1" height="30" width="200"><br><label for='message'>Enter the code above here :</label></td>

            <td>

        

        <br>

        <input id="captcha_code" name="captcha_code" type="text">

        <br>

        Can't read the image? click <a href='javascript: refreshCaptcha();'>here</a> to refresh.</td>

          </tr><?php */?>





		  <tr>



			<td></td>



			<td><label>

<input type="text" name="sd" id="sd" value="<?php 

	if (function_exists('date_default_timezone_set'))

{

  date_default_timezone_set('Asia/Kolkata');

}



echo date('YmdHis');

	?>" readonly required>

			  <input type="submit" name="Submit" id="Submit" value="Submit" onClick="return validate();" class="button1">



			</label></td>

		  </tr>

		</table>



		</form>
<?php } ?>


		



