Adsense
Popular Posts
- Code update from PHP 7.4 to PHP 8.1 - PhpSpreadsheet
- MySQL workbench -"Could not decrypt password cache"
- Code update from PHP 7.4 to PHP 8.1 - Worksheet/Iterator.php
- Rendering HTML tags inside textarea
- axios handle blob type data
- Unix Utils and wget in Windows
- increase mysql query speed
- Setup vi syntax for PHP
- Get WAMP running on EC2
- EXCEL return to the next line in the same cell
Monday, November 4, 2013
Peer review (14) Add online option besides email for primary reviewer
http://localhost/admin/edu/pr_manage_new.php
add new review from email, or setup online primary review
Previously instructor can only view and reply in "Review submission" in Instructor resources
Now move this in peer review
C:\Users\jiansen\Desktop\CAS\jiansen_dir\www_cesei0_mobile\_templates\cesei_nav.tmpl.php
line 212 change
if (isset($_SESSION['review_committee'])){
to
if(($_SESSION['portal_status']['edu'] == STATUS_INSTRUCTOR)||(isset($_SESSION['review_committee']))) {
C:\Users\jiansen\Desktop\CAS\jiansen_dir\www_cesei0_mobile\education\peer_review\index.php
line 15 change
$access = validate_pr_access(false);
to
$access = validate_pr_access_new(false);
line 53 add
if($access == 'instructor') {
$page_content = '<p>Welcome to the CESEI module peer review area.<br />Below you will find the various peer review sections available to you.';
$page_content .= '<ol> <li><a href="reviews.php">My Modules In Review</a>
<br />Read my module reviews and reply.</li></ol>';
}
C:\Users\jiansen\Desktop\CAS\jiansen_dir\www_cesei0_mobile\_lib\peer_review_tools.inc.php
line 80 add
function validate_pr_access_new($guest_ok){
global $db;
if(!$_SESSION['member_id']){
header('Location: /no_access.php');
exit;
}
$sql = "SELECT is_chair FROM cesei_module_review_committee WHERE member_id=".$_SESSION['member_id'];
$result = mysql_query($sql, $db);
if($row = mysql_fetch_assoc($result)){
if($row['is_chair'] == 1){
return 'chair';
}else{
return 'member';
}
}
if(is_admin()){
return 'admin';
}
if(($_SESSION['portal_status']['edu'] == STATUS_INSTRUCTOR)) return 'instructor';
if(!$guest_ok){
if($_SESSION['review_committee'] == 'guest'){
header('Location: /education/peer_review/my_reviews.php');
exit;
}
}else{
if($_SESSION['review_committee'] == 'guest'){
return 'guest';
}
}
header('Location: /no_access.php');
exit;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment