<?php 

require_once('config/config.php');

require_once(CLASS_DIR.'dbClass.php');

require_once(INCLUDES_DIR.'header.php');

$pageName = 'Payment';

include('hitCounter.php');


$obj = new DBClass();

$obj5 = new DBClass();

$dat = date('Y-m-j');

$sql = "SELECT * FROM ".TBL_PAGES." WHERE page_name = '".$_GET['page']."' AND status = 0";

$rs = $obj->executeQry($sql,$link);

$row = $obj->fetchrow();
if(isset($_POST['countinue'])) {
	$error = '';
	if($_POST['ddnumber']=='') {
		$error = 'Please enter Cheque/DD No!';
	}
	if($_POST['bankname']=='') {
		$error .= "<br>".'Please enter Bank name!';
	}
	if($_POST['bankbranch']=='') {
		$error .= "<br>".'Please enter Bank branch!';
	}
	if($_POST['bankcity']=='') {
		$error .= "<br>".'Please enter Bank city!';
	}
	if($error == '') {
		$sql = "insert into orders (memberID,profileID,ddnumber,ddbank,ddbranch,ddcity,orderdate,listingID,service,order_total) values ('".$_SESSION['memberID']."','".$_SESSION['profileID']."','".$_POST['ddnumber']."','".$_POST['bankname']."','".$_POST['bankbranch']."','".$_POST['bankcity']."','".date("Y-m-d H:i:s")."','".$_REQUEST['id']."','".$_SESSION['service']."','".$_SESSION['ordertotal']."')";	
		mysql_query($sql);
		
		@header("location:listed.php");
		exit;
	}
}

?>

<script type="text/javascript" src="js/ibox.js"></script>

    <!--workarea start------------------------->

        <div class="workarea">

            <div class="workareatop">

                <img src="images/workareatopcorner_03.PNG" alt="" />

            </div>

            

            <!--workareamid start--------------------->

            <div class="workareamid">

                <div id="floatleft">

                    <div class="welcomediv">
					<table width="100%" align="center" border="0" cellspacing="5" cellpadding="5">
  <tr align="left" valign="top">
    <td  ><table width="425" border="0" cellspacing="0" cellpadding="0" class="Example_F">
  
  <tr>
    <td height="200" align="center" valign="top" style="padding:10px;">
    <form name="login" method="post" action="">
    <table width="100%" border="0" cellspacing="2" cellpadding="2">
    <tr>
    <td colspan="2"><h2>Internet Banking</h2>
    <span style="float:right">
    <input type="hidden" name="pay_type" value="1" />
    <input type="button" name="internetbanking" value="Internet Banking" disabled="disabled" /></span>
</td>
  </tr>
  
  
  
</table>
	</form>
</td>
  </tr>
  
    </table>
</td>
    <td>
<form name="bankdd" method="post" action="">
    <table width="425" border="0" cellspacing="0" cellpadding="0" class="Example_F">
  <tr>
    <td height="200" align="left" valign="top" style="padding:10px;"><h2>Pay by Cheque/DD</h2>
    <h3 style="font-size:18px;">Total - <strong>Rs. <?php echo $_SESSION['ordertotal']; ?></strong></h3>
    Cheque/DD drawn in favour of Coal Bazaar Pvt. Ltd. <br />
Mention your unique Coal Bazaar profile id <?php echo $_SESSION['profileID']; ?> at the back of the cheque/dd with Coal Bazaar's SBI Bank account number XXX.<br />
<br />
<table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td width="32%" height="25" align="left" valign="middle"> Cheque/DD No.* </td>
    <td width="68%" height="25" align="left" valign="middle"><input type="text" name="ddnumber" id="ddnumber" /></td>
  </tr>
  <tr>
    <td height="25" align="left" valign="middle"> Bank Name* </td>
    <td height="25" align="left" valign="middle"><input type="text" name="bankname" id="bankname" /></td>
  </tr>
  <tr>
    <td height="25" align="left" valign="middle"> Bank Branch* </td>
    <td height="25" align="left" valign="middle"><input type="text" name="bankbranch" id="bankbranch" /></td>
  </tr>
  <tr>
    <td height="25" align="left" valign="middle"> Bank City* </td>
    <td height="25" align="left" valign="middle"><input type="text" name="bankcity" id="bankcity" /></td>
  </tr>
  <tr>
    <td height="25" align="left" valign="middle">&nbsp;</td>
    <td height="25" align="left" valign="middle">&nbsp;</td>
  </tr>
</table>

<strong>You can send across your Cheque/DD to us in two ways:</strong><br /><br />
<strong>1. Deposit Cheque/DD at an SBI Bank Branch/ATM</strong><br />

Deposit your cheque at a nearby SBI Bank branch or drop it at any of SBI Bank ATM drop boxes. Look for the SBI Bank Branch/ATM near your area<br /><br />

<strong>2. Send Cheque/DD by courier to</strong><br />

Coal Bazaar Pvt. Ltd.<br />
1 Park Avenue, Yashwant Plaza,<br />
Indore, MP - 452001.<br />
Tel: 0731-1234567<br /><br />
<br />
<span style="float:right"><input type="hidden" name="pay_type" value="2" /><input type="submit" name="countinue" value="Countinue" /></span>
</td>
  </tr>
</table>
</form>
</td>
    <td>&nbsp;</td>
  </tr>
</table>

                        

                    </div>

                    <!--welcomediv close-------------------->

                </div>

                <!--floatleft close-------------------->

                

                <?php //require_once(INCLUDES_DIR.'left_bar.php');?>

                <!--floatright close-------------------->

                <div style="clear:both;"></div>

            </div>

            <!--workareamid close--------------------->

            

            <div class="workareabottom">

                <img src="images/workareabottomcorner_03.PNG" alt="" />

            </div>

        </div>

    <!--workarea close------------------------->



<?php require_once(INCLUDES_DIR.'footer.php');?>