Commit c6cfc833 authored by zhangkuanguang's avatar zhangkuanguang

芜湖放心看

parent 92540fe6
...@@ -408,7 +408,9 @@ class Sell extends MY_Controller { ...@@ -408,7 +408,9 @@ class Sell extends MY_Controller {
//var_dump($owner->getContractType()); //var_dump($owner->getContractType());
$data_page['ownerContractType'] = $owner->getContractType(); $data_page['ownerContractType'] = $owner->getContractType();
} }
$is_open_real_house = $this->config->item('is_open_real_house');
$data_page['is_show_real'] = $is_open_real_house;
//加载模板 //加载模板
$this->render_publish($data_page); $this->render_publish($data_page);
} }
...@@ -739,22 +741,7 @@ class Sell extends MY_Controller { ...@@ -739,22 +741,7 @@ class Sell extends MY_Controller {
if($real_house_set>0) if($real_house_set>0)
{ {
$url_manage = $this->sell_model->find_func_url('add'); $url_manage = $this->sell_model->find_func_url('add');
if(empty($_POST['buildingnum']) || empty($_POST['unitnum']) || empty($_POST['roomnum']) )
{
//echo "<script>alert('请先补充完整楼栋门牌信息'); history.go(-1);</script>";
//exit;
}
$this->load->model('real_house_model'); $this->load->model('real_house_model');
$num_real_num = $this->real_house_model->getUidRealHouseByOperate($fields_values, $uid,0);
if ($num_real_num > 0) {
//echo "<script>alert('已设置类似信息房源,请勿重复添加');history.go(-1);</script>";
//exit;
$this->jump($url_manage, '已设置类似信息房源,请勿重复添加',3000);
exit;
}
$realnum_limit =$this->broker_model->get_realnum_by_packageid($package_id); $realnum_limit =$this->broker_model->get_realnum_by_packageid($package_id);
$realHouseNum= $this->real_house_model->getUidRealHouseNum($uid); $realHouseNum= $this->real_house_model->getUidRealHouseNum($uid);
...@@ -762,8 +749,6 @@ class Sell extends MY_Controller { ...@@ -762,8 +749,6 @@ class Sell extends MY_Controller {
{ {
$this->jump($url_manage, '放心看标签数量已达上限,请先取消已勾选标签或升级您的套餐',3000); $this->jump($url_manage, '放心看标签数量已达上限,请先取消已勾选标签或升级您的套餐',3000);
exit; exit;
//$this->jump($url_manage, '真房源标签数量已达上限,请先取消已勾选标签或升级您的套餐', 3000);
//exit;
} }
} }
...@@ -985,15 +970,17 @@ class Sell extends MY_Controller { ...@@ -985,15 +970,17 @@ class Sell extends MY_Controller {
} }
if($real_house_set==1)
{
$this->load->model('real_house_model');
//房源操作原因是添加
$this->real_house_model->insertReal_House_Set_log2($uid, $house_id, 1,1);
}
if ($house_id) if ($house_id)
{ {
//设置放心看
$infotype = $fields_values['infotype'];
if(in_array($infotype,array(1,2))){
if($real_house_set){
$this->load->model('zsb_api_model');
$this->zsb_api_model->getRequrstData('setRealHouse',array('house_id'=>$house_id));
}
}
//判断房源价格是否在预警价格区间,仅对住宅类做判断 //判断房源价格是否在预警价格区间,仅对住宅类做判断
/*if ($fields_values['blockid'] && $fields_values['infotype']==1){ /*if ($fields_values['blockid'] && $fields_values['infotype']==1){
$_sell = $fields_values; $_sell = $fields_values;
...@@ -2180,7 +2167,6 @@ class Sell extends MY_Controller { ...@@ -2180,7 +2167,6 @@ class Sell extends MY_Controller {
$broker_info =$this->broker_model->get_broker_info(); $broker_info =$this->broker_model->get_broker_info();
$data_page['broker_starlevel'] = $broker_info['starlevel']; $data_page['broker_starlevel'] = $broker_info['starlevel'];
$data_page['real_status'] = $broker_info['real_status'];
//当天发布共获得多少成长值 //当天发布共获得多少成长值
$growthExpDayCount = new GrowthExpDayCount(); $growthExpDayCount = new GrowthExpDayCount();
...@@ -2231,13 +2217,17 @@ class Sell extends MY_Controller { ...@@ -2231,13 +2217,17 @@ class Sell extends MY_Controller {
$packageId = $this->user_arr['package_id']; $packageId = $this->user_arr['package_id'];
$realNumLimit =$this->broker_model->get_realnum_by_packageid($packageId); $realNumLimit =$this->broker_model->get_realnum_by_packageid($packageId);
$is_open_real_house = $this->config->item('is_open_real_house');
$data_page['realNumLimit'] = $realNumLimit; //套餐可发真房源数量 $realHouseNum = $this->real_house_model->getUidRealHouseNum($uid);
$infotype = $house_detail['infotype'];
$is_show_real = 0;
if($is_open_real_house && $realNumLimit >0 && $realHouseNum <=$realNumLimit && in_array($infotype,array(1,2))){
$is_show_real = 1;
}
$data_page['is_show_real'] = $is_show_real;
$this->load->model('real_house_model'); $this->load->model('real_house_model');
$data_page['realHouseNum']= $this->real_house_model->getUidRealHouseNum($uid); //经纪人 已发真房源数量
$data_page['balance']= $this->real_house_model->getBrokerRealHouseMoney($uid);//经纪人账号余额 $data_page['balance']= $this->real_house_model->getBrokerRealHouseMoney($uid);//经纪人账号余额
// print_r($data_page);die;
$this->render_publish($data_page); $this->render_publish($data_page);
} }
...@@ -2607,23 +2597,6 @@ class Sell extends MY_Controller { ...@@ -2607,23 +2597,6 @@ class Sell extends MY_Controller {
if($real_house_set>0) if($real_house_set>0)
{ {
if(empty($_POST['buildingnum']) || empty($_POST['unitnum']) || empty($_POST['roomnum']) )
{
//echo "<script>alert('请先补充完整楼栋门牌信息'); location.replace('/sell/modify/$house_id/');</script>";
//echo "<script>alert('请先补充完整楼栋门牌信息'); history.go(-1);</script>";
//exit;
}
$this->load->model('real_house_model');
$fields_values['blockid'] =$blockid;
$num_real_num = $this->real_house_model->getUidRealHouseByOperate($fields_values, $uid,$house_id);
if ($num_real_num > 0) {
$this->jump($url_manage, '已设置类似信息房源,请勿重复添加', 3000);
exit;
//$this->jump($url_manage, '已设置类似信息房源,请勿重复添加', 3000);
//exit;
}
$realnum_limit =$this->broker_model->get_realnum_by_packageid($package_id); $realnum_limit =$this->broker_model->get_realnum_by_packageid($package_id);
$realHouseNum= $this->real_house_model->getUidRealHouseNumExceptId($uid,$house_id); $realHouseNum= $this->real_house_model->getUidRealHouseNumExceptId($uid,$house_id);
...@@ -2637,25 +2610,20 @@ class Sell extends MY_Controller { ...@@ -2637,25 +2610,20 @@ class Sell extends MY_Controller {
} }
$this->load->model('real_house_model'); $this->load->model('real_house_model');
//取消vr绑定关系
$this->real_house_model->real_vr_option($uid,$house_id,$real_house_set,1);
$fields_values['is_real_house'] = $real_house_set; $fields_values['is_real_house'] = $real_house_set;
$isRealHouse =$this->real_house_model->getInfoByRowid($house_id); $isRealHouse =$this->real_house_model->getInfoByRowid($house_id);
$isRealHouseNew =$this->real_house_model->get_real_house_sell_info($house_id); $isRealHouseNew =$this->real_house_model->get_real_house_sell_info($house_id);
//print_r($isRealHouseNew[0]['is_real_house']);die; //print_r($isRealHouseNew[0]['is_real_house']);die;
//操作原因 //操作原因
$this->load->model('zsb_api_model');
if(($isRealHouseNew[0]['is_real_house']==0) && $real_house_set==1) { if(($isRealHouseNew[0]['is_real_house']==0) && $real_house_set==1) {
$this->real_house_model->insertReal_House_Set_log2($uid, $house_id, 1, 1);
$this->zsb_api_model->getRequrstData('setRealHouse',array('house_id'=>$house_id));
}elseif(($isRealHouseNew[0]['is_real_house']==1) && $real_house_set==0) }elseif(($isRealHouseNew[0]['is_real_house']==1) && $real_house_set==0)
{ {
$this->real_house_model->insertReal_House_Set_log2($uid, $house_id, 0,2); $this->zsb_api_model->getRequrstData('cancleRealHouse',array('house_id'=>$house_id));
} }
$fields_values['buildingnum'] =$this->input->post('buildingnum', true); $fields_values['buildingnum'] =$this->input->post('buildingnum', true);
$fields_values['unitnum'] =$this->input->post('unitnum', true); $fields_values['unitnum'] =$this->input->post('unitnum', true);
$fields_values['roomnum'] =$this->input->post('roomnum', true); $fields_values['roomnum'] =$this->input->post('roomnum', true);
......
...@@ -641,14 +641,14 @@ class real_house_model extends MY_Model ...@@ -641,14 +641,14 @@ class real_house_model extends MY_Model
public function getUidRealHouseNum($uid) public function getUidRealHouseNum($uid)
{ {
$sql = "SELECT id FROM sell where uid='$uid' and esta = 1 and is_real_house = 1"; $sql = "SELECT id FROM sell where uid='$uid' and esta = 1 and is_real_house = 1";
$result = $this->dbback->query($sql); $result = $this->db->query($sql);
return $result->num_rows; return $result->num_rows;
} }
public function getUidRealHouseNumExceptId($uid,$house_id) public function getUidRealHouseNumExceptId($uid,$house_id)
{ {
$sql = "SELECT id FROM sell where uid='$uid' and is_real_house = 1 and id!=$house_id"; $sql = "SELECT id FROM sell where uid='$uid' and is_real_house = 1 and id !={$house_id}";
$result = $this->dbback->query($sql); $result = $this->db->query($sql);
return $result->num_rows; return $result->num_rows;
} }
......
<?php <?php
header('Content-Type:text/html;charset=GB2312'); header('Content-Type:text/html;charset=GB2312');
if (isset($infotype)) { if (isset($infotype)) {
if (!isset($house_detail['baseservice'])) { if (!isset($house_detail['baseservice'])) {
$house_detail['baseservice'] = ''; $house_detail['baseservice'] = '';
} }
if ($infotype == 1) { if ($infotype == 1) {
//基础设施 //基础设施
$baseservice = array( $baseservice = array(
'管道煤气', '暖气', '电梯', '车位', '管道煤气', '暖气', '电梯', '车位',
'花园', '地下室', '阁楼', '露台', '阳光房' '花园', '地下室', '阁楼', '露台', '阳光房'
); );
} else if ($infotype == 2) { } else if ($infotype == 2) {
$baseservice = array( $baseservice = array(
'管道煤气', '暖气', '电梯', '车位', '管道煤气', '暖气', '电梯', '车位',
'花园', '地下室', '阁楼', '露台', '阳光房', '花园', '地下室', '阁楼', '露台', '阳光房',
'游泳池' '游泳池'
); );
//别墅类型 //别墅类型
if (!isset($house_detail['housekind'])) { if (!isset($house_detail['housekind'])) {
$house_detail['housekind'] = ''; $house_detail['housekind'] = '';
} }
} else if ($infotype == 3 || $infotype == 4) { } else if ($infotype == 3 || $infotype == 4) {
$baseservice = array( $baseservice = array(
'管道煤气', '暖气', '电梯', '车位', '管道煤气', '暖气', '电梯', '车位',
'卫生间' '卫生间'
); );
if ($infotype == 3) { if ($infotype == 3) {
//商业类型 //商业类型
$tradeclass = array('甲级', '乙级', '丙级'); $tradeclass = array('甲级', '乙级', '丙级');
} else { } else {
$tradeclass = array('住宅底商', '连家店', '商业街商铺', '购物中心/百货'); $tradeclass = array('住宅底商', '连家店', '商业街商铺', '购物中心/百货');
} }
//物业费 //物业费
if (!isset($house_detail['strata_fee'])) { if (!isset($house_detail['strata_fee'])) {
$house_detail['strata_fee'] = ''; $house_detail['strata_fee'] = '';
} else { } else {
$house_detail['strata_fee'] = floatval($house_detail['strata_fee']); $house_detail['strata_fee'] = floatval($house_detail['strata_fee']);
} }
if (!isset($house_detail['tradeclass'])) { if (!isset($house_detail['tradeclass'])) {
$house_detail['tradeclass'] = ''; $house_detail['tradeclass'] = '';
} }
} else if ($infotype == 5) { } else if ($infotype == 5) {
$baseservice = array( $baseservice = array(
'管道煤气', '暖气', '电梯', '车位', '管道煤气', '暖气', '电梯', '车位',
'卫生间' '卫生间'
); );
} }
?> ?>
<!--补充信息 开始--> <!--补充信息 开始-->
<div class="branchCommon radius5 " id="js_bcxx" style="margin:0;"> <div class="branchCommon radius5 " id="js_bcxx" style="margin:0;">
<div class="hd "> <div class="hd ">
<h3 class="h3">补充信息</h3> <h3 class="h3">补充信息</h3>
<?php <?php if($is_show_real){?>
// 真房源逻辑: 1. nj && 真房源数量 <= 最大真房源数 && 住宅类型的房源 && 放心看状态
// 2. 新增 || 修改 && 真房源标识 && 区域覆盖 <?php if(!$house_detail['id']): ?>
// edit by : wmc$infotype
if($_SERVER['HTTP_HOST']=='nj.zsb.house365.com' && isset($real_status) && $real_status && isset($realHouseNum) && isset($realNumLimit) && $realNumLimit >0 && $realHouseNum <=$realNumLimit && (!$infotype || $infotype <= 2)){?> <div class="fgInput zsbnum4 fxk" >
<?php if( <label for="jsAllcheckbox" class="textFg3 textFg5">
in_array($house_detail['district'],array('建邺区','雨花台区','秦淮区','栖霞区','鼓楼区','玄武区','江宁区','浦口区')) <input id="jsAllcheckbox" name="real_house_set" class="input_c" type="checkbox" value=0>
){ ?> <span class="tex">放心看</span>
<div class="fgInput zsbnum4 fxk" <?php if(!isset($house_detail['id'])){?> style="display: none;" <?php }?> > </label>
</div>
<?php else: ?>
<div class="fgInput zsbnum4 fxk" style="display: none;" >
<label for="jsAllcheckbox" class="textFg3 textFg5"> <label for="jsAllcheckbox" class="textFg3 textFg5">
<input id="jsAllcheckbox" name="real_house_set" class="input_c" type="checkbox" value=<?php echo $house_detail['is_real_house'];?> <?php if($house_detail['is_real_house']==1){?>checked<?php }?>> <input id="jsAllcheckbox" name="real_house_set" class="input_c" type="checkbox" value=<?php echo $house_detail['is_real_house'];?> <?php if($house_detail['is_real_house']==1){?>checked<?php }?>>
<span class="tex">放心看</span> <span class="tex">放心看</span>
</label> </label>
</div> </div>
<?php }?> <?php endif;?>
<?php if(!$house_detail['id']): ?>
<div class="fgInput zsbnum4 fxk" >
<label for="jsAllcheckbox" class="textFg3 textFg5">
<input id="jsAllcheckbox" name="real_house_set" class="input_c" type="checkbox" value=0>
<span class="tex">放心看</span>
</label>
</div>
<?php endif;?>
<?php }?> <?php }?>
<!--<div class="fgInput zsbnum_4 fxk">
<a target="_blank" href="http://zsb.house365.com/help/nj/?p=1373">放心看规则说明</a>
</div>-->
<div id="jsStitle" class="funSZ"> <div id="jsStitle" class="funSZ">
<p class="jsSQ funSZInner" title="收起" style="display: block;">收起</p> <p class="jsSQ funSZInner" title="收起" style="display: block;">收起</p>
...@@ -92,95 +82,95 @@ if (isset($infotype)) { ...@@ -92,95 +82,95 @@ if (isset($infotype)) {
<div class="modInner" > <div class="modInner" >
<div class="forms clearfix"> <div class="forms clearfix">
<dl class="list zsbnum clearfix fl"> <dl class="list zsbnum clearfix fl">
<?php if ($infotype == 6) { ?> <?php if ($infotype == 6) { ?>
<dd class="list_item clearfix" id="buildyearShow1"> <dd class="list_item clearfix" id="buildyearShow1">
<div style="height:29px;"> <div style="height:29px;">
<label class="label">建筑年代:</label> <label class="label">建筑年代:</label>
<div class="fields nameInput "> <div class="fields nameInput ">
<div class="fgInput jsNameInput jsFgInput"> <div class="fgInput jsNameInput jsFgInput">
<label for="jsNameInputN" class="labelPrev labelPrevN jslabelPrev">格式:2010</label> <label for="jsNameInputN" class="labelPrev labelPrevN jslabelPrev">格式:2010</label>
<?php <?php
if (!isset($house_detail['buildyear'])) { if (!isset($house_detail['buildyear'])) {
$house_detail['buildyear'] = ''; $house_detail['buildyear'] = '';
} }
if (intval($house_detail['buildyear']) <= 1000) { if (intval($house_detail['buildyear']) <= 1000) {
$house_detail['buildyear'] = ''; $house_detail['buildyear'] = '';
} }
?> ?>
<input type="text" class="input_text w215" id="jsNameInputN" name="buildyear1" value="<?= $house_detail['buildyear'] ?>" /> <input type="text" class="input_text w215" id="jsNameInputN" name="buildyear1" value="<?= $house_detail['buildyear'] ?>" />
</div>
<p class="textFg"></p>
<!--<div class="fgInput textFgErroy"></div>-->
</div> </div>
<p class="textFg"></p>
<!--<div class="fgInput textFgErroy"></div>-->
</div> </div>
</div> </dd>
</dd> <?php } ?>
<?php } ?>
<!--类型选择别墅显示--> <!--类型选择别墅显示-->
<?php if ($infotype == 2) { ?> <?php if ($infotype == 2) { ?>
<dd class="list_item clearfix"> <dd class="list_item clearfix">
<div style="height:29px;"> <div style="height:29px;">
<label class="label">别墅类型:</label> <label class="label">别墅类型:</label>
<div class="fields"> <div class="fields">
<div class="fgInput jsFgInput"> <div class="fgInput jsFgInput">
<div class="imitateSelect"> <div class="imitateSelect">
<label class="labelImitate">选择别墅类型</label> <label class="labelImitate">选择别墅类型</label>
<input type="text" readonly="" value="<?php echo $house_detail['housekind']; ?>" name="housekind" class="imitate imitateIe" style="width:210px"> <input type="text" readonly="" value="<?php echo $house_detail['housekind']; ?>" name="housekind" class="imitate imitateIe" style="width:210px">
<div class="listImitate zsbbieshu" style="display: none;"> <div class="listImitate zsbbieshu" style="display: none;">
<dl class="inner"> <dl class="inner">
<?php foreach ($house['villatype'] as $v) { ?> <?php foreach ($house['villatype'] as $v) { ?>
<dd><a href="#" class="link"><?= $v ?></a></dd> <dd><a href="#" class="link"><?= $v ?></a></dd>
<?php } ?> <?php } ?>
</dl> </dl>
</div>
</div> </div>
</div> </div>
</div>
<!--<div class="fgInput textFgErroy"></div>--> <!--<div class="fgInput textFgErroy"></div>-->
</div>
</div> </div>
</div> </dd>
</dd> <?php } ?>
<?php } ?> <?php if ($infotype == 3 || $infotype == 4) { ?>
<?php if ($infotype == 3 || $infotype == 4) { ?> <dd class="list_item clearfix">
<dd class="list_item clearfix"> <div style="height:29px;">
<div style="height:29px;"> <label class="label">商业分类:</label>
<label class="label">商业分类:</label> <div class="fields">
<div class="fields"> <div class="fgInput jsFgInput">
<div class="fgInput jsFgInput"> <div class="imitateSelect">
<div class="imitateSelect"> <label class="labelImitate">选择商业分类</label>
<label class="labelImitate">选择商业分类</label> <?php if ($infotype == 3) { ?>
<?php if ($infotype == 3) { ?> <input type="text" readonly="" value="<?= $house_detail['tradeclass'] ?>" name="tradeclass" class="imitate imitateIe" style="width: 210px;">
<input type="text" readonly="" value="<?= $house_detail['tradeclass'] ?>" name="tradeclass" class="imitate imitateIe" style="width: 210px;"> <div class="listImitate">
<div class="listImitate"> <dl class="inner">
<dl class="inner"> <?php foreach ($tradeclass as $v) { ?>
<?php foreach ($tradeclass as $v) { ?> <dd><a href="#" class="link"><?= $v ?></a></dd>
<dd><a href="#" class="link"><?= $v ?></a></dd> <?php } ?>
<?php } ?> </dl>
</dl> </div>
</div> <?php } else {?>
<?php } else {?> <input type="text" readonly="" value="<?= $house_detail['housekind'] ?>" name="housekind" class="imitate imitateIe" style="width: 210px;">
<input type="text" readonly="" value="<?= $house_detail['housekind'] ?>" name="housekind" class="imitate imitateIe" style="width: 210px;"> <div class="listImitate">
<div class="listImitate"> <dl class="inner">
<dl class="inner"> <?php foreach ($tradeclass as $v) { ?>
<?php foreach ($tradeclass as $v) { ?> <dd><a href="#" class="link"><?= $v ?></a></dd>
<dd><a href="#" class="link"><?= $v ?></a></dd> <?php } ?>
<?php } ?> </dl>
</dl> </div>
<?php } ?>
</div> </div>
<?php } ?>
</div> </div>
</div>
<!--<div class="fgInput textFgErroy"></div>--> <!--<div class="fgInput textFgErroy"></div>-->
</div>
</div> </div>
</div> </dd>
</dd> <?php } ?>
<?php } ?>
<?php <?php
//暂时不需要,先注释,防止以后释放 //暂时不需要,先注释,防止以后释放
if (/**$infotype != 6**/ false) { ?> if (/**$infotype != 6**/ false) { ?>
<dd class="list_item clearfix"> <dd class="list_item clearfix">
<div style="height:29px;"> <div style="height:29px;">
<label class="label">基础设施:</label> <label class="label">基础设施:</label>
<div class="fields" id="jsCheckboxBox"> <div class="fields" id="jsCheckboxBox">
<div class="fgInput"> <div class="fgInput">
...@@ -188,30 +178,30 @@ if (isset($infotype)) { ...@@ -188,30 +178,30 @@ if (isset($infotype)) {
<input id="jsAllcheckbox" class="input_c" type="checkbox" /> <input id="jsAllcheckbox" class="input_c" type="checkbox" />
<span class="tex">全选</span></label> <span class="tex">全选</span></label>
</div> </div>
<?php foreach ($baseservice as $v) { ?> <?php foreach ($baseservice as $v) { ?>
<div class="fgInput"> <div class="fgInput">
<label class="textFg3 textFg5"> <label class="textFg3 textFg5">
<input class="input_c" type="checkbox" name="baseservice[]" value="<?= $v ?>" <input class="input_c" type="checkbox" name="baseservice[]" value="<?= $v ?>"
<?php <?php
if (in_array($v, explode(',', $house_detail['baseservice']))) { if (in_array($v, explode(',', $house_detail['baseservice']))) {
echo "checked"; echo "checked";
} }
?>/> ?>/>
<span class="tex"> <span class="tex">
<?php <?php
if ($v == '管道煤气') { if ($v == '管道煤气') {
$v = '煤气/天然气'; $v = '煤气/天然气';
} }
echo $v; echo $v;
?> ?>
</span> </span>
</label> </label>
</div> </div>
<?php } ?> <?php } ?>
</div> </div>
</div> </div>
</dd> </dd>
<?php } ?> <?php } ?>
<dd class="list_item clearfix"> <dd class="list_item clearfix">
<div style="height:29px;"> <div style="height:29px;">
<label class="label">内部编号:</label> <label class="label">内部编号:</label>
...@@ -220,11 +210,11 @@ if (isset($infotype)) { ...@@ -220,11 +210,11 @@ if (isset($infotype)) {
<div class="fields nameInput"> <div class="fields nameInput">
<div class="fgInput jsNameInput jsFgInput"> <div class="fgInput jsNameInput jsFgInput">
<label for="ownid" class="labelPrev labelPrevN jslabelPrev"></label> <label for="ownid" class="labelPrev labelPrevN jslabelPrev"></label>
<?php <?php
if (!isset($house_detail['ownid'])) { if (!isset($house_detail['ownid'])) {
$house_detail['ownid'] = ''; $house_detail['ownid'] = '';
} }
?> ?>
<input type="text" id="ownid" name="ownid" class="input_text w215" value="<?php echo $house_detail['ownid']; ?>" /> <input type="text" id="ownid" name="ownid" class="input_text w215" value="<?php echo $house_detail['ownid']; ?>" />
</div> </div>
...@@ -233,7 +223,7 @@ if (isset($infotype)) { ...@@ -233,7 +223,7 @@ if (isset($infotype)) {
</div> </div>
</div> </div>
</div> </div>
</dd> </dd>
...@@ -254,7 +244,7 @@ if (isset($infotype)) { ...@@ -254,7 +244,7 @@ if (isset($infotype)) {
<dl class="list clearfix zsbnum fl"> <dl class="list clearfix zsbnum fl">
<?php if ($infotype == 3 || $infotype == 4) { ?> <?php if ($infotype == 3 || $infotype == 4) { ?>
<dd class="list_item clearfix"> <dd class="list_item clearfix">
<div style="height:29px;"> <div style="height:29px;">
<label class="label">物业费:</label> <label class="label">物业费:</label>
...@@ -267,7 +257,7 @@ if (isset($infotype)) { ...@@ -267,7 +257,7 @@ if (isset($infotype)) {
</div> </div>
</div> </div>
</dd> </dd>
<?php } ?> <?php } ?>
...@@ -296,11 +286,11 @@ if (isset($infotype)) { ...@@ -296,11 +286,11 @@ if (isset($infotype)) {
<div class="zsbnum1" id="jsPicPreviewBoxM10" style="display: none"> <div class="zsbnum1" id="jsPicPreviewBoxM10" style="display: none">
<div id="thumbnails10" class="cf"> <div id="thumbnails10" class="cf">
<?php if(!empty($p_filename_real)){?> <?php if(!empty($p_filename_real)){?>
<?php foreach($p_filename_real as $key =>$rs){?> <?php foreach($p_filename_real as $key =>$rs){?>
<div class="housepic"><img width="130" height="100" alt="" src="<?php echo $rs['filename'];?>"><input type="hidden" name="p_filename_real[]" value="<?php echo $rs['filename'];?>"><div class="funMtext"><div imagesrc="<?php echo $rs['filename'];?>" class="delBtn" id="<?php echo $key;?>" title="删除"></div></div></div> <div class="housepic"><img width="130" height="100" alt="" src="<?php echo $rs['filename'];?>"><input type="hidden" name="p_filename_real[]" value="<?php echo $rs['filename'];?>"><div class="funMtext"><div imagesrc="<?php echo $rs['filename'];?>" class="delBtn" id="<?php echo $key;?>" title="删除"></div></div></div>
<?php }?> <?php }?>
<?php }?> <?php }?>
...@@ -315,7 +305,7 @@ if (isset($infotype)) { ...@@ -315,7 +305,7 @@ if (isset($infotype)) {
</div> </div>
</div> </div>
</div></div> </div></div>
<?php } ?> <?php } ?>
<script type="text/javascript" > <script type="text/javascript" >
//收起 展开 jsStitle jsSmod //收起 展开 jsStitle jsSmod
function funSZ(hd, mod) { function funSZ(hd, mod) {
...@@ -332,31 +322,11 @@ if (isset($infotype)) { ...@@ -332,31 +322,11 @@ if (isset($infotype)) {
funSZ("jsPicDepotSZBtn", "jsPicDepotSZMod") funSZ("jsPicDepotSZBtn", "jsPicDepotSZMod")
funSZ("jsPicDepotSZBtn2", "jsPicDepotSZMod2") funSZ("jsPicDepotSZBtn2", "jsPicDepotSZMod2")
//补充信息全选
$("#jsAllcheckbox").click(function() {
if ($(this).attr("checked") == false || $(this).attr("checked") == undefined)
{
$("#jsAllcheckbox").val(0);
$("#jsCheckboxBox").find(".input_c").attr("checked", false)
}
else
{
$("input[type='checkbox']").attr('checked',false)
$("#dialogSaveDiv3").html("为避免您的放心看保证金受损,请您仔细核对并确认该套房源当前是否可售可看、价格是否为业主最新报价、房源信息填写是否准确(面积、税费、楼层、朝向、装修)、房源标题及描述与房源基本信息是否一致、房源图片及户型图与实际是否一致。");
openWin("dialog_rest");
}
})
</script> </script>
<script type='text/javascript'> <script type='text/javascript'>
function do_action() { function do_action() {
$("input[type='checkbox']").attr('checked',true); $("input[type='checkbox']").attr('checked',true);
...@@ -372,14 +342,14 @@ if (isset($infotype)) { ...@@ -372,14 +342,14 @@ if (isset($infotype)) {
//模拟Select //模拟Select
$(".imitateSelect").find(".link").live("click", function() { $(".imitateSelect").find(".link").live("click", function() {
$(this).addClass("linkOn").parent("dd") $(this).addClass("linkOn").parent("dd")
.siblings("dd").find(".link").removeClass("linkOn"); .siblings("dd").find(".link").removeClass("linkOn");
if ($(this).attr("oid")) if ($(this).attr("oid"))
{ {
$(this).parents(".listImitate").siblings(".labelImitate").hide() $(this).parents(".listImitate").siblings(".labelImitate").hide()
.siblings(".jsImitateHidden").val($(this).attr("oid")).focus(); .siblings(".jsImitateHidden").val($(this).attr("oid")).focus();
} }
$(this).parents(".listImitate").siblings(".labelImitate").hide() $(this).parents(".listImitate").siblings(".labelImitate").hide()
.siblings(".imitate").val($(this).text()).focus(); .siblings(".imitate").val($(this).text()).focus();
$(this).parents(".listImitate").hide(); $(this).parents(".listImitate").hide();
return false; return false;
}) })
......
...@@ -1496,9 +1496,10 @@ function change_nofee( rowid , secret_key) ...@@ -1496,9 +1496,10 @@ function change_nofee( rowid , secret_key)
function set_real(rowid,type) { function set_real(rowid,type) {
if(type == 1){ if(type == 1){
layer.confirm('设置放心看?', { layer.confirm('为避免您的放心看保证金受损,请您仔细核对并确认该套房源当前是否可售可看、价格是否为业主最新报价、房源信息填写是否准确(面积、税费、楼层、朝向、装修)、房源标题及描述与房源基本信息是否一致、房源图片及户型图与实际是否一致。', {
btn: ['设置','取消'], //按钮 btn: ['设置','取消'], //按钮
title:'放心看', title:'放心看',
skin: 'layer-skin-theme'
}, function(){ }, function(){
change_real(rowid); change_real(rowid);
}); });
...@@ -1508,6 +1509,7 @@ function set_real(rowid,type) { ...@@ -1508,6 +1509,7 @@ function set_real(rowid,type) {
layer.confirm('取消放心看?', { layer.confirm('取消放心看?', {
btn: ['确定','取消'], //按钮 btn: ['确定','取消'], //按钮
title:'放心看', title:'放心看',
skin: 'layer-skin-theme'
}, function(){ }, function(){
cancle_real(rowid); cancle_real(rowid);
}); });
...@@ -1569,6 +1571,7 @@ function waringOpen(msg) { ...@@ -1569,6 +1571,7 @@ function waringOpen(msg) {
}) })
} }
</script> </script>
......
...@@ -6,85 +6,85 @@ ...@@ -6,85 +6,85 @@
<div class="titleTab"> <div class="titleTab">
<div class="titleTabB clearfix"> <div class="titleTabB clearfix">
<dl class="list"> <dl class="list">
<?php <?php
if (isset($house_detail['infotype']) && $house_detail['infotype'] != '') { if (isset($house_detail['infotype']) && $house_detail['infotype'] != '') {
$infotype = $house_detail['infotype']; $infotype = $house_detail['infotype'];
} else { } else {
$infotype = 1; $infotype = 1;
} }
foreach ($house['infotype'] as $k => $v) { foreach ($house['infotype'] as $k => $v) {
$select_infotype = ''; $select_infotype = '';
if ($k == $infotype) { if ($k == $infotype) {
$select_infotype = 'itemOn'; $select_infotype = 'itemOn';
} }
//判断可发布的房源类型 //判断可发布的房源类型
if (!in_array($k, $allow_publish_infotype)) { if (!in_array($k, $allow_publish_infotype)) {
continue; continue;
} }
?> ?>
<dd id="<?=$k?>" class="item <?=$select_infotype?>"> <dd id="<?=$k?>" class="item <?=$select_infotype?>">
<a class="link" href="####" id="<?=$k?>"> <?=$v?></a> <a class="link" href="####" id="<?=$k?>"> <?=$v?></a>
</dd> </dd>
<?php } ?> <?php } ?>
</dl> </dl>
</div> </div>
</div> </div>
</div> </div>
<!--头部 tab 结束--> <!--头部 tab 结束-->
<!--房源模板 开始--> <!--房源模板 开始-->
<?php <?php
if ($method == 'add') if ($method == 'add')
{ {
if (isset($template_num) && $template_num > 0) if (isset($template_num) && $template_num > 0)
{ {
?> ?>
<div class="branchCommon radius5 " style="zoom:1;" id="js_fymb" > <div class="branchCommon radius5 " style="zoom:1;" id="js_fymb" >
<div class="hd "> <div class="hd ">
<h3 class="h3">房源模板</h3> <h3 class="h3">房源模板</h3>
<p class="text">还可保存<strong class="strong"><?= $remain_num ?></strong>套模板</p> <p class="text">还可保存<strong class="strong"><?= $remain_num ?></strong>套模板</p>
<p class="more"><a class="link" target="_blank" href="<?= $url_template_manage ?>">编辑&gt;&gt;</a></p> <p class="more"><a class="link" target="_blank" href="<?= $url_template_manage ?>">编辑&gt;&gt;</a></p>
</div> </div>
<div class="mod"> <div class="mod">
<div class="modInner" > <div class="modInner" >
<div class="jsTemplateBox templateBox clearfix"> <div class="jsTemplateBox templateBox clearfix">
<?php <?php
if (is_array($template_list) && !empty($template_list)) if (is_array($template_list) && !empty($template_list))
{ {
foreach ($template_list as $value) foreach ($template_list as $value)
{ {
?> ?>
<p class="item radius4" id="muban" ids="<?= $value['id'] ?>"> <p class="item radius4" id="muban" ids="<?= $value['id'] ?>">
<?= $value['template_name'] ?> <?= $value['template_name'] ?>
</p> </p>
<?php } <?php }
} ?> } ?>
</div>
</div>
</div> </div>
</div> </div>
</div>
</div>
<?php } else { ?> <?php } else { ?>
<div class="branchCommon radius5 " id="js_fymb"> <div class="branchCommon radius5 " id="js_fymb">
<div class="hd "> <div class="hd ">
<h3 class="h3">房源模板</h3> <h3 class="h3">房源模板</h3>
<p class="more"><a class="link" href="<?= $url_template_manage ?>" target="_blank">编辑&gt;&gt;</a></p> <p class="more"><a class="link" href="<?= $url_template_manage ?>" target="_blank">编辑&gt;&gt;</a></p>
</div> </div>
<div class="mod"> <div class="mod">
<div class="modInner"> <div class="modInner">
<div class="modInnerNone"><span class="text">您还没有保存出售房源模板</span><a class="link" href="<?= $url_template_manage ?>" target="_blank">快去添加吧&gt;&gt;</a></div> <div class="modInnerNone"><span class="text">您还没有保存出售房源模板</span><a class="link" href="<?= $url_template_manage ?>" target="_blank">快去添加吧&gt;&gt;</a></div>
</div>
</div>
</div> </div>
<?php } } ?>
<?php if($house['broker_new_info'][0]['starlevel']>=5){?>
<div class="add_new_sata_title" id="add_new_sata_title">
恭喜您,目前您已是最高星级5星!
</div> </div>
</div>
<?php } } ?>
<?php if($house['broker_new_info'][0]['starlevel']>=5){?>
<div class="add_new_sata_title" id="add_new_sata_title">
恭喜您,目前您已是最高星级5星!
</div>
<?php } else {?> <?php } else {?>
<div class="add_new_sata_title" id="add_new_sata_title"> <div class="add_new_sata_title" id="add_new_sata_title">
剩余<?php if($house['broker_new_info'][0]['distance_month']) {?><?php echo $house['broker_new_info'][0]['distance_month'];?><?php }?><?php if($house['broker_new_info'][0]['distance_days']) {?><?php echo $house['broker_new_info'][0]['distance_days'];?><?php }?>无违规记录,将升为<?php if($house['broker_new_info'][0]['starlevel']==5) {?><?php echo $house['broker_new_info'][0]['starlevel'];?><?php } else {?><?php echo $house['broker_new_info'][0]['starlevel']+1;?><?php }?>星! 剩余<?php if($house['broker_new_info'][0]['distance_month']) {?><?php echo $house['broker_new_info'][0]['distance_month'];?><?php }?><?php if($house['broker_new_info'][0]['distance_days']) {?><?php echo $house['broker_new_info'][0]['distance_days'];?><?php }?>无违规记录,将升为<?php if($house['broker_new_info'][0]['starlevel']==5) {?><?php echo $house['broker_new_info'][0]['starlevel'];?><?php } else {?><?php echo $house['broker_new_info'][0]['starlevel']+1;?><?php }?>星!
</div> </div>
<?php } ?> <?php } ?>
<form action="<?= $url_house_submit ?>" id="jsForm_sell" method="post"> <form action="<?= $url_house_submit ?>" id="jsForm_sell" method="post">
<input type="hidden" name="infotype" value="<?=$infotype?>"> <input type="hidden" name="infotype" value="<?=$infotype?>">
<!--基本信息 开始--> <!--基本信息 开始-->
...@@ -101,20 +101,20 @@ ...@@ -101,20 +101,20 @@
<label class="label">小区:</label> <label class="label">小区:</label>
<div class="fields nameInput jsNameInput"> <div class="fields nameInput jsNameInput">
<div class="fgInput jsFgInput"> <div class="fgInput jsFgInput">
<?php <?php
if (!isset($house_detail['block']['blockname'])) { if (!isset($house_detail['block']['blockname'])) {
$house_detail['block']['blockname'] = ''; $house_detail['block']['blockname'] = '';
} }
if (!isset($house_detail['block']['blockid'])) { if (!isset($house_detail['block']['blockid'])) {
$house_detail['block']['blockid'] = ''; $house_detail['block']['blockid'] = '';
} }
?> ?>
<label class="labelPrev jslabelPrev" for="blockshowname" id="jsLabelBlockshowname">输入小区名称 从下拉列表中选择</label> <label class="labelPrev jslabelPrev" for="blockshowname" id="jsLabelBlockshowname">输入小区名称 从下拉列表中选择</label>
<input type="text" class="input_text ui-autocomplete-input w205 <input type="text" class="input_text ui-autocomplete-input w205
<?php if($method=='modify'){ echo 'readonly_input_text';} ?>" <?php if($method=='modify'){ echo 'readonly_input_text';} ?>"
<?php if($method!='modify'){echo 'id="blockshowname"';} ?> name="blockshowname" <?php if($method!='modify'){echo 'id="blockshowname"';} ?> name="blockshowname"
value="<?php echo $house_detail['block']['blockname']; ?>" value="<?php echo $house_detail['block']['blockname']; ?>"
<?php if($method=='modify'){ echo 'readonly';} ?>/> <?php if($method=='modify'){ echo 'readonly';} ?>/>
<input type="hidden" name="block_id" id="block_id" value="<?=$house_detail['block']['blockid']?>"> <input type="hidden" name="block_id" id="block_id" value="<?=$house_detail['block']['blockid']?>">
</div> </div>
<div class="fgInput blockPBox" style="display:none;"> <div class="fgInput blockPBox" style="display:none;">
...@@ -131,20 +131,20 @@ ...@@ -131,20 +131,20 @@
</div> </div>
</dd> </dd>
<!----> <!---->
<?php <?php
if (!isset($house_detail['block']['district'])) { if (!isset($house_detail['block']['district'])) {
$house_detail['block']['district'] = ''; $house_detail['block']['district'] = '';
} }
if (!isset($house_detail['block']['streetid'])) { if (!isset($house_detail['block']['streetid'])) {
$house_detail['block']['streetid'] = ''; $house_detail['block']['streetid'] = '';
} }
if (!isset($house_detail['block']['streetname'])) { if (!isset($house_detail['block']['streetname'])) {
$house_detail['block']['streetname'] = ''; $house_detail['block']['streetname'] = '';
} }
if (!isset($house_detail['block']['address'])) { if (!isset($house_detail['block']['address'])) {
$house_detail['block']['address'] = ''; $house_detail['block']['address'] = '';
} }
?> ?>
<dd class="list_item clearfix"> <dd class="list_item clearfix">
<label class="label">地址:</label> <label class="label">地址:</label>
<div class="fields"> <div class="fields">
...@@ -162,27 +162,27 @@ ...@@ -162,27 +162,27 @@
</div> </div>
</div> </div>
</dd> </dd>
<?php if (isset($method) && $method == 'modify') {?> <?php if (isset($method) && $method == 'modify') {?>
<script> <script>
$(function() { $(function() {
<?php if ($house_detail['block']['blockid'] != 0){?> <?php if ($house_detail['block']['blockid'] != 0){?>
showblockinfo("<?=$house_detail['block']['averprice']?>", showblockinfo("<?=$house_detail['block']['averprice']?>",
"<?=$house_detail['block']['address']?>", "<?=$house_detail['block']['esta_block']?>", "<?=$house_detail['block']['address']?>", "<?=$house_detail['block']['esta_block']?>",
"<?=$house_detail['block']['url_block']?>"); "<?=$house_detail['block']['url_block']?>");
<? } ?> <? } ?>
}); });
</script> </script>
<?php } ?> <?php } ?>
<?php <?php
if (!isset($house_detail['housekind'])) { if (!isset($house_detail['housekind'])) {
$house_detail['housekind'] = ''; $house_detail['housekind'] = '';
} }
if ($infotype == 6) { if ($infotype == 6) {
$housekind_display = 'block'; $housekind_display = 'block';
} else { } else {
$housekind_display = 'none'; $housekind_display = 'none';
} }
?> ?>
<dd class="list_item clearfix" id="housekindShow" style="display:<?=$housekind_display?>;"> <dd class="list_item clearfix" id="housekindShow" style="display:<?=$housekind_display?>;">
<label class="label">车位属性:</label> <label class="label">车位属性:</label>
<div class="fields"> <div class="fields">
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
<input type="text" class="imitate imitateIe" readonly="" name="housekindname" value="<?=$house_detail['housekind']?>"> <input type="text" class="imitate imitateIe" readonly="" name="housekindname" value="<?=$house_detail['housekind']?>">
<div class="listImitate"> <div class="listImitate">
<dl class="inner"> <dl class="inner">
<?= get_attr_select($house['housekindname'])?> <?= get_attr_select($house['housekindname'])?>
</dl> </dl>
</div> </div>
</div> </div>
...@@ -200,20 +200,20 @@ ...@@ -200,20 +200,20 @@
<div class="fgInput textFgErroy"><!--jsFgInput--></div> <div class="fgInput textFgErroy"><!--jsFgInput--></div>
</div> </div>
</dd> </dd>
<?php <?php
if (!isset($house_detail['price'])) { if (!isset($house_detail['price'])) {
$house_detail['price'] = ''; $house_detail['price'] = '';
} }
if (!isset($house_detail['price'])) { if (!isset($house_detail['price'])) {
$house_detail['price'] = ''; $house_detail['price'] = '';
} }
if (!isset($house_detail['priceterm'])) { if (!isset($house_detail['priceterm'])) {
$house_detail['priceterm'] = ''; $house_detail['priceterm'] = '';
$house_detail['priceterm_name'] = ''; $house_detail['priceterm_name'] = '';
} else { } else {
$house_detail['priceterm_name'] = $house['priceterm'][$house_detail['priceterm']]; $house_detail['priceterm_name'] = $house['priceterm'][$house_detail['priceterm']];
} }
?> ?>
<dd class="list_item clearfix"> <dd class="list_item clearfix">
<label class="label">售价:</label> <label class="label">售价:</label>
<div class="fields"> <div class="fields">
...@@ -228,20 +228,20 @@ ...@@ -228,20 +228,20 @@
<input name="priceterm" class="jsImitateHidden" type="hidden" value="<?=$house_detail['priceterm']?>"> <input name="priceterm" class="jsImitateHidden" type="hidden" value="<?=$house_detail['priceterm']?>">
<div class="listImitate"> <div class="listImitate">
<dl class="inner"> <dl class="inner">
<?= get_attr_select($house['priceterm'])?> <?= get_attr_select($house['priceterm'])?>
</dl> </dl>
</div> </div>
</div> </div>
</div> </div>
<p class="textFg textFg2">&nbsp;</p> <p class="textFg textFg2">&nbsp;</p>
<?php <?php
if (!isset($house_detail['pricetype'])) { if (!isset($house_detail['pricetype'])) {
$house_detail['pricetype'] = ''; $house_detail['pricetype'] = '';
$house_detail['pricetypename'] = ''; $house_detail['pricetypename'] = '';
} else { } else {
$house_detail['pricetypename'] = $house['pricetype'][$house_detail['pricetype']]; $house_detail['pricetypename'] = $house['pricetype'][$house_detail['pricetype']];
} }
?> ?>
<div class="fgInput jsFgInput"> <div class="fgInput jsFgInput">
<div class="imitateSelect"> <div class="imitateSelect">
<label class="labelImitate" >有无增值税</label> <label class="labelImitate" >有无增值税</label>
...@@ -249,23 +249,23 @@ ...@@ -249,23 +249,23 @@
<input name="pricetype" class="jsImitateHidden" type="hidden" value="<?=$house_detail['pricetype']?>"> <input name="pricetype" class="jsImitateHidden" type="hidden" value="<?=$house_detail['pricetype']?>">
<div class="listImitate"> <div class="listImitate">
<dl class="inner"> <dl class="inner">
<?= get_attr_select($house['pricetype'])?> <?= get_attr_select($house['pricetype'])?>
</dl> </dl>
</div> </div>
</div> </div>
</div> </div>
<!-- 添加个税属性2015-5-27 zhou start --> <!-- 添加个税属性2015-5-27 zhou start -->
<p class="textFg textFg2">&nbsp;</p> <p class="textFg textFg2">&nbsp;</p>
<?php <?php
if (!isset($house_detail['taxonlytype'])) { if (!isset($house_detail['taxonlytype'])) {
$house_detail['taxonlytype'] = ''; $house_detail['taxonlytype'] = '';
$house_detail['taxonlytypename'] = ''; $house_detail['taxonlytypename'] = '';
} else { } else {
$house_detail['taxonlytypename'] = $house['taxonlytype'][$house_detail['taxonlytype']]; $house_detail['taxonlytypename'] = $house['taxonlytype'][$house_detail['taxonlytype']];
} }
?> ?>
<div class="fgInput jsFgInput"> <div class="fgInput jsFgInput">
<div class="imitateSelect"> <div class="imitateSelect">
<label class="labelImitate">有无个税</label> <label class="labelImitate">有无个税</label>
...@@ -273,24 +273,24 @@ ...@@ -273,24 +273,24 @@
<input name="taxonlytype" class="jsImitateHidden" type="hidden" value="<?=$house_detail['taxonlytype']?>"> <input name="taxonlytype" class="jsImitateHidden" type="hidden" value="<?=$house_detail['taxonlytype']?>">
<div class="listImitate"> <div class="listImitate">
<dl class="inner"> <dl class="inner">
<?= get_attr_select($house['taxonlytype'])?> <?= get_attr_select($house['taxonlytype'])?>
</dl> </dl>
</div> </div>
</div> </div>
</div> </div>
<!-- 添加个税属性2015-5-27 zhou end --> <!-- 添加个税属性2015-5-27 zhou end -->
<div class="fgInput textFgErroy" id="lastname"></div> <div class="fgInput textFgErroy" id="lastname"></div>
</div> </div>
</dd> </dd>
<!----> <!---->
<?php <?php
if (!isset($house_detail['buildarea'])) { if (!isset($house_detail['buildarea'])) {
$house_detail['buildarea'] = ''; $house_detail['buildarea'] = '';
} }
?> ?>
<dd class="list_item clearfix"> <dd class="list_item clearfix">
<label class="label">产证面积:</label> <label class="label">产证面积:</label>
<div class="fields"> <div class="fields">
...@@ -301,22 +301,22 @@ ...@@ -301,22 +301,22 @@
<div class="textFg textFgErroy" style="width:230px;"></div> <div class="textFg textFgErroy" style="width:230px;"></div>
</div> </div>
</dd> </dd>
<?php <?php
if ($infotype == 1 || $infotype == 2) { if ($infotype == 1 || $infotype == 2) {
if (!isset($house_detail['room'])) { if (!isset($house_detail['room'])) {
$house_detail['room'] = ''; $house_detail['room'] = '';
} }
if (!isset($house_detail['hall'])) { if (!isset($house_detail['hall'])) {
$house_detail['hall'] = ''; $house_detail['hall'] = '';
} }
if (!isset($house_detail['toilet'])) { if (!isset($house_detail['toilet'])) {
$house_detail['toilet'] = ''; $house_detail['toilet'] = '';
} }
$roomshowcss = 'display:block;'; $roomshowcss = 'display:block;';
} else { } else {
$roomshowcss = 'display:none;'; $roomshowcss = 'display:none;';
} }
?> ?>
<dd class="list_item clearfix" id="roomshow" style="<?=$roomshowcss?>"> <dd class="list_item clearfix" id="roomshow" style="<?=$roomshowcss?>">
<label class="label">户型:</label> <label class="label">户型:</label>
<div class="fields"> <div class="fields">
...@@ -336,22 +336,22 @@ ...@@ -336,22 +336,22 @@
</div> </div>
</dd> </dd>
<!----> <!---->
<?php <?php
if ($infotype == 6) { if ($infotype == 6) {
$floorshow = "display:none;"; $floorshow = "display:none;";
} else { } else {
if (!isset($house_detail['subfloor'])) { if (!isset($house_detail['subfloor'])) {
$house_detail['subfloor'] = ''; $house_detail['subfloor'] = '';
} }
if (!isset($house_detail['floor'])) { if (!isset($house_detail['floor'])) {
$house_detail['floor'] = ''; $house_detail['floor'] = '';
} }
if (!isset($house_detail['totalfloor'])) { if (!isset($house_detail['totalfloor'])) {
$house_detail['totalfloor'] = ''; $house_detail['totalfloor'] = '';
} }
$floorshow = "display:block;"; $floorshow = "display:block;";
} }
?> ?>
<dd class="list_item clearfix" id="floorshow" style="<?=$floorshow?>"> <dd class="list_item clearfix" id="floorshow" style="<?=$floorshow?>">
<label class="label">楼层:</label> <label class="label">楼层:</label>
<div class="fields"> <div class="fields">
...@@ -399,19 +399,19 @@ ...@@ -399,19 +399,19 @@
</div> </div>
</dd> </dd>
<!----> <!---->
<?php <?php
if (!isset($house_detail['fitment'])) { if (!isset($house_detail['fitment'])) {
$house_detail['fitment'] = ''; $house_detail['fitment'] = '';
} }
if (!isset($house_detail['forward'])) { if (!isset($house_detail['forward'])) {
$house_detail['forward'] = ''; $house_detail['forward'] = '';
} }
if ($infotype == 6) { if ($infotype == 6) {
$fitmentshowcss = "display:none;"; $fitmentshowcss = "display:none;";
} else { } else {
$fitmentshowcss = "display:block;"; $fitmentshowcss = "display:block;";
} }
?> ?>
<dd class="list_item clearfix" id="fitmentshow" style="<?=$fitmentshowcss?>"> <dd class="list_item clearfix" id="fitmentshow" style="<?=$fitmentshowcss?>">
<label class="label">装修朝向:</label> <label class="label">装修朝向:</label>
<div class="fields"> <div class="fields">
...@@ -421,7 +421,7 @@ ...@@ -421,7 +421,7 @@
<input type="text" class="imitate imitateIe" readonly="" name="fitment" value="<?=$house_detail['fitment']?>"> <input type="text" class="imitate imitateIe" readonly="" name="fitment" value="<?=$house_detail['fitment']?>">
<div class="listImitate"> <div class="listImitate">
<dl class="inner"> <dl class="inner">
<?= get_attr_select($house['fitment'])?> <?= get_attr_select($house['fitment'])?>
</dl> </dl>
</div> </div>
</div> </div>
...@@ -433,7 +433,7 @@ ...@@ -433,7 +433,7 @@
<input type="text" class="imitate imitateIe" readonly="" name="forward" value="<?php echo $house_detail['forward']=='南北'?'南北通透':$house_detail['forward'];?>"> <input type="text" class="imitate imitateIe" readonly="" name="forward" value="<?php echo $house_detail['forward']=='南北'?'南北通透':$house_detail['forward'];?>">
<div class="listImitate" style="display: none;"> <div class="listImitate" style="display: none;">
<dl class="inner"> <dl class="inner">
<?= get_attr_select($house['forward'])?> <?= get_attr_select($house['forward'])?>
</dl> </dl>
</div> </div>
</div> </div>
...@@ -441,11 +441,11 @@ ...@@ -441,11 +441,11 @@
<div class="textFg textFgErroy"></div> <div class="textFg textFgErroy"></div>
</div> </div>
</dd> </dd>
<?php <?php
if (!isset($house_detail['mright'])) { if (!isset($house_detail['mright'])) {
$house_detail['mright'] = ''; $house_detail['mright'] = '';
} }
?> ?>
<dd class="list_item clearfix" id="mrightshow" > <dd class="list_item clearfix" id="mrightshow" >
<div style="height:29px;"> <div style="height:29px;">
<label class="label">权属:</label> <label class="label">权属:</label>
...@@ -456,7 +456,7 @@ ...@@ -456,7 +456,7 @@
<input type="text" class="imitate imitateIe" readonly="" name="mright" value="<?=$house_detail['mright']?>"> <input type="text" class="imitate imitateIe" readonly="" name="mright" value="<?=$house_detail['mright']?>">
<div class="listImitate"> <div class="listImitate">
<dl class="inner"> <dl class="inner">
<?= get_attr_select($house['mright'])?> <?= get_attr_select($house['mright'])?>
</dl> </dl>
</div> </div>
</div> </div>
...@@ -466,7 +466,7 @@ ...@@ -466,7 +466,7 @@
</div> </div>
</dd> </dd>
<?php <?php
if ($infotype == 6) { if ($infotype == 6) {
$buildyearShow_display = 'none'; $buildyearShow_display = 'none';
...@@ -479,14 +479,14 @@ ...@@ -479,14 +479,14 @@
<div class="fields nameInput "> <div class="fields nameInput ">
<div class="fgInput jsNameInput jsFgInput"> <div class="fgInput jsNameInput jsFgInput">
<label for="jsNameInputN" class="labelPrev labelPrevN jslabelPrev">格式:2010</label> <label for="jsNameInputN" class="labelPrev labelPrevN jslabelPrev">格式:2010</label>
<?php <?php
if (!isset($house_detail['buildyear'])) { if (!isset($house_detail['buildyear'])) {
$house_detail['buildyear'] = ''; $house_detail['buildyear'] = '';
} }
if (intval($house_detail['buildyear']) <= 1000) { if (intval($house_detail['buildyear']) <= 1000) {
$house_detail['buildyear'] = ''; $house_detail['buildyear'] = '';
} }
?> ?>
<input type="text" class="input_text w90" id="jsNameInputN" name="buildyear" value="<?= $house_detail['buildyear'] ?>" /> <input type="text" class="input_text w90" id="jsNameInputN" name="buildyear" value="<?= $house_detail['buildyear'] ?>" />
</div> </div>
<p class="textFg"></p> <p class="textFg"></p>
...@@ -506,7 +506,7 @@ ...@@ -506,7 +506,7 @@
<div id="infotypeblock" style="padding:15px 0;"> <!--补充信息 开始--> <div id="infotypeblock" style="padding:15px 0;"> <!--补充信息 开始-->
<?php include_once "sell_add_ext.php"; ?> <?php include_once "sell_add_ext.php"; ?>
</div> </div>
<div class="branchCommon radius5 " id="js_xxxx" style="margin:0;"> <div class="branchCommon radius5 " id="js_xxxx" style="margin:0;">
...@@ -517,13 +517,13 @@ ...@@ -517,13 +517,13 @@
<div class="modInner"> <div class="modInner">
<div class="forms"> <div class="forms">
<dl class="list"> <dl class="list">
<?php <?php
if (!isset($house_detail['address'])) if (!isset($house_detail['address']))
{ {
$house_detail['address'] = ''; $house_detail['address'] = '';
} }
?> ?>
<dd class="list_item clearfix clear"> <dd class="list_item clearfix clear">
<label class="label"><span class="fields_state">*</span>房源标题:</label> <label class="label"><span class="fields_state">*</span>房源标题:</label>
<div class="fields nameInput "> <div class="fields nameInput ">
...@@ -535,12 +535,12 @@ ...@@ -535,12 +535,12 @@
<div class="fgInput textFgErroy" style="width:600px"><!--jsFgInput--></div> <div class="fgInput textFgErroy" style="width:600px"><!--jsFgInput--></div>
</div> </div>
</dd> </dd>
<?php <?php
if (!isset($house_detail['remark'])) if (!isset($house_detail['remark']))
{ {
$house_detail['remark'] = ''; $house_detail['remark'] = '';
} }
?> ?>
<dd class="list_item clearfix clear"> <dd class="list_item clearfix clear">
<label class="label">房源描述:</label> <label class="label">房源描述:</label>
...@@ -555,62 +555,62 @@ ...@@ -555,62 +555,62 @@
<div class="editorBox" style="height: 400px;"> <iframe id="remark_iframe" frameborder="0" scrolling="no" src="/editor/house/" style="margin-top:5px; width:830px; height:400px;"></iframe></div> <div class="editorBox" style="height: 400px;"> <iframe id="remark_iframe" frameborder="0" scrolling="no" src="/editor/house/" style="margin-top:5px; width:830px; height:400px;"></iframe></div>
</dd> </dd>
<dd> <dd>
<?php <?php
if ($infotype == 1 || $infotype == 2 || $infotype == 3 || $infotype == 4) { if ($infotype == 1 || $infotype == 2 || $infotype == 3 || $infotype == 4) {
$feature_css = 'display:block;'; $feature_css = 'display:block;';
} else { } else {
$feature_css = 'display:none;'; $feature_css = 'display:none;';
} }
?> ?>
<div class="list_item clearfix clear" style="<?=$feature_css?>" id="feature_id"> <div class="list_item clearfix clear" style="<?=$feature_css?>" id="feature_id">
<label class="label">房源特色:</label> <label class="label">房源特色:</label>
<div class="fields fields02"> <div class="fields fields02">
<?php <?php
$n = 0; $n = 0;
echo '<div id="jsAddTagBox" class="addTagBox">'; echo '<div id="jsAddTagBox" class="addTagBox">';
if ($feature) { if ($feature) {
foreach ($feature as $key => $value) { foreach ($feature as $key => $value) {
$featureselect[] = $value; $featureselect[] = $value;
?> ?>
<p num="<?= $key ?>" class="addTagInner radius4"><?= $value ?> <p num="<?= $key ?>" class="addTagInner radius4"><?= $value ?>
<span title="删除" class="delBtn" style="display: none;"></span> <span title="删除" class="delBtn" style="display: none;"></span>
<input type="hidden" value="<?= $key ?>" name="feature[]"></p> <input type="hidden" value="<?= $key ?>" name="feature[]"></p>
<?php <?php
$n++; $n++;
} }
} }
echo '</div>'; echo '</div>';
echo '<div id="jsAddTagBoxN" class="addTagBox">'; echo '<div id="jsAddTagBoxN" class="addTagBox">';
for ($i = 0; $i < 5 - $n; $i++) { for ($i = 0; $i < 5 - $n; $i++) {
?> ?>
<p class="addTag radius4" >+</p> <p class="addTag radius4" >+</p>
<?php <?php
} }
echo '</div>'; echo '</div>';
?> ?>
</div>
</div> </div>
</div>
<div class="list_item clearfix clear"> <div class="list_item clearfix clear">
<div id="jsAddTagInnerBox" class="addTagInnerBox clearfix"> <div id="jsAddTagInnerBox" class="addTagInnerBox clearfix">
<?php <?php
if ($feature_arr) { if ($feature_arr) {
foreach ($feature_arr as $key => $value) { foreach ($feature_arr as $key => $value) {
$mark = 0; $mark = 0;
if (isset($featureselect)) { if (isset($featureselect)) {
if (in_array($value, $featureselect)) { if (in_array($value, $featureselect)) {
$mark = 1; $mark = 1;
} else { } else {
$mark = 0; $mark = 0;
} }
} }
?> ?>
<p num="<?= $key ?>" class="addTagInner radius4 <?php if ($mark == 1) echo 'addTagInnerSelect'; ?>"><?= $value ?></p> <p num="<?= $key ?>" class="addTagInner radius4 <?php if ($mark == 1) echo 'addTagInnerSelect'; ?>"><?= $value ?></p>
<?php } <?php }
} ?> } ?>
</div>
</div> </div>
</div>
</dd> </dd>
</dl> </dl>
</div> </div>
...@@ -623,10 +623,10 @@ ...@@ -623,10 +623,10 @@
<div class="hd "> <div class="hd ">
<h3 class="h3">图片上传</h3> <h3 class="h3">图片上传</h3>
<?php if(!empty($notice360)): ?> <?php if(!empty($notice360)): ?>
<span style="margin-left:20px;color:#4c4c4c;"> <span style="margin-left:20px;color:#4c4c4c;">
<img src="<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/notice.png"> <img src="<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/notice.png">
<?php echo $notice360; ?> <?php echo $notice360; ?>
</span> </span>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="mod"> <div class="mod">
...@@ -634,10 +634,10 @@ ...@@ -634,10 +634,10 @@
<div class="forms"> <div class="forms">
<dl class="list"> <dl class="list">
<dd class="list_item clearfix"> <dd class="list_item clearfix">
<div class="mattersBox radius3" > <div class="mattersBox radius3" >
<?php if($is_publish_360): ?> <?php if($is_publish_360): ?>
<div class="leftImg radius3"> <div class="leftImg radius3">
<p style="height:24px; overflow:hidden;">&nbsp;</p> <p style="height:24px; overflow:hidden;">&nbsp;</p>
<p class="yz-bort" style="border: 0px;">&nbsp;</p> <p class="yz-bort" style="border: 0px;">&nbsp;</p>
...@@ -670,7 +670,7 @@ ...@@ -670,7 +670,7 @@
2、&nbsp;您上传的户型图、外景图将可能被365收入图库。<a class="link" target="_blank" href="<?=$documentation['pic_rule']?>">图片规则详情&gt;&gt;</a> 2、&nbsp;您上传的户型图、外景图将可能被365收入图库。<a class="link" target="_blank" href="<?=$documentation['pic_rule']?>">图片规则详情&gt;&gt;</a>
</p> </p>
</div> </div>
<?php else: ?> <?php else: ?>
<div class="leftImg radius3" style="height:150px;"> <div class="leftImg radius3" style="height:150px;">
<p style="height:10px; overflow:hidden;">&nbsp;</p> <p style="height:10px; overflow:hidden;">&nbsp;</p>
<p class="title">多图房源</p> <p class="title">多图房源</p>
...@@ -701,20 +701,20 @@ ...@@ -701,20 +701,20 @@
2、&nbsp;您上传的户型图、外景图将可能被365收入图库。<a class="link" target="_blank" href="<?=$documentation['pic_rule']?>">图片规则详情&gt;&gt;</a> 2、&nbsp;您上传的户型图、外景图将可能被365收入图库。<a class="link" target="_blank" href="<?=$documentation['pic_rule']?>">图片规则详情&gt;&gt;</a>
</p> </p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</dd> </dd>
<?php if(GB_CITY == 'hf'): ?> <?php if(GB_CITY == 'hf'): ?>
<?php if($is_publish_360): ?> <?php if($is_publish_360): ?>
<?php if($broker_starlevel>2 && $panoramaStatus){?> <?php if($broker_starlevel>2 && $panoramaStatus){?>
<?php require_once '360pic_inc.php'; ?> <?php require_once '360pic_inc.php'; ?>
<?php }?> <?php }?>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php require_once 'pic_inc.php'; ?> <?php require_once 'pic_inc.php'; ?>
</dl> </dl>
</div> </div>
</div> </div>
...@@ -722,38 +722,38 @@ ...@@ -722,38 +722,38 @@
</div> </div>
<!--图片上传 结束--> <!--图片上传 结束-->
<div class="btnFBbox" style="height:35px;"> <div class="btnFBbox" style="height:35px;">
<?php <?php
if (!isset($house_detail['id'])) { if (!isset($house_detail['id'])) {
$house_detail['id'] = ''; $house_detail['id'] = '';
} }
if (!isset($house_detail['esta'])) { if (!isset($house_detail['esta'])) {
$house_detail['esta'] = ''; $house_detail['esta'] = '';
} }
if (!isset($tab)) { if (!isset($tab)) {
$tab = ''; $tab = '';
} }
?> ?>
<input type="hidden" name="id" id="id" value="<?=$house_detail['id']?>"> <input type="hidden" name="id" id="id" value="<?=$house_detail['id']?>">
<input type="hidden" name="tab" id="tab" value="<?=$tab?>"> <input type="hidden" name="tab" id="tab" value="<?=$tab?>">
<input type="hidden" name="tbl" id="tbl" value="sell"> <input type="hidden" name="tbl" id="tbl" value="sell">
<input type="hidden" name="GB_CITY" id="GB_CITY" value=<?php echo GB_CITY;?>> <input type="hidden" name="GB_CITY" id="GB_CITY" value=<?php echo GB_CITY;?>>
<div style="line-height:29px;"><input style="margin-top:9px;margin-right:5px;" type="checkbox" name="checkConsent" checked value =1 id="checkConsent" class="input_c input_c_five">我已阅读并同意 <div style="line-height:29px;"><input style="margin-top:9px;margin-right:5px;" type="checkbox" name="checkConsent" checked value =1 id="checkConsent" class="input_c input_c_five">我已阅读并同意
<a style="color:#3887F2" target="_blank" class="submiTruleLink" href="http://<?php echo GB_CITY; ?>.zsb.house365.com/payment/houseagreement/">《365地产家居网房源发布规范》</a> <a style="color:#3887F2" target="_blank" class="submiTruleLink" href="http://<?php echo GB_CITY; ?>.zsb.house365.com/payment/houseagreement/">《365地产家居网房源发布规范》</a>
</div>
<?php if(empty($house_detail['esta']) || $house_detail['esta'] == 1 || $house_detail['esta'] == 2){ ?>
<div style="float:left;position:relative; width:117px; height:32px;margin:0 20px 0 285px;_display: inline;">
<a style="margin:0;" href="####" id="jsBtnSubmit_sell" class="btnB btnSubmit radius5">
<?php if($method=='modify'){echo '确认修改';}else{echo '发布';}?></a>
<div id="new_login_btn_none" class="radius5">&nbsp;</div>
</div> </div>
<a style="float:left;" href="####" class="btnB btnPreserve radius5" onclick="savetemplate()">保存为房源模板</a>
<a style="float:left;background-color:#4f82b7;text-decoration:none" href="####" class="btnB radius5" id="jsBtnSubmit_disablesell">保存为失效房源</a> <?php if(empty($house_detail['esta']) || $house_detail['esta'] == 1 || $house_detail['esta'] == 2){ ?>
<?php } ?> <div style="float:left;position:relative; width:117px; height:32px;margin:0 20px 0 285px;_display: inline;">
<a style="margin:0;" href="####" id="jsBtnSubmit_sell" class="btnB btnSubmit radius5">
<?php if($method=='modify'){echo '确认修改';}else{echo '发布';}?></a>
<div id="new_login_btn_none" class="radius5">&nbsp;</div>
</div>
<a style="float:left;" href="####" class="btnB btnPreserve radius5" onclick="savetemplate()">保存为房源模板</a>
<a style="float:left;background-color:#4f82b7;text-decoration:none" href="####" class="btnB radius5" id="jsBtnSubmit_disablesell">保存为失效房源</a>
<?php } ?>
</div> </div>
<input type="hidden" name="<?=$post_rand['post_key']?>" value="<?=$post_rand['post_value']?>" > <input type="hidden" name="<?=$post_rand['post_key']?>" value="<?=$post_rand['post_value']?>" >
</form> </form>
<!----> <!---->
...@@ -792,19 +792,19 @@ ...@@ -792,19 +792,19 @@
<input type="hidden" name="flag" id="flag" value="1" > <input type="hidden" name="flag" id="flag" value="1" >
</form> </form>
<div id='historyHouse'> <div id='historyHouse'>
<?php <?php
$publish_block_tip = $publish_block == '' ? '暂无历史发布小区' : '历史发布小区'; $publish_block_tip = $publish_block == '' ? '暂无历史发布小区' : '历史发布小区';
?> ?>
<a href='####'><?=$publish_block_tip?></a> <a href='####'><?=$publish_block_tip?></a>
<?php <?php
if (isset($publish_block) && !empty($publish_block)) { if (isset($publish_block) && !empty($publish_block)) {
if (count($publish_block) > 10) { //大于10个历史小区,显示滚动条 ?> if (count($publish_block) > 10) { //大于10个历史小区,显示滚动条 ?>
<style> <style>
#historyHouse{height:150px !important; overflow-x: hidden; overflow-y: scroll;} #historyHouse{height:150px !important; overflow-x: hidden; overflow-y: scroll;}
</style> </style>
<?php } foreach ($publish_block as $value) { ?> <?php } foreach ($publish_block as $value) { ?>
<a href='####' onclick="addlishi(<?= $value['blockid'] ?>);"><?= $value['blockshowname'] ?></a> <a href='####' onclick="addlishi(<?= $value['blockid'] ?>);"><?= $value['blockshowname'] ?></a>
<?php }} ?> <?php }} ?>
</div> </div>
...@@ -837,9 +837,9 @@ if (isset($publish_block) && !empty($publish_block)) { ...@@ -837,9 +837,9 @@ if (isset($publish_block) && !empty($publish_block)) {
<!--<label class="error">请选择区属</label>--> <!--<label class="error">请选择区属</label>-->
<div class="listImitate"> <div class="listImitate">
<dl class="inner innerScroll"> <dl class="inner innerScroll">
<?php foreach ($house['district'] as $value) { ?> <?php foreach ($house['district'] as $value) { ?>
<dd><a class="link" onclick="getstreet(this);" href="####" ><?= $value ?></a></dd> <dd><a class="link" onclick="getstreet(this);" href="####" ><?= $value ?></a></dd>
<?php } ?> <?php } ?>
</dl> </dl>
</div> </div>
</div> </div>
...@@ -920,7 +920,7 @@ if (isset($publish_block) && !empty($publish_block)) { ...@@ -920,7 +920,7 @@ if (isset($publish_block) && !empty($publish_block)) {
<div id="fixedLocation"> <div id="fixedLocation">
<dl class="list radius5"> <dl class="list radius5">
<?php if($method == 'add'){ ?> <?php if($method == 'add'){ ?>
<dd class="item"><a href="####" title='房源模板' onClick="returnFixe('js_fymb')" class="link">房源模板</a></dd> <dd class="item"><a href="####" title='房源模板' onClick="returnFixe('js_fymb')" class="link">房源模板</a></dd>
<?php } ?> <?php } ?>
<dd class="item"><a href="####" title='基本信息' onClick="returnFixe('js_jbxx')" class="link">基本信息</a></dd> <dd class="item"><a href="####" title='基本信息' onClick="returnFixe('js_jbxx')" class="link">基本信息</a></dd>
...@@ -935,48 +935,48 @@ if (isset($publish_block) && !empty($publish_block)) { ...@@ -935,48 +935,48 @@ if (isset($publish_block) && !empty($publish_block)) {
<div class="cover"></div> <div class="cover"></div>
<!--疑似虚假--> <!--疑似虚假-->
<div class="pop popfalse"> <div class="pop popfalse">
<div class="pre"> <div class="pre">
<div class="poptit"> <div class="poptit">
<span class="h3">提示</span> <span class="h3">提示</span>
<span title="关闭" class="popright" onclick=hidePop('.pop')>Χ</span> <span title="关闭" class="popright" onclick=hidePop('.pop')>Χ</span>
</div> </div>
<div class="mod"> <div class="mod">
<div class="text">您的房源价格疑似虚假,一旦被核实为虚假房源,房源将被冻结!</div> <div class="text">您的房源价格疑似虚假,一旦被核实为虚假房源,房源将被冻结!</div>
</div> </div>
</div> </div>
<div align="center" class="pb10"> <div align="center" class="pb10">
<button class="btn submitPublishButton">确定发布</button>&nbsp;<button class="btn bg-o" onclick=hidePop('.pop')>检查后发布</button> <button class="btn submitPublishButton">确定发布</button>&nbsp;<button class="btn bg-o" onclick=hidePop('.pop')>检查后发布</button>
</div> </div>
</div> </div>
<!--系统拦截--> <!--系统拦截-->
<div class="pop popintercept"> <div class="pop popintercept">
<div class="pre"> <div class="pre">
<div class="poptit"> <div class="poptit">
<span class="h3">提示</span> <span class="h3">提示</span>
<span title="关闭" class="popright" onclick=hidePop('.pop')>Χ</span> <span title="关闭" class="popright" onclick=hidePop('.pop')>Χ</span>
</div> </div>
<div class="mod"> <div class="mod">
<div class="text">您的房源价格严重低/高于市场价,发布后会被自动拦截,若需继续发布,可在“系统拦截”列表发起申诉!</div> <div class="text">您的房源价格严重低/高于市场价,发布后会被自动拦截,若需继续发布,可在“系统拦截”列表发起申诉!</div>
</div> </div>
</div> </div>
<div align="center" class="pb10"> <div align="center" class="pb10">
<button class="btn submitPublishButton">确定发布</button>&nbsp;<button class="btn bg-o" onclick=hidePop('.pop')>检查后发布</button> <button class="btn submitPublishButton">确定发布</button>&nbsp;<button class="btn bg-o" onclick=hidePop('.pop')>检查后发布</button>
</div> </div>
</div> </div>
<!--禁止发布--> <!--禁止发布-->
<div class="pop popban"> <div class="pop popban">
<div class="pre"> <div class="pre">
<div class="poptit"> <div class="poptit">
<span class="h3">禁止发布</span> <span class="h3">禁止发布</span>
<span title="关闭" class="popright" onclick=hidePop('.pop')>Χ</span> <span title="关闭" class="popright" onclick=hidePop('.pop')>Χ</span>
</div> </div>
<div class="mod"> <div class="mod">
<div class="text">您的房源价格过低或过高,请核实后发布!</div> <div class="text">您的房源价格过低或过高,请核实后发布!</div>
</div> </div>
</div> </div>
<div align="center" class="pb10"> <div align="center" class="pb10">
<button class="btn bg-o" onclick=hidePop('.pop')>确定</button> <button class="btn bg-o" onclick=hidePop('.pop')>确定</button>
</div> </div>
</div> </div>
<script> <script>
...@@ -998,6 +998,7 @@ if (isset($publish_block) && !empty($publish_block)) { ...@@ -998,6 +998,7 @@ if (isset($publish_block) && !empty($publish_block)) {
<?= $page_js ?> <?= $page_js ?>
<script src="/source/zsb/js/layer-v3.1.1/layer/layer.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var area_prices = <?=json_encode($area_prices)?>; var area_prices = <?=json_encode($area_prices)?>;
function getBlockAreaPrices(block_id){ function getBlockAreaPrices(block_id){
...@@ -1007,6 +1008,11 @@ if (isset($publish_block) && !empty($publish_block)) { ...@@ -1007,6 +1008,11 @@ if (isset($publish_block) && !empty($publish_block)) {
},'json'); },'json');
} }
$(function() { $(function() {
layer.config({
extend: 'myskin/style.css' //同样需要加载新皮肤
});
var str = $("#address").val(); var str = $("#address").val();
var obj_value_arr = str.split(""); var obj_value_arr = str.split("");
var num = 0; var num = 0;
...@@ -1102,49 +1108,76 @@ if (isset($publish_block) && !empty($publish_block)) { ...@@ -1102,49 +1108,76 @@ if (isset($publish_block) && !empty($publish_block)) {
$("#blockshowname").val(""); $("#blockshowname").val("");
} }
}); });
//补充信息
//补充信息全选
$("#jsAllcheckbox").click(function() {
if ($(this).attr("checked") == false || $(this).attr("checked") == undefined)
{
$("#jsAllcheckbox").val(0);
$("#jsCheckboxBox").find(".input_c").attr("checked", false)
}
else
{
$("input[type='checkbox']").attr('checked',false)
layer.confirm('为避免您的放心看保证金受损,请您仔细核对并确认该套房源当前是否可售可看、价格是否为业主最新报价、房源信息填写是否准确(面积、税费、楼层、朝向、装修)、房源标题及描述与房源基本信息是否一致、房源图片及户型图与实际是否一致。', {
btn: ['设置','取消'], //按钮
title:'放心看',
skin: 'layer-skin-theme'
}, function(){
$("#jsAllcheckbox").val(1);
$("#jsCheckboxBox").find(".input_c").attr("checked", true)
$("input[type='checkbox']").attr('checked',true)
layer.closeAll();
});
}
})
});
function showPop(show)
{
var bh = $(window).height();
var bw =$(window).width();
$(".cover").css({
display:"block"
});
$(show).css({
top:(bh - $(show).height())/2,
left:(bw - $(show).width())/2,
display:"block"
});
$(show).fadeIn(500);
}
function hidePop(show)
{
$(".cover").hide();
$(show).fadeOut();
}
//房源价格发布规则过滤,强制提交
$('.submitPublishButton').click(function(){
$("#jsForm_sell").submit();
}); });
function showPop(show)
{ $("#checkConsent").click(function(){
var bh = $(window).height(); if(this.checked)
var bw =$(window).width(); {
$("#checkConsent").attr('value',1);
$(".cover").css({ }
display:"block" else
}); {
$("#checkConsent").attr('value',0);
$(show).css({ }
top:(bh - $(show).height())/2, });
left:(bw - $(show).width())/2,
display:"block"
});
$(show).fadeIn(500);
}
function hidePop(show)
{
$(".cover").hide();
$(show).fadeOut();
}
//房源价格发布规则过滤,强制提交
$('.submitPublishButton').click(function(){
$("#jsForm_sell").submit();
});
$("#checkConsent").click(function(){
if(this.checked)
{
$("#checkConsent").attr('value',1);
}
else
{
$("#checkConsent").attr('value',0);
}
});
</script> </script>
<style> <style>
.btnFBbox{padding: 13px 10px 35px;} .btnFBbox{padding: 13px 10px 35px;}
</style> </style>
\ No newline at end of file
/** 透明侧边栏导航 */ /** ͸����������� */
.layer-skin-yellow .layui-side .layui-nav { .layer-skin-yellow .layui-side .layui-nav {
background-color: transparent; background-color: transparent;
} }
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
background: rgba(255, 255, 255, .03); background: rgba(255, 255, 255, .03);
} }
/** logo部分样式 */ /** logo������ʽ */
.layer-skin-yellow .layui-header .layui-logo { .layer-skin-yellow .layui-header .layui-logo {
background-color: #F78400; background-color: #F78400;
color: #fff; color: #fff;
} }
/** header式 */ /** header��ʽ */
.layer-skin-yellow .layui-header { .layer-skin-yellow .layui-header {
background-color: #F78400; background-color: #F78400;
} }
...@@ -34,17 +34,17 @@ ...@@ -34,17 +34,17 @@
border-color: transparent transparent #eee; border-color: transparent transparent #eee;
} }
/** header线条 */ /** header���� */
.layer-skin-yellow .layui-header .layui-nav .layui-this:after, .layer-skin-yellow .layui-header .layui-nav-bar { .layer-skin-yellow .layui-header .layui-nav .layui-this:after, .layer-skin-yellow .layui-header .layui-nav-bar {
background-color: #fff; background-color: #fff;
} }
/** 侧边栏样式 */ /** �������ʽ */
.layer-skin-yellow .layui-side { .layer-skin-yellow .layui-side {
background-color: #222D32; background-color: #222D32;
} }
/** 侧边栏文字颜色 */ /** �����������ɫ */
.layui-side .layui-nav .layui-nav-item a { .layui-side .layui-nav .layui-nav-item a {
color: #b8c7ce; color: #b8c7ce;
} }
...@@ -65,57 +65,57 @@ ...@@ -65,57 +65,57 @@
background-color: rgba(0, 0, 0, .2) !important; background-color: rgba(0, 0, 0, .2) !important;
} }
/** PC端折叠鼠标经过样式 */ /** PC���۵���꾭����ʽ */
.layer-skin-yellow.admin-nav-mini .layui-side .layui-nav .admin-nav-hover > .layui-nav-child:before { .layer-skin-yellow.admin-nav-mini .layui-side .layui-nav .admin-nav-hover > .layui-nav-child:before {
background: #222D32 !important; background: #222D32 !important;
} }
/** tab下划线 */ /** tab�»��� */
.layer-skin-yellow .layui-body > .layui-tab > .layui-tab-title li.layui-this:after { .layer-skin-yellow .layui-body > .layui-tab > .layui-tab-title li.layui-this:after {
background-color: #F78400; background-color: #F78400;
top: 38px; top: 38px;
} }
/** 主体标题 */ /** ������� */
.layui-body-header-title { .layui-body-header-title {
border-left-color: #F78400; border-left-color: #F78400;
} }
/** 主题切换 */ /** �����л� */
.btnTheme:hover, .btnTheme.active { .btnTheme:hover, .btnTheme.active {
border-color: #F78400; border-color: #F78400;
} }
/** admin风格弹窗样式 */ /** admin��񵯴���ʽ */
.layui-layer.layer-skin-yellow .layui-layer-title { .layui-layer.layer-skin-yellow .layui-layer-title {
background-color: #F78400; background-color: #F78400;
color: #ffffff; color: #ffffff;
} }
/** 按钮颜色 */ /** ��ť��ɫ */
.layui-layer.layer-skin-yellow .layui-layer-setwin a { .layui-layer.layer-skin-yellow .layui-layer-setwin a {
color: #ffffff; color: #ffffff;
} }
/* 最小化按钮 */ /* ��С����ť */
.layui-layer.layer-skin-yellow .layui-layer-setwin .layui-layer-min cite { .layui-layer.layer-skin-yellow .layui-layer-setwin .layui-layer-min cite {
background-color: #dddddd; background-color: #dddddd;
} }
/** 弹窗按钮 */ /** ������ť */
.layui-layer.layer-skin-yellow .layui-layer-btn .layui-layer-btn0 { .layui-layer.layer-skin-yellow .layui-layer-btn .layui-layer-btn0 {
border-color: #F78400; border-color: #F78400;
background-color: #F78400; background-color: #F78400;
} }
/* 圆形按钮 */ /* Բ�ΰ�ť */
.btn-circle { .btn-circle {
background: #F78400; background: #F78400;
} }
/** 主题颜色 */ /** ������ɫ */
/** 钮 */ /** ��ť */
.layui-btn:not(.layui-btn-primary):not(.layui-btn-normal):not(.layui-btn-warm):not(.layui-btn-danger):not(.layui-btn-disabled) { .layui-btn:not(.layui-btn-primary):not(.layui-btn-normal):not(.layui-btn-warm):not(.layui-btn-danger):not(.layui-btn-disabled) {
background-color: #F78400; background-color: #F78400;
} }
...@@ -124,13 +124,13 @@ ...@@ -124,13 +124,13 @@
border-color: #F78400; border-color: #F78400;
} }
/** 开关 */ /** ���� */
.layui-form-onswitch { .layui-form-onswitch {
border-color: #F78400; border-color: #F78400;
background-color: #F78400; background-color: #F78400;
} }
/** 分页插件 */ /** ��ҳ��� */
.layui-laypage .layui-laypage-curr .layui-laypage-em { .layui-laypage .layui-laypage-curr .layui-laypage-em {
background-color: #F78400; background-color: #F78400;
} }
...@@ -147,17 +147,17 @@ ...@@ -147,17 +147,17 @@
color: #F78400; color: #F78400;
} }
/** 单选按钮 */ /** ��ѡ��ť */
.layui-form-radio > i:hover, .layui-form-radioed > i { .layui-form-radio > i:hover, .layui-form-radioed > i {
color: #F78400; color: #F78400;
} }
/** 下拉条目选中 */ /** ������Ŀѡ�� */
.layui-form-select dl dd.layui-this { .layui-form-select dl dd.layui-this {
background-color: #F78400; background-color: #F78400;
} }
/** 选卡 */ /** ѡ� */
.layui-tab-brief > .layui-tab-title .layui-this { .layui-tab-brief > .layui-tab-title .layui-this {
color: #F78400; color: #F78400;
} }
...@@ -166,22 +166,22 @@ ...@@ -166,22 +166,22 @@
border-color: #F78400 !important; border-color: #F78400 !important;
} }
/** 面包屑导航 */ /** ���м���� */
.layui-breadcrumb a:hover { .layui-breadcrumb a:hover {
color: #F78400 !important; color: #F78400 !important;
} }
/** 日期选择器按钮 */ /** ����ѡ������ť */
.laydate-footer-btns span:hover { .laydate-footer-btns span:hover {
color: #F78400 !important; color: #F78400 !important;
} }
/** 时间轴 */ /** ʱ���� */
.layui-timeline-axis { .layui-timeline-axis {
color: #F78400; color: #F78400;
} }
/** 复选框 */ /** ��ѡ�� */
.layui-form-checked[lay-skin=primary] i { .layui-form-checked[lay-skin=primary] i {
border-color: #F78400; border-color: #F78400;
background-color: #F78400; background-color: #F78400;
...@@ -191,7 +191,215 @@ ...@@ -191,7 +191,215 @@
border-color: #F78400; border-color: #F78400;
} }
/** 加载动画颜色 */ /** ���ض�����ɫ */
.ball-loader > span, .signal-loader > span { .ball-loader > span, .signal-loader > span {
background-color: #F78400; background-color: #F78400;
} }
/** ͸����������� */
.layer-skin-theme .layui-side .layui-nav {
background-color: transparent;
}
.layer-skin-theme .layui-side .layui-nav .layui-nav-item > a:hover {
background: rgba(255, 255, 255, .03);
}
/** logo������ʽ */
.layer-skin-theme .layui-header .layui-logo {
background-color: #F78400;
color: #fff;
}
/** header��ʽ */
.layer-skin-theme .layui-header {
background-color: #F78400;
}
.layer-skin-theme .layui-header a {
color: #fff;
}
.layer-skin-theme .layui-header a:hover {
color: #fff;
}
.layer-skin-theme .layui-header .layui-nav .layui-nav-more {
border-color: #eee transparent transparent;
}
.layer-skin-theme .layui-header .layui-nav .layui-nav-mored {
border-color: transparent transparent #eee;
}
/** header���� */
.layer-skin-theme .layui-header .layui-nav .layui-this:after, .layer-skin-theme .layui-header .layui-nav-bar {
background-color: #fff;
}
/** �������ʽ */
.layer-skin-theme .layui-side {
background-color: #222D32;
}
/** �����������ɫ */
.layui-side .layui-nav .layui-nav-item a {
color: #b8c7ce;
}
.layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this > a, .layui-nav-tree .layui-this > a:hover {
background-color: #F78400;
}
.layui-nav-tree .layui-nav-bar {
background-color: #F78400;
}
.layui-side .layui-nav-itemed > a, .layui-nav-tree .layui-nav-title a, .layui-nav-tree .layui-nav-title a:hover, .layui-side .layui-nav-item.layui-this > a {
color: #fff !important;
}
.layer-skin-theme .layui-side .layui-nav .layui-nav-itemed > .layui-nav-child {
background-color: rgba(0, 0, 0, .2) !important;
}
/** PC���۵���꾭����ʽ */
.layer-skin-theme.admin-nav-mini .layui-side .layui-nav .admin-nav-hover > .layui-nav-child:before {
background: #222D32 !important;
}
/** tab�»��� */
.layer-skin-theme .layui-body > .layui-tab > .layui-tab-title li.layui-this:after {
background-color: #F78400;
top: 38px;
}
/** ������� */
.layui-body-header-title {
border-left-color: #F78400;
}
/** �����л� */
.btnTheme:hover, .btnTheme.active {
border-color: #F78400;
}
/** admin��񵯴���ʽ */
.layui-layer.layer-skin-theme .layui-layer-title {
background-color: #F57D3A;
color: #ffffff;
}
/** ��ť��ɫ */
.layui-layer.layer-skin-theme .layui-layer-setwin a {
color: #ffffff;
}
/* ��С����ť */
.layui-layer.layer-skin-theme .layui-layer-setwin .layui-layer-min cite {
background-color: #dddddd;
}
/** ������ť */
.layui-layer.layer-skin-theme .layui-layer-btn .layui-layer-btn0 {
border-color: #F57D3A;
background-color: #F57D3A;
}
/* Բ�ΰ�ť */
.btn-circle {
background: #F57D3A;
}
/** ������ɫ */
/** ��ť */
.layui-btn:not(.layui-btn-primary):not(.layui-btn-normal):not(.layui-btn-warm):not(.layui-btn-danger):not(.layui-btn-disabled) {
background-color: #F57D3A;
}
.layui-btn.layui-btn-primary:hover {
border-color: #F57D3A;
}
/** ���� */
.layui-form-onswitch {
border-color: #F57D3A;
background-color: #F57D3A;
}
/** ��ҳ��� */
.layui-laypage .layui-laypage-curr .layui-laypage-em {
background-color: #F57D3A;
}
.layui-table-page .layui-laypage input:focus {
border-color: #F57D3A !important;
}
.layui-table-view select:focus {
border-color: #F57D3A !important;
}
.layui-table-page .layui-laypage a:hover {
color: #F57D3A;
}
/** ��ѡ��ť */
.layui-form-radio > i:hover, .layui-form-radioed > i {
color: #F57D3A;
}
/** ������Ŀѡ�� */
.layui-form-select dl dd.layui-this {
background-color: #F57D3A;
}
/** ѡ� */
.layui-tab-brief > .layui-tab-title .layui-this {
color: #F57D3A;
}
.layui-tab-brief > .layui-tab-more li.layui-this:after, .layui-tab-brief > .layui-tab-title .layui-this:after {
border-color: #F57D3A !important;
}
/** ������ */
.layui-breadcrumb a:hover {
color: #F57D3A !important;
}
/** ����ѡ������ť */
.laydate-footer-btns span:hover {
color: #F57D3A !important;
}
/** ʱ���� */
.layui-timeline-axis {
color: #F57D3A;
}
/** ��ѡ�� */
.layui-form-checked[lay-skin=primary] i {
border-color: #F57D3A;
background-color: #F57D3A;
}
.layui-form-checkbox[lay-skin=primary] i:hover {
border-color: #F57D3A;
}
/** ���ض�����ɫ */
.ball-loader > span, .signal-loader > span {
background-color: #F57D3A;
}
...@@ -58,6 +58,7 @@ function addlishi(id) ...@@ -58,6 +58,7 @@ function addlishi(id)
// ---start @todo 放心看暂时开放区域 code by :wmc // ---start @todo 放心看暂时开放区域 code by :wmc
function tem_fxk_district(district) { function tem_fxk_district(district) {
return false;
var tab_dd = $(".titleTabBox").find('.list').find('.itemOn'); var tab_dd = $(".titleTabBox").find('.list').find('.itemOn');
if(tab_dd.length >0 && (tab_dd.attr('id') == '1' || tab_dd.attr('id') == '2')){ if(tab_dd.length >0 && (tab_dd.attr('id') == '1' || tab_dd.attr('id') == '2')){
if($.inArray(district,['建邺区','雨花台区','秦淮区','栖霞区','鼓楼区','江宁区','浦口区']) < 0){ if($.inArray(district,['建邺区','雨花台区','秦淮区','栖霞区','鼓楼区','江宁区','浦口区']) < 0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment