Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tr>
- <td style="text-align:center" width="90px">
- <?php
- echo anchor(site_url('surat_ket_melamar_kerja/update/'.$surat_ket_melamar_kerja->id),'<i class="fa fa-edit"></i>','title="Edit Data" class="btn btn-sm btn-danger"');
- echo ' ';
- echo anchor(site_url('surat_ket_melamar_kerja/delete/'.$surat_ket_melamar_kerja->id),'<i class="fa fa-trash"></i>','title="Delete Data" class="btn btn-sm btn-danger" onclick="javasciprt: return confirm(\'Are You Sure ?\')"');
- ?>
- <button type="button" class="btn btn-primary" title="Donwload PDF" data-toggle="modal" data-target=".bs-example-modal-sm-1-<?php echo $surat_ket_melamar_kerja->id?>"><i class="fa fa-file-pdf-o"></i></button>
- </td>
- <div class="modal fade bs-example-modal-sm-1-<?php echo $surat_ket_melamar_kerja->id?>" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="modal-dialog modal-sm-1">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
- </button>
- <h4 class="modal-title" id="myModalLabel2">Mau Buat Surat Keterangan Apa?</h4>
- </div>
- <form action="<?php echo $action.'/'.$surat_ket_melamar_kerja->id?>" method="post" id="demo-form" class="form-horizontal form-label-left" novalidate>
- <div class="modal-body">
- <div class="form-group">
- <input type="text" class="form-control" name="jenis" id="jenis" placeholder="Jenis Surat" value="<?php echo $jenis; ?>" onkeyup="success()" />
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">Batal</button>
- <button type="submit" class="btn btn-primary" id="send" disabled><i class="fa fa-file-pdf-o" id="send"></i> Print PDF</button>
- </div>
- </form>
- <script type="text/javascript">
- function success() {
- if(document.getElementById("jenis").value==="") {
- document.getElementById('send').disabled = true;
- } else {
- document.getElementById('send').disabled = false;
- }
- }
- </script>
- </div>
- </div>
- </div>
- </tr>
Add Comment
Please, Sign In to add comment