working on simple fle
这个提交包含在:
父节点
d2a8c7fc85
当前提交
503f67c16e
共有 3 个文件被更改,包括 22 次插入 和 11 次删除
|
|
@ -6,6 +6,11 @@ class SimpleFLE extends CI_Controller {
|
|||
$this->load->model('user_model');
|
||||
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
|
||||
|
||||
|
||||
$this->load->model('stations');
|
||||
|
||||
$data['station_profile'] = $this->stations->all_of_user(); // Used in the view for station location select
|
||||
|
||||
$data['page_title'] = "Simple Fast Log Entry";
|
||||
|
||||
$footerData = [];
|
||||
|
|
|
|||
|
|
@ -61,16 +61,22 @@
|
|||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-6">
|
||||
<div class="form-group">
|
||||
<label for="my-call">My call <span class="text-muted input-example">e.g.
|
||||
OK2CQR/P</span></label>
|
||||
<input type="text" class="form-control text-uppercase" id="my-call">
|
||||
<!-- <label for="my-call">My Station Callsign </label>
|
||||
<input type="text" class="form-control text-uppercase" id="my-call"> -->
|
||||
<label for="station_profile">Station Call</label>
|
||||
<select name="station_profile" class="station_id custom-select" id="station-call">
|
||||
<option value="-">-</option>
|
||||
<?php foreach ($station_profile->result() as $station) { ?>
|
||||
<option value="<?php echo $station->station_id; ?>"><?php echo lang('gen_hamradio_callsign') . ": "; ?><?php echo $station->station_callsign; ?> (<?php echo $station->station_profile_name; ?>)</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-lg-6">
|
||||
<div class="form-group">
|
||||
<label for="operator">Operator <span class="text-muted input-example">e.g.
|
||||
OK2CQR</span></label>
|
||||
<input type="text" class="form-control text-uppercase" id="operator">
|
||||
<input type="text" class="form-control text-uppercase" id="operator" value="<?php echo $this->session->userdata('operator_callsign'); ?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ function handleInput() {
|
|||
|
||||
var operator = $("#operator").val();
|
||||
operator = operator.toUpperCase();
|
||||
var ownCallsign = $("#my-call").val().toUpperCase();
|
||||
var ownCallsign = $("#station-call").val().toUpperCase();
|
||||
ownCallsign = ownCallsign.toUpperCase();
|
||||
|
||||
var extraQsoDate = qsodate;
|
||||
|
|
@ -251,7 +251,7 @@ function handleInput() {
|
|||
$("#qsoTable > tbody:last-child").append(tableRow);
|
||||
|
||||
localStorage.setItem("tabledata", $("#qsoTable").html());
|
||||
localStorage.setItem("my-call", $("#my-call").val());
|
||||
localStorage.setItem("my-call", $("#station-call").val());
|
||||
localStorage.setItem("operator", $("#operator").val());
|
||||
localStorage.setItem("my-sota-wwff", $("#my-sota-wwff").val());
|
||||
localStorage.setItem("qso-area", $(".qso-area").val());
|
||||
|
|
@ -282,8 +282,8 @@ function handleInput() {
|
|||
}
|
||||
|
||||
function checkMainFieldsErrors() {
|
||||
if ($("#my-call").val() === "") {
|
||||
addErrorMessage("'My call' field is empty!");
|
||||
if ($("#station-call").val() === '-') {
|
||||
addErrorMessage("'Station Call' is not selected!");
|
||||
}
|
||||
|
||||
if ($("#operator").val() === "") {
|
||||
|
|
@ -331,7 +331,7 @@ $(".js-empty-qso").click(function () {
|
|||
$("#qsodate").val("");
|
||||
$("#qsoTable tbody").empty();
|
||||
$("#my-sota-wwff").val("");
|
||||
$("#my-call").val("");
|
||||
$("#station-call").val("");
|
||||
$("#operator").val("");
|
||||
$(".qso-area").val("");
|
||||
$("#my-grid").val("");
|
||||
|
|
@ -444,7 +444,7 @@ $(".js-band-settings").html(htmlSettings);
|
|||
$(".js-download-adif").click(function () {
|
||||
var operator = $("#operator").val();
|
||||
operator = operator.toUpperCase();
|
||||
var ownCallsign = $("#my-call").val().toUpperCase();
|
||||
var ownCallsign = $("#station-call").val().toUpperCase();
|
||||
ownCallsign = ownCallsign.toUpperCase();
|
||||
var mySotaWwff = $("#my-sota-wwff").val().toUpperCase();
|
||||
|
||||
|
|
@ -620,7 +620,7 @@ $(document).ready(function () {
|
|||
var myGrid = localStorage.getItem("my-grid");
|
||||
|
||||
if (mycall != null) {
|
||||
$("#my-call").val(mycall);
|
||||
$("#station-call").val(mycall);
|
||||
}
|
||||
|
||||
if (operator != null) {
|
||||
|
|
|
|||
正在加载…
在新工单中引用