</tr> <tr> <th>Gender :</th> <td><?php $gender = getuserdetails($userid, 'Gender'); echo $gender; ?> </td> </tr> <tr> <th>Recruitment Date :</th> <td><?php $recrdate = getuserdetails($userid, 'Recruitment_Date'); echo $recrdate; ?> </td> </tr> <tr> <th>Department :</th> <td><?php $depart = getdepartmentname(getdepartmentID($userid)); echo $depart; ?> </td> </tr> </table>
<li><b>Contact No:</b> <?php $contact = getuserdetails($result['Employees_ID'], "Contact_No"); echo $contact; ?> </li> <li><b>Email :</b> <?php $email = getuserdetails($result['Employees_ID'], 'Email'); echo $email; ?> <li><b>Gender :</b> <?php $gender = getuserdetails($result['Employees_ID'], 'Gender'); echo $gender; ?> <li><b>Department :</b> <?php $depart = getdepartmentname(getdepartmentID($result['Employees_ID'])); echo $depart; ?> </li> <?php $leave = getleaveamount($result['Employees_ID']); ?> <div class="progress"> <div class="progress-bar" role="progressbar" aria-valuenow="<?php $leavebar = round($leave / 14 * 100); echo $leavebar;
<ul class="nav navbar-nav navbar-right navbar-user"> <li class="dropdown user-dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src='<?php $file = "picture/" . $userid . ".jpg"; if (file_exists($file) == true) { $pict = $userid; } else { $pict = "no-pict"; } echo "picture/" . $pict . ".jpg"; ?> ' width="30px" height="30px" class="img-circle"> <?php echo getuserdetails($userid, "FullName"); ?> <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="profile.php"><i class="fa fa-user"></i> Profile</a></li> <li class="divider"></li> <li><a href="logout.php"><i class="fa fa-power-off"></i> Log Out</a></li> </ul> </li> </ul>
echo $exp; ?> Years </td> <td><b>Gender :</b> <?php $gender = getuserdetails($_GET['id'], 'Gender'); echo $gender; ?> </td> <td><b>Recruitment Date :</b> <?php $recrdate = getuserdetails($_GET['id'], 'Recruitment_Date'); echo $recrdate; ?> </td> </tr> <tr> <td><b>Department :</b> <?php $depart = getdepartmentname(getdepartmentID($_GET['id'])); echo $depart; ?> </td> </tr> </table> </div>
<table class="table"> <?php $query4 = mysql_query("SELECT * FROM login WHERE Employee_ID = '{$_GET['id']}'"); $username = mysql_result($query4, 0, 'UserName'); $password = mysql_result($query4, 0, 'Password'); echo '<form> <tr><td>Username:<input type="text" value="' . $username . '" readonly class="form-control"></td><td>Password:<input type="password" value="' . $password . '" readonly class="form-control"></td></tr></form>'; ?> </table> <?php $userid = $_GET['id']; if (getuserdetails($_GET['id'], "Privilege") == "supervisor") { include 'widget/leave-status.php'; echo '<br/><br/><br/><br/><br/><br/><br/><br/><br/>'; include 'widget/training-status.php'; } else { $userids = $_GET['id']; $userid = $_GET['id']; echo '<h2>Appraisals</h2>'; include 'widget/performances.php'; echo '<h2>Warning / Merit</h2>'; $query = mysql_query("SELECT * FROM assessment INNER JOIN employees_assessment ON assessment.assessment_ID = employees_assessment.assessment_ID WHERE \nemployees_assessment.Employees_ID = '{$userids}'"); while ($result = mysql_fetch_assoc($query)) { if ($result['Assessment_type'] == "warning") { echo '<div class="alert alert-danger"> Warning: '; } else { echo '<div class="alert alert-success"> Merit:';
function Footer() { $this->SetY(-15); $this->SetFont('Arial', '', 10); $this->Cell(0, 10, 'Printed On ' . date("d/m/Y") . ' By ' . getuserdetails($_SESSION['id'], "FullName") . '', 0, 0, 'R'); }
function getPendingPayments($vars) { require "includes/config.php"; $activitydetails = $_SESSION['activitydetails']; ?> <u>Payments To Return</u><br /> <?php $userid = $vars['uid']; $total_cost = 0; $user = getuserdetails($userid); $user_activities = mysql_query("SELECT * FROM `payment_bookings` WHERE `user_id` = {$userid} LIMIT 1"); $user_activities = mysql_fetch_object($user_activities); if (!$user_activities) { $user_activities = mysql_query("SELECT * FROM `activities_bookings` WHERE `user_id` = {$userid} LIMIT 1"); $user_activities = @mysql_fetch_object($user_activities); $user_activities->bookings = explode("|", $user_activities->bookings); if ($user_activities) { for ($i = 0; $i < $weekduration; $i++) { $activity_id = returnActivityBookedOnDay($i, $user_activities->bookings); $activity = $activitydetails[$activity_id]; if ($activity) { $total_cost = $total_cost + $activity->cost; if ($activity->cost > 0) { $activities[] = $activity_id; } } } } if ($total_cost > 0) { mysql_query("INSERT INTO `payment_bookings` (`user_id` ,`activities_remaining` ,`money_remaining`) VALUES ('{$userid}', '" . implode("|", $activities) . "', '{$total_cost}');"); } } else { $activities = explode("|", $user_activities->activities_remaining); $total_cost = $user_activities->money_remaining; } if (count($activities) > 0) { $cost_remaining = $total_cost; for ($i = 0; $i < count($activities); $i++) { $activity = $activitydetails[$activities[$i]]; if ($activity) { ?> <div id="subpayment_<?php print $activities[$i]; ?> "> <input id="subpaymentchk_<?php print $activities[$i]; ?> " type="checkbox" onchange="removePendingPayment('<?php print $activities[$i]; ?> ','<?php print $userid; ?> ');" /> <label style="width: 300px;" for="subpaymentchk_<?php print $activities[$i]; ?> ">£<?php if ($cost_remaining < $activity->cost && $cost_remaining > 0 && $activity->cost > 0) { print $cost_remaining . " left of £" . $activity->cost; } else { print $activity->cost; } ?> for <?php print $activity->name; ?> .</label><br /> </div> <?php $cost_remaining = $cost_remaining - $activity->cost; } } if ($cost_remaining > 0) { print "+ £" . "{$cost_remaining} additional.<br />"; } } if ($total_cost <= 0) { ?> <?php print $user->firstname; ?> is not required to make any payments at this time. <?php } else { ?> <div id="fullpaymentreturn_link" style="margin-top: 10px;"> <input id="paymentchk" type="checkbox" onchange="removePendingPayment('<?php print implode(":", $activities); ?> ','<?php print $userid; ?> ', true);" /> <label style="width: 300px;" for="paymentchk"><?php print $user->firstname; ?> has paid the full amount of £<?php print $total_cost; ?> .</label> </div> <br />Tick a box or enter an amount:<br /><br /> <label for="deductamount" style="width: 120px;">Amount Payed: £</label><input id="deductamount" name="deductamount" type="text" maxlength="3" size="3" /> <input name="deduct" onclick="deductPayment('<?php print $userid; ?> ');" type="button" value="Deduct From Total"/> <br /> <?php } }
echo 'selected'; } ?> >supervisor</option> <option value = "normal" <?php if ($Privilege == "normal") { echo 'selected'; } ?> >normal</option> </select> </td> </tr> <input type="hidden" name="employee_id" value="<?php echo getuserdetails($userid, 'Employees_ID'); ?> " > <label for ="submit"></label> <input type="submit" id="submit" Value="Confirm" class="form-control" name="confirm"> </form> </div> </div> </div> </div>
function getPendingPaperwork($vars) { ?> <u>Forms To Return</u><br /><br /> <?php $userid = $vars['uid']; $activitydetails = $_SESSION['activitydetails']; $user = getuserdetails($userid); $formdetails = mysql_query("SELECT * FROM `paperwork`"); $student_activities = mysql_query("SELECT * FROM `activities_bookings` WHERE `user_id` = {$userid} LIMIT 1"); if (mysql_num_rows($student_activities) > 0) { $student_activities = mysql_fetch_object($student_activities); $student_activities = explode("|", $student_activities->bookings); $formno = 0; ob_start(); ?> <div id="forms_placeholder"> <div class="paperworkreturnform" id="adminform"> <table border="0" cellspacing="0" cellpadding="0"> <tbody style="vertical-align: top;"> <?php while ($form = mysql_fetch_object($formdetails)) { ob_start(); ?> <tr> <td style="width: 200px;"><div style="margin-right: 10px;"><?php print $form->name; ?> :</div></td> <td> <?php $formno2 = 0; $user_paperwork = mysql_query("SELECT * FROM `paperwork_bookings` WHERE `user_id` = {$userid} AND `paperwork_id` = {$form->id} LIMIT 1"); $user_paperwork = mysql_fetch_object($user_paperwork); $activities_returned = explode("|", $user_paperwork->activities_returned); foreach ($student_activities as $activity_id) { $returned = FALSE; foreach ($activities_returned as $activity_id_returned) { if ($activity_id == $activity_id_returned) { $returned = TRUE; } } if (!$returned) { $activity_details = $activitydetails[$activity_id]; $formsneeded = explode("|", $activity_details->formsneeded); foreach ($formsneeded as $form_id_needed) { if ($form_id_needed == $form->id) { ?> <input id="form_<?php print $userid; ?> _<?php print $activity_id; ?> _<?php print $form->id; ?> " type="checkbox" onchange="removePendingForm('<?php print $userid; ?> ','<?php print $activity_id; ?> ', '<?php print $form->id; ?> ');" /><label for="form_<?php print $userid; ?> _<?php print $activity_id; ?> _<?php print $form->id; ?> "><?php print $activity_details->name; ?> </label> <br /><br /> <?php $formno++; $formno2++; } } } } ?> </td></tr> <?php $content = ob_get_clean(); if ($formno2 > 0) { print $content; } } ?> </tbody> </table> </div> </div> <?php $content = ob_get_clean(); if ($formno > 0) { print $content; } else { print "<div>{$user->firstname} has returned all their forms.</div>"; } } else { ?> <div><?php print $user->firstname; ?> has no forms to return.</div> <?php } }
<div class="container"> <br> <div class="row"> <?php $sellers = getsellers($_GET["book"]); // echo "<pre>"; // print_r($sellers); // echo "</pre>"; if ($sellers != false) { # code... foreach ($sellers as $value) { $userdetails = getuserdetails($value["userid"]); $userdetails = $userdetails[0]; ?> <div class="col m4 s6"> <div class="card"> <div class="card-image waves-effect waves-block waves-light"> <img class="activator" src="img/default.png"> </div> <div class="card-content"> <span class="card-title activator grey-text text-darken-4"><?php echo $userdetails["name"]; ?> <i class="material-icons right">more_vert</i></span> <p class="green-text">Price: <?php echo $value["price"]; ?> INR</p> <p class="green-text">Price :
<div class="container"> <div class="row" align="center"> <?php $data = getuserdetails($_GET["id"]); $payment = getpaymentdetails($_GET["id"], $_GET["book"]); ?> <h2>Payment To: <?php echo $data[0]["name"]; ?> </h2> <h2>Payment of: <?php $x = getbitcoinrate(); $x = $x->result[0]; $paisa = getbitcoinvalue($payment[0]["price"] * 100, $x->lowestAsk); echo $paisa; ?> BTC</h2> <h3>mjVWniBvYQv2qwhVbM7ccutFFPTvjixrtj</h3> <img src="img/qr.png" alt=""> </div> </div>
<div class="container"> <br> <h3>Hello there, <?php echo $_SESSION["user"]["name"]; ?> !</h3> <div class="row"> <div class="col s12 m6"> <h4>Notifications</h4> <ul class="collection"> <?php $res = getnotif(); if ($res != false) { foreach ($res as $value) { $userd = getuserdetails($value["senderid"]); $userd = $userd[0]; $bookd = getbookd($value["bookid"]); $bookd = $bookd[0]; ?> <li class="collection-item avatar"> <i class="material-icons circle">folder</i> <span class="title"><?php echo $userd["name"]; ?> </span> <p>wants to buy <?php echo $bookd["bookname"]; ?> <br> <button onclick="removenotif2(<?php
<th> Title </th> <th> Total Joined/quota </th> <th> Duration </th> <th> Trainer </th> <th>Status</th> </tr> <?php if (getuserdetails($userid, 'Privilege') == "supervisor") { $query = mysql_query("SELECT * \nFROM employees_training\nWHERE Employees_ID\nIN (\n\nSELECT Employees_ID\nFROM employees_department\nWHERE Department_ID\t\nIN (\n\nSELECT Department_ID\nFROM department\nWHERE Supervisor_ID = '{$userid}'\n)\n)\nAND Employees_ID\nIN (\n\nSELECT Employees_ID\nFROM employees\nWHERE Privilege = 'normal'\n)"); } else { $query = mysql_query("SELECT * \nFROM employees_training\nWHERE Employees_ID\nIN (\n\nSELECT Employees_ID\nFROM employees \nWHERE Privilege= 'supervisor'\n)"); } while ($result = mysql_fetch_assoc($query)) { $query2 = mysql_query("SELECT Approval,Supervisor_ID FROM training_track WHERE EmpTraining_ID = '{$result['EmpTraining_ID']}'"); if (mysql_num_rows($query2) == 0) { $approval = "<form action='approving-training.php' method='POST' ><input type='submit' name='approve' value='approve'><input type='submit' name='approve' value='not-approve'><input type='hidden' name ='id' value=" . $result['EmpTraining_ID'] . "></form>"; } else { if (mysql_result($query2, 0, "Approval") == "Approve") { $approval = "Approved"; } else { $approval = "Not Approve"; } }