From 517455ee1339485d7869f7899444ff13dcd6d431 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 24 Jul 2008 16:20:16 +0000 Subject: [PATCH] Migrate css to a theme and setup to allow multiple themes Begin adding icons to the default theme and reorganizing the admin index --- admin/index.php | 16 +++-- common.inc.php | 15 ++++- db/db.code.version.txt | 2 +- db/db.update.108.sql | 2 + .../default/icons/accessories-text-editor.png | Bin 0 -> 5637 bytes theme/default/icons/application-pdf.png | Bin 0 -> 1537 bytes theme/default/icons/plasmagik.png | Bin 0 -> 1912 bytes theme/default/icons/system-users.png | Bin 0 -> 1849 bytes sfiab.css => theme/default/sfiab.css | 12 ++++ theme/default/theme.php | 62 ++++++++++++++++++ 10 files changed, 102 insertions(+), 7 deletions(-) create mode 100644 db/db.update.108.sql create mode 100644 theme/default/icons/accessories-text-editor.png create mode 100644 theme/default/icons/application-pdf.png create mode 100644 theme/default/icons/plasmagik.png create mode 100644 theme/default/icons/system-users.png rename sfiab.css => theme/default/sfiab.css (95%) create mode 100644 theme/default/theme.php diff --git a/admin/index.php b/admin/index.php index dd6b57b..560ebfa 100644 --- a/admin/index.php +++ b/admin/index.php @@ -32,11 +32,19 @@ array('Committee Main' => 'committee_main.php') ); echo "
"; - echo "".i18n("Participant Registration")."
"; - echo "".i18n("Print / Export Reports")."
"; - echo "".i18n("Print Award Ceremony Scripts")."
"; + echo ""; + echo " "; + echo " "; + echo " "; + echo " "; + echo " "; + echo "
".theme_icon("participant_registration")."
".i18n("Participant Registration")."
".theme_icon("print/export_reports")."
".i18n("Print / Export Reports")."
".theme_icon("print_awards_ceremony_scripts")."
".i18n("Print Award Ceremony Scripts")."
\n"; echo "
"; - echo "".i18n("Committee Management")."
"; + echo ""; + echo " "; + echo " "; + echo " "; + echo "
".theme_icon("committee_management")."
".i18n("Committee Management")."
\n"; echo "".i18n("Awards Management")."
"; echo "".i18n("School Management")."
"; echo "".i18n("Judging Management")."
"; diff --git a/common.inc.php b/common.inc.php index c21416e..5523b21 100644 --- a/common.inc.php +++ b/common.inc.php @@ -178,6 +178,9 @@ while($r=mysql_fetch_object($q)) $config['dates'][$r->name]=$r->date; } +//and now pull the theme +require_once("theme/".$config['theme']."/theme.php"); + require_once("committee.inc.php"); if($config['SFIABDIRECTORY'] == '') { @@ -371,8 +374,8 @@ function send_header($title="", $nav=null) <?=i18n($title)?> - - + +