edit.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <div class="main">
  5. <div class="main_title">{%EDIT} <a href="{:u("ManagementCourse/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">
  19. <input type="text" class="textbox require" name="title" value="{$vo.title}"/>
  20. <if condition="$vo['id']"><a href="{:u("ManagementCourse/view",array('id'=>$vo['id']))}" class="back_list">分集列表</a></if>
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="item_title">创建时间:</td>
  25. <td class="item_input"><?php echo date('Y-m-d H:i:s',$vo['create_time']);?></td>
  26. </tr>
  27. <tr>
  28. <td class="item_title">封面:</td>
  29. <td class="item_input"><html:imgUpload name="image" id='image' value="$vo.img"/>
  30. <span class='tip_span'>&nbsp;[封面规格为:??px*??px]</span>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td class="item_title">热门:</td>
  35. <td class="item_input">
  36. <label>是<input type="radio" name="is_hot" value="1" <if condition="$vo['is_hot'] eq 1">checked="checked"</if> /></label>
  37. <label>否<input type="radio" name="is_hot" value="0" <if condition="$vo['is_hot'] eq 0">checked="checked"</if> /></label>
  38. </td>
  39. </tr>
  40. <tr>
  41. <td class="item_title">推荐:</td>
  42. <td class="item_input">
  43. <label>是<input type="radio" name="is_recommend" value="1" <if condition="$vo['is_recommend'] eq 1">checked="checked"</if> /></label>
  44. <label>否<input type="radio" name="is_recommend" value="0" <if condition="$vo['is_recommend'] eq 0">checked="checked"</if> /></label>
  45. </td>
  46. </tr>
  47. <tr id="general">
  48. <td class="item_title">内容:</td>
  49. <td class="item_input">
  50. <html:editor id="editor" name="content" type="KINDEDITOR" content="{$vo.content}" />
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="item_title">是否有效:</td>
  55. <td class="item_input">
  56. <label>是<input type="radio" name="is_effect" value="1" <if condition="$vo['is_effect'] eq 1">checked="checked"</if> /></label>
  57. <label>否<input type="radio" name="is_effect" value="0" <if condition="$vo['is_effect'] eq 0">checked="checked"</if> /></label>
  58. </td>
  59. </tr>
  60. <tr>
  61. <td class="item_title"></td>
  62. <td class="item_input">
  63. <!--隐藏元素-->
  64. <input type="hidden" name="{:conf("VAR_MODULE")}" value="ManagementCourse" />
  65. <input type="hidden" name="{:conf("VAR_ACTION")}" value="update" />
  66. <input type="hidden" name="id" value="{$vo.id}" />
  67. <!--隐藏元素-->
  68. <input type="submit" class="button" value="{%EDIT}" />
  69. <input type="reset" class="button" value="{%RESET}" />
  70. </td>
  71. </tr>
  72. </table>
  73. </form>
  74. </div>
  75. <include file="Public:footer" />