Sebuahhobi98

how to encrypt value in datatable

Jul 17th, 2019
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. function json() {
  2. $this->datatables->select('id,nama,npm,fakultas,jurusan,semester,kamar,operator,noHP,j_k,tgl_lahir,ttl,sertifikat_ldik,foto,bahasa,hobi,keahlian,cita_cita');
  3. $this->datatables->from('daftar_mhs');
  4. //add this line for join
  5. //$this->datatables->join('table2', 'daftar_mhs.field = table2.field');
  6.  
  7. $this->datatables->add_column('action','<button class="btn btn-sm btn-primary" title="Edit" onclick="f_edit($1)"><i class="fa fa-fw fa-edit"></i></button> | <button class="btn btn-sm btn-danger" title="Hapus" onclick=\'f_hapus("'.$this->encrypt->encode("$1").'")\'><i class="fa fa-trash"></i></button>','id');
  8.  
  9. return $this->datatables->generate();
  10. }
Add Comment
Please, Sign In to add comment