本文整理汇总了PHP中rating::save_emp_rating方法的典型用法代码示例。如果您正苦于以下问题:PHP rating::save_emp_rating方法的具体用法?PHP rating::save_emp_rating怎么用?PHP rating::save_emp_rating使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rating
的用法示例。
在下文中一共展示了rating::save_emp_rating方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rating
<?php
require_once 'config.php';
require_once 'class/rating.php';
$save_manager_work = new rating();
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
//echo "<pre>";print_r($_POST);exit('innnn');
$record = $save_manager_work->save_emp_rating($_POST);
if ($record == true) {
$current_page_name = basename($_SERVER['PHP_SELF']);
//echo $current_page_name;exit('exit');
if ($_POST['save'] == 'Finalize' || $_POST['save'] == 'Submit') {
header('Location: work_list_tab2.php?chk=12');
} else {
if ($_POST['save'] == 'Save') {
header('Location: work_list_tab2.php?chk=13');
}
}
}
}
示例2: rating
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');
});
$('.logo-rht-txt').mouseover(function(){