<?php
@include("../../inc/header.php");

/*
		SoftName : Ebak
		Author   : wm_chief
		Copyright: Power by www.phome.net
*/

$empire->query("DROP TABLE IF EXISTS `phome_enewsbqtemp`;");
$empire->query("CREATE TABLE `phome_enewsbqtemp` (
  `tempid` smallint(6) NOT NULL auto_increment,
  `tempname` varchar(60) NOT NULL default '',
  `modid` smallint(6) NOT NULL default '0',
  `temptext` text NOT NULL,
  `showdate` varchar(50) NOT NULL default '',
  `listvar` text NOT NULL,
  `subnews` smallint(6) NOT NULL default '0',
  `rownum` smallint(6) NOT NULL default '0',
  `classid` smallint(6) NOT NULL default '0',
  PRIMARY KEY  (`tempid`),
  KEY `classid` (`classid`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk");
$empire->query("replace into `phome_enewsbqtemp` values('1','栏目导航标签模板','1','\r\n[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]\r\n','m-d','<li><A href=\\\\\"[!--classurl--]\\\\\">[!--classname--]</A></li>','0','1','0');");
$empire->query("replace into `phome_enewsbqtemp` values('9','栏目显示','1','[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]','m-d','<li><a href=\\\\\"[!--titleurl--]\\\\\" title=\\\\\"[!--title--]\\\\\">[!--title--]</a></li>\r\n<li class=\\\\\"shortinrto\\\\\">·[!--softsay--]</li>\r\n<li class=\\\\\"softmeta\\\\\">日期: <span>[!--newstime--]</span> 类型: [!--softtype--] 大小: <span>[!--filesize--]</span> 语言: <span>[!--language--]</span> 授权: <span>[!--softsq--]</span> 等级: <span>[!--star--]</span></li>','0','1','0');");
$empire->query("replace into `phome_enewsbqtemp` values('2','本日头条标签模板','1','[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]','Y-m-d H:i:s','<TABLE cellSpacing=0 cellPadding=0 width=\\\\\"100%\\\\\">\r\n                          <tr> \r\n                            <td align=\\\\\"center\\\\\" height=\\\\\"41\\\\\"><font style=\\\\\"FONT-SIZE: 18px\\\\\" face=\\\\\"黑体\\\\\"><a href=\\\\\"[!--titleurl--]\\\\\" target=_blank>《[!--title--]》</a></font></td>\r\n                          </tr>\r\n                          <tr> \r\n                            <td height=\\\\\"168\\\\\" valign=\\\\\"top\\\\\" style=\\\\\"PADDING-LEFT: 10px\\\\\">[!--smalltext--]&nbsp;[<a href=\\\\\"[!--titleurl--]\\\\\" target=_blank>全文</a>]</td>\r\n                          </tr>\r\n                        </table>','0','1','0');");
$empire->query("replace into `phome_enewsbqtemp` values('3','首页显示信息标签','1','[!--empirenews.listtemp--]\r\n<table width=\\\\\"100%\\\\\" border=\\\\\"0\\\\\" cellpadding=\\\\\"1\\\\\" cellspacing=\\\\\"1\\\\\">\r\n<!--list.var1-->\r\n</table>\r\n[!--empirenews.listtemp--]','m-d','  <tr>\r\n    <td width=\\\\\"82%\\\\\">·<A title=\\\\\"[!--oldtitle--]\\\\\" href=\\\\\"[!--titleurl--]\\\\\" target=_blank>[!--title--]</A></td>\r\n    <td width=\\\\\"18%\\\\\">[[!--newstime--]]</td>\r\n  </tr>','0','1','0');");
$empire->query("replace into `phome_enewsbqtemp` values('4','图片集分页模板','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		window.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\\\\\" 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 onload=\\\\''if(this.width>screen.width-500)this.style.width=screen.width-500;\\\\''></a><br><span style=\\\\''line-height=18pt\\\\''>[!--picname--]</span>','0','1','0');");
$empire->query("replace into `phome_enewsbqtemp` values('5','分类信息显示信息标签','8','[!--empirenews.listtemp--]\r\n<!--list.var1-->\r\n[!--empirenews.listtemp--]','Y-m-d H:i:s','<span style=\\\\''line-height=15pt\\\\''>[<a href=\\\\\"[!--this.classlink--]\\\\\">[!--this.classname--]</a>]&nbsp;<A title=\\\\\"[!--oldtitle--]\\\\\" href=\\\\\"[!--titleurl--]\\\\\" target=_blank>[!--title--]</A></span><br>','0','1','0');");
$empire->query("replace into `phome_enewsbqtemp` values('6','内容显示','1','[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]','m-d','      <li><span>[!--newstime--]</span><a class=\\\\\"newsoft\\\\\" href=\\\\\"[!--titleurl--]\\\\\" title=\\\\\"[!--title--]\\\\\">[!--title--]</a><a class=\\\\\"newclass\\\\\" href=\\\\\"[!--this.classlink--]\\\\\">[!--this.classname--]</a></li>','0','1','0');");
$empire->query("replace into `phome_enewsbqtemp` values('7','中间推荐','1','\r\n<dt><a href=\\\\\"[!--the.classurl--]\\\\\">[!--the.classname--]</a></dt>[!--empirenews.listtemp--]<!--list.var1--> [!--empirenews.listtemp--]\r\n','Y-m-d H:i:s','<dd><a href=\\\\\"[!--titleurl--]\\\\\" target=\\\\\"_blank\\\\\">[!--title--]</a></dd>','0','1','0');");
$empire->query("replace into `phome_enewsbqtemp` values('8','内容显示down','1','\r\n[!--empirenews.listtemp--]<!--list.var1--> [!--empirenews.listtemp--]\r\n','Y-m-d H:i:s','<li><a href=\\\\\"[!--titleurl--]\\\\\" title=\\\\\"[!--title--]\\\\\">[!--title--]</a></li>','0','1','0');");

@include("../../inc/footer.php");
?>