2021-08-12 19:17:18 +00:00
< div class = " container " >
< br >
< ? php if ( $this -> session -> flashdata ( 'message' )) { ?>
<!-- Display Message -->
< div class = " alert-message error " >
< p >< ? php echo $this -> session -> flashdata ( 'message' ); ?> </p>
</ div >
< ? php } ?>
< h2 >< ? php echo $page_title ; ?> </h2>
< div class = " card " >
< div class = " card-header " >
2022-01-05 22:43:54 +00:00
What are Station Logbooks
2021-08-12 19:17:18 +00:00
</ div >
< div class = " card-body " >
2022-01-05 22:43:04 +00:00
< p class = " card-text " > Station Logbooks allow you to group Station Locations , doing this allows you to see all the grouped locations across one session from the logbook areas to the analyics .</ p >
< p class = " card-text " > Great for when your operating in multiple locations but they are part of the same DXCC or VUCC Circle .</ p >
</ div >
</ div >
2021-08-12 19:17:18 +00:00
2022-01-05 22:43:04 +00:00
< div class = " card " style = " margin-top: 20px; " >
< div class = " card-header " >
Station Locations < a class = " btn btn-primary float-right " href = " <?php echo site_url('logbooks/create'); ?> " >< i class = " fas fa-plus " ></ i > Create a Station Logbook </ a >
</ div >
< div class = " " >
2021-08-12 19:17:18 +00:00
< ? php if ( $my_logbooks -> num_rows () > 0 ) { ?>
< div class = " table-responsive " >
2022-01-20 14:50:42 +00:00
< table id = " station_logbooks_table " class = " table table-striped " >
2021-08-12 19:17:18 +00:00
< thead >
< tr >
< th scope = " col " > Name </ th >
< th scope = " col " ></ th >
</ tr >
</ thead >
< tbody >
< ? php foreach ( $my_logbooks -> result () as $row ) { ?>
< tr >
< td >
< ? php echo $row -> logbook_name ; ?> <br>
</ td >
< td >
2021-09-07 17:07:48 +00:00
< ? php if ( $this -> session -> userdata ( 'active_station_logbook' ) != $row -> logbook_id ) { ?>
< a href = " <?php echo site_url('logbooks/set_active'). " / " . $row->logbook_id ; ?> " class = " btn btn-outline-primary btn-sm " > Set as Active Logbook </ a >
< ? php } ?>
2022-01-05 22:45:19 +00:00
< a href = " <?php echo site_url('logbooks/edit'). " / " . $row->logbook_id ; ?> " class = " btn btn-outline-primary btn-sm " >< i class = " fas fa-edit " ></ i > </ a >
2021-08-12 19:17:18 +00:00
2021-12-04 16:14:57 +00:00
< ? php if ( $this -> session -> userdata ( 'active_station_logbook' ) != $row -> logbook_id ) { ?>
2022-01-05 22:45:19 +00:00
< a href = " <?php echo site_url('Logbooks/delete'). " / " . $row->logbook_id ; ?> " class = " btn btn-danger btn-sm " onclick = " return confirm('Are you sure you want delete station profile <?php echo $row->logbook_name ; ?> this will delete all QSOs within this station logbook?'); " >< i class = " fas fa-trash-alt " ></ i ></ a >
2021-12-04 16:14:57 +00:00
< ? php } ?>
</ td >
2021-08-12 19:17:18 +00:00
</ tr >
< ? php } ?>
</ tbody >
< table >
</ div >
< ? php } ?>
</ div >
</ div >
</ div >