diff --git a/admin/judges_scheduler_status.php b/admin/judges_scheduler_status.php index d5364a2..fc409ae 100644 --- a/admin/judges_scheduler_status.php +++ b/admin/judges_scheduler_status.php @@ -29,43 +29,10 @@ ogram; see the file COPYING. If not, write to 'Administration' => 'admin/index.php', 'Judges' => 'admin/judges.php') ); + require_once("../ajax.inc.php"); ?> + + function handleResponse() + { + try { + if(http.readyState==4) + { + //eval the JSON to get the object if the length is big enough (custom reports return json []) + if(http.responseText.length>3) { + document.addreport.type.disabled=false; + document.addreport.stock.disabled=false; + document.addreport.type.style.display=''; + document.addreport.stock.style.display=''; + document.getElementById('reporttypecustom').style.display='none'; + document.getElementById('reportstockcustom').style.display='none'; + var obj=eval(http.responseText); + if(obj['option']['type']) { + for(i=0;i '.i18n('Add a Report to your Report List').''; echo "
"; echo ""; - echo "\n"; + echo "
\n"; echo '"; - echo ""; - /* Load the full specific report */ - if($reports_id > 0) $report = report_load($reports_id); $option_keys = array('type','stock'); foreach($report_options as $ok=>$o) { if(!in_array($ok, $option_keys)) continue; echo ""; echo ""; + echo "".i18n("Custom").""; } - echo ""; - echo ""; + echo ""; echo '
'; echo "
Category:"; + echo "
".i18n("Category").":"; $q = mysql_query("SELECT DISTINCT category FROM reports_committee WHERE users_id='{$_SESSION['users_id']}' ORDER BY category"); - echo "Existing Category: "; echo ""; while($i = mysql_fetch_object($q)) { echo ""; } echo "
"; - echo "OR New Category: "; + echo i18n("OR New Category").": "; echo "
{$o['desc']}:
Comments:"; + echo "
".i18n("Comments").":"; echo "
'; diff --git a/ajax.inc.php b/ajax.inc.php new file mode 100644 index 0000000..ab69d0d --- /dev/null +++ b/ajax.inc.php @@ -0,0 +1,34 @@ + diff --git a/translationsdropdown.inc.php b/translationsdropdown.inc.php index f933dcc..ebb1c09 100644 --- a/translationsdropdown.inc.php +++ b/translationsdropdown.inc.php @@ -21,40 +21,11 @@ Boston, MA 02111-1307, USA. */ ?> - +