示例#1
0
</script>
<fieldset>
    <legend>Upload Attendance</legend>
    <center>
<?php
//The UI Part
if(array_key_exists("err",$_GET))
{
    notifywar("You Have Rejected Your Selection. Please Start The Process Again!");
    
}
if(!isset($_POST['phase1']) && !isset($_POST['phase2']) && !isset($_POST['phase3']) && !isset($_POST['confirm']) && !isset($_POST['reject']))
{
    echo "<form action='#' method='post'>";
    $array = getObject($_COOKIE['object']); 
    $classes = getFacClasses("cls[]",$array['obhandle'],"");
    echo " Select Class : ".$classes."<br />";
    echo "<br />Select Date: <input type='text' name='date' id='inputField' required=true></input><br />";
   
    echo "<input type='hidden' name='fid' value='".$array['obhandle']."' />";
    echo "<br /><input type='submit' name='phase1' /  ></form>";
}
elseif(isset($_POST['phase1']))
{
    $main = $_POST['cls'][0];
    $clsmain = explode(':',$main);
    $cldet = $clsmain[0];
    $subid = $clsmain[1];
    $batid = substr($cldet,0,1);
    $sec = substr($cldet,-1);
    $fid = $_POST['fid'];
示例#2
0
 echo "<form action='#' method='post'>";
 echo getSubPeriods($batid,$sec,$date,$fid);
 echo "<br><br>";
 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='submit' name='phase1' value='Edit'>";
 }
 if(isset($_POST['phase1']) && !isset($_POST['phase2']))
 {
     
     echo "<center>";
     echo "<form action='#' method='post'>";
     $object = getObject($_COOKIE["object"]);
     echo "Select Class:&emsp;".getFacClasses("cls[]",$object["obhandle"],"")."&emsp;Date:&emsp;";
     echo "<input type='text' id='inputField'></input>";
     echo "<br><br>";
     echo "<input type='submit' name='phase0' value='Replace'>";
     echo "</center>";
     
 }
 if(isset($_POST['phase0']))
 {
   
     //echo "<center>";
     $main = $_POST['cls'][0];
     $clsmain = explode(':',$main);
     $cldet = $clsmain[0];
     $subid = $clsmain[1];
     $batid = substr($cldet,0,1);