|
|
@ -62,6 +62,10 @@ class SocietyInfoController extends ThinkController
|
|
|
|
$count = $query->count();
|
|
|
|
$count = $query->count();
|
|
|
|
if($is_export){
|
|
|
|
if($is_export){
|
|
|
|
$parseData = $query->field("*")->select();
|
|
|
|
$parseData = $query->field("*")->select();
|
|
|
|
|
|
|
|
foreach ($parseData as &$v) {
|
|
|
|
|
|
|
|
if ($v['is_potential'] == 1) $v['is_potential'] = "是";
|
|
|
|
|
|
|
|
else $v['is_potential'] = "否";
|
|
|
|
|
|
|
|
}
|
|
|
|
$this->assign('listData', $parseData);
|
|
|
|
$this->assign('listData', $parseData);
|
|
|
|
$GetData = $_GET;
|
|
|
|
$GetData = $_GET;
|
|
|
|
unset($GetData['export']);
|
|
|
|
unset($GetData['export']);
|
|
|
@ -223,6 +227,8 @@ class SocietyInfoController extends ThinkController
|
|
|
|
|
|
|
|
|
|
|
|
if ($_POST) {
|
|
|
|
if ($_POST) {
|
|
|
|
$save = I("post.");
|
|
|
|
$save = I("post.");
|
|
|
|
|
|
|
|
if ($save['province'] == "请选择省份") $save['province'] = '';
|
|
|
|
|
|
|
|
if ($save['city'] == "请选择城市") $save['city'] = '';
|
|
|
|
$save['create_time'] = time();
|
|
|
|
$save['create_time'] = time();
|
|
|
|
$save['update_time'] = time();
|
|
|
|
$save['update_time'] = time();
|
|
|
|
$save['communication_time'] = time();
|
|
|
|
$save['communication_time'] = time();
|
|
|
|