
DROP TABLE IF EXISTS `phome_enewsbqtemp`;
CREATE TABLE `phome_enewsbqtemp` (
  `tempid` smallint(5) unsigned NOT NULL auto_increment,
  `tempname` varchar(60) NOT NULL default '',
  `modid` smallint(5) unsigned NOT NULL default '0',
  `temptext` text NOT NULL,
  `showdate` varchar(50) NOT NULL default '',
  `listvar` text NOT NULL,
  `subnews` smallint(5) unsigned NOT NULL default '0',
  `rownum` smallint(5) unsigned NOT NULL default '0',
  `classid` smallint(5) unsigned NOT NULL default '0',
  `docode` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`tempid`),
  KEY `classid` (`classid`)
) ENGINE=MyISAM ;


INSERT INTO `phome_enewsbqtemp` VALUES (1, '子栏目导航标签模板', 1, '| [!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]', 'Y-m-d H:i:s', '<a href=\\"[!--classurl--]\\">[!--classname--]</a> | ', 0, 1, 0, 0);
INSERT INTO `phome_enewsbqtemp` VALUES (2, '标题列表模板', 1, '[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]', 'Y-m-d H:i:s', '<li><a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a></li>', 0, 1, 0, 0);
INSERT INTO `phome_enewsbqtemp` VALUES (3, '标题+简介', 1, '[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]', 'm-d', '<li><p><strong><a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a></strong>[!--smalltext--] </p></li>', 60, 1, 0, 0);
INSERT INTO `phome_enewsbqtemp` VALUES (4, '头条相关', 1, '[!--empirenews.listtemp--]<!--list.var1-->　<!--list.var2-->[!--empirenews.listtemp--]', 'Y-m-d H:i:s', '<a href="[!--titleurl--]" title="[!--oldtitle--]">·[!--title--]</a>', 0, 2, 0, 0);
INSERT INTO `phome_enewsbqtemp` VALUES (5, '图片+标题+简介', 1, '[!--empirenews.listtemp--]\r\n<!--list.var1-->\r\n[!--empirenews.listtemp--]', 'Y-m-d H:i:s', '<table width=\\"94%\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"0\\" cellspacing=\\"6\\" class=\\"picText\\">\r\n<tr valign=\\"top\\">\r\n<td><a href=\\"[!--titleurl--]\\" target=\\"_blank\\"><img width=\\"70\\" height=\\"78\\" src=\\"[!--titlepic--]\\" alt=\\"[!--oldtitle--]\\" /></a></td>\r\n<td><strong><a href=\\"[!--titleurl--]\\" title=\\"[!--oldtitle--]\\">[!--title--]</a></strong>[!--smalltext--]</td>\r\n</tr>\r\n</table>', 56, 1, 0, 0);
INSERT INTO `phome_enewsbqtemp` VALUES (7, '循环子栏目标签', 1, '<table width="100%" border="0" cellspacing="0" cellpadding="0" class="title">\r\n<tr>\r\n<td><strong>[!--the.classname--]</strong></td>\r\n<td align="right"><a href="[!--the.classurl--]">更多&gt;&gt;</a></td>\r\n</tr>\r\n</table>\r\n<table width="100%" border="0" cellspacing="0" cellpadding="0" class="box">\r\n<tr>\r\n<td><ul>\r\n       [!--empirenews.listtemp--]\r\n       <!--list.var1-->\r\n       [!--empirenews.listtemp--]\r\n</ul>\r\n</td>\r\n</tr>\r\n</table>', 'Y-m-d', '<li><a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a> <span>[!--newstime--]</span></li>', 0, 1, 0, 0);
INSERT INTO `phome_enewsbqtemp` VALUES (8, '头条标题', 1, '[!--empirenews.listtemp--]\r\n<!--list.var1-->\r\n[!--empirenews.listtemp--]', 'Y-m-d H:i:s', '<strong><a href="[!--titleurl--]">[!--title--]</a></strong>\r\n<p>　　[!--smalltext--]</p>', 150, 1, 0, 0);
INSERT INTO `phome_enewsbqtemp` VALUES (9, '标题+软件简介', 2, '[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]', 'Y-m-d H:i:s', '<li><p><strong><a href=\\"[!--titleurl--]\\" title=\\"[!--oldtitle--]\\">[!--title--]</a></strong>[!--softsay--]</p></li>', 50, 1, 0, 0);
INSERT INTO `phome_enewsbqtemp` VALUES (10, '排行列表', 1, '[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]', 'Y-m-d H:i:s', '<li class="no[!--no.num--]"><a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a></li>', 0, 1, 0, 0);
INSERT INTO `phome_enewsbqtemp` VALUES (11, '图片集分页模板', 1, '<script type=\\"text/javascript\\">\r\n        var photosr=new Array();\r\n        [!--photor--]\r\n        function GotoPhPage(page){\r\n                page=parseInt(page);\r\n                document.getElementById(\\"showpagephoto\\").innerHTML=photosr[page];\r\n                document.ViewPhotoForm.thisphpage.value=page;\r\n                document.ViewPhotoForm.tothephpage.options[page-1].selected=true;\r\n        }\r\n        //上一页\r\n        function PriPhPage(){\r\n                var thispage=parseInt(document.ViewPhotoForm.thisphpage.value);\r\n                var num=photosr.length;\r\n                if(thispage<=1)\r\n                {\r\n                        return false;\r\n                }\r\n                GotoPhPage(thispage-1);\r\n        }\r\n        //下一页\r\n        function NextPhPage(){\r\n                var thispage=parseInt(document.ViewPhotoForm.thisphpage.value);\r\n                var num=photosr.length;\r\n                if(thispage>=num-1)\r\n                {\r\n                        return false;\r\n                }\r\n                GotoPhPage(thispage+1);\r\n        }\r\n        function PhAutoPlay(){\r\n                var sec=parseInt(document.ViewPhotoForm.autoplaysec.value);\r\n                var i;\r\n                var num=photosr.length;\r\n                for(i=1;i<=sec;i++)\r\n                {\r\n                        if(document.ViewPhotoForm.autophstop.value==0)\r\n                        {\r\n                                window.setTimeout(\\"PhAutoPlayExe(\\"+i+\\",\\"+sec+\\")\\",i*1000);\r\n                        }\r\n                        else\r\n                        {\r\n                                break;\r\n                        }\r\n                }\r\n        }\r\n        function PhAutoPlayExe(num,sec){\r\n                var t;\r\n                if(document.ViewPhotoForm.autophstop.value==1)\r\n                {\r\n                        return \\"\\";\r\n                }\r\n                if(num==sec) \r\n                {\r\n                        t=NextPhPage();\r\n                        if(t==false)\r\n                        {\r\n                                GotoPhPage(1);\r\n                        }\r\n                        PhAutoPlay();\r\n                } \r\n        }\r\n        </script>\r\n        \r\n<table width=\\"100%\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\">\r\n  <tr> \r\n    <td height=\\"25\\" id=\\"showpagephoto\\" align=\\"center\\"> \r\n      <!--list.var1-->\r\n    </td>\r\n  </tr>\r\n  <form name=\\"ViewPhotoForm\\" id=\\"ViewPhotoForm\\" method=\\"POST\\" action=\\"\\">\r\n    <tr> \r\n      <td height=\\"25\\"> <div align=\\"center\\"> \r\n          <input type=\\"button\\" name=\\"Submit\\" value=\\"上一页\\" onclick=\\"PriPhPage();\\">\r\n          &nbsp;&nbsp; \r\n          <select name=\\"tothephpage\\" onchange=\\"GotoPhPage(this.options[this.selectedIndex].value)\\">\r\n            [!--select--]\r\n          </select>\r\n          &nbsp;&nbsp; \r\n          <input type=\\"button\\" name=\\"Submit2\\" value=\\"下一页\\" onclick=\\"NextPhPage();\\">\r\n          <input name=\\"thisphpage\\" type=\\"hidden\\" value=\\"1\\">\r\n        </div></td>\r\n    </tr>\r\n    <tr>\r\n      <td height=\\"25\\"><div align=\\"center\\">\r\n          <select name=\\"autoplaysec\\">\r\n            <option value=\\"1\\">1秒</option>\r\n            <option value=\\"2\\">2秒</option>\r\n            <option value=\\"3\\" selected>3秒</option>\r\n            <option value=\\"4\\">4秒</option>\r\n            <option value=\\"5\\">5秒</option>\r\n            <option value=\\"6\\">6秒</option>\r\n            <option value=\\"7\\">7秒</option>\r\n            <option value=\\"8\\">8秒</option>\r\n            <option value=\\"9\\">9秒</option>\r\n            <option value=\\"10\\">10秒</option>\r\n          </select>\r\n                  <input name=\\"autophstop\\" type=\\"hidden\\" value=\\"0\\">\r\n          <input type=\\"button\\" name=\\"Submit3\\" value=\\"自动播放\\" onclick=\\"document.ViewPhotoForm.autophstop.value=0;PhAutoPlay();\\">\r\n          &nbsp;<input type=\\"button\\" name=\\"Submit32\\" value=\\"停止播放\\" onclick=\\"document.ViewPhotoForm.autophstop.value=1;\\">\r\n        </div></td>\r\n    </tr>\r\n  </form>\r\n</table>\r\n<table width=\\"500\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\">\r\n<tr><td>\r\n<marquee  behavior=alternate ONMOUSEOUT=\\"this.scrollDelay=1\\" ONMOUSEOVER=\\"this.scrollDelay=600\\"  scrollamount=1  SCROLLDELAY=1  border=0  scrolldelay=70  width=\\"100%\\"  align=middle>\r\n        [!--smalldh--]\r\n</marquee>\r\n</td></tr></table>', 'Y-m-d H:i:s', '<a href=\\''#ecms\\'' onclick=\\''NextPhPage();\\'' title=\\''点击进入下一张图片\\''><img src=\\''[!--picurl--]\\'' alt=\\''[!--picname--]\\'' border=1 class=\\''photoresize\\''></a><br><span style=\\''line-height=18pt\\''>[!--picname--]</span>', 0, 1, 0, 0);
INSERT INTO `phome_enewsbqtemp` VALUES (12, '栏目tabs导航', 1, '[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]', 'Y-m-d H:i:s', '<li id=\\"tabnav_btn_[!--no--]\\" onmouseover=\\"tabit(this)\\"><a href=\\"[!--classurl--]\\">[!--classname--]</a></li>', 0, 1, 0, 0);


DROP TABLE IF EXISTS `phome_enewsbqtempclass`;
CREATE TABLE `phome_enewsbqtempclass` (
  `classid` smallint(5) unsigned NOT NULL auto_increment,
  `classname` char(30) NOT NULL default '',
  PRIMARY KEY  (`classid`)
) ENGINE=MyISAM ;



DROP TABLE IF EXISTS `phome_enewsclasstemp`;
CREATE TABLE `phome_enewsclasstemp` (
  `tempid` smallint(5) unsigned NOT NULL auto_increment,
  `tempname` varchar(30) NOT NULL default '',
  `temptext` mediumtext NOT NULL,
  `classid` smallint(5) unsigned NOT NULL default '0',
  PRIMARY KEY  (`tempid`)
) ENGINE=MyISAM ;




INSERT INTO `phome_enewsclasstemp` VALUES (1, '通用一级栏目模板', '<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\">\r\n<html xmlns=\\"http://www.w3.org/1999/xhtml\\">\r\n<head>\r\n<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=utf-8\\" />\r\n<title>[!--pagetitle--] - Powered by EmpireCMS</title>\r\n<meta name=\\"keywords\\" content=\\"[!--pagekey--]\\" />\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/default/css/style.css\\" rel=\\"stylesheet\\" type=\\"text/css\\" />\r\n<script type=\\"text/javascript\\" src=\\"[!--news.url--]skin/default/js/tabs.js\\"></script>\r\n</head>\r\n<body class=\\"channle\\">\r\n[!--temp.header--]\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"10\\" cellpadding=\\"0\\">\r\n<tr valign=\\"top\\">\r\n<td class=\\"news_list\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"position\\">\r\n<tr>\r\n<td>您当前的位置：[!--newsnav--]</td>\r\n</tr>\r\n</table>\r\n[listsonclass]\\''selfinfo\\'',5,38,0,0,7,0,0[/listsonclass]</td>\r\n<td class=\\"sider\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title\\">\r\n<tr>\r\n<td><strong>推荐资讯</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"8\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td>[phomenewspic]\\''selfinfo\\'',2,4,128,90,1,20,2[/phomenewspic]\r\n</td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title margin_top\\">\r\n<tr>\r\n<td><strong>最后更新</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td><ul>\r\n[ecmsinfo]\\''selfinfo\\'',10,44,0,0,2,0[/ecmsinfo] \r\n</ul></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title margin_top\\">\r\n<tr>\r\n<td><strong>热门点击</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td><ol class=\\"rank\\">\r\n[ecmsinfo]\\''selfinfo\\'',10,40,0,1,10,0[/ecmsinfo] \r\n</ol></td>\r\n</tr>\r\n</table></td>\r\n</tr>\r\n</table>\r\n[!--temp.footer--]\r\n</body>\r\n</html>', 0);
INSERT INTO `phome_enewsclasstemp` VALUES (2, '分类信息一级栏目模板', '<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\">\r\n<html xmlns=\\"http://www.w3.org/1999/xhtml\\">\r\n<head>\r\n<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=utf-8\\" />\r\n<title>[!--pagetitle--] - Powered by EmpireCMS</title>\r\n<meta name=\\"keywords\\" content=\\"[!--pagekey--]\\" />\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/default/css/style.css\\" rel=\\"stylesheet\\" type=\\"text/css\\" />\r\n<script type=\\"text/javascript\\" src=\\"[!--news.url--]skin/default/js/tabs.js\\"></script>\r\n</head>\r\n<body class=\\"channle\\">\r\n[!--temp.header--]\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"10\\" cellpadding=\\"0\\">\r\n<tr valign=\\"top\\">\r\n<td class=\\"news_list\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"position\\">\r\n<tr>\r\n<td>您当前的位置：[!--newsnav--]</td>\r\n</tr>\r\n</table>\r\n[listsonclass]\\''selfinfo\\'',5,38,0,0,7,0,0[/listsonclass]</td>\r\n<td class=\\"sider\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title\\">\r\n<tr>\r\n<td><strong>分类信息搜索</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td><form action=\\"[!--news.url--]e/search/index.php\\" method=\\"post\\" name=\\"searchform\\" id=\\"searchform\\">\r\n<table width=\\"98%\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"0\\" cellspacing=\\"6\\">\r\n<input type=\\"hidden\\" name=\\"tbname\\" value=\\"info\\">\r\n<input type=\\"hidden\\" name=\\"tempid\\" value=\\"1\\">\r\n<tr>\r\n<td><input name=\\"keyboard\\" type=\\"text\\" class=\\"inputText\\" id=\\"keyboard\\" size=\\"18\\" />\r\n<select name=\\"show\\">\r\n<option value=\\"title,smalltext,myarea\\" selected=\\"selected\\">不限</option>\r\n<option value=\\"title\\">信息标题</option>\r\n<option value=\\"smalltext\\">信息内容</option>\r\n<option value=\\"myarea\\">所在地</option>\r\n</select></td>\r\n</tr>\r\n<tr>\r\n<td><select name=\\"classid\\">\r\n<option value=\\''9\\''>所有分类</option>\r\n<option value=\\''10\\''>|-房屋信息</option>\r\n<option value=\\''11\\'' >&nbsp;&nbsp;|-房屋求租</option>\r\n<option value=\\''12\\'' >&nbsp;&nbsp;|-房屋出租</option>\r\n<option value=\\''13\\'' >&nbsp;&nbsp;|-房屋求购</option>\r\n<option value=\\''14\\'' >&nbsp;&nbsp;|-房屋出售</option>\r\n<option value=\\''15\\'' >&nbsp;&nbsp;|-办公用房</option>\r\n<option value=\\''16\\'' >&nbsp;&nbsp;|-旺铺门面</option>\r\n<option value=\\''17\\''>|-跳蚤市场</option>\r\n<option value=\\''18\\'' >&nbsp;&nbsp;|-电脑配件</option>\r\n<option value=\\''19\\'' >&nbsp;&nbsp;|-电器数码</option>\r\n<option value=\\''20\\'' >&nbsp;&nbsp;|-通讯产品</option>\r\n<option value=\\''21\\'' >&nbsp;&nbsp;|-居家用品</option>\r\n<option value=\\''22\\''>|-同城生活</option>\r\n<option value=\\''23\\'' >&nbsp;&nbsp;|-本地新闻</option>\r\n<option value=\\''24\\'' >&nbsp;&nbsp;|-购物打折</option>\r\n<option value=\\''25\\'' >&nbsp;&nbsp;|-旅游活动</option>\r\n<option value=\\''26\\'' >&nbsp;&nbsp;|-便民告示</option>\r\n<option value=\\''27\\''>|-求职招聘</option>\r\n<option value=\\''28\\'' >&nbsp;&nbsp;|-工程技术</option>\r\n<option value=\\''29\\'' >&nbsp;&nbsp;|-财务会计</option>\r\n<option value=\\''30\\'' >&nbsp;&nbsp;|-餐饮行业</option>\r\n<option value=\\''31\\'' >&nbsp;&nbsp;|-经营管理</option>\r\n</select>\r\n<input name=\\"Submit2\\" type=\\"image\\" value=\\"搜索\\" src=\\"[!--news.url--]skin/default/images/search.gif\\" />　\r\n[<a href=\\"[!--news.url--]e/DoInfo/ChangeClass.php?mid=8\\" target=\\"_blank\\">发布信息</a>]</td>\r\n</tr>\r\n</table>\r\n</form></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title\\">\r\n<tr>\r\n<td><strong>地区导航</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td>[!--temp.infoarea--]</td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title margin_top\\">\r\n<tr>\r\n<td><strong>分类导航</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td>[!--temp.infoclassnav--]</td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title margin_top\\">\r\n<tr>\r\n<td><strong>热门点击</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td><ol class=\\"rank\\">\r\n[ecmsinfo]\\''selfinfo\\'',10,40,0,1,10,0[/ecmsinfo] \r\n</ol></td>\r\n</tr>\r\n</table></td>\r\n</tr>\r\n</table>\r\n[!--temp.footer--]\r\n</body>\r\n</html>', 0);


DROP TABLE IF EXISTS `phome_enewsclasstempclass`;
CREATE TABLE `phome_enewsclasstempclass` (
  `classid` smallint(5) unsigned NOT NULL auto_increment,
  `classname` char(30) NOT NULL default '',
  PRIMARY KEY  (`classid`)
) ENGINE=MyISAM ;


DROP TABLE IF EXISTS `phome_enewsjstemp`;
CREATE TABLE `phome_enewsjstemp` (
  `tempid` smallint(5) unsigned NOT NULL auto_increment,
  `tempname` varchar(30) NOT NULL default '',
  `temptext` mediumtext NOT NULL,
  `classid` smallint(5) unsigned NOT NULL default '0',
  `isdefault` tinyint(1) NOT NULL default '0',
  `showdate` varchar(20) NOT NULL default '',
  `modid` smallint(6) NOT NULL default '0',
  `subnews` smallint(6) NOT NULL default '0',
  `subtitle` smallint(6) NOT NULL default '0',
  PRIMARY KEY  (`tempid`),
  KEY `classid` (`classid`)
) ENGINE=MyISAM ;



INSERT INTO `phome_enewsjstemp` (`tempid`, `tempname`, `temptext`, `classid`, `isdefault`, `showdate`, `modid`, `subnews`, `subtitle`) VALUES
(1, '默认js模板', '[!--empirenews.listtemp--]<li><a href=\\"[!--titleurl--]\\" title=\\"[!--oldtitle--]\\">[!--title--]</a></li>[!--empirenews.listtemp--]', 0, 1, 'm-d', 1, 0, 32);


DROP TABLE IF EXISTS `phome_enewsjstempclass`;
CREATE TABLE `phome_enewsjstempclass` (
  `classid` smallint(5) unsigned NOT NULL auto_increment,
  `classname` varchar(30) NOT NULL default '',
  PRIMARY KEY  (`classid`)
) ENGINE=MyISAM ;



DROP TABLE IF EXISTS `phome_enewslinktmp`;
CREATE TABLE `phome_enewslinktmp` (
  `newsurl` varchar(255) NOT NULL default '',
  `checkrnd` varchar(50) NOT NULL default '',
  `linkid` bigint(20) NOT NULL auto_increment,
  `titlepic` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`linkid`),
  KEY `checkrnd` (`checkrnd`)
) ENGINE=MyISAM ;


DROP TABLE IF EXISTS `phome_enewslisttemp`;
CREATE TABLE `phome_enewslisttemp` (
  `tempid` smallint(5) unsigned NOT NULL auto_increment,
  `tempname` varchar(60) NOT NULL default '',
  `temptext` mediumtext NOT NULL,
  `subnews` smallint(6) NOT NULL default '0',
  `isdefault` tinyint(1) NOT NULL default '0',
  `listvar` text NOT NULL,
  `rownum` smallint(6) NOT NULL default '0',
  `modid` smallint(6) NOT NULL default '0',
  `showdate` varchar(50) NOT NULL default '',
  `subtitle` smallint(6) NOT NULL default '0',
  `classid` smallint(5) unsigned NOT NULL default '0',
  `docode` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`tempid`),
  KEY `classid` (`classid`)
) ENGINE=MyISAM ;



