AddNews.php 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013
  1. <?php
  2. define('EmpireCMSAdmin', '1');
  3. require("../class/connect.php");
  4. require("../class/db_sql.php");
  5. require("../class/functions.php");
  6. require("../data/dbcache/class.php");
  7. $link = db_connect();
  8. $empire = new mysqlquery();
  9. //验证用户
  10. $lur = is_login();
  11. $logininid = $lur['userid'];
  12. $loginin = $lur['username'];
  13. $loginrnd = $lur['rnd'];
  14. $loginlevel = $lur['groupid'];
  15. $loginadminstyleid = $lur['adminstyleid'];
  16. //ehash
  17. $ecms_hashur = hReturnEcmsHashStrAll();
  18. $enews = ehtmlspecialchars($_GET['enews']);
  19. $classid = (int)$_GET['classid'];
  20. if (empty($class_r[$classid][classid])) {
  21. printerror("ErrorUrl", "history.go(-1)");
  22. }
  23. //验证权限
  24. $doselfinfo = CheckLevel($logininid, $loginin, $classid, "news");
  25. if (!$class_r[$classid][tbname] || !$class_r[$classid][classid]) {
  26. printerror("ErrorUrl", "history.go(-1)");
  27. }
  28. //非终极栏目
  29. if (!$class_r[$classid]['islast']) {
  30. printerror("AddInfoErrorClassid", "history.go(-1)");
  31. }
  32. $fun_r['AdminInfo'] = '管理信息';
  33. $bclassid = $class_r[$classid][bclassid];
  34. $id = (int)$_GET['id'];
  35. //附件验证码
  36. if ($enews == "AddNews") {
  37. if (!$doselfinfo['doaddinfo'])//增加权限
  38. {
  39. printerror("NotAddInfoLevel", "history.go(-1)");
  40. }
  41. $filepass = time();
  42. $word = '增加信息';
  43. $ecmsfirstpost = 1;
  44. } else {
  45. if (!$doselfinfo['doeditinfo'])//编辑权限
  46. {
  47. printerror("NotEditInfoLevel", "history.go(-1)");
  48. }
  49. $filepass = $id;
  50. $word = '修改信息';
  51. $ecmsfirstpost = 0;
  52. }
  53. //审核
  54. $ecmscheck = (int)$_GET['ecmscheck'];
  55. $addecmscheck = '';
  56. $indexchecked = 1;
  57. if ($ecmscheck) {
  58. $addecmscheck = '&ecmscheck=' . $ecmscheck;
  59. $indexchecked = 0;
  60. }
  61. //模型
  62. $modid = $class_r[$classid][modid];
  63. $enter = $emod_r[$modid]['enter'];
  64. //导航
  65. $url = AdminReturnClassLink($classid) . '&nbsp;>&nbsp;' . $word;
  66. //访问组
  67. $ygroup = '';
  68. $vgsql = $empire->query("select vgid,gname from {$dbtbpre}enewsvg order by vgid");
  69. while ($vgr = $empire->fetch($vgsql)) {
  70. $ygroup .= "<option value=-" . $vgr['vgid'] . ">" . $vgr['gname'] . "</option>";
  71. }
  72. if ($ygroup) {
  73. $ygroup = "<option value=''>--- 访问组 ---</option>" . $ygroup . "<option value=''>--- 会员组 ---</option>";
  74. }
  75. //会员组
  76. $sql1 = $empire->query("select groupid,groupname from {$dbtbpre}enewsmembergroup order by level");
  77. while ($l_r = $empire->fetch($sql1)) {
  78. $ygroup .= "<option value=" . $l_r[groupid] . ">" . $l_r[groupname] . "</option>";
  79. }
  80. if ($enews == "AddNews") {
  81. $group = str_replace(" value=" . $class_r[$classid][groupid] . ">", " value=" . $class_r[$classid][groupid] . " selected>", $ygroup);
  82. }
  83. //初始化数据
  84. $r = array();
  85. $newstime = time();
  86. $r[newstime] = date("Y-m-d H:i:s");
  87. $todaytime = $r[newstime];
  88. $r[checked] = $class_r[$classid][checked];
  89. $r[newspath] = date($class_r[$classid][newspath]);
  90. $r[onclick] = 0;
  91. $r[userfen] = 0;
  92. $titlefontb = "";
  93. $titlefonti = "";
  94. $titlefonts = "";
  95. $voteeditnum = 8;
  96. $voter[width] = 500;
  97. $voter[height] = 300;
  98. $voter[dotime] = '0000-00-00';
  99. $r[dokey] = 1;
  100. $titleurl = '';
  101. if ($public_r['onclickrnd']) {
  102. $onclick_rndr = explode(',', $public_r['onclickrnd']);
  103. $r[onclick] = rand(intval($onclick_rndr[0]), intval($onclick_rndr[1]));
  104. $r[totaldown] = $r[onclick];
  105. } else {
  106. $r[totaldown] = 0;
  107. $r[onclick] = 0;
  108. }
  109. //----------- 特殊模型初始化 -----------
  110. //下载地址前缀
  111. if (strstr($enter, ',downpath,') || strstr($enter, ',onlinepath,')) {
  112. $downurlqz = "";
  113. $newdownqz = "";
  114. $downsql = $empire->query("select urlname,url,urlid from {$dbtbpre}enewsdownurlqz order by urlid");
  115. while ($downr = $empire->fetch($downsql)) {
  116. $downurlqz .= "<option value='" . $downr[url] . "'>" . $downr[urlname] . "</option>";
  117. $newdownqz .= "<option value='" . $downr[urlid] . "'>" . $downr[urlname] . "</option>";
  118. }
  119. }
  120. //html编辑器
  121. $loadeditorjs = '';
  122. if ($emod_r[$modid]['editorf'] && $emod_r[$modid]['editorf'] != ',') {
  123. include('ecmseditor/eshoweditor.php');
  124. $loadeditorjs = ECMS_ShowEditorJS('ecmseditor/infoeditor/');
  125. }
  126. //预设投票
  127. if ($enews == "AddNews") {
  128. $infoclassr = $empire->fetch1("select definfovoteid from {$dbtbpre}enewsclass where classid='$classid'");
  129. $definfovoteid = 0;
  130. if ($infoclassr['definfovoteid']) {
  131. $definfovoteid = $infoclassr['definfovoteid'];
  132. } elseif ($emod_r[$modid]['definfovoteid']) {
  133. $definfovoteid = $emod_r[$modid]['definfovoteid'];
  134. }
  135. if ($definfovoteid) {
  136. //投票
  137. $voter = $empire->fetch1("select * from {$dbtbpre}enewsvotemod where voteid='$definfovoteid'");
  138. if ($voter['voteid'] && $voter[votetext]) {
  139. $d_record = explode("\r\n", $voter[votetext]);
  140. for ($i = 0; $i < count($d_record); $i++) {
  141. $j = $i + 1;
  142. $d_field = explode("::::::", $d_record[$i]);
  143. $allvote .= "<tr><td width='9%'><div align=center>" . $j . "</div></td><td width='65%'><input name=vote_name[] type=text value='" . $d_field[0] . "' size=30></td><td width='26%'><input name=vote_num[] type=text value='" . $d_field[1] . "' size=6></td></tr>";
  144. }
  145. $voteeditnum = $j;
  146. $allvote = "<table width='100%' border=0 cellspacing=1 cellpadding=3>" . $allvote . "</table>";
  147. }
  148. }
  149. }
  150. //-----------------------------------------修改信息
  151. if ($enews == "EditNews") {
  152. //索引表
  153. $index_r = $empire->fetch1("select id,classid,checked from {$dbtbpre}ecms_" . $class_r[$classid][tbname] . "_index where id='$id' limit 1");
  154. if (!$index_r['id'] || $index_r['classid'] != $classid) {
  155. printerror("ErrorUrl", "history.go(-1)");
  156. }
  157. //返回表
  158. $infotb = ReturnInfoMainTbname($class_r[$classid][tbname], $index_r['checked']);
  159. //主表
  160. $r = $empire->fetch1("select * from " . $infotb . " where id='$id' limit 1");
  161. //签发表
  162. if ($r[isqf]) {
  163. $wfinfor = $empire->fetch1("select tstatus,checktno from {$dbtbpre}enewswfinfo where id='$id' and classid='$classid' limit 1");
  164. }
  165. //只能编辑自己的信息
  166. if ($doselfinfo['doselfinfo'] && ($r[userid] <> $logininid || $r[ismember])) {
  167. printerror("NotDoSelfinfo", "history.go(-1)");
  168. }
  169. //已审核信息不可修改
  170. if ($doselfinfo['docheckedit'] && $index_r['checked']) {
  171. printerror("NotEditCheckInfoLevel", "history.go(-1)");
  172. }
  173. //返回表信息
  174. $infodatatb = ReturnInfoDataTbname($class_r[$classid][tbname], $index_r['checked'], $r['stb']);
  175. //副表
  176. $finfor = $empire->fetch1("select " . ReturnSqlFtextF($modid) . " from " . $infodatatb . " where id='$id' limit 1");
  177. $r = array_merge($r, $finfor);
  178. //时间
  179. $r['checked'] = $index_r['checked'];
  180. $newstime = $r['newstime'];
  181. $r['newstime'] = date("Y-m-d H:i:s", $r['newstime']);
  182. //链接地址
  183. $titleurl = $r['titleurl'];
  184. if (!$r['isurl']) {
  185. $r['titleurl'] = '';
  186. }
  187. //会员组
  188. $group = str_replace(" value=" . $r[groupid] . ">", " value=" . $r[groupid] . " selected>", $ygroup);
  189. //内容存文本
  190. $savetxtf = $emod_r[$modid]['savetxtf'];
  191. $newstext_url = '';
  192. if ($savetxtf) {
  193. $newstext_url = $r[$savetxtf];
  194. $r[$savetxtf] = GetTxtFieldText($r[$savetxtf]);
  195. }
  196. //标题属性
  197. if (strstr($r[titlefont], ',')) {
  198. $tfontr = explode(',', $r[titlefont]);
  199. $r[titlecolor] = $tfontr[0];
  200. $r[titlefont] = $tfontr[1];
  201. }
  202. if (strstr($r[titlefont], "b|")) {
  203. $titlefontb = " checked";
  204. }
  205. if (strstr($r[titlefont], "i|")) {
  206. $titlefonti = " checked";
  207. }
  208. if (strstr($r[titlefont], "s|")) {
  209. $titlefonts = " checked";
  210. }
  211. //投票
  212. $pubid = ReturnInfoPubid($classid, $id);
  213. $voter = $empire->fetch1("select * from {$dbtbpre}enewsinfovote where pubid='$pubid' limit 1");
  214. if ($voter['id'] && $voter[votetext]) {
  215. $d_record = explode("\r\n", $voter[votetext]);
  216. for ($i = 0; $i < count($d_record); $i++) {
  217. $j = $i + 1;
  218. $d_field = explode("::::::", $d_record[$i]);
  219. $allvote .= "<tr><td width='9%'><div align=center>" . $j . "</div></td><td width='65%'><input name=vote_name[] type=text value='" . $d_field[0] . "' size=30></td><td width='26%'><input name=vote_num[] type=text value='" . $d_field[1] . "' size=6><input type=hidden name=vote_id[] value=" . $j . "><input type=checkbox name=delvote_id[] value=" . $j . ">删除</td></tr>";
  220. }
  221. $voteeditnum = $j;
  222. $allvote = "<table width='100%' border=0 cellspacing=1 cellpadding=3>" . $allvote . "</table>";
  223. }
  224. }
  225. //标题分类
  226. $cttidswhere = '';
  227. $tts = '';
  228. $caddr = $empire->fetch1("select ttids from {$dbtbpre}enewsclassadd where classid='$classid'");
  229. if ($caddr['ttids'] != '-') {
  230. if ($caddr['ttids'] && $caddr['ttids'] != ',') {
  231. $cttidswhere = ' and typeid in (' . substr($caddr['ttids'], 1, -1) . ')';
  232. }
  233. $ttsql = $empire->query("select typeid,tname from {$dbtbpre}enewsinfotype where mid='$modid'" . $cttidswhere . " order by myorder");
  234. while ($ttr = $empire->fetch($ttsql)) {
  235. $select = '';
  236. if ($ttr[typeid] == $r[ttid]) {
  237. $select = ' selected';
  238. }
  239. $tts .= "<option value='$ttr[typeid]'" . $select . ">$ttr[tname]</option>";
  240. }
  241. }
  242. //内容模板
  243. $t_sql = $empire->query("select tempid,tempname from " . GetTemptb("enewsnewstemp") . " order by modid,tempid");
  244. while ($nt = $empire->fetch($t_sql)) {
  245. if ($nt[tempid] == $r[newstempid]) {
  246. $select = " selected";
  247. } else {
  248. $select = "";
  249. }
  250. $newstemp .= "<option value=" . $nt[tempid] . $select . ">" . $nt[tempname] . "</option>";
  251. }
  252. //模板
  253. $votetemp = "";
  254. $vtsql = $empire->query("select tempid,tempname from " . GetTemptb("enewsvotetemp") . " order by tempid");
  255. while ($vtr = $empire->fetch($vtsql)) {
  256. if ($voter[tempid] == $vtr[tempid]) {
  257. $select = " selected";
  258. } else {
  259. $select = "";
  260. }
  261. $votetemp .= "<option value='" . $vtr[tempid] . "'" . $select . ">" . $vtr[tempname] . "</option>";
  262. }
  263. //同时发布
  264. if (empty($voter['copyids']) || $voter['copyids'] == '1') {
  265. $copyclassidshowiframe = '<IFRAME frameBorder="0" id="showclassnav" name="showclassnav" scrolling="no" src="ShowClassNav.php?ecms=1' . $ecms_hashur['ehref'] . '" style="HEIGHT:0;VISIBILITY:inherit;WIDTH:0;Z-INDEX:1"></IFRAME>';
  266. $copyclassids = '<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  267. <tr>
  268. <td>同时发布到以下栏目: <input type="checkbox" name="copyinfotitleurl" value="1">采用索引链接</td>
  269. </tr>
  270. <tr>
  271. <td height="25" bgcolor="#FFFFFF" id="copyinfoshowclassnav"></td>
  272. </tr>
  273. </table>';
  274. } else {
  275. $copyclassidshowiframe = '';
  276. $copyclassids = '<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  277. <tr>
  278. <td>同时发布到以下栏目:</td>
  279. </tr>
  280. <tr>
  281. <td height="25" bgcolor="#FFFFFF" id="copyinfoshowclassnav">本信息已同步发布到其他栏目,信息ID:<br>' . $voter[copyids] . '</td>
  282. </tr>
  283. </table>';
  284. }
  285. //表单文件
  286. $modfile = "../data/html/" . $modid . ".php";
  287. //栏目链接
  288. $getcurlr['classid'] = $classid;
  289. $classurl = sys_ReturnBqClassname($getcurlr, 9);
  290. //当前使用的模板组
  291. $thegid = GetDoTempGid();
  292. $phpmyself = urlencode(eReturnSelfPage(1));
  293. //返回头条和推荐级别名称
  294. $ftnr = ReturnFirsttitleNameList($r['firsttitle'], $r['isgood']);
  295. //信息状态
  296. $einfochecked = $index_r['checked'];
  297. $einfoismember = $r['ismember'];
  298. //------ 编辑器内容显示 ------
  299. $seteshoweditorhtml = 3;
  300. $eshoweditorhtml = 0;
  301. if ($seteshoweditorhtml && $r['id']) {
  302. if ($seteshoweditorhtml == 1)//所有
  303. {
  304. $eshoweditorhtml = 1;
  305. } elseif ($seteshoweditorhtml == 2)//所有未审核
  306. {
  307. if (!$einfochecked) {
  308. $eshoweditorhtml = 1;
  309. }
  310. } elseif ($seteshoweditorhtml == 3)//所有投稿
  311. {
  312. if ($einfoismember) {
  313. $eshoweditorhtml = 1;
  314. }
  315. } elseif ($seteshoweditorhtml == 4)//所有未审核投稿
  316. {
  317. if ($einfoismember && !$einfochecked) {
  318. $eshoweditorhtml = 1;
  319. }
  320. } else {
  321. $eshoweditorhtml = 1;
  322. }
  323. }
  324. //------ 编辑器内容显示 ------
  325. ?>
  326. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  327. <html>
  328. <head>
  329. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  330. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
  331. <title><?= $word ?></title>
  332. <link rel="stylesheet" href="adminstyle/<?= $loginadminstyleid ?>/adminstyle.css" type="text/css">
  333. <link id="luna-tab-style-sheet" type="text/css" rel="stylesheet"
  334. href="adminstyle/<?= $loginadminstyleid ?>/tab.winclassic.css" disabled="disabled"/>
  335. <!-- the id is not needed. It is used here to be able to change css file at runtime -->
  336. <style type="text/css">
  337. .dynamic-tab-pane-control .tab-page {
  338. width: 98%;
  339. }
  340. .dynamic-tab-pane-control .tab-page .dynamic-tab-pane-control .tab-page {
  341. height: 150px;
  342. }
  343. form {
  344. margin: 0;
  345. padding: 0;
  346. }
  347. /* over ride styles from webfxlayout */
  348. .dynamic-tab-pane-control h2 {
  349. font-size: 12px;
  350. font-weight: normal;
  351. text-align: center;
  352. width: auto;
  353. height: 20;
  354. }
  355. .dynamic-tab-pane-control h2 a {
  356. display: inline;
  357. width: auto;
  358. }
  359. .dynamic-tab-pane-control a:hover {
  360. background: transparent;
  361. }
  362. </style>
  363. <script type="text/javascript" src="../data/images/tabpane.js"></script>
  364. <script type="text/javascript">
  365. function setLinkSrc(sStyle) {
  366. document.getElementById("luna-tab-style-sheet").disabled = sStyle != "luna";
  367. //document.documentElement.style.background = "";
  368. //document.body.style.background = sStyle == "webfx" ? "white" : "ThreeDFace";
  369. }
  370. function chgBg(obj, color) {
  371. if (document.all || document.getElementById)
  372. obj.style.backgroundColor = color;
  373. else if (document.layers)
  374. obj.bgColor = color;
  375. }
  376. setLinkSrc("luna");
  377. </script>
  378. <script>
  379. function dovoteadd() {
  380. var i;
  381. var str = "";
  382. var oldi = 0;
  383. var j = 0;
  384. oldi = parseInt(document.add.v_editnum.value);
  385. for (i = 1; i <= document.add.v_vote_num.value; i++) {
  386. j = i + oldi;
  387. str = str + "<tr><td width='9%' height=20> <div align=center>" + j + "</div></td><td width='65%'> <div align=center><input type=text name=vote_name[] size=30></div></td><td width='26%'> <div align=center><input type=text name=vote_num[] value=0 size=6></div></td></tr>";
  388. }
  389. document.getElementById('addvote').innerHTML = "<table width='100%' border=0 cellspacing=1 cellpadding=3>" + str + "</table>";
  390. }
  391. function doSpChangeFile(name, url, filesize, filetype, idvar) {
  392. document.getElementById(idvar).value = url;
  393. if (document.add.filetype != null) {
  394. if (document.add.filetype.value == '') {
  395. document.add.filetype.value = filetype;
  396. }
  397. }
  398. if (document.add.filesize != null) {
  399. if (document.add.filesize.value == '') {
  400. document.add.filesize.value = filesize;
  401. }
  402. }
  403. }
  404. function SpOpenChFile(type, field) {
  405. window.open('ecmseditor/FileMain.php?<?=$ecms_hashur['ehref']?>&classid=<?=$classid?>&infoid=<?=$id?><?=$addecmscheck?>&filepass=<?=$filepass?>&type=' + type + '&sinfo=1&tranfrom=2&field=' + field, '', 'width=700,height=550,scrollbars=yes');
  406. }
  407. //上传多附件时,图集
  408. function eTranMoreForMorepic(htmlstr, fnum) {
  409. var morepicdiv = document.getElementById("defmorepicid").innerHTML;
  410. var thismorepicnum = parseInt(document.add.morepicnum.value);
  411. var enews = "<?=$enews?>";
  412. if (enews == 'AddNews') {
  413. if (document.add.havetmpic.value == 0) {
  414. document.getElementById("defmorepicid").innerHTML += htmlstr;
  415. document.add.morepicnum.value = thismorepicnum + fnum;
  416. } else {
  417. document.getElementById("defmorepicid").innerHTML += htmlstr;
  418. document.add.morepicnum.value = thismorepicnum + fnum;
  419. }
  420. } else {
  421. document.getElementById("defmorepicid").innerHTML += htmlstr;
  422. document.add.morepicnum.value = thismorepicnum + fnum;
  423. }
  424. document.getElementById("addpicdown").innerHTML = "";
  425. document.add.havetmpic.value = 1;
  426. }
  427. </script>
  428. <script type="text/javascript" src="ecmseditor/js/jstime/WdatePicker.js"></script>
  429. <script type="text/javascript" src="ecmseditor/js/jscolor/jscolor.js"></script>
  430. <script src="../data/html/postinfo.js"></script>
  431. <script>
  432. function bs() {
  433. var f = document.add;
  434. if (f.title.value.length == 0) {
  435. alert("标题还没写");
  436. f.title.focus();
  437. return false;
  438. }
  439. }
  440. function foreColor() {
  441. if (!Error()) return;
  442. var arr = showModalDialog("../data/html/selcolor.html", "", "dialogWidth:296px; dialogHeight:280px; status:0");
  443. if (arr != null) document.add.titlecolor.value = arr;
  444. else document.add.titlecolor.focus();
  445. }
  446. function FieldChangeColor(obj) {
  447. if (!Error()) return;
  448. var arr = showModalDialog("../data/html/selcolor.html", "", "dialogWidth:296px; dialogHeight:280px; status:0");
  449. if (arr != null) obj.value = arr;
  450. else obj.focus();
  451. }
  452. </script>
  453. <?= $loadeditorjs ?>
  454. </head>
  455. <body bgcolor="#FFFFFF" text="#000000" onload="document.add.title.focus();">
  456. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  457. <tr>
  458. <td width="55%" height="25">位置:
  459. <?= $url ?>
  460. </td>
  461. <td width="45%">
  462. <div align="right">
  463. <?php
  464. if ($enews == 'EditNews' && $r['eckuid']) {
  465. $eckuid = (int)$r['eckuid'];
  466. $eckuser_r = $empire->fetch1("select username,wname from {$dbtbpre}enewsuser where userid='$eckuid'");
  467. if ($eckuser_r['username']) {
  468. ?>
  469. [审核人UID:<b><?= $eckuid ?></b>,审核人UNAME:
  470. <b><?= $eckuser_r['username'] ?></b>]&nbsp;&nbsp;&nbsp;
  471. <?php
  472. }
  473. }
  474. ?>
  475. <?= $enews == 'EditNews' ? '[<a href="user/ListDolog.php?classid=' . $classid . '&id=' . $id . $ecms_hashur['ehref'] . '" target="_blank">查看本信息操作日志</a>]' : '' ?>
  476. </div>
  477. </td>
  478. </tr>
  479. </table>
  480. <table width="100%" border="0" cellspacing="1" cellpadding="3" class="tableborder">
  481. <form name="searchinfo" method="GET" action="ListNews.php">
  482. <?= $ecms_hashur['eform'] ?>
  483. <tr>
  484. <td width="42%" title="增加信息后使用本操作将信息显示到前台"><select name="dore">
  485. <option value="1">刷新当前栏目</option>
  486. <option value="2">刷新首页</option>
  487. <option value="3">刷新父栏目</option>
  488. <option value="4">刷新当前栏目与父栏目</option>
  489. <option value="5">刷新父栏目与首页</option>
  490. <option value="6" selected>刷新当前栏目、父栏目与首页</option>
  491. </select> <input type="button" name="Submit12" value="提交"
  492. onclick="self.location.href='ecmsinfo.php?<?= $ecms_hashur['href'] ?>&enews=AddInfoToReHtml<?= $addecmscheck ?>&classid=<?= $classid ?>&dore='+document.searchinfo.dore.value;">
  493. </td>
  494. <td width="58%">
  495. <div align="right">[<font color="#ffffff"><a href=../../ target=_blank>预览首页</a></font>]
  496. [<font color="#ffffff"><a href="<?= $classurl ?>" target=_blank>预览栏目</a></font>]
  497. [<font color="#ffffff"><a
  498. href="file/ListFile.php?type=9&classid=<?= $classid ?><?= $ecms_hashur['ehref'] ?>">附件管理</a></font>]
  499. [<a href="AddClass.php?enews=EditClass&classid=<?= $classid ?><?= $ecms_hashur['ehref'] ?>">栏目设置</a>]
  500. [<a href="ecmschtml.php?enews=ReAllNewsJs&from=<?= $phpmyself ?><?= $ecms_hashur['ehref'] ?>">刷新所有信息JS</a>]
  501. </div>
  502. </td>
  503. </tr>
  504. </form>
  505. <?php
  506. if ($enews == 'EditNews') {
  507. ?>
  508. <form name="doinfoform" method="post" action="ecmsinfo.php" onsubmit="return confirm('确认要执行此操作?');">
  509. <?= $ecms_hashur['form'] ?>
  510. <tr bgcolor="#FFFFFF">
  511. <td height="32" colspan="2">
  512. <div align="right">原因:
  513. <input name="causetext" type="text" id="causetext">
  514. <input type="submit" name="Submit3" value="审核通过"
  515. onclick="document.doinfoform.doing.value='2';">
  516. <input type="submit" name="Submit32" value="取消审核"
  517. onclick="document.doinfoform.doing.value='3';">
  518. <input type="submit" name="Submit33" value="删除"
  519. onclick="document.doinfoform.doing.value='1';">
  520. <font color="#666666">(不填原因表示不通知会员)</font>
  521. <input name="enews" type="hidden" id="enews" value="DoInfoAndSendNotice">
  522. <input name="bclassid" type="hidden" id="bclassid" value="<?= $bclassid ?>">
  523. <input name="classid" type="hidden" id="classid" value="<?= $classid ?>">
  524. <input name="id" type="hidden" id="id" value="<?= $id ?>">
  525. <input name="ecmsfrom" type="hidden" id="ecmsfrom"
  526. value="<?= RepPostStrUrl($_SERVER['HTTP_REFERER']) ?>">
  527. <input name="doing" type="hidden" id="doing">
  528. <input name="ecmscheck" type="hidden" id="ecmscheck" value="<?= $ecmscheck ?>">
  529. </div>
  530. </td>
  531. </tr>
  532. </form>
  533. <?php
  534. }
  535. ?>
  536. </table>
  537. <br>
  538. <form name="add" method="post" enctype="multipart/form-data" action="ecmsinfo.php"
  539. onsubmit="return EmpireCMSInfoPostFun(document.add,'<?= $modid ?>');">
  540. <?= $ecms_hashur['form'] ?>
  541. <div class="tab-pane" id="TabPane1">
  542. <script type="text/javascript">
  543. tb1 = new WebFXTabPane(document.getElementById("TabPane1"));
  544. </script>
  545. <div class="tab-page" id="baseinfo">
  546. <h2 class="tab">&nbsp;<font class=tabcolor>基本信息</font>&nbsp;</h2>
  547. <script type="text/javascript">tb1.addTabPage(document.getElementById("baseinfo"));</script>
  548. <table width="100%" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  549. <tr class="header">
  550. <td width="16%" height="25">
  551. <div align="left"><?= $word ?></div>
  552. </td>
  553. <td>
  554. <input type="submit" name="addnews2" value="提交"> <input type="reset" name="Submit23"
  555. value="重置">
  556. <input type=hidden value=<?= $enews ?> name=enews> <input type=hidden
  557. value=<?= $classid ?> name=classid>
  558. <input type=hidden value=<?= $bclassid ?> name=bclassid> <input name=id type=hidden
  559. value=<?= $id ?>>
  560. <input type=hidden value="<?= $filepass ?>" name=filepass> <input type=hidden
  561. value="<?= $r[username] ?>"
  562. name=username>
  563. <input name="oldfilename" type="hidden" value="<?= $r[filename] ?>">
  564. <input name="oldgroupid" type="hidden" value="<?= $r[groupid] ?>">
  565. <input name="oldchecked" type="hidden" value="<?= $r[checked] ?>">
  566. <input name="newstext_url" type="hidden" value="<?= $newstext_url ?>">
  567. <input name="ecmsfrom" type="hidden" value="<?= RepPostStrUrl($_SERVER['HTTP_REFERER']) ?>">
  568. <input name="ecmsnfrom" type="hidden" value="<?= RepPostStrUrl($_GET['ecmsnfrom']) ?>">
  569. <input name="fstb" type="hidden" value="<?= $r[fstb] ?>">
  570. <input name="oldttid" type="hidden" value="<?= $r[ttid] ?>">
  571. <input name="ecmscheck" type="hidden" id="ecmscheck" value="<?= $ecmscheck ?>">
  572. <input name="ztids" type="hidden" id="ztids">
  573. <input name="zcids" type="hidden" id="zcids">
  574. <input name="oldztids" type="hidden" id="oldztids">
  575. <input name="oldzcids" type="hidden" id="oldzcids">
  576. <input type="hidden" name="havetmpic" value="0"></td>
  577. </tr>
  578. </table>
  579. <?php
  580. include($modfile);
  581. ?>
  582. </div>
  583. <div class="tab-page" id="spsetting">
  584. <h2 class="tab">&nbsp;<font class=tabcolor>选项设置</font>&nbsp;</h2>
  585. <script type="text/javascript">tb1.addTabPage(document.getElementById("spsetting"));</script>
  586. <table width=100% align=center cellpadding=3 cellspacing=1 class="tableborder">
  587. <tr>
  588. <td class=header>选项设置</td>
  589. </tr>
  590. <tr>
  591. <td bgcolor='#ffffff'>
  592. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  593. <tr>
  594. <td height="25" bgcolor="#FFFFFF">置顶级别:
  595. <select name="istop">
  596. <option value="0"<?= $r[istop] == 0 ? ' selected' : '' ?>>不置顶</option>
  597. <option value="1"<?= $r[istop] == 1 ? ' selected' : '' ?>>一级置顶</option>
  598. <option value="2"<?= $r[istop] == 2 ? ' selected' : '' ?>>二级置顶</option>
  599. <option value="3"<?= $r[istop] == 3 ? ' selected' : '' ?>>三级置顶</option>
  600. <option value="4"<?= $r[istop] == 4 ? ' selected' : '' ?>>四级置顶</option>
  601. <option value="5"<?= $r[istop] == 5 ? ' selected' : '' ?>>五级置顶</option>
  602. <option value="6"<?= $r[istop] == 6 ? ' selected' : '' ?>>六级置顶</option>
  603. <option value="7"<?= $r[istop] == 7 ? ' selected' : '' ?>>七级置顶</option>
  604. <option value="8"<?= $r[istop] == 8 ? ' selected' : '' ?>>八级置顶</option>
  605. <option value="9"<?= $r[istop] == 9 ? ' selected' : '' ?>>九级置顶</option>
  606. </select>
  607. 内容模板:
  608. <select name="newstempid">
  609. <option value="0"<?= $r[newstempid] == 0 ? ' selected' : '' ?>>使用默认模板
  610. </option>
  611. <?= $newstemp ?>
  612. </select> <input type="button" name="Submit62222" value="管理内容模板"
  613. onclick="window.open('template/ListNewstemp.php?gid=<?= $thegid ?><?= $ecms_hashur['ehref'] ?>');">
  614. </td>
  615. </tr>
  616. <tr>
  617. <td height="25" bgcolor="#FFFFFF">权限设置:
  618. <select name="groupid">
  619. <option value="0">游客</option>
  620. <?= $group ?>
  621. </select>
  622. 查看扣除点数:
  623. <input name="userfen" type="text" value="<?= $r[userfen] ?>" size="6">
  624. ,
  625. <input type=checkbox name=closepl
  626. value=1<?= $r[closepl] == 1 ? " checked" : "" ?>>
  627. 关闭评论
  628. </td>
  629. </tr>
  630. <tr>
  631. <td height="25" bgcolor="#FFFFFF">点击数&nbsp;&nbsp;&nbsp;:
  632. <input name="onclick" type="text" id="onclick" value="<?= $r[onclick] ?>">
  633. 下载数&nbsp;&nbsp;&nbsp;:
  634. <input name="totaldown" type="text" id="totaldown" value="<?= $r[totaldown] ?>">
  635. </td>
  636. </tr>
  637. <tr>
  638. <td height="25" bgcolor="#FFFFFF"> 文件名&nbsp;&nbsp;&nbsp;:
  639. <input name="newspath" type="text" id="newspath"
  640. value="<?= $r[newspath] ?>"<?= $doselfinfo['doinfofile'] ? '' : ' readonly' ?>>
  641. /
  642. <input name="filename" type="text"
  643. value="<?= $r[filename] ?>"<?= $doselfinfo['doinfofile'] ? '' : ' readonly' ?>>
  644. <font color="#666666">(日期目录/文件名)</font></td>
  645. </tr>
  646. <?php
  647. if (strstr($public_r['usetags'], ',' . $modid . ',')) {
  648. $infotag_readonly = '';
  649. $infotag_copykeyboard = '&nbsp;&nbsp;<input type="button" name="Submit3" value="复制关键字" onclick="document.add.infotags.value=document.add.keyboard.value;">';
  650. if (strstr($public_r['chtags'], ',' . $modid . ',')) {
  651. $infotag_readonly = ' readonly';
  652. $infotag_copykeyboard = '&nbsp;&nbsp;<input type="button" name="Submit3" value="清除选择" onclick="if(confirm(\'确认要清除已选TAGS?\')){document.add.infotags.value=\'\';}">';
  653. }
  654. ?>
  655. <tr>
  656. <td height="25" bgcolor="#FFFFFF">TAGS&nbsp;&nbsp;&nbsp;&nbsp;:
  657. <input name="infotags" type="text" id="infotags" value="<?= $r[infotags] ?>"
  658. size="32"<?= $infotag_readonly ?>>
  659. <input type="button" name="Submit" value="选择"
  660. onclick="window.open('tags/ChangeTags.php?form=add&field=infotags<?= $ecms_hashur['ehref'] ?>','','width=700,height=550,scrollbars=yes');">
  661. <?= $infotag_copykeyboard ?>
  662. <input name="oldinfotags" type="hidden" id="oldinfotags"
  663. value="<?= $r[infotags] ?>">
  664. <font color="#333333">(多个用&quot;,&quot;逗号格开)</font></td>
  665. </tr>
  666. <?php
  667. }
  668. ?>
  669. <?php
  670. if ($class_r[$classid]['link_num']) {
  671. ?>
  672. <tr>
  673. <td height="25" bgcolor="#FFFFFF">相关链接:
  674. <input type="radio" name="info_diyotherlink"
  675. value="0"<?= $voter[diyotherlink] == 0 ? ' checked' : '' ?>>
  676. 按关键字查询
  677. <input type="radio" name="info_diyotherlink"
  678. value="1"<?= $voter[diyotherlink] == 1 ? ' checked' : '' ?>>
  679. <a href="#empirecms" title="查看和增加的相关链接"
  680. onclick="if(document.getElementsByName('info_diyotherlink')[1].checked==true){window.open('info/OtherLink.php?<?= $ecms_hashur['ehref'] ?>&classid=<?= $classid ?>&id=<?= $id ?>&enews=<?= $enews ?>&form=add&field=info_keyid&keyid='+document.add.info_keyid.value+'&keyboard='+document.add.keyboard.value+'&title='+document.add.title.value,'','width=780,height=550,scrollbars=yes,resizable=yes');}else{alert('请先选择手动相关链接');}">手动相关链接</a>
  681. <input name="info_keyid" type="hidden" id="info_keyid"
  682. value="<?= $r[keyid] ?>"></td>
  683. </tr>
  684. <?php
  685. }
  686. ?>
  687. </table>
  688. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  689. <tr>
  690. <td>所属专题</td>
  691. </tr>
  692. <tr>
  693. <td height="25" bgcolor="#FFFFFF"><a href="#empirecms"
  694. onclick="window.open('special/PushToZt.php?sinfo=1&classid=<?= $classid ?>&id=<?= $id ?><?= $ecms_hashur['ehref'] ?>','PushToZt','width=360,height=500,scrollbars=yes,left=300,top=150,resizable=yes');">点击选择信息所属专题</a>
  695. </td>
  696. </tr>
  697. </table>
  698. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  699. <tr>
  700. <td>定时发布</td>
  701. </tr>
  702. <tr>
  703. <td height="25" bgcolor="#FFFFFF">
  704. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  705. <tr>
  706. <td>上线时间: <input name="info_infouptime" type="text" id="info_infouptime"
  707. value="<?= $voter[infouptime] ? date('Y-m-d H:i:s', $voter[infouptime]) : '' ?>"
  708. size="28" class="Wdate"
  709. onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
  710. [<a href="#empirecms"
  711. onclick="document.add.info_infouptime.value='<?= $todaytime ?>'">当前时间</a>]
  712. </td>
  713. </tr>
  714. <tr>
  715. <td>下线时间: <input name="info_infodowntime" type="text"
  716. id="info_infodowntime"
  717. value="<?= $voter[infodowntime] ? date('Y-m-d H:i:s', $voter[infodowntime]) : '' ?>"
  718. size="28" class="Wdate"
  719. onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
  720. [<a href="#empirecms"
  721. onclick="document.add.info_infodowntime.value='<?= $todaytime ?>'">当前时间</a>]
  722. </td>
  723. </tr>
  724. </table>
  725. </td>
  726. </tr>
  727. </table>
  728. <?php
  729. if ($wfinfor[checktno] == 101) {
  730. ?>
  731. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  732. <tr>
  733. <td>信息送审</td>
  734. </tr>
  735. <tr>
  736. <td height="25" bgcolor="#FFFFFF"><input name="reworkflow" type="checkbox"
  737. value="1">
  738. 重新送审<font color="#333333">(信息被返工后,修改后可选择重新送审)</font></td>
  739. </tr>
  740. </table>
  741. <?php
  742. }
  743. ?>
  744. <?= $copyclassids ?>
  745. </td>
  746. </tr>
  747. </table>
  748. </div>
  749. <div class="tab-page" id="votesetting">
  750. <h2 class="tab">&nbsp;<font class=tabcolor>投票设置</font>&nbsp;</h2>
  751. <script type="text/javascript">tb1.addTabPage(document.getElementById("votesetting"));</script>
  752. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  753. <tr class="header">
  754. <td height="25" colspan="2">投票设置</td>
  755. </tr>
  756. <tr bgcolor="#FFFFFF">
  757. <td width="21%" height="25">主题标题</td>
  758. <td width="79%" height="25"><input name="vote_title" type="text" size="60"
  759. value="<?= $voter[title] ?>">
  760. </td>
  761. </tr>
  762. <tr bgcolor="#FFFFFF">
  763. <td height="25" valign="top">投票项目</td>
  764. <td height="25">
  765. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  766. <tr>
  767. <td>
  768. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  769. <tr bgcolor="#DBEAF5">
  770. <td width="9%" height="20">
  771. <div align="center">编号</div>
  772. </td>
  773. <td width="65%">
  774. <div align="center">项目名称</div>
  775. </td>
  776. <td width="26%">
  777. <div align="center">投票数</div>
  778. </td>
  779. </tr>
  780. </table>
  781. <?php
  782. if (($voter['id'] && $voter[votetext]) || $definfovoteid) {
  783. echo "$allvote";
  784. } else {
  785. ?>
  786. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  787. <tr>
  788. <td height="24" width="9%">
  789. <div align="center">1</div>
  790. </td>
  791. <td height="24" width="65%">
  792. <div align="center">
  793. <input name="vote_name[]" type="text" size="30">
  794. </div>
  795. </td>
  796. <td height="24" width="26%">
  797. <div align="center">
  798. <input name="vote_num[]" type="text" value="0" size="6">
  799. </div>
  800. </td>
  801. </tr>
  802. <tr>
  803. <td height="24">
  804. <div align="center">2</div>
  805. </td>
  806. <td height="24">
  807. <div align="center">
  808. <input name="vote_name[]" type="text" size="30">
  809. </div>
  810. </td>
  811. <td height="24">
  812. <div align="center">
  813. <input name="vote_num[]" type="text" value="0" size="6">
  814. </div>
  815. </td>
  816. </tr>
  817. <tr>
  818. <td height="24">
  819. <div align="center">3</div>
  820. </td>
  821. <td height="24">
  822. <div align="center">
  823. <input name="vote_name[]" type="text" size="30">
  824. </div>
  825. </td>
  826. <td height="24">
  827. <div align="center">
  828. <input name="vote_num[]" type="text" value="0" size="6">
  829. </div>
  830. </td>
  831. </tr>
  832. <tr>
  833. <td height="24">
  834. <div align="center">4</div>
  835. </td>
  836. <td height="24">
  837. <div align="center">
  838. <input name="vote_name[]" type="text" size="30">
  839. </div>
  840. </td>
  841. <td height="24">
  842. <div align="center">
  843. <input name="vote_num[]" type="text" value="0" size="6">
  844. </div>
  845. </td>
  846. </tr>
  847. <tr>
  848. <td height="24">
  849. <div align="center">5</div>
  850. </td>
  851. <td height="24">
  852. <div align="center">
  853. <input name="vote_name[]" type="text" size="30">
  854. </div>
  855. </td>
  856. <td height="24">
  857. <div align="center">
  858. <input name="vote_num[]" type="text" value="0" size="6">
  859. </div>
  860. </td>
  861. </tr>
  862. <tr>
  863. <td height="24">
  864. <div align="center">6</div>
  865. </td>
  866. <td height="24">
  867. <div align="center">
  868. <input name="vote_name[]" type="text" size="30">
  869. </div>
  870. </td>
  871. <td height="24">
  872. <div align="center">
  873. <input name="vote_num[]" type="text" value="0" size="6">
  874. </div>
  875. </td>
  876. </tr>
  877. <tr>
  878. <td height="24">
  879. <div align="center">7</div>
  880. </td>
  881. <td height="24">
  882. <div align="center">
  883. <input name="vote_name[]" type="text" size="30">
  884. </div>
  885. </td>
  886. <td height="24">
  887. <div align="center">
  888. <input name="vote_num[]" type="text" value="0" size="6">
  889. </div>
  890. </td>
  891. </tr>
  892. <tr>
  893. <td height="24">
  894. <div align="center">8</div>
  895. </td>
  896. <td height="24">
  897. <div align="center">
  898. <input name="vote_name[]" type="text" size="30">
  899. </div>
  900. </td>
  901. <td height="24">
  902. <div align="center">
  903. <input name="vote_num[]" type="text" value="0" size="6">
  904. </div>
  905. </td>
  906. </tr>
  907. </table>
  908. <?php
  909. }
  910. ?>
  911. </td>
  912. </tr>
  913. <tr>
  914. <td>投票扩展数量:
  915. <input name="v_vote_num" type="text" value="1" size="6"> <input type="button"
  916. name="Submit52"
  917. value="输出地址"
  918. onclick="javascript:dovoteadd();">
  919. <input name="v_editnum" type="hidden" value="<?= $voteeditnum ?>">
  920. </td>
  921. </tr>
  922. <tr>
  923. <td id="addvote"></td>
  924. </tr>
  925. </table>
  926. </td>
  927. </tr>
  928. <tr bgcolor="#FFFFFF">
  929. <td height="25">投票类型</td>
  930. <td height="25"><input name="vote_class" type="radio"
  931. value="0"<?= $voter['voteclass'] == 0 ? ' checked' : '' ?>>
  932. 单选
  933. <input type="radio" name="vote_class"
  934. value="1"<?= $voter['voteclass'] == 1 ? ' checked' : '' ?>>
  935. 多选
  936. </td>
  937. </tr>
  938. <tr bgcolor="#FFFFFF">
  939. <td height="25">限制IP</td>
  940. <td height="25"><input type="radio" name="dovote_ip"
  941. value="0"<?= $voter['doip'] == 0 ? ' checked' : '' ?>>
  942. 不限制
  943. <input name="dovote_ip" type="radio" value="1"<?= $voter['doip'] == 1 ? ' checked' : '' ?>>
  944. 限制(限制后同一IP只能投一次票)
  945. </td>
  946. </tr>
  947. <tr bgcolor="#FFFFFF">
  948. <td height="25">过期时间</td>
  949. <td height="25"><input name="vote_olddotime" type=hidden value="<?= $voter[dotime] ?>">
  950. <input name="vote_dotime" type="text" value="<?= $voter[dotime] ?>" size="12" class="Wdate"
  951. onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
  952. (超过此期限,将不能投票,0000-00-00为不限制)
  953. </td>
  954. </tr>
  955. <tr bgcolor="#FFFFFF">
  956. <td height="25">查看投票窗口</td>
  957. <td height="25">宽度:
  958. <input name="vote_width" type="text" value="<?= $voter[width] ?>" size="6">
  959. 高度:
  960. <input name="vote_height" type="text" value="<?= $voter[height] ?>" size="6"></td>
  961. </tr>
  962. <tr bgcolor="#FFFFFF">
  963. <td height="25">选择模板</td>
  964. <td height="25"><select name="vote_tempid">
  965. <?= $votetemp ?>
  966. </select> <input type="button" name="Submit62223" value="管理投票模板"
  967. onclick="window.open('template/ListVotetemp.php?gid=<?= $thegid ?><?= $ecms_hashur['ehref'] ?>');">
  968. </td>
  969. </tr>
  970. </table>
  971. </div>
  972. </div>
  973. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  974. <tr>
  975. <td width="16%">&nbsp;</td>
  976. <td><input type="submit" name="addnews" value=" 提 交 "> &nbsp;&nbsp;&nbsp;<input type="reset"
  977. name="Submit2"
  978. value="重置"></td>
  979. </tr>
  980. </table>
  981. </form>
  982. <?= $copyclassidshowiframe ?>
  983. </body>
  984. </html>
  985. <?php
  986. db_close();
  987. $empire = null;
  988. ?>