Пример #1
0
   //echo "batid: ".$batid." sec:".$sec." subid:".$subid." fid:".$fid." ".$date;
    
}
elseif(isset($_POST['phase2']))
{
    
    
    $batid = $_POST['batid'];
    $batsec = $_POST['sec'];
    $subid = $_POST['subid'];
    $date = $_POST['date'];
    $fid = $_POST['fid'];
    $per=$_POST['per'];
    if(count($per)<=0)
    {
	notifywar("You are unautherized to perform that task");
	redirect("?m=ua");
    }
    $query = "SELECT *,(SELECT imguri from MIMGT i WHERE i.imgid=s.imgid) as imguri FROM MSTUDENTT s WHERE batid LIKE '".$batid."' AND sec LIKE '".$batsec."'";
    $result = mysql_query($query);
    echo "<form action='#' method='post'>";
    $imp = implode(":",$_POST['per']);
    echo "<input type='hidden' value='".$imp."' name='perstr'>";
    echo "<input type='hidden' name='batid' value='".$batid."'></input>";
    echo "<input type='hidden' name='sec' value='".$batsec."'></input>";
    echo "<input type='hidden' name='subid' value='".$subid."'></input>";
    echo "<input type='hidden' name='date' value='".$date."'></input>";
     echo "<input type='hidden' name='fid' value='".$fid."' />";
    echo "<input type='radio' value='P' name='pora' checked='true'>Present</input><input type='radio' value='A' name='pora'>Absent</input>&emsp;<input type='submit' name='phase3'></input>";
    echo "<div id='people' style='margin:40px;'>";
    
Пример #2
0
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","../Roster/attNext.php?fac="+str,true);
xmlhttp.send();
}        
</script>
<?php

    notifywar("Please Note that some Periods may already uploaded.This Edit swaps the data so Edit the Attendence carefully");

    echo "<center>";
     echo "<fieldset style='text-align:center;width:700;'>";
        echo "<legend>Edit Attendence</legend>";
        echo "<center>";
    if(!isset($_POST['phase0']) && !isset($_POST['phase1']))
    {
        include_once("../lib/connection.php");
        
        echo "<form action='#' method='post'>";
        echo getEClassesAsSelect("cls[]","");
        echo "&emsp;Date&emsp;<input type='text' id='inputField' name='date' required=true/>&emsp;<input type='submit' name='phase0' />";
        echo "<br><br><div id='txtHint'>Note : Faculty will be given here</div>";
        
    }
Пример #3
0
 $per=$_POST['per'];
 $batid=$_POST['batid'];
 $sec=$_POST['sec'];
 $fid=$_POST['fid'];
 $date=$_POST['date'];
 echo "<form action='#' method='post' align='center'>";
 echo "<input type='hidden' name='batid' value='$batid'>";
 echo "<input type='hidden' name='date' value='$date'>";
 echo "<input type='hidden' name='fid' value='$fid'>";
 echo "<input type='hidden' name='sec' value='$sec'>";
 echo "<input type='hidden' name='per' value='$per'>";
 $student=mysql_query("select * from MSTUDENTT where batid='$batid'");
 $rows=mysql_num_rows($student);
 echo "<div align='center'>";
 echo "<center>";
 notifywar("! The students Present are Checked.Please Make your changes !");
 while($s=mysql_fetch_array($student))
 {
     $srno=$s[1];
     $sid=$s[0];
     $sname=$s[2];
     $imgid=$s[5];
     $image=mysql_query("select * from MIMGT where imgid='$imgid'");
     while($img=mysql_fetch_array($image))
     {
     	$imguri="../".$img[1];
     }
     $oidsql = mysql_query("SELECT oid from MOBJECTT where obhandle='".$srno."' and otyid='0'");
     $rarray = mysql_fetch_array($oidsql);
     $oid = $rarray['oid'];