Adsense
Popular Posts
- MySQL workbench -"Could not decrypt password cache"
- peer review (3)
- PHP, dump varailbes in a format way
- "Unusual traffic from your computer network" from blogger
- Install APXS in Redhat Linux
- JavaScript, remove trailing insignificant zeros after toFixed function
- Update member directory
- Set Windows path command line
- JavaScript: add days to current date
- DataTable table order by numeric, not by text
Monday, October 28, 2013
Peer Review (9) Peer review for chair session
http://localhost/education/peer_review/index.php
Add a special link for peer review committee chair.
line 26 add:
$chair_page ='<li>Manage Peer Reviews for Chair
<ul> <li><a href="chair_manage_members.php">Manage committee members and voting methods</a></li>
<li><a href="chair_manage_modules.php">View reviews and approve modules</a></li>
</ul>
</li>';
line 31 change
$page_content .= '<ol>
to
$page_content .= '<ol>'.$chair_page.'
Copy http://localhost/admin/edu/select_committee_members.php
to education/peer_review/chair_manage_members.php and modify
line 14
validate_cesei_access(STATUS_ADMIN);
change to line 25:
$access = validate_pr_access(false);
if($access!='chair') {
echo '<div id="system-message"><div id="error">
<h4>The following errors have occured:</h4>
<ul>
<li>only chair can access this page</li>
</ul>
</div></div>';
exit;
}
line 47 add (and C:\Users\jiansen\Desktop\CAS\jiansen_dir\www_cesei0_mobile\admin\edu\pr_manage.php, line 48)
foreach($modules['waiting_approval'] as $module1){
$sql_2 ="SELECT voting_method FROM cesei_review_done WHERE module_id=".$module1['module_id'];
$result_2 = mysql_query($sql_2, $db);
$voting_method =mysql_result($result_2, 0);
$module_voting[$module1['module_id']] = $voting_method;
}
$savant->assign('module_voting', $module_voting);
Copy http://localhost/admin/edu/pr_members_modules.php
to education/peer_review and modify as above
Copy http://localhost/admin/edu/pr_voting.php
to education/peer_review and modify as above
Copy /admin/edu/pr_manage.php
/education/peer_review/chair_manage_modules.php and modify
copy pr_admin_modules.tmpl.php to pr_chair_modules.tmpl.php
Copy /admin/edu/pr_read_reviews.php
/education/peer_review/pr_read_reviews.php
C:\Users\jiansen\Desktop\CAS\jiansen_dir\www_cesei0_mobile\_lib\peer_review_calls\complete_review_process.php
line 43 add
if($_POST['peer_review'] == 'yes'){
header('Location: /education/peer_review/chair_manage_modules.php?ss='.$_POST['ss']);
exit;
}
C:\Users\jiansen\Desktop\CAS\jiansen_dir\www_cesei0_mobile\_templates\pr_chair_modules.tmpl.php (C:\Users\jiansen\Desktop\CAS\jiansen_dir\www_cesei0_mobile\_templates\pr_admin_modules.tmpl.php, line 84)
line 81 add:
<?php
if($this->module_voting[$module['module_id']]==1) {echo "The voting method to approve the module is online. It is recommended that you use <a href='/education/peer_review/committee_meeting.php' target='_blank'> committee meeting room </a>to approve the module.";}
else {echo "Offline voting";}
?>
line 37 and 89 add
<input type="hidden" name="peer_review" value="yes" />
C:\Users\jiansen\Desktop\CAS\jiansen_dir\www_cesei0_mobile\_lib\peer_review_calls\move_to_approval.php
line 37 add:
if($_POST['peer_review'] == 'yes'){
header('Location: /education/peer_review/chair_manage_modules.php?ss=waiting');
exit;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment