mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Add some uppercases and strtouppers
This commit is contained in:
@@ -114,7 +114,7 @@ class Stations extends CI_Model {
|
||||
'station_pota' => xss_clean(strtoupper($this->input->post('pota', true))),
|
||||
'station_sig' => xss_clean(strtoupper($this->input->post('sig', true))),
|
||||
'station_sig_info' => xss_clean(strtoupper($this->input->post('sig_info', true))),
|
||||
'station_callsign' => xss_clean($this->input->post('station_callsign', true)),
|
||||
'station_callsign' => xss_clean(strtoupper($this->input->post('station_callsign', true))),
|
||||
'station_power' => is_numeric(xss_clean($this->input->post('station_power', true))) ? xss_clean($this->input->post('station_power', true)) : NULL,
|
||||
'station_dxcc' => xss_clean($this->input->post('dxcc', true)),
|
||||
'station_cnty' => $county,
|
||||
@@ -168,15 +168,15 @@ class Stations extends CI_Model {
|
||||
|
||||
$data = array(
|
||||
'station_profile_name' => xss_clean($this->input->post('station_profile_name', true)),
|
||||
'station_gridsquare' => xss_clean($this->input->post('gridsquare', true)),
|
||||
'station_gridsquare' => xss_clean(strtoupper($this->input->post('gridsquare', true))),
|
||||
'station_city' => xss_clean($this->input->post('city', true)),
|
||||
'station_iota' => xss_clean($this->input->post('iota', true)),
|
||||
'station_sota' => xss_clean($this->input->post('sota', true)),
|
||||
'station_wwff' => xss_clean($this->input->post('wwff', true)),
|
||||
'station_pota' => xss_clean($this->input->post('pota', true)),
|
||||
'station_sig' => xss_clean($this->input->post('sig', true)),
|
||||
'station_sig_info' => xss_clean($this->input->post('sig_info', true)),
|
||||
'station_callsign' => xss_clean($this->input->post('station_callsign', true)),
|
||||
'station_iota' => xss_clean(strtoupper($this->input->post('iota', true))),
|
||||
'station_sota' => xss_clean(strtoupper($this->input->post('sota', true))),
|
||||
'station_wwff' => xss_clean(strtoupper($this->input->post('wwff', true))),
|
||||
'station_pota' => xss_clean(strtoupper($this->input->post('pota', true))),
|
||||
'station_sig' => xss_clean(strtoupper($this->input->post('sig', true))),
|
||||
'station_sig_info' => xss_clean(strtoupper($this->input->post('sig_info', true))),
|
||||
'station_callsign' => xss_clean(strtoupper($this->input->post('station_callsign', true))),
|
||||
'station_power' => is_numeric(xss_clean($this->input->post('station_power', true))) ? xss_clean($this->input->post('station_power', true)) : NULL,
|
||||
'station_dxcc' => xss_clean($this->input->post('dxcc', true)),
|
||||
'station_cnty' => $county,
|
||||
|
||||
@@ -62,7 +62,7 @@ if ($dxcc_list->result() > 0) {
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="stationCallsignInput"><?= __("Station Callsign"); ?></label>
|
||||
<input type="text" class="form-control" name="station_callsign" id="stationCallsignInput" aria-describedby="stationCallsignInputHelp" placeholder="4W7EST" required>
|
||||
<input type="text" class="form-control uppercase" name="station_callsign" id="stationCallsignInput" aria-describedby="stationCallsignInputHelp" placeholder="4W7EST" required>
|
||||
<small id="stationCallsignInputHelp" class="form-text text-muted"><?= __("Station callsign. For example: 4W7EST/P"); ?></small>
|
||||
</div>
|
||||
|
||||
@@ -142,7 +142,7 @@ if ($dxcc_list->result() > 0) {
|
||||
<label for="stationGridsquareInput"><?= __("Station Gridsquare"); ?></label>
|
||||
|
||||
<div class="input-group mb-3">
|
||||
<input type="text" class="form-control" name="gridsquare" id="stationGridsquareInput" aria-describedby="stationGridInputHelp" required>
|
||||
<input type="text" class="form-control uppercase" name="gridsquare" id="stationGridsquareInput" aria-describedby="stationGridInputHelp" required>
|
||||
<div class="input-group-append">
|
||||
<button type="button" class="btn btn-outline-secondary" onclick="getLocation()"><i class="fas fa-compass"></i> <?= __("Get Gridsquare"); ?></button>
|
||||
</div>
|
||||
@@ -170,31 +170,31 @@ if ($dxcc_list->result() > 0) {
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="stationSOTAInput"><?= __("SOTA Reference"); ?></label>
|
||||
<input type="text" class="form-control" name="sota" id="stationSOTAInput" aria-describedby="stationSOTAInputHelp">
|
||||
<input type="text" class="form-control uppercase" name="sota" id="stationSOTAInput" aria-describedby="stationSOTAInputHelp">
|
||||
<small id="stationSOTAInputHelp" class="form-text text-muted"><?= sprintf(__("Station SOTA reference. You can look up SOTA references at the %s."), "<a target='_blank' href='https://www.sotamaps.org/'>".__("SOTA Maps website")."</a>"); ?></small>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="stationWWFFInput"><?= __("WWFF Reference"); ?></label>
|
||||
<input type="text" class="form-control" name="wwff" id="stationWWFFInput" aria-describedby="stationWWFFInputHelp">
|
||||
<input type="text" class="form-control uppercase" name="wwff" id="stationWWFFInput" aria-describedby="stationWWFFInputHelp">
|
||||
<small id="stationWWFFInputHelp" class="form-text text-muted"><?= sprintf(__("Station WWFF reference. You can look up WWFF references at the %s."), "<a target='_blank' href='https://www.cqgma.org/mvs/'>".__("GMA Map website")."</a>"); ?></small>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="stationPOTAInput"><?= __("POTA Reference(s)"); ?></label>
|
||||
<input type="text" class="form-control" name="pota" id="stationPOTAInput" aria-describedby="stationPOTAInputHelp">
|
||||
<input type="text" class="form-control uppercase" name="pota" id="stationPOTAInput" aria-describedby="stationPOTAInputHelp">
|
||||
<small id="stationPOTAInputHelp" class="form-text text-muted"><?= sprintf(__("Station POTA reference(s). Multiple comma separated values allowed. You can look up POTA references at the %s."), "<a target='_blank' href='https://pota.app/#/map/'>".__("POTA Map website")."</a>"); ?></small>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="stationSigInput"><?= __("Signature Name"); ?></label>
|
||||
<input type="text" class="form-control" name="sig" id="stationSigInput" aria-describedby="stationSigInputHelp">
|
||||
<input type="text" class="form-control uppercase" name="sig" id="stationSigInput" aria-describedby="stationSigInputHelp">
|
||||
<small id="stationSigInputHelp" class="form-text text-muted"><?= __("Station Signature (e.g. GMA).."); ?></small>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="stationSigInfoInput"><?= __("Signature Information"); ?></label>
|
||||
<input type="text" class="form-control" name="sig_info" id="stationSigInfoInput" aria-describedby="stationSigInfoInputHelp">
|
||||
<input type="text" class="form-control uppercase" name="sig_info" id="stationSigInfoInput" aria-describedby="stationSigInfoInputHelp">
|
||||
<small id="stationSigInfoInput" class="form-text text-muted"><?= __("Station Signature Info (e.g. DA/NW-357)."); ?></small>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ if ($dxcc_list->result() > 0) {
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="stationCallsignInput"><?= __("Station Callsign"); ?></label>
|
||||
<input type="text" class="form-control" name="station_callsign" id="stationCallsignInput" aria-describedby="stationCallsignInputHelp" value="<?php if(set_value('station_callsign') != "") { echo set_value('station_callsign'); } else { echo $my_station_profile->station_callsign; } ?>" required>
|
||||
<input type="text" class="form-control uppercase" name="station_callsign" id="stationCallsignInput" aria-describedby="stationCallsignInputHelp" value="<?php if(set_value('station_callsign') != "") { echo set_value('station_callsign'); } else { echo $my_station_profile->station_callsign; } ?>" required>
|
||||
<small id="stationCallsignInputHelp" class="form-text text-muted"><?= __("Station callsign. For example: 4W7EST/P"); ?></small>
|
||||
</div>
|
||||
|
||||
@@ -197,7 +197,7 @@ if ($dxcc_list->result() > 0) {
|
||||
<label for="stationGridsquareInput"><?= __("Station Gridsquare"); ?></label>
|
||||
|
||||
<div class="input-group mb-3">
|
||||
<input type="text" class="form-control" name="gridsquare" id="stationGridsquareInput" aria-describedby="stationGridInputHelp" value="<?php if(set_value('gridsquare') != "") { echo set_value('gridsquare'); } else { echo $my_station_profile->station_gridsquare; } ?>" required>
|
||||
<input type="text" class="form-control uppercase" name="gridsquare" id="stationGridsquareInput" aria-describedby="stationGridInputHelp" value="<?php if(set_value('gridsquare') != "") { echo set_value('gridsquare'); } else { echo $my_station_profile->station_gridsquare; } ?>" required>
|
||||
<div class="input-group-append">
|
||||
<button type="button" class="btn btn-outline-secondary" onclick="getLocation()"><i class="fas fa-compass"></i> <?= __("Get Gridsquare"); ?></button>
|
||||
</div>
|
||||
@@ -243,8 +243,8 @@ if ($dxcc_list->result() > 0) {
|
||||
<h5 class="card-header"><?= __("SOTA"); ?></h5>
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<label for="stationSOTAInput"><?= __("SOTA Reference"); ?></label>
|
||||
<input type="text" class="form-control" name="sota" id="stationSOTAInput" aria-describedby="stationSOTAInputHelp" value="<?php if(set_value('sota') != "") { echo set_value('sota'); } else { echo $my_station_profile->station_sota; } ?>">
|
||||
<label for="stationSOTAInput"><?= __("SOTA Reference"); ?></label>
|
||||
<input type="text" class="form-control uppercase" name="sota" id="stationSOTAInput" aria-describedby="stationSOTAInputHelp" value="<?php if(set_value('sota') != "") { echo set_value('sota'); } else { echo $my_station_profile->station_sota; } ?>">
|
||||
<small id="stationSOTAInputHelp" class="form-text text-muted"><?= sprintf(__("Station SOTA reference. You can look up SOTA references at the %s."), "<a target='_blank' href='https://www.sotamaps.org/'>".__("SOTA Maps website")."</a>"); ?></small>
|
||||
</div>
|
||||
</div>
|
||||
@@ -257,7 +257,7 @@ if ($dxcc_list->result() > 0) {
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<label for="stationWWFFInput"><?= __("WWFF Reference"); ?></label>
|
||||
<input type="text" class="form-control" name="wwff" id="stationWWFFInput" aria-describedby="stationWWFFInputHelp" value="<?php if(set_value('wwff') != "") { echo set_value('wwff'); } else { echo $my_station_profile->station_wwff; } ?>">
|
||||
<input type="text" class="form-control uppercase" name="wwff" id="stationWWFFInput" aria-describedby="stationWWFFInputHelp" value="<?php if(set_value('wwff') != "") { echo set_value('wwff'); } else { echo $my_station_profile->station_wwff; } ?>">
|
||||
<small id="stationWWFFInputHelp" class="form-text text-muted"><?= sprintf(__("Station WWFF reference. You can look up WWFF references at the %s."), "<a target='_blank' href='https://www.cqgma.org/mvs/'>".__("GMA Map website")."</a>"); ?></small>
|
||||
</div>
|
||||
</div>
|
||||
@@ -270,7 +270,7 @@ if ($dxcc_list->result() > 0) {
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<label for="stationPOTAInput"><?= __("POTA Reference(s)"); ?></label>
|
||||
<input type="text" class="form-control" name="pota" id="stationPOTAInput" aria-describedby="stationPOTAInputHelp" value="<?php if(set_value('pota') != "") { echo set_value('pota'); } else { echo $my_station_profile->station_pota; } ?>">
|
||||
<input type="text" class="form-control uppercase" name="pota" id="stationPOTAInput" aria-describedby="stationPOTAInputHelp" value="<?php if(set_value('pota') != "") { echo set_value('pota'); } else { echo $my_station_profile->station_pota; } ?>">
|
||||
<small id="stationPOTAInputHelp" class="form-text text-muted"><?= sprintf(__("Station POTA reference(s). Multiple comma separated values allowed. You can look up POTA references at the %s."), "<a target='_blank' href='https://pota.app/#/map/'>".__("POTA Map website")."</a>"); ?></small>
|
||||
</div>
|
||||
</div>
|
||||
@@ -284,15 +284,15 @@ if ($dxcc_list->result() > 0) {
|
||||
<h5 class="card-header"><?= __("Signature"); ?></h5>
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<label for="stationSigInput"><?= __("Signature Name"); ?></label>
|
||||
<input type="text" class="form-control" name="sig" id="stationSigInput" aria-describedby="stationSigInputHelp" value="<?php if(set_value('sig') != "") { echo set_value('sig'); } else { echo $my_station_profile->station_sig; } ?>">
|
||||
<small id="stationSigInputHelp" class="form-text text-muted"><?= __("Station Signature (e.g. GMA).."); ?></small>
|
||||
<label for="stationSigInput"><?= __("Signature Name"); ?></label>
|
||||
<input type="text" class="form-control uppercase" name="sig" id="stationSigInput" aria-describedby="stationSigInputHelp" value="<?php if(set_value('sig') != "") { echo set_value('sig'); } else { echo $my_station_profile->station_sig; } ?>">
|
||||
<small id="stationSigInputHelp" class="form-text text-muted"><?= __("Station Signature (e.g. GMA).."); ?></small>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="stationSigInfoInput"><?= __("Signature Information"); ?></label>
|
||||
<input type="text" class="form-control" name="sig_info" id="stationSigInfoInput" aria-describedby="stationSigInfoInputHelp" value="<?php if(set_value('sig_info') != "") { echo set_value('sig_info'); } else { echo $my_station_profile->station_sig_info; } ?>">
|
||||
<small id="stationSigInfoInputHelp" class="form-text text-muted"><?= __("Station Signature Info (e.g. DA/NW-357)."); ?></small>
|
||||
<label for="stationSigInfoInput"><?= __("Signature Information"); ?></label>
|
||||
<input type="text" class="form-control uppercase" name="sig_info" id="stationSigInfoInput" aria-describedby="stationSigInfoInputHelp" value="<?php if(set_value('sig_info') != "") { echo set_value('sig_info'); } else { echo $my_station_profile->station_sig_info; } ?>">
|
||||
<small id="stationSigInfoInputHelp" class="form-text text-muted"><?= __("Station Signature Info (e.g. DA/NW-357)."); ?></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -305,16 +305,16 @@ if ($dxcc_list->result() > 0) {
|
||||
<h5 class="card-header"><?= __("eQSL"); ?></h5>
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<label for="eqslNickname"><?php echo _pgettext("Probably no translation needed","eQSL QTH Nickname"); ?></label> <!-- This does not need Multilanguage Support -->
|
||||
<input type="text" class="form-control" name="eqslnickname" id="eqslNickname" aria-describedby="eqslhelp" value="<?php if(set_value('eqslnickname') != "") { echo set_value('eqslnickname'); } else { echo $my_station_profile->eqslqthnickname; } ?>">
|
||||
<small id="eqslhelp" class="form-text text-muted"><?= __("The QTH Nickname which is configured in your eQSL Profile"); ?></small>
|
||||
<label for="eqslNickname"><?php echo _pgettext("Probably no translation needed","eQSL QTH Nickname"); ?></label> <!-- This does not need Multilanguage Support -->
|
||||
<input type="text" class="form-control" name="eqslnickname" id="eqslNickname" aria-describedby="eqslhelp" value="<?php if(set_value('eqslnickname') != "") { echo set_value('eqslnickname'); } else { echo $my_station_profile->eqslqthnickname; } ?>">
|
||||
<small id="eqslhelp" class="form-text text-muted"><?= __("The QTH Nickname which is configured in your eQSL Profile"); ?></small>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="eqslDefaultQSLMsg"><?= __("Default QSLMSG"); ?></label>
|
||||
<label for="eqslDefaultQSLMsg"><?= __("Default QSLMSG"); ?></label>
|
||||
<label class="position-absolute end-0 mb-2 me-3" for="eqslDefaultQSLMsg" id="charsLeft"> </label>
|
||||
<textarea class="form-control" name="eqsl_default_qslmsg" id="eqslDefaultQSLMsg" aria-describedby="eqsldefaultqslmsghelp" maxlength="240" rows="2" style="width:100%;" value="<?php echo $my_station_profile->eqsl_default_qslmsg; ?>"><?php echo $my_station_profile->eqsl_default_qslmsg; ?></textarea>
|
||||
<small id="eqsldefaultqslmsghelp" class="form-text text-muted"><?= __("Define a default message that will be populated and sent for each QSO for this station location."); ?></small>
|
||||
</div>
|
||||
<textarea class="form-control" name="eqsl_default_qslmsg" id="eqslDefaultQSLMsg" aria-describedby="eqsldefaultqslmsghelp" maxlength="240" rows="2" style="width:100%;" value="<?php echo $my_station_profile->eqsl_default_qslmsg; ?>"><?php echo $my_station_profile->eqsl_default_qslmsg; ?></textarea>
|
||||
<small id="eqsldefaultqslmsghelp" class="form-text text-muted"><?= __("Define a default message that will be populated and sent for each QSO for this station location."); ?></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user