INSERT INTO `phome_enewslisttemp` VALUES (1, '静态-书籍列表', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--pagetitle--] - <?=$public_r[sitename]?></title>\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n<script src=\\"[!--news.url--]e/data/js/ajax.js\\"></script>\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>当前位置：<a href=\\"/\\">[!--sitename--]</a> > <a href=\\"[!--class.url--]\\">[!--class.name--]</a> > 书籍列表</h5>\r\n    </div>\r\n	[!--temp.search_nav--]\r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n  <!-- left -->\r\n  <div id=\\"zuo\\" class=\\"left\\">\r\n    <div class=\\"chd\\">\r\n	  <h1>[!--class.name--]</h1>\r\n	  <span>本栏目共有书籍 [totaldata]$GLOBALS[navclassid],0,0[/totaldata] 本</span>\r\n    </div>\r\n      [!--empirenews.listtemp--]\r\n        <!--list.var1-->\r\n      [!--empirenews.listtemp--]\r\n    <div class=\\"pages\\">[!--show.listpage--]</div>\r\n  </div>\r\n  <!-- right -->\r\n  <!-- right -->\r\n  <div id=\\"you\\" class=\\"right\\">\r\n    <div class=\\"yhds\\">\r\n      <h4>[!--class.name--]点击排行</h4>\r\n    </div>\r\n    <div class=\\"ycon\\">\r\n      <ul class=\\"yli\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select title,titleurl,onclick from {$dbtbpre}ecms_bookname where classid=$GLOBALS[navclassid] order by onclick desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a class=\\"<?if($i<4){echo \\''bgred\\'';}else{echo \\''shuzi\\'';}?>\\"><?if($i<10){echo \\''0\\''.$i;}else{echo $i;}?></a><a href=\\"<?=$r[titleurl]?>\\" title=\\"<?=$r[title]?>\\" target=\\"_blank\\"><?=$r[title]?></a><span><?=$r[onclick]?></span></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n    <span class=\\"blank10\\"></span>\r\n    <!-- - -->\r\n    <div class=\\"yhds\\">\r\n      <h4>[!--class.name--]下载排行</h4>\r\n    </div>\r\n    <div class=\\"ycon\\">\r\n      <ul class=\\"yli\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select title,titleurl,totaldown from {$dbtbpre}ecms_bookname where classid=$GLOBALS[navclassid] order by totaldown desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a class=\\"<?if($i<4){echo \\''bgred\\'';}else{echo \\''shuzi\\'';}?>\\"><?if($i<10){echo \\''0\\''.$i;}else{echo $i;}?></a><a href=\\"<?=$r[titleurl]?>\\" title=\\"<?=$r[title]?>\\" target=\\"_blank\\"><?=$r[title]?></a><span><?=$r[totaldown]?></span></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n  </div>\r\n  <div class=\\"clear\\"></div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n</body>\r\n</html>', 200, 0, '$tb=GetBdTbname($r[id]);\r\n$x=$empire->fetch1(\\"select title,titleurl from {$dbtbpre}ecms_\\".$tb[tbname].\\" where bookid=$r[id] order by id desc limit 1\\");\r\n$zx=\\''\\'';\r\nif($x[title]){\r\n	$nt=NewBdTime($r[newstime]);\r\n	$zx=\\''<p>最新章节：<a href=\\"\\''.$x[titleurl].\\''\\" target=\\"_blank\\">\\''.$x[title].\\''</a>\\''.$nt.\\''</p>\\'';\r\n}\r\n$tw=\\''        <div class=\\"bbox\\">\r\n          <div class=\\"bpic\\"><img src=\\"[!--titlepic--]\\" width=80 height=112 class=\\"img1\\"></div>\r\n          <div class=\\"bintro\\">\r\n            <h3><a href=\\"[!--titleurl--]\\" target=\\"_blank\\">[!--title--]</a><span>[!--full--]</span></h3>           \r\n            <div class=\\"ex\\">\r\n			  \\''.$zx.\\''\r\n			  <p>作者：[!--zuozhe.link--]&nbsp;&nbsp;人气：[!--onclick--]&nbsp;&nbsp;[!--tags--]</p>\r\n			  <p>简介：[!--smalltext--]</p>\r\n            </div>\r\n          </div>\r\n          <div class=\\"clear\\"></div>\r\n        </div>\\'';\r\n$listtemp=$tw;', 1, 1, 'Y-m-d', 0, 1, 1);
INSERT INTO `phome_enewslisttemp` VALUES (2, 'bak', '<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\">\r\n<html xmlns=\\"http://www.w3.org/1999/xhtml\\">\r\n<head>\r\n<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=utf-8\\" />\r\n<title>[!--pagetitle--] - Powered by EmpireCMS</title>\r\n<meta name=\\"keywords\\" content=\\"[!--pagekey--]\\" />\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/default/css/style.css\\" rel=\\"stylesheet\\" type=\\"text/css\\" />\r\n<script type=\\"text/javascript\\" src=\\"[!--news.url--]skin/default/js/tabs.js\\"></script>\r\n</head>\r\n<body class=\\"listpage\\">\r\n[!--temp.header--]\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"10\\" cellpadding=\\"0\\">\r\n<tr valign=\\"top\\">\r\n<td class=\\"list_content\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"position\\">\r\n<tr>\r\n<td>您当前的位置：[!--newsnav--]</td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\">\r\n<tr>\r\n<td colspan=\\"3\\" class=\\"down_list\\"><table bgcolor=\\"#FFFFFF\\" width=\\"100%\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\" style=\\"table-layout:  fixed;  word-wrap:  break-word\\">\r\n<tr align=\\"center\\">\r\n<td bgcolor=\\"#D0E7F7\\">软件名称</td>\r\n<td width=\\"76\\"  nowrap=\\"nowrap\\" bgcolor=\\"#D0E7F7\\">整理日期</td>\r\n<td width=\\"70\\" nowrap=\\"nowrap\\" bgcolor=\\"#D0E7F7\\">软件大小</td>\r\n<td width=\\"50\\" nowrap=\\"nowrap\\" bgcolor=\\"#D0E7F7\\">人气</td>\r\n<td width=\\"76\\" nowrap=\\"nowrap\\" bgcolor=\\"#D0E7F7\\">软件等级</td>\r\n</tr>\r\n[!--empirenews.listtemp--]\r\n<!--list.var1-->\r\n[!--empirenews.listtemp--]\r\n</table></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"list_page\\">\r\n<tr>\r\n<td>[!--show.page--]</td>\r\n</tr>\r\n</table></td>\r\n</tr>\r\n</table></td>\r\n<td class=\\"sider\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title\\">\r\n<tr>\r\n<td><strong>推荐下载</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td><ul>\r\n[ecmsinfo]\\''selfinfo\\'',10,44,0,2,2,0[/ecmsinfo]\r\n</ul></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title margin_top\\">\r\n<tr>\r\n<td><strong>最后更新</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td><ul>\r\n[ecmsinfo]\\''selfinfo\\'',10,44,0,0,2,0[/ecmsinfo]\r\n</ul></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title margin_top\\">\r\n<tr>\r\n<td><strong>热门点击</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td><ol class=\\"rank\\">\r\n[ecmsinfo]\\''selfinfo\\'',10,40,0,1,10,0[/ecmsinfo]\r\n</ol></td>\r\n</tr>\r\n</table></td>\r\n</tr>\r\n</table>\r\n[!--temp.footer--]\r\n</body>\r\n</html>', 200, 0, '<tr> \r\n    <td width=\\"290\\"><img src=\\"[!--news.url--]e/data/images/list.gif\\" width=\\"11\\" height=\\"11\\" border=\\"0\\" /> <b>[!--class.name--]<a href=\\"[!--titleurl--]\\">[!--title--]</a></b></td>\r\n    <td align=\\"center\\" nowrap=\\"nowrap\\">[!--newstime--]</td>\r\n    <td align=\\"center\\" nowrap=\\"nowrap\\">[!--filesize--]</td>\r\n    <td align=\\"center\\" nowrap=\\"nowrap\\">[!--totaldown--]</td>\r\n    <td align=\\"center\\" nowrap=\\"nowrap\\"><img src=\\"[!--news.url--]e/data/images/[!--star--]star.gif\\" border=\\"0\\" /></td>\r\n  </tr>\r\n  <tr valign=\\"top\\"> \r\n    <td colspan=\\"5\\" class=\\"softsay\\">[!--softsay--]</td>\r\n</tr>\r\n  <tr> \r\n    <td colspan=\\"5\\"><font color=\\"green\\">界面语言：</font>[!--language--]  <font color=\\"green\\">软件类型：</font>[!--softtype--]  <font color=\\"green\\">授权方式：</font>[!--softsq--]  <font color=\\"green\\">运行平台：</font>[!--softfj--]</td>\r\n</tr></td></tr>\r\n  <tr> \r\n    <td colspan=\\"5\\"><img src=\\"[!--news.url--]e/data/images/line.gif\\" width=\\"100%\\" height=\\"9\\" /></td>\r\n</tr>', 1, 2, 'Y-m-d', 0, 5, 0);
INSERT INTO `phome_enewslisttemp` VALUES (3, '文章列表', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--pagetitle--] -  <?=$public_r[sitename]?></title>\r\n<meta name=\\"description\\" content=\\"\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>当前位置：<a href=\\"/\\"><?=$public_r[sitename]?></a> > [!--class.name--]</h5>\r\n    </div>\r\n	[!--temp.search_nav--]\r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n  <div id=\\"main\\">\r\n  <!-- left -->\r\n    <div id=\\"zuo2\\" class=\\"left mg10\\">\r\n      <div class=\\"con2\\">\r\n[!--empirenews.listtemp--]<ul class=\\"loopul\\">\r\n<!--list.var1-->\r\n<!--list.var2-->\r\n<!--list.var3-->\r\n<!--list.var4-->\r\n<!--list.var5--></ul>\r\n[!--empirenews.listtemp--]\r\n<div class=\\"pages\\">[!--show.listpage--]</div>\r\n      </div>\r\n    </div>\r\n    <!-- right -->\r\n    <div id=\\"you2\\" class=\\"right\\">\r\n      <div class=\\"hds\\">\r\n        <h4>[!--class.name--]本周排行</h4>\r\n      </div>\r\n      <div class=\\"con\\">\r\n        <ul class=\\"norl\\">\r\n          [e:loop={\\''selfinfo\\'',15,1,0,\\"newstime>UNIX_TIMESTAMP()-86400*7\\"}]\r\n          <li><a href=\\"<?=$bqsr[\\''titleurl\\'']?>\\" title=\\"<?=$bqr[\\''title\\'']?>\\" target=\\"_blank\\"><?=$bqr[\\''title\\'']?></a><span><?=$bqr[\\''onclick\\'']?></span></li>\r\n          [/e:loop]\r\n        </ul>\r\n      </div>\r\n      <span class=\\"blank10\\"></span>\r\n      <!-- - -->\r\n      <div class=\\"hds\\">\r\n        <h4>[!--class.name--]本月排行</h4>\r\n      </div>\r\n      <div class=\\"con\\">\r\n        <ul class=\\"norl\\">\r\n          [e:loop={\\''selfinfo\\'',15,1,0,\\"newstime>UNIX_TIMESTAMP()-86400*30\\"}]\r\n          <li><a href=\\"<?=$bqsr[\\''titleurl\\'']?>\\" title=\\"<?=$bqr[\\''title\\'']?>\\" target=\\"_blank\\"><?=$bqr[\\''title\\'']?></a><span><?=$bqr[\\''onclick\\'']?></span></li>\r\n          [/e:loop]\r\n        </ul>\r\n      </div>\r\n      <span class=\\"blank10\\"></span>\r\n      <!-- - -->\r\n      <div class=\\"hds\\">\r\n        <h4>[!--class.name--]总排行</h4>\r\n      </div>\r\n      <div class=\\"con\\">\r\n        <ul class=\\"norl\\">\r\n          [e:loop={\\''selfinfo\\'',15,1,0}]\r\n          <li><a href=\\"<?=$bqsr[\\''titleurl\\'']?>\\" title=\\"<?=$bqr[\\''title\\'']?>\\" target=\\"_blank\\"><?=$bqr[\\''title\\'']?></a><span><?=$bqr[\\''onclick\\'']?></span></li>\r\n          [/e:loop]\r\n        </ul>\r\n      </div>      \r\n    </div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n</body>\r\n</html>', 0, 0, '<li><a href=\\"[!--titleurl--]\\" title=\\"[!--oldtitle--]\\">[!--title--]</a> <span>[!--newstime--]</span></li>', 5, 3, 'Y-m-d H:i:s', 22, 4, 0);
INSERT INTO `phome_enewslisttemp` VALUES (4, 'bak', '<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\">\r\n<html xmlns=\\"http://www.w3.org/1999/xhtml\\">\r\n<head>\r\n<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=utf-8\\" />\r\n<title>[!--pagetitle--] - Powered by EmpireCMS</title>\r\n<meta name=\\"keywords\\" content=\\"[!--pagekey--]\\" />\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/default/css/style.css\\" rel=\\"stylesheet\\" type=\\"text/css\\" />\r\n<script type=\\"text/javascript\\" src=\\"[!--news.url--]skin/default/js/tabs.js\\"></script>\r\n</head>\r\n<body class=\\"listpage\\">\r\n[!--temp.header--]\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"10\\" cellpadding=\\"0\\">\r\n<tr valign=\\"top\\">\r\n<td class=\\"list_content\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"position\\">\r\n<tr>\r\n<td>您当前的位置：[!--newsnav--]</td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\">\r\n<tr>\r\n<td colspan=\\"3\\" class=\\"flash_list\\">\r\n[!--empirenews.listtemp--]\r\n<!--list.var1-->\r\n[!--empirenews.listtemp--]\r\n</td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"list_page\\">\r\n<tr>\r\n<td>[!--show.page--]</td>\r\n</tr>\r\n</table></td>\r\n</tr>\r\n</table></td>\r\n<td class=\\"sider\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title\\">\r\n<tr>\r\n<td><strong>推荐下载</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"8\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td>[phomenewspic]\\''selfinfo\\'',2,4,128,90,1,20,2[/phomenewspic] </td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title margin_top\\">\r\n<tr>\r\n<td><strong>最后更新</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td><ul>\r\n[ecmsinfo]\\''selfinfo\\'',10,44,0,0,2,0[/ecmsinfo]\r\n</ul></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"title margin_top\\">\r\n<tr>\r\n<td><strong>热门点击</strong></td>\r\n</tr>\r\n</table>\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n<tr>\r\n<td><ol class=\\"rank\\">\r\n[ecmsinfo]\\''selfinfo\\'',10,40,0,1,10,0[/ecmsinfo]\r\n</ol></td>\r\n</tr>\r\n</table></td>\r\n</tr>\r\n</table>\r\n[!--temp.footer--]\r\n</body>\r\n</html>', 200, 0, '<table width=\\"100%\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"8\\" class=\\"line_bottom\\">\r\n<tr valign=\\"top\\">\r\n<td width=\\"200\\" align=\\"center\\"><a href=\\"[!--titleurl--]\\"><img src=\\"[!--titlepic--]\\" width=\\"200\\" height=\\"150\\" border=\\"0\\" /></a></td>\r\n<td><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\">\r\n<tr>\r\n<td width=\\"70%\\" height=\\"26\\" style=\\"font-size:14px\\"><strong><a href=\\"[!--titleurl--]\\">[!--title--]</a></strong></td>\r\n<td width=\\"30%\\"><div align=\\"right\\">[!--newstime--]</div></td>\r\n</tr>\r\n<tr>\r\n<td colspan=\\"2\\"class=\\"flashsay\\">简介：[!--flashsay--]</td>\r\n</tr>\r\n<tr>\r\n<td height=\\"26\\" colspan=\\"2\\">作者：[!--flashwriter--]　文件大小：[!--filesize--]　作品人气：[!--onclick--] </td>\r\n</tr>\r\n</table></td>\r\n</tr>\r\n</table>', 1, 1, 'Y-m-d', 0, 5, 0);
INSERT INTO `phome_enewslisttemp` VALUES (5, 'TAG内容', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--pagetitle--] - [!--sitename--]</title>\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>当前位置：<a href=\\"[!--news.url--]\\">[!--sitename--]</a> > <a href=\\"[!--news.url--]tags/\\">全部专题</a> >  [!--pagetitle--]</h5>\r\n    </div>\r\n	[!--temp.search_nav--]\r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n  <div class=\\"wintro\\">\r\n    <h1>[!--pagetitle--]</h1>\r\n    <div class=\\"win\\">\r\n     [!--pagedes--]\r\n    </div>\r\n  </div>\r\n  <div class=\\"blank10\\"></div>\r\n  <!-- left -->\r\n  <div id=\\"zuo\\" class=\\"left\\">\r\n      [!--empirenews.listtemp--]\r\n        <!--list.var1-->\r\n      [!--empirenews.listtemp--]\r\n    <div class=\\"pages\\">[!--show.listpage--]</div>\r\n  </div>\r\n  <!-- right -->\r\n  <!-- right -->\r\n  <div id=\\"you\\" class=\\"right\\">\r\n\r\n    <div class=\\"bkhd\\">\r\n      <h4>热门作家</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"zpl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select * from {$dbtbpre}enewswriter where isgood>=0 order by isgood desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a href=\\"[!--news.url--]writer/<?=$r[wid]?>/\\" title=\\"<?=$r[wname]?>\\" target=\\"_blank\\"><?=$r[wname]?></a></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n    <span class=\\"blank10\\"></span>\r\n    <!-- - -->\r\n    <div class=\\"bkhd\\">\r\n      <h4>热门作品</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"zpl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select * from {$dbtbpre}ecms_bookname order by onclick desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a href=\\"<?=$r[titleurl]?>\\" title=\\"<?=$r[title]?>\\" target=\\"_blank\\"><?=$r[title]?></a></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n\r\n  </div>\r\n  <div class=\\"clear\\"></div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n\r\n</body>\r\n</html>', 100, 0, '        <div class=\\"bbox\\">\r\n          <div class=\\"bpic\\"><img src=\\"[!--book.pic--]\\" width=80 height=112 class=\\"img1\\"></div>\r\n          <div class=\\"bintro\\">\r\n            <h3><a href=\\"[!--book.url--]\\" target=\\"_blank\\">[!--book.name--]</a></h3>           \r\n            <div class=\\"ex\\">\r\n	<p>简介：[!--book.intro--]</p>\r\n            </div>\r\n          </div>\r\n          <div class=\\"clear\\"></div>\r\n        </div>', 1, 1, 'Y-m-d', 0, 3, 0);
INSERT INTO `phome_enewslisttemp` VALUES (10, '动态-书籍列表', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--pagetitle--] - <?=$public_r[sitename]?></title>\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n<script src=\\"[!--news.url--]e/data/js/ajax.js\\"></script>\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>当前位置：<a href=\\"/\\">[!--sitename--]</a> > <a href=\\"[!--class.url--]\\">[!--class.name--]</a> > 书籍列表</h5>\r\n    </div>\r\n	[!--temp.search_nav--]\r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n  <!-- left -->\r\n  <div id=\\"zuo\\" class=\\"left\\">\r\n    <div class=\\"chd\\">\r\n	  <h1>[!--class.name--]</h1>\r\n	  <span>本栏目共有书籍 [totaldata]$GLOBALS[navclassid],0,0[/totaldata] 本</span>\r\n    </div>\r\n      [!--empirenews.listtemp--]\r\n        <!--list.var1-->\r\n      [!--empirenews.listtemp--]\r\n    <div class=\\"pages\\">[!--show.listpage--]</div>\r\n  </div>\r\n  <!-- right -->\r\n  <!-- right -->\r\n  <div id=\\"you\\" class=\\"right\\">\r\n    <div class=\\"yhds\\">\r\n      <h4>[!--class.name--]点击排行</h4>\r\n    </div>\r\n    <div class=\\"ycon\\">\r\n      <ul class=\\"yli\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select title,titleurl,onclick from {$dbtbpre}ecms_bookname where classid=$GLOBALS[navclassid] order by onclick desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a class=\\"<?if($i<4){echo \\''bgred\\'';}else{echo \\''shuzi\\'';}?>\\"><?if($i<10){echo \\''0\\''.$i;}else{echo $i;}?></a><a href=\\"<?=$r[titleurl]?>\\" title=\\"<?=$r[title]?>\\" target=\\"_blank\\"><?=$r[title]?></a><span><?=$r[onclick]?></span></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n    <span class=\\"blank10\\"></span>\r\n    <!-- - -->\r\n    <div class=\\"yhds\\">\r\n      <h4>[!--class.name--]下载排行</h4>\r\n    </div>\r\n    <div class=\\"ycon\\">\r\n      <ul class=\\"yli\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select title,titleurl,totaldown from {$dbtbpre}ecms_bookname where classid=$GLOBALS[navclassid] order by totaldown desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a class=\\"<?if($i<4){echo \\''bgred\\'';}else{echo \\''shuzi\\'';}?>\\"><?if($i<10){echo \\''0\\''.$i;}else{echo $i;}?></a><a href=\\"<?=$r[titleurl]?>\\" title=\\"<?=$r[title]?>\\" target=\\"_blank\\"><?=$r[title]?></a><span><?=$r[totaldown]?></span></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n  </div>\r\n  <div class=\\"clear\\"></div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n\r\n</body>\r\n</html>', 0, 0, '$tb=GetBdTbname($r[id]);\r\n$x=$empire->fetch1(\\"select title,titleurl from {$dbtbpre}ecms_\\".$tb[tbname].\\" where bookid=$r[id] order by id desc limit 1\\");\r\n$zx=\\''\\'';\r\nif($x[title]){\r\n	$nt=NewBdTime($r[newstime]);\r\n	$zx=\\''<p>最新章节：<a href=\\"\\''.$x[titleurl].\\''\\" target=\\"_blank\\">\\''.$x[title].\\''</a>\\''.$nt.\\''</p>\\'';\r\n}\r\n$tw=\\''        <div class=\\"bbox\\">\r\n          <div class=\\"bpic\\"><img src=\\"[!--titlepic--]\\" width=80 height=112 class=\\"img1\\"></div>\r\n          <div class=\\"bintro\\">\r\n            <h3><a href=\\"[!--titleurl--]\\" target=\\"_blank\\">[!--title--]</a><span>[!--full--]</span></h3>           \r\n            <div class=\\"ex\\">\r\n			  \\''.$zx.\\''\r\n			  <p>作者：[!--zuozhe.link--]&nbsp;&nbsp;人气：[!--onclick--]&nbsp;&nbsp;[!--tags--]</p>\r\n			  <p>简介：[!--smalltext--]</p>\r\n            </div>\r\n          </div>\r\n          <div class=\\"clear\\"></div>\r\n        </div>\\'';\r\n$listtemp=$tw;', 1, 1, 'Y-m-d', 0, 1, 1);
INSERT INTO `phome_enewslisttemp` VALUES (6, '作者文集', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--pagetitle--] - [!--sitename--]</title>\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>当前位置：<a href=\\"[!--news.url--]\\">[!--sitename--]</a> > <a href=\\"[!--news.url--]writer/\\">全部作家</a> > <a href=\\"[!--class.url--]\\">[!--class.name--]</a> > [!--pagetitle--]作品列表</h5>\r\n    </div>\r\n	[!--temp.search_nav--]\r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n  <div class=\\"wintro\\">\r\n    <h1>[!--pagetitle--]作品集</h1>\r\n    <div class=\\"win\\">\r\n		[!--zuozhe.intro--]\r\n    </div>\r\n  </div>\r\n  <div class=\\"blank10\\"></div>\r\n  <!-- left -->\r\n  <div id=\\"zuo\\" class=\\"left\\">\r\n      [!--empirenews.listtemp--]\r\n        <!--list.var1-->\r\n      [!--empirenews.listtemp--]\r\n    <div class=\\"pages\\">[!--show.listpage--]</div>\r\n  </div>\r\n  <!-- right -->\r\n  <!-- right -->\r\n  <div id=\\"you\\" class=\\"right\\">\r\n    <div class=\\"bkhd\\">\r\n      <h4>相关作家</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"zpl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select * from {$dbtbpre}enewswriter where classid=11 order by wid desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a href=\\"[!--news.url--]writer/<?=$r[wid]?>/\\" title=\\"<?=$r[wname]?>\\" target=\\"_blank\\"><?=$r[wname]?></a></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n    <span class=\\"blank10\\"></span>\r\n    <!-- - -->\r\n    <div class=\\"bkhd\\">\r\n      <h4>热门作家</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"zpl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select * from {$dbtbpre}enewswriter where isgood>=0 order by isgood desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a href=\\"[!--news.url--]writer/<?=$r[wid]?>/\\" title=\\"<?=$r[wname]?>\\" target=\\"_blank\\"><?=$r[wname]?></a></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n  </div>\r\n  <div class=\\"clear\\"></div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n\r\n</body>\r\n</html>', 120, 0, '        <div class=\\"bbox\\">\r\n          <div class=\\"bpic\\"><img src=\\"[!--book.pic--]\\" width=80 height=112 class=\\"img1\\"></div>\r\n          <div class=\\"bintro\\">\r\n            <h3><a href=\\"[!--book.url--]\\" target=\\"_blank\\">[!--book.name--]</a></h3>           \r\n            <div class=\\"ex\\">\r\n	<p>简介：[!--book.intro--]</p>\r\n            </div>\r\n          </div>\r\n          <div class=\\"clear\\"></div>\r\n        </div>', 1, 1, 'Y-m-d', 0, 2, 0);
INSERT INTO `phome_enewslisttemp` VALUES (7, '作者分类', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--pagetitle--] - [!--sitename--]</title>\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>当前位置：<a href=\\"[!--news.url--]\\">[!--sitename--]</a> > <a href=\\"[!--news.url--]writer/\\">作者列表</a> > [!--pagetitle--]</h5>\r\n    </div>\r\n	[!--temp.search_nav--]\r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n  <div class=\\"wclas\\">\r\n<?\r\n$wmsql=$empire->query(\\"select * from {$dbtbpre}enewswriterclass order by classid desc\\");\r\nwhile($wmr=$empire->fetch($wmsql)){\r\n	$mu=$public_r[newsurl].\\''writer/\\''.$wmr[filename].\\''.html\\'';\r\n?>\r\n    <a href=\\"<?=$mu?>\\"><?=$wmr[classname]?></a>\r\n<?\r\n}\r\n?>\r\n  </div>\r\n\r\n  <!-- left -->\r\n  [!--empirenews.listtemp--]\r\n  <!--list.var1-->\r\n  [!--empirenews.listtemp--]\r\n    <div class=\\"pages\\">[!--show.listpage--]</div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n</body>\r\n</html>\r\n\r\n', 0, 0, '$len=strlen($r[wbook]);\r\n$str0=substr($r[wbook],0,-1);\r\n$gg=\\''\\'';\r\nif($len<2){\r\n    $gg=\\''暂无书籍\\'';\r\n}\r\nif($len>1){\r\n    $str=explode(\\''|\\'',$str0);\r\n    for($i=0;$i<count($str);$i++){\r\n        $bookid=$str[$i];\r\n        $gg.=GetBK($bookid);\r\n    }\r\n}\r\n\r\n$listtemp=\\''\r\n<div class=\\"sbintro\\">\r\n  <h3><a href=\\"[!--zuozhe.url--]\\">[!--zuozhe.name--]</a><span>[!--zuozhe.booknum--]部</span></h3>\r\n  <div class=\\"sbii\\">[!--zuozhe.intro--]</div>\r\n  <div class=\\"sbzp\\">\\''.$gg.\\''</div>\r\n  <div class=\\"clear\\"></div>\r\n</div>\\'';', 1, 1, 'Y-m-d', 0, 2, 1);
INSERT INTO `phome_enewslisttemp` VALUES (8, '作者首页', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--pagetitle--] - [!--sitename--]</title>\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>当前位置：<a href=\\"[!--news.url--]\\">[!--sitename--]</a> > <a href=\\"[!--news.url--]writer/\\">作者列表</a> > [!--pagetitle--]</h5>\r\n    </div>\r\n	[!--temp.search_nav--]\r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n  <div class=\\"wclas\\">\r\n<?\r\n$wmsql=$empire->query(\\"select * from {$dbtbpre}enewswriterclass order by classid desc\\");\r\nwhile($wmr=$empire->fetch($wmsql)){\r\n	$mu=$public_r[newsurl].\\''writer/\\''.$wmr[filename].\\''.html\\'';\r\n?>\r\n    <a href=\\"<?=$mu?>\\"><?=$wmr[classname]?></a>\r\n<?\r\n}\r\n?>\r\n  </div>\r\n\r\n  <!-- left -->\r\n  [!--empirenews.listtemp--]\r\n  <!--list.var1-->\r\n  [!--empirenews.listtemp--]\r\n    <div class=\\"pages\\">[!--show.listpage--]</div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n</body>\r\n</html>\r\n\r\n', 0, 0, '$len=strlen($r[wbook]);\r\n$str0=substr($r[wbook],0,-1);\r\n$gg=\\''\\'';\r\nif($len<2){\r\n    $gg=\\''暂无书籍\\'';\r\n}\r\nif($len>1){\r\n    $str=explode(\\''|\\'',$str0);\r\n    for($i=0;$i<count($str);$i++){\r\n        $bookid=$str[$i];\r\n        $gg.=GetBK($bookid);\r\n    }\r\n}\r\n\r\n$listtemp=\\''\r\n<div class=\\"sbintro\\">\r\n  <h3><a href=\\"[!--zuozhe.url--]\\">[!--zuozhe.name--]</a><span>[!--zuozhe.booknum--]部</span></h3>\r\n  <div class=\\"sbii\\">[!--zuozhe.intro--]</div>\r\n  <div class=\\"sbzp\\">\\''.$gg.\\''</div>\r\n  <div class=\\"clear\\"></div>\r\n</div>\\'';', 1, 1, 'Y-m-d', 0, 2, 1);
INSERT INTO `phome_enewslisttemp` VALUES (12, '作者文集2', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--pagetitle--] - [!--sitename--]</title>\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>当前位置：<a href=\\"[!--news.url--]\\">[!--sitename--]</a> > <a href=\\"[!--news.url--]writer/\\">全部作家</a> > <a href=\\"[!--class.url--]\\">[!--class.name--]</a> > [!--pagetitle--]作品列表</h5>\r\n    </div>\r\n	[!--temp.search_nav--]\r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n  <div class=\\"wintro\\">\r\n    <h1>[!--pagetitle--]作品集</h1>\r\n    <div class=\\"win\\">\r\n		[!--zuozhe.intro--]\r\n    </div>\r\n  </div>\r\n  <div class=\\"blank10\\"></div>\r\n  <!-- left -->\r\n  <div id=\\"zuo\\" class=\\"left\\">\r\n    <div class=\\"wzlb\\">\r\n	  <table cellspacing=0 cellpadding=0 border=0>\r\n	    <tr><th valign=top colspan=4><strong>[!--pagetitle--]作品列表</strong></th></tr>\r\n		<tr>\r\n		<?\r\n		  $tnum=$empire->gettotal(\\"select count(*) as total from {$dbtbpre}ecms_bookname_index where wid=\\".$GLOBALS[\\''wi\\''][wid].\\" and checked=1\\");\r\n		  $kk=0;\r\n\r\n		$bu=\\''\\'';\r\n		$y=$tnum%4;\r\n		if($y){\r\n		  $k=4-$y;\r\n		  for($m=0;$m<$k;$m++){\r\n		   $bu.=\\''<td class=\\"wwlb\\">&nbsp;</td>\\'';\r\n		  }\r\n		}\r\n\r\n		  $sql=$empire->query(\\"select id from {$dbtbpre}ecms_bookname_index where wid=\\".$GLOBALS[\\''wi\\''][wid].\\" and checked=1 order by id desc\\");\r\n		  while($r=$empire->fetch($sql)){\r\n			  $kk+=1;\r\n			  $infor=$empire->fetch1(\\"select title,titleurl from {$dbtbpre}ecms_bookname where id=\\''$r[id]\\'' limit 1\\");\r\n		?>\r\n	   <td class=\\"wwlb\\"><a href=\\"<?=$infor[titleurl]?>\\" title=\\"<?=$infor[title]?>\\" target=\\"_blank\\"><?=$infor[title]?></a></td>\r\n	   <?	   \r\n	   if($kk%4==0){echo \\''</tr><tr>\\'';}\r\n		  }\r\n	   echo $bu;\r\n	   ?>\r\n	   </tr>\r\n	  </table>\r\n	</div>\r\n  </div>\r\n  <!-- right -->\r\n  <!-- right -->\r\n  <div id=\\"you\\" class=\\"right\\">\r\n    <div class=\\"bkhd\\">\r\n      <h4>相关作家</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"zpl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select * from {$dbtbpre}enewswriter where classid=\\".$GLOBALS[\\''wi\\''][classid].\\" order by wid desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a href=\\"[!--news.url--]writer/<?=$r[wid]?>/\\" title=\\"<?=$r[wname]?>\\" target=\\"_blank\\"><?=$r[wname]?></a></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n    <span class=\\"blank10\\"></span>\r\n    <!-- - -->\r\n    <div class=\\"bkhd\\">\r\n      <h4>热门作家</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"zpl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select * from {$dbtbpre}enewswriter where isgood>=0 order by isgood desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a href=\\"[!--news.url--]writer/<?=$r[wid]?>/\\" title=\\"<?=$r[wname]?>\\" target=\\"_blank\\"><?=$r[wname]?></a></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n  </div>\r\n  <div class=\\"clear\\"></div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n\r\n</body>\r\n</html>', 120, 0, ' 3', 0, 1, 'Y-m-d', 0, 2, 0);


