pertemuan lanjut

Buat fungsi detailbuku di controller buku.php

function detailbuku($id)
  {
    //echo $id;
    $this->load->view('desain');
    $this->load->view('apapun');
    $this->load->view('detailbuku');
  }

Buat desain.php di view

<head>
		<title>Perpustakaan |</title>
		<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" />
		<script src="<?php echo base_url()?>assets/js/jquery.min.js"></script>
		<script src="<?php echo base_url()?>assets/js/bootstrap.min.js"></script>
</head>

Buat detailbuku.php

<div class="x_panel" align="center">
  <div class="x_title">
      <h2><i class="fa fa-book"></i> Detail Buku</h2>
        <div class="clearfix"></div>
  </div>

  <div class="x_content">
    <div class="row" >
      <div class="col-sm-3 col-md-3">
        <div class="thumbnail" style="height: auto; position: relative; left: 165%; width: auto;">
          <img src="<?php echo base_url('assets/upload/')."gambar1533076844.JPG"?>" style="max-width:100%; max-height: 100%; height: 150px; width: 120px">

          <div class="caption">
            <h4 style="min-height:40px;" align="center">Sutrisno</h4>
            <table class="table table-triped">
              <tr>
                <td>Judul Buku: </td><td>Belum Ada Judul</td>
              </tr>
              <tr>
                <td>Penerbit: </td><td>Balai Pustaka</td>
              </tr>
              <tr>
                <td>Tahun Terbit: </td><td>1990</td>
              </tr>
              <tr>
                <td>Buku Tersedia: </td><td>5 buah</td>
              </tr>
              <tr>
                <td>ISBN: </td><td>50505050</td>
              </tr>
              <tr>
                <td>Kategori: </td><td>Buku Tulis</td>
              </tr>
            </table>
            <p>
              <button class="btn btn-success"type="button" name="button">Kembali</button>
              <button class="btn btn-primary"type="button" name="button">Booking</button>
            </p>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

Leave a Reply