本文整理匯總了PHP中rating::save_manager_work_rating方法的典型用法代碼示例。如果您正苦於以下問題:PHP rating::save_manager_work_rating方法的具體用法?PHP rating::save_manager_work_rating怎麽用?PHP rating::save_manager_work_rating使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類rating
的用法示例。
在下文中一共展示了rating::save_manager_work_rating方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: rating
<?php
require_once 'config.php';
require_once 'class/rating.php';
$save_manager_work_rating = new rating();
$user_role = $_SESSION['userinfo']->role_id;
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
//echo "<pre>".$user_role;print_r($_POST);die;
$record = $save_manager_work_rating->save_manager_work_rating($_POST);
if ($record == true) {
if ($user_role == '9') {
header('Location: work_list.php?chk=5');
} else {
header('Location: work_list_tab1.php?chk=5');
}
}
}
示例2: rating
<?php
require_once 'config.php';
require_once 'class/rating.php';
require_once 'functions/functions.php';
$ratingObj = new rating();
if (!empty($_REQUEST['pk'])) {
$edit_status = $ratingObj->edit_comment($_REQUEST);
if ($edit_status) {
echo "Comment updated successfully";
}
}
if (!empty($_POST['action']) && $_POST['action'] == "check_email") {
$email = $_POST['email'];
$record = $ratingObj->check_email($email);
if ($record['id'] == 1) {
echo 0;
} else {
echo 1;
}
}
if (!empty($_POST['action']) && $_POST['action'] == "tm_rating_request") {
$record = $ratingObj->save_manager_work_rating($_POST);
if ($record == true) {
echo '<div id="ajax_resp" class="succes-green"><div class="close-alert"></div>' . $errors[5] . '</div>';
} else {
echo '<div id="ajax_resp" class="error-red"><div class="close-alert"></div>' . $errors[20] . '</div>';
}
}