DROP TABLE IF EXISTS `phome_enewslisttempclass`;
CREATE TABLE `phome_enewslisttempclass` (
  `classid` smallint(5) unsigned NOT NULL auto_increment,
  `classname` varchar(30) NOT NULL default '',
  PRIMARY KEY  (`classid`)
) ENGINE=MyISAM ;



INSERT INTO `phome_enewslisttempclass` VALUES (1, '书籍列表模板');
INSERT INTO `phome_enewslisttempclass` VALUES (2, '作者相关模板');
INSERT INTO `phome_enewslisttempclass` VALUES (3, 'TAG相关模板');
INSERT INTO `phome_enewslisttempclass` VALUES (4, '文章列表模板');
INSERT INTO `phome_enewslisttempclass` VALUES (5, '其他列表模板');


DROP TABLE IF EXISTS `phome_enewsnewstemp`;
CREATE TABLE `phome_enewsnewstemp` (
  `tempid` smallint(5) unsigned NOT NULL auto_increment,
  `tempname` varchar(60) NOT NULL default '',
  `isdefault` tinyint(1) NOT NULL default '0',
  `temptext` mediumtext NOT NULL,
  `showdate` varchar(50) NOT NULL default '',
  `modid` smallint(6) NOT NULL default '0',
  `classid` smallint(5) unsigned NOT NULL default '0',
  PRIMARY KEY  (`tempid`),
  KEY `classid` (`classid`)
) ENGINE=MyISAM ;



