<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                # 數據列表index 根據數據列表,我們增加班級信息的同時,還要增加輔導員信息。 按照以前的方法,我們建立初步的C與V。 C層: ~~~ <?php namespace app\index\controller; use app\common\model\Student; class StudentController extends IndexController { public function index() { $students = Student::paginate(); $this->assign('students', $students); return $this->fetch(); } } ~~~ V層(.../view/Student/index.html): ~~~ <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8"> <title>學生管理</title> <link rel="stylesheet" type="text/css" href="/thinkphp5/public/static/bootstrap-3.3.5-dist/css/bootstrap.min.css"> </head> <body class="container"> <div class="row"> <div class="col-md-12"> <hr /> <div class="row"> <div class="col-md-8"> <form class="form-inline"> <div class="form-group"> <label class="sr-only" for="name">姓名</label> <input name="name" type="text" class="form-control" placeholder="姓名..." value={:input('get.name')}> </div> <button type="submit" class="btn btn-default"><i class="glyphicon glyphicon-search"></i>&nbsp;查詢</button> </form> </div> <div class="col-md-4 text-right"> <a href="{:url('add')}" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i>&nbsp;增加</a> </div> </div> <hr /> <table class="table table-hover table-bordered"> <tr class="info"> <th>序號</th> <th>姓名</th> <th>學號</th> <th>性別</th> <th>email</th> <td>創建時間</td> <th>班級</th> <th>輔導員</th> <th>操作</th> </tr> {volist name="students" id="student" key="key"} <tr> <td>{$key}</td> <td>{$student->getData('name')}</td> <td>{$student->getData('num')}</td> <td>{$student->getData('sex')}</td> <td>{$student->getData('email')}</td> <td>{$student->getData('create_time')}</td> <td>{$student->getData('klass_id')}</td> <td></td> <td><a class="btn btn-danger btn-sm" href="{:url('delete?id=' . $student->getData('id'))}"><i class="glyphicon glyphicon-trash"></i>&nbsp;刪除</a>&nbsp;<a class="btn btn-sm btn-primary" href="{:url('edit?id=' . $student->getData('id'))}"><i class="glyphicon glyphicon-pencil"></i>&nbsp;編輯</a></td> </tr> {/volist} </table> {$students->render()} </div> </div> </body> </html> ~~~ ![](https://box.kancloud.cn/2016-06-22_5769fa215527d.png) 下面,我們分別解決以下四個問題: 1、性別顯示的問題 2、創建時間顯示的問題 3、顯示班級名稱的問題 4.、顯示輔導員姓名的問題
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看