<?php 
header('Location: login.php');
exit;

$pageName = 'Members Login';

require_once('config/config.php');
require_once(CLASS_DIR.'dbClass.php');
require_once(INCLUDES_DIR.'header.php');

include('hitCounter.php');

$obj = new DBClass();

if(isset($_POST['submit']) && ($_POST['submit'] == 'Login')) {
	$valid = checkEmail($_POST['email'], "Email"); if(isset($valid) && $valid != ''){ $error[] = $valid;}	
	$valid = validmess($_POST['password'], "Password"); if(isset($valid) && $valid != ''){ $error[] = $valid;}			
	
	$sql = "SELECT * FROM ".TBL_USER." WHERE email = '".$_POST['email']."' AND password = '".$_POST['password']."'";
	$rs = $obj->executeQry($sql,$link);		
	$row = $obj->fetchrow();
	if($obj->getRow() > 0) {
			$_SESSION['memberID'] = $row['id'];
			$_SESSION['profileID'] = $row['profileID'];
			$_SESSION['email'] = $row['email'];
			$_SESSION['fname'] = $row['fname'];
			$_SESSION['lname'] = $row['lname'];
			setcookie("memberID", $row['id'], time()+3600);
			setcookie("email", $row['email'], time()+3600);
			setcookie("fname", $row['fname'], time()+3600);
			setcookie("lname", $row['lname'], time()+3600);
			@header("location:sellcoal_step2.php");
			exit;
	} else {
		$error[] = 'Please check login details!';
	}
}

?>



<!--workarea start------------------------->
<div class="workarea">
	<div class="workareatop">
		<img src="images/workareatopcorner_03.PNG" alt="" />
	</div>
	<!--workareamid start--------------------->
	<div class="workareamid">
		<div id="floatleft" style="width:590px; float:left;">
			<div class="welcomediv">
			
					<?php ShowInfo($info);?>
<table width="100%" border="0" cellspacing="5" cellpadding="5">
  <tr>
    <td>
        <table width="280" 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>Existing Customers</h2></td>
                        </tr>
                        <tr>
                            <td height="25" align="left" valign="middle">Email</td>
                            <td height="25" align="left" valign="middle"><input type="text" name="email" id="email"/></td>
                        </tr>
                        <tr>
                            <td height="25" align="left" valign="middle">Password</td>
                            <td height="25" align="left" valign="middle"><input type="password" name="password" id="password"/></td>
                        </tr>
                        <tr>
                            <td height="25" align="left" valign="middle"><input type="submit" name="submit" id="submit" value="Login" /></td>
                            <td height="25" align="left" valign="middle"><a href="fpass.php">Forget password</a></td>
                        </tr>
                          <?php if($error!='') { ?>
                        <tr>
                            <td colspan="2" class="error"><div class="err_msg"><?php ShowError($error);?></div></td>
                        </tr>
                          <?php } ?>
                    </table>
        	      </form>
                </td>
            </tr>
        </table>
    </td>
    <td>
        <table width="280" border="0" cellspacing="0" cellpadding="0" class="example_f">
            <tr>
                <td height="200" align="left" valign="top" style="padding:10px;">
                    <h2>New Customers</h2>
                    Please register to open an account for becoming a member of coalbazaar.com family and avail all the benefits  offered by us.<br />
        	       <a href="/facebook/index.php?login&oauth_provider=facebook" title="Coalbazaar facebook login"><img src="images/fbsignup.gif" style="background: none;border: none;margin-top: 20px;float: left;" title="Coalbazaar facebook login" alt="Coalbazaar facebook login"></a><span style="float:right; padding-top:20px;"><input type="button" name="button" value="Join now" onclick="window.location.href='registration.php'" /></span>
                </td>
            </tr>
        </table>
    </td>
  </tr>
