wesmiler 4 years ago
parent
commit
19161a7c8d

+ 5 - 5
corporation.php

@@ -30,11 +30,11 @@ if($Catid && $rewrite == 'rewrite'){
 
 
 if($catid && !$cur = $db -> getRow("SELECT parentid,corpname FROM `{$db_mymps}corp` WHERE corpid = '$catid'")){
-	write_msg('当前商家分类不存在或者未被启用!');
+	write_msg('分类不存在');
 }
 
 $city = get_city_caches($cityid);
-/*自动补充总站数据start*/
+/*start*/
 if($mymps_global['cfg_independency'] && $cityid){
 	$maincity = get_city_caches(0);
 	$independency = explode(',',$mymps_global['cfg_independency']);
@@ -69,9 +69,9 @@ if(is_array($res = page1($sql,$mymps_global['cfg_list_page_line'] ? $mymps_globa
 		$arr['uri_comment'] = Rewrite('store',array('uid'=>$val['id'],'part'=>'comment'));
 		$arr['uri_contactus'] = Rewrite('store',array('uid'=>$val['id'],'part'=>'contactus'));
 		$arr['uri_album'] 	= Rewrite('store',array('uid'=>$val['id'],'part'=>'album'));
-		$arr['address']		= $val['address'] ? $val['address'] : ($val['busway'] ? $val['busway'] : '暂无地址'); 
+		$arr['address']		= $val['address'] ? $val['address'] : ($val['busway'] ? $val['busway'] : '');
 		$arr['levelid']		= $val['levelid'];
-		$arr['tel']			= $val['tel'] ? $val['tel'] : '暂无电话';
+		$arr['tel']			= $val['tel'] ? $val['tel'] : '';
 		$member[]			= $arr;
 	}
 }
@@ -80,7 +80,7 @@ $ypcategory = get_corp_tree(empty($cur['parentid']) ? $catid : $cur['parentid'],
 if($city['cityid']){
 	$area_list = $city['area'];
 	if(is_array($area_list)){
-		$area_list	= array_merge(array('0'=>array('areaid'=>'','areaname'=>'不限地区')),$area_list);
+		$area_list	= array_merge(array('0'=>array('areaid'=>'','areaname'=>'锟斤拷锟睫碉拷锟斤拷')),$area_list);
 		if(is_array($area_list)){
 			foreach($area_list as $areakey => $areaval){
 				$area_list[$areakey]['uri'] = Rewrite('corp',array('catid'=>$catid,'areaid'=>$areaval['areaid']));

+ 7 - 9
data/config.db.php

@@ -2,37 +2,35 @@
 
 $charset    = "gbk";
 
-//ϵͳ×Ö·û¼¯±àÂë
+// 数�库编�
 
 $dbcharset = "gbk";
 
-//Êý¾Ý¿â×Ö·û¼¯±àÂë
+// 数�库主机
 
 $db_host    = "localhost";
 
-//Êý¾Ý¿â·þÎñÆ÷µØÖ·£¬Ò»°ãΪlocalhost
+// 数�库�称
 
 $db_name    = "ljwhupo";
 
-//ʹÓõÄÊý¾Ý¿âÃû³Æ
+// 数�库账�
 
 $db_user    = "ljwhupo";
 
-//Êý¾Ý¿âÕʺÅ
+// 数�库密�
 
 $db_pass    = "E4Cknayx4MbNrFkK";
 
-//Êý¾Ý¿âÃÜÂë
+// 表�缀
 
 $db_mymps   = "my_";
 
-//Êý¾Ý¿âǰ׺
-
 $db_intype  = "";
 
 $cookiepre = "1c0u_";
 
-//cookies¼ÓÃÜǰ׺
+//cookies
 
 $cookiedomain = "ljwhupo.ts.dongerkj.com";
 

+ 9 - 9
data/config.php

@@ -1,4 +1,4 @@
-<?php
+<?php
 $mymps_global = array (
   'cfg_independency' => 'advertisement,focus,announce,friendlink,telephone,lifebox',
   'cfg_if_nonmember_info' => '1',
@@ -26,13 +26,13 @@ $mymps_global = array (
   'cfg_member_perpost_consume' => '0',
   'cfg_coin_fee' => '1',
   'cfg_if_affiliate' => '1',
-  'cfg_member_reg_content' => '尊敬的{username},您已经注册成为{sitename}的会员,请您在发表言论时,遵守当地法律法规。
-如果您有什么疑问可以联系管理员。
-
-
-{sitename}
+  'cfg_member_reg_content' => '锟金敬碉拷{username},锟斤拷锟窖撅拷注锟斤拷锟轿獅sitename}锟侥伙拷员,锟斤拷锟斤拷锟节凤拷锟斤拷锟斤拷锟斤拷时,锟斤拷锟截碉拷锟截凤拷锟缴凤拷锟芥。
+�������ʲô���ʿ�����ϵ����Ա��
+
+
+{sitename}
 {time}',
-  'cfg_member_reg_title' => '{username},您好,感谢您的注册,请阅读以下内容。',
+  'cfg_member_reg_title' => '{username},锟斤拷锟斤拷,锟斤拷谢锟斤拷锟斤拷注锟斤拷,锟斤拷锟侥讹拷锟斤拷锟斤拷锟斤拷锟捷★拷',
   'cfg_forbidden_reg_ip' => '',
   'cfg_member_regplace' => '',
   'cfg_if_corp' => '1',
@@ -55,7 +55,7 @@ $mymps_global = array (
   'SiteEmail' => 'business@live.it',
   'SiteQQ' => '',
   'SiteUrl' => 'http://ljwhupo.ts.dongerkj.com',
-  'SiteName' => '芒果分享论坛(mangosf.com)',
+  'SiteName' => '蚂蚁信息分类网',
   'screen_info' => 'full',
   'screen_search' => 'full',
   'head_style' => 'new',
@@ -80,5 +80,5 @@ $mymps_global = array (
   'mapapi_charset' => '',
   'mapview_level' => '14',
   'cfg_cityshowtype' => 'province',
-);
+);
 ?>

File diff suppressed because it is too large
+ 24 - 26
data/templates/1_index_classic.tpl.php


File diff suppressed because it is too large
+ 327 - 0
data/templates/1_list.tpl.php


File diff suppressed because it is too large
+ 322 - 0
data/templates/1_list_zpqz.tpl.php


+ 48 - 0
data/templates/8_footer.tpl.php

@@ -0,0 +1,48 @@
+<?php if(!defined('IN_MYMPS')) exit('Access Denied');
+/*Mymps分类信息系统
+官方网站:http://zhideyao.cn*/
+
+?>
+
+<div class="help">
+    <a href="index.php?mod=ad&cityid=<?=$city['cityid']?>" style="width: 135px" rel="nofollow">首页广告发布</a>
+<a href="index.php?mod=about&cityid=<?=$city['cityid']?>" rel="nofollow">联系我们</a>
+</div>
+<div class="footer" style="background-color:#F2F2F2">
+    <p class="footer_02">揭阳市大智房产中介服务有限公司</p>
+</div>
+<div style="height: 49px;"></div>
+<script type="text/javascript">
+/*$(function () {
+$("body").swipe( {
+swipe:function(event, direction, distance, duration, fingerCount, fingerData) {
+var mod = '<?=$mod?>';
+var catid = '<?=$catid?>';
+if (direction == 'left') {
+if(catid == '') {
+window.location.href = 'index.php?mod=category&catid=3&cityid=<?=$city['cityid']?>';
+} else if (catid == 3) {
+window.location.href = 'index.php?mod=category&catid=2&cityid=<?=$city['cityid']?>';
+} else if (catid == 2) {
+window.location.href = 'index.php?mod=category&catid=4&cityid=<?=$city['cityid']?>';
+} else if (catid == 4) {
+window.location.href = 'index.php?mod=property&status=N';
+}
+} else if (direction == 'right') {
+if (mod == 'property' || mod == 'login') {
+window.location.href = 'index.php?mod=category&catid=4&cityid=<?=$city['cityid']?>';
+} else {
+if (catid == 4) {
+window.location.href = 'index.php?mod=category&catid=2&cityid=<?=$city['cityid']?>';
+} else if (catid == 2) {
+window.location.href = 'index.php?mod=category&catid=3&cityid=<?=$city['cityid']?>';
+} else if (catid == 3) {
+window.location.href = 'index.php?mod=index&&cityid=<?=$city['cityid']?>';
+}
+}
+}
+},
+allowPageScroll:"auto"
+});
+});*/
+</script>

+ 16 - 0
data/templates/8_header.tpl.php

@@ -0,0 +1,16 @@
+<?php if(!defined('IN_MYMPS')) exit('Access Denied');
+/*Mymps分类信息系统
+官方网站:http://zhideyao.cn*/
+
+?>
+
+<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
+<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,minimal-ui" />
+<meta name="format-detection" content="telephone=no" />
+<meta name="format-detection" content="email=no" />
+<meta name="format-detection" content="address=no;">
+<meta name="apple-mobile-web-app-capable" content="yes" />
+<meta name="apple-mobile-web-app-status-bar-style" content="default" />
+<meta name="renderer" content="webkit">
+<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
+<meta http-equiv="Cache-Control" content="no-siteapp" />

+ 108 - 0
data/templates/8_header_search.tpl.php

@@ -0,0 +1,108 @@
+<?php if(!defined('IN_MYMPS')) exit('Access Denied');
+/*Mymps分类信息系统
+官方网站:http://zhideyao.cn*/
+
+?>
+
+<? if((stristr($_SERVER['HTTP_USER_AGENT'], 'AiYouXin_App'))) { ?>
+<script type="text/javascript">
+
+
+
+//alert(messagingIframe);
+
+    function iosLocal(key,val){
+var messagingIframe = document.createElement('iframe');
+messagingIframe.style.display = 'none';
+document.documentElement.appendChild(messagingIframe);
+        messagingIframe.src = key+":"+val;
+    }
+
+
+var ua = navigator.userAgent.toLowerCase();	
+if (/iphone|ipad|ipod/.test(ua)) {
+iosLocal("changecity","<? echo $city['cityname'] ? $city['cityname'] : '切换'; ?>");
+
+<? if($mod!='index' && $mod!='category' && !in_array($mod,array('login','member','register','shoucang','mypost')) && $mod!='post') { ?>
+iosLocal("changback","back");
+<?php } else { ?>
+iosLocal("changlogo","logo");
+<?php } ?>
+
+}else{
+applocal.setMessageInTop("<? echo $city['cityname'] ? $city['cityname'] : '切换'; ?>");
+}
+
+
+
+</script>
+<?php } else { ?>
+
+<!--<img src="/m/template/images/back.png" style="height:32px;width:32px" alt="<?=$mymps_global['SiteName']?>">-->
+<div class="header">
+
+
+<? if($mobile_settings['mobilelogo']) { if($mod!='index' && $mod!='category' && !in_array($mod,array('login','member','register','shoucang','mypost')) && $mod!='post') { ?>
+<a class="logo_a" href="#" onclick="window.location.href=document.referrer;">
+<img id="back" src="/m/template/images/back.png" style="height:32px;width:32px;" alt="<?=$mymps_global['SiteName']?>">
+</a>
+<?php } else { ?><a class="logo_a" href="index.php?cityid=<?=$city['cityid']?>"><img src="<?=$mymps_global['SiteUrl']?><?=$mobile_settings['mobilelogo']?>" alt="<?=$mymps_global['SiteName']?>"></a><?php } ?><?php } ?>
+<a class="city_a" href="index.php?mod=changecity&cityid=<?=$city['cityid']?>"><? echo $city['cityname'] ? $city['cityname'] : '切换'; ?><i class="filt-arrowwhite"></i></a>
+    <div class="search <? echo $mobile_settings['mobilelogo'] ? 'width45' : 'width65'; ?>">
+<form action="index.php?" method="get">
+        <input name="cityid" type="hidden" value="<?=$city['cityid']?>">
+<input name="mod" type="hidden" value="search">
+<input class="input_keys" name="keywords" type="text" value="<?=$keywords?>" x-webkit-speech lang="zh-CN" placeholder="输入关键词搜索">
+<input class="search_but body_bg" id="qixc" type="submit" value="搜信息">
+</form>
+</div>
+    <? if(!$mobile_settings['mobilelogo']) { ?><div class="h_btn h_post" onclick="javascript:window.location.href='index.php?mod=post&cityid=<?=$city['cityid']?>'" ></div><?php } ?>
+</div>
+
+<div style="height: 49px;"></div>
+
+
+<div class="clearfix"></div>
+<div id="contactbar">
+<a href="index.php?cityid=<?=$city['cityid']?>" class="bottom_home<? echo $mod=='index' ? '_on' : '';; ?>">首页</a>
+
+<a href="index.php?mod=category&cityid=<?=$city['cityid']?>" class="bottom_index<? echo $mod == 'category' ? '_on' : '';; ?>">分类</a>
+
+<a href="index.php?mod=member&cityid=<?=$city['cityid']?>" class="bottom_member<? echo in_array($mod,array('login','member','register','shoucang','mypost')) ? '_on' : '';; ?>">我的</a>
+<a href="index.php?mod=<? if(empty($city['cityid'])) { ?>changecity<?php msetcookie('post',1); ?><?php } else { ?>post<?php } ?>&cityid=<?=$city['cityid']?>" class="bottom_post<? echo $mod == 'post' ? '_on' : '';; ?>">发布</a>
+</div>
+<script type="text/javascript">
+/*
+String.prototype.startWith=function(str){
+  var reg=new RegExp("^"+str);
+  return reg.test(this);
+}
+
+
+var search = window.location.search;
+search = search.substring(1);
+var isback = false;
+
+if(!search.startWith("cityid") && !search.startWith("mod=post") && !search.startWith("mod=category") && !search.startWith("mod=member")
+  && search!=""){
+var element = document.getElementById('back');
+element.style.display="block";
+
+var logo = document.getElementById('logo');
+logo.style.display="none";
+
+isback = true;
+
+}
+
+function gotobackx(){
+if(isback){
+ 
+}else{
+window.location.href="index.php?cityid=<?=$city['cityid']?>";
+}
+}
+*/
+
+</script>
+<?php } ?>

+ 166 - 0
data/templates/8_index_new.tpl.php

@@ -0,0 +1,166 @@
+<?php if(!defined('IN_MYMPS')) exit('Access Denied');
+/*Mymps������Ϣϵͳ
+�ٷ���վ��http://zhideyao.cn*/
+
+?>
+
+<!DOCTYPE html>
+<html lang="zh-CN" class="index_page">
+<head>
+    
+<?php include mymps_tpl('header'); ?>
+    <meta name="keywords" content="<?=$mymps_global['SiteName']?>"/>
+    <meta name="description" content="<?=$mymps_global['SiteName']?>�ֻ���"/>
+    <title><?=$mymps_global['SiteName']?>-�ֻ���</title>
+    <link type="text/css" rel="stylesheet" href="template/css/global.css">
+    <link type="text/css" rel="stylesheet" href="template/css/style.css">
+    <link type="text/css" rel="stylesheet" href="template/css/index.css">
+    <? if(!$cityid && !$lat) { ?>
+    <script>
+        if (navigator.geolocation)
+        {
+            navigator.geolocation.getCurrentPosition(showPosition);
+        }
+
+        function showPosition(position)
+        {
+            var lat = position.coords.latitude;
+            var lng = position.coords.longitude;
+            var replaceuri = '<?=$mymps_global['SiteUrl']?>/m/index.php?lat='+lat+'&lng='+lng;window.location.replace(replaceuri);
+        }
+    </script>
+    <?php } ?>
+</head>
+
+<body class="<?=$mymps_global['cfg_tpl_dir']?>">
+<?php include mymps_tpl('header_search'); ?>
+<style type="text/css">
+    #iSlider-wrapper {
+        width: 100%;
+        height: 10rem;
+        overflow: hidden;
+        position: relative;
+    }
+
+    #iSlider-wrapper ul {
+        list-style: none;
+        margin: 0;
+        padding: 0;
+        height: 100%;
+        overflow: hidden;
+    }
+
+    #iSlider-wrapper li {
+        position: absolute;
+        margin: 0;
+        padding: 0;
+        height: 100%;
+        overflow: hidden;
+        display: -webkit-box;
+        -webkit-box-pack: center;
+        -webkit-box-align: center;
+        list-style: none;
+    }
+
+    #iSlider-wrapper li img {
+        max-width: 100%;
+        max-height: 100%;
+    }
+
+    .ad_3 .ad_3_item{
+        width: 32%;
+        display: inline-block;
+        height: 100px;
+        line-height: 100px;
+        text-align: center;
+        vertical-align: middle;
+        border-left: 1px solid #ccc;
+    }
+    .ad_3 .ad_3_item:first-child{
+        border-left: none;
+    }
+
+    .ad_4 .ad_4_item{
+        width: 23%;
+        display: inline-block;
+        height: 50px;
+        line-height: 50px;
+        text-align: center;
+        vertical-align: middle;
+        border-left: 1px solid #ccc;
+    }
+    .ad_4 .ad_4_item:first-child{
+        border-left: none;
+    }
+
+</style>
+<div class="" id="iSlider-wrapper">
+    <?php $focus = mymps_get_focus('index',3,$city['cityid']);
+        $focus_list = array();
+        if (empty($focus)):
+        $focus = mymps_get_focus('index',3);
+        endif;
+        if($focus){
+            foreach($focus as $f) :
+                $temp = array(
+                    'content' => $f['image']
+                );
+                array_push($focus_list, $temp);
+                unset($temp);
+            endforeach;
+        }
+
+        $focus_list = json_encode($focus_list);
+     ?></div>
+<div class="clearfix"></div>
+<div class="ad_3">
+    <div class="ad_3_item">���1</div>
+    <div class="ad_3_item">���2</div>
+    <div class="ad_3_item">���3</div>
+</div>
+<div class="ad_4">
+    <div class="ad_4_item">���1</div>
+    <div class="ad_4_item">���2</div>
+    <div class="ad_4_item">���3</div>
+    <div class="ad_4_item">���4</div>
+</div>
+<div class="clearfix"></div>
+<div class="info_list"></div>
+<script src="template/js/jq_min.211.js"></script>
+<script src="template/js/index.js"></script>
+<link rel="stylesheet" href="template/js/islider/iSlider.css">
+<script src="template/js/islider/iSlider.min.js"></script>
+<script type="text/javascript" src="/template/default/js/jquery.SuperSlide.2.1.1.js"></script>
+<script>
+    (function($){
+        var list = $('#content').find('.cell');
+        if(list.length > 0){
+
+            var txt = '';
+            $('#content').find('.cell').each(function(i){
+                if(i === 0){
+                    txt += '<li class="active">1</li>';
+                }else{
+                    txt += '<li>'+(i+1)+'</li>';
+                }
+            });
+            $('#indicator').html(txt);
+            var w_w = $(window).width();
+            setTimeout(function(){new C_Scroll({container:'slide',content:'content',ct:'indicator',size:w_w,intervalTime:5000,lazyIMG:!!0});},20);
+            setTimeout(function(){$('#slide').show();},20);
+        }
+        IDC.tabADS($('#tab_01'));
+        //$(".focusBox").slide({ mainCell:".pic",effect:"left", autoPlay:true, delayTime:600, trigger:"click"});
+        var list = <?=$focus_list?>;
+
+        var S = new iSlider(document.getElementById('iSlider-wrapper'), list, {
+            isAutoplay: 1,
+            isLooping: 1,
+            isOverspread: 1,
+            animateTime: 800
+        });
+    })(jQuery);
+</script>
+<?php include mymps_tpl('footer'); ?>
+</body>
+</html>