PageRenderTime 48ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/uploads/member/templets/article_edit.htm

http://pj-photohost.googlecode.com/
HTML | 129 lines | 107 code | 0 blank | 22 comment | 0 complexity | d2a880dccd5a975400d99c74b4fdb653 MD5 | raw file
Possible License(s): LGPL-2.1
  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. <title>????:<?php echo $row['title']?></title>
  5. <?php include(DEDEMEMBER."/templets/head_inc.htm"); ?>
  6. <script language="javascript" type="text/javascript" src='js/main.js'></script>
  7. <script language="javascript" type="text/javascript">
  8. <!--
  9. function checkSubmit()
  10. {
  11. if(document.form1.title.value==""){
  12. alert("?????????");
  13. document.form1.title.focus();
  14. return false;
  15. }
  16. if(document.form1.typeid.value==0){
  17. alert("???????????");
  18. return false;
  19. }
  20. if(document.form1.typeid.options[document.form1.typeid.selectedIndex].className!='option3')
  21. {
  22. alert("??????????????????");
  23. return false;
  24. }
  25. }
  26. -->
  27. </script>
  28. </head>
  29. <body>
  30. <?php include(DEDEMEMBER."/templets/head.htm"); ?>
  31. <div class="wrapper lineT">
  32. <div class="mainBox">
  33. <div class="main">
  34. <?php include(DEDEMEMBER."/templets/menu.php"); ?>
  35. <div class="dedeMain">
  36. <div class="location"><span class="titEditChannel1 icon">????</span></div>
  37. <form class="mTB10 mL10 mR10" name="form1" id="form1" action="article_edit.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
  38. <input type="hidden" name="dopost" value="save" />
  39. <input type="hidden" name="aid" value="<?php echo $row['id']; ?>" />
  40. <input type="hidden" name="idhash" value="<?php echo md5($row['id'].$cfg_cookie_encode); ?>" />
  41. <input type="hidden" name="channelid" value="<?php echo $row['channel']; ?>" />
  42. <input type="hidden" name="oldlitpic" value="<?php echo $row['litpic']; ?>" />
  43. <input type="hidden" name="sortrank" value="<?php echo $row['sortrank']; ?>" />
  44. <table cellspacing="1" class="submit">
  45. <thead>
  46. <tr>
  47. <th colspan="2" ><strong>????</strong></th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. <tr>
  52. <td width="15%" align="right" valign="top">???</td>
  53. <td><input name="title" type="text" id="title" value="<?php echo $row['title']?>" size="30" class="text" style="width:400px;"/></td>
  54. </tr>
  55. <tr>
  56. <td align="right" valign="top">??TAG?</td>
  57. <td><input name="tags" type="text" id="tags" size="30" class="text" value="<?php echo $row['keywords']; ?>" style="width:400px;"/>
  58. (?????) </td>
  59. </tr>
  60. <tr>
  61. <td align="right" valign="top">???</td>
  62. <td><input type="text" name="writer" id="writer" size="30" class="text" value="<?php echo $cfg_ml->M_UserName?>" /></td>
  63. </tr>
  64. <tr>
  65. <td align="right" valign="top">?????</td>
  66. <td><?php
  67. $typeOptions = GetOptionList($row["typeid"],$row["channel"]);
  68. echo "<select name='typeid' size='1'>\r\n";
  69. echo $typeOptions;
  70. echo "</select>";
  71. ?><font color="#FF0000">*</font>(??????????)
  72. </td>
  73. </tr>
  74. <tr>
  75. <td align="right" valign="top">?????</td>
  76. <td><?php
  77. $typeOptions = classification($cfg_ml->M_ID, $row['mtypeid'], $channelid);
  78. echo "<select name='mtypesid' size='1'>\r\n";
  79. echo "<option value='0' selected>?????...</option>\r\n";
  80. echo $typeOptions;
  81. echo "</select>";
  82. ?></td>
  83. </tr>
  84. <tr>
  85. <td align="right" valign="top">?????</td>
  86. <td><textarea name="description" id="description" style="height:50px"><?php echo $row["description"]; ?></textarea>
  87. (???????) </td>
  88. </tr>
  89. <tr>
  90. <td align="right" valign="top">????</td>
  91. <td><input class="file" name="litpic" type="file" id="litpic" style="width:408px" onchange="SeePicNew('divpicview',this);" />
  92. <div id='divpicview' class='divpre'></div></td>
  93. </tr>
  94. <?php if($row['litpic']!=''){ ?>
  95. <tr>
  96. <td align="right" valign="top">???????</td>
  97. <td><div id='divpicview' class='divpre mTB10 litPic'> <img name="nlitpic" id="nlitpic" src='<?php echo $row['litpic']; ?>' /></div></td>
  98. </tr>
  99. <?php
  100. }
  101. //?????
  102. PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield');
  103. ?>
  104. <tr>
  105. <td align="left" valign="top"><strong>?????</strong></td>
  106. <td><?php GetEditor("body",$addRow['body'],350,"Member"); ?></td>
  107. </tr>
  108. </tbody>
  109. <tfoot>
  110. <tr>
  111. <td height="45" valign="top">&nbsp;</td>
  112. <td height="45"><button class="button2" type="submit">??</button>
  113. <button class="button2 mL10" type="reset" onclick="location.reload();">??</button></td>
  114. </tr>
  115. </tfoot>
  116. </table>
  117. </form>
  118. </div>
  119. <div class="clear"></div>
  120. </div>
  121. <div class="clear"></div>
  122. </div>
  123. </div>
  124. <?php include(DEDEMEMBER."/templets/foot.htm"); ?>
  125. </body>
  126. </html>