</table>
<br /><br />
<table align="center" width="575" border="0" cellspacing="0" cellpadding="0" class="example_f">
    <tr>
        <td height="300" align="left" valign="top" style="padding:10px;">
            <table>
                <tr>
                    <td><h2>PAYMENT SYSTEM</h2></td>
                </tr>
				 <tr>
                    <td><strong>Subscription charges</strong><span style="color:#0000FF;"> (Coalbazaar.com and Coalmandi.com combined):</span></td>
                </tr>
				 <tr>
                    <td>&nbsp;</td>
                </tr>
				 <tr>
                    <td>
						<table width="98%" border="1" cellpadding="2" cellspacing="2" align="center" >
							<tr>
								<td width="30%" align="center" rowspan="2"><b>Product</b></td>
								<td width="40%" align="center" rowspan="2"><b>Details</b></td>
								<td width="30%" align="center" colspan="2"><b>Price</b></td>
							</tr>
							<tr>
								<td width="15%" align="center" ><b>Indian(INR)</b></td>
								<td width="15%" align="center" ><b>Out of India(USD)</b></td>
							</tr>
							<tr>
								<td align="center">Directory entry</td>
								<td align="center">For Lifetime</td>
								<td align="center">2000</td>
								<td align="center">200</td>
							</tr>
							<tr>
								<td align="center">Product Listing</td>
								<td align="center">Unlimited postings for 1 year</td>
								<td align="center">8000</td>
								<td align="center">500</td>
							</tr>
							<tr>
								<td align="center">Hot offers</td>
								<td align="center">For 30 Days/Posting</td>
								<td align="center">1000</td>
								<td align="center">100</td>
							</tr>
							<tr>
								<td align="center">Related services</td>
								<td >As per our field division / year only(If fulfilling the entire requirement as per our standards and physical verification only)</td>
								<td align="center">1000</td>
								<td align="center">100</td>
							</tr>
							<tr>
								<td align="center">Combo offer</td>
								<td>Directory entry for lifetime and Product listing for a year(Unlimited postings)</td>
								<td align="center">(2000+8000)= Rs.10000 Pay only Rs.6000</td>
								<td align="center">($200+$500)= $700 USD Pay only $500 USD</td>
							</tr>								
						</table>
					</td>
                </tr>
				 <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>
                        This page contains important information that is required for using the website at its fullest.. Please read this document carefully! <br />
                        <ol>
                            <li>For registration, product postings and entering &ldquo;MY SHOP&ldquo; you requires <strong>CUSTOMER RECEIPT NUMBER (CRN)</strong></li>
                            <li>To get CRN you have to make payment of the services you want to use.</li>
                            <li>Please send / inform about your payment (Your full details and details of deposit) by an email / SMS or via Phone.</li>
                            <li>After receiving and realization of payment we will send you CRN through mail and SMS to the details sended by you.</li>
                            <li>Enjoy the services at its fullest</li>
                        </ol>                         
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td><h4><b>PAYMENT PROCESS:</b></h4></td>
                </tr>
                <tr>
                    <td>
                        Cheque/DD drawn in favour of <b>Shrinetra Infotech</b><br />Mention your Name and mobile no. at the back of the cheque/DD with following details:<br /><br />
                        <b>SHRINETRA INFOTECH</b><br />
                        <table width="100%">
                            <tr>
                                <td width="29%">Current A/C No.</td>
                                <td>:</td>
                                <td width="70%">32566491270</td>
                            </tr>
                            <tr>
                                <td>Bank Details</td>
                                <td>:</td>
                                <td>State Bank of India, Dewas Naka branch, AB Road, Indore.</td>
                            </tr>
                            <tr>
                                <td>IFSC Code</td>
                                <td>:</td>
                                <td>SBIN0003218</td>
                            </tr>
                        </table><br />
                        <b>You can send across your Cheque/DD to us in two ways:</b><br />
                        <ol>
                            <li><b>Deposit Cheque/DD at an SBI Bank Branch/ATM</b><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. Cheque of any bank can be deposited to any of the SBI Bank branches.<br />Please send / inform about your payment (Your full details and details of deposit) by an email / SMS or via Phone. <br />Or you can mail us at our Email Id: shrinetrainfotech@gmail.com<br />
                            </li>
                            <li><b>Send Cheque/DD by courier to:</b><br />
                            <address>Shrinetra Infotech<br />62, Scheme no. 114, Part 1,<br />Dewas Naka, AB Road,<br />Indore, Madhya Pradesh 452010<br />Phone :+91-0731-4032323 / 2012323</address>
                            </li>
                        </ol>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

 
 						</div>
				</div>
				<?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');?>