Cleaned up code formatting

这个提交包含在:
Peter Goodhall 2025-05-23 11:55:35 +01:00
父节点 a5cf402827
当前提交 d853963384
共有 9 个文件被更改,包括 239 次插入212 次删除

查看文件

@ -61,5 +61,3 @@
</div> </div>
</div> </div>
</div> </div>

查看文件

@ -296,27 +296,37 @@
<div class="card-body"> <div class="card-body">
<div class="mb-3"> <div class="mb-3">
<div class="form-check form-switch"> <div class="form-check form-switch">
<input name="user_dashboard_enable_dxpedition_card" class="form-check-input" type="checkbox" role="switch" id="DashboardUpcomingDXpeditionCheck" <?php if ($dashboard_upcoming_dx_card) { echo 'checked'; } ?>> <input name="user_dashboard_enable_dxpedition_card" class="form-check-input" type="checkbox" role="switch" id="DashboardUpcomingDXpeditionCheck" <?php if ($dashboard_upcoming_dx_card) {
echo 'checked';
} ?>>
<label class="form-check-label" for="DashboardUpcomingDXpeditionCheck">Enable Upcoming DXPedition Card</label> <label class="form-check-label" for="DashboardUpcomingDXpeditionCheck">Enable Upcoming DXPedition Card</label>
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input name="user_dashboard_enable_qslcards_card" class="form-check-input" type="checkbox" role="switch" id="DashboardQSLCardCheck" <?php if ($dashboard_qslcard_card) { echo 'checked'; } ?>> <input name="user_dashboard_enable_qslcards_card" class="form-check-input" type="checkbox" role="switch" id="DashboardQSLCardCheck" <?php if ($dashboard_qslcard_card) {
echo 'checked';
} ?>>
<label class="form-check-label" for="DashboardQSLCardCheck">Enable QSL Cards Card</label> <label class="form-check-label" for="DashboardQSLCardCheck">Enable QSL Cards Card</label>
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input name="user_dashboard_enable_eqslcards_card" class="form-check-input" type="checkbox" role="switch" id="DashboardeQSLCardCheck" <?php if ($dashboard_eqslcard_card) { echo 'checked'; } ?>> <input name="user_dashboard_enable_eqslcards_card" class="form-check-input" type="checkbox" role="switch" id="DashboardeQSLCardCheck" <?php if ($dashboard_eqslcard_card) {
echo 'checked';
} ?>>
<label class="form-check-label" for="DashboardeQSLCardCheck">Enable eQSL Cards Card</label> <label class="form-check-label" for="DashboardeQSLCardCheck">Enable eQSL Cards Card</label>
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input name="user_dashboard_enable_lotw_card" class="form-check-input" type="checkbox" role="switch" id="DashboardlotwCardCheck" <?php if ($dashboard_lotw_card) { echo 'checked'; } ?>> <input name="user_dashboard_enable_lotw_card" class="form-check-input" type="checkbox" role="switch" id="DashboardlotwCardCheck" <?php if ($dashboard_lotw_card) {
echo 'checked';
} ?>>
<label class="form-check-label" for="DashboardlotwCardCheck">Enable Logbook of the World Card</label> <label class="form-check-label" for="DashboardlotwCardCheck">Enable Logbook of the World Card</label>
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input name="user_dashboard_enable_vuccgrids_card" class="form-check-input" type="checkbox" role="switch" id="DashboardvuccgridsCardCheck" <?php if ($dashboard_vuccgrids_card) { echo 'checked'; } ?>> <input name="user_dashboard_enable_vuccgrids_card" class="form-check-input" type="checkbox" role="switch" id="DashboardvuccgridsCardCheck" <?php if ($dashboard_vuccgrids_card) {
echo 'checked';
} ?>>
<label class="form-check-label" for="DashboardvuccgridsCardCheck">Enable VUCC-Grids Card</label> <label class="form-check-label" for="DashboardvuccgridsCardCheck">Enable VUCC-Grids Card</label>
</div> </div>
</div> </div>
@ -1177,13 +1187,17 @@
<!-- Winkeyer --> <!-- Winkeyer -->
<div class="col-md"> <div class="col-md">
<div class="card"> <div class="card-header"><?php echo lang('account_winkeyer'); ?> <span class="badge text-bg-danger float-end"><?php echo lang('admin_experimental'); ?></span></div> <div class="card">
<div class="card-body"> <div class="mb-3"> <div class="card-header"><?php echo lang('account_winkeyer'); ?> <span class="badge text-bg-danger float-end"><?php echo lang('admin_experimental'); ?></span></div>
<div class="card-body">
<div class="mb-3">
<div class="form-check form-switch"> <div class="form-check form-switch">
<?php if (!isset($user_winkey)) { <?php if (!isset($user_winkey)) {
$user_winkey = '0'; $user_winkey = '0';
} ?> } ?>
<input name="user_winkey" class="form-check-input" type="checkbox" role="switch" id="user_winkeyer" value="1" <?php if ($user_winkey == 1) { echo 'checked'; } ?>> <input name="user_winkey" class="form-check-input" type="checkbox" role="switch" id="user_winkeyer" value="1" <?php if ($user_winkey == 1) {
echo 'checked';
} ?>>
<label class="form-check-label" for="user_winkeyer"><?php echo lang('account_winkeyer_enabled'); ?></label> <label class="form-check-label" for="user_winkeyer"><?php echo lang('account_winkeyer_enabled'); ?></label>
</div> </div>
</div> </div>
@ -1194,7 +1208,9 @@
<?php if (!isset($user_winkey_websocket)) { <?php if (!isset($user_winkey_websocket)) {
$user_winkey_websocket = '0'; $user_winkey_websocket = '0';
} ?> } ?>
<input name="user_winkey_websocket" class="form-check-input" type="checkbox" role="switch" id="user_winkey_websocket" value="1" <?php if (isset($user_winkey_websocket) && $user_winkey_websocket == 1) { echo 'checked'; } ?>> <input name="user_winkey_websocket" class="form-check-input" type="checkbox" role="switch" id="user_winkey_websocket" value="1" <?php if (isset($user_winkey_websocket) && $user_winkey_websocket == 1) {
echo 'checked';
} ?>>
<label class="form-check-label" for="user_winkey_websocket">Winkey Web Sockets</label> <label class="form-check-label" for="user_winkey_websocket">Winkey Web Sockets</label>
</div> </div>
</div> </div>

