Your Name 3 months ago
parent
commit
22fe8c1bee

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

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

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

27
         $this->parser = new ParserController();
27
         $this->parser = new ParserController();
28
         $this->model = new ParserModel();
28
         $this->model = new ParserModel();
29
         $this->htmldir = $this->config('tpl_html_dir') ? $this->config('tpl_html_dir') . '/' : '';
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
         
59
         
57
         // 判断是否存在后缀
60
         // 判断是否存在后缀
58
         $url_rule_suffix = substr($this->config('url_rule_suffix'), 1);
61
         $url_rule_suffix = substr($this->config('url_rule_suffix'), 1);
62
+
59
         $suffix = false;
63
         $suffix = false;
60
         $slash = false;
64
         $slash = false;
61
         if (preg_match('/(.*)(_|\.)' . $url_rule_suffix . '$/', $path, $matchs)) {
65
         if (preg_match('/(.*)(_|\.)' . $url_rule_suffix . '$/', $path, $matchs)) {
65
             $slash = true;
69
             $slash = true;
66
             $path = trim($path, '/');
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
         $path = escape_string($path);
81
         $path = escape_string($path);
69
         $path_arr = $path ? explode('/', $path) : array();
82
         $path_arr = $path ? explode('/', $path) : array();
70
-        
83
+
71
         // 开始路由
84
         // 开始路由
72
         if (isset($path_arr) && count($path_arr) > 0 && ( in_array('tag',$path_arr) || preg_match('/^[\w\-\/]+$/', $path)) ) {
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
             switch (strtolower($path_arr[0])) {
88
             switch (strtolower($path_arr[0])) {
74
                 case 'search':
89
                 case 'search':
75
                 case 'keyword':
90
                 case 'keyword':
111
                     $spider->index();
126
                     $spider->index();
112
                     break;
127
                     break;
113
                 default:
128
                 default:
114
-                    
129
+                    //var_dump(strtolower($path_arr[0]));
115
                     $url_break_char = $this->config('url_break_char') ?: '_';
130
                     $url_break_char = $this->config('url_break_char') ?: '_';
116
                     $url_rule_content_path = $this->config('url_rule_content_path') ? true : false;
131
                     $url_rule_content_path = $this->config('url_rule_content_path') ? true : false;
117
                     $err = '';
132
                     $err = '';
125
                         define('CMS_PAGE_CUSTOM', true); // 设置走自定义CMS分页
140
                         define('CMS_PAGE_CUSTOM', true); // 设置走自定义CMS分页
126
                         $_GET['page'] = $matchs[2]; // 设置分页参数
141
                         $_GET['page'] = $matchs[2]; // 设置分页参数
127
                     } else {
142
                     } else {
128
-                        
143
+                        //var_dump(strtolower($path_arr[0]));
129
                         if ($url_rule_content_path && ! ! $data = $this->model->getContent($path)) {
144
                         if ($url_rule_content_path && ! ! $data = $this->model->getContent($path)) {
145
+                            //var_dump(strtolower($path_arr[0]));
130
                             $iscontent = true; // 短路径情况
146
                             $iscontent = true; // 短路径情况
131
                         } elseif (! $url_rule_content_path) {
147
                         } elseif (! $url_rule_content_path) {
148
+                            //var_dump(strtolower($path_arr[0]));
132
                             // 详情页至少是2级,对地址进行栏目和内容路径拆分,访问详情页
149
                             // 详情页至少是2级,对地址进行栏目和内容路径拆分,访问详情页
133
                             $part1 = dirname($path);
150
                             $part1 = dirname($path);
134
                             $part2 = basename($path);
151
                             $part2 = basename($path);
167
                         
184
                         
168
                         // 执行未配置栏目名称但是配置了模型路径的情况路径匹配
185
                         // 执行未配置栏目名称但是配置了模型路径的情况路径匹配
169
                         if (! $iscontent) {
186
                         if (! $iscontent) {
187
+                            //var_dump(strtolower($path_arr[0]));
170
                             preg_match('/^([a-zA-Z0-9\-\/]+)(' . $url_break_char . '([0-9]+))?' . $url_break_char . '([0-9]+)$/i', $path, $matchs);
188
                             preg_match('/^([a-zA-Z0-9\-\/]+)(' . $url_break_char . '([0-9]+))?' . $url_break_char . '([0-9]+)$/i', $path, $matchs);
171
                             if ($matchs[2] && $model = $this->model->checkModelUrlname($matchs[1])) {
189
                             if ($matchs[2] && $model = $this->model->checkModelUrlname($matchs[1])) {
172
                                 // 模型名称_栏目ID_分页
190
                                 // 模型名称_栏目ID_分页
191
                     }
209
                     }
192
                     
210
                     
193
                     if ($iscontent) {
211
                     if ($iscontent) {
212
+                        //var_dump(strtolower($path_arr[0]));
194
                         define('CMS_PAGE', false); // 使用普通分页处理模型
213
                         define('CMS_PAGE', false); // 使用普通分页处理模型
214
+                        //var_dump($suffix);
195
                         if (! ! $data && $suffix && ! $err) {
215
                         if (! ! $data && $suffix && ! $err) {
196
                             $this->getContentPage($data);
216
                             $this->getContentPage($data);
197
                         } else {
217
                         } else {
218
+                            //var_dump(strtolower($path_arr[0]));
198
                             _404('您访问的内容不存在,请核对后重试!');
219
                             _404('您访问的内容不存在,请核对后重试!');
199
                         }
220
                         }
200
                     } else {
221
                     } else {
211
                     }
232
                     }
212
             }
233
             }
213
         } else {
234
         } else {
235
+            //var_dump("不存在路由");
236
+
214
             if(SITE_DIR == ''){
237
             if(SITE_DIR == ''){
215
                 //一级目录
238
                 //一级目录
216
                 $this->urlJump($url_rule_type,false);
239
                 $this->urlJump($url_rule_type,false);
219
                 $this->urlJump($url_rule_type,true);
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
         $content = $this->restorePreLabel($content); // 还原不需要解析的内容
79
         $content = $this->restorePreLabel($content); // 还原不需要解析的内容
80
         $content = $this->parserReplaceKeyword($content); // 页面关键词替换
80
         $content = $this->parserReplaceKeyword($content); // 页面关键词替换
81
         $content = $this->parserTitleReplaceLabel($content); // 通用内容替换标签  这里是我新增的
81
         $content = $this->parserTitleReplaceLabel($content); // 通用内容替换标签  这里是我新增的
82
+        $content = $this->parserBLock($content); //自定义方法2
82
 
83
 
83
         // 解析个人扩展标签,升级不覆盖
84
         // 解析个人扩展标签,升级不覆盖
84
         if (file_exists(APP_PATH . '/home/controller/ExtLabelController.php')) {
85
         if (file_exists(APP_PATH . '/home/controller/ExtLabelController.php')) {
95
     //$content这里用的时文章标题,直接是字符串
96
     //$content这里用的时文章标题,直接是字符串
96
     public function parserTitleReplaceLabel($content)
97
     public function parserTitleReplaceLabel($content)
97
     {
98
     {
99
+
98
         $pattern = '/\{pboot:titlereplace(\s+[^}]+)?\}/';
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
         if (preg_match_all($pattern, $content, $matches)) {
108
         if (preg_match_all($pattern, $content, $matches)) {
101
             $count = count($matches[0]);
109
             $count = count($matches[0]);
102
             for ($i = 0; $i < $count; $i ++) {
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
                 $params = $this->parserParam($matches[0][$i]);
113
                 $params = $this->parserParam($matches[0][$i]);
104
                 $data = '';
114
                 $data = '';
105
                 foreach ($params as $key => $value) {
115
                 foreach ($params as $key => $value) {
106
                     switch ($key) {
116
                     switch ($key) {
107
                         case 'title'://这里其实可以解析很多的,不只是title,可以根据case进行不同的解析
117
                         case 'title'://这里其实可以解析很多的,不只是title,可以根据case进行不同的解析
108
                             $data = $value; // 获取到的文章title
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
                             break;
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
                 $content = str_replace($matches[0][$i], $data, $content);
172
                 $content = str_replace($matches[0][$i], $data, $content);
118
             }
173
             }
119
         }
174
         }

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

1038
             ->where("id=$id")
1038
             ->where("id=$id")
1039
             ->delete();
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
     
6
     
7
     // 授权码,多个授权码使用英文逗号隔开,如:'aaaaa,bbbbb'
7
     // 授权码,多个授权码使用英文逗号隔开,如:'aaaaa,bbbbb'
8
     'sn' => 'F5604F3B99',
8
     'sn' => 'F5604F3B99',
9
-    
9
+
10
+    //URL地址后缀名
11
+    'url_rule_suffix' => '.html',
12
+
13
+    //控制器返回数据输出方式
14
+    'return_data_type' => 'html',
15
+
10
     // 授权用户手机
16
     // 授权用户手机
11
     'sn_user' => '',
17
     'sn_user' => '',
12
     
18
     

+ 5
- 5
core/convention.php View File

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

BIN
favicon.ico View File


+ 10
- 1
git.txt View File

4
 git remote add origin http://47.120.56.77:3000/zhengxifeng/tyqngp.git
4
 git remote add origin http://47.120.56.77:3000/zhengxifeng/tyqngp.git
5
 git push -u origin master
5
 git push -u origin master
6
 
6
 
7
+===========================
8
+.gitignore规则
7
 
9
 
8
 # 忽略所有.log文件
10
 # 忽略所有.log文件
9
 *.log
11
 *.log
14
 # 忽略docs目录下的所有.md文件
16
 # 忽略docs目录下的所有.md文件
15
 docs/*.md
17
 docs/*.md
16
 # 忽略所有子目录下的.txt文件
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
-<!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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
10
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
11
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6
 <meta http-equiv="Cache-Control" content="no-transform" />
12
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
18
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15
 </head>
19
 </head>
22
     <ul>
26
     <ul>
23
       {pboot:list num=6 order=sorting}
27
       {pboot:list num=6 order=sorting}
24
       <li>
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
         <div class="desc">
30
         <div class="desc">
27
-          <div class="desc-box"> <a href="[list:link]">
31
+          <div class="desc-box"> <a href="/[list:id]">
28
             <h2>[list:title]</h2>
32
             <h2>[list:title]</h2>
29
             <i></i>
33
             <i></i>
30
             <p class="leixing">[list:ext_fangshi]</p>
34
             <p class="leixing">[list:ext_fangshi]</p>
31
             <p class="miaoshu">[list:ext_jianjie2]</p>
35
             <p class="miaoshu">[list:ext_jianjie2]</p>
32
             </a>
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
           </div>
38
           </div>
35
         </div>
39
         </div>
36
       </li>
40
       </li>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>

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

35
 <!--在线客服-->
35
 <!--在线客服-->
36
 <div class="kefu">
36
 <div class="kefu">
37
   <ul>
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
       <p>在线客服</p>
39
       <p>在线客服</p>
40
-      </a> </li>
40
+      </a> </li>-->
41
     <li> <a href="tel:{pboot:companyphone}"> <i class="icon-kefu-2"></i>
41
     <li> <a href="tel:{pboot:companyphone}"> <i class="icon-kefu-2"></i>
42
       <p>电话咨询</p>
42
       <p>电话咨询</p>
43
       </a>
43
       </a>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
17
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
18
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
19
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
20
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
28
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
21
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
29
 </head>
22
 </head>
115
       <div class="bd">
108
       <div class="bd">
116
         <ul class="infoList">
109
         <ul class="infoList">
117
           {pboot:list scode=[sort:scode] num=9 order=sorting}
110
           {pboot:list scode=[sort:scode] num=9 order=sorting}
118
-          <li> <a href="[list:link]">
111
+          <li> <a href="/[list:id]">
119
             <div class="img"> <img src="[list:ico]"> </div>
112
             <div class="img"> <img src="[list:ico]"> </div>
120
             <div class="desc">
113
             <div class="desc">
121
             <h2>[list:title]<i>丨</i><span>[list:ext_zhiwei]</span></h2>
114
             <h2>[list:title]<i>丨</i><span>[list:ext_zhiwei]</span></h2>
153
       <div class="bd">
146
       <div class="bd">
154
         {pboot:list scode=[sort:scode] num=6 order=sorting}
147
         {pboot:list scode=[sort:scode] num=6 order=sorting}
155
         <ul>
148
         <ul>
156
-          <div class="anli-content"> <a href="[list:link]">
149
+          <div class="anli-content"> <a href="/[list:id]">
157
             <div class="img"> <img src="[list:ico]"> </div>
150
             <div class="img"> <img src="[list:ico]"> </div>
158
             <div class="desc">
151
             <div class="desc">
159
               <h2>[list:title]</h2>
152
               <h2>[list:title]</h2>
284
         <div class="bd">
277
         <div class="bd">
285
           <ul>
278
           <ul>
286
             {pboot:list scode=[sort:scode] num=3 order=sorting}
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
               <div class="desc">
281
               <div class="desc">
289
                 <h2>[list:title]</h2>
282
                 <h2>[list:title]</h2>
290
                 <p>[list:description lencn=40]</p>
283
                 <p>[list:description lencn=40]</p>
303
           <li>
296
           <li>
304
             <div class="data"> <span class="d">[list:date style=d]</span> <span class="m">[list:date style=Y-m]</span> </div>
297
             <div class="data"> <span class="d">[list:date style=d]</span> <span class="m">[list:date style=Y-m]</span> </div>
305
             <div class="desc">
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
               <p>[list:description lencn=80]</p>
300
               <p>[list:description lencn=80]</p>
308
             </div>
301
             </div>
309
           </li>
302
           </li>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
10
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
11
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6
 <meta http-equiv="Cache-Control" content="no-transform" />
12
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
18
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15
 </head>
19
 </head>
22
     <ul>
26
     <ul>
23
       {pboot:list num=12 order=sorting}
27
       {pboot:list num=12 order=sorting}
24
       <li>
28
       <li>
25
-        <div class="box"> <a href="[list:link]">
29
+        <div class="box"> <a href="/[list:id]">
26
           <h2>[list:title]</h2>
30
           <h2>[list:title]</h2>
27
           <div class="article-desc"> <img src="[list:ico]">
31
           <div class="article-desc"> <img src="[list:ico]">
28
             <div class="desc">
32
             <div class="desc">

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>
45
           </li>
48
           </li>
46
         </ul>
49
         </ul>
47
       </div>
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
       <div class="sxp">
54
       <div class="sxp">
50
         <p class="prev">上一篇:{content:precontent}</p>
55
         <p class="prev">上一篇:{content:precontent}</p>
51
         <p class="next">下一篇:{content:nextcontent}</p>
56
         <p class="next">下一篇:{content:nextcontent}</p>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
10
 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
6
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/skin/css/style.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>
22
     <ul>
25
     <ul>
23
       {pboot:list num=9 order=sorting}
26
       {pboot:list num=9 order=sorting}
24
       <li>
27
       <li>
25
-        <div class="box"> <a href="[list:link]">
28
+        <div class="box"> <a href="/[list:id]">
26
           <div class="img"> <img src="[list:ico]"> </div>
29
           <div class="img"> <img src="[list:ico]"> </div>
27
           <div class="desc">
30
           <div class="desc">
28
             <h2>[list:title]<i>丨</i><span>[list:ext_zhiwei]</span></h2>
31
             <h2>[list:title]<i>丨</i><span>[list:ext_zhiwei]</span></h2>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <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">
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
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <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">
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
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <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">
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
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>
21
     <ul>
24
     <ul>
22
       {pboot:list num=10 order=sorting}
25
       {pboot:list num=10 order=sorting}
23
       <li>
26
       <li>
24
-        <div class="box"> <a href="[list:link]">
27
+        <div class="box"> <a href="/[list:id]">
25
           <div class="img"> <img src="[list:ico]"> </div>
28
           <div class="img"> <img src="[list:ico]"> </div>
26
           <div class="desc">
29
           <div class="desc">
27
             <h2><span>[list:title]</span></h2>
30
             <h2><span>[list:title]</span></h2>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <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">
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
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>

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

2
 
2
 
3
 <div class="footer-copy">
3
 <div class="footer-copy">
4
 	
4
 	
5
-	
6
-	
7
 
5
 
8
 	
6
 	
9
-	
10
-	
11
-	
12
-	
13
-	
14
   <div class="footer-copy-content">
7
   <div class="footer-copy-content">
15
     <p>{pboot:sitecopyright}</p>
8
     <p>{pboot:sitecopyright}</p>
16
     <p><a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{pboot:siteicp}</a> {pboot:sitestatistical}</p>
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
-<!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
 <head>
3
 <head>
4
+
5
+<title>{pboot:sitetitle}</title>
6
+<meta name="keywords" content="{pboot:sitekeywords}">
7
+<meta name="description" content="{pboot:sitedescription}">
8
+
4
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <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">
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
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
22
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
15
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
23
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
16
 </head>
24
 </head>
66
       <ul>
74
       <ul>
67
         {pboot:list scode=[sort:scode] num=10 order=sorting}
75
         {pboot:list scode=[sort:scode] num=10 order=sorting}
68
         <li>
76
         <li>
69
-          <div class="box"> <a href="[list:link]">
77
+          <div class="box"> <a href="/[list:id]">
70
             <div class="img"> <img src="[list:ico]"> </div>
78
             <div class="img"> <img src="[list:ico]"> </div>
71
             <div class="desc">
79
             <div class="desc">
72
               <h2>[list:title]</h2>
80
               <h2>[list:title]</h2>
92
     <div class="bd">
100
     <div class="bd">
93
       {pboot:list scode=[sort:scode] num=6 order=sorting}
101
       {pboot:list scode=[sort:scode] num=6 order=sorting}
94
       <ul>
102
       <ul>
95
-        <div class="anli-content"> <a href="[list:link]">
103
+        <div class="anli-content"> <a href="/[list:id]">
96
           <div class="img"> <img src="[list:ico]"> </div>
104
           <div class="img"> <img src="[list:ico]"> </div>
97
           <div class="desc">
105
           <div class="desc">
98
             <h2><span>[list:title]</span></h2>
106
             <h2><span>[list:title]</span></h2>
217
   <div class="list-article">
225
   <div class="list-article">
218
     <ul>
226
     <ul>
219
       {pboot:list scode=[sort:scode] num=5 order=sorting}
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
         <div class="desc">
229
         <div class="desc">
222
           <h2>[list:title]</h2>
230
           <h2>[list:title]</h2>
223
           <p>[list:date style=Y-m-d]</p>
231
           <p>[list:date style=Y-m-d]</p>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <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">
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
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <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">
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
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <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">
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
 <meta http-equiv="Cache-Control" content="no-transform" />
11
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
16
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15
 </head>
18
 </head>
20
   <div class="list-article">
23
   <div class="list-article">
21
     <ul>
24
     <ul>
22
       {pboot:list num=10 order=sorting}
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
         <div class="desc">
27
         <div class="desc">
25
           <h2>[list:title]</h2>
28
           <h2>[list:title]</h2>
26
           <p>[list:date style=Y-m-d]</p>
29
           <p>[list:date style=Y-m-d]</p>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
10
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <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">
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
 <meta http-equiv="Cache-Control" content="no-transform" />
12
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
18
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15
 </head>
19
 </head>
37
       </li>
41
       </li>
38
     </ul>
42
     </ul>
39
   </div>
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
   <div class="sxp">
47
   <div class="sxp">
42
     <p class="prev">上一篇:{content:precontent}</p>
48
     <p class="prev">上一篇:{content:precontent}</p>
43
     <p class="next">下一篇:{content:nextcontent}</p>
49
     <p class="next">下一篇:{content:nextcontent}</p>

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

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
 <head>
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
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
10
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
 <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">
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
 <meta http-equiv="Cache-Control" content="no-transform" />
12
 <meta http-equiv="Cache-Control" content="no-transform" />
7
 <meta http-equiv="Cache-Control" content="no-siteapp" />
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
 <link href="{pboot:sitedomain}/m/css/style_m.css" rel="stylesheet" media="screen" type="text/css" />
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
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
17
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/jquery1.42.min.js"></script>
14
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
18
 <script type="text/javascript" src="{pboot:sitedomain}/m/js/superslide.3.0.js"></script>
15
 </head>
19
 </head>
21
     <ul>
25
     <ul>
22
       {pboot:list num=10 order=sorting}
26
       {pboot:list num=10 order=sorting}
23
       <li>
27
       <li>
24
-        <div class="box"> <a href="[list:link]">
28
+        <div class="box"> <a href="/[list:id]">
25
           <div class="img"> <img src="[list:ico]"> </div>
29
           <div class="img"> <img src="[list:ico]"> </div>
26
           <div class="desc">
30
           <div class="desc">
27
             <h2>[list:title]</h2>
31
             <h2>[list:title]</h2>

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

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

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