Your Name 3 months ago
parent
commit
22fe8c1bee

+ 1
- 0
apps/common/function.php View File

@@ -315,6 +315,7 @@ function post_baidu($api, $urls)
315 315
     return $result;
316 316
 }
317 317
 
318
+
318 319
 function titlereplace($data){
319 320
     //把? ?都替换为空格
320 321
     $search = array('?','?',' ','%',',');

+ 28
- 3
apps/home/controller/IndexController.php View File

@@ -27,6 +27,9 @@ class IndexController extends Controller
27 27
         $this->parser = new ParserController();
28 28
         $this->model = new ParserModel();
29 29
         $this->htmldir = $this->config('tpl_html_dir') ? $this->config('tpl_html_dir') . '/' : '';
30
+
31
+        //var_dump("开始加载");
32
+
30 33
     }
31 34
 
32 35
     // 空拦截器, 实现文章路由转发
@@ -56,6 +59,7 @@ class IndexController extends Controller
56 59
         
57 60
         // 判断是否存在后缀
58 61
         $url_rule_suffix = substr($this->config('url_rule_suffix'), 1);
62
+
59 63
         $suffix = false;
60 64
         $slash = false;
61 65
         if (preg_match('/(.*)(_|\.)' . $url_rule_suffix . '$/', $path, $matchs)) {
@@ -65,11 +69,22 @@ class IndexController extends Controller
65 69
             $slash = true;
66 70
             $path = trim($path, '/');
67 71
         }
72
+
73
+        //强制忽略后缀 假设后缀是存在的
74
+        //后缀只是修饰 不存在不影响功能
75
+        //$path 存在栏目二级目录
76
+        //var_dump((int)$path);
77
+        if((int)$path > 0){
78
+            $suffix = true;
79
+        }
80
+
68 81
         $path = escape_string($path);
69 82
         $path_arr = $path ? explode('/', $path) : array();
70
-        
83
+
71 84
         // 开始路由
