Made UI improvements to ADIF functions area

这个提交包含在:
Peter Goodhall 2019-10-05 22:51:02 +01:00
父节点 22d67eeefc
当前提交 448fb61b93
共有 2 个文件被更改,包括 5 次插入58 次删除

查看文件

@ -5,12 +5,12 @@
<div class="card">
<div class="card-header">
<?php echo $page_title; ?>
<h5 class="card-title"><?php echo $page_title; ?></h5>
</div>
<div class="card-body">
<h5 class="card-title"></h5>
<p class="card-text">Please make sure there is no extra text at the top of the ADIF file as the import will fail.</p>
<div class="alert alert-danger" role="alert">Please make sure there is no extra text at the top of the ADIF file as the import will fail.</div>
<div class="card-body">
<?php if(isset($error)) { ?>
<div class="alert alert-danger" role="alert">
<?php echo $error; ?>
@ -41,7 +41,7 @@
<div class="card">
<div class="card-header">
ADIF Export
<h5 class="card-title">ADIF Export</h5>
</div>
<div class="alert alert-warning" role="alert">

查看文件

@ -1,53 +0,0 @@
<div id="container">
<h2>ADIF Export</h2>
<p>Exporting your log is simple you can either export the whole log or use the finer controls to set the date.</p>
<ul class="notes_list">
<li><a href="<?php echo site_url('adif/exportall'); ?>" title="Export All" target="_blank">Export All QSOs</a></li>
</ul>
<h3>Export Options</h3>
<form method="post" action="<?php echo site_url('adif/export_custom');?>" >
<table>
<tr>
<td>Start Date</td>
<td><input type="text" id="from" name="from"/></td>
</tr>
<tr>
<td>End Date</td>
<td><input type="text" id="to" name="to"/></td>
</tr>
<tr>
<td></td>
<td><input class="btn primary" type="submit" name="submit" value="Download" /></td>
</tr>
</table>
</form>
</div>
<script>
$(function() {
var dates = $( "#from, #to" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 1,
dateFormat: "yy-mm-dd",
onSelect: function( selectedDate ) {
var option = this.id == "from" ? "minDate" : "maxDate",
instance = $( this ).data( "datepicker" ),
date = $.datepicker.parseDate(
instance.settings.dateFormat ||
$.datepicker._defaults.dateFormat,
selectedDate, instance.settings );
dates.not( this ).datepicker( "option", option, date );
}
});
});
</script>