
<?php if ($user_id == '1') { ?>
<td align="center" style="cursor:pointer; border:1px solid #ddd">
<img src="img/edit.png" width="17" height="20" title="EDIT" onclick="javascript:edit_job_details('<?php echo $main_id;?>','<?php echo $jobcard_no;?>');"/>
</td>
<td align="center" style="border:1px solid #ddd">
<img src="img/trash.png" style="cursor:pointer" onClick="del_job_main('<?php echo $main_id;?>','<?php echo $jobcard_no;?>')" width="20px" height="22px">
</td>
<?php } ?>



<?php } // End main list loop ?>

</table>
</div>

<table border="0" width="99%" align="center" cellpadding="0" cellspacing="0">
<tr>
<th height="19" align="left" style="font-size:12px; font-family:sans-serif; padding-top:10px;" scope="col"><?php echo $confirmation;?></th>
<th scope="cols" width="8%" align="right">
<?php  
if ($num_results > $show) { 
    include("footer_links1.php");
}
?>
</th>
</tr>
</table>
</div>
</div>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script type="text/javascript">
function approval_check(main_id, jobcard_no) {
    $.ajax({
        type: "POST",
        url: "jobcard/jobcard_entry/approval.php?action=SUBMIT",
        data: "main_id=" + main_id + "&jobcard_no=" + jobcard_no,
        success: function(data) {
            window.location.reload(true);
        }
    });
}
</script>
