_selectOutStu.php 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <h2>可选学生</h2>
  2. <ul>
  3. <?php if ($relStuList): ?>
  4. <!-- <li class="grade">❖<span></span>-->
  5. <?php foreach ($relStuList['saleOutOrderClazzes'] as $v): ?>
  6. <ul class="student-list" style="display: block;">
  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 ($inId <= 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 if ($stu['isRelation']): ?>
  25. <li>
  26. <label><?php echo $stu['studentName']; ?>
  27. <input type="checkbox" disabled name="studentName"
  28. value="<?php echo $stu['osId']; ?>"
  29. gradeName="<?php echo $relStuList['gradeText']; ?>"
  30. className="<?php echo $v['clazzName']; ?>"/>
  31. </label>
  32. </li>
  33. <?php endif; ?>
  34. <?php else: ?>
  35. <!-- 编辑-->
  36. <?php if ($stu['isRelation']): ?>
  37. <?php if (isset($stu['saleOutId']) && $inId == $stu['saleOutId']):?>
  38. <li>
  39. <label><?php echo $stu['studentName']; ?>
  40. <input type="checkbox" name="studentName" checked
  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 else:?>
  48. <li>
  49. <label><?php echo $stu['studentName']; ?>
  50. <input type="checkbox" name="studentName"
  51. value="<?php echo $stu['osId']; ?>"
  52. gradeName="<?php echo $relStuList['gradeText']; ?>"
  53. className="<?php echo $v['clazzName']; ?>"/>
  54. </label>
  55. </li>
  56. <?php endif; ?>
  57. <?php endif; ?>
  58. <?php endforeach; ?>
  59. </ul>
  60. </li>
  61. </ul>
  62. <?php endforeach; ?>
  63. <!-- </li>-->
  64. <?php endif; ?>
  65. </ul>