国内流行的内容管理系统(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.

127 lines
5.3KB

  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="../static/js/jquery.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/checkSubmit.js"></script>
  13. </head>
  14. <body>
  15. <div id="main">
  16. <?php include(DEDEMEMBER."/templets/head.htm"); ?>
  17. <div id="content" class="w960 clearfix">
  18. <?php include(DEDEMEMBER."/templets/menu.php"); ?>
  19. <div id="mcpmain">
  20. <div id="appTab">
  21. <div id="appTab2">
  22. <ul>
  23. <li class="thisTab"><a href="#"><span>发表<?php echo $cInfos['typename']; ?></span></a></li>
  24. </ul>
  25. </div>
  26. </div>
  27. <form name="addcontent" action="archives_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
  28. <input type="hidden" name="dopost" value="save" />
  29. <input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
  30. <div id="mainCp">
  31. <h3 class="meTitle"><strong>发表<?php echo $cInfos['typename']; ?></strong></h3>
  32. <div class="postForm">
  33. <p class="cellBg">
  34. <label><?php echo $cInfos['titlename']; ?>:</label>
  35. <input name="title" type="text" id="title" value="请输入内容主题" maxlength="100" class="intxt" onfocus="inputAutoClear(this)"/>
  36. </p>
  37. <p>
  38. <label>标签TAG:</label>
  39. <input name="tags" type="text" id="tags" size="30" class="intxt" style="width:400px;"/> (用逗号分开)
  40. </p>
  41. <p class="cellBg">
  42. <label>作者:</label>
  43. <input type="text" name="writer" id="writer" value="<?php echo $cfg_ml->M_UserName?>" class="intxt" />
  44. </p>
  45. <?php
  46. if($cInfos['dfcid']>0) {
  47. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />";
  48. }else{
  49. ?>
  50. <p>
  51. <label>隶属栏目:</label>
  52. <?php
  53. $typeOptions = GetOptionList(0,$channelid);
  54. echo "<select name='typeid' size='1'>\r\n";
  55. echo "<option value='0' selected>请选择栏目...</option>\r\n";
  56. echo $typeOptions;
  57. echo "</select>";
  58. ?>
  59. <span style="color:#F00">*</span>(不能选择带颜色的分类)
  60. </p>
  61. <?php
  62. }
  63. ?>
  64. <p class="cellBg">
  65. <label>我的分类:</label>
  66. <?php
  67. $classlist = classification($cfg_ml->M_ID, 0, $channelid);
  68. echo "<select name='mtypesid' size='1'>\r\n";
  69. echo "<option value='0' selected>请选择分类...</option>\r\n";
  70. echo $classlist;
  71. echo "</select>";
  72. ?>
  73. </p>
  74. <?php
  75. if($cInfos['needdes']==1) {
  76. ?>
  77. <p>
  78. <label>信息摘要:</label>
  79. <textarea name="description" id="description" style="height:50px"></textarea> (内容的简要说明)
  80. </p>
  81. <?php
  82. }
  83. if($cInfos['needpic']==1) {
  84. ?>
  85. <p class="cellBg">
  86. <label>缩略图:</label>
  87. <input class="file" name="litpic" type="file" id="litpic" onchange="SeePicNew('divpicview',this);" />
  88. </p>
  89. <?php
  90. }
  91. //自定义字段
  92. PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');
  93. if($safe_faq_send == 1){
  94. $faqkey = array_rand($safefaqs);
  95. ?>
  96. <p class="cellBg">
  97. <label>验证问题:</label>
  98. <?php echo $safefaqs[$faqkey]['question'];?> (答案:<?php echo $safefaqs[$faqkey]['answer'];?>)<input class="intxt" name="safeanswer" type="text" id="safeanswer" size="25" style='width:200px;'/>
  99. <input type="hidden" name="faqkey" value="<?php echo $faqkey;?>" />
  100. </p>
  101. <?php
  102. }
  103. if(preg_match("/3/",$safe_gdopen)){
  104. ?>
  105. <p class="cellBg">
  106. <label>验证码:</label>
  107. <input class="text" name="vdcode" type="text" id="vdcode" size="10" style='width:50px;text-transform:uppercase;' />
  108. <img src="../plus/vdimgck.php" width="70" height="25" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" />
  109. </p>
  110. <?php }?>
  111. <p>
  112. <button class="button2" type="submit">提交</button>
  113. <button class="button2 ml10" type="reset" onclick="location.reload();">重置</button>
  114. </p>
  115. </div>
  116. </div>
  117. </form>
  118. <!--主操作区域 -->
  119. </div>
  120. </div>
  121. <?php include(DEDEMEMBER."/templets/foot.htm"); ?>
  122. </div>
  123. </body>
  124. </html>