Adsense
Popular Posts
- jQuery autocomplete scroll bar for dropdown menu
- JavaScript Arrays and Associate Arrays
- mod_auth_cas.so error: undefined symbol: SSL_connect
- Design date and signature box in Latex
- Install APXS in Redhat Linux
- JavaScript, remove trailing insignificant zeros after toFixed function
- jQuery, toggle the display
- Difference between state and props in React
- Set Windows path command line
- super(props) in React
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