diff --git a/admin/award_upload.php b/admin/award_upload.php index 009a0a7..369ee02 100644 --- a/admin/award_upload.php +++ b/admin/award_upload.php @@ -27,7 +27,7 @@ require_once('curl.inc.php'); user_auth_required('committee', 'admin'); //function get_cwsf_award_winners() -function get_winners($awardid) +function get_winners($awardid, $catmap_str=NULL, $divmap_str=NULL) { global $config; @@ -77,8 +77,8 @@ function get_winners($awardid) /* Get the fair for the div/cat mappings */ $q = mysql_query("SELECT * FROM fairs WHERE id='{$award['award_source_fairs_id']}'"); $fair = mysql_fetch_assoc($q); - $catmap = unserialize($fair['catmap']); - $divmap = unserialize($fair['divmap']); + $catmap = unserialize(($catmap_str != NULL) ? $catmap_str : $fair['catmap']); + $divmap = unserialize(($divmap_str != NULL) ? $divmap_str : $fair['divmap']); $winners=array( 'prizes' => array(), 'award_name' => $award['name'], @@ -272,7 +272,7 @@ case 'catdiv_save': echo "UPDATE fairs SET catmap='$catmap',divmap='$divmap' WHERE id='$fairs_id'"; echo mysql_error(); - happy_("Category/Division mapping information saved"); +// happy_("Category/Division mapping information saved"); exit; case 'confirm_load': @@ -433,6 +433,13 @@ $(document).ready(function() {


+ + + + + +
" /> >")?>" />
+
Loading..."; echo ''; } +/* " />*/ ?>


- - - + + +
" />" />>")?>" />" /> >")?>" />

@@ -478,9 +486,9 @@ $(document).ready(function() {
- - - + + +
" />" />>")?>" />" />" />>")?>" />