include('people.php'); //$people = array('Al', 'Ashish', 'Ben', 'Doug', 'Gavin', 'Harish', // 'Marek', 'Naran', 'Nardos', 'Peter', 'Saeed', // 'Henry', 'Ujol', 'Chad', 'Stephen', 'Francois', 'Nippun'); //asort($people); $slots = array('10:00-11:00', '11:00-12:00', '12:00-13:00', '13:00-14:00', '14:00-15:00', '15:00-16:00', '16:00-17:00', '17:00-18:00'); $slotCoverage = array(); $colors[0]='F34607'; $colors[1]='121621'; //$colors = array('101F73','022859','599DD9','82B0D9','F2F2F2'); function isThatMe($who) { //if($who != $_GET['who']) return "disabled"; if($who != $_COOKIE['who']) return "disabled"; } function isChecked($person, $slotid){ global $slotstab; //check in db if slot is avaiable if($slotstab[$person][$slotid] == 1) return "checked"; } // read actual data $fp = fopen("data.dat","r"); $slotstab = unserialize(fread($fp,filesize("data.dat"))); fclose($fp); echo '