72 85
         if (isset($path_arr) && count($path_arr) > 0 && ( in_array('tag',$path_arr) || preg_match('/^[\w\-\/]+$/', $path)) ) {
86
+            //var_dump("存在路由");
87
+            //var_dump(strtolower($path_arr[0]));
73 88
             switch (strtolower($path_arr[0])) {
74 89
                 case 'search':
75 90
                 case 'keyword':
@@ -111,7 +126,7 @@ class IndexController extends Controller
111 126
                     $spider->index();
112 127
                     break;
113 128
                 default:
114
-                    
129
+                    //var_dump(strtolower($path_arr[0]));
115 130
                     $url_break_char = $this->config('url_break_char') ?: '_';
116 131
                     $url_rule_content_path = $this->config('url_rule_content_path') ? true : false;
117 132
                     $err = '';
@@ -125,10 +140,12 @@ class IndexController extends Controller
125 140
                         define('CMS_PAGE_CUSTOM', true); // 设置走自定义CMS分页
126 141
                         $_GET['page'] = $matchs[2]; // 设置分页参数
127 142
                     } else {
128
-                        
143
+                        //var_dump(strtolower($path_arr[0]));
129 144
                         if ($url_rule_content_path && ! ! $data = $this->model->getContent($path)) {
145
+                            //var_dump(strtolower($path_arr[0]));
130 146
                             $iscontent = true; // 短路径情况
131 147
                         } elseif (! $url_rule_content_path) {
148
+                            //var_dump(strtolower($path_arr[0]));
132 149
                             // 详情页至少是2级,对地址进行栏目和内容路径拆分,访问详情页
133 150
                             $part1 = dirname($path);
134 151
                             $part2 = basename($path);
@@ -167,6 +184,7 @@ class IndexController extends Controller
167 184
                         
168 185
                         // 执行未配置栏目名称但是配置了模型路径的情况路径匹配
169 186
                         if (! $iscontent) {
187
+                            //var_dump(strtolower($path_arr[0]));
170 188
                             preg_match('/^([a-zA-Z0-9\-\/]+)(' . $url_break_char . '([0-9]+))?' . $url_break_char . '([0-9]+)$/i', $path, $matchs);
171 189
                             if ($matchs[2] && $model = $this->model->checkModelUrlname($matchs[1])) {
172 190
                                 // 模型名称_栏目ID_分页
@@ -191,10 +209,13 @@ class IndexController extends Controller
191 209
                     }
192 210
                     
193 211
                     if ($iscontent) {
212
+                        //var_dump(strtolower($path_arr[0]));
194 213
                         define('CMS_PAGE', false); // 使用普通分页处理模型
214
+                        //var_dump($suffix);
195 215
                         if (! ! $data && $suffix && ! $err) {
196 216
                             $this->getContentPage($data);
197 217
                         } else {
218
+                            //var_dump(strtolower($path_arr[0]));
198 219
                             _404('您访问的内容不存在,请核对后重试!');
199 220
                         }
200 221
                     } else {
@@ -211,6 +232,8 @@ class IndexController extends Controller
211 232
                     }
212 233
             }
213 234
         } else {
235
+            //var_dump("不存在路由");
236
+
214 237
             if(SITE_DIR == ''){
215 238
                 //一级目录
216 239
                 $this->urlJump($url_rule_type,false);
@@ -219,6 +242,8 @@ class IndexController extends Controller
219 242
                 $this->urlJump($url_rule_type,true);
220 243
             }
221 244
         }
245
+
246
+        //var_dump("f555e");
222 247
     }
223 248
 
224 249
     // 首页

+ 59
- 4
apps/home/controller/ParserController.php View File

@@ -79,6 +79,7 @@ class ParserController extends Controller
79 79
         $content = $this->restorePreLabel($content); // 还原不需要解析的内容
80 80
         $content = $this->parserReplaceKeyword($content); // 页面关键词替换
81 81
         $content = $this->parserTitleReplaceLabel($content); // 通用内容替换标签  这里是我新增的
82
+        $content = $this->parserBLock($content); //自定义方法2
82 83
 
83 84
         // 解析个人扩展标签,升级不覆盖
84 85
         if (file_exists(APP_PATH . '/home/controller/ExtLabelController.php')) {
@@ -95,25 +96,79 @@ class ParserController extends Controller
95 96
     //$content这里用的时文章标题,直接是字符串
96 97
     public function parserTitleReplaceLabel($content)
97 98
     {
99
+
98 100
         $pattern = '/\{pboot:titlereplace(\s+[^}]+)?\}/';
99 101
 
102
+        //先对$content 进行处理 包含 {xx}
103
+        //{pboot:titlereplace title='{xx}心理咨询,{xx}心理医生,{xx}心理咨询中心机构【乐达心理】' /}
104
+        //因为{xx} 正则问题
105
+        $content = str_replace('{xx}', '[xx]', $content);
106
+
107
+        //var_dump($content);die;
100 108
         if (preg_match_all($pattern, $content, $matches)) {
101 109
             $count = count($matches[0]);
102 110
             for ($i = 0; $i < $count; $i ++) {
111
+                //var_dump($matches[0][$i]);die;
112
+                $matches[0][$i] = str_replace('[xx]', '{xx}', $matches[0][$i]);
103 113
                 $params = $this->parserParam($matches[0][$i]);
104 114
                 $data = '';
105 115
                 foreach ($params as $key => $value) {
106 116
                     switch ($key) {
107 117
                         case 'title'://这里其实可以解析很多的,不只是title,可以根据case进行不同的解析
108 118
                             $data = $value; // 获取到的文章title
119
+                            //$data = titlereplace($data); //testreplace方法为自定义方法,在\apps\common\function.php里
120
+                            //$data = str_replace("`", '', $data);
121
+                            //var_dump($data);die;
122
+                            $data = explode(',',$data);
123
+                            $data = $data[0];
124
+                            break;
125
+                    }
126
+                }
127
+                if (!$data) { // 无内容不解析
128
+                    continue;
129
+                }
130
+                //$content = str_replace($matches[0][$i], $data, $content);
131
+                //$content  {pboot:titlereplace title='广州心理咨询,广州心理医生,广州心理咨询中心机构【乐达心理】' /}
132
+                //$data '广州
133
+                //$matches[0][$i] {pboot:titlereplace title='广州
134
+                //$content = str_replace("`/}", '', $content);
135
+                $content = str_replace('[xx]', '{xx}', $content);
136
+                //var_dump($content);die;
137
+                $content = str_replace($matches[0][$i], $data, $content);
138
+            }
109 139
 
110
-                            if (! $data) { // 无内容不解析
111
-                                continue;
112
-                            }
113
-                            $data = titlereplace($data); //testreplace方法为自定义方法,在\apps\common\function.php里
140
+            if((int)$count === 0){
141
+                $content = str_replace('[xx]', '{xx}', $content);
142
+            }
143
+        }else{
144
+            $content = str_replace('[xx]', '{xx}', $content);
145
+        }
146
+        return $content;
147
+    }
148
+
149
+    public function parserBLock($content){
150
+        $pattern = '/\{pboot:block(\s+[^}]+)?\}/';
151
+        if (preg_match_all($pattern, $content, $matches)) {
152
+            $count = count($matches[0]);
153
+            for ($i = 0; $i < $count; $i ++) {
154
+                $params = $this->parserParam($matches[0][$i]);
155
+                $data = '';
156
+                foreach ($params as $key => $value) {
157
+                    switch ($key) {
158
+                        case 'id':
159
+                            $data = $this->model->getBlockContent($value);
160
+                            //return $data['value'];
161
+                            //print_r($data);exit();
114 162
                             break;
163
+                        /*$data = $this->model->getContent($value)->content; // 获取到的文章id去获取文章内容
164
+                        $data = testreplace($data);*/
165
+
115 166
                     }
116 167
                 }
168
+                if (!$data) { // 无内容不解析
169
+                    continue;
170
+                }
171
+                //$content = $data['value'];
117 172
                 $content = str_replace($matches[0][$i], $data, $content);
118 173
             }
119 174
         }

+ 6
- 0
apps/home/model/ParserModel.php View File

@@ -1038,4 +1038,10 @@ class ParserModel extends Model
1038 1038
             ->where("id=$id")
1039 1039
             ->delete();
1040 1040
     }
1041
+
1042
+    public function getBlockContent($id){
1043
+        //return parent::table('ay_block')->where(['id'=>$id])->decode()->find(1);
1044
+        return '1+1';
1045
+    }
1046
+
1041 1047
 }

+ 7
- 1
config/config.php View File

@@ -6,7 +6,13 @@ return array(
6 6
     
7 7
     // 授权码,多个授权码使用英文逗号隔开,如:'aaaaa,bbbbb'
8 8
     'sn' => 'F5604F3B99',
9
-    
9
+
10
+    //URL地址后缀名
11
+    'url_rule_suffix' => '.html',
12
+
13
+    //控制器返回数据输出方式
14
+    'return_data_type' => 'html',
15
+
10 16
     // 授权用户手机
11 17
     'sn_user' => '',
12 18
     

+ 5
- 5
core/convention.php View File

@@ -33,10 +33,7 @@ return array(
33 33
     
34 34
     // 前台URL分隔符
35 35
     'url_break_char' => '_',
36
-    
37
-    // URL地址后缀名
38
-    'url_rule_suffix' => '.html',
39
-    
36
+
40 37
     // URL地址路由,如:// 'home/index' => 'home/index/index'
41 38
     'url_route' => array(),
42 39
     
@@ -47,7 +44,10 @@ return array(
47 44
     'tpl_dir' => array(
48 45
         'home' => '/template'
49 46
     ),
50
-    
47
+
48
+    // URL地址后缀名
49
+    'url_rule_suffix' => '.html',
50
+
51 51
     // 控制器返回数据输出方式
52 52
     'return_data_type' => 'html',
53 53
     

BIN
favicon.ico View File


+ 10
- 1
git.txt View File

@@ -4,6 +4,8 @@ git commit -m "first commit"
4 4
 git remote add origin http://47.120.56.77:3000/zhengxifeng/tyqngp.git
5 5
 git push -u origin master
6 6
 
7
+===========================
8
+.gitignore规则
7 9
 
8 10
 # 忽略所有.log文件
9 11
 *.log
@@ -14,4 +16,11 @@ temp/
14 16
 # 忽略docs目录下的所有.md文件
15 17
 docs/*.md
16 18
 # 忽略所有子目录下的.txt文件
17
-**/*.txt
19
+**/*.txt
20
+
21
+===============================
22
+
23
+git rm -r --cached .
24
+修改 .gitignore 规则
25
+git add .
26
+git commit -m "clear cached"

+ 9
- 6
template/dafeult/about.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
13
+
11 14
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15 18
 </head>

+ 9
- 6
template/dafeult/case.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{content:title}-{pboot:sitetitle}</title>
6
+<meta name="keywords" content="{content:keywords}">
7
+<meta name="description" content="{content:description}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{content:title}-{pboot:sitetitle}</title>
9
-<meta name="keywords" content="{content:keywords}">
10
-<meta name="description" content="{content:description}">
13
+
11 14
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15 18
 </head>

+ 13
- 9
template/dafeult/caselist.html View File

@@ -1,15 +1,19 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
9
+
4 10
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 11
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 12
 <meta http-equiv="Cache-Control" content="no-transform" />
7 13
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
14
+
11 15
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
16
+<link href="/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14 18
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15 19
 </head>
@@ -22,15 +26,15 @@
22 26
     <ul>
23 27
       {pboot:list num=6 order=sorting}
24 28
       <li>
25
-        <div class="img"><a href="[list:link]"><img src="[list:ico]"></a></div>
29
+        <div class="img"><a href="/[list:id]"><img src="[list:ico]"></a></div>
26 30
         <div class="desc">
27
-          <div class="desc-box"> <a href="[list:link]">
31
+          <div class="desc-box"> <a href="/[list:id]">
28 32
             <h2>[list:title]</h2>
29 33
             <i></i>
30 34
             <p class="leixing">[list:ext_fangshi]</p>
31 35
             <p class="miaoshu">[list:ext_jianjie2]</p>
32 36
             </a>
33
-            <div class="list-anli-link"> <a href="[list:link]" class="jxz">查看详情</a> </div>
37
+            <div class="list-anli-link"> <a href="/[list:id]" class="jxz">查看详情</a> </div>
34 38
           </div>
35 39
         </div>
36 40
       </li>

+ 9
- 6
template/dafeult/city.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
13
+
11 14
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15 18
 </head>

+ 2
- 2
template/dafeult/foot.html View File

@@ -35,9 +35,9 @@
35 35
 <!--在线客服-->
36 36
 <div class="kefu">
37 37
   <ul>
38
-    <li> <a href="http://wpa.qq.com/msgrd?v=3&uin={pboot:companyqq}&site=qq&menu=yes" target="_black" rel="nofollow"> <i class="icon-kefu-1"></i>
38
+<!--    <li> <a href="" target="_black" rel="nofollow"> <i class="icon-kefu-1"></i>
39 39
       <p>在线客服</p>
40
-      </a> </li>
40
+      </a> </li>-->
41 41
     <li> <a href="tel:{pboot:companyphone}"> <i class="icon-kefu-2"></i>
42 42
       <p>电话咨询</p>
43 43
       </a>

+ 13
- 20
template/dafeult/index.html View File

@@ -1,29 +1,22 @@
1
-
2
-{pboot:sql sql="select * from ay_site where id=1"}
3
-
4
-{pboot:titlereplace title='[sql:title]'}
5
-
6
-{/pboot:sql}
7
-
8
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
9
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
10 3
 <head>
11 4
 
12
-  <title>{pboot:sitetitle}</title>
13
-  <meta name="keywords" content="{pboot:sitekeywords}">
14
-  <meta name="description" content="{pboot:sitedescription}">
5
+<title>{pboot:sitetitle}</title>
6
+<meta name="keywords" content="{pboot:sitekeywords}">
7
+<meta name="description" content="{pboot:sitedescription}">
15 8
 
16 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
17 10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
18 11
 <meta http-equiv="Cache-Control" content="no-transform" />
19 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
20 13
 
21
-<meta name="author" content="">
22
-
23
-
14
+{pboot:sql sql="select * from ay_site where id=1"}
15
+  <meta name="author" content="{pboot:titlereplace title='[sql:title]' /}">
16
+{/pboot:sql}
24 17
 
25 18
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
26
-<link href="{pboot:sitedomain}/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
19
+<link href="/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
27 20
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
28 21
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
29 22
 </head>
@@ -115,7 +108,7 @@
115 108
       <div class="bd">
116 109
         <ul class="infoList">
117 110
           {pboot:list scode=[sort:scode] num=9 order=sorting}
118
-          <li> <a href="[list:link]">
111
+          <li> <a href="/[list:id]">
119 112
             <div class="img"> <img src="[list:ico]"> </div>
120 113
             <div class="desc">
121 114
             <h2>[list:title]<i>丨</i><span>[list:ext_zhiwei]</span></h2>
@@ -153,7 +146,7 @@
153 146
       <div class="bd">
154 147
         {pboot:list scode=[sort:scode] num=6 order=sorting}
155 148
         <ul>
156
-          <div class="anli-content"> <a href="[list:link]">
149
+          <div class="anli-content"> <a href="/[list:id]">
157 150
             <div class="img"> <img src="[list:ico]"> </div>
158 151
             <div class="desc">
159 152
               <h2>[list:title]</h2>
@@ -284,7 +277,7 @@
284 277
         <div class="bd">
285 278
           <ul>
286 279
             {pboot:list scode=[sort:scode] num=3 order=sorting}
287
-            <li> <a href="[list:link]"> <img src="[list:ico]">
280
+            <li> <a href="/[list:id]"> <img src="[list:ico]">
288 281
               <div class="desc">
289 282
                 <h2>[list:title]</h2>
290 283
                 <p>[list:description lencn=40]</p>
@@ -303,7 +296,7 @@
303 296
           <li>
304 297
             <div class="data"> <span class="d">[list:date style=d]</span> <span class="m">[list:date style=Y-m]</span> </div>
305 298
             <div class="desc">
306
-              <h2><a href="[list:link]">[list:title]</a></h2>
299
+              <h2><a href="/[list:id]">[list:title]</a></h2>
307 300
               <p>[list:description lencn=80]</p>
308 301
             </div>
309 302
           </li>

+ 9
- 6
template/dafeult/message.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
13
+
11 14
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15 18
 </head>

+ 9
- 6
template/dafeult/news.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{content:title}-{pboot:sitetitle}</title>
6
+<meta name="keywords" content="{content:keywords}">
7
+<meta name="description" content="{content:description}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{content:title}-{pboot:sitetitle}</title>
9
-<meta name="keywords" content="{content:keywords}">
10
-<meta name="description" content="{content:description}">
13
+
11 14
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15 18
 </head>

+ 11
- 7
template/dafeult/newslist.html View File

@@ -1,15 +1,19 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
9
+
4 10
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 11
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 12
 <meta http-equiv="Cache-Control" content="no-transform" />
7 13
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
14
+
11 15
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
16
+<link href="/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14 18
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15 19
 </head>
@@ -22,7 +26,7 @@
22 26
     <ul>
23 27
       {pboot:list num=12 order=sorting}
24 28
       <li>
25
-        <div class="box"> <a href="[list:link]">
29
+        <div class="box"> <a href="/[list:id]">
26 30
           <h2>[list:title]</h2>
27 31
           <div class="article-desc"> <img src="[list:ico]">
28 32
             <div class="desc">

+ 12
- 7
template/dafeult/team.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{content:title}-{pboot:sitetitle}</title>
6
+<meta name="keywords" content="{content:keywords}">
7
+<meta name="description" content="{content:description}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{content:title}-{pboot:sitetitle}</title>
9
-<meta name="keywords" content="{content:keywords}">
10
-<meta name="description" content="{content:description}">
13
+
11 14
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15 18
 </head>
@@ -45,7 +48,9 @@
45 48
           </li>
46 49
         </ul>
47 50
       </div>
48
-      <div class="tuandui-zixun"> <a href="http://wpa.qq.com/msgrd?v=3&uin={pboot:companyqq}&site=qq&menu=yes" rel="nofollow" target="_black">我想向TA咨询</a> </div>
51
+      <div class="tuandui-zixun">
52
+        <a href="/yuyue" rel="nofollow" target="_black">向TA咨询(免费评估)</a>
53
+      </div>
49 54
       <div class="sxp">
50 55
         <p class="prev">上一篇:{content:precontent}</p>
51 56
         <p class="next">下一篇:{content:nextcontent}</p>

+ 10
- 7
template/dafeult/teamlist.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
13
+
11 14
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/skin/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15 18
 </head>
@@ -22,7 +25,7 @@
22 25
     <ul>
23 26
       {pboot:list num=9 order=sorting}
24 27
       <li>
25
-        <div class="box"> <a href="[list:link]">
28
+        <div class="box"> <a href="/[list:id]">
26 29
           <div class="img"> <img src="[list:ico]"> </div>
27 30
           <div class="desc">
28 31
             <h2>[list:title]<i>丨</i><span>[list:ext_zhiwei]</span></h2>

+ 9
- 6
template/dafeult/wap/about.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
13
+
11 14
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15 18
 </head>

+ 9
- 6
template/dafeult/wap/case.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{content:title}-{pboot:sitetitle}</title>
6
+<meta name="keywords" content="{content:keywords}">
7
+<meta name="description" content="{content:description}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{content:title}-{pboot:sitetitle}</title>
9
-<meta name="keywords" content="{content:keywords}">
10
-<meta name="description" content="{content:description}">
13
+
11 14
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15 18
 </head>

+ 10
- 7
template/dafeult/wap/caselist.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
13
+
11 14
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15 18
 </head>
@@ -21,7 +24,7 @@
21 24
     <ul>
22 25
       {pboot:list num=10 order=sorting}
23 26
       <li>
24
-        <div class="box"> <a href="[list:link]">
27
+        <div class="box"> <a href="/[list:id]">
25 28
           <div class="img"> <img src="[list:ico]"> </div>
26 29
           <div class="desc">
27 30
             <h2><span>[list:title]</span></h2>

+ 9
- 6
template/dafeult/wap/city.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
13
+
11 14
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15 18
 </head>

+ 0
- 7
template/dafeult/wap/foot.html View File

@@ -2,15 +2,8 @@
2 2
 
3 3
 <div class="footer-copy">
4 4
 	
5
-	
6
-	
7 5
 
8 6
 	
9
-	
10
-	
11
-	
12
-	
13
-	
14 7
   <div class="footer-copy-content">
15 8
     <p>{pboot:sitecopyright}</p>
16 9
     <p><a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{pboot:siteicp}</a> {pboot:sitestatistical}</p>

+ 18
- 10
template/dafeult/wap/index.html View File

@@ -1,16 +1,24 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:sitetitle}</title>
6
+<meta name="keywords" content="{pboot:sitekeywords}">
7
+<meta name="description" content="{pboot:sitedescription}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:sitetitle}</title>
9
-<meta name="keywords" content="{pboot:sitekeywords}">
10
-<meta name="description" content="{pboot:sitedescription}">
11
-<meta name="author" content="BONGPHP">
13
+
14
+{pboot:sql sql="select * from ay_site where id=1"}
15
+<meta name="author" content="{pboot:titlereplace title='[sql:title]' /}">
16
+{/pboot:sql}
17
+
18
+
19
+
12 20
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
13
-<link href="{pboot:sitedomain}/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
21
+<link href="/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
14 22
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
15 23
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
16 24
 </head>
@@ -66,7 +74,7 @@
66 74
       <ul>
67 75
         {pboot:list scode=[sort:scode] num=10 order=sorting}
68 76
         <li>
69
-          <div class="box"> <a href="[list:link]">
77
+          <div class="box"> <a href="/[list:id]">
70 78
             <div class="img"> <img src="[list:ico]"> </div>
71 79
             <div class="desc">
72 80
               <h2>[list:title]</h2>
@@ -92,7 +100,7 @@
92 100
     <div class="bd">
93 101
       {pboot:list scode=[sort:scode] num=6 order=sorting}
94 102
       <ul>
95
-        <div class="anli-content"> <a href="[list:link]">
103
+        <div class="anli-content"> <a href="/[list:id]">
96 104
           <div class="img"> <img src="[list:ico]"> </div>
97 105
           <div class="desc">
98 106
             <h2><span>[list:title]</span></h2>
@@ -217,7 +225,7 @@
217 225
   <div class="list-article">
218 226
     <ul>
219 227
       {pboot:list scode=[sort:scode] num=5 order=sorting}
220
-      <li> <a href="[list:link]"> <img src="[list:ico]">
228
+      <li> <a href="/[list:id]"> <img src="[list:ico]">
221 229
         <div class="desc">
222 230
           <h2>[list:title]</h2>
223 231
           <p>[list:date style=Y-m-d]</p>

+ 9
- 6
template/dafeult/wap/message.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
13
+
11 14
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15 18
 </head>

+ 9
- 6
template/dafeult/wap/news.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{content:title}-{pboot:sitetitle}</title>
6
+<meta name="keywords" content="{content:keywords}">
7
+<meta name="description" content="{content:description}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{content:title}-{pboot:sitetitle}</title>
9
-<meta name="keywords" content="{content:keywords}">
10
-<meta name="description" content="{content:description}">
13
+
11 14
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15 18
 </head>

+ 10
- 7
template/dafeult/wap/newslist.html View File

@@ -1,15 +1,18 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
4 9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 10
 <meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 11
 <meta http-equiv="Cache-Control" content="no-transform" />
7 12
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
13
+
11 14
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
15
+<link href="/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14 17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15 18
 </head>
@@ -20,7 +23,7 @@
20 23
   <div class="list-article">
21 24
     <ul>
22 25
       {pboot:list num=10 order=sorting}
23
-      <li> <a href="[list:link]"> <img src="[list:ico]">
26
+      <li> <a href="/[list:id]"> <img src="[list:ico]">
24 27
         <div class="desc">
25 28
           <h2>[list:title]</h2>
26 29
           <p>[list:date style=Y-m-d]</p>

+ 13
- 7
template/dafeult/wap/team.html View File

@@ -1,15 +1,19 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{content:title}-{pboot:sitetitle}</title>
6
+<meta name="keywords" content="{content:keywords}">
7
+<meta name="description" content="{content:description}">
8
+
9
+
4 10
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 11
 <meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 12
 <meta http-equiv="Cache-Control" content="no-transform" />
7 13
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{content:title}-{pboot:sitetitle}</title>
9
-<meta name="keywords" content="{content:keywords}">
10
-<meta name="description" content="{content:description}">
14
+
11 15
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
16
+<link href="/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14 18
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15 19
 </head>
@@ -37,7 +41,9 @@
37 41
       </li>
38 42
     </ul>
39 43
   </div>
40
-  <div class="tuandui-zixun"> <a href="http://wpa.qq.com/msgrd?v=3&uin={pboot:companyqq}&site=qq&menu=yes" target="_black">我想向TA咨询</a> </div>
44
+  <div class="tuandui-zixun">
45
+    <a href="/yuyue" rel="nofollow" target="_black">向TA咨询(免费评估)</a>
46
+  </div>
41 47
   <div class="sxp">
42 48
     <p class="prev">上一篇:{content:precontent}</p>
43 49
     <p class="next">下一篇:{content:nextcontent}</p>

+ 11
- 7
template/dafeult/wap/teamlist.html View File

@@ -1,15 +1,19 @@
1
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
-<html xmlns="http://www.w3.org/1999/xhtml">
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
2
+<html xmlns="">
3 3
 <head>
4
+
5
+<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
6
+<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
7
+<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
8
+
9
+
4 10
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 11
 <meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6 12
 <meta http-equiv="Cache-Control" content="no-transform" />
7 13
 <meta http-equiv="Cache-Control" content="no-siteapp" />
8
-<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>
9
-<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">
10
-<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">
14
+
11 15
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
12
-<link href="{pboot:sitedomain}/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
16
+<link href="/m/css/iconfont.css" rel="stylesheet" media="screen" type="text/css" />
13 17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14 18
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15 19
 </head>
@@ -21,7 +25,7 @@
21 25
     <ul>
22 26
       {pboot:list num=10 order=sorting}
23 27
       <li>
24
-        <div class="box"> <a href="[list:link]">
28
+        <div class="box"> <a href="/[list:id]">
25 29
           <div class="img"> <img src="[list:ico]"> </div>
26 30
           <div class="desc">
27 31
             <h2>[list:title]</h2>

+ 52
- 0
新增后台左侧菜单.txt View File

@@ -0,0 +1,52 @@
1
+第一步:后台进入【菜单管理】
2
+
3
+路径(http://您的域名/admin.php?p=/Menu/index)
4
+
5
+进入后选择【菜单新增】
6
+
7
+名词解释:
8
+
9
+【父菜单】如果是顶级菜单,无需切换,如果需要放到哪个分类下,选择对应分类即可
10
+
11
+【菜单名称】设置菜单在后台显示的名称
12
+
13
+【URL】即后台菜单的路径
14
+
15
+【快捷图标】可以到Font Awesome 中文网选择自己喜欢的图标(http://www.fontawesome.com.cn/icons/area-chart/)
16
+
17
+相关内容编辑好后,点击【立即提交】就添加成功了
18
+
19
+添加成功后需要【退出登录】,然后重新登录就可以看到新增的菜单项了,完成这一步仅仅只是开始,接下来我们需要到对应文件夹下新增几个文件,让页面成功的显示出来
20
+
21
+
22
+菜单新增==>填写url
23
+
24
+ 第二步:创建MVC文件
25
+
26
+PbootCMS主要采用的是MVC模式,所以我们需要对应的增加三个文件
27
+
28
+(MVC开始是存在于桌面程序中的,M是指业务模型,V是指用户界面,C则是控制器,使用MVC的目的是将M和V的实现代码分离,从而使同一个程序可以使用不同的表现形式。)
29
+
30
+1、在路径/apps/admin/model/system/下新增Model模型文件,文件名称为 HomeSetModel.php
31
+
32
+为了方便测试,我们复制/apps/admin/model/system/SyslogModel.php 文件中的所有文件到新建好的控制器文件中
33
+
34
+把:class SyslogModel extends Model  修改为:class HomeSetModel extends Model
35
+
36
+2、在路径/apps/admin/controller/system/下新增Controller控制器文件,文件名称为 HomeSetController.php
37
+
38
+为了方便测试,我们复制/apps/admin/controller/system/SyslogController.php 文件中的所有文件到新建好的控制器文件中,本文件主要需要修改四处
39
+
40
+把:use app \admin\model\system\SyslogModel; 修改为  use app\admin\model\system\HomeSetModel;
41
+
42
+把:class SyslogController extends Controller  修改为  class HomeSetController extends Controller
43
+
44
+把:$this->model = new SyslogModel();  修改为  $this->model = new HomeSetModel();
45
+
46
+把:$this->display('system/syslog.html');  修改为  $this->display('system/homeset.html');
47
+
48
+3、在路径/apps/admin/view/default/system/下新增View页面文件,文件名称为 homeset.html
49
+
50
+我们复制/apps/admin/view/default/system/syslog.html 里面的文件到新建好的文件中
51
+
52
+以上就完成了MVC创建基础流程,当然为了更好的适配环境,我们需要将这个新建的文件加入到后台路由中,以防止部分空间因环境问题而无法访问建好的页面

+ 13
- 0
模板自定义标签.txt View File

@@ -0,0 +1,13 @@
1
+
2
+
3
+{pboot:sql sql="select * from ay_site where id=1"}
4
+    {pboot:titlereplace title='[sql:title]'}
5
+{/pboot:sql}
6
+
7
+===========================================
8
+
9
+{pboot:block id='2'/}
10
+
11
+
12
+function.php 非数据库处理
13
+ParserModel.php 数据库

Loading…
Cancel
Save