INSERT INTO `phome_enewsnewstemp` VALUES (1, '静态-BookName', 0, '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--zuozhe.name--]《[!--title--]》TXT下载,《[!--title--]》在线阅读 - [!--sitename--]</title>\r\n<meta name=\\"description\\" content=\\"书名:[!--title--],作者:[!--zuozhe.name--],分类:[!--class.name--],更新时间:[!--newstime--],[!--sitename--]提供《[!--title--]》在线阅读和TXT下载\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n<script src=\\"[!--news.url--]e/data/js/ajax.js\\"></script>\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>当前位置：<a href=\\"[!--news.url--]\\">首页</a> > <a href=\\"[!--class.url--]\\">[!--class.name--]</a> > 《[!--title--]》在线阅读</h5>\r\n    </div>\r\n    [!--temp.search_nav--]\r\n    <div class=\\"clear\\"></div>\r\n  </div>\r\n</div>\r\n<div class=\\"w990 bbg\\">\r\n  <!-- left -->\r\n  <div id=\\"zuo\\" class=\\"left mg10\\">\r\n    <div class=\\"jieshao\\">\r\n      <div class=\\"bktitle\\">\r\n        <h1 >《[!--title--]》</h1> <? if($GLOBALS[\\''index\\''][wid]){?>作者：<a href=\\"[!--zuozhe.url--]\\" title=\\"[!--zuozhe.name--]作品集\\">[!--zuozhe.name--]</a><?}?>\r\n      </div>      \r\n      <? $byou=\\''y100\\''; if($GLOBALS[\\''navinfor\\''][titlepic]){$byou=\\''yf\\''; echo \\''<img src=\\"\\''.$GLOBALS[\\''navinfor\\''][titlepic].\\''\\" alt=\\"\\''.$GLOBALS[\\''navinfor\\''][title].\\''\\" class=\\"img1\\">\\'';} ?>\r\n      <div class=\\"<?=$byou?>\\">\r\n        <div class=\\"zhaungtai\\">\r\n         分类：<span class=\\"blue\\"><a href=\\"[!--class.url--]\\">[!--class.name--]</a></span>\r\n         状态：<span class=\\"blue\\"><? if($GLOBALS[\\''navinfor\\''][full]){echo \\"连载中\\";}else{echo \\"完本\\";}?></span>\r\n		 字数：<span class=\\"blue\\"><?=Zishu($GLOBALS[\\''navinfor\\''][id])?></span>\r\n         推荐：<span class=\\"blue\\"><script type=\\"text/javascript\\" src=\\"[!--news.url--]e/public/ViewClick/?classid=[!--class.id--]&id=[!--id--]&down=5\\"></script>次</span> \r\n         收藏：<span class=\\"blue\\"><?=ShouCang($GLOBALS[\\''navinfor\\''][id])?>人</span> \r\n         点击量：<span class=\\"red2\\"><script src=[!--news.url--]e/public/ViewClick/?classid=[!--class.id--]&id=[!--id--]&addclick=1></script></span>\r\n        </div>\r\n        <div class=\\"neir\\">\r\n        [!--newstext--]\r\n      <? if($GLOBALS[\\''istags\\'']){?> TAGS：[!--tags--] <?}?>\r\n        </div>\r\n        <div class=\\"butt\\">\r\n            <a href=\\"\\"><img src=\\"[!--news.url--]skin/v3/im/01.gif\\" alt=\\"点击阅读\\"></a>\r\n            <a href=\\"[!--news.url--]e/member/fava/add/?classid=[!--class.id--]&amp;id=[!--id--]\\"><img src=\\"[!--news.url--]skin/v3/im/02.gif\\" alt=\\"加入收藏\\"></a>\r\n            <a href=\\"JavaScript:makeRequest(\\''[!--news.url--]e/public/digg/?classid=[!--class.id--]&id=[!--id--]&dotop=1&doajax=1&ajaxarea=diggnum\\'',\\''EchoReturnedText\\'',\\''GET\\'',\\''\\'');\\"><img src=\\"[!--news.url--]skin/v3/im/03.gif\\" alt=\\"我要推荐\\"></a>\r\n            [!--downpath--]\r\n        </div>\r\n      </div>    \r\n      <div class=\\"clear\\"></div>\r\n    </div>\r\n    <div class=\\"zlb\\">\r\n<table cellspacing=0 cellpadding=0 border=0>\r\n  <tr><th valign=top colspan=3><strong>最新章节</strong></th></tr>\r\n  <tr>\r\n<?php\r\n$hh=floor(100/$GLOBALS[index][ln]);\r\n$newsql=$empire->query(\\"select * from {$dbtbpre}ecms_\\".$GLOBALS[\\''tbname\\''].\\" where bookid=\\".$GLOBALS[\\''navinfor\\''][id].\\" order by id desc limit \\".$GLOBALS[\\''index\\''][ln].\\"\\");\r\nwhile($newr=$empire->fetch($newsql)){\r\n?>\r\n<td width=\\"<?=$hh?>%\\" valign=top style=\\"border-bottom:1px solid #d0d0d0; height:30px; line-height:30px; padding-left:12px;\\"><a href=\\"<?=$newr[titleurl]?>\\" title=\\"<?=$newr[title]?>\\" target=\\"_blank\\"><?=$newr[title]?></a></li></td>\r\n<?\r\n}\r\n?>\r\n  </tr>\r\n</table>\r\n\r\n      [!--bookdata.list--]\r\n      <div class=\\"pinglun\\">\r\n		<div class=\\"plhd\\">\r\n		<strong>《[!--title--]》最新评论</strong>(<span id=\\"infocommentnumarea\\"></span>)  <a href=\\"[!--news.url--]e/pl/?classid=[!--class.id--]&id=[!--id--]\\" target=\\"_blank\\">更多评论 >></a>\r\n		</div>\r\n		<div class=\\"plco\\" id=\\"infocommentarea\\"></div>\r\n		<div class=\\"pkuang\\">\r\n			[!--temp.pl--]\r\n		</div>\r\n      </div>\r\n\r\n    </div>    \r\n  </div>\r\n  <!-- right -->\r\n  <div id=\\"you\\" class=\\"right\\">\r\n<?\r\n	$mtop=\\''bky\\'';\r\n    if($GLOBALS[\\''index\\''][wid]){\r\n        $zp=\\''\\'';\r\n		$mtop=\\''\\'';\r\n        $wsql=$empire->query(\\"select id,checked from {$dbtbpre}ecms_bookname_index where wid=\\''\\".$GLOBALS[\\''index\\''][wid].\\"\\'' order by id desc limit 5\\");\r\n        while($wr=$empire->fetch($wsql)){\r\n            if($wr[checked]&&$wr[id]!=$GLOBALS[\\''navinfor\\''][id]){\r\n                $bn=GetBN($wr[id]);\r\n                $zp.=\\''<li><a href=\\"\\''.$bn[titleurl].\\''\\" title=\\"\\''.$bn[title].\\''\\" target=\\"_blank\\">\\''.$bn[title].\\''</a></li>\\'';\r\n            }\r\n        }\r\n?>\r\n    <div class=\\"bkhd bky\\">\r\n      <h4>[!--zuozhe.name--]其它作品</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n     <ul class=zpl>\r\n       <?=$zp?>\r\n       <li class=wenji><a href=\\"[!--zuozhe.url--]\\" target=\\"_blank\\">[!--zuozhe.name--]作品集</a></li>\r\n     </ul>\r\n    </div>\r\n	<span class=\\"blank10\\"></span>\r\n<?\r\n  }\r\n?>\r\n    <div class=\\"bkhd <?=$mtop?>\\">\r\n      <h4>[!--class.name--]点击排行</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"bkl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select title,titleurl,onclick from {$dbtbpre}ecms_bookname where classid=$GLOBALS[navclassid] order by onclick desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a class=\\"<?if($i<4){echo \\''bgred\\'';}else{echo \\''shuzi\\'';}?>\\"><?if($i<10){echo \\''0\\''.$i;}else{echo $i;}?></a><a href=\\"<?=$r[titleurl]?>\\" title=\\"<?=$r[title]?>\\" target=\\"_blank\\"><?=$r[title]?></a><span><?=$r[onclick]?></span></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n    <span class=\\"blank10\\"></span>\r\n    <!-- - -->\r\n    <div class=\\"bkhd\\">\r\n      <h4>[!--class.name--]下载排行</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"bkl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select title,titleurl,totaldown from {$dbtbpre}ecms_bookname where classid=$GLOBALS[navclassid] order by totaldown desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a class=\\"<?if($i<4){echo \\''bgred\\'';}else{echo \\''shuzi\\'';}?>\\"><?if($i<10){echo \\''0\\''.$i;}else{echo $i;}?></a><a href=\\"<?=$r[titleurl]?>\\" title=\\"<?=$r[title]?>\\" target=\\"_blank\\"><?=$r[title]?></a><span><?=$r[totaldown]?></span></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n  </div>\r\n  <div class=\\"clear\\"></div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n<script src=\\"[!--news.url--]e/dongpo/top/index.php?classid=[!--class.id--]&id=[!--id--]\\"></script>\r\n\r\n<script src=\\"[!--news.url--]e/extend/infocomment/commentajax.php?classid=[!--class.id--]&id=[!--id--]\\"></script>\r\n</body>\r\n</html>', 'Y-m-d H:i:s', 1, 1);
INSERT INTO `phome_enewsnewstemp` VALUES (2, '静态-BookData', 0, '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--book.volume--] [!--pagetitle--] -《[!--book.name--]》</title>\r\n<link href=\\"[!--news.url--]skin/v3/p1.css\\" rel=\\"stylesheet\\" />\r\n<script src=\\"[!--news.url--]skin/v3/js/jquery.min.js\\"></script>\r\n<script src=\\"[!--news.url--]skin/v3/js/jquery.cookie.js\\"></script>\r\n<script type=\\"text/javascript\\">\r\n$(document).ready(function(){\r\nvar prevpage=\\"[!--bookdata.preurl--]\\";//向左\r\nvar nextpage=\\"[!--bookdata.nexturl--]\\";//向右\r\nvar bookpage=\\"[!--book.url--]\\";  //回车\r\n$(\\"body\\").keydown(function(event){\r\nif(event.keyCode==13) location=bookpage;\r\nif(event.keyCode==37) location=prevpage;\r\nif(event.keyCode==39) location=nextpage;\r\n});\r\n});\r\n</script>\r\n</head>\r\n<body>\r\n[!--temp.topnav--]\r\n<div class=\\"w100\\">\r\n  <div class=\\"pathnav w980\\">\r\n    <div class=\\"weizhi\\">\r\n      当前位置：<a href=\\"[!--news.url--]\\">首页</a> > <a href=\\"[!--class.url--]\\">[!--class.name--]</a> > <a href=\\"[!--book.url--]\\">《[!--book.name--]》在线阅读</a> > 正文 [!--book.volume--] [!--title--]\r\n    </div>\r\n    <div class=\\"memberset\\">\r\n      <div class=\\"duset\\">\r\n        背景：\r\n        <a title=\\"蓝色回忆\\" onclick=\\"backcolor(1)\\" href=\\"javascript:void(0);\\" class=\\"c c1\\">&nbsp;&nbsp;</a>\r\n        <a title=\\"灰色天空\\" onclick=\\"backcolor(2)\\" href=\\"javascript:void(0);\\" class=\\"c c2\\">&nbsp;&nbsp;</a>\r\n        <a title=\\"青山不老\\" onclick=\\"backcolor(3)\\" href=\\"javascript:void(0);\\" class=\\"c c3\\">&nbsp;&nbsp;</a>\r\n        <a title=\\"粉红世家\\" onclick=\\"backcolor(6)\\" href=\\"javascript:void(0);\\" class=\\"c c6\\">&nbsp;&nbsp;</a>\r\n        <a title=\\"明黄清俊\\" onclick=\\"backcolor(4)\\" href=\\"javascript:void(0);\\" class=\\"c c4\\">&nbsp;&nbsp;</a>\r\n        <a title=\\"雪白世界\\" onclick=\\"backcolor(5)\\" href=\\"javascript:void(0);\\" class=\\"c c5\\">&nbsp;&nbsp;</a>\r\n        &nbsp;&nbsp;字号：\r\n        <a onclick=\\"fontsize(1)\\" href=\\"javascript:void(0);\\" class=\\"s s1\\">小</a>\r\n        <a onclick=\\"fontsize(2)\\" href=\\"javascript:void(0);\\" class=\\"s s2\\">中</a>\r\n        <a onclick=\\"fontsize(3)\\" href=\\"javascript:void(0);\\" class=\\"s s3\\">大</a>\r\n        <a onclick=\\"fontsize(4)\\" href=\\"javascript:void(0);\\" class=\\"s s4\\">加大</a>\r\n        &nbsp;&nbsp;\r\n        <a onclick=\\"defaultCL()\\" href=\\"javascript:void(0);\\" class=\\"d\\">默认</a>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n<div id=\\"main\\">\r\n  <div class=\\"atitle\\">\r\n    <h1><a href=\\"[!--book.url--]\\" target=\\"_blank\\">《[!--book.name--]》</a> <? if($GLOBALS[\\''navwid\\'']){?>作者：<a href=\\"[!--zuozhe.url--]\\" title=\\"[!--zuozhe.name--]作品集\\">[!--zuozhe.name--]</a><?}?></h1>\r\n    <h2>[!--title--]<span>更新时间：[!--newstime--]</span></h2>\r\n  </div>\r\n  <div class=\\"zw\\">\r\n    [!--newstext--]\r\n  </div>\r\n  <div class=\\"np\\">\r\n      [!--bookdata.pre--] <a href=\\"[!--book.url--]\\" class=rlb>返回简介</a> [!--bookdata.next--]\r\n（可以用方向键翻页，回车键返回目录）<a href=\\"#\\" onclick=\\"window.open(\\''[!--news.url--]e/member/fava/q/add.php?bookid=[!--book.id--]&amp;id=[!--id--]\\'',\\''\\'',\\''width=620,height=350,scrollbars=yes,top=200,left=280,resizable=yes\\'');\\">加入书签</a>\r\n  </div>\r\n</div>\r\n<script src=\\"[!--news.url--]e/dongpo/top/index.php?classid=[!--class.id--]&id=[!--id--]\\"></script>\r\n\r\n</body>\r\n</html>', 'Y-m-d', 2, 2);
INSERT INTO `phome_enewsnewstemp` VALUES (3, 'News', 0, '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--p.title--] -  <?=$public_r[sitename]?></title>\r\n<meta name=\\"description\\" content=\\"\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>当前位置：[!--newsnav--]</h5>\r\n    </div>\r\n	[!--temp.search_nav--]\r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n  <div id=\\"main\\">\r\n  <!-- left -->\r\n    <div id=\\"zuo2\\" class=\\"left mg10\\">\r\n      <div class=\\"con2\\">\r\n\r\n<h2 class=\\"wt\\">[!--p.title--]</h2>\r\n<div class=\\"xxi\\">作者：[!--writer--] 更新时间：[!--newstime--]</div>\r\n<div class=\\"zw\\">\r\n[!--newstext--]\r\n</div>\r\n<div class=\\"pages\\">[!--page.url--]</div>\r\n\r\n<div class=\\"wznp\\">\r\n	<span>上一篇：[!--info.pre--]</span>下一篇：[!--info.next--]\r\n</div>\r\n      </div>\r\n    </div>\r\n    <!-- right -->\r\n    <div id=\\"you2\\" class=\\"right\\">\r\n      \r\n    <div class=\\"bkhd\\">\r\n      <h4>热门作家</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"zpl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select * from {$dbtbpre}enewswriter where isgood>=0 order by isgood desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a href=\\"[!--news.url--]writer/<?=$r[wid]?>/\\" title=\\"<?=$r[wname]?>\\" target=\\"_blank\\"><?=$r[wname]?></a></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n    <span class=\\"blank10\\"></span>\r\n    <!-- - -->\r\n    <div class=\\"bkhd\\">\r\n      <h4>热门作品</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"zpl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select * from {$dbtbpre}ecms_bookname order by onclick desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a href=\\"<?=$r[titleurl]?>\\" title=\\"<?=$r[title]?>\\" target=\\"_blank\\"><?=$r[title]?></a></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n\r\n  </div>\r\n        \r\n    </div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n</body>\r\n</html>', 'Y-m-d H:i:s', 3, 3);
INSERT INTO `phome_enewsnewstemp` VALUES (11, '动态-BookData', 0, '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--book.volume--] [!--pagetitle--] -《[!--book.name--]》</title>\r\n<link href=\\"[!--news.url--]skin/v3/p1.css\\" rel=\\"stylesheet\\" />\r\n<script src=\\"[!--news.url--]skin/v3/js/jquery.min.js\\"></script>\r\n<script src=\\"[!--news.url--]skin/v3/js/jquery.cookie.js\\"></script>\r\n<script type=\\"text/javascript\\">\r\n$(document).ready(function(){\r\nvar prevpage=\\"[!--bookdata.preurl--]\\";//向左\r\nvar nextpage=\\"[!--bookdata.nexturl--]\\";//向右\r\nvar bookpage=\\"[!--book.url--]\\";  //回车\r\n$(\\"body\\").keydown(function(event){\r\nif(event.keyCode==13) location=bookpage;\r\nif(event.keyCode==37) location=prevpage;\r\nif(event.keyCode==39) location=nextpage;\r\n});\r\n});\r\n</script>\r\n</head>\r\n<body>\r\n[!--temp.topnav--]\r\n<div class=\\"w100\\">\r\n  <div class=\\"pathnav w980\\">\r\n    <div class=\\"weizhi\\">\r\n      当前位置：<a href=\\"[!--news.url--]\\">首页</a> > <a href=\\"[!--class.url--]\\">[!--class.name--]</a> > <a href=\\"[!--book.url--]\\">《[!--book.name--]》在线阅读</a> > 正文 [!--book.volume--] [!--title--]\r\n    </div>\r\n    <div class=\\"memberset\\">\r\n      <div class=\\"duset\\">\r\n        背景：\r\n        <a title=\\"蓝色回忆\\" onclick=\\"backcolor(1)\\" href=\\"javascript:void(0);\\" class=\\"c c1\\">&nbsp;&nbsp;</a>\r\n        <a title=\\"灰色天空\\" onclick=\\"backcolor(2)\\" href=\\"javascript:void(0);\\" class=\\"c c2\\">&nbsp;&nbsp;</a>\r\n        <a title=\\"青山不老\\" onclick=\\"backcolor(3)\\" href=\\"javascript:void(0);\\" class=\\"c c3\\">&nbsp;&nbsp;</a>\r\n        <a title=\\"粉红世家\\" onclick=\\"backcolor(6)\\" href=\\"javascript:void(0);\\" class=\\"c c6\\">&nbsp;&nbsp;</a>\r\n        <a title=\\"明黄清俊\\" onclick=\\"backcolor(4)\\" href=\\"javascript:void(0);\\" class=\\"c c4\\">&nbsp;&nbsp;</a>\r\n        <a title=\\"雪白世界\\" onclick=\\"backcolor(5)\\" href=\\"javascript:void(0);\\" class=\\"c c5\\">&nbsp;&nbsp;</a>\r\n        &nbsp;&nbsp;字号：\r\n        <a onclick=\\"fontsize(1)\\" href=\\"javascript:void(0);\\" class=\\"s s1\\">小</a>\r\n        <a onclick=\\"fontsize(2)\\" href=\\"javascript:void(0);\\" class=\\"s s2\\">中</a>\r\n        <a onclick=\\"fontsize(3)\\" href=\\"javascript:void(0);\\" class=\\"s s3\\">大</a>\r\n        <a onclick=\\"fontsize(4)\\" href=\\"javascript:void(0);\\" class=\\"s s4\\">加大</a>\r\n        &nbsp;&nbsp;\r\n        <a onclick=\\"defaultCL()\\" href=\\"javascript:void(0);\\" class=\\"d\\">默认</a>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n<div id=\\"main\\">\r\n  <div class=\\"atitle\\">\r\n    <h1><a href=\\"[!--book.url--]\\" target=\\"_blank\\">《[!--book.name--]》</a> <? if($GLOBALS[\\''navwid\\'']){?>作者：<a href=\\"[!--zuozhe.url--]\\" title=\\"[!--zuozhe.name--]作品集\\">[!--zuozhe.name--]</a><?}?></h1>\r\n    <h2>[!--title--]<span>更新时间：[!--newstime--]</span></h2>\r\n  </div>\r\n  <div class=\\"zw\\">\r\n    [!--newstext--]\r\n  </div>\r\n  <div class=\\"np\\">\r\n      [!--bookdata.pre--] <a href=\\"[!--book.url--]\\" class=rlb>返回简介</a> [!--bookdata.next--]\r\n（可以用方向键翻页，回车键返回目录）<a href=\\"#\\" onclick=\\"window.open(\\''[!--news.url--]e/member/fava/q/add.php?bookid=[!--book.id--]&amp;id=[!--id--]\\'',\\''\\'',\\''width=300,height=100,scrollbars=yes,top=100,left=150,resizable=yes\\'');\\">加入书签</a>\r\n  </div>\r\n</div>\r\n<script src=\\"[!--news.url--]e/dongpo/top/index.php?classid=[!--class.id--]&id=[!--id--]\\"></script>\r\n\r\n</body>\r\n</html>', 'Y-m-d', 2, 2);
INSERT INTO `phome_enewsnewstemp` VALUES (12, '动态-BookName', 0, '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--zuozhe.name--]《[!--title--]》TXT下载,《[!--title--]》在线阅读 - [!--sitename--]</title>\r\n<meta name=\\"description\\" content=\\"书名:[!--title--],作者:[!--zuozhe.name--],分类:[!--class.name--],更新时间:[!--newstime--],[!--sitename--]提供《[!--title--]》在线阅读和TXT下载\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n<script src=\\"[!--news.url--]e/data/js/ajax.js\\"></script>\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>当前位置：<a href=\\"[!--news.url--]\\">首页</a> > <a href=\\"[!--class.url--]\\">[!--class.name--]</a> > 《[!--title--]》在线阅读</h5>\r\n    </div>\r\n    [!--temp.search_nav--]\r\n    <div class=\\"clear\\"></div>\r\n  </div>\r\n</div>\r\n<div class=\\"w990 bbg\\">\r\n  <!-- left -->\r\n  <div id=\\"zuo\\" class=\\"left mg10\\">\r\n    <div class=\\"jieshao\\">\r\n      <div class=\\"bktitle\\">\r\n        <h1 >《[!--title--]》</h1> <? if($GLOBALS[\\''index\\''][wid]){?>作者：<a href=\\"[!--zuozhe.url--]\\" title=\\"[!--zuozhe.name--]作品集\\">[!--zuozhe.name--]</a><?}?>\r\n      </div>      \r\n      <? $byou=\\''y100\\''; if($GLOBALS[\\''navinfor\\''][titlepic]){$byou=\\''yf\\''; echo \\''<img src=\\"\\''.$GLOBALS[\\''navinfor\\''][titlepic].\\''\\" alt=\\"\\''.$GLOBALS[\\''navinfor\\''][title].\\''\\" class=\\"img1\\">\\'';} ?>\r\n      <div class=\\"<?=$byou?>\\">\r\n        <div class=\\"zhaungtai\\">\r\n         分类：<span class=\\"blue\\"><a href=\\"[!--class.url--]\\">[!--class.name--]</a></span>\r\n         状态：<span class=\\"blue\\"><? if($GLOBALS[\\''navinfor\\''][full]){echo \\"连载中\\";}else{echo \\"完本\\";}?></span>\r\n		 字数：<span class=\\"blue\\"><?=Zishu($GLOBALS[\\''navinfor\\''][id])?></span>\r\n         推荐：<span class=\\"blue\\"><script type=\\"text/javascript\\" src=\\"[!--news.url--]e/public/ViewClick/?classid=[!--class.id--]&id=[!--id--]&down=5\\"></script>次</span> \r\n         收藏：<span class=\\"blue\\"><?=ShouCang($GLOBALS[\\''navinfor\\''][id])?>人</span> \r\n         点击量：<span class=\\"red2\\"><script src=[!--news.url--]e/public/ViewClick/?classid=[!--class.id--]&id=[!--id--]&addclick=1></script></span>\r\n        </div>\r\n        <div class=\\"neir\\">\r\n        [!--newstext--]\r\n      <? if($GLOBALS[\\''istags\\'']){?> TAGS：[!--tags--] <?}?>\r\n        </div>\r\n        <div class=\\"butt\\">\r\n            <a href=\\"\\"><img src=\\"[!--news.url--]skin/v3/im/01.gif\\" alt=\\"点击阅读\\"></a>\r\n            <a href=\\"[!--news.url--]e/member/fava/add/?classid=[!--class.id--]&amp;id=[!--id--]\\"><img src=\\"[!--news.url--]skin/v3/im/02.gif\\" alt=\\"加入收藏\\"></a>\r\n            <a href=\\"JavaScript:makeRequest(\\''[!--news.url--]e/public/digg/?classid=[!--class.id--]&id=[!--id--]&dotop=1&doajax=1&ajaxarea=diggnum\\'',\\''EchoReturnedText\\'',\\''GET\\'',\\''\\'');\\"><img src=\\"[!--news.url--]skin/v3/im/03.gif\\" alt=\\"我要推荐\\"></a>\r\n            [!--downpath--]\r\n        </div>\r\n      </div>    \r\n      <div class=\\"clear\\"></div>\r\n    </div>\r\n    <div class=\\"zlb\\">\r\n<table cellspacing=0 cellpadding=0 border=0>\r\n  <tr><th valign=top colspan=3><strong>最新章节</strong></th></tr>\r\n  <tr>\r\n<?php\r\n$hh=floor(100/$GLOBALS[index][ln]);\r\n$newsql=$empire->query(\\"select * from {$dbtbpre}ecms_\\".$GLOBALS[\\''bdtbname\\''].\\" where bookid=\\".$GLOBALS[\\''navinfor\\''][id].\\" order by id desc limit \\".$GLOBALS[\\''index\\''][ln].\\"\\");\r\nwhile($newr=$empire->fetch($newsql)){\r\n?>\r\n<td width=\\"<?=$hh?>%\\" valign=top style=\\"border-bottom:1px solid #d0d0d0; height:30px; line-height:30px; padding-left:12px;\\"><a href=\\"<?=$newr[titleurl]?>\\" title=\\"<?=$newr[title]?>\\" target=\\"_blank\\"><?=$newr[title]?></a></li></td>\r\n<?\r\n}\r\n?>\r\n  </tr>\r\n</table>\r\n\r\n      [!--bookdata.list--]\r\n      <div class=\\"pinglun\\">\r\n		<div class=\\"plhd\\">\r\n		<strong>《[!--title--]》最新评论</strong>(<span id=\\"infocommentnumarea\\"></span>)  <a href=\\"[!--news.url--]e/pl/?classid=[!--class.id--]&id=[!--id--]\\" target=\\"_blank\\">更多评论 >></a>\r\n		</div>\r\n		<div class=\\"plco\\" id=\\"infocommentarea\\"></div>\r\n		<div class=\\"pkuang\\">\r\n			[!--temp.pl--]\r\n		</div>\r\n      </div>\r\n\r\n    </div>    \r\n  </div>\r\n  <!-- right -->\r\n  <div id=\\"you\\" class=\\"right\\">\r\n<?\r\n	$mtop=\\''bky\\'';\r\n    if($GLOBALS[\\''index\\''][wid]){\r\n        $zp=\\''\\'';\r\n		$mtop=\\''\\'';\r\n        $wsql=$empire->query(\\"select id,checked from {$dbtbpre}ecms_bookname_index where wid=\\''\\".$GLOBALS[\\''index\\''][wid].\\"\\'' order by id desc limit 5\\");\r\n        while($wr=$empire->fetch($wsql)){\r\n            if($wr[checked]&&$wr[id]!=$GLOBALS[\\''navinfor\\''][id]){\r\n                $bn=GetBN($wr[id]);\r\n                $zp.=\\''<li><a href=\\"\\''.$bn[titleurl].\\''\\" title=\\"\\''.$bn[title].\\''\\" target=\\"_blank\\">\\''.$bn[title].\\''</a></li>\\'';\r\n            }\r\n        }\r\n?>\r\n    <div class=\\"bkhd bky\\">\r\n      <h4>[!--zuozhe.name--]其它作品</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n     <ul class=zpl>\r\n       <?=$zp?>\r\n       <li class=wenji><a href=\\"[!--zuozhe.url--]\\" target=\\"_blank\\">[!--zuozhe.name--]作品集</a></li>\r\n     </ul>\r\n    </div>\r\n	<span class=\\"blank10\\"></span>\r\n<?\r\n  }\r\n?>\r\n    <div class=\\"bkhd <?=$mtop?>\\">\r\n      <h4>[!--class.name--]点击排行</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"bkl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select title,titleurl,onclick from {$dbtbpre}ecms_bookname where classid=$GLOBALS[navclassid] order by onclick desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a class=\\"<?if($i<4){echo \\''bgred\\'';}else{echo \\''shuzi\\'';}?>\\"><?if($i<10){echo \\''0\\''.$i;}else{echo $i;}?></a><a href=\\"<?=$r[titleurl]?>\\" title=\\"<?=$r[title]?>\\" target=\\"_blank\\"><?=$r[title]?></a><span><?=$r[onclick]?></span></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n    <span class=\\"blank10\\"></span>\r\n    <!-- - -->\r\n    <div class=\\"bkhd\\">\r\n      <h4>[!--class.name--]下载排行</h4>\r\n    </div>\r\n    <div class=\\"bkcon\\">\r\n      <ul class=\\"bkl\\">\r\n    <?php\r\n        $sql=$empire->query(\\"select title,titleurl,totaldown from {$dbtbpre}ecms_bookname where classid=$GLOBALS[navclassid] order by totaldown desc limit 12\\");\r\n        $i=0;\r\n        while($r=$empire->fetch($sql)){\r\n            $i+=1;\r\n    ?>\r\n        <li><a class=\\"<?if($i<4){echo \\''bgred\\'';}else{echo \\''shuzi\\'';}?>\\"><?if($i<10){echo \\''0\\''.$i;}else{echo $i;}?></a><a href=\\"<?=$r[titleurl]?>\\" title=\\"<?=$r[title]?>\\" target=\\"_blank\\"><?=$r[title]?></a><span><?=$r[totaldown]?></span></li>\r\n    <?\r\n        }\r\n    ?>\r\n      </ul>\r\n    </div>\r\n  </div>\r\n  <div class=\\"clear\\"></div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n<script src=\\"[!--news.url--]e/dongpo/top/index.php?classid=[!--class.id--]&id=[!--id--]\\"></script>\r\n\r\n<script src=\\"[!--news.url--]e/extend/infocomment/commentajax.php?classid=[!--class.id--]&id=[!--id--]\\"></script>\r\n</body>\r\n</html>', 'Y-m-d H:i:s', 1, 1);


DROP TABLE IF EXISTS `phome_enewsnewstempclass`;
CREATE TABLE `phome_enewsnewstempclass` (
  `classid` smallint(5) unsigned NOT NULL auto_increment,
  `classname` varchar(30) NOT NULL default '',
  PRIMARY KEY  (`classid`)
) ENGINE=MyISAM ;


INSERT INTO `phome_enewsnewstempclass` VALUES (1, '书籍内容模板');
INSERT INTO `phome_enewsnewstempclass` VALUES (2, '章节内容模板');
INSERT INTO `phome_enewsnewstempclass` VALUES (3, '文章内容模板');


DROP TABLE IF EXISTS `phome_enewspagetemp`;
CREATE TABLE `phome_enewspagetemp` (
  `tempid` smallint(5) unsigned NOT NULL auto_increment,
  `tempname` varchar(30) NOT NULL default '',
  `temptext` mediumtext NOT NULL,
  PRIMARY KEY  (`tempid`)
) ENGINE=MyISAM ;


DROP TABLE IF EXISTS `phome_enewspltemp`;
CREATE TABLE `phome_enewspltemp` (
  `tempid` smallint(5) unsigned NOT NULL auto_increment,
  `tempname` varchar(60) NOT NULL default '',
  `temptext` mediumtext NOT NULL,
  `isdefault` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`tempid`)
) ENGINE=MyISAM ;



