_selectStu.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <h2>可选学生</h2>
  2. <ul>
  3. <?php if ($relStuList): ?>
  4. <li class="grade">❖<span><?php echo $relStuList['gradeText']; ?></span>
  5. <?php foreach ($relStuList['saleOutOrderClazzes'] as $v): ?>
  6. <ul class="student-list">
  7. <li class="class-li">▾
  8. <span class="classTitle"><?php echo $v['clazzName']; ?></span>
  9. <a type="button" class="btn-select_all">全选</a>
  10. <ul class="student-name_box">
  11. <?php foreach ($v['saleOutOrderStudents'] as $stu): ?>
  12. <?php if ($outId <= 0): ?>
  13. <!-- 新增-->
  14. <?php if (!$stu['isRelation']): ?>
  15. <li>
  16. <label><?php echo $stu['studentName']; ?>
  17. <input type="checkbox" name="studentName"
  18. value="<?php echo $stu['osId']; ?>"
  19. gradeName="<?php echo $relStuList['gradeText']; ?>"
  20. className="<?php echo $v['clazzName']; ?>"/>
  21. </label>
  22. </li>
  23. <?php endif; ?>
  24. <?php else: ?>
  25. <!-- 编辑-->
  26. <?php if ($stu['isRelation']): ?>
  27. <?php if (isset($stu['saleOutId']) && $outId == $stu['saleOutId']):?>
  28. <li>
  29. <label><?php echo $stu['studentName']; ?>
  30. <input type="checkbox" name="studentName" checked
  31. value="<?php echo $stu['osId']; ?>"
  32. gradeName="<?php echo $relStuList['gradeText']; ?>"
  33. className="<?php echo $v['clazzName']; ?>"/>
  34. </label>
  35. </li>
  36. <?php endif;?>
  37. <?php else:?>
  38. <li>
  39. <label><?php echo $stu['studentName']; ?>
  40. <input type="checkbox" name="studentName"
  41. value="<?php echo $stu['osId']; ?>"
  42. gradeName="<?php echo $relStuList['gradeText']; ?>"
  43. className="<?php echo $v['clazzName']; ?>"/>
  44. </label>
  45. </li>
  46. <?php endif; ?>
  47. <?php endif; ?>
  48. <?php endforeach; ?>
  49. </ul>
  50. </li>
  51. </ul>
  52. <?php endforeach; ?>
  53. </li>
  54. <?php endif; ?>
  55. </ul>