whoami7 - Manager
:
/
home
/
gracious
/
hris.graciousphils.com
/
backup hris employee
/
Upload File:
files >> /home/gracious/hris.graciousphils.com/backup hris employee/myprofile.php
<?php session_start(); include('includes/config.php'); error_reporting(0); include('includes/config.php'); if(strlen($_SESSION['emplogin'])==0) { header('location:index.php'); } else{ ?> <!DOCTYPE html> <html> <head> <!-- Required meta tags --> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet"> <link rel="stylesheet" href="includes/assets/bootstrap.min.css"> <!-- Bootstrap CSS --> <style> body { margin: 0; font-family: Arial, sans-serif; } .sidebar { width: 250px; height: 100vh; transition: width 0.3s; } .sidebar-header { font-size: 1.5rem; font-weight: bold; } .nav-toggle { cursor: pointer; display: none; } .sidebar .nav-link { color: #333; text-decoration: none; transition: background 0.3s; } .sidebar .nav-link:hover { background: #f5deb3; } .profile img { width: 50px; height: 50px; } .nav-link.active, .nav-link.show, .nav-link:focus { background-color: #f5deb3 !important; /* Cream color */ color: #333 !important; /* Dark text color */ } @media (max-width: 768px) { .sidebar { width: 70px; } .sidebar .nav-toggle { display: block; } .sidebar .nav-link span { display: none; } .sidebar-header { display: none; } .profile { display: none; } } </style> </head> <body> <?php include('includes/sidebar.php');?> <div class="container-fluid" style="padding-top: 70px;"> <?php try { if (isset($_POST['editchild'])) { $childid = $_POST['childid']; $childname = $_POST['childname']; $childbirthdate = $_POST['childbirthdate']; $childgender = $_POST['childgender']; $sql = "SELECT * FROM tbl_dependents where id = :childid"; $query = $dbh -> prepare($sql); $query->bindParam(':childid',$childid,PDO::PARAM_STR); $query->execute(); if ($query->rowCount() > 0) { $sql = "UPDATE tbl_dependents set Dependents = :childname, Birthday = :childbirthdate, Gender = :childgender where id = :childid"; $query = $dbh -> prepare($sql); $query->bindParam(':childid',$childid,PDO::PARAM_STR); $query->bindParam(':childname',$childname,PDO::PARAM_STR); $query->bindParam(':childbirthdate',$childbirthdate,PDO::PARAM_STR); $query->bindParam(':childgender',$childgender,PDO::PARAM_STR); $query->execute(); if ($query->rowCount() > 0) { echo "<div class='alert alert-dismissible alert-success'> <button type='button' class='btn-close' data-bs-dismiss='alert'></button> <strong>Progeny Information successfully updated.</strong> </div>"; } else { echo "<div class='alert alert-dismissible alert-danger'> <button type='button' class='btn-close' data-bs-dismiss='alert'></button> <strong>Error in " . $e->getFile() . " on line " . $e->getLine() . ": " . $e->getMessage() . " contact HR Administrator</strong> </div>"; } } } } catch(PDOException $e) { echo "<div class='alert alert-dismissible alert-danger'> <button type='button' class='btn-close' data-bs-dismiss='alert'></button> <strong>Error in " . $e->getFile() . " on line " . $e->getLine() . ": " . $e->getMessage() . " contact HR Administrator</strong> </div>"; } ?> <?php try { if (isset($_POST['addinfo'])) { $employeecode = $_POST['employeecode']; $addchildname = $_POST['addchildname']; $addchildbirthdate = $_POST['addchildbirthdate']; $addchildgender = $_POST['addchildgender']; $employeeid = $_SESSION['eid']; $sql = "SELECT * FROM tbl_dependents where Dependents = :addchildname and empid = :employeecode"; $query = $dbh -> prepare($sql); $query->bindParam(':addchildname',$addchildname,PDO::PARAM_STR); $query->bindParam(':employeecode',$employeecode,PDO::PARAM_STR); $query->execute(); if ($query->rowCount() > 0) { echo "<div class='alert alert-dismissible alert-warning'> <button type='button' class='btn-close' data-bs-dismiss='alert'></button> <strong>Name is already on the list.</strong> </div>"; } else { $sql = "INSERT INTO tbl_dependents (empid, Dependents, Birthday, Gender, idcode) values (:employeecode, :addchildname, :addchildbirthdate, :addchildgender, :employeeid)"; $query = $dbh -> prepare($sql); $query->bindParam(':employeecode',$employeecode,PDO::PARAM_STR); $query->bindParam(':addchildname',$addchildname,PDO::PARAM_STR); $query->bindParam(':addchildbirthdate',$addchildbirthdate,PDO::PARAM_STR); $query->bindParam(':addchildgender',$addchildgender,PDO::PARAM_STR); $query->bindParam(':employeeid',$employeeid,PDO::PARAM_STR); $query->execute(); if ($query->rowCount() > 0) { echo "<div class='alert alert-dismissible alert-success'> <button type='button' class='btn-close' data-bs-dismiss='alert'></button> <strong>Progeny successfully added</strong> </div>"; } else { echo "<div class='alert alert-dismissible alert-danger'> <button type='button' class='btn-close' data-bs-dismiss='alert'></button> <strong>Error in " . $e->getFile() . " on line " . $e->getLine() . ": " . $e->getMessage() . " contact HR Administrator</strong> </div>"; } } } } catch(PDOException $e) { echo "<div class='alert alert-dismissible alert-danger'> <button type='button' class='btn-close' data-bs-dismiss='alert'></button> <strong>Error in " . $e->getFile() . " on line " . $e->getLine() . ": " . $e->getMessage() . " contact HR Administrator</strong> </div>"; } ?> <div class="row"> <div class="d-flex"> <div class="col-md-2"> <div class="sidebar bg-white border-primary border-end" id="sidebar"> <div class="sidebar-header text-center py-4 text-white bg-primary"> </div> <div class="nav-toggle text-center d-lg-none py-2"> <i class="fas fa-bars"></i> </div> <ul class="nav nav-pills flex-column" id="myTab" role="tablist"> <li class="nav-item"> <a class="nav-link" id="profile-tab" data-bs-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="true"> <i class="me-3"><img src="https://img.icons8.com/stickers/30/gender-neutral-user.png" alt="gender-neutral-user"/></i><span>Personal Profile</span> </a> </li> <li class="nav-item"> <a class="nav-link" id="companyprofile-tab" data-bs-toggle="tab" href="#companyprofile" role="tab" aria-controls="companyprofile" aria-selected="false"> <i class="me-3"><img src="https://img.icons8.com/stickers/30/client-company.png" alt="client-company"/></i><span>Company Profile</span> </a> </li> <li class="nav-item"> <a class="nav-link" id="government-tab" data-bs-toggle="tab" href="#government" role="tab" aria-controls="government" aria-selected="false"> <i class="me-3"><img src="https://img.icons8.com/stickers/30/embassy.png" alt="embassy"/></i><span>Government Id's</span> </a> </li> <li class="nav-item"> <a class="nav-link" id="family-tab" data-bs-toggle="tab" href="#family" role="tab" aria-controls="family" aria-selected="false"> <i class="me-3"><img src="https://img.icons8.com/stickers/30/family.png" alt="family"/></i><span>Family Information</span> </a> </li> <li class="nav-item"> <a class="nav-link" id="children-tab" data-bs-toggle="tab" href="#children" role="tab" aria-controls="children" aria-selected="false"> <i class="me-3"><img src="https://img.icons8.com/stickers/30/baby-footprints-path.png" alt="baby-footprints-path"/></i><span>Progeny Information</span> </a> </li> <li class="nav-item"> <a class="nav-link" id="contact-tab" data-bs-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false"> <i class="me-3"><img src="https://img.icons8.com/stickers/30/about-us-male.png" alt="about-us-male"/></i><span>Contact Person</span> </a> </li> <li class="nav-item"> <a class="nav-link" id="education-tab" data-bs-toggle="tab" href="#education" role="tab" aria-controls="education" aria-selected="false"> <i class="me-3"><img src="https://img.icons8.com/stickers/30/books-1.png" alt="books-1"/></i><span>Education</span> </a> </li> <li class="nav-item"> <a class="nav-link" id="seminars-tab" data-bs-toggle="tab" href="#seminars" role="tab" aria-controls="seminars" aria-selected="false"> <i class="me-3"><img src="https://img.icons8.com/stickers/30/training.png" alt="training"/></i><span>Seminars</span> </a> </li> <li class="nav-item"> <a class="nav-link" id="trainings-tab" data-bs-toggle="tab" href="#trainings" role="tab" aria-controls="trainings" aria-selected="false"> <i class="me-3"><img src="https://img.icons8.com/stickers/30/class.png" alt="class"/></i><span>Trainings</span> </a> </li> <li class="nav-item"> <a class="nav-link" id="assignment-tab" data-bs-toggle="tab" href="#assignment" role="tab" aria-controls="assignment" aria-selected="false"> <i class="me-3"><img src="https://img.icons8.com/stickers/30/task.png" alt="task"/></i><span>Assignment Info</span> </a> </li> </ul> </div> </div> <div class="col-md-10"> <div class="content flex-grow-1 tab-content" id="myTabContent"> <div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab"> <div class="row"> <div class="col-md-2"> <div class="card border-primary"> <div class="card-header text-white bg-primary"> <?php if ($result->Status == 1) {?> <span class="badge rounded-pill bg-success">Active Employee</span> <?php }else if ($result->Status == 2) { ?> <span class="badge rounded-pill bg-warning">Rendering</span> <?php }else if ($result->Status == 3) { ?> <span class="badge rounded-pill bg-secondary">For Dismissal</span> <?php }else if ($result->Status == 0) { ?> <span class="badge rounded-pill bg-danger">Inactive</span> <?php }?> </div> <div class="card-body bg-dark" > <div class="row"> <?php if ($result->PostImage == '') { ?> <div class="col-md-12"> <img src="image/default.jpg" class="img-thumbnail" style="height:100%; width:100%; "> </div> <?php } else { ?> <div class="col-md-12"> <img src="image/<?php echo htmlentities($result->PostImage)?>" class="img-thumbnail" style="height:100%; width:100%; "> </div> <?php } ?> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> <div class="col-md-5"> <div class="card mb-3 bg-dark border-primary"> <div class="card-header text-white bg-primary mb-3"> <b>Personal Information</b><img src="https://img.icons8.com/stickers/40/gender-neutral-user.png" alt="gender-neutral-user"/ style="float: right;"> </div> <div class="card-body mb-3" > <div class="row"> <div class="col-md-6"> <label for = "firstName" class="form-label text-white"> Nickname</label> <input type="text" id="nickname" name="nickname" class="form-control bg-white text-black border-primary " value="<?php echo utf8_decode($result->NickName)?>" readonly> </div> <div class="col-md-6"> <label for = "firstName" class="form-label text-white">Full Name</label> <input type="text" id="firstName" name="firstName" class="form-control bg-white text-black border-primary " value="<?php echo utf8_decode($result->LastName . ", " . $result->FirstName . " " . $result->MiddleName . " " . $result->Suffix)?>" readonly> </div> <div class="col-md-4"> <label for="dob" class="form-label text-white">Birthdate</label> <input class="form-control bg-white text-black border-primary" id="dob" name="dob" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="date" value="<?php echo htmlentities($result->Dob)?>" readonly> </div> <div class="col-md-4"> <label for = "gender" class="form-label text-white">Gender</label> <input type="text" id="gender" name="gender" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Gender)?>"readonly> </div> <div class="col-md-4"> <label for = "civilstats" class="form-label text-white">Civil Status</label> <input type="text" id="civilstats" name="civilstats" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->CivilStatus)?>"readonly> </div> <div class="col-md-4"> <label for = "height" class="form-label text-white">Height</label> <input type="text" id="height" name="height" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Height) . ' ' . "cm"?>"readonly> </div> <div class="col-md-4"> <label for = "weight" class="form-label text-white">Weight</label> <input type="text" id="weight" name="weight" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Weight) . ' ' . "kg"?>"readonly> </div> <div class="col-md-4"> <label for = "religion" class="form-label text-white">Religion</label> <input type="text" id="religion" name="religion" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Religion)?>"readonly> </div> <div class="col-md-6"> <label for = "phone" class="form-label text-white">Phone Number</label><br> <input type="text" id="phone" name="phone" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Phonenumber)?>"readonly> </div> <div class="col-md-6"> <label for = "phone2" class="form-label text-white">Phone Number 2</label><br> <input type="text" id="phone2" name="phone2" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Second_Number)?>"readonly> </div> <div class="col-md-12"> <label for = "address" class="form-label text-white">Present Address</label> <input type="text" id="address" name="address" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Address)?>"readonly> </div> <div class="col-md-12"> <label for = "address2" class="form-label text-white">Permanent Address</label> <input type="text" id="address2" name="address2" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Second_Address)?>"readonly> </div> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> <div class="col-md-3"> <div class="card border-primary"> <div class="card-header text-white bg-primary"> My Signature </div> <div class="card-body bg-white"> <?php $eid = $_SESSION['empid']; $sql = "SELECT * FROM tblemployees where Empid = :eid"; $query = $dbh -> prepare($sql); $query->bindParam(':eid',$eid,PDO::PARAM_STR); $query->execute(); $results=$query->fetchAll(PDO::FETCH_OBJ); $cnt=1; if($query->rowCount() > 0) { foreach($results as $result) { ?> <img src="signatureupload/<?php echo htmlentities($result->My_Signature);?>" class="img-responsive" style="height: 100%; width: 100%;"><br> <?php }} ?> </div> <div class="card-footer bg-primary"> </div> </div> <div class="card border-primary mt-2"> <div class="card-header text-white bg-primary"> Other Information </div> <div class="card-body bg-dark text-white"> <b>Email:</b> <br> <?php echo htmlentities($result->EmailId)?> <br> <b>Position:</b> <br> <?php echo htmlentities($result->Position)?> <br> <b>Employment Status:</b> <br> <?php echo htmlentities($result->Natureofemployment)?> </div> <div class="card-footer bg-primary"> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="companyprofile" role="tabpanel" aria-labelledby="company-tab"> <div class="row"> <div class="col-md-4"> <?php if ($result->Company == 'Gracious Group Lending Philippines Corp.') { ?> <div class="col-md-12"> <img src="hradmin/formslogo/graciouslogo1.png" class="img-thumbnail border-primary" style="height:100%; width:100%; "> </div> <?php } elseif ($result->Company == 'Faithful Servant Business Holdings Corp.') { ?> <div class="col-md-12"> <img src="hradmin/formslogo/faithfullogo.jpg" class="img-thumbnail border-primary" style="height:100%; width:100%; "> </div> <?php } elseif ($result->Company == 'Fast Cash Business Credit Line Corp.') { ?> <div class="col-md-12"> <img src="hradmin/formslogo/fastcash.jpg" class="img-thumbnail border-primary" style="height:100%; width:100%; "> </div> <?php }elseif ($result->Company == 'Laba Me Laundrette Services') { ?> <div class="col-md-12"> <img src="hradmin/formslogo/labame.jpg" class="img-thumbnail border-primary" style="height:100%; width:100%; "> </div> <?php }elseif ($result->Company == 'Koinonia Realty Corp.') { ?> <div class="col-md-12"> <img src="hradmin/formslogo/mycabin.jpg" class="img-thumbnail border-primary" style="height:100%; width:100%; "> </div> <?php } ?> </div> <div class="col-md-5"> <div class="card border-primary"> <div class="card-header text-white bg-primary"> <b>Company Information</b><img src="https://img.icons8.com/stickers/40/client-company.png" alt="client-company"/ style="float:right;"> </div> <div class="card-body bg-dark text-white"> <div class="col-md-12"> <label for = "areanew" class="form-label text-lg">Company</label> <input type="text" id="areanew" name="areanew" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Company_Area)?>"readonly> </div> <div class="col-md-12"> <label for = "companynew" class="form-label text-lg">Main</label> <input type="text" id="companynew" name="companynew" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Company)?>"readonly> </div> <div class="col-md-12"> <label for = "deparmentnew" class="form-label text-lg">Department</label> <input type="text" id="deparmentnew" name="deparmentnew" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Department)?>"readonly> </div> <div class="col-md-12"> <label for = "naturenew" class="form-label text-lg">Nature of Employment</label> <input type="text" id="naturenew" name="naturenew" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Natureofemployment)?>"readonly> </div> <div class="col-md-12"> <label for = "positionnew" class="form-label text-lg">Current Position</label> <input type="text" id="positionnew" name="positionnew" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Position)?>"readonly> </div> <div class="col-md-12"> <label for = "stpdate" class="form-label text-lg">STP Date</label> <input type="text" id="stpdate" name="stpdate" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->DateofRegistration)?>"readonly> </div> <div class="col-md-12"> <label for = "datehired" class="form-label text-lg">Probationary Date</label> <input type="text" id="datehired" name="datehired" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Datehired)?>"readonly> </div> <div class="col-md-12"> <label for = "dateregistered" class="form-label text-lg">Regularization Date</label> <input type="text" id="dateregistered" name="dateregistered" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Dateregistered)?>"readonly> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="government" role="tabpanel" aria-labelledby="government-tab"> <div class="col-md-7"> <div class="card bg-dark border-primary text-white"> <div class="card-header text-white bg-primary"> <b>Government Identification Number</b><img src="https://img.icons8.com/stickers/40/embassy.png" alt="embassy"/ style="float:right;"> </div> <div class="card-body"> <div class="col-md-12"> <label for = "sss" class="form-label text-lg">SSS Number:</label> <input type="text" id="sss" name="sss" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->SSS)?>"readonly> </div> <div class="col-md-12"> <label for = "pagibig" class="form-label text-lg">Pagibig Number:</label> <input type="text" id="pagibig" name="pagibig" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Pagibig)?>"readonly> </div> <div class="col-md-12"> <label for = "Philhealth" class="form-label text-lg">Philhealth Number:</label> <input type="text" id="Philhealth" name="Philhealth" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Philhealth)?>"readonly> </div> <div class="col-md-12"> <label for = "tin" class="form-label text-lg">Tin:</label> <input type="text" id="tin" name="tin" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Tin)?>"readonly> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> </div> <div class="tab-pane fade" id="family" role="tabpanel" aria-labelledby="family-tab"> <div class="col-md-12"> <div class="row"> <div class="col-md-4"> <div class="card border-primary bg-dark text-white"> <div class="card-header bg-primary text-white"> Father Information <img src="https://img.icons8.com/stickers/40/person-male.png" alt="person-male"/ style="float:right;"> </div> <div class="card-body "> <div class="col-md-12"> <label for = "fathername" class="form-label">Father's Name</label> <input type="text" id="fathername" name="fathername" class="form-control bg-white text-black border-primary" value="<?php echo utf8_encode($result->FatherName)?>"readonly> </div> <div class="col-md-12"> <label for = "fbirthday" class="form-label">Birthdate</label> <input type="date" id="fbirthday" name="fbirthday" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->FBirthday)?>"readonly> </div> <div class="col-md-12"> <label for = "foccupation" class="form-label">Occupation</label> <input type="text" id="foccupation" name="foccupation" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->FOccupation)?>"readonly> </div> <div class="col-md-12"> <label for = "ftelnum" class="form-label">Phone Number</label> <input type="text" id="ftelnum" name="ftelnum" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->Ftelnum)?>"readonly> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> <div class="col-md-4"> <div class="card border-primary bg-dark text-white"> <div class="card-header bg-primary text-white"> Mother Information <img src="https://img.icons8.com/stickers/40/person-female.png" alt="person-female"/ style="float:right;"> </div> <div class="card-body "> <div class="col-md-12"> <label for = "mothername" class="form-label">Mother's Name</label> <input type="text" id="mothername" name="mothername" class="form-control bg-white text-black border-primary" value="<?php echo utf8_encode($result->MotherName)?>"readonly> </div> <div class="col-md-12"> <label for = "mbirthday" class="form-label">Birthdate</label> <input type="date" id="mbirthday" name="mbirthday" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->MBirthday)?>"readonly> </div> <div class="col-md-12"> <label for = "moccupation" class="form-label">Occupation</label> <input type="text" id="moccupation" name="moccupation" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->MOccupation)?>"readonly> </div> <div class="col-md-12"> <label for = "mtelnum" class="form-label">Phone Number</label> <input type="text" id="mtelnum" name="mtelnum" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->MTelnum)?>"readonly> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> <div class="col-md-4"> <div class="card border-primary bg-dark text-white"> <div class="card-header bg-primary text-white"> Spouse Information <img src="https://img.icons8.com/stickers/40/user-group-man-woman.png" alt="user-group-man-woman"/ style="float: right;"> </div> <div class="card-body "> <div class="col-md-12"> <label for = "spousename" class="form-label">Spouse Name</label> <input type="text" id="spousename" name="spousename" class="form-control bg-white text-black border-primary" value="<?php echo utf8_encode($result->SpouseName)?>"readonly> </div> <div class="col-md-12"> <label for = "sbirthday" class="form-label">Birthdate</label> <input type="text" id="sbirthday" name="sbirthday" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->SBirthday)?>"readonly> </div> <div class="col-md-12"> <label for = "stelnum" class="form-label">Phone Number</label> <input type="text" id="stelnum" name="stelnum" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->STelNum)?>"readonly> </div> <div class="col-md-12"> <label for = "soccupation" class="form-label">Occupation</label> <input type="text" id="soccupation" name="soccupation" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->SOccupation)?>"readonly> </div> <div class="col-md-12"> <label for = "scompany" class="form-label">Company</label> <input type="text" id="scompany" name="scompany" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($result->SCompany)?>"readonly> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="children" role="tabpanel" aria-labelledby="children-tab"> <div class="col-md-12"> <div class="row"> <div class="col-md-4"> <div class="card bg-dark border-primary"> <div class="card-header bg-primary text-white"> Add Child/Children <img src="https://img.icons8.com/stickers/30/add.png" alt="add"/ style="float:right;"> </div> <Form method="POST"> <div class="card-body"> <div> <input type ="hidden" name="employeecode" id="employeecode" value="<?php echo $_SESSION['empid']; ?>"> <div class="form-floating mb-3"> <input type="text" class="form-control bg-white text-black border-primary" id="addchildname" name="addchildname" placeholder="Progeny Name" required> <label for="addchildname">Progeny Name</label> </div> <div class="form-floating mb-3"> <input type="date" class="form-control bg-white text-black border-primary" id="addchildbirthdate" name="addchildbirthdate" placeholder="Birthdate" autocomplete="off" required> <label for="addchildbirthdate">Birthdate</label> </div> <div class="col-md-12"> <select class="form-select bg-white text-black border-primary" id="addchildgender" name="addchildgender" required> <option></option> <option value="Male">Male</option> <option value="Female">Female</option> </select> </div> </div> </div> <div class="card-footer bg-primary"> <div class="col-md-4"> <button type="submit" class="btn btn-transparent" name="addinfo" id="addinfo"><img src="https://img.icons8.com/stickers/40/xbox-cross.png" alt="xbox-cross"/></button> </div> </div> </Form> </div> </div> <div class="col-md-8"> <div class="card border-primary"> <div class="card-header bg-primary text-white"> Child/Children List <img src="https://img.icons8.com/stickers/30/baby-footprints-path.png" alt="baby-footprints-path"/ style="float:right;"> </div> <div class="card-body"> <table class="table table-striped"> <thead class="bg-success text-white"> <tr> <th>Child Name</th> <th>Birthdate</th> <th>Age</th> <th>Gender</th> <th>Edit/Update</th> </tr> </thead> <tbody> <?php $emps = $_SESSION['empid']; $sql = "SELECT * from tbl_dependents where empid = :emps"; $query = $dbh -> prepare($sql); $query->bindParam(':emps',$emps,PDO::PARAM_STR); $query->execute(); $results=$query->fetchAll(PDO::FETCH_OBJ); $cnt=1; if($query->rowCount() > 0) { foreach($results as $child) { ?> <tr> <td><?php echo htmlentities($child->Dependents); ?></td> <td><?php echo htmlentities($child->Birthday); ?></td> <?php $birthDate = $child->Birthday; $currentDate = date("d-m-Y"); $age = date_diff(date_create($birthDate), date_create($currentDate)); ?> <td><?php echo $age->format("%y"); ?></td> <td><?php echo $child->Gender; ?></td> <td> <button type="button" class="btn btn-transparent" data-bs-toggle="modal" data-bs-target="<?php echo '#childedit' . $child->id ?>"> <img src="https://img.icons8.com/stickers/30/create-new.png" alt="create-new"/> </button> </td> <div class="modal fade" id="<?php echo 'childedit' . $child->id; ?>" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <form method="POST"> <div class="modal-header bg-primary text-white"> <h5 class="modal-title text-white" id="staticBackdropLabel">Child Information </h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <input type="hidden" class="form-control" name="childid" id="childid"value=" <?php echo htmlentities($child->id);?>"> <div class="col-md-12"> <label for = "childname" class="form-label text-black">Child's Name</label> <input type="text" id="childname" name="childname" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($child->Dependents); ?>"> </div> <div class="col-md-12"> <label for = "childbirthdate" class="form-label text-black">Birthdate</label> <input type="date" id="childbirthdate" name="childbirthdate" class="form-control bg-white text-black border-primary" value="<?php echo htmlentities($child->Birthday); ?>"> </div> <div class="col-md-12"> <label for="childgender" class="form-label">Child's Gender</label> <select class="form-select bg-white text-black border-primary" id="childgender" name="childgender"> <option value="<?php echo htmlentities($child->Gender)?>"><?php echo htmlentities($child->Gender)?></option> <option value="Male">Male</option> <option value="Female">Female</option> </select> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary" name="editchild" id="editchild">Save Changes</button> </div> </form> </div> </div> </div> </tr> <?php }}?> </tbody> </table> </div> <div class="card-footer bg-primary"> </div> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="contact" role="tabpanel" aria-labelledby="contact-tab"> <div class="row"> <div class="col-md-4"> <div class="card bg-dark mb-3"> <div class="card-header text-white bg-primary mb-3"> <b>Contact Person in case of Emergency</b><img style="float:right;" src="https://img.icons8.com/stickers/30/about-us-male.png" alt="about-us-male"/> </div> <div class="card-body mb-3"> <div class="col-md-12"> <label for = "incasename" class="form-label text-white">Full Name</label> <input type="text" id="incasename" name="incasename" class="form-control bg-white border-primary" value="<?php echo utf8_encode($result->IncaseName)?>"readonly> </div> <div class="col-md-12"> <label for = "incasetelnum" class="form-label text-white">Contact Number</label> <input type="text" id="incasetelnum" name="incasetelnum" class="form-control bg-white border-primary" value="<?php echo htmlentities($result->IncaseTelNum)?>"readonly> </div> <div class="col-md-12"> <label for = "incaseaddress" class="form-label text-white">Address</label> <input type="text" id="incaseaddress" name="incaseaddress" class="form-control bg-white border-primary" value="<?php echo htmlentities($result->IncaseAddress)?>"readonly> </div> <div class="col-md-12"> <label for = "incaserelation" class="form-label text-white">Relationship</label> <input type="text" id="incaserelation" name="incaserelation" class="form-control bg-white border-primary" value="<?php echo htmlentities($result->IncaseRelation)?>"readonly> </div> </div> <div class="card-footer bg-primary"></div> </div> </div> </div> </div> <div class="tab-pane fade" id="education" role="tabpanel" aria-labelledby="education-tab"> <div class="row"> <div class="col-md-4"> <div class="card bg-dark border-primary"> <div class="card-header bg-primary text-white"> Primary Education <img src="https://img.icons8.com/stickers/30/books-1.png" alt="books-1"/ style="float:right;"> </div> <div class="card-body"> <div class="col-md-12"> <label class="form-label text-white">School Name</label> <input class="form-control" id="schoolname" name="schoolname" placeholder="School Name" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" value="<?php echo htmlentities($result->SchoolName)?>"readonly> </div> <br> <center><b style="color:white;">Year Attended</b></center> <div class="col-md-12"> <label class="form-label text-white">From</label> <input class="form-control" id="datefrom" name="datefrom" placeholder="Year Attended" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxlength="4" value="<?php echo htmlentities($result->DateAttendFrom)?>"readonly> </div> <div class="col-md-12"> <label class="form-label text-white">To</label> <input class="form-control" id="dateto" name="dateto" placeholder="Year Graduated" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxlength="4" value="<?php echo htmlentities($result->DateAttendTo)?>"readonly> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> <div class="col-md-4"> <div class="card bg-dark border-primary"> <div class="card-header bg-primary text-white"> Secondary Education <img src="https://img.icons8.com/stickers/30/books-1.png" alt="books-1"/ style="float:right;"> </div> <div class="card-body"> <div class="col-md-12"> <label class="form-label text-white">School Name</label> <input class="form-control" id="secschoolname" name="secschoolname" placeholder="School Name" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" value="<?php echo htmlentities($result->SecSchoolName)?>"readonly> </div> <br> <center><b style="color:white;">Year Attended</b></center> <div class="col-md-12 text-white"> <label class="form-label text-white">From</label> <input class="form-control" id="datefrom" name="datefrom" placeholder="Year Attended" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxlength="4" value="<?php echo htmlentities($result->SecDateAttendFrom)?>"readonly> </div> <div class="col-md-12 text-white"> <label class="form-label text-white">To</label> <input class="form-control" id="dateto" name="dateto" placeholder="Year Graduated" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxlength="4" value="<?php echo htmlentities($result->SecDateAttendTo)?>"readonly> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> <div class="col-md-4"> <div class="card bg-dark border-primary"> <div class="card-header bg-primary text-white"> Others <img src="https://img.icons8.com/stickers/30/books-1.png" alt="books-1"/ style="float:right;"> </div> <div class="card-body"> <div class="col-md-12"> <label class="form-label text-white">Other Education</label> <input class="form-control" id="otherschoolname" name="otherschoolname" placeholder="School Name" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" value="<?php echo htmlentities($result->OtherSchoolName)?>"readonly> </div> <div class="col-md-12"> <label class="form-label text-white">Degree</label> <input class="form-control" id="otherdegree" name="otherdegree" placeholder="Degree" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" value="<?php echo htmlentities($result->OtherDegree)?>"readonly> </div> <center><b style="color:white;">Year Attended</b></center> <div class="col-md-12"> <label class="form-label text-white">From</label> <input class="form-control" id="otherdatefrom" name="otherdatefrom" placeholder="Year Attended" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxlength="4" value="<?php echo htmlentities($result->OtherDateAttendFrom)?>"readonly> </div> <div class="col-md-12"> <label class="form-label text-white">To</label> <input class="form-control" id="otherdateto" name="otherdateto" placeholder="Year Graduated" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxlength="4" value="<?php echo htmlentities($result->OtherDateAttendTo)?>"readonly> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> <div class="col-md-4"> <div class="card bg-dark border-primary"> <div class="card-header bg-primary text-white"> Senior Highschool <img src="https://img.icons8.com/stickers/30/books-1.png" alt="books-1"/ style="float:right;"> </div> <div class="card-body"> <div class="col-md-12"> <label class="form-label text-white">Higher Secondary Education(Senior High)</label> <input class="form-control" id="secschoolname" name="secschoolname" placeholder="School Name" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" value="<?php echo htmlentities($result->HSecSchoolName)?>"readonly> </div> <div class="col-md-12"> <label class="form-label text-white">Strand</label> <input class="form-control" id="strand" name="strand" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" value="<?php echo htmlentities($result->Strand)?>"readonly> </div> <br> <center><b style="color:white;">Year Attended</b></center> <div class="col-md-12"> <label class="form-label text-white">From</label> <input class="form-control" id="datefrom" name="datefrom" placeholder="Year Attended" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxlength="4" value="<?php echo htmlentities($result->HSecDateAttendFrom)?>"readonly> </div> <div class="col-md-12"> <label class="form-label text-white">To</label> <input class="form-control" id="dateto" name="dateto" placeholder="Year Graduated" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxlength="4" value="<?php echo htmlentities($result->HSecDateAttendTo)?>"readonly> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> <div class="col-md-4"> <div class="card bg-dark border-primary"> <div class="card-header bg-primary text-white"> Tertiary <img src="https://img.icons8.com/stickers/30/books-1.png" alt="books-1"/ style="float:right;"> </div> <div class="card-body"> <div class="col-md-12"> <label class="form-label text-white">School Name</label> <input class="form-control" id="terschoolname" name="terschoolname" placeholder="School Name" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" value="<?php echo htmlentities($result->TerSchoolName)?>"readonly> </div> <div class="col-md-12"> <label class="form-label text-white">Degree</label> <input class="form-control" id="degree" name="degree" placeholder="Degree" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" value="<?php echo htmlentities($result->Degree)?>"readonly> </div> <br> <center><b style="color:white;">Year Attended</b></center> <div class="col-md-12"> <label class="form-label text-white">From</label> <input class="form-control" id="terdatefrom" name="terdatefrom" placeholder="Year Attended" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxlength="4" value="<?php echo htmlentities($result->TerDateAttendFrom)?>"readonly> </div> <div class="col-md-12"> <label class="form-label text-white">To</label> <input class="form-control" id="terdateto" name="terdateto" placeholder="Year Graduated" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxlength="4" value="<?php echo htmlentities($result->TerDateAttendTo)?>"readonly> </div> </div> <div class="card-footer bg-primary"> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="seminars" role="tabpanel" aria-labelledby="seminars-tab"> <div class="row"> <?php $emps = $_SESSION['empid']; $sql = "SELECT * from tbl_seminar where empid = :emps"; $query = $dbh->prepare($sql); $query->bindParam(':emps', $emps, PDO::PARAM_STR); $query->execute(); $results = $query->fetchAll(PDO::FETCH_OBJ); $cnt = 1; if($query->rowCount() > 0) { foreach($results as $seminarstaken) { $seminar_date = new DateTime($seminarstaken->Seminar_Date); $current_date = new DateTime(); $interval = $current_date->diff($seminar_date); $years_since_seminar = $interval->y; $days_since_seminar = $interval->days; ?> <div class="col-md-4"> <div class="card mb-3"> <h3 class="card-header bg-primary text-white"><?php echo htmlentities($seminarstaken->Seminar); ?></h3> <div class="card-body text-white bg-dark"> <h5 class="card-title"><?php echo htmlentities($seminarstaken->Seminar_Place); ?></h5> <h6 class="card-subtitle text-white"><?php echo htmlentities($seminarstaken->Seminar_Date) ?></h6> </div> <img src="seminar/<?php echo htmlentities($seminarstaken->Seminar_Docs); ?>" class="d-block user-select-none img-fluid" width="100%" height="200" aria-label="Placeholder: Image cap" role="img" data-bs-toggle="modal" data-bs-target="#seminarimagemodal" style="cursor:pointer;"> <div class="card-body bg-dark"> </div> <div class="card-footer text-white bg-primary"> <?php echo $years_since_seminar > 0 ? $years_since_seminar . ' years or ' : ''; echo $days_since_seminar . ' days ago taken'; ?> </div> </div> </div> <?php } } ?> </div> <!-- Modal --> <div class="modal fade" id="seminarimagemodal" tabindex="-1" aria-labelledby="seminarimagemodalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header bg-primary text-white"> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body bg-dark"> <img src="" id="seminarImage" class="img-fluid" alt="Large view"> </div> </div> </div> </div> <script> document.querySelectorAll('img[data-bs-toggle="modal"]').forEach(img => { img.addEventListener('click', function() { const src = this.src; document.getElementById('seminarImage').src = src; }); }); </script> </div> <div class="tab-pane fade" id="trainings" role="tabpanel" aria-labelledby="trainings-tab"> <div class="row"> <?php $emps = $_SESSION['empid']; $sql = "SELECT * from tbl_trainings where empid = :emps"; $query = $dbh -> prepare($sql); $query->bindParam(':emps',$emps,PDO::PARAM_STR); $query->execute(); $results=$query->fetchAll(PDO::FETCH_OBJ); $cnt=1; if($query->rowCount() > 0) { foreach($results as $trainingstaken) { $training_date = new DateTime($trainingstaken->DateFromTrain); $current_date = new DateTime(); $interval = $current_date->diff($training_date); $years_since_training = $interval->y; $days_since_training = $interval->days; ?> <div class="col-md-4"> <div class="card mb-3"> <h3 class="card-header bg-primary text-white"><?php echo htmlentities($trainingstaken->Training); ?></h3> <div class="card-body text-white bg-dark"> <h5 class="card-title"><?php echo htmlentities($trainingstaken->PlaceOfTraining); ?></h5> <h6 class="card-subtitle text-white"><?php echo htmlentities($trainingstaken->DateFromTrain) ?></h6> </div> <img src="trainings/<?php echo htmlentities($trainingstaken->Training_Docs); ?>" class="d-block user-select-none img-fluid" width="100%" height="200" aria-label="Placeholder: Image cap" role="img" data-bs-toggle="modal" data-bs-target="#trainingimagemodal" style="cursor:pointer;"> <div class="card-body bg-dark"> </div> <div class="card-footer text-white bg-primary"> <?php echo $years_since_training > 0 ? $years_since_training . ' years or ' : ''; echo $days_since_training . ' days ago taken'; ?> </div> </div> </div> <?php } } ?> </div> <!-- Modal --> <div class="modal fade" id="trainingimagemodal" tabindex="-1" aria-labelledby="trainingimagemodalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header bg-primary text-white"> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body bg-dark"> <img src="" id="trainingImage" class="img-fluid" alt="Large view"> </div> </div> </div> </div> <script> document.querySelectorAll('img[data-bs-toggle="modal"]').forEach(img => { img.addEventListener('click', function() { const src = this.src; document.getElementById('trainingImage').src = src; }); }); </script> </div> <div class="tab-pane fade" id="assignment" role="tabpanel" aria-labelledby="assignment-tab"> <div class ="row"> <?php $emps = $_SESSION['empid']; /*/ $sql = "SELECT rigodon_history.id, rigodon_history.empid, rigodon_history.past_company, rigodon_history.past_designation, rigodon_history.past_position, rigodon_history.past_department, rigodon_history.date_of_transfer, rigodon_history.past_nature, rigodon_history.Current_Status, rigodon_history.End_Of_Transfer, rigodon_history.Remarks, tblemployees.EmpId, tblemployees.PostImage, tblemployees.FirstName, tblemployees.MiddleName, tblemployees.LastName, tblemployees.Position, tblemployees.Department, tblemployees.Company, tblemployees.Status, tblemployees.Company_Area, tblemployees.Natureofemployment FROM rigodon_history, tblemployees WHERE rigodon_history.empid = :emps"; /*/ $sql = "SELECT * FROM rigodon_history where empid = :emps and Remarks = 'Transfer of Assignment' GROUP BY Current_Status desc"; $query = $dbh->prepare($sql); $query->bindParam(':emps',$emps,PDO::PARAM_STR); $query->execute(); $results=$query->fetchAll(PDO::FETCH_OBJ); if($query->rowCount() > 0) { foreach($results as $current) { ?> <div class ="col-md-6"> <div class="card"> <div class="card-header bg-primary text-white"> Assignment Information </div> <div class="card-body bg-dark"> <ul class="list-group mt-2"> <li class="list-group-item list-group-item-primary d-flex justify-content-between align-items-center" style="background-color: #55CBCD;"> <center><b>Current Assignment Information</b></center> <span><img src="https://img.icons8.com/stickers/36/information.png" alt="information"/></span> </li> <li class="list-group-item list-group-item-primary d-flex justify-content-between align-items-center"> <b>Main:</b> <?php echo htmlentities($current->past_company); ?> <span class="badge bg-primary rounded-pill"></span> </li> <li class="list-group-item list-group-item-primary d-flex justify-content-between align-items-center"> <b>Assignment Designati:</b> <?php echo htmlentities($current->past_designation); ?> <span class="badge bg-primary rounded-pill"></span> </li> <li class="list-group-item list-group-item-primary d-flex justify-content-between align-items-center"> <b>Department:</b> <?php echo htmlentities($current->past_department); ?> <span class="badge bg-primary rounded-pill"></span> </li> <li class="list-group-item list-group-item-primary d-flex justify-content-between align-items-center"> <b>Position:</b> <?php echo htmlentities($current->past_position); ?> <span class="badge bg-primary rounded-pill"></span> </li> <?php $today = date("Y-m-d"); ?> <li class="list-group-item list-group-item-primary d-flex justify-content-between align-items-center"> <b>Start Date:</b> <?php echo htmlentities(date("m/d/Y", strtotime($current->date_of_transfer))); ?> <span class="badge bg-primary rounded-pill"></span> </li> <li class="list-group-item list-group-item-primary d-flex justify-content-between align-items-center"> <b>Assignment Status:</b> <?php if ($current->Current_Status == 1) { ?> <span class="badge bg-success rounded-pill">Active</span> <?php }else{ ?> <span class="badge bg-danger rounded-pill">Inactive</span> <?php } ?> </li> </ul> </div> </div> </div> <?php } } ?> </div> </div> <div class="tab-pane fade" id="evaluation" role="tabpanel" aria-labelledby="evaluation-tab"> </div> </div> </div> </div> </div> <div class="col-md-3"> </div> </div> <script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/masking-input.js" data-autoinit="true"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script> <script> document.querySelector('.nav-toggle').addEventListener('click', function() { const sidebar = document.getElementById('sidebar'); sidebar.classList.toggle('collapsed'); if (sidebar.classList.contains('collapsed')) { sidebar.style.width = '250px'; document.querySelector('.content').style.marginLeft = '250px'; } else { sidebar.style.width = '70px'; document.querySelector('.content').style.marginLeft = '70px'; } }); </script> <script type="text/javascript"> document.onkeydown = function(e) { if(event.keyCode == 123) { return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'C'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'X'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'Y'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'Z'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'V'.charCodeAt(0)){ return false; } if (e.keyCode == 67 && e.shiftKey && (e.ctrlKey || e.metaKey)){ return false; } if (e.keyCode == 'J'.charCodeAt(0) && e.altKey && (e.ctrlKey || e.metaKey)){ return false; } if (e.keyCode == 'I'.charCodeAt(0) && e.altKey && (e.ctrlKey || e.metaKey)){ return false; } if ((e.keyCode == 'V'.charCodeAt(0) && e.metaKey) || (e.metaKey && e.altKey)){ return false; } if (e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'S'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'H'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'A'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'F'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'E'.charCodeAt(0)){ return false; } } if (document.addEventListener) { document.addEventListener('contextmenu', function(e) { e.preventDefault(); }, false); }else{ document.attachEvent('oncontextmenu', function() { window.event.returnValue = false; }); } </script> </body> </html> <?php }?>
Copyright ©2021 || Defacer Indonesia