-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalog.php
More file actions
37 lines (37 loc) · 1.34 KB
/
analog.php
File metadata and controls
37 lines (37 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
define('CURRENT_PAGE', 'analog');
require('fragments/header.php');
?>
<div class="well">
<p>This tool reads channel information from a frequency plan spreadsheet
and converts it into CSV files appropriate for use with either the Chirp
programming software or RT Systems programming software.</p>
</div>
<form method="GET" name="csvForm" id="csvForm">
<div class="row">
<div class="form-group col-sm-12">
<label for="plan">Frequency plan:</label>
<select name="plan" id="plan" class="form-control">
<?php
if (isset($sheetsData[JSON_FREQ_PLAN_ELEMENT])) {
foreach ($sheetsData[JSON_FREQ_PLAN_ELEMENT] as $key => $value) {
?> <option value="<?php echo $key; ?>"><?php echo $value['name']?></option>
<?php
}
}
?>
</select>
</div>
</div>
<div class="row">
<div class="form-group col-sm-offset-3 col-sm-3">
<input type="button" id="submitChirp" value="Generate Chirp File" class="form-control btn btn-primary" onclick="$('#csvForm').attr('action', 'chirp.php'); $('#csvForm').submit();"/>
</div>
<div class="form-group col-sm-3">
<input type="button" id="submitChirp" value="Generate RT Systems File" class="form-control btn btn-primary" onclick="$('#csvForm').attr('action', 'rtSystems.php'); $('#csvForm').submit();"/>
</div>
</div>
</form>
<?php
require('fragments/footer.php');
?>