Index: openacs-4/packages/evaluation/catalog/evaluation.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/catalog/evaluation.en_US.ISO-8859-1.xml,v diff -u -r1.17 -r1.18 --- openacs-4/packages/evaluation/catalog/evaluation.en_US.ISO-8859-1.xml 7 Apr 2005 11:26:58 -0000 1.17 +++ openacs-4/packages/evaluation/catalog/evaluation.en_US.ISO-8859-1.xml 23 May 2005 14:19:28 -0000 1.18 @@ -1,5 +1,5 @@ - + 1 = Individual Add Assignment @@ -31,6 +31,51 @@ Audit info Audit Info Audit info for task + #>" onClick="history.go(-1)"> + </form> +</if> + +<if %evaluations_na:rowcount% gt 0> + <form action="evaluate-students-2" method+"post"> + @export_vars;noquote@ + <input type=hidden name=task_id value="%task_id%"> + <input type=hidden name=max_grade value="%max_grade%"> + <blockquote> + <table> + <multiple name="evaluations_na"> + <if %evaluations_na.rownum% odd><table bgcolor="#EAF2FF"></if><else><table bgcolor="white"></else> + <tr><th align="right">#evaluation.Name#</th><td>%evaluations_na.party_name%</td></tr> + <tr><th align="right">#evaluation.Grade#</th><td>%evaluations_na.grade% / %max_grade%</td></tr> + <tr><th align="right">#evaluation.Comments#</th><td>%evaluations_na.comment%</td></tr> + <tr><th align="right">#evaluation.Will_the_studens_be# <br /> #evaluation.lt_able_to_see_the_grade#</th><td>%evaluations_na.show_student%</td></tr> + </tr> + </table> + </multiple> + </table> + </blockquote> + <input type=submit value="<# Grade Students + #>" onClick="history.go(-1)"> + </form> +</if> +<if %evaluations_na:rowcount% gt 0> + <form action="evaluate-students-2" method+"post"> + @export_vars;noquote@ + <input type=hidden name=task_id value="%task_id%"> + <input type=hidden name=max_grade value="%max_grade%"> + <blockquote> + <table> + <multiple name="evaluations_na"> + <if %evaluations_na.rownum% odd> <table bgcolor="#EAF2FF"> </if> + <else><table bgcolor="white"></else> + <tr><th align="right">#evaluation.Name#</th><td>%evaluations_na.party_name%</td></tr> + <tr><th align="right">#evaluation.Grade#</th><td>%evaluations_na.grade% / %max_grade%</td></tr> + <tr><th align="right">#evaluation.Comments#</th><td>%evaluations_na.comment%</td></tr> + <tr><th align="right">#evaluation.Will_the_studens_be# <br /> #evaluation.lt_able_to_see_the_grade#</th><td>%evaluations_na.show_student%</td></tr> </tr> + </table> + </multiple> + </table> + </blockquote> + <input type=submit value="<# Grade Students Bad input Change Answer Click @@ -99,6 +144,25 @@ Grades Reports Grades Sheet Name Grades Sheets + #> %current_groups_plus_one%" size=20></td> +</tr> +<tr> + <input type=hidden name=task_id value="%task_id%"> + <input type=hidden name=evaluation_group_id value="%evaluation_group_id%"> + <blockquote> + <td></td> + <td> + <table> + <multiple name="students"> + <if %students.rownum% odd><tr class="list-odd"></if><else><tr class="list-even"></else> + <td>%students.rownum%.</td><td>%students.student_name%</td></tr> + </tr> + </multiple> + </table> + </td> + </tr> + <tr> + <td><input type=submit value="<# Create Group Group Members Group Name Group name @@ -238,7 +302,43 @@ The comments/edit reason is a string with no more than 4,000 characters. The edit reason must be less than 4000 characteras long The estimated time must be grather than 0 + The file extension of the file is "%file_extension" and it should be .CSV. Sorry, we can't process it" + } + } +} + +set page_title "<#_ Confirm Evaluation The file extension of the file is "%file_extension%" and it should be .CSV, we can't process it + The file is too large. (The maximun file size is %pretty_maxnbytes% bytes)" + return 0 + } + + set errors 0 + set errors_text "" + set counter 0 + set line_number 0 + + set file_handler [open $tmp_filename {RDWR}] + + while { ![eof $file_handler] } { + incr line_number + set one_line [gets $file_handler] + + # jump first two lines + if { $line_number <= 2 } { + continue + } + + # replace enters (<-|) with semicolons (;) + regsub -all {(,[\r\n])} $one_line "" clean_line + regsub -all {[\r\n]} $clean_line "" clean_line + + set evaluation [split $clean_line ","] + + if { $line_number == 3 } { + set max_grade [string trim [lindex $evaluation 1]] + if { ![ad_var_type_check_number_p $max_grade] } { + ad_return_error "<#_ Invalid Max Grade The file is too large. (The maximun file size is %pretty_maxnbytes% bytes) The file should have a pre-defined format so the system can parse it and obtain the information. If you want to use this functionallity you must follow the following steps: The grade most be a valid number: %wrong_grade% @@ -323,6 +423,9 @@ Weight of this %grade_name% over %grade_plural_name% Weight over 100% <br /> of the Course Weight over %grade_weight%% <br /> of %grade_plural_name% + Weight over %grade_weight%% of %grade_plural_name%"} + {html {size 5}} + {help_text "<#_ You can enter the weight over %grade_weight%% of %grade_plural_name% or you can enter the net value of it in the field below. Weight over %grade_weight%% of %grade_plural_name% Weight used in %grade_plural_name%: %category_weight%% (of 100% of $grade_plural_name) <br /> %grade_plural_name% represents %grade_weight%% of the 100% of the class @@ -348,6 +451,7 @@ You can see the csv files associated with the task by clicking on the "See grades sheets associated with this task" botton. You can upload a file associated to this task by using the browse button (optional) You can upload a file associated to this task by using the browse button and select the file from your computer (optional) + You can't leave the due date empty if the students have to submit their answers online. due es ($due_date y online es $online_p ) You must give an edit reason (%old_grade% --> %grade_wo_reason% Your answer has been submited successfully. Your total grade in this class is: