Update of /cvsroot/aimmath/moodle/mod/math_assignment
In directory sc8-pr-cvs1:/tmp/cvs-serv31283/mod/math_assignment
Modified Files:
aimpage.php mod.html version.php
Log Message:
There now is a new option "focus" which determines whether the aim quiz is shown with single question per page or multiple questions per page.
Index: aimpage.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/math_assignment/aimpage.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** aimpage.php 20 Sep 2003 14:50:27 -0000 1.9
--- aimpage.php 20 Sep 2003 19:13:43 -0000 1.10
***************
*** 99,102 ****
--- 99,106 ----
$postdata = math_assignment_add_arg_to_url_data($postdata, "StudentID", $USER->username);
$postdata = math_assignment_add_arg_to_url_data($postdata, "Password", $server->student_passwd);
+ $postdata = math_assignment_add_arg_to_url_data($postdata, "FocusLabel", "1");
+ $postdata = math_assignment_add_arg_to_url_data($postdata, "OldFocusLabel", "");
+ $focus = ($math_assignment) ? "true" : "false";
+ $postdata = math_assignment_add_arg_to_url_data($postdata, "Focused", $focus);
}
}
Index: mod.html
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/math_assignment/mod.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** mod.html 19 Sep 2003 08:36:18 -0000 1.15
--- mod.html 20 Sep 2003 19:13:43 -0000 1.16
***************
*** 29,32 ****
--- 29,35 ----
$form->aimquiz = "";
}
+ if (!isset($form->aimfocus)) {
+ $form->aimfocus = 1;
+ }
if (!isset($form->papergrade)) {
$form->papergrade = 10;
***************
*** 75,78 ****
--- 78,82 ----
$straimsubject = get_string("aimsubject","math_assignment");
$straimquiz = get_string("aimquiz","math_assignment");
+ $straimstyle = get_string("aimstyle","math_assignment");
?>
***************
*** 226,231 ****
</td>
</tr>
- </td>
- </tr>
<?php
--- 230,233 ----
***************
*** 233,238 ****
?>
<tr valign="top">
! <td align="right"><p><b><?php echo $straimquiz; ?>:</b></p></td>
! <td>
<input type="text" name="aimquiz" size="40" maxlength="255" value="<?php p($form->aimquiz); ?>" />
<?php
--- 235,240 ----
?>
<tr valign="top">
! <td align="right"><p><b><?php echo $straimquiz; ?>:</b></p></td>
! <td>
<input type="text" name="aimquiz" size="40" maxlength="255" value="<?php p($form->aimquiz); ?>" />
<?php
***************
*** 241,245 ****
target=\"subject\">AiM administration</a>";
?>
! </td>
</tr>
<?php
--- 243,259 ----
target=\"subject\">AiM administration</a>";
?>
! </td>
! </tr>
! <tr>
! <td align="right"><p><b><?php echo $straimstyle; ?>:</b></p></td>
! <td>
! <input type="radio" name="focus" value="1" <?php p($form->focus ? "checked" : "") ?> />
! <?php p(get_string("singlequestion","math_assignment")) ?>
! <input type="radio" name="focus" value="0" <?php p($form->focus ? "" : "checked") ?> />
! <?php
! p(get_string("multiplequestion","math_assignment"));
! helpbutton("addupdate_style", $straimstyle, "math_assignment");
! ?>
! </td>
</tr>
<?php
Index: version.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/math_assignment/version.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** version.php 18 Sep 2003 23:57:57 -0000 1.4
--- version.php 20 Sep 2003 19:13:43 -0000 1.5
***************
*** 6,10 ****
/////////////////////////////////////////////////////////////////////////////////
! $module->version = 2003091900; // The (date) version of this module
$module->cron = 0; // How often should cron check this module (seconds)?
--- 6,10 ----
/////////////////////////////////////////////////////////////////////////////////
! $module->version = 2003092001; // The (date) version of this module
$module->cron = 0; // How often should cron check this module (seconds)?
|