edit.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <div class="main">
  5. <div class="main_title">{%EDIT} <a href="{:u("Course/index")}" class="back_list">{%BACK_LIST}</a></div>
  6. <div class="blank5"></div>
  7. <form name="edit" action="__APP__" method="post" enctype="multipart/form-data">
  8. <table class="form" cellpadding=0 cellspacing=0>
  9. <tr>
  10. <td colspan=2 class="topTd"></td>
  11. </tr>
  12. <tr>
  13. <td class="item_title">课程编号:</td>
  14. <td class="item_input">{$vo.id}</td>
  15. </tr>
  16. <tr>
  17. <td class="item_title">课程名称:</td>
  18. <td class="item_input"><input type="text" class="textbox require" name="title" value="{$vo.title}"/></td>
  19. </tr>
  20. <tr>
  21. <td class="item_title">封面:</td>
  22. <td class="item_input"><html:imgUpload name="image" id='image' value="$vo.img"/>
  23. <span class='tip_span'>&nbsp;[封面规格为:??px*??px]</span>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td class="item_title">热门:</td>
  28. <td class="item_input">
  29. <label>是<input type="radio" name="is_hot" value="1" <if condition="$vo['is_hot'] eq 1">checked="checked"</if> /></label>
  30. <label>否<input type="radio" name="is_hot" value="0" <if condition="$vo['is_hot'] eq 0">checked="checked"</if> /></label>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td class="item_title">推荐:</td>
  35. <td class="item_input">
  36. <label>是<input type="radio" name="is_recommend" value="1" <if condition="$vo['is_recommend'] eq 1">checked="checked"</if> /></label>
  37. <label>否<input type="radio" name="is_recommend" value="0" <if condition="$vo['is_recommend'] eq 0">checked="checked"</if> /></label>
  38. </td>
  39. </tr>
  40. <tr id="general">
  41. <td class="item_title">内容:</td>
  42. <td class="item_input">
  43. <html:editor id="editor" name="content" type="KINDEDITOR" content="{$vo.content}" />
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="item_title">是否有效:</td>
  48. <td class="item_input">
  49. <label>是<input type="radio" name="is_effect" value="1" <if condition="$vo['is_effect'] eq 1">checked="checked"</if> /></label>
  50. <label>否<input type="radio" name="is_effect" value="0" <if condition="$vo['is_effect'] eq 0">checked="checked"</if> /></label>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="item_title"></td>
  55. <td class="item_input">
  56. <!--隐藏元素-->
  57. <input type="hidden" name="{:conf("VAR_MODULE")}" value="Course" />
  58. <input type="hidden" name="{:conf("VAR_ACTION")}" value="update" />
  59. <input type="hidden" name="id" value="{$vo.id}" />
  60. <!--隐藏元素-->
  61. <input type="submit" class="button" value="{%EDIT}" />
  62. <input type="reset" class="button" value="{%RESET}" />
  63. </td>
  64. </tr>
  65. </table>
  66. </form>
  67. </div>
  68. <include file="Public:footer" />