INSERT INTO `phome_enewspltemp` (`tempid`, `tempname`, `temptext`, `isdefault`) VALUES
(1, '默认评论列表模板', '<!DOCTYPE HTML PUBLIC \\"-//W3C//DTD HTML 4.01 Transitional//EN\\">\r\n<html>\r\n<head>\r\n<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=utf-8\\">\r\n<title>[!--pagetitle--]</title>\r\n<meta name=\\"keywords\\" content=\\"[!--pagekey--]\\" />\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<style type=\\"text/css\\">\r\n<!--\r\nbody,Table{ color: #222; font-size: 12px; }\r\na { color: #222; text-decoration: none; }\r\na:hover { color: #f00; text-decoration: underline; }\r\nh1 { font-size:32px; font-weight: bold; }\r\nh2 { color: #1e3a9e; font-size: 25px; font-weight: bold;  }\r\n.you { color: #1f3a87; font-size: 14px; }\r\n.text { font-size: 14px; padding-left: 5px; padding-right: 5px; line-height: 20px}\r\n.re a { color: #1f3a87; }\r\n.name { color: #1f3a87; }\r\n.name a { color: #1f3a87; text-decoration: underline;}\r\n.retext { background-color: #f3f3f3; width: 100%; float: left; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid #ccc; }\r\n.retext textarea { width: 535px; height: 130px; float: left; margin-left: 60px; border-top-style: inset; border-top-width: 2px; border-left-style: inset; border-left-width: 2px; }\r\n.hrLine{BORDER-BOTTOM: #807d76 1px dotted;}\r\n\r\n.ecomment {margin:0;padding:0;}\r\n.ecomment {margin-bottom:12px;overflow-x:hidden;overflow-y:hidden;padding-bottom:3px;padding-left:3px;padding-right:3px;padding-top:3px;background:#FFFFEE;padding:3px;border:solid 1px #999;}\r\n.ecommentauthor {float:left; color:#F96; font-weight:bold;}\r\n.ecommenttext {clear:left;margin:0;padding:0;}\r\n-->\r\n</style>\r\n<script src=\\"[!--news.url--]e/data/js/ajax.js\\"></script>\r\n</head>\r\n\r\n<body topmargin=\\"0\\">\r\n<table width=\\"766\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\">\r\n  <tr>\r\n    <td width=\\"210\\"><a href=\\"[!--news.url--]\\"><img src=\\"[!--news.url--]images/logo.gif\\" border=\\"0\\" /></a></td>\r\n    <td><h1>网友评论</h1></td>\r\n    <td><div align=\\"right\\"><a href=\\"#tosaypl\\"><strong><font color=\\"#FF0000\\">我也评两句</font></strong></a></div></td>\r\n  </tr>\r\n</table>\r\n<table width=\\"766\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\" bgcolor=\\"#222\\">\r\n  <tr>\r\n    <td height=\\"2\\"></td>\r\n  </tr>\r\n</table>\r\n<table width=\\"766\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\">\r\n  <tr> \r\n    <td height=\\"42\\"> \r\n      <h2>评论：<a href=\\"[!--titleurl--]\\" target=\\"_blank\\"><font color=\\"#1e3a9e\\">[!--title--]</font></a></h2></td>\r\n    <td><div align=\\"right\\"><a href=\\"[!--titleurl--]\\" target=\\"_blank\\">查看原文</a></div></td>\r\n  </tr>\r\n</table>\r\n<hr align=\\"center\\" width=\\"766\\" size=1 class=hrline>\r\n<table width=\\"766\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\" bgcolor=\\"#384EA3\\">\r\n  <form action=\\"../enews/index.php\\" method=\\"post\\" name=\\"infopfenform\\">\r\n    <input type=\\"hidden\\" name=\\"enews\\" value=\\"AddInfoPfen\\" />\r\n    <input type=\\"hidden\\" name=\\"classid\\" value=\\"[!--classid--]\\" />\r\n    <input type=\\"hidden\\" name=\\"id\\" value=\\"[!--id--]\\" />\r\n    <tr> \r\n      <td width=\\"50%\\" height=\\"27\\" valign=\\"middle\\"><font color=\\"#FFFFFF\\">&nbsp;</td>\r\n    </tr>\r\n  </form>\r\n</table>\r\n<table width=\\"766\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\" bgcolor=\\"#CCCCCC\\">\r\n  <tr> \r\n    <td height=\\"30\\" bgcolor=\\"#FFFFFF\\"> \r\n      <table width=\\"100%\\" border=\\"0\\" cellspacing=\\"1\\" cellpadding=\\"3\\">\r\n        <tr> \r\n          <td width=\\"17%\\">&nbsp;&nbsp;&nbsp;网友评论</td>\r\n          <td width=\\"83%\\"><div align=\\"right\\">[!--listpage--]&nbsp;&nbsp;&nbsp;</div></td>\r\n        </tr>\r\n      </table></td>\r\n  </tr>\r\n  <tr> \r\n    <td bgcolor=\\"#f8fcff\\"> [!--empirenews.listtemp--] \r\n      <table width=\\"96%\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\" style=\\"word-break:break-all; word-wrap:break-all;\\">\r\n        <tr> \r\n          <td height=\\"30\\"><span class=\\"name\\">本站网友 [!--username--]</span> <font color=\\"#666666\\">ip:[!--plip--]</font></td>\r\n          <td><div align=\\"right\\"><font color=\\"#666666\\">[!--pltime--] 发表</font></div></td>\r\n        </tr>\r\n        <tr valign=\\"top\\"> \r\n          <td height=\\"50\\" colspan=\\"2\\" class=\\"text\\">[!--pltext--]</td>\r\n        </tr>\r\n        <tr> \r\n          <td height=\\"30\\">&nbsp;</td>\r\n          <td><div align=\\"right\\" class=\\"re\\"><a href=\\"#tosaypl\\"[!--includelink--]>回复</a>&nbsp; \r\n              <a href=\\"JavaScript:makeRequest(\\''../pl/doaction.php?enews=DoForPl&plid=[!--plid--]&classid=[!--classid--]&id=[!--id--]&dopl=1&doajax=1&ajaxarea=zcpldiv[!--plid--]\\'',\\''EchoReturnedText\\'',\\''GET\\'',\\''\\'');\\">支持</a>[<span id=\\"zcpldiv[!--plid--]\\">[!--zcnum--]</span>]&nbsp; \r\n              <a href=\\"JavaScript:makeRequest(\\''../pl/doaction.php?enews=DoForPl&plid=[!--plid--]&classid=[!--classid--]&id=[!--id--]&dopl=0&doajax=1&ajaxarea=fdpldiv[!--plid--]\\'',\\''EchoReturnedText\\'',\\''GET\\'',\\''\\'');\\">反对</a>[<span id=\\"fdpldiv[!--plid--]\\">[!--fdnum--]</span>]\r\n            </div></td>\r\n        </tr>\r\n      </table>\r\n      <table width=\\"100%\\" border=\\"0\\" cellspacing=\\"1\\" cellpadding=\\"3\\">\r\n        <tr>\r\n          <td background=\\"[!--news.url--]skin/v3/im/plhrbg.gif\\"></td>\r\n        </tr>\r\n      </table>\r\n      [!--empirenews.listtemp--] \r\n      <div align=\\"right\\"><br />\r\n        [!--listpage--]&nbsp;&nbsp;&nbsp;<br />\r\n        <br />\r\n        <font color=\\"#FF0000\\">网友评论仅供网友表达个人看法，并不表明本站同意其观点或证实其描述&nbsp;&nbsp;&nbsp;</font><br><br> </div></td>\r\n  </tr>\r\n  <script>\r\n  function CheckPl(obj)\r\n  {\r\n  	if(obj.saytext.value==\\"\\")\r\n  	{\r\n  		alert(\\"错误，评论不能为空\\");\r\n  		obj.saytext.focus();\r\n  		return false;\r\n  	}\r\n  	return true;\r\n  }\r\n  </script>\r\n  <form action=\\"../pl/doaction.php\\" method=\\"post\\" name=\\"saypl\\" id=\\"saypl\\" onsubmit=\\"return CheckPl(document.saypl)\\">\r\n  <tr id=\\"tosaypl\\"> \r\n    <td bgcolor=\\"#f8fcff\\"> <table width=\\"100%\\" border=\\"0\\" cellspacing=\\"1\\" cellpadding=\\"3\\">\r\n        <tr> \r\n            <td width=\\"13%\\" height=\\"28\\">&nbsp;&nbsp;&nbsp;<span class=\\"you\\">我也评两句</span></td>\r\n            <td valign=\\"middle\\">用户名： \r\n              <input name=\\"username\\" type=\\"text\\" id=\\"username\\" size=\\"12\\" value=\\"[!--lusername--]\\" />\r\n            密码： \r\n            <input name=\\"password\\" type=\\"password\\" id=\\"password\\" size=\\"12\\" value=\\"[!--lpassword--]\\" />\r\n            验证码： \r\n            <input name=\\"key\\" type=\\"text\\" id=\\"key\\" size=\\"6\\" />\r\n              <img src=\\"[!--key.url--]\\" align=\\"middle\\" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\\"[!--news.url--]e/member/register/\\" target=\\"_blank\\">还没有注册？</a></td>\r\n        </tr>\r\n      </table></td>\r\n  </tr>\r\n  <tr> \r\n    <td bgcolor=\\"#f8fcff\\"> <table width=\\"100%\\" border=\\"0\\" cellspacing=\\"1\\" cellpadding=\\"3\\" class=\\"retext\\">\r\n        <tr> \r\n          <td width=\\"78%\\"><div align=\\"center\\"> \r\n              <textarea name=\\"saytext\\" cols=\\"58\\" rows=\\"6\\" id=\\"saytext\\"></textarea>\r\n            </div></td>\r\n          <td width=\\"22%\\" rowspan=\\"2\\"> <div align=\\"center\\">\r\n              <input name=\\"nomember\\" type=\\"checkbox\\" id=\\"nomember\\" value=\\"1\\" checked=\\"checked\\" />\r\n                匿名发表<br>\r\n                <br />\r\n              <input name=\\"imageField\\" type=\\"submit\\" id=\\"imageField\\" value=\\" 提 交 \\" />\r\n            </div></td>\r\n        </tr>\r\n        <tr> \r\n          <td><div align=\\"center\\"> \r\n              <script src=\\"[!--news.url--]d/js/js/plface.js\\"></script>\r\n            </div></td>\r\n        </tr>\r\n      </table> </td>\r\n  </tr>\r\n  <input name=\\"id\\" type=\\"hidden\\" id=\\"id\\" value=\\"[!--id--]\\" />\r\n  <input name=\\"classid\\" type=\\"hidden\\" id=\\"classid\\" value=\\"[!--classid--]\\" />\r\n  <input name=\\"enews\\" type=\\"hidden\\" id=\\"enews\\" value=\\"AddPl\\" />\r\n  <input name=\\"repid\\" type=\\"hidden\\" id=\\"repid\\" value=\\"0\\" />\r\n  </form>\r\n</table>\r\n<table width=\\"766\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\">\r\n  <tr>\r\n    <td align=\\"center\\">\r\n[!--temp.foot--]\r\n    </td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>', 1);


DROP TABLE IF EXISTS `phome_enewsprinttemp`;
CREATE TABLE `phome_enewsprinttemp` (
  `tempid` smallint(5) unsigned NOT NULL auto_increment,
  `tempname` varchar(60) NOT NULL default '',
  `temptext` mediumtext NOT NULL,
  `isdefault` tinyint(1) NOT NULL default '0',
  `showdate` varchar(50) NOT NULL default '',
  `modid` smallint(6) NOT NULL default '0',
  PRIMARY KEY  (`tempid`)
) ENGINE=MyISAM    ;



INSERT INTO `phome_enewsprinttemp` (`tempid`, `tempname`, `temptext`, `isdefault`, `showdate`, `modid`) VALUES
(1, '默认打印模板', '<html>\r\n<head>\r\n<meta http-equiv=\\"content-type\\" content=\\"text/html; charset=utf-8\\">\r\n<title>[!--pagetitle--] - Powered by EmpireCMS</title>\r\n<meta name=\\"keywords\\" content=\\"[!--pagekey--]\\" />\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<style>\r\nbody{font-family:宋体}td,.f12{font-size:12px}.f24 {font-size:24px;}.f14 {font-size:14px;}.title14 {font-size:14px;line-height:130%}.l17 {line-height:170%;}\r\n</style>\r\n</head>\r\n<body bgcolor=\\"#ffffff\\" topmargin=5 leftmargin=5 marginheight=5 marginwidth=5 onLoad=\\''window.print()\\''>\r\n<center>\r\n<table width=650 border=0 cellspacing=0 cellpadding=0>\r\n<tr>\r\n<td height=65 width=180><A href=\\"http://www.phome.net/\\"><IMG src=\\"../../skin/default/images/elogo.jpg\\" alt=\\"帝国软件\\" width=\\"180\\" height=\\"65\\" border=0></A></td> \r\n<td valign=\\"bottom\\">[!--url--]</td>\r\n<td width=\\"83\\" align=\\"right\\" valign=\\"bottom\\"><a href=\\''javascript:history.back()\\''>返回</a>　<a href=\\''javascript:window.print()\\''>打印</a></td>\r\n</tr>\r\n</table>\r\n<table width=650 border=0 cellpadding=0 cellspacing=20 bgcolor=\\"#EDF0F5\\">\r\n<tr>\r\n<td>\r\n<BR>\r\n<TABLE cellSpacing=0 cellPadding=0 width=\\"100%\\" border=0>\r\n<TBODY>\r\n<TR>\r\n<TH class=\\"f24\\"><FONT color=#05006c>[!--title--]</FONT></TH></TR>\r\n<TR>\r\n<TD>\r\n<HR SIZE=1 bgcolor=\\"#d9d9d9\\">\r\n</TD>\r\n</TR>\r\n<TR>\r\n<TD align=\\"middle\\" height=20><div align=\\"center\\">[!--writer--]&nbsp;&nbsp;[!--newstime--]&nbsp;&nbsp;[!--befrom--]</div></TD>\r\n</TR>\r\n<TR>\r\n<TD height=15></TD>\r\n</TR>\r\n<TR>\r\n<TD class=\\"l17\\">\r\n<FONT class=\\"f14\\" id=\\"zoom\\"> \r\n<P>[!--newstext--]<br>\r\n<BR clear=all>\r\n</P>\r\n</FONT>\r\n</TD>\r\n</TR>\r\n<TR height=10>\r\n<TD></TD>\r\n</TR>\r\n</TBODY>\r\n</TABLE>\r\n[!--titlelink--]\r\n</td>\r\n</tr>\r\n</table>\r\n</center>\r\n</body>\r\n</html>', 1, 'Y-m-d H:i:s', 1);


