images/arrow_left.png" alt="Back"></span><a href="<?php echo $base_url; ?> index.php?section=admin">Back to Admin Dashboard</a> </span> </div> <?php } ?> <p><input name="submit" type="submit" class="button" value="Update Competition Info"></p> <?php if ($section == "step4") { $query_prefs = sprintf("SELECT * FROM %s WHERE id=1", $prefix . "preferences"); $prefs = mysql_query($query_prefs, $brewing) or die(mysql_error()); $row_prefs = mysql_fetch_assoc($prefs); $currency = explode("^", currency_info($row_prefs['prefsCurrency'], 1)); $currency_symbol = $currency[0]; $currency_code = $currency[1]; ?> <h3>Contact</h3> <table> <tr> <td class="dataLabel">Competition Coordinator's First Name:</td> <td class="data"><input name="contactFirstName" type="text" class="submit" size="50" maxlength="255" value="<?php echo $_SESSION['brewerFirstName']; ?> "></td> <td class="data"><span class="required">Required</span></td> </tr> <tr> <td class="dataLabel">Competition Coordinator's Last Name:</td>
<?php $registration_open = open_or_closed(strtotime("now"), $row_contest_dates['contestRegistrationOpen'], $row_contest_dates['contestRegistrationDeadline']); $entry_window_open = open_or_closed(strtotime("now"), $row_contest_dates['contestEntryOpen'], $row_contest_dates['contestEntryDeadline']); $judge_window_open = open_or_closed(strtotime("now"), $row_contest_dates['contestJudgeOpen'], $row_contest_dates['contestJudgeDeadline']); $reg_open = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestRegistrationOpen'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $reg_closed = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestRegistrationDeadline'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $entry_open = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestEntryOpen'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $entry_closed = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestEntryDeadline'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $judge_open = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestJudgeOpen'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $judge_closed = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestJudgeDeadline'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $currency = explode("^", currency_info($_SESSION['prefsCurrency'], 1)); $currency_symbol = $currency[0]; $currency_code = $currency[1]; // DataTables Default Values $output_datatables_bPaginate = "true"; $output_datatables_sPaginationType = "full_numbers"; $output_datatables_bLengthChange = "true"; $output_datatables_iDisplayLength = round($_SESSION['prefsRecordPaging']); if ($action == "print") { $output_datatables_sDom = "it"; } else { $output_datatables_sDom = "irftip"; } $output_datatables_bStateSave = "false"; $output_datatables_bProcessing = "false"; $color = "#eeeeee"; $color1 = "#e0e0e0"; $color2 = "#eeeeee";
} ?> /> Litres (lt) </label> </div> </div> </div><!-- ./Form Group --> <h3>Currency and Payment</h3> <div class="form-group"><!-- Form Group NOT REQUIRED Select --> <label for="prefsCurrency" class="col-lg-2 col-md-3 col-sm-4 col-xs-12 control-label">Currency</label> <div class="col-lg-6 col-md-6 col-sm-8 col-xs-12"> <!-- Input Here --> <select class="selectpicker" name="prefsCurrency" id="prefsCurrency" data-live-search="true" data-size="10" data-width="auto"> <?php $currency = currency_info($_SESSION['prefsCurrency'], 2); $currency_dropdown = ""; foreach ($currency as $curr) { $curr = explode("^", $curr); $currency_dropdown .= '<option value="' . $curr[0] . '"'; if ($_SESSION['prefsCurrency'] == $curr[0]) { $currency_dropdown .= ' SELECTED'; } $currency_dropdown .= '>'; $currency_dropdown .= $curr[1] . "</option>"; } echo $currency_dropdown; ?> </select> <span id="helpBlock" class="help-block"> <div class="btn-group" role="group" aria-label="currencyModal">