Advertisement
Guest User

test

a guest
Jun 21st, 2013
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FORM PEMINJAMAN
  2. Data Anggota
  3.  
  4. Kode Peminjaman:<input value="” style=”height:10px;” name=”kd_peminjaman” class=”pm” readonly=”readonly” />
  5.  
  6. Nama Anggota:
  7.  
  8. Kode Anggota:<input value="” style=”height:10px;” name=”kd_anggota” class=”pm” readonly=”readonly” />
  9.  
  10. Gender:
  11.  
  12. Kelas:
  13.  
  14. Tanggal Pinjam:
  15. <input value="” name=”tgl_pinjam” style=”height:10px;” readonly=”readonly” />
  16.  
  17. Tanggal Harus Kembali :
  18. <input value="” name=”tgl_harus_kembali” style=”height:10px;” readonly=”readonly” />
  19.  
  20. Data Peminjaman
  21.  
  22. Judul Buku:
  23.  
  24. result_array() as $dp){
  25.  
  26. ?>
  27. <option value="”>
  28.  
  29. <input type="hidden" name="status_input" value="” />
  30.  
  31. <script src="res/js/chosen.jquery.js” type=”text/javascript”>
  32.  
  33. <script src="res/js/chosen.jquery.js” type=”text/javascript”>
  34. $(“.chzn-select1″).chosen().change(function(){
  35. var kd_buku = $(“#kd_buku”).val();
  36. $.ajax({
  37. url: “user/peminjaman/ambil_data_buku_ajax”,
  38. data: “kd_buku=”+kd_buku,
  39. cache: false,
  40. success: function(msg){
  41. $(“#data_buku”).html(msg);
  42.  
  43. }
  44. })
  45. });
  46.  
  47. Buku Yang Anda Pinjam
  48.  
  49. NoKode BukuJudul Buku
  50.  
  51. cart->contents() as $items): ?>
  52.  
  53. <td class="a" align="center"
  54.  
  55. //controller
  56.  
  57. function tambah_pinjaman()
  58. {
  59. $cek = $this->session->userdata(‘logged_in’);
  60. if(!empty($cek))
  61. {
  62. $data = array(
  63.  
  64. ‘id’ => $this->input->post(‘kd_buku’),
  65. ‘name’ => $this->input->post(‘nm_buku’));
  66. $this->cart->insert($data);
  67. ?>
  68.  
  69. window.location = ‘user/peminjaman’;
  70.  
  71. session->userdata(‘logged_in’);
  72. if(!empty($cek)){
  73. $data["kd_buku"] = $_GET["kd_buku"];
  74.  
  75. $q = $this->m_perpus->get_selected_data(“buku”,$data);
  76. foreach($q->result() as $d){
  77. ?>
  78.  
  79. Kode Buku :<input value="kd_buku;?>” name=”kd_buku” style=”width:45px; height:10px;” readonly=”readonly” />
  80.  
  81. Judul Buku :<input value="nm_buku;?>” name=”nm_buku” style=”width:45px; height:10px;” readonly=”readonly” />
  82.  
  83. <?php
  84. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement