Beispiel #1
0
                    From-Date: <input type='text' id='inputField1' name='datein' required=true/>&emsp;
                    To-Date: <input type='text' id='inputField2' name='dateout' required=true></input><br><br><input type='submit' name='phase1'>
                </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>
Beispiel #2
0
function showProf($oid)
{
	
	$imgid=mysql_query("select * from MOBJECTT where oid='$oid'");
	while($img=mysql_fetch_array($imgid))
	{
		$obname =$img['obname'];
		$opwd=$img['opwd'];
		$image=$img['oimgid'];
		$otyid=$img['otyid'];
		$obhandle=$img['obhandle'];
	}
	
	
	$obj=mysql_query("select * from OTYPET where tyid='$otyid'");
	while($object=mysql_fetch_array($obj))
	{	
		$table=$object['tytab'];
		$matcher=$object['matcher'];
	}
	$ob=mysql_query("select * from ".$table." where ".$matcher."=".$obhandle);
	while($mat=mysql_fetch_array($ob))
	{
		$bio=$mat[3];
	}
	
	$imgurl=mysql_query("select imguri from MIMGT where imgid='$image'");
	while($imgur=mysql_fetch_array($imgurl))
	{
		$imguri="../".$imgur[0];
	}
	if($otyid == "2")
	{
		//echo "select (select imguri from MIMGT i where i.imgid=s.imgid) as imguri from MSUBJECTT s where subcode='".$obhandle."'";
		$array1 = queryMe("select (select imguri from MIMGT i where i.imgid=s.imgid) as imguri from MSUBJECTT s where subid='".$obhandle."'");
		$imguri = "../".$array1["imguri"];
		//echo $obhandle;
		$wr = queryMe("select subname from MSUBJECTT where subid like '".$obhandle."'");
		$subname = $wr["subname"];
		if(getImgUri($image)=="images/others/book.jpg")
		{
			echo "<a href='../core/immapind.php?subid=".$obhandle."' target='_blank' class='nyroModal' title='Select A Book For ".$subname."'>Find Book Cover</a>";
		//echo "<a href='../core/immapind.php?subid=".$obhandle."'&KeepThis=true&TB_iframe=true&#TB_inline class='thickbox'> Find Book Cover</a><br/>";
		}
		
	}
	list($width, $height, $type, $attr) = getimagesize($imguri);
	if($width>$height)
	{
		$width=200;
		$height=150;
	}
	else if($width<$height)
	{
		$width=150;
		$height=200;
	}	
	else
	{	
		$width=200;
		$height=200;
		
	}
	
echo "<img src='$imguri' width='$width' height='$height' border='1'/>";
echo "<h3>$obname</h3>";

}
Beispiel #3
0
    $pora = $_POST['pora'];
    $batid = $_POST['batid'];
    $sec = $_POST['sec'];
    $subid = $_POST['subid'];
    $date = $_POST['date'];
    $fid = $_POST['fid'];
    $perstr = $_POST['perstr'];
    echo "<fieldset><legend>Confirm Attendance</legend><center><form action='#' method='post'><div align='center'>";
    if($pora == "P")
        echo "<h3>Students Present</h3>";
    else
        echo "<h3>Students Absent</h3>";
    for($i=0;$i<count($ppl);$i++)
    {
        $query = "SELECT *,(SELECT imguri from MIMGT i WHERE i.imgid=s.imgid) as imguri FROM MSTUDENTT s WHERE sid LIKE '".$ppl[$i]."'";
        $row = queryMe($query);	
        echo "<div class='img'>";
        echo "<img src='../".$row['imguri']."' width='75' height='75' style='opacity:0.75;filter:alpha(opacity=75)'
	  	onmouseover='this.style.opacity=1;this.filters.alpha.opacity=100'
  		onmouseout='this.style.opacity=0.75;this.filters.alpha.opacity=75'>
		<div class='desc'><b><font color=#000000>".$row['sname']."</font></b><br><b><font color=#000000>".$row['srno']."</b></font>
                </div></div>";
    }
    foreach($ppl as $roll)
    {
        $string .= $roll.".";
    }
    $putstr  = substr($string,0,-1);
    echo "<input type='hidden' value='".$perstr."' name='perstr' />";
    echo "<input type='hidden' value='".$putstr."' name='str' />";
    echo "<input type='hidden' name='batid' value='".$batid."'></input>";