</form> <div id='phase1'> <?php if(isset($_POST['phase1'])) { $arr = getObject($oid); //print_r($arr); $sidarr = getStudent($arr["obhandle"]); $rno =$sidarr["srno"]; $datein = $_POST["datein"]; $dateout = $_POST['dateout']; $Arr = queryMe("SELECT sid from MSTUDENTT where srno like '".strtoupper($rno)."'"); $sid = $Arr['sid']; $brid = getBranchFromSrno($rno); $obrid = getBranchFilter(); $result=mysql_query("select * from MSTUDENTT where srno='$rno'"); $rownum=mysql_num_rows($result); if($rownum<=0) { notifyerr("Invalid Hallticket Number"); } else { if($obrid=='%' || $brid==$obrid) { echo " <div id='placeholder' style='width:500px;height:300px'></div> <p id='hoverdata'> <span id='clickdata'></span></p>"; echo getStuGraph($sid,strtotime($datein),strtotime($dateout));
</style> </head> <body> <form action='#' method='post'> Roll Number: <input type="text" name="srno" /><br><br><br> <input type="submit" name='retrival'/> <a href='' onclick='printer()'>Print</a> </form> <div id='php_retival'> <?php echo "<div id='printarea'>"; if(isset($_POST['retrival'])) { if($_POST['srno']!="") { $brid = getBranchFromSrno($_POST['srno']); $obrid = getBranchFilter(); $srno=$_POST['srno']; if($obrid=='%' || $brid==$obrid) { include_once("Retrival.php"); retrival($srno); } else notifyerr("The Student Does Not Correspond To The Branch Concerned With You!"); } else notifyerr("Invalid Hall Ticket Number"); } echo "</div>"; ?>