diff --git a/application/views/dashboard/index.php b/application/views/dashboard/index.php
index b23c8326..fa34de34 100644
--- a/application/views/dashboard/index.php
+++ b/application/views/dashboard/index.php
@@ -1,3 +1,18 @@
+'.$ctx->lang->line('gen_hamradio_mode').''; break;
+ case 'RSTS': echo '
'.$ctx->lang->line('gen_hamradio_rsts').' | '; break;
+ case 'RSTR': echo ''.$ctx->lang->line('gen_hamradio_rstr').' | '; break;
+ case 'Country': echo ''.$ctx->lang->line('general_word_country').' | '; break;
+ case 'IOTA': echo ''.$ctx->lang->line('gen_hamradio_iota').' | '; break;
+ case 'SOTA': echo ''.$ctx->lang->line('gen_hamradio_sota').' | '; break;
+ case 'State': echo ''.$ctx->lang->line('gen_hamradio_state').' | '; break;
+ case 'Grid': echo ''.$ctx->lang->line('gen_hamradio_gridsquare').' | '; break;
+ case 'Band': echo ''.$ctx->lang->line('gen_hamradio_band').' | '; break;
+ }
+}
+?>
config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
@@ -41,58 +56,10 @@
lang->line('gen_hamradio_call'); ?> |
';
- switch($this->session->userdata('user_column1')==""?'Mode':$this->session->userdata('user_column1')) {
- case 'Mode': echo $this->lang->line('gen_hamradio_mode'); break;
- case 'RSTS': echo $this->lang->line('gen_hamradio_rsts'); break;
- case 'RSTR': echo $this->lang->line('gen_hamradio_rstr'); break;
- case 'Country': echo $this->lang->line('general_word_country'); break;
- case 'IOTA': echo $this->lang->line('gen_hamradio_iota'); break;
- case 'SOTA': echo $this->lang->line('gen_hamradio_sota'); break;
- case 'State': echo $this->lang->line('gen_hamradio_state'); break;
- case 'Grid': echo $this->lang->line('gen_hamradio_gridsquare'); break;
- case 'Band': echo $this->lang->line('gen_hamradio_band'); break;
- }
- echo '' .
- '';
- switch($this->session->userdata('user_column2')==""?'RSTS':$this->session->userdata('user_column2')) {
- case 'Mode': echo $this->lang->line('gen_hamradio_mode'); break;
- case 'RSTS': echo $this->lang->line('gen_hamradio_rsts'); break;
- case 'RSTR': echo $this->lang->line('gen_hamradio_rstr'); break;
- case 'Country': echo $this->lang->line('general_word_country'); break;
- case 'IOTA': echo $this->lang->line('gen_hamradio_iota'); break;
- case 'SOTA': echo $this->lang->line('gen_hamradio_sota'); break;
- case 'State': echo $this->lang->line('gen_hamradio_state'); break;
- case 'Grid': echo $this->lang->line('gen_hamradio_gridsquare'); break;
- case 'Band': echo $this->lang->line('gen_hamradio_band'); break;
- }
- echo ' | ' .
- '';
- switch($this->session->userdata('user_column3')==""?'RSTR':$this->session->userdata('user_column3')) {
- case 'Mode': echo $this->lang->line('gen_hamradio_mode'); break;
- case 'RSTS': echo $this->lang->line('gen_hamradio_rsts'); break;
- case 'RSTR': echo $this->lang->line('gen_hamradio_rstr'); break;
- case 'Country': echo $this->lang->line('general_word_country'); break;
- case 'IOTA': echo $this->lang->line('gen_hamradio_iota'); break;
- case 'SOTA': echo $this->lang->line('gen_hamradio_sota'); break;
- case 'State': echo $this->lang->line('gen_hamradio_state'); break;
- case 'Grid': echo $this->lang->line('gen_hamradio_gridsquare'); break;
- case 'Band': echo $this->lang->line('gen_hamradio_band'); break;
- }
- echo ' | ' .
- '';
- switch($this->session->userdata('user_column4')==""?'Band':$this->session->userdata('user_column4')) {
- case 'Mode': echo $this->lang->line('gen_hamradio_mode'); break;
- case 'RSTS': echo $this->lang->line('gen_hamradio_rsts'); break;
- case 'RSTR': echo $this->lang->line('gen_hamradio_rstr'); break;
- case 'Country': echo $this->lang->line('general_word_country'); break;
- case 'IOTA': echo $this->lang->line('gen_hamradio_iota'); break;
- case 'SOTA': echo $this->lang->line('gen_hamradio_sota'); break;
- case 'State': echo $this->lang->line('gen_hamradio_state'); break;
- case 'Grid': echo $this->lang->line('gen_hamradio_gridsquare'); break;
- case 'Band': echo $this->lang->line('gen_hamradio_band'); break;
- }
- echo ' | ';
+ echo_table_header_col($this, $this->session->userdata('user_column1')==""?'Mode':$this->session->userdata('user_column1'));
+ echo_table_header_col($this, $this->session->userdata('user_column2')==""?'RSTS':$this->session->userdata('user_column2'));
+ echo_table_header_col($this, $this->session->userdata('user_column3')==""?'RSTR':$this->session->userdata('user_column3'));
+ echo_table_header_col($this, $this->session->userdata('user_column4')==""?'Band':$this->session->userdata('user_column4'));
?>