renewenewsvotetemp_1.php
2.15 KB
<?php
@include("../../inc/header.php");
/*
SoftName : EmpireBak
Author : wm_chief
Copyright: Powered by www.phome.net
*/
E_D("DROP TABLE IF EXISTS `renewenewsvotetemp`;");
E_C("CREATE TABLE `renewenewsvotetemp` (
`tempid` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`tempname` varchar(60) NOT NULL DEFAULT '',
`temptext` mediumtext NOT NULL,
PRIMARY KEY (`tempid`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8");
E_D("replace into `renewenewsvotetemp` values('1','默認投票模板','<table width=100% border=0 align=center cellpadding=3 cellspacing=0><form name=enewsvote method=POST action=''[!--vote.action--]'' target=_blank><tr><td><strong>[!--title--]</strong></td></tr><input type=hidden name=voteid value=''[!--voteid--]''><input type=hidden name=enews value=AddVote>\r\n[!--empirenews.listtemp--]\r\n<tr><td>[!--vote.box--] [!--vote.name--]</td></tr>\r\n[!--empirenews.listtemp--]\r\n<tr><td align=center><input type=submit name=submit value=投票> <input type=button name=button value=查看結果 onclick=javascript:window.open(''[!--vote.view--]'','''',''width=[!--width--],height=[!--height--],scrollbars=yes'');></td></tr></form></table>');");
E_D("replace into `renewenewsvotetemp` values('2','默認信息投票模板','<table width=\\\\''100%\\\\'' border=0 align=center cellpadding=3 cellspacing=0><form name=enewsvote method=POST action=\\\\''[!--news.url--]e/enews/index.php\\\\'' target=_blank><tr><td><strong>[!--title--]</strong></td></tr><input type=hidden name=id value=\\\\''[!--id--]\\\\''><input type=hidden name=classid value=\\\\''[!--classid--]\\\\''><input type=hidden name=enews value=AddInfoVote>\r\n[!--empirenews.listtemp--]\r\n<tr><td>[!--vote.box--] [!--vote.name--]</td></tr>\r\n[!--empirenews.listtemp--]\r\n<tr><td align=center><input type=submit name=submit value=投票> <input type=button name=button value=查看結果 onclick=javascript:window.open(\\\\''[!--news.url--]e/public/vote/?classid=[!--classid--]&id=[!--id--]\\\\'',\\\\''\\\\'',\\\\''width=[!--width--],height=[!--height--],scrollbars=yes\\\\'');></td></tr></form></table>');");
@include("../../inc/footer.php");
?>