first commit
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
include('../koneksi.php');
|
||||
$syarat_ship_id=$_POST['syarat_ship_id'];
|
||||
$berkas=$_POST['berkas'];
|
||||
?>
|
||||
<h4><?php echo $berkas; ?></h4>
|
||||
<input type="hidden" value="<?php echo $syarat_ship_id; ?>" id="syarat_ship_idxz" style="margin-bottom:6px">
|
||||
<?php
|
||||
$data_pdf=pg_query("SELECT file,id FROM syarat_ship WHERE id='$syarat_ship_id' ORDER BY id DESC");
|
||||
while($rdata_pdf=pg_fetch_array($data_pdf)) {$pdf=$rdata_pdf[0];
|
||||
if (($pdf==NULL) || ($pdf=='')) {/*echo "File PDF belum diupload..";*/} else {
|
||||
?>
|
||||
<div class="thumb" style="background-color:#ece9d8;padding:8px;margin-top:6px">
|
||||
<a href='app/ship_setting/pdf/pdf/<?php echo $pdf; ?>' target='_blank'><?php echo $pdf; ?></a>
|
||||
<!--<embed src="app/kirim/pdf/pdf/<?php echo $pdf; ?>#toolbar=0" width="100%" height="300"></embed>-->
|
||||
<!--<button type="button" name="cv_deletse"
|
||||
style="height:22px;border-radius: 50%"class="btn btn-danger btn-xs pull-right" id="<?php echo $rdata_pdf[1];?>" data-content="Hapus" rel="popover"
|
||||
data-placement="bottom" data-trigger="hover">
|
||||
<i class="fa fa-remove"></i>
|
||||
</button>-->
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
/*
|
||||
$('button[name="cv_deletse"]').click(function(){
|
||||
var x = confirm("Anda yakin ingin menghapus ?");
|
||||
if (x) {
|
||||
var key = "delete_cv";
|
||||
var id = $(this).attr('id');
|
||||
var rowElement = $(this).parent().parent();
|
||||
var syarat_ship_id=$('#syarat_ship_idxz').val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/ship_setting/pdf/crud.php",
|
||||
data: 'id='+id
|
||||
+'&syarat_ship_id='+syarat_ship_id
|
||||
+'&key='+key,
|
||||
success: function(data){
|
||||
var syarat_ship_id=$('#syarat_ship_idxz').val();
|
||||
$('#tabel_upl_cvz').load("app/ship_setting/pdf/tabel_upl_cv.php",{syarat_ship_idzz:syarat_ship_id});
|
||||
}
|
||||
});
|
||||
} else {}
|
||||
});
|
||||
*/
|
||||
</script>
|
||||
Reference in New Issue
Block a user