Ejemplo n.º 1
0
<?php

require_once 'config.php';
require_once 'class/rating.php';
$save_manager_work = new rating();
//echo "<pre>";print_r($_POST);exit('priyesh');
$record = $save_manager_work->decline($_GET["id"]);
if ($record == true) {
    header('Location: manager_work_list_page.php');
}
Ejemplo n.º 2
0
<?php

require_once 'config.php';
require_once 'class/rating.php';
require_once 'functions/functions.php';
$renderObj = new rating();
$page_number = (int) (!isset($_GET['page']) ? 1 : $_GET['page']);
$user_id = $_SESSION['userinfo']->id != '' ? $_SESSION['userinfo']->id : 0;
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $comment_key = "comment_" . $_POST['ptr'];
    $_POST['comment'] = $_POST[$comment_key];
    if ($_POST['status'] == 0) {
        $record = $renderObj->decline($_POST);
        $chk = 17;
    } else {
        if ($_POST['status'] == 1) {
            $record = $renderObj->save_emp_rating($_POST);
            $chk = 16;
        }
    }
}
$pending_requests = $renderObj->get_team_member_requests($user_id);
require_once 'header.php';
?>
<script type="text/javascript">
    $(document).ready(function(){
	$("a.red-btn-request").addClass("red-btn-active");
	$('.request-accordian-bot').click(function(){
            $(this).parent().find('.request-accordian-top').slideToggle(600);
            $(this).parent().find('.accordian-arrow').toggleClass('accordian-arrow-down');
	});