my_course_new.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <div class="tool_bar">
  2. <?php
  3. require_once "../path.php";
  4. require_once "../public/_pdo.php";
  5. require_once '../media/function.php';
  6. echo '<div>';
  7. echo $_local->gui->create_course;
  8. echo '</div>';
  9. echo '<div></div>';
  10. echo '</div>';
  11. ?>
  12. <form action="../course/my_course_index.php" method="POST">
  13. <input type="hidden" name="op" value="insert" />
  14. <div id="userfilelist">
  15. <div style="display:flex;">
  16. <div style="flex:2;"><?php echo $_local->gui->title ?></div>
  17. <div style="flex:8;">
  18. <div style="text-align: right;color:gray;">0/32</div>
  19. <input type="input" name="title" value="" placeholder="<?php echo $_local->gui->title ?>" />
  20. </div>
  21. </div>
  22. <div style="display:none;">
  23. <div style="flex:2;"><?php echo $_local->gui->sub_title ?></div>
  24. <div style="flex:8;">
  25. <div style="text-align: right;color:gray;">0/32</div>
  26. <input type="input" name="subtitle" value="" placeholder="<?php echo $_local->gui->sub_title ?>" />
  27. </div>
  28. </div>
  29. <div style="display:flex;">
  30. <div style="flex:2;"><?php echo $_local->gui->introduction ?></div>
  31. <div style="flex:8;"><textarea name = "summary" style="height:6em;"></textarea></div>
  32. </div>
  33. <div style="display:flex;">
  34. <div style="flex:2;"><?php echo $_local->gui->speaker ?></div>
  35. <div style="flex:8;">
  36. <div id="teacher_id"></div>
  37. <input id="form_teacher" type="hidden" name="teacher" value="" />
  38. </div>
  39. </div>
  40. <div style="display:flex;">
  41. <div style="flex:2;"><?php echo $_local->gui->language_select ?></div>
  42. <div style="flex:8;">
  43. <span >课程信息语言<input type="hidden" name="lang" value="" /></span>
  44. </div>
  45. </div>
  46. <div style="display:flex;">
  47. <div style="flex:2;"><?php echo $_local->gui->tag ?></div>
  48. <div style="flex:8;">
  49. <input type="input" name="tag" value="" />
  50. </div>
  51. </div>
  52. <div style="display:flex;">
  53. <div style="flex:2;"><?php echo $_local->gui->attachment ?></div>
  54. <div style="flex:8;"><input type="input" name = "attachment" value="" /></div>
  55. </div>
  56. </div>
  57. <input type="submit" value="<?php echo $_local->gui->create_course ?>" />
  58. </form>
  59. <script>
  60. name_selector_init("teacher_id",{input_id:"form_teacher"});
  61. </script>