12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <h2>可选学生</h2>
- <ul>
- <?php if ($relStuList): ?>
- <li class="grade">❖<span><?php echo $relStuList['gradeText']; ?></span>
- <?php foreach ($relStuList['saleOutOrderClazzes'] as $v): ?>
- <ul class="student-list">
- <li class="class-li">▾
- <span class="classTitle"><?php echo $v['clazzName']; ?></span>
- <a type="button" class="btn-select_all">全选</a>
- <ul class="student-name_box">
- <?php foreach ($v['saleOutOrderStudents'] as $stu): ?>
- <?php if ($outId <= 0): ?>
- <!-- 新增-->
- <?php if (!$stu['isRelation']): ?>
- <li>
- <label><?php echo $stu['studentName']; ?>
- <input type="checkbox" name="studentName"
- value="<?php echo $stu['osId']; ?>"
- gradeName="<?php echo $relStuList['gradeText']; ?>"
- className="<?php echo $v['clazzName']; ?>"/>
- </label>
- </li>
- <?php endif; ?>
- <?php else: ?>
- <!-- 编辑-->
- <?php if ($stu['isRelation']): ?>
- <?php if (isset($stu['saleOutId']) && $outId == $stu['saleOutId']):?>
- <li>
- <label><?php echo $stu['studentName']; ?>
- <input type="checkbox" name="studentName" checked
- value="<?php echo $stu['osId']; ?>"
- gradeName="<?php echo $relStuList['gradeText']; ?>"
- className="<?php echo $v['clazzName']; ?>"/>
- </label>
- </li>
- <?php endif;?>
- <?php else:?>
- <li>
- <label><?php echo $stu['studentName']; ?>
- <input type="checkbox" name="studentName"
- value="<?php echo $stu['osId']; ?>"
- gradeName="<?php echo $relStuList['gradeText']; ?>"
- className="<?php echo $v['clazzName']; ?>"/>
- </label>
- </li>
- <?php endif; ?>
- <?php endif; ?>
- <?php endforeach; ?>
- </ul>
- </li>
- </ul>
- <?php endforeach; ?>
- </li>
- <?php endif; ?>
- </ul>
|