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

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

$empire->query("DROP TABLE IF EXISTS `phome_enewssearchtemp`;");
$empire->query("CREATE TABLE `phome_enewssearchtemp` (
  `tempid` smallint(6) 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(6) NOT NULL default '0',
  PRIMARY KEY  (`tempid`),
  KEY `classid` (`classid`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk");
$empire->query("replace into `phome_enewssearchtemp` values('1','默认搜索模板','[!--temp.dtheader--] \r\n<TABLE cellSpacing=0 cellPadding=0 width=780 align=center border=0>\r\n  <TBODY>\r\n    <TR> \r\n      <TD vAlign=top width=780> <TABLE \r\n            style=\\\\\"BORDER-RIGHT: #1F80CB 1px solid; BORDER-TOP: #4c93bc 1px solid; BORDER-LEFT: #1F80CB 1px solid; BORDER-BOTTOM: #1F80CB 1px solid\\\\\" \r\n            cellSpacing=0 cellPadding=0 width=\\\\\"100%\\\\\" bgColor=#E8F5FB border=0>\r\n          <TBODY>\r\n            <TR> \r\n              <TD> <TABLE cellSpacing=0 cellPadding=6 width=\\\\\"100%\\\\\" border=0>\r\n                  <TR> \r\n                    <TD><a href=../../../>首页</a>&nbsp;&gt;&nbsp;<a href=../../../search>高级搜索</a>&nbsp;&gt;&nbsp;搜索结果</TD>\r\n                  </TR>\r\n                </TABLE></TD>\r\n            </TR>\r\n          </TBODY>\r\n        </TABLE>\r\n        <TABLE height=8 cellSpacing=0 cellPadding=0 width=\\\\\"90%\\\\\" align=center \r\n            border=0>\r\n          <TBODY>\r\n            <TR> \r\n              <TD align=middle></TD>\r\n            </TR>\r\n          </TBODY>\r\n        </TABLE>\r\n        <TABLE cellSpacing=0 cellPadding=0 width=\\\\\"100%\\\\\">\r\n          <TBODY>\r\n            <TR> \r\n              <TD \r\n          style=\\\\\"BORDER-RIGHT: #1F80CB 1px solid; BORDER-TOP: #1F80CB 1px solid; BORDER-LEFT: #1F80CB 1px solid; BORDER-BOTTOM: #1F80CB 1px solid\\\\\" \r\n          vAlign=bottom bgColor=E8F5FB height=24>&nbsp;</TD>\r\n            </TR>\r\n            <TR> \r\n              <TD \r\n          style=\\\\\"BORDER-RIGHT: #1F80CB 1px solid; BORDER-LEFT: #1F80CB 1px solid; BORDER-BOTTOM: #1F80CB 1px solid\\\\\" \r\n          vAlign=top><table width=\\\\\"780\\\\\" border=\\\\\"0\\\\\" align=\\\\\"center\\\\\" cellpadding=\\\\\"4\\\\\" cellspacing=\\\\\"0\\\\\" bgcolor=\\\\\"ffffff\\\\\">\r\n                  <tr> \r\n                    <td height=\\\\\"100%\\\\\" valign=\\\\\"top\\\\\"> <form name=search_news method=post action=\\\\''../../search/index.php\\\\'' onsubmit=\\\\''return search_check(document.search_news);\\\\''>\r\n                        <table width=\\\\\"100%\\\\\" border=\\\\\"0\\\\\" cellspacing=\\\\\"1\\\\\" cellpadding=\\\\\"3\\\\\">\r\n                          <input type=hidden name=show value=\\\\\"title\\\\\">\r\n						  <input type=hidden name=tempid value=\\\\\"1\\\\\">\r\n                          <tr> \r\n                            <td height=\\\\\"32\\\\\">关键字： \r\n                              <input name=\\\\\"keyboard\\\\\" type=\\\\\"text\\\\\" id=\\\\\"keyboard\\\\\" value=\\\\\"[!--keyboard--]\\\\\" size=\\\\\"32\\\\\">\r\n                              <select name=\\\\\"tbname\\\\\" id=\\\\\"tbname\\\\\">\r\n                                <option value=\\\\\"news\\\\\">新闻</option>\r\n                                <option value=\\\\\"download\\\\\">下载</option>\r\n                                <option value=\\\\\"photo\\\\\">图库</option>\r\n                                <option value=\\\\\"flash\\\\\">FLASH</option>\r\n                                <option value=\\\\\"movie\\\\\">电影</option>\r\n                                <option value=\\\\\"shop\\\\\">商品</option>\r\n                                <option value=\\\\\"article\\\\\">文章</option>\r\n                                <option value=\\\\\"info\\\\\">分类信息</option>\r\n                              </select> \r\n                              <input type=\\\\\"submit\\\\\" name=\\\\\"Submit22\\\\\" value=\\\\\"搜索\\\\\"> \r\n                              &nbsp; <input type=\\\\\"button\\\\\" name=\\\\\"Submit\\\\\" value=\\\\\"高级搜索\\\\\" onclick=\\\\\"self.location.href=\\\\''../../../search\\\\''\\\\\">\r\n                              (多个关键字请用&quot;空格&quot;格开) </td>\r\n                          </tr>\r\n                        </table>\r\n                      </form>\r\n                      <table width=\\\\\"100%\\\\\" border=\\\\\"0\\\\\" align=\\\\\"center\\\\\" cellpadding=\\\\\"3\\\\\" cellspacing=\\\\\"1\\\\\" bgcolor=\\\\\"E8F5FB\\\\\">\r\n                        <tr> \r\n                          <td height=\\\\\"25\\\\\">系统搜索到约有<strong>[!--ecms.num--]</strong>项符合<strong>[!--keyboard--]</strong>的查询结果</td>\r\n                        </tr>\r\n                      </table>\r\n                      [!--empirenews.listtemp--] \r\n                      <!--list.var1-->\r\n                      [!--empirenews.listtemp--] </td>\r\n                  </tr>\r\n                  <tr> \r\n                    <td height=\\\\\"100%\\\\\" valign=\\\\\"top\\\\\"> <div align=\\\\\"center\\\\\">[!--show.page--]</div></td>\r\n                  </tr>\r\n                  <tr> \r\n                    <td height=\\\\\"12\\\\\" valign=\\\\\"top\\\\\"></td>\r\n                  </tr>\r\n                </table> </TD>\r\n            </TR>\r\n          </TBODY>\r\n        </TABLE></TD>\r\n    </TR>\r\n  </TBODY>\r\n</TABLE>\r\n[!--temp.footer--]','180','1','<table width=\\\\\"100%\\\\\" border=\\\\\"0\\\\\" align=\\\\\"center\\\\\" cellpadding=\\\\\"3\\\\\" cellspacing=\\\\\"1\\\\\">\r\n        <tr> \r\n          <td><div align=\\\\\"center\\\\\">\r\n			  <table width=\\\\\"99%\\\\\" border=\\\\\"0\\\\\" align=\\\\\"center\\\\\" cellpadding=\\\\\"3\\\\\" cellspacing=\\\\\"1\\\\\">\r\n                <tr> \r\n                  \r\n            <td width=\\\\\"41%\\\\\" height=\\\\\"25\\\\\"><font color=\\\\\"#663333\\\\\">·[!--class.name--]<span class=\\\\\"blue14\\\\\"><a href=[!--titleurl--] target=_blank>[!--title--]</a></span></font></td>\r\n                  <td width=\\\\\"59%\\\\\"><font color=\\\\\"#666666\\\\\">发布时间：[!--newstime--]</font></td>\r\n                </tr>\r\n              </table>\r\n            </div></td>\r\n        </tr>\r\n        <tr> \r\n          <td bgcolor=\\\\\"#EBF3FA\\\\\"> \r\n            <table width=\\\\\"98%\\\\\" border=\\\\\"0\\\\\" align=\\\\\"center\\\\\" cellpadding=\\\\\"3\\\\\" cellspacing=\\\\\"1\\\\\">\r\n              <tr> \r\n                <td>[!--smalltext--]</td>\r\n              </tr>\r\n              <tr>\r\n                <td><a href=\\\\\"[!--titleurl--]\\\\\" target=\\\\\"_blank\\\\\">[!--titleurl--]</a></td>\r\n              </tr>\r\n            </table>\r\n			</td>\r\n        </tr>\r\n      </table>','1','2','Y-m-d H:i:s','0','0');");

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