Esempio n. 1
0
			
		});
                new JsDatePick({
			useMode:2,
			target:"inputField2",
			limitToToday:true,
			dateFormat:"%d-%M-%Y",
			imgPath:"../aux/calendar/img/"
			
		});
	};
</script>
<?php

echo "<fieldset><legend>Consolidated Report</legend><center><form action='#' method='post'>Select Class: ";
echo getClassesAsSelect("cls","");
echo "&emsp;From-Date: <input type='text' id='inputField1' name='datein' />To-Date: <input type='text' id='inputField2' name='dateout'></input><input type='submit' name='phase1'><br /></form>";
if(isset($_POST['phase1']))
{
	$bat = $_POST['cls'];
	
	$batdet = explode(":",$_POST['cls']);
	$batid = $batdet[0];
	$sec = $batdet[1];
	
	$datein = $_POST["datein"];
        $dateout = $_POST['dateout'];
	$in=strtotime($datein);
	$out=strtotime($dateout);
	if($in<$out)
	{
Esempio n. 2
0
<html>
<center>
<form action='#' method='post'>
<fieldset>
	<legend>Design Schedules</legend>
<?php
if(!isset($_POST['mainsub']) && !isset($_POST['phase2']))
{
	
	echo "Select A Class: ";	
	echo getClassesAsSelect('cls','');
	echo "<br /><br />Select Maximum Number Of Classes: <input type='number' name='clsnum' value='6'></input><br><br /><br />
<input type='submit' name='mainsub'></input><br />";
}
?>

</form>

<div id='php_sc_phase2'>
<?php

if(isset($_POST['mainsub']))
{
	echo "<form action='#' method='post'>";
	$bat = $_POST['cls'];
	$batdet = explode(":",$bat);
	$batid = $batdet[0];
	$sec = $batdet[1];
	$npo = $_POST["clsnum"];
	echo mapPeriods($batid,$sec,$npo);
	echo "<input type='hidden' name='batid' value='".$batid."'>";