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.118.126.69


Current Path : /var/www/html/oums/
Upload File :
Current File : /var/www/html/oums/task_reminder_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
                echo "<select class='form-input' id='seltaskasby' onChange='load_grid_data(20,1);'>";
                if ($type_id == 'ADMIN') {
                    $myqry = " where femplcode in (select ftaskasby from taskreminder) ";
                } else {
                    $myqry = " where femplcode in (select ftaskasby from taskreminder where ftaskasto='$empl_id') ";
                }
                $mysql = "select distinct femplcode,femplname from masempl ". $myqry ." order by femplname;";
                $myres = mysqli_query($mycon, $mysql);
                if (mysqli_num_rows($myres) > 1) {
                    echo "<option value='%%'>ALL [ASSIGNED BY]</option>";
                }
                while ($myrow = mysqli_fetch_assoc($myres)) {
                    echo "<option value='$myrow[femplcode]'>$myrow[femplname]</option>";
                }
                echo "</select>";
                ?>
            </td>

            <td style="width:20%">
                <?php
                echo "<select class='form-input' id='seltaskasto' onChange='load_grid_data(20,1);'>";

                if ($type_id == 'ADMIN') {
                    $myqry = " where femplcode in (select ftaskasto from taskreminder) ";
                } else {
                    $myqry = " where femplcode in (select ftaskasto from taskreminder where ftaskasby='$empl_id') ";
                }
                $mysql = "select distinct femplcode,femplname from masempl ". $myqry ." order by femplname;";

                $myres = mysqli_query($mycon, $mysql);
                if (mysqli_num_rows($myres) > 1) {
                    echo "<option value='%%'>ALL [ASSIGNED TO]</option>";
                }
                while ($myrow = mysqli_fetch_assoc($myres)) {
                    echo "<option value='$myrow[femplcode]'>$myrow[femplname]</option>";
                }
                echo "</select>";
                ?>
            </td>
            <td style="width:20%">
                <select class="form-input" id="seltaskstat" onChange="load_grid_data(20,1);">
                    <option value="PENDING">PENDING</option>
                    <option value="COMPLETED">COMPLETED</option>
                    <option value="DEFERRED">DEFERRED</option>
                    <option value="%">ALL [STATUS]</option>
                </select>
            </td>
            <td align="left" style="width:20%;padding:0px;">
                <input type="text" class="form-input" id="txttaskfind" onInput="load_grid_data(20,1);" placeholder="Search task here...">
            </td>
        </tr>
    </table>
</div>
<div id="page-container-grid"></div>