<div style="padding:10px;"></div>
<div class="detil" style="padding: 4px;font-size:14px;margin-top:25px;width: 65%;margin: 0 auto;border-color: #FFFFFF;">
	<form style="padding: 4px;background:white;margin:0;" method="post" enctype="multipart/form-data" action="<?php echo base_url().'upload_dirput/upload'?>">
		<table id="tableDetilPerkara" style="font-size:14px;">
			<col width="40%">
			<col width="60%">
			<tbody>
				<tr id="tr_pihak">
				</tr>
				<tr id="tr_pihak">

					<td colspan="2" class="divider">Upload dokumen elektronik</td>
				</tr>
				<!-- mulai form dinamis -->
				<?php
					if($doc_referensi!=''){
							if($doc_referensi->num_rows>0){

								foreach ($doc_referensi->result() as $row) {
					?>
							<tr >
								<td id="first-child"><?php echo $row->keterangan_file; ?></td>
								<td colspan="2">
								 <?php if ($i==0) {
								?>
								<input type="hidden" name="upayapihak_id" value="<?php echo $upayapihak_id; ?>">
								<input type="hidden" name="upaya_id" value="<?php echo $upaya_id; ?>">

								<?php } ?>
								<input type="hidden" name="referensi[]" value="<?php echo $row->dokumen_ref_id;?>">
								<input name="edoc[]" class="standard-input" maxlength="150" style="width:400px;" type="file">&nbsp; <?php echo $row->format; ?>
								</td>
							 </tr>
					<?php
                    $i++;
					}
						}
						}else{
							show_404();
						}
					?>
			     <!-- selesai -->
				<tr>
					<td colspan="2" style="background:white;" align="center">
						 <input type="button" id='close_form_edoc' value="Kembali" class="btn close_form_edoc">
                         <input id="simpan" class="btn" type="submit" value="Simpan">
					</td>
				</tr>
			</tbody>
		</table>
	</form>
</div>

<script type="text/javascript">
    function doDownload(param){
        window.open("<?php echo base_url('manage_arsip_c/doDownloadee/');?>"+'/'+param)
    }
    function doDelete(){
        var values = $('form').serializeArray();
        values = jQuery.param(values);
        var url = "<?php echo base_url('manage_arsip_c/doDeleteee/');?>";
        $.post(url,values, function(json){
            closeLoading()
            if(json.st==1){
                message_show(json.msg);
            }else{
                message_error_show_parent(json.msg);
            }
            $('.tutups').click(function(){
                refreshPage();
            });
        },'json');
    }
    $('.datepicker').ValidateDateInput();
    $('#close_form_edoc').closingFormWin();
    $('.close_form_edoc').click(function(event){
        if($('#refresh').val()==1){
            refreshPage();
        }
    });
</script>
