当前提交
						44eee371d6
					
				
					共有  2 个文件被更改,包括 5 次插入 和 7 次删除
				
			
		|  | @ -47,7 +47,7 @@ class Dayswithqso_model extends CI_Model | ||||||
|             } |             } | ||||||
|             else if ($diff == 1 and !$firstrun) {   // If diff = 1, means that we are on a streak
 |             else if ($diff == 1 and !$firstrun) {   // If diff = 1, means that we are on a streak
 | ||||||
|                 $streaks['highstreak'] = ++$streak; |                 $streaks['highstreak'] = ++$streak; | ||||||
|                 $streaks['beginstreak'] = $datecurr->sub(new DateInterval('P'.($streak-1).'D'))->format('Y-m-d'); |                 $streaks['beginstreak'] = date_create($streaks['endstreak'])->sub(new DateInterval('P'.($streak-1).'D'))->format('Y-m-d'); | ||||||
|             } else { |             } else { | ||||||
|                 break; |                 break; | ||||||
|             } |             } | ||||||
|  | @ -84,10 +84,8 @@ class Dayswithqso_model extends CI_Model | ||||||
|             } |             } | ||||||
|             else if ($diff == 1 && $firstrun == false) { |             else if ($diff == 1 && $firstrun == false) { | ||||||
|                     $streaks['highstreak'] = $streak++; |                     $streaks['highstreak'] = $streak++; | ||||||
|                     $streaks['beginstreak'] = $datecurr->format('Y-m-d'); |                     $streaks['beginstreak'] = date_create($streaks['endstreak'])->sub(new DateInterval('P'.($streak-2).'D'))->format('Y-m-d'); | ||||||
|             } else { |             } else { | ||||||
|                 //$streaks['highstreak'] = $streak;
 |  | ||||||
|                 //$streaks['beginstreak'] = $datecurr->format('Y-m-d');
 |  | ||||||
|                 break; |                 break; | ||||||
|             } |             } | ||||||
|             $dateprev = date_create($date->date); |             $dateprev = date_create($date->date); | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ | ||||||
| 
 | 
 | ||||||
|     <?php |     <?php | ||||||
|     if (is_array($result)) { |     if (is_array($result)) { | ||||||
|     echo '<div id="diffDays" class="table-responsive"><table class="qsotable table table-bordered table-hover table-striped table-condensed">'; |     echo '<div id="diffDays" class="table-responsive"><table class="qsotable table table-sm table-bordered table-hover table-striped table-condensed">'; | ||||||
| 
 | 
 | ||||||
|             echo '<tr>'; |             echo '<tr>'; | ||||||
|                 echo '<th style=\'text-align: center\'>Year</th>'; |                 echo '<th style=\'text-align: center\'>Year</th>'; | ||||||
|  | @ -46,7 +46,7 @@ | ||||||
| 
 | 
 | ||||||
|     <?php |     <?php | ||||||
|     if (is_array($streaks)) { |     if (is_array($streaks)) { | ||||||
|         echo '<div id="streaks" class="table-responsive"><table class="qsotable table table-bordered table-hover table-striped table-condensed">'; |         echo '<div id="streaks" class="table-responsive"><table class="qsotable table table-sm table-bordered table-hover table-striped table-condensed">'; | ||||||
| 
 | 
 | ||||||
|             echo '<tr>'; |             echo '<tr>'; | ||||||
|                 echo '<th style=\'text-align: center\'>Streak (Continues days with QSOs)</th>'; |                 echo '<th style=\'text-align: center\'>Streak (Continues days with QSOs)</th>'; | ||||||
|  | @ -74,7 +74,7 @@ | ||||||
|     <h2>Current streak with QSOs in the log</h2> |     <h2>Current streak with QSOs in the log</h2> | ||||||
|     <?php |     <?php | ||||||
|     if (is_array($currentstreak)) { |     if (is_array($currentstreak)) { | ||||||
|         echo '<div id="streaks" class="table-responsive"><table class="qsotable table table-bordered table-hover table-striped table-condensed">'; |         echo '<div id="streaks" class="table-responsive"><table class="qsotable table table-sm table-bordered table-hover table-striped table-condensed">'; | ||||||
| 
 | 
 | ||||||
|         echo '<tr>'; |         echo '<tr>'; | ||||||
|         echo '<th style=\'text-align: center\'>Current Streak (Continues days with QSOs)</th>'; |         echo '<th style=\'text-align: center\'>Current Streak (Continues days with QSOs)</th>'; | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用