2006-02-20 02:15:45 +00:00
|
|
|
<table width="100%">
|
|
|
|
<tr>
|
|
|
|
<td>
|
2006-03-22 08:07:26 +00:00
|
|
|
<?php echo get_string('fieldname', 'data');?>:</td><td><input style="width:300px;" type="text" name="name" id="name" value = "<?php echo($this->field->name); ?>" />
|
2006-02-20 02:15:45 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<?php echo get_string('fielddescription', 'data');?>:
|
|
|
|
</td>
|
|
|
|
<td>
|
2006-03-22 08:07:26 +00:00
|
|
|
<input style="width:300px;" type="text" name="description" id="description" value = "<?php echo ($this->field->description);?>" />
|
2006-02-20 02:15:45 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<?php echo get_string('fieldwidthsingleview', 'data');?>:
|
|
|
|
</td>
|
|
|
|
<td>
|
2006-03-22 08:07:26 +00:00
|
|
|
<input style="width:70px;" type="text" name="param1" id="param1" value = "<?php if (!empty($this->field->param1)) echo $this->field->param1; ?>" />
|
2006-02-20 02:15:45 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<?php echo get_string('fieldheightsingleview', 'data');?>:
|
|
|
|
</td>
|
|
|
|
<td>
|
2006-03-22 08:07:26 +00:00
|
|
|
<input style="width:70px;" type="text" name="param2" id="param2" value = "<?php if (!empty($this->field->param2)) echo $this->field->param2; ?>" />
|
2006-02-20 02:15:45 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2006-03-22 08:07:26 +00:00
|
|
|
<?php echo get_string('fieldwidthlistview', 'data');?>:</td><td><input style="width:70px;" type="text" name="param4" id="param4" value = "<?php if (!empty($this->field->param4)) echo $this->field->param4; ?>" />
|
2006-02-20 02:15:45 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<?php echo get_string('fieldheightlistview', 'data');?>:
|
|
|
|
</td>
|
|
|
|
<td>
|
2006-03-22 08:07:26 +00:00
|
|
|
<input style="width:70px;" type="text" name="param5" id="param5" value = "<?php if (!empty($this->field->param5)) echo $this->field->param5; ?>" />
|
2006-02-20 02:15:45 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<?php echo get_string('maxsize', 'data'); ?>:
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php
|
2006-03-22 08:07:26 +00:00
|
|
|
$course->maxbytes = get_field('course', 'maxbytes', 'id', $this->data->course);
|
2006-02-20 02:15:45 +00:00
|
|
|
$choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes);
|
2006-03-22 08:07:26 +00:00
|
|
|
choose_from_menu ($choices, "param3", $this->field->param3, "");
|
2006-02-20 02:15:45 +00:00
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
NEW MODULE FROM MOODLE.COM - DATABASE !
Finally, we have an early version good enough for everyone to
start banging on to help us polish it up and find bugs.
Please take a look and file bugs in the bug tracker under "Database module".
We urgently need
- new icons for existing field types
- testing on PostgreSQL install
Coming soon (?):
- Many more field types: calculation, checkbox, relation, date, datetime,
time, email, group, list, user, number, richtext
(Please let us know if you are interested in developing any of these)
- A way to save and restore "presets", which are field/template sets
- Backup/Restore support
- Groups Support
- RSS support
Many thanks to Yu for all the hard work under my whip.
2005-12-02 07:50:26 +00:00
|
|
|
</tr>
|
2006-02-20 02:15:45 +00:00
|
|
|
</table>
|