Tuesday, April 30, 2013

RANK ESTIMATOR FOR EAMCET

RANK ESTIMATOR



<?php 
include ("head.php");
include_once"header.php";

?>
<div id="contentwrapper">
                <div class="lm_main_content">
                  <div class="row-fluid">
                        <div class="span8">
                            <h3 class="heading"><p class="text-success"> Eamcet 2013 Rank Estimator For Engineering And Medical</p></h3>
                            <div class="row-fluid">
                                <div class="span12">

                       <!-- custom content start from here -->
<form class="form-horizontal" method="GET" action="" name="rankestimator">
<h3>ENTER YOUR EAMCET ESTIMATED MARKS</h3>
  <div class="control-group">
    <label class="control-label"> Maths/Biology Marks</label>
    <div class="controls">
      <input type="text" id="maths" name="maths" placeholder="40" class="input input-xlarge" required>
    </div>
  </div>
<div class="control-group">
    <label class="control-label">Physics Marks </label>
    <div class="controls">
      <input type="text" id="physics" name="physics" placeholder="37" class="input input-xlarge" required>
    </div>
  </div>
 <div class="control-group">
    <label class="control-label">Chemistry Marks</label>
    <div class="controls">
      <input type="text" id="chemistry" name="chemistry" placeholder="35" class="input input-xlarge" required>
    </div>
  </div>
  
  <H3>ENTER YOUR INTERMIDIATE MARKS</H3>
  <div class="control-group">
    <label class="control-label"> Maths/Biology Marks</label>
    <div class="controls">
      <input type="text" id="mathsip" name="mathsip" placeholder="210" class="input input-xlarge" required>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">Physics Marks </label>
    <div class="controls">
      <input type="text" id="physicsip" name="physicsip" placeholder="137" class="input input-xlarge" required>
    </div>
  </div>
 <div class="control-group">
    <label class="control-label">Chemistry Marks</label>
    <div class="controls">
      <input type="text" id="chemistryip" name="chemistryip" placeholder="145" class="input input-xlarge" required>
    </div>
  </div>
  
  <div class="control-group">
    <label class="control-label">Select Your Stream</label>
    <div class="controls">
      <select class="input input-xlarge" name="stream" required>
        <option value="not selected">Select Stream</option>
      <option value="Engineering">Engineering</option>
      <option value="Medical" >Medical</option>
</select>    
    </div>
  </div>
  <div class="control-group">
  <div class="controls">
  <button type="submit" class="btn btn-primary" name="sub">SUBMIT</button>
</div>
</div>
</form>
                 <?php
                          if(isset($_GET['sub']))
                          {
                          $Eamcet_Physics = $_GET['physics'];
                          $Eamcet_Chemistry = $_GET['chemistry'];
                          $Eamcet_Maths = $_GET['maths'];
                          $Eamcet = $Eamcet_Physics+$Eamcet_Chemistry+$Eamcet_Maths;
                             $Eamcet_To = $Eamcet*75;
                             $Eamcet_Total= $Eamcet_To/160;
                          $Ip_Physics = $_GET['physicsip'];
                          $Ip_Chemistry = $_GET['chemistryip'];
                          $Ip_Maths= $_GET['mathsip'];
                          $Ip = $Ip_Physics+$Ip_Chemistry+$Ip_Maths;
                            $Ip_To =$Ip*25;
                            $Ip_Total=$Ip_To/600;
                            $Combined_Total=$Eamcet_Total+$Ip_Total;
                            $Combined_Total_minus=ceil($Combined_Total-1);
                            $Combined_Total_plus=ceil($Combined_Total+1);
            
              }


                           ?>

                          
                            

                           
  <?php if(isset($_GET['sub']) && ($_GET['stream'] == 'Engineering') || ($_GET['stream'] == 'Medical') ) { ?>           
 <table class="table table-bordered table-striped dTableR ">
  <tbody>

<tr>
<th>Eamcet Weightage</th>
<td><?php  echo $Eamcet_Total; ?></td>
</tr>
<tr>
<th>Inter Weightage</th>
<td><?php echo $Ip_Total; ?></td>
</tr>
<tr>
<th>Combined Score</th>
<td><?php if(isset($_GET['sub'])) { echo ceil($Combined_Total); } ?></td>
</tr>
<tr>
<th>Your Rank May Between</th>
<td><?php  
if(($_GET['stream'] == 'Engineering') AND isset($_GET['sub']))
{
$combinedSc = ceil($Combined_Total);
$DBOBJ = new Connect();



            $toScPrepared = $DBOBJ->conn->prepare("SELECT er_rank FROM lm_engineering_results WHERE er_combinedscore > '$combinedSc' ORDER BY er_combinedscore ASC LIMIT 1");
$toScPrepared->execute();
$toScArray = $toScPrepared->fetch();
            echo $toScArray['er_rank'];
                 $ranksuggested=$toScArray['er_rank'];
echo " to ";


$fromScPrepared = $DBOBJ->conn->prepare("SELECT er_rank FROM `lm_engineering_results` WHERE er_combinedscore < '$combinedSc' ORDER BY er_combinedscore DESC LIMIT 1");
$fromScPrepared->execute();
$fromScArray = $fromScPrepared->fetch();
            echo $fromScArray['er_rank']; 
}

  if(($_GET['stream'] == 'Medical') && isset($_GET['sub']))
{
  $combinedSc = ceil($Combined_Total);
$DBOBJ = new Connect();



            $toScPrepared = $DBOBJ->conn->prepare("SELECT em_rank FROM lm_medical_results WHERE em_combinedscore > '$combinedSc' ORDER BY em_combinedscore ASC LIMIT 1");
$toScPrepared->execute();
$toScArray = $toScPrepared->fetch();
            echo $toScArray['em_rank'];

echo " to ";


$fromScPrepared = $DBOBJ->conn->prepare("SELECT em_rank FROM `lm_medical_results` WHERE em_combinedscore < '$combinedSc' ORDER BY em_combinedscore DESC LIMIT 1");
$fromScPrepared->execute();
$fromScArray = $fromScPrepared->fetch();
            echo $fromScArray['em_rank']; 
}


?></td>
</tr>
</tbody>
</table>
<?php
}
?>
<?php if(isset($_GET['sub']) && ($_GET['stream'] == 'Engineering') ) { ?>
<table class="table table-bordered table-striped dTableR ">
  <tbody>
    <tr>
      <th>
<a href="engineering-college-estimator.php" target="_blank">College Estimator </a>
</th>
<td><?php if(($_GET['stream'] == 'Engineering') AND isset($_GET['sub']))
{
  echo "Check It Now With".$ranksuggested." Rank Which Colleges You Will Get";
}

 ?></td>
</tr>
</tbody>
</table>
<?php
}
?>

         <p>Note:-<small class="text-warning">The Above Providing Rank Details Are Based On 2012 Eamcet Results</small></p> 
           
                         

                        <!-- custom content END here -->

                                </div>
                            </div>  
                        </div>


<?php
include"sidebar.php";
include_once"footer.php";
 ?>

No comments:

Post a Comment