国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
4.4KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
  5. <title>发表<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title>
  6. <link href="templets/style/base.css" rel="stylesheet" type="text/css" />
  7. <script type="text/javascript" src="templets/js/j.js"></script>
  8. <script language='javascript' src="templets/js/main.js"></script>
  9. <script type="text/javascript" src="templets/js/inputAutoClear.js"></script>
  10. <script type="text/javascript" src="templets/js/load.js"></script>
  11. <script type="text/javascript" src="templets/js/leftmenu.js"></script>
  12. <script type="text/javascript" src="templets/js/calendar/calendar.js"></script>
  13. <script type="text/javascript" src="templets/js/checkSubmit.js"></script>
  14. </head>
  15. <body>
  16. <div id="main">
  17. <?php include(DEDEMEMBER."/templets/head.htm"); ?>
  18. <div id="content" class="w960 clearfix">
  19. <?php include(DEDEMEMBER."/templets/menu.php"); ?>
  20. <div id="mcpmain">
  21. <div id="appTab">
  22. <div id="appTab2">
  23. <ul>
  24. <li class="thisTab"><a href="#"><span>发表<?php echo $cInfos['typename']; ?></span></a></li>
  25. </ul>
  26. </div>
  27. </div>
  28. <form name="addcontent" action="archives_sg_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
  29. <input type="hidden" name="dopost" value="save" />
  30. <input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
  31. <div id="mainCp">
  32. <h3 class="meTitle"><strong>发表<?php echo $cInfos['typename']; ?></strong></h3>
  33. <div class="postForm">
  34. <p class="cellBg">
  35. <label><?php echo $cInfos['titlename']; ?>:</label>
  36. <input name="title" type="text" id="title" value="请输入内容主题" maxlength="100" class="intxt" onfocus="inputAutoClear(this)"/>
  37. </p>
  38. <?php
  39. if($cInfos['dfcid']>0) {
  40. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />";
  41. }else{
  42. ?>
  43. <p>
  44. <label>隶属栏目:</label>
  45. <?php
  46. $typeOptions = GetOptionList(0,$channelid);
  47. echo "<select name='typeid' size='1'>\r\n";
  48. echo "<option value='0' selected>请选择栏目...</option>\r\n";
  49. echo $typeOptions;
  50. echo "</select>";
  51. ?>
  52. (只允许并且必须选择白色背景的项目<span style="color:#F00">*</span>)
  53. </p>
  54. <p class="cellBg" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
  55. <label>缩略图:</label>
  56. <input name="litpic" type="file" id="litpic" onchange="SeePicNew('divpicview',this);" maxlength="100" class="intxt"/>
  57. </p>
  58. <?php
  59. if($safe_faq_send == '1'){
  60. $faqkey = array_rand($safefaqs);
  61. ?>
  62. <p class="cellBg">
  63. <label>验证问题:</label>
  64. <?php echo $safefaqs[$faqkey]['question'];?> (答案:<?php echo $safefaqs[$faqkey]['answer'];?>)<input class="intxt" name="safeanswer" type="text" id="safeanswer" size="25" style='width:200px;'/>
  65. <input type="hidden" name="faqkey" value="<?php echo $faqkey;?>" />
  66. </p>
  67. <?php
  68. }
  69. }
  70. //自定义字段
  71. PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');
  72. //游客强制加验证码,会员则判断后台开关
  73. if(preg_match("/3/",$safe_gdopen)){
  74. ?>
  75. <p class="cellBg" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
  76. <label>验证码:</label>
  77. <input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
  78. <img src="../plus/vdimgck.php" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" />
  79. </p>
  80. <?php }?>
  81. <p>
  82. <button class="button2" type="submit">提交</button>
  83. <button class="button2 ml10" type="reset" onclick="location.reload();">重置</button>
  84. </p>
  85. </div>
  86. </div>
  87. </form>
  88. <!--主操作区域 -->
  89. </div>
  90. </div>
  91. <?php include(DEDEMEMBER."/templets/foot.htm"); ?>
  92. </div>
  93. </body>
  94. </html>