12.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?><table width='100%' align=center cellpadding=3 cellspacing=1 bgcolor='#DBEAF5'><tr><td width='16%' height=25 bgcolor='ffffff'>标题</td><td bgcolor='ffffff'><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#DBEAF5">
  7. <tr>
  8. <td height="25" bgcolor="#FFFFFF">
  9. <?=$tts?"<select name='ttid'><option value='0'>标题分类</option>$tts</select>":""?>
  10. <input type=text name=title value="<?=ehtmlspecialchars(stripSlashes($r[title]))?>" size="60">
  11. <input type="button" name="button" value="图文" onclick="document.add.title.value=document.add.title.value+'(图文)';">
  12. </td>
  13. </tr>
  14. <tr>
  15. <td height="25" bgcolor="#FFFFFF">属性:
  16. <input name="titlefont[b]" type="checkbox" value="b"<?=$titlefontb?>>粗体
  17. <input name="titlefont[i]" type="checkbox" value="i"<?=$titlefonti?>>斜体
  18. <input name="titlefont[s]" type="checkbox" value="s"<?=$titlefonts?>>删除线
  19. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;颜色: <input name="titlecolor" type="text" value="<?=stripSlashes($r[titlecolor])?>" size="10" class="color">
  20. </td>
  21. </tr>
  22. </table></td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>seo标题</td><td bgcolor='ffffff'><input name="ftitle" type="text" size=60 id="ftitle" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[ftitle]))?>">
  23. </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>特殊属性</td><td bgcolor='ffffff'><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#DBEAF5">
  24. <tr>
  25. <td height="25" bgcolor="#FFFFFF">信息属性:
  26. <input name="checked" type="checkbox" value="1"<?=$r[checked]?' checked':''?>>
  27. 审核 &nbsp;&nbsp; 推荐
  28. <select name="isgood" id="isgood">
  29. <option value="0">不推荐</option>
  30. <?=$ftnr['igname']?>
  31. </select>
  32. &nbsp;&nbsp; 头条
  33. <select name="firsttitle" id="firsttitle">
  34. <option value="0">非头条</option>
  35. <?=$ftnr['ftname']?>
  36. </select></td>
  37. </tr>
  38. <tr>
  39. <td height="25" bgcolor="#FFFFFF">关键字&nbsp;&nbsp;&nbsp;:
  40. <input name="keyboard" type="text" size="52" value="<?=stripSlashes($r[keyboard])?>">
  41. <font color="#666666">(多个请用&quot;,&quot;隔开)</font></td>
  42. </tr>
  43. <tr>
  44. <td height="25" bgcolor="#FFFFFF">外部链接:
  45. <input name="titleurl" type="text" value="<?=stripSlashes($r[titleurl])?>" size="52">
  46. <font color="#666666">(填写后信息连接地址将为此链接)</font></td>
  47. </tr>
  48. </table></td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>发布时间</td><td bgcolor='ffffff'><input name="newstime" type="text" value="<?=$r[newstime]?>" size="28" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd HH:mm:ss'})"><input type=button name=button value="设为当前时间" onclick="document.add.newstime.value='<?=$todaytime?>'"></td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>类型</td><td bgcolor='ffffff'><input name="typename" type="text" id="typename" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[typename]))?>" size="">
  49. </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>视频地址</td><td bgcolor='ffffff'>
  50. <script>
  51. function domvadd_jijin()
  52. {
  53. var i;
  54. var str='';
  55. var oldi=0;
  56. var j=0;
  57. var addnum=0;
  58. addnum=parseInt(document.add.mvaddnum_jijin.value);
  59. oldi=parseInt(document.add.mveditnum_jijin.value);
  60. for(i=1;i<=addnum;i++)
  61. {
  62. j=i+oldi;
  63. str=str+'<tr><td align="center"><input type="text" name="jijin_1[]" id="jijin_1_'+j+'" value=""></td><td align="center"><input type="text" name="jijin_2[]" id="jijin_2_'+j+'" value=""></td></tr>';
  64. }
  65. document.getElementById("mvadd_jijin").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
  66. }
  67. </script>
  68. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  69. <tr>
  70. <td>
  71. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  72. <tr><td align="center">设置1</td><td align="center">设置2</td></tr>
  73. </table>
  74. </td>
  75. </tr>
  76. <tr>
  77. <td>
  78. <?php
  79. if($ecmsfirstpost==1)
  80. {
  81. ?>
  82. <table width='100%' border=0 cellspacing=1 cellpadding=3>
  83. <?php
  84. $editnum=3;
  85. for($i=1;$i<=$editnum;$i++)
  86. {
  87. ?>
  88. <tr><td align="center"><input type="text" name="jijin_1[]" id="jijin_1_<?=$i?>" value=""></td><td align="center"><input type="text" name="jijin_2[]" id="jijin_2_<?=$i?>" value=""></td></tr>
  89. <?php
  90. }
  91. ?>
  92. </table>
  93. <?php
  94. }
  95. else
  96. {
  97. $editnum=0;
  98. if($r['jijin'])
  99. {
  100. $r['jijin']=stripSlashes($r['jijin']);
  101. ?>
  102. <table width='100%' border=0 cellspacing=1 cellpadding=3>
  103. <?php
  104. //录入项
  105. $j=0;
  106. $mvf_record=explode('||||||',$r['jijin']);
  107. $mvf_count=count($mvf_record);
  108. for($i=0;$i<$mvf_count;$i++)
  109. {
  110. $j=$i+1;
  111. $mvf_field=explode("::::::",$mvf_record[$i]);
  112. ?>
  113. <tr><td align="center"><input type="text" name="jijin_1[]" id="jijin_1_<?=$j?>" value="<?=$mvf_field[0]?>"> <input type="hidden" name="jijin_mvid[]" id="jijin_mvid_<?=$j?>" value="<?=$j?>"><input type="checkbox" name="jijin_mvdelid[]" id="jijin_mvdelid_<?=$j?>" value="<?=$j?>">删</td><td align="center"><input type="text" name="jijin_2[]" id="jijin_2_<?=$j?>" value="<?=$mvf_field[1]?>"></td></tr>
  114. <?php
  115. }
  116. ?>
  117. </table>
  118. <?php
  119. $editnum=$j;
  120. }
  121. }
  122. ?>
  123. </td>
  124. </tr>
  125. <tr>
  126. <td height="25">扩展数量: <input name="mveditnum_jijin" type="hidden" id="mveditnum_jijin" value="<?=$editnum?>">
  127. <input name="mvnum_jijin" type="hidden" id="mvnum_jijin" value="2">
  128. <input name="mvmust_jijin" type="hidden" id="mvmust_jijin" value="1">
  129. <input name="mvaddnum_jijin" type="text" id="mvaddnum_jijin" value="1" size="6"> <input type="button" name="Submit5" value="输出" onclick="javascript:domvadd_jijin();"></td>
  130. </tr>
  131. <tr>
  132. <td id="mvadd_jijin"></td>
  133. </tr>
  134. </table>
  135. </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>标题图片</td><td bgcolor='ffffff'><input name="titlepic" type="text" id="titlepic" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[titlepic]))?>" size="45">
  136. <a onclick="window.open('ecmseditor/FileMain.php?type=1&classid=<?=$classid?>&infoid=<?=$id?>&filepass=<?=$filepass?>&sinfo=1&doing=1&field=titlepic<?=$ecms_hashur[ehref]?>','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../data/images/changeimg.gif" border="0" align="absbottom"></a></td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>内容简介</td><td bgcolor='ffffff'><textarea name="smalltext" cols="80" rows="10" id="smalltext"><?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[smalltext]))?></textarea>
  137. </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>采集地址</td><td bgcolor='ffffff'>
  138. <input name="cjurl" type="text" id="cjurl" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[cjurl]))?>" size="">
  139. </td></tr></table>