[Logicampus-cvs] logicampus/src/logicreate/services/gradebook entry.lcp, 1.12, 1.13
Brought to you by:
trilexcom
From: Mark K <har...@us...> - 2007-10-08 18:13:02
|
Update of /cvsroot/logicampus/logicampus/src/logicreate/services/gradebook In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv25422 Modified Files: entry.lcp Log Message: Update error message display. Index: entry.lcp =================================================================== RCS file: /cvsroot/logicampus/logicampus/src/logicreate/services/gradebook/entry.lcp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** entry.lcp 8 Oct 2007 17:02:14 -0000 1.12 --- entry.lcp 8 Oct 2007 18:12:58 -0000 1.13 *************** *** 18,22 **** var $presentor='htmlPresentation'; ! var $permissionError = '<h3>Permission Error</h3> Either the entry you were trying to access is not a valid entry or you do not have access to edit that --- 18,23 ---- var $presentor='htmlPresentation'; ! var $permissionErrorTitle = '<h3>Permission Error</h3>'; ! var $permissionError = ' Either the entry you were trying to access is not a valid entry or you do not have access to edit that *************** *** 148,157 **** } ! function editRun(&$db, &$u, &$lc, &$t) ! { ! $this->sectionTitle = 'Edit Entry'; $lc->templateName='entry_add'; - //auto-comment $lc->templateStyle = 'private'; $gbEntry = ClassGradebookEntries::load( array( 'id_class_gradebook_entries' => (int)$lc->getvars['id'], --- 149,160 ---- } ! /** ! * Show a form for editing. ! * ! * Load all activities and tests from the chosen class. ! */ ! function editRun(&$db, &$u, &$lc, &$t) { $this->sectionTitle = 'Edit Entry'; $lc->templateName='entry_add'; $gbEntry = ClassGradebookEntries::load( array( 'id_class_gradebook_entries' => (int)$lc->getvars['id'], *************** *** 167,175 **** # let's load up the error page. $lc->templateName = 'entry_error'; ! $t['msg'] = $this->permissionError; return; } } function updateRun(&$db, &$u, &$lc, &$t) { --- 170,184 ---- # let's load up the error page. $lc->templateName = 'entry_error'; ! $t['error'] = $this->permissionError; ! $t['errorTitle'] = $this->permissionErrorTitle; return; } } + /** + * Save changes to the entry. + * + * Allow for redirects to various other parts of the system. + */ function updateRun(&$db, &$u, &$lc, &$t) { |