[Dashboard] Added some warnings
这个提交包含在:
		
							父节点
							
								
									8e86ecb47e
								
							
						
					
					
						当前提交
						70504c5022
					
				
					共有  2 个文件被更改,包括 60 次插入 和 1 次删除
				
			
		| 
						 | 
					@ -0,0 +1,35 @@
 | 
				
			||||||
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class Setup_model extends CI_Model {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						function getCountryCount() {
 | 
				
			||||||
 | 
							$sql = 'select count(*) from dxcc_entities';
 | 
				
			||||||
 | 
					        $query = $this->db->query($sql);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $result = $query->result();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							return count($result);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						function getLogbookCount() {
 | 
				
			||||||
 | 
							$userid = xss_clean($this->session->userdata('user_id'));
 | 
				
			||||||
 | 
							$sql = 'select count(*) from station_logbooks where user_id =' . $userid;
 | 
				
			||||||
 | 
					        $query = $this->db->query($sql);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $result = $query->result();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							return count($result);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						function getLocationCount() {
 | 
				
			||||||
 | 
							$userid = xss_clean($this->session->userdata('user_id'));
 | 
				
			||||||
 | 
							$sql = 'select count(*) from station_profile where user_id =' . $userid;
 | 
				
			||||||
 | 
					        $query = $this->db->query($sql);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $result = $query->result();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							return count($result);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					?>
 | 
				
			||||||
| 
						 | 
					@ -49,6 +49,30 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) {
 | 
				
			||||||
<div class="container dashboard">
 | 
					<div class="container dashboard">
 | 
				
			||||||
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
 | 
					<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						<?php if (version_compare(PHP_VERSION, '7.4.0') <= 0) { ?>
 | 
				
			||||||
 | 
							<div class="alert alert-danger" role="alert">
 | 
				
			||||||
 | 
							You need to upgrade your PHP version. Minimum version is 7.4. Your version is <?php echo PHP_VERSION;?>
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
						<?php } ?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						<?php if ($countryCount == 0) { ?>
 | 
				
			||||||
 | 
							<div class="alert alert-danger" role="alert">
 | 
				
			||||||
 | 
							You need to update country files! Go <a href="<?php echo site_url('update'); ?>">here to do it!</a>
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
						<?php } ?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						<?php if ($locationCount == 0) { ?>
 | 
				
			||||||
 | 
							<div class="alert alert-danger" role="alert">
 | 
				
			||||||
 | 
							You have no station locations. Go <a href="<?php echo site_url('station'); ?>">here to create it!</a>
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
						<?php } ?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						<?php if ($logbookCount == 0) { ?>
 | 
				
			||||||
 | 
							<div class="alert alert-danger" role="alert">
 | 
				
			||||||
 | 
							You have no station logbook. Go <a href="<?php echo site_url('logbooks'); ?>">here to create it!</a>
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
						<?php } ?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	<?php if($this->optionslib->get_option('dashboard_banner') != "false") { ?>
 | 
						<?php if($this->optionslib->get_option('dashboard_banner') != "false") { ?>
 | 
				
			||||||
	<?php if($todays_qsos >= 1) { ?>
 | 
						<?php if($todays_qsos >= 1) { ?>
 | 
				
			||||||
		<div class="alert alert-success" role="alert">
 | 
							<div class="alert alert-success" role="alert">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		正在加载…
	
		在新工单中引用