diff --git a/admin/award_awards.php b/admin/award_awards.php index 121711e..84b22d2 100644 --- a/admin/award_awards.php +++ b/admin/award_awards.php @@ -65,7 +65,7 @@ criteria='".mysql_escape_string(stripslashes($_POST['criteria']))."', description='".mysql_escape_string(stripslashes($_POST['description']))."' WHERE id='$id'"; - echo happy(i18n('Award Info Saved')); + happy_("Award Information Saved."); mysql_query($q); exit; @@ -111,7 +111,7 @@ mysql_query("INSERT INTO award_awards_projectdivisions (award_awards_id,projectdivisions_id,year) VALUES ('$id','$div','{$config['FAIRYEAR']}')"); } - echo happy(i18n("Saved.")); + happy_("Saved."); exit; case 'prize_order': @@ -122,7 +122,7 @@ mysql_query("UPDATE `award_prizes` SET `order`='$order' WHERE `id`='$id'"); } // print_r($_GET); -// echo happy(i18n("Order Updated.")); + happy_("Order Updated."); exit; case 'award_order': @@ -132,7 +132,7 @@ $order++; mysql_query("UPDATE `award_awards` SET `order`='$order' WHERE `id`='$id'"); } -// echo happy(i18n("Order Updated.")); + happy_("Order Updated."); exit; case 'prizeinfo_load': @@ -183,14 +183,14 @@ mysql_query($q); // echo $q; // echo mysql_error(); - echo happy(i18n("Prize saved")); + happy_("Prize saved"); exit; case 'prize_delete': $id = intval($_GET['id']); mysql_query("DELETE FROM award_prizes WHERE id='$id'"); // echo "DELETE FROM award_prizes WHERE id='$id'"; - echo happy(i18n("Prize deleted")); + happy_("Prize deleted"); exit; case 'feeder_load': @@ -207,6 +207,7 @@ case 'feeder_save': // print_r($_POST); + $id = intval($_POST['award_awards_id']); $dl = is_array($_POST['feeder_dl']) ? $_POST['feeder_dl'] : array(); $ul = is_array($_POST['feeder_ul']) ? $_POST['feeder_ul'] : array(); @@ -245,6 +246,7 @@ function update_awardinfo() { var id = award_id; // alert("id="+award_id); + notice_div_id('award_notice'); $.getJSON("=$_SERVER['PHP_SELF']?>?action=awardinfo_load&id="+id, function(json){ $("#awardinfo_id").val(json.id); @@ -265,13 +267,14 @@ function update_awardinfo() function awardinfo_save() { - $("#awardinfo_info").load("$_SERVER['PHP_SELF']?>?action=awardinfo_save", $("#awardinfo").serializeArray()); + $("#debug").load("$_SERVER['PHP_SELF']?>?action=awardinfo_save", $("#awardinfo").serializeArray()); return 0; } function update_eligibility() { var id = award_id; + notice_div_id('eligibility_notice'); $.getJSON("=$_SERVER['PHP_SELF']?>?action=eligibilty_load&id="+id, function(json){ $("#eligibility_id").val(json.id); @@ -299,6 +302,7 @@ function prizelist_refresh() function update_prizeinfo() { var id = award_id; + notice_div_id('prize_notice'); $.getJSON("=$_SERVER['PHP_SELF']?>?action=prizeinfo_load&id="+id, function(json) { $(".prizelist_tr").remove(); @@ -343,13 +347,13 @@ function edit_prize(id) function eligibility_save() { - $("#eligibility_info").load("$_SERVER['PHP_SELF']?>?action=eligibility_save", $("#eligibility").serializeArray()); + $("#debug").load("$_SERVER['PHP_SELF']?>?action=eligibility_save", $("#eligibility").serializeArray()); return 0; } function prize_save() { - $("#prizeinfo_info").load("$_SERVER['PHP_SELF']?>?action=prize_save", $("#prizeinfo").serializeArray()); + $("#debug").load("$_SERVER['PHP_SELF']?>?action=prize_save", $("#prizeinfo").serializeArray()); update_prizeinfo(); return 0; } @@ -383,7 +387,7 @@ function prize_create() function update_feeder() { var id = award_id; - notice_div_id('feeder_info'); + notice_div_id('feeder_notice'); $.getJSON("=$_SERVER['PHP_SELF']?>?action=feeder_load&id="+id, function(json) { $("#feeder_id").val(id); @@ -396,7 +400,7 @@ function update_feeder() function feeder_save() { - $("#feeder_info").load("$_SERVER['PHP_SELF']?>?action=feeder_save", $("#feeder_form").serializeArray()); + $("#debug").load("$_SERVER['PHP_SELF']?>?action=feeder_save", $("#feeder_form").serializeArray()); return 0; } @@ -447,7 +451,7 @@ $(document).ready(function() {