[system] / trunk / wwmoodle / wwassignment4 / moodle / blocks / wwlink / config_instance.html Repository:
ViewVC logotype

View of /trunk/wwmoodle/wwassignment4/moodle/blocks/wwlink/config_instance.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5674 - (download) (as text) (annotate)
Thu May 22 14:36:25 2008 UTC (11 years, 9 months ago) by gage
File size: 1245 byte(s)
wwassignment4 is a version of "bridge1" which is compatible with moodle 1.9 and webwork 2.4.x

It adds a new assignment like activity called wwassignment.

It works but does not yet have much testing and has the potential that
the webwork and moodle databases might get out of sync.

The structure is similar enough that it might eventually be a good idea
to implement it as a new assignment type.

Bridge2 adds a question type to the moodle quiz.  It is requires a different
set of software

    1 <?php
    2     global $CFG;
    3     $lib = $CFG->dirroot . '/mod/wwassignment/locallib.php';
    4 ?>
    5 <table cellpadding="9" cellspacing="0" align="center">
    6     <?php if(!file_exists($lib)) { ?>
    7     <tr valign="top">
    8         <td align="center">
    9             <?php echo '<strong>'.get_string('config_wwassigment_mod_missing','block_wwlink').'</strong>'; ?>
   10         </td>
   11     </tr>
   12     <?php } else { ?>
   13     <tr valign="top">
   14 
   15         <td align="right">
   16             <?php print_string('config_select_webwork_course', 'block_wwlink'); ?>
   17         </td>
   18         <td align="center">
   19             <?php
   20                 require_once($lib);
   21                 $client = new wwassignment_client();
   22                 $options = $client->options_course(true);
   23                 choose_from_menu($options,'webwork_link_id',empty($this->config->webwork_link_id) ? 0 : $this->config->webwork_link_id);
   24                 global $COURSE;
   25                 $courseid = $COURSE->id;
   26             ?>
   27             <input type="hidden" name="courseid" value="<?php echo $courseid;?>" />
   28         </td>
   29     </tr>
   30     <tr>
   31         <td colspan="2" align="center">
   32             <input type="submit" value="<?php print_string('savechanges') ?>" />
   33         </td>
   34     </tr>
   35     <?php } ?>
   36 </table>

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9