Преглед на файлове

新建课程默认老师与course老师相同

visuddhinanda преди 5 години
родител
ревизия
14cd15d435
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      app/course/my_lesson_new.php

+ 3 - 3
app/course/my_lesson_new.php

@@ -2,7 +2,7 @@
 <?php
 require_once "../path.php";
 require_once "../public/_pdo.php";
-require_once '../media/function.php';
+require_once '../ucenter/function.php';
 
 global $PDO;
 PDO_Connect("sqlite:"._FILE_DB_COURSE_);
@@ -56,8 +56,8 @@ echo '</div>';
     <div style="display:flex;">
     <div style="flex:2;">老师</div>
     <div   style="flex:8;">
-        <div id="teacher_id"></div>
-        <input id="form_teacher" type="hidden" name="teacher" value="" />
+        <div id="teacher_id"><?php echo ucenter_getA($course_info["teacher"]); ?></div>
+        <input id="form_teacher" type="hidden" name="teacher" value="<?php echo $course_info["teacher"] ?>" />
     </div>
     </div>