diff --git a/admin/locations.php b/admin/locations.php index c3a6a06..f6f8d02 100644 --- a/admin/locations.php +++ b/admin/locations.php @@ -49,7 +49,6 @@ $editor->setPrimaryKey("id"); $editor->setRecordType("Location"); $editor->setDefaultSortField("name"); $editor->execute(); - send_footer(); diff --git a/admin/schedule.php b/admin/schedule.php new file mode 100644 index 0000000..9d796e2 --- /dev/null +++ b/admin/schedule.php @@ -0,0 +1,126 @@ + + Copyright (C) 2005 James Grant + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation, version 2. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ +?> +".i18n("Schedule for %1",array(format_date($_GET['date']))).""; + $q=mysql_query("SELECT * FROM locations WHERE conferences_id='{$conference['id']}' ORDER BY name"); + while($r=mysql_fetch_object($q)) { + $locations[$r->id]=$r->name; + } + if(!count($locations)) { + echo error(i18n("There are no locations defined. Please set up your locations first")); + echo "".i18n("Location Editor")."\n"; + exit; + } + + echo "\n"; + echo ""; + echo ""; + foreach($locations AS $id=>$name) { + echo " \n"; + } + $starthour="7"; + $endhour="22"; + $increment=15; + for($h=$starthour;$h<$endhour;$h++) { + for($m=0;$m<60;$m+=$increment) { + echo ""; + echo " "; + foreach($locations AS $id=>$name) { + echo ""; + } + echo ""; + } + } + echo "
 $name
"; + if($m==0) { + echo format_time("$h:$m"); + } + echo ""; + /* + if($h==8&&$m==0&&$id==3) { + $height=4; + $pxheight=$height*25; + echo "
"; + echo "
"; + } + */ + echo "
\n"; + } + else { + + send_header("Schedule Management", + array('Committee Main' => 'committee_main.php', + 'Administration' => 'admin/index.php'), + "events_scheduling" ); + echo "
"; + ?> + + + +
+ + +
+
+
+
+
+
+ diff --git a/theme/default/sfiab.css b/theme/default/sfiab.css index e4dac2a..764454f 100644 --- a/theme/default/sfiab.css +++ b/theme/default/sfiab.css @@ -493,3 +493,52 @@ ul.conferencenav li a:hover { } +.schedule { + border: 2px solid black; + border-collapse: collapse; + margin-left: 20px; +} + +.schedule th { + background-color: #1B86B7; + color: white; + font-weight: bold; + width: 150px; + text-align: center; + border: 1px solid black; +} + +.schedule td { + border: 1px solid #CCCCCC; + height: 25px; + overflow: auto; +} + +.scheduletime { + font-size: 0.8em; + font-weight: bold; +} + +.schedule td:hover { + background-color: #25BEFF; +} + +.scheduleevent { + border: 1px solid red; + background: orange; + width: 150px; + margin:0; +} + +#scheduleeventeditor { + position: absolute; + top: 100px; + left: 100px; + display: none; + background-color: orange; + border: 2px solid grey; + width: 148px; + height: 95px; + z-index: 1000; + +}