查看文件

@ -12,37 +12,50 @@
<table class="profile"> <table class="profile">
<tr> <tr>
<td width="100px">Username</td> <td width="100px">Username</td>
<td><?php if(isset($user_name)) { echo $user_name; } ?></td> <td><?php if (isset($user_name)) {
echo $user_name;
} ?></td>
</tr> </tr>
<tr> <tr>
<td>Level</td> <td>Level</td>
<td><?php $l = $this->config->item('auth_level'); echo $l[$user_type]; ?></td> <td><?php $l = $this->config->item('auth_level');
echo $l[$user_type]; ?></td>
</tr> </tr>
<tr> <tr>
<td>E-mail</td> <td>E-mail</td>
<td><?php if(isset($user_email)) { echo $user_email; } ?></td> <td><?php if (isset($user_email)) {
echo $user_email;
} ?></td>
</tr> </tr>
<tr> <tr>
<td>Callsign</td> <td>Callsign</td>
<td><?php if(isset($user_callsign)) { echo $user_callsign; } ?></td> <td><?php if (isset($user_callsign)) {
echo $user_callsign;
} ?></td>
</tr> </tr>
<tr> <tr>
<td>Gridsquare</td> <td>Gridsquare</td>
<td><?php if(isset($user_locator)) { echo $user_locator; } ?></td> <td><?php if (isset($user_locator)) {
echo $user_locator;
} ?></td>
</tr> </tr>
<tr> <tr>
<td>First name</td> <td>First name</td>
<td><?php if(isset($user_firstname)) { echo $user_firstname; } ?></td> <td><?php if (isset($user_firstname)) {
echo $user_firstname;
} ?></td>
</tr> </tr>
<tr> <tr>
<td>Last name</td> <td>Last name</td>
<td><?php if(isset($user_lastname)) { echo $user_lastname; } ?></td> <td><?php if (isset($user_lastname)) {
echo $user_lastname;
} ?></td>
</tr> </tr>
</table> </table>