0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.119.253.198


Current Path : /var/www/html/oums/
Upload File :
Current File : /var/www/html/oums/work_entry_grid.php

<?php
include("src/sys_session.php");
include("src/sys_connect.php");
?>

<div id="page-container-main">
    <table style="width:100%;">
        <tr>
            <td style="width: 20%">
                <?php
                if ($type_id == 'ADMIN') {
                    $mysql = "select distinct femplname,wk.femplcode from workentry wk
                    left join masempl em on wk.femplcode = em.femplcode
                    where ifnull(wk.femplcode,'')<>'' order by femplname";
                } else {
                    $mysql = "select distinct femplname,wk.femplcode from workentry wk
                    inner join masempl em on wk.femplcode = em.femplcode and wk.femplcode = '$empl_id' 
                    where ifnull(wk.femplcode,'')<>'' order by femplname";
                }
                $myres = mysqli_query($mycon, $mysql);
                echo "<select class='form-input' id='selemplcode'  onChange='load_grid_data(20,1);'>";
                if (mysqli_num_rows($myres) > 1) {
                    echo "<option value=%>ALL [EMPLOYEES]</option>";
                }
                while ($myrow = mysqli_fetch_assoc($myres)) {
                    echo "<option value='$myrow[femplcode]'>$myrow[femplname]</option>";
                }
                echo "</select>";
                ?>
            </td>
            <td style="width: 20%">
                <?php
                $mysql = "select * from maswork_type order by ftypeordr,ftypedesc";
                $myres = mysqli_query($mycon, $mysql);
                echo "<select class='form-input' id='selworktype'  onChange='load_grid_data(20,1);'>";
                if (mysqli_num_rows($myres) > 1) {
                    echo "<option value=%>ALL [WORK TYPES]</option>";
                }
                while ($myrow = mysqli_fetch_assoc($myres)) {
                    echo "<option value='$myrow[fworktype]'>$myrow[ftypedesc]</option>";
                }
                echo "</select>";
                ?>
            </td>
            <td style="width: 20%">
                <select class="form-input" id="selworkstat" onChange="load_grid_data(20,1);">
                    <option value="%">ALL [WORK STATUS]</option>
                    <option value="PENDING">PENDING [WORK STATUS]</option>
                    <option value="COMPLETED">COMPLETED [WORK STATUS]</option>
                    <option value="INCOMPLETE">INCOMPLETE [WORK STATUS]</option>
                    <option value="INVALID">INVALID [WORK STATUS]</option>
                </select>
            </td>
            <td style="width: 20%">
                <select class="form-input" id="selviewstat" onChange="load_grid_data(20,1);">
                    <option value="PENDING">PENDING [REVIEW STATUS]</option>
                    <option value="REVIEWED">REVIEWED [REVIEW STATUS]</option>
                    <option value="%">ALL [REVIEW STATUS]</option>
                </select>
            </td>
            <td align="left" style="padding:0px;">
                <input type="text" class="form-input" id="txtworkfind" onInput="load_grid_data(20,1);" placeholder="Search">
            </td>
        </tr>
    </table>
</div>
<div id="page-container-grid"></div>