<!-- <form action="">
<table role="presentation" class="table table-striped">
	<thead>
		<tr>
			<th width="30%"></th>
			<th width="40%"></th>
		</tr>
	</thead>
	
  	<tbody id="jobassign_docs_list">
  	<tr></tr>
  		<?php 
			//echo $this->generateUploadDocViewItemRows($docs);
  		?>
	</tbody>
</table>
</form>

<script>
</script> -->

 <!-- =================================================================== -->

  <?php 
/*  if(!isset($row))
        return;*/
?>

<head>
<style>
.progress-extended {
    font-size:12px; 
}
</style>
</head>

<div>
    <h4>Job Assignment Document</h4>
</div>
    
<div>
<form action="" enctype="multipart/form-data" id="form-upload-jobassign">

        <input type="hidden" id="jobassign_id" value="<?= $headerId ?>">
        <input type="hidden" id="assigndetail_id" value="<?= $detailId ?>">

        <div class="row fileupload-buttonbar">
            <div class="col-lg-7">
                
                <span class="btn btn-success fileinput-button">
                    <i class="glyphicon glyphicon-plus"></i>
                    <span>Choose File...</span>
                    <input  id="uploadFile" type="file" name="uploadFile[]" multiple>
                </span>
                <button id="UP" onclick="return addJobAssignmentDocs()" class="btn btn-primary start">
                    <i class="glyphicon glyphicon-upload"></i>
                    <span>Add Doc</span>
                </button>
                <button id="btnJobAssignCancelUpload" onclick="return cancelJobAssignmentDocs()" class="btn btn-warning cancel">
                    <i class="glyphicon glyphicon-ban-circle"></i>
                    <span>Cancel</span>
                </button>
                <span class="fileupload-process"></span>
            </div>
            
            <div class="col-lg-5 fileupload-progress fade">
                
                <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
                    <div class="progress-bar progress-bar-success" style="width:0%;"></div>
                </div>
                
                <div class="progress-extended">&nbsp;</div>
            </div>
        </div>
        
        <table role="presentation" class="table table-striped">
            <tbody id="jobassign_docs_upload">
            </tbody>
        </table>
    <br>
</form>    
</div>
<div id="jobassign_doc_upload_status" style="margin-top:10px;display:none">
                            <div style="margin-top:10px"><img src="image/uploading.gif"></div>
</div>
<div id="uploadMsg" style="color: blue;"></div>
<div id="errorMsg" style="color: red; margin-bottom: 20px"></div>

<hr>

<h4>Doc List</h4>
<table role="presentation" class="table table-striped">
    <thead>
        <tr>
            <th width="60%">File Name</th>
            <th width="30%">Document Ref.</th>
            <th width="10%">&nbsp;</th>
        </tr>
    </thead>
    
    <tbody id="jobassign_docs_list" class='tblDoc<?=$detailId?>'>
    <tr></tr>
        <?php echo $this->generateUploadDocViewItemRows($docs); ?>
    </tbody>
</table>

<script>
</script>
