diff --git a/admin/award_awards.php b/admin/award_awards.php index 84b22d2..e1456a9 100644 --- a/admin/award_awards.php +++ b/admin/award_awards.php @@ -202,6 +202,9 @@ if($r['download_award'] == 'yes') $ret['dl'][] = $r['fairs_id']; if($r['upload_winners'] == 'yes') $ret['ul'][] = $r['fairs_id']; } + $q = mysql_query("SELECT * FROM award_awards WHERE id='$id'"); + $a = mysql_fetch_assoc($q); + $ret['identifier'] = $a['external_identifier']; echo json_encode($ret); exit; @@ -227,6 +230,9 @@ VALUES ('$id','$fairs_id','$dl','$ul')"); echo mysql_error(); } + $ident=mysql_escape_string(stripslashes($_POST['identifier'])); + mysql_query("UPDATE award_awards SET external_identifier='$ident' WHERE id='$id'"); + happy_("Saved"); exit; } @@ -391,6 +397,7 @@ function update_feeder() $.getJSON("=$_SERVER['PHP_SELF']?>?action=feeder_load&id="+id, function(json) { $("#feeder_id").val(id); + $("#feeder_identifier").val(json.identifier); $("[name=feeder_dl\\[\\]]").val(json.dl); $("[name=feeder_ul\\[\\]]").val(json.ul); }); @@ -613,9 +620,14 @@ $(document).ready(function() {
=("Select which feeder fairs can download this award and upload winners.")?>