<?php
defined('BASEPATH') or exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Show-user</title>
  <!-- CSS only -->

  <style>
    /* p{
      font-family : 
    } */
    .booder1 {
      border-bottom: 1px solid #A0A0A0;
      width: 750px;

    }

    .booder {
      border-bottom: 1px solid #A0A0A0;

    }
  </style>
  <style>
    .card {
      margin: 20px 20px 20px 100px;
    }
  </style>
</head>

<body>
  <br><br>
  <center>
    <h1>รายชื่อศิษย์เก่าทั้งหมด</h1>
  </center>
  <br><br>




  <div class="container">
    <?php foreach ($query->result_array() as $rs) { ?>
      <div class="card">

        <div class="card-body">

          <div class="row">

            <div class="col-4">
              <img src="<?php echo base_url('upload'); ?>/<?php echo $rs['upload']; ?>" alt="" width="180px" height="200px">
            </div>

            <div class="col-8">
              <h5 class="card-title">ชื่อ :<?php echo $rs['title']; ?> <?php echo $rs['fname']; ?> <?php echo $rs['lname']; ?></h5>
              <p class="card-text">อีเมลล์ : <td><?php echo $rs['email']; ?> </p>
              <p class="card-text">เฟสบุ๊ค : <td><?php echo $rs['face']; ?></p>
              <p class="card-text">วันเกิด : <td><?php echo $rs['date']; ?></p>
              <p class="card-text">เพศ : <td><?php echo $rs['sex']; ?></p>
              <p class="card-text">ปีที่เข้าการศึกษา : <td><?php echo $rs['attend']; ?></p>
              <?php if ($this->session->userdata('email')) { ?>
                <form action="<?php echo base_url('index.php/info_c/info_list'); ?>" method="post">
                  <input type="hidden" name="id" value="<?php echo $rs['a_id']; ?>">
                  <div align="right">
                  <button class="btn btn-deep-orange" name="submit">ดูรายละเอียด</button>
                </div>
                </form>
              <?php } else {
              } ?>
            </div>

          </div>

        </div>


      </div>

    <?php } ?>
  </div>
</body>

</html>
{'avg_line_length': 25.264367816091955, 'max_line_length': 131, 'alphanum_fraction': 0.4754322111010009, 'licenses': ['MIT'], 'repository_name': 'Mannyjung/alumni-2', 'path': 'application/views/list.php', 'size': 2358, 'lang': 'PHP'}