DROP TABLE IF EXISTS `phome_enewspubtemp`;
CREATE TABLE `phome_enewspubtemp` (
  `id` smallint(6) NOT NULL auto_increment,
  `indextemp` mediumtext NOT NULL,
  `cptemp` mediumtext NOT NULL,
  `searchtemp` mediumtext NOT NULL,
  `searchjstemp` mediumtext NOT NULL,
  `searchjstemp1` mediumtext NOT NULL,
  `otherlinktemp` mediumtext NOT NULL,
  `downsofttemp` text NOT NULL,
  `onlinemovietemp` text NOT NULL,
  `listpagetemp` text NOT NULL,
  `gbooktemp` mediumtext NOT NULL,
  `loginiframe` mediumtext NOT NULL,
  `otherlinktempsub` tinyint(4) NOT NULL default '0',
  `otherlinktempdate` varchar(20) NOT NULL default '',
  `loginjstemp` mediumtext NOT NULL,
  `downpagetemp` mediumtext NOT NULL,
  `pljstemp` mediumtext NOT NULL,
  `schalltemp` mediumtext NOT NULL,
  `schallsubnum` smallint(6) NOT NULL default '0',
  `schalldate` varchar(20) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM    ;


INSERT INTO `phome_enewspubtemp` (`id`, `indextemp`, `cptemp`, `searchtemp`, `searchjstemp`, `searchjstemp1`, `otherlinktemp`, `downsofttemp`, `onlinemovietemp`, `listpagetemp`, `gbooktemp`, `loginiframe`, `otherlinktempsub`, `otherlinktempdate`, `loginjstemp`, `downpagetemp`, `pljstemp`, `schalltemp`, `schallsubnum`, `schalldate`) VALUES
(1, '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--pagetitle--]</title>\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n<script type=\\"text/javascript\\" src=\\"[!--news.url--]skin/v2/js/tabs.js\\"></script>\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      [!--temp.shaixun--]     \r\n    </div>\r\n	[!--temp.search_nav--] \r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n  <div class=\\"in_left\\">\r\n    <div class=\\"ruku\\">\r\n	  <div class=\\"hds\\">\r\n		<h4>最近入库</h4>\r\n	  </div>\r\n	  <div class=\\"con\\">\r\n		<ul class=\\"norl\\">\r\n		  [e:loop={\\''bookname\\'',13,18,0}]\r\n		    <li<? if($bqno==13){echo \\'' class=\\"liend\\"\\'';}?>><a href=\\"<?=$bqsr[classurl]?>\\" target=\\"_blank\\" class=\\"gray1\\">[<?=$bqsr[classname]?>]</a>  <a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\" title=\\"<?=$bqr[title]?>\\"><?=$bqr[title]?></a></li>\r\n		  [/e:loop]\r\n		</ul>\r\n	  </div>	\r\n    </div>\r\n	<div class=\\"toutiao\\">\r\n\r\n      <div class=\\"hdc hm\\">\r\n		<ul class=\\"stab\\">\r\n		  <li class=\\"curr\\" onmouseover=\\"tabChange(this,\\''stabcon\\'')\\">热点</li>\r\n		  <li onmouseover=\\"tabChange(this,\\''stabcon\\'')\\">女生</li>\r\n		  <li onmouseover=\\"tabChange(this,\\''stabcon\\'')\\">名家</li>\r\n		  <li onmouseover=\\"tabChange(this,\\''stabcon\\'')\\">文学</li>\r\n		</ul>\r\n		<h4 class=\\"pa red1\\">新书推荐</h4>\r\n	  </div>\r\n	  <div class=\\"con\\" id=\\"stabcon\\">\r\n		<ul id=\\"sbc\\">\r\n		  [e:loop={\\''bookname\\'',2,18,0,\\''isgood=3\\''}]\r\n		  <li class=\\"sbbk <? if($bqno==1){echo \\''bdashline\\'';}?>\\">\r\n		    <a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\"><img src=\\"<?=$bqr[titlepic]?>\\" alt=\\"<?=$bqr[title]?>\\" width=\\"120\\" height=\\"150\\" class=\\"left img1\\"></a>\r\n			<div class=\\"ssm right\\">\r\n			  <h3><a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\" title=\\"<?=$bqr[title]?>\\"><?=$bqr[title]?></a></h3>\r\n			  <p><?=$bqr[smalltext]?><a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\" class=\\"blue\\">[点击阅读]</a></p>\r\n			</div>\r\n			<span class=\\"clear\\"></span>\r\n		  </li>\r\n		  [/e:loop]\r\n		</ul>\r\n        <ul id=\\"sbc\\" class=\\"hidden\\">\r\n		  [e:loop={\\''bookname\\'',2,18,0,\\''isgood=4\\''}]\r\n		  <li class=\\"sbbk <? if($bqno==1){echo \\''bdashline\\'';}?>\\">\r\n		    <a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\"><img src=\\"<?=$bqr[titlepic]?>\\" alt=\\"<?=$bqr[title]?>\\" width=\\"120\\" height=\\"150\\" class=\\"left img1\\"></a>\r\n			<div class=\\"ssm right\\">\r\n			  <h3><a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\" title=\\"<?=$bqr[title]?>\\"><?=$bqr[title]?></a></h3>\r\n			  <p><?=$bqr[smalltext]?><a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\" class=\\"blue\\">[点击阅读]</a></p>\r\n			</div>\r\n			<span class=\\"clear\\"></span>\r\n		  </li>\r\n		  [/e:loop]\r\n		</ul>\r\n        <ul id=\\"sbc\\" class=\\"hidden\\">\r\n		  [e:loop={\\''bookname\\'',2,18,0,\\''isgood=5\\''}]\r\n		  <li class=\\"sbbk <? if($bqno==1){echo \\''bdashline\\'';}?>\\">\r\n		    <a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\"><img src=\\"<?=$bqr[titlepic]?>\\" alt=\\"<?=$bqr[title]?>\\" width=\\"120\\" height=\\"150\\" class=\\"left img1\\"></a>\r\n			<div class=\\"ssm right\\">\r\n			  <h3><a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\" title=\\"<?=$bqr[title]?>\\"><?=$bqr[title]?></a></h3>\r\n			  <p><?=$bqr[smalltext]?><a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\" class=\\"blue\\">[点击阅读]</a></p>\r\n			</div>\r\n			<span class=\\"clear\\"></span>\r\n		  </li>\r\n		  [/e:loop]\r\n		</ul>\r\n        <ul id=\\"sbc\\" class=\\"hidden\\">\r\n		  [e:loop={\\''bookname\\'',2,18,0,\\''isgood=6\\''}]\r\n		  <li class=\\"sbbk <? if($bqno==1){echo \\''bdashline\\'';}?>\\">\r\n		    <a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\"><img src=\\"<?=$bqr[titlepic]?>\\" alt=\\"<?=$bqr[title]?>\\" width=\\"120\\" height=\\"150\\" class=\\"left img1\\"></a>\r\n			<div class=\\"ssm right\\">\r\n			  <h3><a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\" title=\\"<?=$bqr[title]?>\\"><?=$bqr[title]?></a></h3>\r\n			  <p><?=$bqr[smalltext]?><a href=\\"<?=$bqsr[titleurl]?>\\" target=\\"_blank\\" class=\\"blue\\">[点击阅读]</a></p>\r\n			</div>\r\n			<span class=\\"clear\\"></span>\r\n		  </li>\r\n		  [/e:loop]	\r\n		</ul>\r\n	  </div>\r\n	</div>    \r\n    <div class=\\"blank15\\"></div>	\r\n	<img src=\\"images/ban1.jpg\\" width=\\"715\\" height=\\"60\\" border=\\"0\\" alt=\\"\\">\r\n	<div class=\\"blank15\\"></div>\r\n\r\n	  <!-- - -->\r\n	  <div class=\\"tjhdc\\">\r\n		优秀小说推荐\r\n	  </div>\r\n	  <div class=\\"con_np\\">\r\n\r\n\r\n\r\n\r\n\r\n<?\r\n$cnum=$empire->gettotal(\\"select count(*) as total from {$dbtbpre}enewsclass where is_zt=0\\");\r\n$csql=$empire->query(\\"select classid,classname from {$dbtbpre}enewsclass where is_zt=0 order by myorder,classid\\");\r\n$ci=0;\r\nwhile($ccr=$empire->fetch($csql)){\r\n	$ci+=1;\r\n	$cll=\\''\\'';\r\n	if($ci%2==0){\r\n		$float=\\''right\\'';\r\n	}else{\r\n		$float=\\''bg1 left\\'';\r\n	}\r\n	\r\n	if($ci%2==0){ \r\n		$cll=\\''<div class=\\"clear\\"></div>\\'';\r\n	}\r\n	$inclassurl=ClassUrl($ccr[classid]);\r\n?>\r\n		<div class=\\"bkj <?=$float?>\\">\r\n		  <div class=\\"inbkhd hm\\">\r\n		    <h2><a href=\\"<?=$inclassurl?>\\" target=\\"_blank\\"><?=$ccr[classname]?></a></h2><span class=blue><a href=\\"<?=$inclassurl?>\\" target=\\"_blank\\">更多>></a></span>\r\n		  </div>\r\n		  <div class=\\"inbkcon\\">\r\n\r\n		  <?\r\n		  $fgb=$empire->fetch1(\\"select title,titleurl,titlepic,smalltext from {$dbtbpre}ecms_bookname where isgood=1 and classid=$ccr[classid] order by id desc limit 1\\");\r\n		  if($fgb){		  ?>\r\n\r\n			<a href=\\"<?=$fgb[titleurl]?>\\" target=\\"_blank\\"><img src=\\"<?=$fgb[titlepic]?>\\" width=65 height=80 class=\\"left img1\\" alt=\\"<?=$fgb[title]?>\\"></a>\r\n			<div class=\\"nr right\\">\r\n			  <h3><a href=\\"<?=$fgb[titleurl]?>\\" target=\\"_blank\\" title=\\"<?=$fgb[title]?>\\"><?=$fgb[title]?></a></h3>\r\n		      <p><?=esub($fgb[smalltext],110)?></p>			\r\n			</div>\r\n			<div class=\\"blank5\\"></div>\r\n		 <?\r\n		  }\r\n		 ?>\r\n		    <ul class=\\"norl2\\">\r\n		  <?\r\n		  $fgbsql=$empire->query(\\"select id,title,titleurl from {$dbtbpre}ecms_bookname where isgood=2 and classid=$ccr[classid] order by id desc limit 4\\");\r\n		  while($tjr=$empire->fetch($fgbsql)){\r\n			  $wbi=$empire->fetch1(\\"select wid from {$dbtbpre}ecms_bookname_index where id=$tjr[id] limit 1\\");\r\n		  ?>\r\n			  <li><a href=\\"<?=$tjr[titleurl]?>\\" target=\\"_blank\\" title=\\"<?=$tjr[title]?>\\"><?=$tjr[title]?></a><span><?=GetWname($wbi[wid])?></span></li>\r\n		 <?\r\n		  }\r\n		 ?>\r\n		    </ul>\r\n		  </div>\r\n		</div>\r\n		<?=$cll?>\r\n<?\r\n	}\r\n?>\r\n\r\n\r\n	  </div>\r\n	  <span class=\\"blank15\\"></span>\r\n	  <div class=\\"zxhdc\\">\r\n		最新更新\r\n	  </div>\r\n	  <div class=\\"zxcon\\">\r\n\r\n	    <table width=\\"100%\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\" class=\\"gxlb\\">\r\n<?\r\n	$zxbsql=$empire->query(\\"select classid,id,newstime,tid,wid from {$dbtbpre}ecms_bookname_index where checked=1 and cknum>0 order by newstime desc limit 20\\");\r\n	$zxi=0;\r\n	while($zxbr=$empire->fetch($zxbsql)){\r\n		$zxi+=1;\r\n		$tbname=$emod_r[$zxbr[tid]][tbname];\r\n		$zxzj=$empire->fetch1(\\"select titleurl,title,newstime from {$dbtbpre}ecms_\\".$tbname.\\" where bookid=$zxbr[id] order by id desc limit 1\\");\r\n		$thisclassurl=ClassUrl($$zxbr[classid]);\r\n		$bi=$empire->fetch1(\\"select title,titleurl from {$dbtbpre}ecms_bookname where id=$zxbr[id]\\");\r\n?>\r\n		<tr class=\\"<?php if($zxi==35){echo \\''end\\'';}?>\\">\r\n		  <td><a href=\\"<?=$thisclassurl?>\\" target=\\"_blank\\" class=gray>[<?=$class_r[$zxbr[classid]][classname]?>]</a><a href=\\"<?=$bi[titleurl]?>\\"  target=\\"_blank\\" class=blue><?=$bi[title]?></a><a href=\\"<?=$zxzj[titleurl]?>\\" target=\\"_blank\\" class=\\"gray\\" target=\\"_blank\\"><?=$zxzj[title]?></a></td>\r\n		  <td width=\\"14%\\"><a href=\\"writer/<?=$zxbr[wid]?>/\\"  class=black><?=GetWname($zxbr[wid])?></a></td>\r\n		  <td width=\\"18%\\"><div><?=date(\\''Y-m-d H:i\\'',$zxzj[newstime])?></div></td>\r\n		</tr>\r\n<?\r\n	}\r\n?>\r\n	    </table>\r\n	  </div>\r\n\r\n  </div>\r\n  <div class=\\"in_right\\">\r\n\r\n	\r\n	  <div class=\\"hds\\">\r\n		<h4>经典作家</h4>\r\n	  </div>\r\n	  <div class=\\"con\\">\r\n	    <div class=\\"zz\\">\r\n		  <?php\r\n		    $xzzsql=$empire->query(\\"select * from {$dbtbpre}enewswriter order by isgood desc limit 39\\");\r\n			$n=0;\r\n			while($zzr=$empire->fetch($xzzsql)){\r\n				$n+=1;\r\n				$zsty=\\''\\'';\r\n				if($n>36){\r\n					$zsty=\\'' class=\\"end\\"\\'';\r\n				}\r\n				echo \\''<a href=\\"\\''.$public_r[newsurl].\\''writer/\\''.$zzr[wid].\\''/\\" title=\\"\\''.$zzr[wname].\\''\\" target=\\"_blank\\" \\''.$zsty.\\''>\\''.$zzr[wname].\\''</a>\\'';\r\n			}\r\n		  ?>\r\n		  <span class=\\"clear\\"></span>\r\n		</div>\r\n	  </div>\r\n	  <span class=\\"blank10\\"></span>\r\n	  <div class=\\"hds\\">\r\n		<h4>本月点击排行</h4>\r\n	  </div>\r\n	  <div class=\\"con\\">\r\n		<ul class=\\"norl yli\\">\r\n  		  [e:loop={\\''bookname\\'',20,19,0,\\''newstime>UNIX_TIMESTAMP()-86400*30\\''}]\r\n		    <li <? if($bqno==20){echo \\''class=\\"liend\\"\\'';}?>><a class=\\"<?if($bqno<4){echo \\''bgred\\'';}else{echo \\''shuzi\\'';}?>\\"><?if($bqno<10){echo \\''0\\''.$bqno;}else{echo $bqno;}?></a><a href=\\''<?=$bqsr[titleurl]?>\\'' title=\\"<?=$bqr[title]?>\\" target=\\"_blank\\"><?=$bqr[title]?></a></li>\r\n		  [/e:loop]\r\n		</ul>\r\n	  </div>\r\n	  <span class=\\"blank10\\"></span>\r\n	  <div class=\\"hds\\">\r\n		<h4>点击总排行</h4>\r\n	  </div>\r\n	  <div class=\\"con\\">\r\n		<ul class=\\"norl yli\\">\r\n  		  [e:loop={\\''bookname\\'',20,19,0}]\r\n		    <li <? if($bqno==20){echo \\''class=\\"liend\\"\\'';}?>><a class=\\"<?if($bqno<4){echo \\''bgred\\'';}else{echo \\''shuzi\\'';}?>\\"><?if($bqno<10){echo \\''0\\''.$bqno;}else{echo $bqno;}?></a><a href=\\''<?=$bqsr[titleurl]?>\\'' title=\\"<?=$bqr[title]?>\\" target=\\"_blank\\"><?=$bqr[title]?></a></li>\r\n		  [/e:loop]\r\n		</ul>\r\n	  </div>\r\n	  <span class=\\"blank10\\"></span>\r\n	  <div class=\\"hds\\">\r\n		<h4>网站公告</h4>\r\n	  </div>\r\n	  <div class=\\"con\\">\r\n	    <ul class=\\"norl\\">\r\n		  [e:loop={9,10,0,0}]\r\n		    <li <? if($bqno==20){echo \\''class=\\"liend\\"\\'';}?>><a href=\\''<?=$bqsr[titleurl]?>\\'' title=\\"<?=$bqr[title]?>\\" target=\\"_blank\\"><?=esub($bqr[title],26)?></a></li>\r\n		  [/e:loop]\r\n		</ul>\r\n	  </div>\r\n	</div>\r\n\r\n\r\n\r\n\r\n  </div>\r\n  <div class=\\"clear\\"></div>\r\n\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n\r\n<script src=\\"[!--news.url--]e/extend/DoTimeRepage/\\"></script>\r\n</body>\r\n</html>\r\n', '<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\">\r\n<html xmlns=\\"http://www.w3.org/1999/xhtml\\">\r\n<head>\r\n<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=utf-8\\" />\r\n<title>[!--pagetitle--] - Powered by EmpireCMS</title>\r\n<meta name=\\"keywords\\" content=\\"[!--pagekey--]\\" />\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/default/css/style.css\\" rel=\\"stylesheet\\" type=\\"text/css\\" />\r\n<script type=\\"text/javascript\\" src=\\"[!--news.url--]skin/default/js/tabs.js\\"></script>\r\n</head>\r\n<body class=\\"listpage\\">\r\n[!--temp.dtheader--] \r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"10\\" cellpadding=\\"0\\">\r\n<tr valign=\\"top\\">\r\n<td class=\\"list_content\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"position\\">\r\n<tr>\r\n<td>现在的位置：[!--newsnav--]\r\n</td>\r\n</tr>\r\n</table>\r\n      <table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n        <tr> \r\n          <td width=\\"300\\" valign=\\"top\\"> \r\n		  <?php\r\n		  $lguserid=intval(getcvar(\\''mluserid\\''));//登陆用户ID\r\n		  $lgusername=RepPostVar(getcvar(\\''mlusername\\''));//登陆用户\r\n		  $lggroupid=intval(getcvar(\\''mlgroupid\\''));//会员组ID\r\n		  if($lggroupid)	//登陆会员显示菜单\r\n		  {\r\n		  ?>\r\n            <table width=\\"100%\\" border=\\"0\\" cellpadding=\\"3\\" cellspacing=\\"1\\" class=\\"tableborder\\">\r\n              <tr class=\\"header\\"> \r\n                <td height=\\"20\\" bgcolor=\\"#FFFFFF\\"> <div align=\\"center\\"><strong><a href=\\"[!--news.url--]e/member/cp/\\">功能菜单</a></strong></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/EditInfo/\\">修改资料</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/my/\\">帐号状态</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/msg/\\">站内信息</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/mspace/SetSpace.php\\">空间设置</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/DoInfo/\\">管理信息</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/fava/\\">收藏夹</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/payapi/\\">在线支付</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/friend/\\">我的好友</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/buybak/\\">消费记录</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/buygroup/\\">在线充值</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/card/\\">点卡充值</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"#ecms\\" onclick=\\"window.open(\\''[!--news.url--]e/ShopSys/buycar/\\'',\\''\\'',\\''width=680,height=500,scrollbars=yes,resizable=yes\\'');\\">我的购物车</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/ShopSys/ListDd/\\">我的订单</a></div></td>\r\n              </tr>\r\n			  <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/login/\\">重新登陆</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/doaction.php?enews=exit\\" onclick=\\"return confirm(\\''确认要退出?\\'');\\">退出登陆</a></div></td>\r\n              </tr>\r\n            </table>\r\n			<?php\r\n			}\r\n			else	//游客显示菜单\r\n			{\r\n			?>  \r\n            <table width=\\"100%\\" border=\\"0\\" cellpadding=\\"3\\" cellspacing=\\"1\\" class=\\"tableborder\\">\r\n              <tr class=\\"header\\"> \r\n                <td height=\\"20\\" bgcolor=\\"#FFFFFF\\"> <div align=\\"center\\"><strong><a href=\\"[!--news.url--]e/member/cp/\\">功能菜单</a></strong></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/login/\\">会员登陆</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/member/register/\\">注册帐号</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"[!--news.url--]e/DoInfo/\\">发布投稿</a></div></td>\r\n              </tr>\r\n              <tr> \r\n                <td height=\\"25\\" bgcolor=\\"#FFFFFF\\" onmouseout=\\"this.style.backgroundColor=\\''#ffffff\\''\\" onmouseover=\\"this.style.backgroundColor=\\''#EBF3FC\\''\\"><div align=\\"center\\"><a href=\\"#ecms\\" onclick=\\"window.open(\\''[!--news.url--]e/ShopSys/buycar/\\'',\\''\\'',\\''width=680,height=500,scrollbars=yes,resizable=yes\\'');\\">我的购物车</a></div></td>\r\n              </tr>\r\n            </table>\r\n			<?php\r\n			}\r\n			?>\r\n			</td>\r\n          <td width=\\"85%\\" valign=\\"top\\">[!--empirenews.template--]</td>\r\n        </tr>\r\n      </table></td>\r\n</tr>\r\n</table>\r\n[!--temp.footer--]\r\n</body>\r\n</html>', '<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\">\r\n<html xmlns=\\"http://www.w3.org/1999/xhtml\\">\r\n<head>\r\n<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=utf-8\\" />\r\n<title>高级搜索 - Powered by EmpireCMS</title>\r\n<link href=\\"[!--news.url--]skin/default/css/style.css\\" rel=\\"stylesheet\\" type=\\"text/css\\" />\r\n<script type=\\"text/javascript\\" src=\\"[!--news.url--]skin/default/js/tabs.js\\"></script>\r\n<script src=\\"[!--news.url--]e/data/images/setday.js\\"></script>\r\n</head>\r\n<body class=\\"listpage\\">\r\n[!--temp.dtheader--]\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"10\\" cellpadding=\\"0\\">\r\n	<tr valign=\\"top\\">\r\n		<td class=\\"list_content\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"position\\">\r\n				<tr>\r\n					<td>现在的位置：[!--url--]</td>\r\n				</tr>\r\n			</table>\r\n			<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n				<tr>\r\n					<td><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\">\r\n						<tr>\r\n							<td><form action=\\''[!--news.url--]e/search/index.php\\'' method=\\"post\\" name=\\"search_news\\" id=\\"search_news\\">\r\n									<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\">\r\n										<tr>\r\n											<td width=\\"54%\\"><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"6\\" cellspacing=\\"0\\">\r\n													<tr>\r\n														<td bgcolor=\\"#F4F4F4\\"><strong>搜索范围</strong></td>\r\n													</tr>\r\n											</table></td>\r\n											<td width=\\"46%\\"><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"6\\" cellspacing=\\"0\\">\r\n													<tr>\r\n														<td bgcolor=\\"#F4F4F4\\"><strong>搜索栏目</strong></td>\r\n													</tr>\r\n											</table></td>\r\n										</tr>\r\n										<tr>\r\n											<td valign=\\"top\\"><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"6\\" cellspacing=\\"0\\">\r\n													<tr>\r\n														<td><input type=\\"radio\\" name=\\"show\\" value=\\"title\\" checked=\\"checked\\" />\r\n															标题\r\n															<input type=\\"radio\\" name=\\"show\\" value=\\"smalltext\\" />\r\n															简介\r\n															<input type=\\"radio\\" name=\\"show\\" value=\\"newstext\\" />\r\n															内容\r\n															<input type=\\"radio\\" name=\\"show\\" value=\\"writer\\" />\r\n															作者\r\n															<input name=\\"show\\" type=\\"radio\\" value=\\"title,smalltext,newstext,writer\\" />\r\n															不限</td>\r\n													</tr>\r\n												</table>\r\n													<br />\r\n													<table width=\\"100%\\" border=\\"0\\" cellpadding=\\"6\\" cellspacing=\\"0\\">\r\n														<tr bgcolor=\\"#F4F4F4\\">\r\n															<td><strong>时间限制</strong><font color=\\"#666666\\">(0000-00-00为不限制)</font></td>\r\n														</tr>\r\n														<tr>\r\n															<td height=\\"30\\" valign=\\"top\\">从\r\n																<input name=\\"starttime\\" type=\\"text\\" value=\\"0000-00-00\\" size=\\"12\\" onclick=\\"setday(this)\\" />\r\n																到\r\n																<input name=\\"endtime\\" type=\\"text\\" value=\\"0000-00-00\\" size=\\"12\\" onclick=\\"setday(this)\\" />\r\n																之间的数据</td>\r\n														</tr>\r\n														<tr>\r\n															<td bgcolor=\\"#F4F4F4\\"><strong>价格限制</strong><font color=\\"#666666\\">(商城模型中有效,0为不限制)</font></td>\r\n														</tr>\r\n														<tr>\r\n															<td>从\r\n																<input name=\\"startprice\\" type=\\"text\\" id=\\"startprice\\" value=\\"0\\" size=\\"6\\" />\r\n																到\r\n																<input name=\\"endprice\\" type=\\"text\\" id=\\"endprice\\" value=\\"0\\" size=\\"6\\" />\r\n																元之间</td>\r\n														</tr>\r\n												</table></td>\r\n											<td valign=\\"top\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"6\\" cellpadding=\\"0\\">\r\n													<tr>\r\n														<td><select name=\\"classid\\" size=\\"8\\" id=\\"select2\\" style=\\"width: 100%;height:112px\\">\r\n																<option value=\\"0\\" selected=\\"selected\\">所有栏目</option>\r\n															[!--class--]\r\n          \r\n														</select></td>\r\n													</tr>\r\n												</table>\r\n													<table width=\\"100%\\" border=\\"0\\" cellpadding=\\"6\\" cellspacing=\\"0\\">\r\n														<tr>\r\n															<td bgcolor=\\"#F4F4F4\\"><strong>结果显示</strong></td>\r\n														</tr>\r\n														<tr>\r\n															<td height=\\"30\\"><select name=\\"orderby\\" id=\\"select4\\">\r\n																	<option value=\\"\\">按发布日期</option>\r\n																	<option value=\\"id\\">信息ID</option>\r\n																	<option value=\\"plnum\\">评论数</option>\r\n																	<option value=\\"onclick\\">人气</option>\r\n																	<option value=\\"totaldown\\">下载数</option>\r\n																</select>\r\n																	<select name=\\"myorder\\" id=\\"select5\\">\r\n																		<option value=\\"0\\">倒序排列</option>\r\n																		<option value=\\"1\\">顺序排列</option>\r\n																	</select>\r\n															</td>\r\n														</tr>\r\n												</table></td>\r\n										</tr>\r\n									</table>\r\n								<table width=\\"100%\\" border=\\"0\\" cellpadding=\\"4\\" cellspacing=\\"0\\">\r\n										<tr>\r\n											<td>关键字：\r\n												<input name=\\"keyboard\\" type=\\"text\\" id=\\"keyboard2\\" size=\\"60\\" />\r\n													<input type=\\"submit\\" name=\\"Submit22\\" value=\\"搜索\\" />\r\n											</td>\r\n										</tr>\r\n									</table>\r\n							</form></td>\r\n						</tr>\r\n					</table></td>\r\n				</tr>\r\n			</table></td>\r\n	</tr>\r\n</table>\r\n[!--temp.footer--]\r\n</body>\r\n</html>', '<table border=0 cellpadding=3 cellspacing=1><form name=search_js1 method=post action=''[!--news.url--]e/search/index.php'' onsubmit=''return search_check(document.search_js1);''><tr><td><div align=center>搜索: <select name=show><option value=title>标题</option><option value=smalltext>简介</option><option value=newstext>内容</option><option value=writer>作者</option><option value=title,smalltext,newstext,writer>搜索全部</option></select><select name=classid><option value=0>所有栏目</option>[!--class--]</select><input name=keyboard type=text size=13><input type=submit name=Submit value=搜索></div></td></tr></form></table>', '<table width=99% border=0 cellpadding=3 cellspacing=1><form name=search_js2 method=post action=''[!--news.url--]e/search/index.php'' onsubmit=''return search_check(document.search_js2);''><tr><td height=25><div align=center>关键字: <input name=keyboard type=text size=13></div></td></tr><tr><td><div align=center>范围: <select name=show><option value=title>标题</option><option value=smalltext>简介</option><option value=newstext>内容</option><option value=writer>作者</option><option value=title,smalltext,newstext,writer>搜索全部</option></select></div></td></tr><tr><td><div align=center>栏目:<select name=classid><option value=0>所有栏目</option>[!--class--]</select></div></td></tr><tr><td><div align=center><input type=submit name=Submit value=搜索></div></td></tr></form></table>', '[!--empirenews.listtemp--]<li><a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a></li>[!--empirenews.listtemp--]', '<a href=\\"[!--down.url--]\\" target=\\"_blank\\" title=\\"[!--down.name--]\\"><img src=\\"[!--news.url--]skin/v3/im/04.gif\\" alt=\\"[!--down.name--]\\"></a>', '[ <a href=\\"#ecms\\" onclick=\\"window.open(\\''[!--down.url--]\\'',\\''\\'',\\''width=300,height=300,resizable=yes\\'');\\">[!--down.name--]</a> ]', '页次：[!--thispage--]/[!--pagenum--]&nbsp;每页[!--lencord--]&nbsp;总数[!--num--]&nbsp;&nbsp;&nbsp;&nbsp;[!--pagelink--]&nbsp;&nbsp;&nbsp;&nbsp;转到:[!--options--]', '<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\">\r\n<html xmlns=\\"http://www.w3.org/1999/xhtml\\">\r\n<head>\r\n<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=utf-8\\" />\r\n<title>留言板 - Powered by EmpireCMS</title>\r\n<meta name=\\"keywords\\" content=\\"[!--bname--]\\" />\r\n<meta name=\\"description\\" content=\\"[!--bname--]\\" />\r\n<link href=\\"[!--news.url--]skin/default/css/style.css\\" rel=\\"stylesheet\\" type=\\"text/css\\" />\r\n<script type=\\"text/javascript\\" src=\\"[!--news.url--]skin/default/js/tabs.js\\"></script>\r\n</head>\r\n<body class=\\"listpage\\">\r\n[!--temp.dtheader--]\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"10\\" cellpadding=\\"0\\">\r\n<tr valign=\\"top\\">\r\n<td class=\\"list_content\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"position\\">\r\n<tr>\r\n<td>现在的位置：<a href=../../../>首页</a>&nbsp;>&nbsp;[!--bname--]\r\n</td>\r\n</tr>\r\n</table><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n	<tr>\r\n		<td><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"3\\" cellspacing=\\"2\\">\r\n			<tr>\r\n				<td align=\\"center\\" bgcolor=\\"#E1EFFB\\"><strong>[!--bname--]</strong></td>\r\n			</tr>\r\n			<tr>\r\n				<td align=\\"left\\" valign=\\"top\\"><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"4\\" cellspacing=\\"0\\" bgcolor=\\"#FFFFFF\\">\r\n						<tr>\r\n							<td height=\\"100%\\" valign=\\"top\\" bgcolor=\\"#FFFFFF\\"> [!--empirenews.listtemp--]\r\n								<table width=\\"92%\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"4\\" cellspacing=\\"1\\" bgcolor=\\"#F4F9FD\\" class=\\"tableborder\\">\r\n										<tr class=\\"header\\">\r\n											<td width=\\"55%\\" height=\\"23\\">发布者: [!--name--] </td>\r\n											<td width=\\"45%\\">发布时间: [!--lytime--] </td>\r\n										</tr>\r\n										<tr bgcolor=\\"#FFFFFF\\">\r\n											<td height=\\"23\\" colspan=\\"2\\"><table border=\\"0\\" width=\\"100%\\" cellspacing=\\"1\\" cellpadding=\\"8\\" bgcolor=\\''#cccccc\\''>\r\n													<tr>\r\n														<td width=\\''100%\\'' bgcolor=\\''#FFFFFF\\'' style=\\''word-break:break-all\\''> [!--lytext--] </td>\r\n													</tr>\r\n												</table>\r\n												[!--start.regbook--]\r\n												<table width=\\"100%\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\">\r\n													<tr>\r\n														<td><img src=\\"../../data/images/regb.gif\\" width=\\"18\\" height=\\"18\\" /><strong><font color=\\"#FF0000\\">回复:</font></strong> [!--retext--] </td>\r\n													</tr>\r\n												</table>\r\n												[!--end.regbook--] </td>\r\n										</tr>\r\n									</table>\r\n								<br />\r\n								[!--empirenews.listtemp--]\r\n								<table width=\\"92%\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"4\\" cellspacing=\\"1\\">\r\n									<tr>\r\n										<td>分页: [!--listpage--]</td>\r\n									</tr>\r\n								</table>\r\n								<form action=\\"../../enews/index.php\\" method=\\"post\\" name=\\"form1\\" id=\\"form1\\">\r\n									<table width=\\"92%\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"4\\" cellspacing=\\"1\\"class=\\"tableborder\\">\r\n										<tr class=\\"header\\">\r\n											<td colspan=\\"2\\" bgcolor=\\"#F4F9FD\\"><strong>请您留言:</strong></td>\r\n										</tr>\r\n										<tr bgcolor=\\"#FFFFFF\\">\r\n											<td width=\\"20%\\">姓名:</td>\r\n											<td width=\\"722\\" height=\\"23\\"><input name=\\"name\\" type=\\"text\\" id=\\"name\\" />\r\n												*</td>\r\n										</tr>\r\n										<tr bgcolor=\\"#FFFFFF\\">\r\n											<td>联系邮箱:</td>\r\n											<td height=\\"23\\"><input name=\\"email\\" type=\\"text\\" id=\\"email\\" />\r\n												*</td>\r\n										</tr>\r\n										<tr bgcolor=\\"#FFFFFF\\">\r\n											<td>联系电话:</td>\r\n											<td height=\\"23\\"><input name=\\"mycall\\" type=\\"text\\" id=\\"mycall\\" /></td>\r\n										</tr>\r\n										<tr bgcolor=\\"#FFFFFF\\">\r\n											<td>留言内容(*):</td>\r\n											<td height=\\"23\\"><textarea name=\\"lytext\\" cols=\\"60\\" rows=\\"12\\" id=\\"lytext\\"></textarea></td>\r\n										</tr>\r\n										<tr bgcolor=\\"#FFFFFF\\">\r\n											<td height=\\"23\\">&nbsp;</td>\r\n											<td height=\\"23\\"><input type=\\"submit\\" name=\\"Submit3\\" value=\\"提交\\" />\r\n											<input type=\\"reset\\" name=\\"Submit22\\" value=\\"重置\\" />\r\n											<input name=\\"enews\\" type=\\"hidden\\" id=\\"enews\\" value=\\"AddGbook\\" /></td>\r\n										</tr>\r\n									</table>\r\n								</form></td>\r\n						</tr>\r\n				</table></td>\r\n			</tr>\r\n		</table></td>\r\n	</tr>\r\n</table></td>\r\n</tr>\r\n</table>\r\n[!--temp.footer--]\r\n</body>\r\n</html>', '<html>\r\n<head>\r\n<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=utf-8\\">\r\n<title>登陆</title>\r\n<LINK href=\\"../../data/images/qcss.css\\" rel=stylesheet>\r\n</head>\r\n<body bgcolor=\\"#ededed\\" topmargin=\\"0\\">\r\n<table border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\" width=\\"100%\\">\r\n  <form name=login method=post action=\\"../../member/doaction.php\\">\r\n    <input type=hidden name=enews value=login>\r\n    <input type=hidden name=prtype value=1>\r\n    <tr> \r\n      <td height=\\"23\\" align=\\"center\\">\r\n      <div align=\\"left\\">\r\n      用户名：<input name=\\"username\\" type=\\"text\\" size=\\"8\\">&nbsp;\r\n      密码：<input name=\\"password\\" type=\\"password\\" size=\\"8\\">\r\n      <select name=\\"lifetime\\" id=\\"lifetime\\">\r\n         <option value=\\"0\\">不保存</option>\r\n         <option value=\\"3600\\">一小时</option>\r\n         <option value=\\"86400\\">一天</option>\r\n         <option value=\\"2592000\\">一个月</option>\r\n         <option value=\\"315360000\\">永久</option>\r\n      </select>&nbsp;\r\n      <input type=\\"submit\\" name=\\"Submit\\" value=\\"登陆\\">&nbsp;\r\n      <input type=\\"button\\" name=\\"Submit2\\" value=\\"注册\\" onclick=\\"window.open(\\''../register/\\'');\\">\r\n      </div>\r\n      </td>\r\n    </tr>\r\n  </form>\r\n</table>\r\n</body>\r\n</html>\r\n[!--empirenews.template--]\r\n<html>\r\n<head>\r\n<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=utf-8\\">\r\n<title>登陆</title>\r\n<LINK href=\\"../../data/images/qcss.css\\" rel=stylesheet>\r\n</head>\r\n<body bgcolor=\\"#ededed\\" topmargin=\\"0\\">\r\n<table border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\" width=\\"100%\\">\r\n    <tr>\r\n	<td height=\\"23\\" align=\\"center\\">\r\n	<div align=\\"left\\">\r\n		&raquo;&nbsp;<font color=red><b>[!--username--]</b></font>&nbsp;&nbsp;<a href=\\"../my/\\" target=\\"_parent\\">[!--groupname--]</a>&nbsp;[!--havemsg--]&nbsp;<a href=\\"[!--news.url--]e/space/?userid=[!--userid--]\\" target=_blank>我的空间</a>&nbsp;&nbsp;<a href=\\"../msg/\\" target=_blank>短信息</a>&nbsp;&nbsp;<a href=\\"../fava/\\" target=_blank>收藏夹</a>&nbsp;&nbsp;<a href=\\"../cp/\\" target=\\"_parent\\">控制面板</a>&nbsp;&nbsp;<a href=\\"../../member/doaction.php?enews=exit&prtype=9\\" onclick=\\"return confirm(\\''确认要退出?\\'');\\">退出</a> \r\n	</div>\r\n	</td>\r\n    </tr>\r\n</table>\r\n</body>\r\n</html>', 50, 'Y-m-d H:i:s', '<form name=login method=post action=\\"[!--news.url--]e/member/doaction.php\\">\r\n    <input type=hidden name=enews value=login>\r\n    <input type=hidden name=ecmsfrom value=9>\r\n    账 户：<input name=\\"username\\" type=\\"text\\" class=\\"inputText\\" size=\\"16\\" />\r\n    密 码：<input name=\\"password\\" type=\\"password\\" class=\\"inputText\\" size=\\"16\\" />\r\n	<input type=\\"image\\" style=\\"vertical-align:middle;\\" src=\\"[!--news.url--]skin/v3/im/land.gif\\">\r\n	<a target=\\"_blank\\" href=\\"[!--news.url--]e/member/register/\\"><img style=\\"vertical-align:middle;\\" src=\\"[!--news.url--]skin/v3/im/login.gif\\"></a>\r\n</form>\r\n[!--empirenews.template--]\r\n&raquo;&nbsp;<font color=red><b>[!--username--]</b></font>&nbsp;&nbsp;<a href=\\"[!--news.url--]e/member/my/\\" target=\\"_parent\\">[!--groupname--]</a>&nbsp;[!--havemsg--]&nbsp;<a href=\\"[!--news.url--]e/space/?userid=[!--userid--]\\" target=_blank>我的空间</a>&nbsp;&nbsp;<a href=\\"[!--news.url--]e/member/msg/\\" target=_blank>短信息</a>&nbsp;&nbsp;<a href=\\"[!--news.url--]e/member/fava/\\" target=_blank>收藏夹</a>&nbsp;&nbsp;<a href=\\"[!--news.url--]e/member/cp/\\" target=\\"_parent\\">控制面板</a>&nbsp;&nbsp;<a href=\\"[!--news.url--]e/member/doaction.php?enews=exit&ecmsfrom=9\\" onclick=\\"return confirm(\\''确认要退出?\\'');\\">退出</a>', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--pagetitle--]</title>\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n<style>\r\n.xzxx{float:left; width:219px; padding-left:10px; margin-right:30px; border-right:1px solid #ddd;}\r\n.xzxx p{text-indent:0;}\r\n.bintr{float:right; width:720px;}\r\n</style>\r\n</head> \r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n<?php include(ECMS_PATH.\\''inpage/menu.html\\'');?>\r\n<div class=\\"w990\\">\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n      <h5>[!--newsnav--]</h5>\r\n    </div>\r\n	[!--temp.search_nav--]\r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n  <div class=\\"wintro\\">\r\n    <h1>《[!--title--]》下载</h1>\r\n  </div>\r\n  <div class=\\"zw\\">\r\n    <div class=\\"xzxx\\">\r\n	<p>本书作者：<font color=\\"red\\"><?=ReplaceWriter($r[writer])?></font></p>\r\n	<p>完本状态：<font color=\\"red\\"><?=$r[full]?\\''连载\\'':\\''完本\\''?></font></p>\r\n	<p>更新时间：<font color=\\"red\\"><?=date(\\''Y-m-d\\'',$r[newstime])?></font></p>\r\n	<p>所需积分：<font color=\\"red\\"><?=$fen?></font></p>\r\n	<p>下载次数：<font color=\\"red\\"><?=$r[totaldown]?></font></p>\r\n	<p>下载格式：<font color=\\"red\\">TXT</font></p>\r\n	<p>文件大小：<font color=\\"red\\"><?=$r[filesize]?></font></p>\r\n	<p>下载地址：<font color=\\"red\\"><b><a href=\\"[!--down.url--]\\" title=\\"[!--title--] －[!--down.name--]\\">[!--down.name--]</a></b></font></p>\r\n	</div>\r\n	<div class=\\"bintr\\">\r\n		<?=$r[newstext]?>\r\n	</div>\r\n	<div class=\\"clear\\"></div>\r\n  </div>\r\n\r\n</div>\r\n[!--temp.foot--]\r\n</body>\r\n</html>', '[!--empirenews.listtemp--] \r\n      <table width=\\"100%\\" border=\\"0\\" align=\\"center\\" cellpadding=\\"3\\" cellspacing=\\"1\\" style=\\"word-break:break-all; word-wrap:break-all;\\">\r\n        <tr> \r\n          <td height=\\"30\\"><span class=\\"name\\">本站网友 [!--username--]</span> <font color=\\"#666666\\">ip:[!--plip--]</font></td>\r\n          <td><div align=\\"right\\"><font color=\\"#666666\\">[!--pltime--] 发表</font></div></td>\r\n        </tr>\r\n        <tr valign=\\"top\\"> \r\n          <td height=\\"50\\" colspan=\\"2\\" class=\\"text\\">[!--pltext--]</td>\r\n        </tr>\r\n        <tr> \r\n          <td height=\\"30\\">&nbsp;</td>\r\n          <td><div align=\\"right\\" class=\\"re\\"> \r\n              <a href=\\"JavaScript:makeRequest(\\''[!--news.url--]e/pl/doaction.php?enews=DoForPl&plid=[!--plid--]&classid=[!--classid--]&id=[!--id--]&dopl=1&doajax=1&ajaxarea=zcpldiv[!--plid--]\\'',\\''EchoReturnedText\\'',\\''GET\\'',\\''\\'');\\">支持</a>[<span id=\\"zcpldiv[!--plid--]\\">[!--zcnum--]</span>]&nbsp; \r\n              <a href=\\"JavaScript:makeRequest(\\''[!--news.url--]e/pl/doaction.php?enews=DoForPl&plid=[!--plid--]&classid=[!--classid--]&id=[!--id--]&dopl=0&doajax=1&ajaxarea=fdpldiv[!--plid--]\\'',\\''EchoReturnedText\\'',\\''GET\\'',\\''\\'');\\">反对</a>[<span id=\\"fdpldiv[!--plid--]\\">[!--fdnum--]</span>]\r\n            </div></td>\r\n        </tr>\r\n      </table>\r\n      <table width=\\"100%\\" border=\\"0\\" cellspacing=\\"1\\" cellpadding=\\"3\\">\r\n        <tr>\r\n          <td background=\\"[!--news.url--]skin/default/images/plhrbg.gif\\"></td>\r\n        </tr>\r\n      </table>\r\n[!--empirenews.listtemp--]', '<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\">\r\n<html xmlns=\\"http://www.w3.org/1999/xhtml\\">\r\n<head>\r\n<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=utf-8\\" />\r\n<title>搜索 - Powered by EmpireCMS</title>\r\n<link href=\\"[!--news.url--]skin/default/css/style.css\\" rel=\\"stylesheet\\" type=\\"text/css\\" />\r\n<script type=\\"text/javascript\\" src=\\"[!--news.url--]skin/default/js/tabs.js\\"></script>\r\n<style type=\\"text/css\\">\r\n<!--\r\n.r {\r\ndisplay:inline;\r\nfont-weight:normal;\r\nmargin:0;\r\nfont-size:16px;\r\nmargin-top:10px;\r\n}\r\n.a{color:green}\r\n.fl{color:#77c}\r\n-->\r\n</style>\r\n</head>\r\n<body class=\\"listpage\\">\r\n[!--temp.dtheader--]\r\n<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"10\\" cellpadding=\\"0\\">\r\n	<tr valign=\\"top\\">\r\n		<td class=\\"list_content\\"><table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"position\\">\r\n				<tr>\r\n					<td>现在的位置：<a href=\\"[!--news.url--]\\">首页</a>&nbsp;>&nbsp;搜索</td>\r\n				</tr>\r\n			</table>\r\n			<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"box\\">\r\n				<tr>\r\n					<td><form action=\\''index.php\\'' method=\\"GET\\" name=\\"search_news\\" id=\\"search_news\\">\r\n							<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"6\\" cellpadding=\\"0\\">\r\n								<tr>\r\n									<td height=\\"32\\">关键字：\r\n										<input name=\\"keyboard\\" type=\\"text\\" id=\\"keyboard\\" value=\\"[!--keyboard--]\\" size=\\"42\\" />\r\n                    <select name=\\"field\\" id=\\"field\\">\r\n                      <option value=\\"1\\">全文</option>\r\n                      <option value=\\"2\\">标题</option>\r\n                      <option value=\\"3\\">内容</option>\r\n                    </select> \r\n                    <input type=\\"submit\\" name=\\"Submit22\\" value=\\"搜索\\" />\r\n                    <font color=\\"#666666\\">(多个关键字请用&quot;空格&quot;隔开)</font> </td>\r\n								</tr>\r\n							</table>\r\n						</form>\r\n						<table width=\\"100%\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"6\\">\r\n							<tr>\r\n								<td>系统搜索到约有<strong>[!--num--]</strong>项符合<strong>[!--keyboard--]</strong>的查询结果</td>\r\n							</tr>\r\n						</table>\r\n						[!--empirenews.listtemp--]\r\n						<h2 class=\\"r\\"><span>[!--no.num--].</span> <a class=\\"l\\" href=\\"[!--titleurl--]\\" target=\\"_blank\\">[!--title--]</a></h2>\r\n						<table width=\\"80%\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\">\r\n							<tbody>\r\n							<tr>\r\n								<td>[!--smalltext--]</td>\r\n							</tr>\r\n							<tr>\r\n								<td><span class=\\"a\\">[!--titleurl--] - [!--newstime--]</span></td>\r\n							</tr>\r\n							<tr>\r\n								<td>&nbsp;</td>\r\n							</tr>\r\n							</tbody>\r\n						</table>\r\n						[!--empirenews.listtemp--]\r\n						<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\" class=\\"list_page\\">\r\n							<tr>\r\n								<td>[!--listpage--]</td>\r\n							</tr>\r\n						</table></td>\r\n				</tr>\r\n			</table></td>\r\n	</tr>\r\n</table>\r\n[!--temp.footer--]\r\n</body>\r\n</html>', 120, 'Y-m-d H:i:s');




DROP TABLE IF EXISTS `phome_enewssearchtemp`;
CREATE TABLE `phome_enewssearchtemp` (
  `tempid` smallint(5) unsigned NOT NULL auto_increment,
  `tempname` varchar(60) NOT NULL default '',
  `temptext` mediumtext NOT NULL,
  `subnews` smallint(6) NOT NULL default '0',
  `isdefault` tinyint(1) NOT NULL default '0',
  `listvar` text NOT NULL,
  `rownum` smallint(6) NOT NULL default '0',
  `modid` smallint(6) NOT NULL default '0',
  `showdate` varchar(50) NOT NULL default '',
  `subtitle` smallint(6) NOT NULL default '0',
  `classid` smallint(5) unsigned NOT NULL default '0',
  `docode` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`tempid`),
  KEY `classid` (`classid`)
) ENGINE=MyISAM    ;



INSERT INTO `phome_enewssearchtemp` (`tempid`, `tempname`, `temptext`, `subnews`, `isdefault`, `listvar`, `rownum`, `modid`, `showdate`, `subtitle`, `classid`, `docode`) VALUES
(1, '默认搜索模板', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\\"utf-8\\" />\r\n<title>[!--keyboard--] 搜索结果 - [!--sitename--]</title>\r\n<meta name=\\"description\\" content=\\"[!--pagedes--]\\" />\r\n<link href=\\"[!--news.url--]skin/v3/t.css\\" rel=\\"stylesheet\\" />\r\n</head>\r\n\r\n<body>\r\n[!--temp.topnav--]\r\n[!--temp.head--]\r\n[!--temp.menu--]\r\n\r\n<!-- main start -->\r\n<div class=\\"w990\\">\r\n  <div class=\\"weizhi\\">\r\n    <div class=\\"wznav black\\">\r\n        <h5>系统搜索到约有<strong>[!--ecms.num--]</strong>项符合 <strong class=\\"red1\\">[!--keyboard--]</strong> 的查询结果</h5>\r\n    </div>\r\n    <div class=\\"gn\\">\r\n      <!-- Baidu Button BEGIN -->\r\n      <div id=\\"bdshare\\" class=\\"bdshare_t bds_tools get-codes-bdshare\\">\r\n        <span class=\\"bds_more\\"></span>\r\n        <a class=\\"bds_qzone\\"></a>\r\n        <a class=\\"bds_tsina\\"></a>\r\n        <a class=\\"bds_tqq\\"></a>\r\n        <a class=\\"bds_renren\\"></a>\r\n        <a class=\\"bds_mshare\\"></a>\r\n        <a class=\\"shareCount\\"></a>\r\n      </div>\r\n      <!-- Baidu Button END -->\r\n    </div>\r\n  </div>\r\n\r\n  <!-- left -->\r\n      [!--empirenews.listtemp--]\r\n        <!--list.var1-->\r\n      [!--empirenews.listtemp--]\r\n    <div class=\\"pages\\">[!--show.page--]</div>\r\n</div>\r\n<!-- main end -->\r\n\r\n[!--temp.foot--]\r\n\r\n</body>\r\n</html>', 180, 1, '          <div class=\\"sbintro\\">\r\n            <h3>[!--no.num--]. <a href=\\"[!--titleurl--]\\" target=\\"_blank\\">[!--title--]</a><span>[!--zuozhe.link--]</span></h3>\r\n            <div class=\\"tp\\"><b>简介：</b>[!--smalltext--]</div>\r\n            <div class=\\"ex\\">\r\n              TAGS：[!--tags--]\r\n              最后更新：[!--newstime--] \r\n              状态: [!--full--] \r\n            </div>\r\n          </div>\r\n', 1, 1, 'Y-m-d', 0, 0, 0);

DROP TABLE IF EXISTS `phome_enewssearchtempclass`;
CREATE TABLE `phome_enewssearchtempclass` (
  `classid` smallint(5) unsigned NOT NULL auto_increment,
  `classname` varchar(30) NOT NULL default '',
  PRIMARY KEY  (`classid`)
) ENGINE=MyISAM  ;

DROP TABLE IF EXISTS `phome_enewstempbak`;
CREATE TABLE `phome_enewstempbak` (
  `bid` int(10) unsigned NOT NULL auto_increment,
  `tempid` smallint(5) unsigned NOT NULL default '0',
  `tempname` varchar(60) NOT NULL default '',
  `temptext` mediumtext NOT NULL,
  `subnews` smallint(6) NOT NULL default '0',
  `isdefault` tinyint(1) NOT NULL default '0',
  `listvar` text NOT NULL,
  `rownum` smallint(6) NOT NULL default '0',
  `modid` smallint(5) unsigned NOT NULL default '0',
  `showdate` varchar(50) NOT NULL default '',
  `subtitle` smallint(6) NOT NULL default '0',
  `classid` smallint(5) unsigned NOT NULL default '0',
  `docode` tinyint(1) NOT NULL default '0',
  `baktime` int(10) unsigned NOT NULL default '0',
  `temptype` varchar(30) NOT NULL default '',
  `gid` smallint(5) unsigned NOT NULL default '0',
  `lastuser` varchar(30) NOT NULL default '',
  PRIMARY KEY  (`bid`),
  KEY `tempid` (`tempid`),
  KEY `temptype` (`temptype`),
  KEY `gid` (`gid`)
) ENGINE=MyISAM ;


DROP TABLE IF EXISTS `phome_enewstempdt`;
CREATE TABLE `phome_enewstempdt` (
  `tempid` smallint(5) unsigned NOT NULL auto_increment,
  `tempvar` char(30) NOT NULL default '',
  `tempname` char(30) NOT NULL default '',
  `tempsay` char(255) NOT NULL default '',
  `tempfile` char(200) NOT NULL default '',
  `myorder` smallint(5) unsigned NOT NULL default '0',
  `temptype` char(20) NOT NULL default '',
  PRIMARY KEY  (`tempid`),
  UNIQUE KEY `tempvar` (`tempvar`),
  KEY `temptype` (`temptype`),
  KEY `myorder` (`myorder`)
) ENGINE=MyISAM ;



INSERT INTO `phome_enewstempdt` VALUES (1, 'header', '主界面头部', '主界面头部', 'e/template/incfile/header.php', 0, 'incfile');
INSERT INTO `phome_enewstempdt` VALUES (2, 'footer', '主界面尾部', '主界面尾部', 'e/template/incfile/footer.php', 0, 'incfile');
INSERT INTO `phome_enewstempdt` VALUES (3, 'qDoInfo', '管理投稿首页', '管理投稿首页', 'e/template/DoInfo/DoInfo.php', 0, 'doinfo');
INSERT INTO `phome_enewstempdt` VALUES (4, 'qChangeClass', '投稿选择栏目页', '投稿选择栏目页', 'e/template/DoInfo/ChangeClass.php', 0, 'doinfo');
INSERT INTO `phome_enewstempdt` VALUES (5, 'qDoInfoTran', '发布投稿上传附件页面', '发布投稿上传附件页面', 'e/template/DoInfo/tran.php', 0, 'doinfo');
INSERT INTO `phome_enewstempdt` VALUES (6, 'qAddInfo', '发布投稿页', '发布投稿页', 'e/template/DoInfo/AddInfo.php', 0, 'doinfo');
INSERT INTO `phome_enewstempdt` VALUES (7, 'qListInfo', '默认管理投稿列表页', '默认管理投稿列表页', 'e/data/html/list/qlistinfo.php', 0, 'doinfo');
INSERT INTO `phome_enewstempdt` VALUES (8, 'report', '提交错误报告页面', '提交错误报告页面', 'e/template/public/report.php', 0, 'pubtemp');
INSERT INTO `phome_enewstempdt` VALUES (9, 'payapi', '在线支付页面', '在线支付页面', 'e/template/payapi/payapi.php', 0, 'pubtemp');
INSERT INTO `phome_enewstempdt` VALUES (12, 'ShopBurcar', '购物车页面', '购物车页面', 'e/template/ShopSys/buycar.php', 0, 'shopsys');
INSERT INTO `phome_enewstempdt` VALUES (13, 'ShopOrder', '提交订单页面', '提交订单页面', 'e/template/ShopSys/order.php', 0, 'shopsys');
INSERT INTO `phome_enewstempdt` VALUES (14, 'ShopSubmitOrder', '确认提交订单页面', '确认提交订单页面', 'e/template/ShopSys/SubmitOrder.php', 0, 'shopsys');
INSERT INTO `phome_enewstempdt` VALUES (15, 'ShopListDd', '订单列表页面', '订单列表页面', 'e/template/ShopSys/ListDd.php', 0, 'shopsys');
INSERT INTO `phome_enewstempdt` VALUES (16, 'ShopShowDd', '订单详细页面', '订单详细页面', 'e/template/ShopSys/ShowDd.php', 0, 'shopsys');
INSERT INTO `phome_enewstempdt` VALUES (17, 'ShopBurcarForm', '购物车-加入表单模板', '购物车-加入表单模板', 'e/template/ShopSys/buycar/buycar_form.php', 0, 'shopsys');
INSERT INTO `phome_enewstempdt` VALUES (18, 'ShopBurcarOrder', '购物车-确认订单模板', '购物车-确认订单模板', 'e/template/ShopSys/buycar/buycar_order.php', 0, 'shopsys');
INSERT INTO `phome_enewstempdt` VALUES (19, 'ShopBurcarShowdd', '购物车-显示订单模板', '购物车-显示订单模板', 'e/template/ShopSys/buycar/buycar_showdd.php', 0, 'shopsys');
INSERT INTO `phome_enewstempdt` VALUES (20, 'ShopAddAddress', '增加配送地址页面', '增加配送地址页面', 'e/template/ShopSys/AddAddress.php', 0, 'shopsys');
INSERT INTO `phome_enewstempdt` VALUES (21, 'ShopListAddress', '管理配送地址页面', '管理配送地址页面', 'e/template/ShopSys/ListAddress.php', 0, 'shopsys');
INSERT INTO `phome_enewstempdt` VALUES (22, 'MemberReg', '会员注册页面', '会员注册页面', 'e/template/member/register.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (23, 'MemberChangeReg', '选择注册类型页面', '选择注册类型页面', 'e/template/member/ChangeRegister.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (24, 'MemberRegsend', '重发注册激活邮件页面', '重发注册激活邮件页面', 'e/template/member/regsend.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (25, 'MemberLogin', '会员登录页面', '会员登录页面', 'e/template/member/login.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (26, 'MemberLoginopen', '会员登录弹出页面', '会员登录弹出页面', 'e/template/member/loginopen.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (27, 'MemberEditinfo', '修改会员信息页面', '修改会员信息页面', 'e/template/member/EditInfo.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (28, 'MemberEditsafeinfo', '修改会员安全信息页面', '修改会员安全信息页面', 'e/template/member/EditSafeInfo.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (29, 'MemberGetPassword', '取回密码页面', '取回密码页面', 'e/template/member/GetPassword.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (30, 'MemberGetResetPass', '取回密码重置页面', '取回密码重置页面', 'e/template/member/getpass.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (31, 'MemberCp', '会员中心首页', '会员中心首页', 'e/template/member/cp.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (32, 'MemberMy', '会员状态页面', '会员状态页面', 'e/template/member/my.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (33, 'MemberShowInfo', '查看会员信息页面', '查看会员信息页面', 'e/template/member/ShowInfo.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (34, 'MemberList1', '默认会员列表页面', '默认会员列表页面', 'e/template/member/memberlist/1.php', 0, 'member');
INSERT INTO `phome_enewstempdt` VALUES (35, 'MemberAddMsg', '发送站内消息页面', '发送站内消息页面', 'e/template/member/AddMsg.php', 0, 'membermsg');
INSERT INTO `phome_enewstempdt` VALUES (36, 'MemberMsg', '站内消息列表页面', '站内消息列表页面', 'e/template/member/msg.php', 0, 'membermsg');
INSERT INTO `phome_enewstempdt` VALUES (37, 'MemberViewMsg', '查看站内消息页面', '查看站内消息页面', 'e/template/member/ViewMsg.php', 0, 'membermsg');
INSERT INTO `phome_enewstempdt` VALUES (38, 'MemberAddFriend', '增加好友页面', '增加好友页面', 'e/template/member/AddFriend.php', 0, 'memberfriend');
INSERT INTO `phome_enewstempdt` VALUES (39, 'MemberFriend', '好友列表页面', '好友列表页面', 'e/template/member/friend.php', 0, 'memberfriend');
INSERT INTO `phome_enewstempdt` VALUES (40, 'MemberFriendClass', '好友分类页面', '好友分类页面', 'e/template/member/FriendClass.php', 0, 'memberfriend');
INSERT INTO `phome_enewstempdt` VALUES (41, 'MemberChangeFriend', '选择好友页面', '选择好友页面', 'e/template/member/ChangeFriend.php', 0, 'memberfriend');
INSERT INTO `phome_enewstempdt` VALUES (42, 'MemberAddFava', '增加收藏信息页面', '增加收藏信息页面', 'e/template/member/AddFava.php', 0, 'memberfav');
INSERT INTO `phome_enewstempdt` VALUES (43, 'MemberFava', '管理收藏页面', '管理收藏页面', 'e/template/member/fava.php', 0, 'memberfav');
INSERT INTO `phome_enewstempdt` VALUES (44, 'MemberFavaClass', '管理收藏分类页面', '管理收藏分类页面', 'e/template/member/FavaClass.php', 0, 'memberfav');
INSERT INTO `phome_enewstempdt` VALUES (45, 'MemberBuybak', '充值记录页面', '充值记录页面', 'e/template/member/buybak.php', 0, 'memberother');
INSERT INTO `phome_enewstempdt` VALUES (46, 'MemberDownbak', '下载记录页面', '下载记录页面', 'e/template/member/downbak.php', 0, 'memberother');
INSERT INTO `phome_enewstempdt` VALUES (47, 'MemberBuygroup', '购买会员类型页面', '购买会员类型页面', 'e/template/member/buygroup.php', 0, 'memberother');
INSERT INTO `phome_enewstempdt` VALUES (48, 'MemberCard', '点卡充值页面', '点卡充值页面', 'e/template/member/card.php', 0, 'memberother');
INSERT INTO `phome_enewstempdt` VALUES (49, 'MemberChangeStyle', '选择会员空间风格页面', '选择会员空间风格页面', 'e/template/member/mspace/ChangeStyle.php', 0, 'memberspace');
INSERT INTO `phome_enewstempdt` VALUES (50, 'MemberSetSpace', '设置会员空间页面', '设置会员空间页面', 'e/template/member/mspace/SetSpace.php', 0, 'memberspace');
INSERT INTO `phome_enewstempdt` VALUES (51, 'MemberFeedback', '管理会员空间反馈页面', '管理会员空间反馈页面', 'e/template/member/mspace/feedback.php', 0, 'memberspace');
INSERT INTO `phome_enewstempdt` VALUES (52, 'MemberShowFeedback', '查看会员空间反馈页面', '查看会员空间反馈页面', 'e/template/member/mspace/ShowFeedback.php', 0, 'memberspace');
INSERT INTO `phome_enewstempdt` VALUES (53, 'MemberGbook', '管理会员空间留言页面', '管理会员空间留言页面', 'e/template/member/mspace/gbook.php', 0, 'memberspace');
INSERT INTO `phome_enewstempdt` VALUES (54, 'MemberReGbook', '回复会员空间留言页面', '回复会员空间留言页面', 'e/template/member/mspace/ReGbook.php', 0, 'memberspace');
INSERT INTO `phome_enewstempdt` VALUES (55, 'MemberConnectListBind', '登录绑定管理页面', '登录绑定管理页面', 'e/template/memberconnect/ListBind.php', 0, 'memberconnect');
INSERT INTO `phome_enewstempdt` VALUES (56, 'MemberConnectTobind', '绑定登录帐号页面', '绑定登录帐号页面', 'e/template/memberconnect/tobind.php', 0, 'memberconnect');

DROP TABLE IF EXISTS `phome_enewstempgroup`;
CREATE TABLE `phome_enewstempgroup` (
  `gid` smallint(5) unsigned NOT NULL auto_increment,
  `gname` varchar(60) NOT NULL default '',
  `isdefault` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`gid`)
) ENGINE=MyISAM    ;



INSERT INTO `phome_enewstempgroup` (`gid`, `gname`, `isdefault`) VALUES
(1, '默认模板组', 1);

DROP TABLE IF EXISTS `phome_enewstempvar`;
CREATE TABLE `phome_enewstempvar` (
  `varid` smallint(5) unsigned NOT NULL auto_increment,
  `myvar` varchar(60) NOT NULL default '',
  `varname` varchar(60) NOT NULL default '',
  `varvalue` mediumtext NOT NULL,
  `classid` smallint(5) unsigned NOT NULL default '0',
  `isclose` tinyint(1) NOT NULL default '0',
  `myorder` smallint(5) unsigned NOT NULL default '0',
  PRIMARY KEY  (`varid`),
  KEY `classid` (`classid`)
) ENGINE=MyISAM  ;



INSERT INTO `phome_enewstempvar` VALUES (1, 'head', 'head', '<!-- banner start -->\r\n<div class=\\"w990\\">\r\n  <div id=\\"banner\\">\r\n    <div class=\\"logo left\\">\r\n      <a href=\\"[!--news.url--]\\" title=\\"<?=$public_r[\\''sitename\\'']?>\\"><img src=\\"[!--news.url--]images/logo.gif\\" width=148 height=58 alt=\\"<?=$public_r[\\''sitename\\'']?>\\"></a>\r\n    </div>\r\n    <div class=\\"bat\\">\r\n      <img src=\\"/images/20140123_chunjie_001.gif\\" width=\\"670\\" height=\\"70\\" border=\\"0\\" alt=\\"\\">\r\n    </div>\r\n	<span class=\\"clear\\"></span>\r\n  </div>\r\n</div>\r\n<!-- banner end -->', 0, 0, 0);
INSERT INTO `phome_enewstempvar` VALUES (2, 'menu', 'menu', '<!-- menu start -->\r\n<div class=\\"w990\\">\r\n  <div class=\\"mnav\\">\r\n    <span class=\\"red1\\"><a href=\\"[!--news.url--]top/paihang.php\\">小说排行榜</a></span>\r\n    <span class=\\"black\\"><a href=\\"[!--news.url--]top/\\" >今日风云榜</a></span>\r\n    <span class=\\"black\\"><a href=\\"[!--news.url--]top/allbook.php\\" >书库</a></span>\r\n	<span class=\\"black\\"><a href=\\"[!--news.url--]writer/\\" >作者大全</a></span>\r\n	<span class=\\"black\\"><a href=\\"[!--news.url--]tags/\\" >专题</a></span>\r\n	<div class=\\"chongzhi blue\\">\r\n		<a href=\\"[!--news.url--]e/DoInfo/ChangeClass.php?mid=1\\" class=\\"tg\\">投稿</a><a href=\\"[!--news.url--]e/member/buygroup/\\">充值</a>\r\n	</div>\r\n  </div>\r\n  <div id=\\"menu\\">\r\n    <ul>\r\n      <li><a href=\\"[!--news.url--]\\" class=\\"mi <?php if(!$GLOBALS[\\''navclassid\\'']){echo \\"on\\";} ?>\\">首页</a></li>\r\n<?\r\n$crsql=$empire->query(\\"select classid,classname from {$dbtbpre}enewsclass where is_zt=0 order by myorder,classid\\");\r\nwhile($crr=$empire->fetch($crsql)){\r\n	$classurlmenu=ClassUrl($crr[classid]);\r\n	if($GLOBALS[\\''navclassid\\'']==$crr[classid]){$mon=\\''class=\\"on\\"\\'';}else{$mon=\\''\\'';}\r\n?>\r\n    <li><a href=\\"<?=$classurlmenu?>\\" <?=$mon?>><?=$crr[classname]?></a></li>\r\n<?\r\n}\r\n?>\r\n    </ul>\r\n  </div>  \r\n</div>\r\n<!-- menu end -->', 0, 0, 0);
INSERT INTO `phome_enewstempvar` VALUES (3, 'js', 'js', '<!-- menu start -->\r\n<div class=\\"w100\\">\r\n  <div id=\\"menu\\">\r\n    <ul>\r\n    <li class=\\"sx\\"></li>\r\n    <li class=\\"mi\\" onmouseout=\\"this.className=\\''mi\\''\\" onmouseover=\\"this.className=\\''mi mo\\''\\"><a href=\\"[!--news.url--]\\">首页</a></li>\r\n    <li class=\\"sx\\"></li>\r\n<?\r\n$crsql=$empire->query(\\"select classid,classname from {$dbtbpre}enewsclass order by myorder,classid\\");\r\nwhile($crr=$empire->fetch($crsql)){\r\n	$classurlmenu=ClassUrl($crr[classid]);\r\n?>\r\n    <li class=\\"mb\\" onmouseout=\\"this.className=\\''mb\\''\\" onmouseover=\\"this.className=\\''mb mo\\''\\"><a href=\\"<?=$classurlmenu?>\\"><?=$crr[classname]?></a></li>\r\n    <li class=\\"sx\\"></li>\r\n<?\r\n}\r\n?>\r\n    </ul>\r\n  </div>\r\n  <span class=\\"clear\\"></span>\r\n</div>\r\n<!-- menu end -->', 0, 0, 0);
INSERT INTO `phome_enewstempvar` VALUES (4, 'foot', 'foot', '<!-- foot start -->\r\n<span class=\\"blank10\\"></span>\r\n<div class=\\"w990\\">\r\n  <div id=\\"foot\\">\r\n    <div class=\\"fnav\\">\r\n        <a href=\\"\\" class=\\"black\\">关于我们</a> | <a href=\\"\\" class=\\"black\\">用户指南</a> | <a href=\\"\\" class=\\"black\\">联系我们</a> | <a href=\\"\\" class=\\"black\\" class=\\"black\\">书评</a> | <a href=\\"\\" class=\\"black\\">网站公告</a> | <a href=\\"http://dp1037.com\\" class=\\"black\\">帝国小说</a>\r\n    </div>\r\n    <span class=\\"blank10\\"></span>\r\n    <p align=center>本站所收录作品、社区话题、书库评论皆由网友发表，与本站立场无关。如无意侵犯您的权益，请联系本站删除。</p>\r\n    <p align=center>作品版权均为原版权人所有，未经原版权人同意，任何人不得用于商业用途。本站为非营利网站。</p>  \r\n\r\n  </div>\r\n</div>\r\n<!-- foot end -->', 0, 0, 0);
INSERT INTO `phome_enewstempvar` VALUES (8, 'topnav', 'topnav', '<!-- topnav start -->\r\n<div class=\\"topbg\\">\r\n  <div id=\\"topnav\\">\r\n    <div class=\\"tn1\\">欢迎光临 <?=$public_r[sitename]?> <a onclick=\\"window.external.addFavorite(location.href,document.title)\\" href=\\"#ecms\\">收藏本站</a><a onclick=\\"this.style.behavior=\\''url(#default#homepage)\\'';this.setHomePage(\\''/\\'')\\" href=\\"#ecms\\">设为首页</a></div>\r\n    <div class=\\"tn2\\">\r\n	  <script src=\\"/e/member/login/loginjs.php\\"></script>\r\n        \r\n    </div>\r\n    <span class=\\"clear\\"></span>\r\n  </div>\r\n</div>\r\n<!-- topnav end -->', 0, 0, 0);
INSERT INTO `phome_enewstempvar` VALUES (9, 'search_nav', '面包屑内的搜索框', '	<div class=\\"search\\">\r\n      <form method=\\"post\\" name=\\"searchform\\" id=\\"searchform\\" action=\\"[!--news.url--]e/search/index.php\\" target=\\"_blank\\">\r\n        <input type=\\"hidden\\" name=\\"show\\" value=\\"title\\" />\r\n        <input type=\\"hidden\\" name=\\"tempid\\" value=\\"1\\" />\r\n        <input name=\\"keyboard\\" type=\\"text\\" class=\\"search_keyword\\" id=\\"keyboard\\" onblur=\\"if(this.value==\\''\\''){this.value=\\''请输入书名\\'';}\\" onfocus=\\"if(this.value==this.defaultValue){this.value=\\''\\'';}\\" autocomplete=\\"off\\" x-webkit-grammar=\\"builtin:translate\\" x-webkit-speech=\\"\\" value=\\"请输入书名\\" />\r\n		<input type=\\"image\\" src=\\"[!--news.url--]skin/v3/im/search1.gif\\">\r\n        <span class=\\"clear\\"></span>\r\n      </form>\r\n	</div> ', 0, 0, 0);
INSERT INTO `phome_enewstempvar` VALUES (10, 'pl', '评论表单', '	<script>\r\n	function CheckPl(obj){\r\n		if(obj.saytext.value==\\"\\")\r\n		{\r\n		  alert(\\"您没什么话要说吗？\\");\r\n		  obj.saytext.focus();\r\n		  return false;\r\n		}\r\n		  return true;\r\n	}\r\n	</script>\r\n<form action=\\"[!--news.url--]e/pl/doaction.php\\" method=\\"post\\" name=\\"saypl\\" id=\\"saypl\\" onsubmit=\\"return CheckPl(document.saypl)\\">\r\n<input name=\\"username\\" type=\\"hidden\\" class=\\"inputText\\" id=\\"username\\" value=\\"\\" size=\\"16\\" />\r\n<input name=\\"password\\" type=\\"hidden\\" class=\\"inputText\\" id=\\"password\\" value=\\"\\" size=\\"16\\" />\r\n<input name=\\"id\\" type=\\"hidden\\" id=\\"id\\" value=\\"[!--id--]\\" />\r\n<input name=\\"classid\\" type=\\"hidden\\" id=\\"classid\\" value=\\"[!--class.id--]\\" />\r\n<input name=\\"enews\\" type=\\"hidden\\" id=\\"enews\\" value=\\"AddPl\\" />\r\n<input name=\\"repid\\" type=\\"hidden\\" id=\\"repid\\" value=\\"0\\" />\r\n<input type=\\"hidden\\" name=\\"ecmsfrom\\" value=\\"[!--titleurl--]\\">\r\n<div class=\\"sayhd\\">\r\n	<strong>发表新评论</strong> <span><script src=\\"[!--news.url--]e/member/login/plstates.php\\"></script></span>\r\n    验证码:\r\n    <input name=\\"key\\" type=\\"text\\" class=\\"inputText\\" size=\\"10\\" />\r\n    <img src=\\"[!--news.url--]e/ShowKey/?v=pl\\" align=\\"absmiddle\\" />\r\n	<input name=\\"nomember\\" type=\\"checkbox\\" id=\\"nomember\\" value=\\"1\\" /> 匿名发表\r\n</div>\r\n<textarea name=\\"saytext\\" rows=\\"5\\" id=\\"saytext\\" class=\\"saytext\\"></textarea>\r\n<div class=\\"tijiao\\">\r\n	<input name=\\"submit\\" type=\\"submit\\" value=\\"提交\\"/>\r\n</div>\r\n</form>', 0, 0, 0);
INSERT INTO `phome_enewstempvar` VALUES (11, 'shaixun', '书籍筛选表单', '     <form action=\\"[!--news.url--]top/shaixuan.php\\" method=\\"get\\" target=\\"_blank\\" id=\\"FrmFilter\\">\r\n	   <input type=\\"hidden\\" name=\\"fromurl\\" value=\\"1037\\">\r\n	   <select id=\\"full\\" name=\\"full\\">\r\n	     <option value=\\"1\\">完结</option>\r\n		 <option value=\\"2\\">连载中</option>\r\n		 <option value=\\"0\\">不限</option>\r\n	   </select>        \r\n	   <select id=\\"day\\" name=\\"day\\">   \r\n	     <option value=\\"0\\">更新时间</option>\r\n	     <option value=\\"1\\">本周</option>          \r\n	     <option value=\\"2\\">本月</option>\r\n		 <option value=\\"3\\">本年</option>		         \r\n	   </select>        \r\n	   <select id=\\"order\\" name=\\"order\\">          \r\n	     <option value=\\"0\\">更新时间排序</option>          \r\n		 <option value=\\"1\\">点击排行</option>          \r\n		 <option value=\\"2\\">推荐排行</option>          \r\n		 <option value=\\"3\\">下载排行</option>        \r\n	   </select>        \r\n	   <select id=\\"classid\\" name=\\"classid\\">\r\n	     <option value=\\"0\\">不限栏目</option>\r\n		 <option value=\\"11\\">武侠</option>\r\n		 <option value=\\"12\\">言情</option>\r\n		 <option value=\\"14\\">悬疑</option>\r\n		 <option value=\\"15\\">科幻</option>\r\n	   </select>\r\n	   <input type=\\"image\\" style=\\"cursor:pointer;vertical-align:middle;\\" src=\\"[!--news.url--]skin/v3/im/filter.gif\\">\r\n	 </form>', 0, 0, 0);

DROP TABLE IF EXISTS `phome_enewstempvarclass`;
CREATE TABLE `phome_enewstempvarclass` (
  `classid` smallint(5) unsigned NOT NULL auto_increment,
  `classname` varchar(30) NOT NULL default '',
  PRIMARY KEY  (`classid`)
) ENGINE=MyISAM  ;