Team Workstation
Trial Session
function printTable($s)
{
return "
Contest Room | No | Team Name | Universities Name |
$s
";
}
function printRoom($roomname,$nostart,$count,$teams,$univs,$back)
{
$s = '
'.$roomname.' | '.$nostart.' | '.$teams[$nostart].' | '.$univs[$nostart].' |
';
for($i=1; $i<$count; $i++)
{
$nostart++;
$s.= '
'.$nostart.' | '.$teams[$nostart].' | '.$univs[$nostart].' |
';
}
$s .= '';
return $s;
}
$teams = array('','Hope','Law Let Me AC','Faith','Sphinx','10-2','H2S','KueKiaTheng','Deadlock','playfunfun','M-Queen','IsolatE','ManiAC','Arcadia','Puissance','ITT SOS Brigade','ITT DividedByZero','ITT LUCKY','ITT Vida','ITT VCIOUS','ITT Guntur','ShadowEvil','PlugNPlay','TouchEvent','CrossEdge','Nerd','YummyBomb','Halo','Larva 1','Eleazar','Saklar Lhompat','almostGraduate','Satijan','numpang_Makan','Ditolak jadi asdos programming','Coding\'s Angels','Numpang Ngoding','wFa2.0','ein','Joglosemar','TePeBe','Dongskar Pedongi II','HantuPuskom.Jr','Tpl08','kode racun','HantuPuskom','pssst...','Jambanan','NTUsiasm','NTU GladiaToRs','NTU Diversity','AO','lolypop','kulikoding','kulikodingHy','Autovajin','TC Pacifista','Padawan','DnD','inspanning','Legendroid','yoonA','JoRoGe','TheLastCodeBlender','40010','IIUM cat-us-trophy','+1 ironwood branch','CUStar02');
$univs = array('','Bina Nusantara University','Bina Nusantara University','Bina Nusantara University','Bina Nusantara University','Bina Nusantara University','Bina Nusantara University','Bina Nusantara University','Bina Nusantara University','Bina Nusantara University','Chinese University of Hong Kong','Chinese University of Hong Kong','Chinese University of Hong Kong','Chinese University of Hong Kong','Chinese University of Hong Kong','Institut Teknologi Telkom','Institut Teknologi Telkom','Institut Teknologi Telkom','Institut Teknologi Telkom','Institut Teknologi Telkom','Institut Teknologi Telkom','Sekolah Tinggi Teknik Surabaya','Sekolah Tinggi Teknik Surabaya','Sekolah Tinggi Teknik Surabaya','Sekolah Tinggi Teknik Surabaya','Sekolah Tinggi Teknik Surabaya','Shanghai Jiaotong University','Shanghai Jiaotong University','Shanghai University','University of Indonesia','University of Indonesia','University of Indonesia','University of Indonesia','University of Indonesia','University of Indonesia','University of Indonesia','University of Indonesia','University of Indonesia','Gadjah Mada University','Institut Teknologi Bandung','Institut Teknologi Bandung','Institut Teknologi Bandung','University of Sumatera Utara','University of Sumatera Utara','University of Sumatera Utara','University of Sumatera Utara','University of Sumatera Utara','Nanyang Technological University','Nanyang Technological University','Nanyang Technological University','Nanyang Technological University','Nanyang Technological University','STMIK Mikroskil','Universitas Pelita Harapan','Universitas Pelita Harapan','Institut Teknologi Sepuluh Nopember','Institut Teknologi Sepuluh Nopember','Institut Teknologi Sepuluh Nopember','Parahyangan University','Parahyangan University','Parahyangan University','Petra Christian University','Petra Christian University','University of Surabaya','Tokyo Institute of Technology','International Islamic University Malaysia','National Taiwan University','Chulalongkorn University');
$data = array(
array( "room"=>721, "nostart"=> 1, "count"=>14, "back"=>"#cc99ff" ),
array( "room"=>723, "nostart"=>15, "count"=>14, "back"=>"#ffcc99" ),
array( "room"=>725, "nostart"=>29, "count"=>13, "back"=>"#ccffff" ),
array( "room"=>727, "nostart"=>42, "count"=>13, "back"=>"#ffff99" ),
array( "room"=>729, "nostart"=>55, "count"=>13, "back"=>"#ccffcc" )
);
$cs = "";
foreach($data as $d)
{
$cs .= printRoom($d["room"],$d["nostart"],$d["count"],$teams,$univs,$d["back"]);
}
print printTable($cs);
?>
Contest Day