Changed interface elements to Bootstrap 4

这个提交包含在:
Peter Goodhall 2019-01-09 15:18:46 +00:00
父节点 04981ac6d3
当前提交 9c2959779b
共有 13 个文件被更改,包括 587 次插入522 次删除

查看文件

@ -50,11 +50,11 @@ class API extends CI_Controller {
$data['api_keys'] = $this->api_model->keys();
$data['page_title'] = "API Help";
$data['page_title'] = "API Options";
$this->load->view('layout/header', $data);
$this->load->view('interface_assets/header', $data);
$this->load->view('api/help');
$this->load->view('layout/footer');
$this->load->view('interface_assets/footer');
}
function generate($rights) {

查看文件

@ -24,9 +24,9 @@ class Station extends CI_Controller {
// Render Page
$data['page_title'] = "Station Profiles";
$this->load->view('layout/header', $data);
$this->load->view('interface_assets/header', $data);
$this->load->view('station_profile/index');
$this->load->view('layout/footer');
$this->load->view('interface_assets/footer');
}
public function create()
@ -43,9 +43,9 @@ class Station extends CI_Controller {
if ($this->form_validation->run() == FALSE)
{
$data['page_title'] = "Create Station Profile";
$this->load->view('layout/header', $data);
$this->load->view('interface_assets/header', $data);
$this->load->view('station_profile/create');
$this->load->view('layout/footer');
$this->load->view('interface_assets/footer');
}
else
{

查看文件

@ -12,9 +12,9 @@ class User extends CI_Controller {
$data['page_title'] = "Users";
$this->load->view('layout/header', $data);
$this->load->view('interface_assets/header', $data);
$this->load->view('user/main');
$this->load->view('layout/footer');
$this->load->view('interface_assets/footer');
}
function add() {
@ -40,7 +40,7 @@ class User extends CI_Controller {
{
$data['page_title'] = "Add User";
$this->load->view('layout/header', $data);
$this->load->view('interface_assets/header', $data);
if($this->input->post('user_name'))
{
$data['user_name'] = $this->input->post('user_name');
@ -56,7 +56,7 @@ class User extends CI_Controller {
} else {
$this->load->view('user/add', $data);
}
$this->load->view('layout/footer');
$this->load->view('interface_assets/footer');
}
else
{
@ -79,7 +79,7 @@ class User extends CI_Controller {
}
$data['page_title'] = "Users";
$this->load->view('layout/header', $data);
$this->load->view('interface_assets/header', $data);
$data['user_name'] = $this->input->post('user_name');
$data['user_email'] = $this->input->post('user_email');
$data['user_password'] = $this->input->post('user_password');
@ -89,7 +89,7 @@ class User extends CI_Controller {
$data['user_callsign'] = $this->input->post('user_callsign');
$data['user_locator'] = $this->input->post('user_locator');
$this->load->view('user/add');
$this->load->view('layout/footer');
$this->load->view('interface_assets/footer');
}
}
@ -119,7 +119,7 @@ class User extends CI_Controller {
{
$data['page_title'] = "Edit User";
$this->load->view('layout/header', $data);
$this->load->view('interface_assets/header', $data);
$q = $query->row();
$data['id'] = $q->user_id;
@ -221,7 +221,7 @@ class User extends CI_Controller {
}
$this->load->view('user/edit', $data);
$this->load->view('layout/footer');
$this->load->view('interface_assets/footer');
}
else
{
@ -250,7 +250,7 @@ class User extends CI_Controller {
}
$data['page_title'] = "Edit User";
$this->load->view('layout/header', $data);
$this->load->view('interface_assets/header', $data);
$data['user_name'] = $this->input->post('user_name');
$data['user_email'] = $this->input->post('user_email');
$data['user_password'] = $this->input->post('user_password');
@ -261,7 +261,7 @@ class User extends CI_Controller {
$data['user_locator'] = $this->input->post('user_locator');
$data['user_timezone'] = $this->input->post('user_timezone');
$this->load->view('user/edit');
$this->load->view('layout/footer');
$this->load->view('interface_assets/footer');
}
}
@ -278,9 +278,9 @@ class User extends CI_Controller {
$data['user_callsign'] = $q->user_callsign;
$data['user_locator'] = $q->user_locator;
$this->load->view('layout/header', $data);
$this->load->view('interface_assets/header', $data);
$this->load->view('user/profile');
$this->load->view('layout/footer');
$this->load->view('interface_assets/footer');
}
function delete() {
@ -297,9 +297,9 @@ class User extends CI_Controller {
if ($this->form_validation->run() == FALSE)
{
$this->load->view('layout/header', $data);
$this->load->view('interface_assets/header', $data);
$this->load->view('user/delete');
$this->load->view('layout/footer');
$this->load->view('interface_assets/footer');
}
else
{

查看文件

@ -1,56 +1,35 @@
<div id="container">
<h2>API</h2>
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript">
$(document).ready(function() {
$(".qsobox").fancybox({
'width' : '75%',
'height' : '50%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
});
</script>
<div class="container">
<br>
<?php if($this->session->flashdata('notice')) { ?>
<div id="message" >
<?php echo $this->session->flashdata('notice'); ?>
</div>
<?php } ?>
<h3>API Keys</h3>
<div class="card">
<div class="card-header">
<?php echo $page_title; ?>
</div>
<div class="card-body">
<h5 class="card-title">API or Application Programming Interface lets third party systems access Cloudlog</h5>
<p class="card-text">You will need to generate API keys if you wish to use tools like CloudlogCAT.</p>
<?php if ($api_keys->num_rows() > 0) { ?>
<table>
<?php if ($api_keys->num_rows() > 0) { ?>
<table class="table table-striped">
<thead>
<tr>
<td>API Key</td>
<td>Rights</td>
<td>Status</td>
<th scope="col">API Key</th>
<th scope="col">Rights</th>
<th scope="col">Status</th>
</tr>
</thead>
<tbody>
<?php foreach ($api_keys->result() as $row) { ?>
<tr>
<td><?php echo $row->key; ?></td>
<td>
<?php
if($row->rights == "rw") {
@ -64,32 +43,24 @@
?>
</td>
<td><?php echo ucfirst($row->status); ?> - <a href="<?php echo site_url('/api/validate/key='.$row->key.']'); ?>">Test</td>
<td><span class="btn btn-outline-primary btn-sm"><?php echo ucfirst($row->status); ?></span> - <a href="<?php echo site_url('/api/validate/key='.$row->key.']'); ?>" class="btn btn-success btn-sm">Test</td>
</tr>
<?php } ?>
</table>
<?php } else { ?>
<?php } else { ?>
<p>You have no API Keys.</p>
<?php } ?>
<?php } ?>
<h4>Generate API Key</h4>
<p>
<a href="<?php echo site_url('api/generate/rw'); ?>" class="btn btn-outline-primary btn-sm">Generate Key with Read & Write Access</a>
<a href="<?php echo site_url('api/generate/r'); ?>" class="btn btn-outline-primary btn-sm">Generate Key with Read Only Access</a>
</p>
<ul>
<li><a href="<?php echo site_url('api/generate/rw'); ?>">Key with Read & Write Access</a></li>
<li><a href="<?php echo site_url('api/generate/r'); ?>">Key with Read Only Access</a></li>
</ul>
There are a number of API calls you can make from other applications, with output available in either XML or JSON.
<h3>API Guide</h3>
<h4>Description</h4>
Query the logbook, and output in XML format.
<h4>Syntax</h4>
<li><pre>/search/format=&lt;format&gt;/query=&lt;field&gt;&lt;=|~&gt;&lt;value&gt;{(and|or)...}/limit=&lt;num&gt;/fields=&lt;field1&gt;,{&lt;field2&gt;/order=&lt;field&gt;</pre>
<h4>Example</h4>
Search for entries with a call beginning with <b>M0</b> and a locator beginning with <b>I</b> or <b>J</b>, show the callsign and locator fields, order it by callsign and limit the results to <b>10</b>.
<li><pre>/search/format=xml/query=Call~M0*(and)(Locator~I*(or)Locator~J*)/limit=10/fields=distinct(Call),Locator/order=Call(asc)</pre>
<li><a href="<?php echo site_url('/api/search/format=xml/query=Call~M0*(and)(Locator~I*(or)Locator~J*)/limit=10/fields=distinct(Call),Locator/order=Call(asc)]'); ?>">Run it! (XML)</a> or <a href="<?php echo site_url('/api/search/format=json/query=Call~M0*(and)(Locator~I*(or)Locator~J*)/limit=10/fields=distinct(Call),Locator/order=Call(asc)'); ?>">Run it! (JSON)</a>
</div>
</div>
</div>

查看文件

@ -0,0 +1,16 @@
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script>
$(document).ready(function() {
$('#create_station_profile #country').val($("#dxcc_select option:selected").text());
$("#create_station_profile #dxcc_select" ).change(function() {
$('#country').val($("#dxcc_select option:selected").text());
});
});
</script>
</body>
</html>

查看文件

@ -0,0 +1,108 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<title><?php if(isset($page_title)) { echo $page_title; } ?> - Cloudlog</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="<?php echo site_url(); ?>">Cloudlog</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="<?php echo site_url('logbook');?>">Logbook</a>
<?php if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?>
<!-- QSO Menu Dropdown -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">QSO</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="<?php echo site_url('qso?manual=0');?>" title="Log Live QSOs">Live QSO</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('qso?manual=1');?>" title="Log QSO made in the past">Post QSO</a>
</div>
</li>
<!-- Notes -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Notes</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="<?php echo site_url('notes');?>" title="Notes">Notes</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('notes/add');?>" title="Create Note">Create Note</a>
</div>
</li>
<a class="nav-link" href="<?php echo site_url('statistics');?>">Statistics</a>
<a class="nav-link" href="<?php echo site_url('awards/dxcc');?>">Awards</a>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Admin</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="<?php echo site_url('user');?>" title="Accounts"><i class="fas fa-user"></i> Accounts</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('api/help');?>" title="API Interface"><i class="fas fa-key"></i> API</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('station');?>" title="Station Profiles"><i class="fas fa-home"></i> Station Profiles</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('radio');?>" title="External Radios"><i class="fas fa-broadcast-tower"></i> Radio Interface</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="" title="ADIF Import/Export"><i class="fas fa-sync"></i> ADIF Import/Export</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="" title="LoTW Import/Export"><i class="fas fa-sync"></i> LoTW Import/Export</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="" title="eQSL Import/Export"><i class="fas fa-sync"></i> eQSL Import/Export</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('backup');?>" title="Backup Cloudlog"><i class="fas fa-save"></i> Backup</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('backup');?>" title="Update Country Files"><i class="fas fa-sync"></i> Update Country Files</a>
</div>
</li>
<form method="post" action="<?php echo site_url('search'); ?>" class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" name="callsign" placeholder="Search Callsign" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit"><i class="fas fa-search"></i> Search</button>
</form>
<!-- Logged in As -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Logged in as <?php echo $this->session->userdata('user_callsign'); ?></a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="<?php echo site_url('user/profile');?>" title="Profile">Profile</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('user/logout');?>" title="Logout">Logout</a>
</div>
</li>
<?php } ?>
</li>
</ul>
<?php if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?>
<!-- Logged in Content-->
<?php } else { ?>
<!-- Not Logged In-->
<form method="post" action="<?php echo site_url('user/login'); ?>" class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="text" name="user_name" placeholder="Username" aria-label="Username">
<input class="form-control mr-sm-2" type="password" name="user_password" placeholder="Password" aria-label="Password">
<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" />
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Login</button>
</form>
<?php } ?>
</div>
</nav>

查看文件

@ -1,101 +1,106 @@
<div id="container">
<h2><?php echo $page_title; ?></h2>
<div class="container" id="create_station_profile">
<br>
<?php if($this->session->flashdata('message')) { ?>
<!-- Display Message -->
<div class="alert-message error">
<p><?php echo $this->session->flashdata('message'); ?></p>
</div>
<?php } ?>
<div class="card">
<div class="card-header">
<?php echo $page_title; ?>
</div>
<div class="card-body">
<h5 class="card-title"></h5>
<p class="card-text"></p>
<?php if($this->session->flashdata('notice')) { ?>
<div id="message" >
<?php echo $this->session->flashdata('notice'); ?>
</div>
<?php } ?>
<?php
$this->load->helper('form');
<?php $this->load->helper('form'); ?>
?>
<?php echo validation_errors(); ?>
<form method="post" action="<?php echo site_url('station/create'); ?>" name="create_profile">
<div class="form-group">
<label for="stationNameInput">Station Name</label>
<input type="text" class="form-control" name="station_profile_name" id="stationNameInput" aria-describedby="stationNameInputHelp" placeholder="Home QTH" required>
<small id="stationNameInputHelp" class="form-text text-muted">Shortname for the station location for example Home (IO87IP)</small>
</div>
<table>
<tr>
<td>Station Profile Name</td>
<td><input type="text" name="station_profile_name" value="" required /></td>
</tr>
<div class="form-group">
<label for="stationCallsignInput">Station Callsign</label>
<input type="text" class="form-control" name="station_callsign" id="stationCallsignInput" aria-describedby="stationCallsignInputHelp" placeholder="2M0SQL" required>
<small id="stationCallsignInputHelp" class="form-text text-muted">Station Callsign for example 2M0SQL/P</small>
</div>
<tr>
<td>Station Callsign</td>
<td><input type="text" name="station_callsign" value="" required /></td>
</tr>
<tr>
<td>DXCC # For Country</td>
<td>
<div class="form-group">
<label for="stationDXCCInput">Station DXCC</label>
<?php if ($dxcc_list->num_rows() > 0) { ?>
<select id="dxcc_select" name="dxcc">
<select class="form-control" id="dxcc_select" name="dxcc" aria-describedby="stationCallsignInputHelp">
<?php foreach ($dxcc_list->result() as $dxcc) { ?>
<option value="<?php echo $dxcc->adif; ?>"><?php echo $dxcc->name; ?></option>
<?php } ?>
</select>
<?php } ?>
<input type="hidden" id="country" name="station_country" value="" required />
<small id="stationDXCCInputHelp" class="form-text text-muted">Station DXCC</small>
</div>
</td>
</tr>
<div class="form-group">
<label for="stationCityInput">Station City</label>
<input type="text" class="form-control" name="city" id="stationCityInput" aria-describedby="stationCityInputHelp" required>
<small id="stationCityInputHelp" class="form-text text-muted">Station City for example Inverness</small>
</div>
<script>
$( document ).ready(function() {
$('#country').val($("#dxcc_select option:selected").text());
<div class="form-group">
<label for="stationCntyInput">Station Cnty</label>
<input type="text" class="form-control" name="station_cnty" id="stationCntyInput" aria-describedby="stationCntyInputHelp">
<small id="stationCntyInputHelp" class="form-text text-muted">Station Cnty #get def from ADIF Spec#</small>
</div>
$( "#dxcc_select" ).change(function() {
$('#country').val($("#dxcc_select option:selected").text());
});
});
<div class="form-group">
<label for="stationCQZoneInput">CQ Zone</label>
<input type="text" class="form-control" name="station_cq" id="stationCQZoneInput" aria-describedby="stationCQInputHelp" required>
<small id="stationCQInputHelp" class="form-text text-muted">If you do not know your CQ Zone <a href="http://www4.plala.or.jp/nomrax/CQ/" target="_blank">click Here to find it!</a></small>
</div>
</script>
<div class="form-group">
<label for="stationITUZoneInput">ITU Zone</label>
<input type="text" class="form-control" name="station_itu" id="stationITUZoneInput" aria-describedby="stationITUInputHelp" required>
<small id="stationITUInputHelp" class="form-text text-muted">If you do not know your ITU Zone <a href="http://www4.plala.or.jp/nomrax/ITU/" target="_blank">click Here to find it!</a></small>
</div>
<tr>
<td>City</td>
<td><input type="text" name="city" value="" required /></td>
</tr>
<div class="form-group">
<label for="stationGridsquareInput">Gridsquare</label>
<input type="text" class="form-control" name="gridsquare" id="stationGridsquareInput" aria-describedby="stationGridInputHelp" required>
<small id="stationGridInputHelp" class="form-text text-muted">Station Gridsquare for example IO87IP, if you are at a gridline enter the gridsquare with a comma for example IO77,IO78,IO87,IO88.</small>
</div>
<tr>
<td>Country</td>
<td><input type="text" id="country" name="station_country" value="" required />
</td>
</tr>
<div class="form-group">
<label for="stationIOTAInput">IOTA Reference</label>
<input type="text" class="form-control" name="iota" id="stationIOTAInput" aria-describedby="stationIOTAInputHelp" placeholder="EU-005">
<small id="stationIOTAInputHelp" class="form-text text-muted">Station IOTA Reference for example EU-005.</small>
</div>
<tr>
<td>Cnty</td>
<td><input type="text" name="station_cnty" value="" /></td>
</tr>
<div class="form-group">
<label for="stationSOTAInput">SOTA Reference</label>
<input type="text" class="form-control" name="sota" id="stationSOTAInput" aria-describedby="stationSOTAInputHelp">
<small id="stationSOTAInputHelp" class="form-text text-muted">Station SOTA Reference.</small>
</div>
<tr>
<td>CQ Zone</td>
<td><input type="text" name="station_cq" value="" required/></td>
</tr>
<tr>
<td>ITU Zone</td>
<td><input type="text" name="station_itu" value="" required/></td>
</tr>
<tr>
<td>Gridsquare</td>
<td><input type="text" name="gridsquare" value="" required /></td>
</tr>
<tr>
<td>IOTA Reference</td>
<td><input type="text" name="iota" value="" /></td>
</tr>
<tr>
<td>SOTA Reference</td>
<td><input type="text" name="sota" value="" /></td>
</tr>
</table>
<div class="actions"><input class="btn primary" type="submit" value="Submit" /></div>
<button type="submit" class="btn btn-primary"><i class="fas fa-plus-square"></i> Create Station Profile</button>
</form>
</div>
</div>
<br>
</div>

查看文件

@ -1,8 +1,6 @@
<div id="container">
<h2><?php echo $page_title; ?></h2>
<p>Station Profiles define locations of operating positions, useful for portable operating or using a friends QTH.</p>
<div class="container">
<br>
<?php if($this->session->flashdata('message')) { ?>
<!-- Display Message -->
<div class="alert-message error">
@ -10,32 +8,33 @@
</div>
<?php } ?>
<div class="row show-grid">
<div class="span15">
<div class="card">
<div class="card-header">
<?php echo $page_title; ?>
</div>
<div class="card-body">
<h5 class="card-title">Lets Explore Operating Locations</h5>
<p class="card-text">Station Profiles define locations of operating positions, useful for portable operating or using a friends QTH.</p>
<!-- Display Radio Statuses -->
<table class="station_profiles">
<?php
<?php if ($stations->num_rows() > 0) { ?>
if ($stations->num_rows() > 0)
{
?>
<table class="table table-striped">
<thead>
<tr>
<td>Profile Name</td>
<td>Country</td>
<td>Gridsquare</td>
<td>City</td>
<td>IOTA</td>
<td>SOTA</td>
<td>Cnty</td>
<td>CQ</td>
<td>ITU</td>
<td></td>
<th scope="col">Profile Name</th>
<th scope="col">Country</th>
<th scope="col">Gridsquare</th>
<th scope="col">City</th>
<th scope="col">IOTA</th>
<th scope="col">SOTA</th>
<th scope="col">Cnty</th>
<th scope="col">CQ</th>
<th scope="col">ITU</th>
<th scope="col"></th>
</tr>
<?php
foreach ($stations->result() as $row)
{
?>
</thead>
<tbody>
<?php foreach ($stations->result() as $row) { ?>
<tr>
<td><?php echo $row->station_profile_name;?></td>
<td><?php echo $row->station_country;?></td>
@ -46,21 +45,16 @@
<td><?php echo $row->station_cnty;?></td>
<td><?php echo $row->station_cq;?></td>
<td><?php echo $row->station_itu;?></td>
<td><a href="<?php echo site_url('station/delete')."/".$row->station_id; ?>">Delete</a></td>
<td><a href="<?php echo site_url('station/delete')."/".$row->station_id; ?>" class="btn btn-danger"><i class="fas fa-trash-alt"></i> Delete</a></td>
</tr>
<?php
}
} else {
echo "<p>Nothing to show</p>";
}
?>
</table>
<a class="btn primary" href="<?php echo site_url('station/create'); ?>">Create Station Profile</a>
<?php } ?>
</tbody>
<table>
<?php } ?>
<p><a href="<?php echo site_url('station/create'); ?>" class="btn btn-primary"><i class="fas fa-plus"></i> Create a Station Location</a></p>
</div>
</div>
</div>
</div>

查看文件

@ -1,32 +1,33 @@
<div id="container">
<h2>Add user</h2>
<div class="container">
<br>
<?php if($this->session->flashdata('notice')) { ?>
<div id="message" >
<?php echo $this->session->flashdata('notice'); ?>
</div>
<?php } ?>
<?php
$this->load->helper('form');
<div class="card">
<div class="card-header">Create User Account</div>
<div class="card-body">
<h5 class="card-title"></h5>
<p class="card-text"></p>
?>
<?php echo validation_errors(); ?>
<?php $this->load->helper('form'); ?>
<?php echo validation_errors(); ?>
<form method="post" action="<?php echo site_url('user/add'); ?>" name="users">
<table>
<tr>
<td>Username</td>
<td><input type="text" name="user_name" value="<?php if(isset($user_name)) { echo $user_name; } ?>" />
<form method="post" action="<?php echo site_url('user/add'); ?>" name="users">
<div class="form-group">
<label>Username</label>
<input class="form-control" type="text" name="user_name" value="<?php if(isset($user_name)) { echo $user_name; } ?>" />
<?php if(isset($username_error)) { echo "<div class=\"small error\">".$username_error."</div>"; } ?>
</td>
</tr>
</div>
<tr>
<td>Level</td>
<td><select name="user_type">
<div class="form-group">
<label>User Role</label>
<select class="form-control" name="user_type">
<?php
$levels = $this->config->item('auth_level');
@ -35,60 +36,54 @@ $this->load->helper('form');
<option value="<?php echo $key; ?>" <?php if(isset($user_type)) { if($user_type == $key) { echo "selected=\"selected\""; } } ?>><?php echo $val; ?></option>
<?php } ?>
</select>
</td>
</tr>
</div>
<tr>
<td>E-mail</td>
<td><input type="text" name="user_email" value="<?php if(isset($user_email)) { echo $user_email; } ?>" />
<div class="form-group">
<label>Email Address</label>
<input class="form-control" type="text" name="user_email" value="<?php if(isset($user_email)) { echo $user_email; } ?>" />
<?php if(isset($email_error)) { echo "<div class=\"small error\">".$email_error."</div>"; } ?>
</td>
</tr>
</div>
<tr>
<td>Password</td>
<td><input type="password" name="user_password" value="<?php if(isset($user_password)) { echo $user_password; } ?>" />
<div class="form-group">
<label>Password</label>
<input class="form-control" type="password" name="user_password" value="<?php if(isset($user_password)) { echo $user_password; } ?>" />
<?php if(isset($password_error)) { echo "<div class=\"small error\">".$password_error."</div>"; } ?>
</td>
</tr>
</div>
<tr>
<td>First name</td>
<td><input type="text" name="user_firstname" value="<?php if(isset($user_firstname)) { echo $user_firstname; } ?>" />
<div class="form-group">
<label>First Name</label>
<input class="form-control" type="text" name="user_firstname" value="<?php if(isset($user_firstname)) { echo $user_firstname; } ?>" />
<?php if(isset($firstname_error)) { echo "<div class=\"small error\">".$firstname_error."</div>"; } ?>
</td>
</tr>
</div>
<tr>
<td>Last name</td>
<td><input type="text" name="user_lastname" value="<?php if(isset($user_lastname)) { echo $user_lastname; } ?>" />
<div class="form-group">
<label>Last Name</label>
<input class="form-control" type="text" name="user_lastname" value="<?php if(isset($user_lastname)) { echo $user_lastname; } ?>" />
<?php if(isset($lastname_error)) { echo "<div class=\"small error\">".$lastname_error."</div>"; } ?>
</td>
</tr>
</div>
<tr>
<td>Callsign</td>
<td><input type="text" name="user_callsign" value="<?php if(isset($user_callsign)) { echo $user_callsign; } ?>" />
<div class="form-group">
<label>Callsign</label>
<input class="form-control" type="text" name="user_callsign" value="<?php if(isset($user_callsign)) { echo $user_callsign; } ?>" />
<?php if(isset($callsign_error)) { echo "<div class=\"small error\">".$callsign_error."</div>"; } ?>
</td>
</tr>
</div>
<tr>
<td>Locator</td>
<td><input type="text" name="user_locator" value="<?php if(isset($user_locator)) { echo $user_locator; } ?>" />
<div class="form-group">
<label>Locator</label>
<input class="form-control" type="text" name="user_locator" value="<?php if(isset($user_locator)) { echo $user_locator; } ?>" />
<?php if(isset($locator_error)) { echo "<div class=\"small error\">".$locator_error."</div>"; } ?>
</td>
</tr>
</div>
<tr>
<td>Timezone</td>
<td><?php echo form_dropdown('user_timezone', $timezones, 0); ?></td>
</tr>
<div class="form-group">
<label>Timezone</label>
<?php echo form_dropdown('user_timezone', $timezones, 0); ?>
</div>
</table>
<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" />
<div class="actions"><input class="btn primary" type="submit" value="Submit" /></div>
<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" />
<button type="submit" class="btn btn-primary">Create Account</button>
</form>
</div>
</div>
</form>
</div>

查看文件

@ -1,18 +1,18 @@
<div id="container">
<div class="container">
<br>
<div class="card">
<div class="card-header">
Delete User Account <?php echo $user_name; ?>
</div>
<div class="card-body">
<h5 class="card-title"></h5>
<h2>Edit user</h2>
<div class="wrap_content user">
<?php echo validation_errors(); ?>
<form method="post" action="<?php echo site_url('user/delete')."/".$this->uri->segment(3); ?>" name="users">
<table>
<tr>
<td style="padding: 10px;">Are you sure you want to delete <?php echo $user_name; ?>?</td>
</tr>
</table>
<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" />
<div class="actions"><input class="btn primary" type="submit" value="Yes, delete this user" /> <a href="<?php echo site_url('user'); ?>">No, do not delete this user</a></div>
</form>
<p class="card-text">Are you sure you want to delete the user account <b><?php echo $user_name; ?></b>?</p>
<form method="post" action="<?php echo site_url('user/delete')."/".$this->uri->segment(3); ?>" name="users">
<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" />
<input class="btn btn-danger" type="submit" value="Yes, delete this user" /> <a href="<?php echo site_url('user'); ?>" class="btn btn-success">No, do not delete this user</a>
</form>
</div>
</div>
</div>

查看文件

@ -1,27 +1,35 @@
<div id="container">
<div class="container">
<h2>Edit user</h2>
<br>
<?php if($this->session->flashdata('message')) { ?>
<!-- Display Message -->
<div class="alert-message error">
<p><?php echo $this->session->flashdata('message'); ?></p>
</div>
<?php } ?>
<?php echo validation_errors(); ?>
<?php
<div class="card">
<div class="card-header">
Edit User
</div>
<div class="card-body">
<h5 class="card-title"></h5>
<p class="card-text"></p>
$this->load->helper('form');
<?php echo validation_errors(); ?>
<?php $this->load->helper('form'); ?>
?>
<form method="post" action="<?php echo site_url('user/edit')."/".$this->uri->segment(3); ?>" name="users">
<table>
<tr>
<td>Username</td>
<td><input type="text" name="user_name" value="<?php if(isset($user_name)) { echo $user_name; } ?>" />
<form method="post" action="<?php echo site_url('user/edit')."/".$this->uri->segment(3); ?>" name="users">
<div class="form-group">
<label>Username</label>
<input class="form-control" type="text" name="user_name" value="<?php if(isset($user_name)) { echo $user_name; } ?>" />
<?php if(isset($username_error)) { echo "<div class=\"small error\">".$username_error."</div>"; } ?>
</td>
</tr>
</div>
<tr>
<td>Level</td>
<td>
<div class="form-group">
<label>Level</label>
<?php if($this->session->userdata('user_type') == 99) { ?>
<select name="user_type">
<select class="form-control" name="user_type">
<?php
$levels = $this->config->item('auth_level');
@ -34,97 +42,96 @@ $this->load->helper('form');
$l = $this->config->item('auth_level');
echo $l[$user_type];
}?>
</td>
</tr>
</div>
<tr>
<td>E-mail</td>
<td><input type="text" name="user_email" value="<?php if(isset($user_email)) { echo $user_email; } ?>" />
<div class="form-group">
<label>Email</label>
<input class="form-control" type="text" name="user_email" value="<?php if(isset($user_email)) { echo $user_email; } ?>" />
<?php if(isset($email_error)) { echo "<div class=\"small error\">".$email_error."</div>"; } ?>
</td>
</tr>
</div>
<tr>
<td>Password</td>
<td><input type="password" name="user_password" />
<div class="form-group">
<label>Password</label>
<input class="form-control" type="password" name="user_password" />
<?php if(isset($password_error)) { echo "<div class=\"small error\">".$password_error."</div>"; } else { ?>
<div class="small">Leave blank to keep existing password</div></td>
<?php } ?>
</tr>
</div>
<tr>
<td>First name</td>
<td><input type="text" name="user_firstname" value="<?php if(isset($user_firstname)) { echo $user_firstname; } ?>" />
<div class="form-group">
<label>First name</label>
<input class="form-control" type="text" name="user_firstname" value="<?php if(isset($user_firstname)) { echo $user_firstname; } ?>" />
<?php if(isset($firstname_error)) { echo "<div class=\"small error\">".$firstname_error."</div>"; } else { ?>
<?php } ?>
</tr>
</div>
<tr>
<td>Last name</td>
<td><input type="text" name="user_lastname" value="<?php if(isset($user_lastname)) { echo $user_lastname; } ?>" />
<div class="form-group">
<label>Last name</label>
<input class="form-control" type="text" name="user_lastname" value="<?php if(isset($user_lastname)) { echo $user_lastname; } ?>" />
<?php if(isset($lastname_error)) { echo "<div class=\"small error\">".$lastname_error."</div>"; } else { ?>
<?php } ?>
</tr>
</div>
<tr>
<td>Callsign</td>
<td><input type="text" name="user_callsign" value="<?php if(isset($user_callsign)) { echo $user_callsign; } ?>" />
<div class="form-group">
<label>Callsign</label>
<input class="form-control" type="text" name="user_callsign" value="<?php if(isset($user_callsign)) { echo $user_callsign; } ?>" />
<?php if(isset($callsign_error)) { echo "<div class=\"small error\">".$callsign_error."</div>"; } else { ?>
<?php } ?>
</tr>
</div>
<tr>
<td>Locator</td>
<td><input type="text" name="user_locator" value="<?php if(isset($user_locator)) { echo $user_locator; } ?>" />
<div class="form-group">
<label>Locator</label>
<input class="form-control" type="text" name="user_locator" value="<?php if(isset($user_locator)) { echo $user_locator; } ?>" />
<?php if(isset($locator_error)) { echo "<div class=\"small error\">".$locator_error."</div>"; } else { ?>
<?php } ?>
</tr>
</div>
<tr>
<td>Timezone</td>
<td><?php echo form_dropdown('user_timezone', $timezones, $user_timezone); ?></td>
</tr>
<div class="form-group">
<label>Timezone</label>
<?php echo form_dropdown('user_timezone', $timezones, $user_timezone); ?>
</div>
<tr>
<td>Logbook of The World (LoTW) Username</td>
<td><input type="text" name="user_lotw_name" value="<?php if(isset($user_lotw_name)) { echo $user_lotw_name; } ?>" />
<div class="form-group">
<label>Logbook of The World (LoTW) Username</label>
<input class="form-control" type="text" name="user_lotw_name" value="<?php if(isset($user_lotw_name)) { echo $user_lotw_name; } ?>" />
<?php if(isset($userlotwname_error)) { echo "<div class=\"small error\">".$userlotwname_error."</div>"; } ?>
</td>
</tr>
</div>
<tr>
<td>Logbook of The World (LoTW) Password</td>
<td><input type="password" name="user_lotw_password" />
<div class="form-group">
<label>Logbook of The World (LoTW) Password</label>
<input class="form-control" type="password" name="user_lotw_password" />
<?php if(isset($lotwpassword_error)) { echo "<div class=\"small error\">".$lotwpassword_error."</div>"; } else { ?>
<div class="small">Leave blank to keep existing password</div></td>
<?php } ?>
</tr>
</div>
<tr>
<td>eQSL.cc Username</td>
<td><input type="text" name="user_eqsl_name" value="<?php if(isset($user_eqsl_name)) { echo $user_eqsl_name; } ?>" />
<?php if(isset($usereqslname_error)) { echo "<div class=\"small error\">".$usereqslname_error."</div>"; } ?>
</td>
</tr>
<div class="form-group">
<label>eQSL.cc Username</label>
<input class="form-control" type="password" name="user_lotw_password" />
<?php if(isset($lotwpassword_error)) { echo "<div class=\"small error\">".$lotwpassword_error."</div>"; } else { ?>
<div class="small">Leave blank to keep existing password</div></td>
<?php } ?>
</div>
<tr>
<td>eQSL.cc Password</td>
<td><input type="password" name="user_eqsl_password" />
<div class="form-group">
<label>eQSL.cc Password</label>
<input class="form-control" type="password" name="user_eqsl_password" />
<?php if(isset($eqslpassword_error)) { echo "<div class=\"small error\">".$eqslpassword_error."</div>"; } else { ?>
<div class="small">Leave blank to keep existing password</div></td>
<?php } ?>
</tr>
</div>
<tr>
<td>eQSL.cc QTH Nickname</td>
<td><input type="text" name="user_eqsl_qth_nickname" value="<?php if(isset($user_eqsl_qth_nickname)) { echo $user_eqsl_qth_nickname; } ?>" />
</td>
</tr>
<div class="form-group">
<label>eQSL.cc QTH Nickname</label>
<input class="form-control" type="text" name="user_eqsl_qth_nickname" value="<?php if(isset($user_eqsl_qth_nickname)) { echo $user_eqsl_qth_nickname; } ?>" />
</div>
</table>
<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" />
<div class="actions"><input class="btn primary" type="submit" value="Update profile" /></div>
<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" />
<button type="submit" class="btn btn-primary">Update Account</button>
</form>
</div>
</div>
</form>
</div>

查看文件

@ -1,48 +1,30 @@
<h2>Users</h2>
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript">
$(document).ready(function() {
$(".qsobox").fancybox({
'width' : '75%',
'height' : '50%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
});
</script>
<div id="container">
<h2>Cloudlog Users</h2>
<div class="row show-grid">
<div class="span13">
<div class="container">
<br>
<?php if($this->session->flashdata('notice')) { ?>
<div id="message" >
<?php echo $this->session->flashdata('notice'); ?>
</div>
<?php } ?>
<table class="users" width="100%">
<tr class="user_title titles">
<td>User</td>
<td>E-mail</td>
<td>Type</td>
<td>Options</td>
<div class="card">
<div class="card-header">
<?php echo $page_title; ?>
</div>
<div class="card-body">
<h5 class="card-title">Cloudlog Needs Users You make them here.</h5>
<p class="card-text"></p>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">User</th>
<th scope="col">E-mail</th>
<th scope="col">Type</th>
<th scope="col">Options</th>
</tr>
</thead>
<tbody>
<?php
@ -52,14 +34,17 @@
<td><a href="<?php echo site_url('user/edit')."/".$row->user_id; ?>"><?php echo $row->user_name; ?></a></td>
<td><?php echo $row->user_email; ?></td>
<td><?php $l = $this->config->item('auth_level'); echo $l[$row->user_type]; ?></td>
<td><a href="<?php echo site_url('user/edit')."/".$row->user_id; ?>">Edit</a> <a href="<?php echo site_url('user/delete')."/".$row->user_id; ?>">Delete</a></td>
<td><a href="<?php echo site_url('user/edit')."/".$row->user_id; ?>" class="btn btn-primary btn-sm"><i class="fas fa-user-edit"></i> Edit</a> <a href="<?php echo site_url('user/delete')."/".$row->user_id; ?>" class="btn btn-danger btn-sm"><i class="fas fa-user-minus"></i> Delete</a></td>
</tr>
<?php $i++; } ?>
</tbody>
</table>
</div>
<div class="span2 offset1">
<a class="btn primary" href="<?php echo site_url('user/add'); ?>">Add user</a>
</div>
<p>
<a class="btn btn-primary" href="<?php echo site_url('user/add'); ?>">Add user</a>
</p>
</div>
</div>
</div>

查看文件

@ -1,32 +1,15 @@
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<div class="container">
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<br>
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript">
$(document).ready(function() {
$(".qsobox").fancybox({
'width' : '75%',
'height' : '50%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
});
</script>
<div id="container">
<div class="wrap_content profile">
<h2><?php echo $this->session->userdata('user_name')."'s profile"; ?></h2>
<table class="profile">
<div class="card">
<div class="card-header">
<?php echo $this->session->userdata('user_name')."'s profile"; ?>
</div>
<div class="card-body">
<h5 class="card-title"></h5>
<p class="card-text"></p>
<table class="profile">
<tr>
<td width="100px">Username</td>
<td><?php if(isset($user_name)) { echo $user_name; } ?></td>
@ -63,9 +46,10 @@
</tr>
</table>
<div><a class="btn primary" href="<?php echo site_url('user/edit')."/".$this->session->userdata('user_id'); ?>">Edit profile</a></div>
</form>
<a class="btn btn-primary" href="<?php echo site_url('user/edit')."/".$this->session->userdata('user_id'); ?>">Edit profile</a>
</div>
</div>
</div>
</div>