Преглед на файлове

兰山区、罗庄区、河东区高新区、沂河新区,郑城县、兰陵县、沂水县、沂南县、费县、平邑县、蒙阴县、营南县、临述具各县区
会员数量

qifengquan преди 1 година
родител
ревизия
4caf3fda04
променени са 2 файла, в които са добавени 112 реда и са изтрити 1 реда
  1. 28 1
      application/admin/controller/Index.php
  2. 84 0
      application/admin/view/index/main.html

+ 28 - 1
application/admin/controller/Index.php

@@ -73,6 +73,20 @@ class Index extends Controller
         $nan_count = Db::name('store_member')->where('sex',1)->count('id');
         $nv_count = Db::name('store_member')->where('sex',2)->count('id');
 
+        $lanshan_count = Db::name('store_member')->where('area_id',1480)->count('id');
+        $luozhuang_count = Db::name('store_member')->where('area_id',1481)->count('id');
+        $hedong_count = Db::name('store_member')->where('area_id',1482)->count('id');
+        $yinan_count = Db::name('store_member')->where('area_id',1483)->count('id');
+        $tancheng_count = Db::name('store_member')->where('area_id',1484)->count('id');
+        $yishui_count = Db::name('store_member')->where('area_id',1485)->count('id');
+        $lanling_count = Db::name('store_member')->where('area_id',1486)->count('id');
+        $fei_count = Db::name('store_member')->where('area_id',1487)->count('id');
+        $pingyi_count = Db::name('store_member')->where('area_id',1488)->count('id');
+        $junan_count = Db::name('store_member')->where('area_id',1489)->count('id');
+        $mengyin_count = Db::name('store_member')->where('area_id',1490)->count('id');
+        $linshu_count = Db::name('store_member')->where('area_id',1491)->count('id');
+
+
         //男女学历统计
         $a1 = Db::name('store_member')->where('sex',1)->where('education','=','高中')->count();
         $b1= Db::name('store_member')->where('sex',2)->where('education','=','高中')->count();
@@ -147,11 +161,24 @@ class Index extends Controller
                 'benke' => "['本科',$a3,$b3]",
                 'shuoshi' => "['硕士',$a4,$b4]",
                 'boshi' => "['博士',$a5,$b5]",
-                'count'=>$weeek_regiz
+                'count'=>$weeek_regiz,
+                'lanshan_count'=>$lanshan_count,
+                'luozhuang_count'=>$luozhuang_count,
+                'hedong_count'=>$hedong_count,
+                'yinan_count'=>$yinan_count,
+                'tancheng_count'=>$tancheng_count,
+                'yishui_count'=>$yishui_count,
+                'lanling_count'=>$lanling_count,
+                'fei_count'=>$fei_count,
+                'pingyi_count'=>$pingyi_count,
+                'junan_count'=>$junan_count,
+                'mengyin_count'=>$mengyin_count,
+                'linshu_count'=>$linshu_count,
 
             ]);
 
 
+
     }
     public function tongji(){
         $this->fetch('tongji');

+ 84 - 0
application/admin/view/index/main.html

@@ -71,6 +71,90 @@
             </div>
             <i class="store-total-icon layui-icon layui-icon-template-1"></i>
         </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>兰山区会员数量</div>
+                <div>{$lanshan_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>罗庄区会员数量</div>
+                <div>{$luozhuang_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>河东区会员数量</div>
+                <div>{$hedong_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>兰陵县会员数量</div>
+                <div>{$lanling_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>郯城县会员数量</div>
+                <div>{$tancheng_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>沂水县会员数量</div>
+                <div>{$yishui_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>沂南县会员数量</div>
+                <div>{$yinan_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>费县会员数量</div>
+                <div>{$fei_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>平邑县会员数量</div>
+                <div>{$pingyi_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>蒙阴县会员数量</div>
+                <div>{$mengyin_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>莒南县会员数量</div>
+                <div>{$junan_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
+        <div class="layui-col-sm6 layui-col-md3">
+            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);width: 300px;height: 150px">
+                <div>临沭县会员数量</div>
+                <div>{$linshu_count}条</div>
+            </div>
+            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
+        </div>
     </div>
 </div>
 <div class="think-box-shadow store-total-container notselect">