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 : 3.145.170.164


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

<!DOCTYPE html>
<html>

<head>
    <link rel="stylesheet" type="text/css" media="screen" href="assets/datepicker/grid/js/themes/redmond/jquery-ui.custom.css">

    <link rel="stylesheet" type="text/css" media="screen" href="assets/datepicker/grid/js/jqgrid/css/ui.jqgrid.css">

    <script src="assets/datepicker/grid/js/jquery.min.js" type="text/javascript"></script>
    <script src="assets/datepicker/grid/js/themes/jquery-ui.custom.min.js" type="text/javascript"></script>
    <script src="js/work_review.js" type="text/javascript"></script>
</head>

<body onLoad="load_page();">
    <?php include("header.php"); ?>
    <div id="page-middle">
        <div class="page-container panel panel-primary">
            <div class="page-container-head panel-heading">
                <div id="page-container-titl" class="pull-left"></div>
                <div id="page-container-link" class="pull-right"></div>
                <div class="clearfix"></div>
            </div>

            <div id="page-container-body" class="panel-body">
                <div id="page-container-main">
                    <table style="width:100%;">
                        <tr>
                            <td style="width:16%;">
                                <?php
                                if ($type_id == 'ADMIN') {
                                    $mysql = "select distinct wk.freptempl,e2.femplname as freptname
                                        from workentry wk
                                        left join maswork_type wt on wk.fworktype = wt.fworktype
                                        left join masempl em on wk.femplcode = em.femplcode
                                        left join masempl e2 on wk.freptempl = e2.femplcode
                                        where ifnull(wk.fdelestat,'F')='F' and wk.fworkdate>'2020-11-30'
                                        order by freptname";
                                } else {
                                    $mysql = "select distinct wk.freptempl,e2.femplname as freptname
                                        from workentry wk
                                        left join maswork_type wt on wk.fworktype = wt.fworktype
                                        left join masempl em on wk.femplcode = em.femplcode and em.frepthead = '$empl_id' 
                                        left join masempl e2 on wk.freptempl = e2.femplcode
                                        where ifnull(wk.fdelestat,'F')='F' and wk.fworkdate>'2020-11-30'
                                        order by freptname";
                                }
                                $myres = mysqli_query($mycon, $mysql);
                                echo "<select class='form-input' id='selreptempl'  onChange='load_grid_data(20,1);'>";
                                if (mysqli_num_rows($myres) > 1) {
                                    echo "<option value=%>ALL [REVIEWERS]</option>";
                                }
                                while ($myrow = mysqli_fetch_assoc($myres)) {
                                    echo "<option value='$myrow[freptempl]'>$myrow[freptname] [$myrow[freptempl]] [REVIEWER]</option>";
                                }
                                echo "</select>";
                                ?>
                            </td>
                            <td style="width:16%;">
                                <?php
                                if ($type_id == 'ADMIN') {
                                    $mysql = "select distinct femplname,wk.femplcode,em.fdeptcode 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,em.fdeptcode from workentry wk
                                    inner join masempl em on wk.femplcode = em.femplcode and em.frepthead = '$empl_id' and em.femplstat='T'
                                    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] [$myrow[femplcode]] [$myrow[fdeptcode]]</option>";
                                }
                                echo "</select>";
                                ?>
                            </td>
                            <td style="width: 16%">
                                <?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:16%;">
                                <select class="form-input" id="selworkstat" onChange="load_grid_data(20,1);" style="width:100%;">
                                    <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:16%;">
                                <select class="form-input" id="selviewstat" onChange="load_grid_data(20,1);" style="width:100%;">
                                    <option value="PENDING">PENDING [REVIEW STATUS]</option>
                                    <option value="REVIEWED">REVIEWED [REVIEW STATUS]</option>
                                    <option value="%">ALL [REVIEW STATUS]</option>
                                </select>
                            </td>

                            <td style="width:20%;">
                                <input type="text" id="txtworkfind" class="form-input" onInput="load_grid_data(20,1);" placeholder="Search work entry">
                            </td>
                        </tr>
                    </table>
                </div>

                <div id="page-container-grid"></div>

                <div id="page-container-form" class="form-horizontal">
                    <div id="lblpagemode" class="page_mode"></div>
                    <input type="hidden" id="txtpagemode" readonly="readonly" />
                    <input type="hidden" id="txtworkcode" style="text-align:center; width:auto;" />

                    <div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
                        <div class="panel-heading"> Work Details <span id="work_entr_date"></span></div>
                        <div class="panel-body" style="position: relative;">
                            <div class="form-group">
                                <label for="" class="col-sm-2 control-label">Empl Name</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" id="txtemplname" readonly="readonly" placeholder="Employee Name" />
                                </div>

                                <label for="" class="col-sm-2 control-label">Designation</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" id="txtdesnname" readonly="readonly" placeholder="Designation" />
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="" class="col-sm-2 control-label">Work Date</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control text-center text-uppercase" id="txtworkdate" readonly="readonly" maxlength="10" placeholder="DD/MM/YYYY" />
                                </div>

                                <label for="" class="col-sm-4 control-label">Work Type</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" id="txttypedesc" readonly="readonly" placeholder="Work Type" />
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="" class="col-sm-2 control-label">Work Title</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="txtworkname" readonly="readonly" maxlength="100" placeholder="Work Title" />
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="" class="col-sm-2 control-label">Work Details</label>
                                <div class="col-sm-10">
                                    <textarea id="txtworkdetl" class="form-control" readonly="readonly" wrap="hard" style="resize: none;"></textarea>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="" class="col-sm-2 control-label">Place of work</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" id="txtworkplce" readonly="readonly" placeholder="Work Place" />
                                </div>
                                <label for="" class="col-sm-2 control-label">Client Name</label>
                                <div class="col-sm-6">
                                    <input type="text" class="form-control" id="txtclntname" readonly="readonly" placeholder="Work Place" />
                                </div>
                            </div>


                            <div class="form-group">
                                <label for="" class="col-sm-2 control-label">Work Remarks</label>
                                <div class="col-sm-10">
                                    <textarea id="txtworkremk" class="form-control" readonly="readonly" rows="1" wrap="hard" style="resize: none;"></textarea>
                                </div>
                            </div>
                        </div>
                    </div>



                    <div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
                        <div class="panel-heading">Review Details <span class="pull-right" id="txtviewtime"></span></div>
                        <div class="panel-body" style="position: relative;">
                            <div class="form-group">
                                <label for="" class="col-sm-2 control-label">Work Status</label>
                                <div class="col-sm-3">
                                    <select id="txtworkstat" class="form-control" onChange="show_view_remarks()">
                                        <option value="PENDING">PENDING</option>
                                        <option value="COMPLETED">COMPLETED</option>
                                        <option value="INCOMPLETE">INCOMPLETE WORK</option>
                                        <option value="INVALID">INVALID ENTRY</option>
                                    </select>
                                </div>

                                <label for="" class="col-sm-2 control-label">Review Status</label>
                                <div class="col-sm-3">
                                    <select id="txtviewstat" class="form-control" disabled>
                                        <option value="PENDING">PENDING</option>
                                        <option value="REVIEWED">REVIEWED</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="" class="col-sm-2 control-label">Suggestions (if any)</label>
                                <div class="col-sm-8">
                                    <textarea id="txtviewdetl" class="form-control" rows="1" wrap="hard" style="resize: none;"></textarea>
                                </div>
                                <div class="col-sm-2">
                                    <input type='button' id="btnsavenext" class='btn btn-primary' onClick='save_data_next_disp();' Value='Review & Next'>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

</html>