2003-05-20 08:03:12 +00:00
|
|
|
<?php
|
2003-01-01 13:17:27 +00:00
|
|
|
if (empty($form->name)) {
|
|
|
|
$form->name = "";
|
|
|
|
}
|
|
|
|
if (empty($form->type)) {
|
|
|
|
$form->type = "";
|
|
|
|
}
|
|
|
|
if (empty($form->summary)) {
|
|
|
|
$form->summary = "";
|
|
|
|
}
|
|
|
|
if (empty($form->reference)) {
|
|
|
|
$form->reference = "";
|
|
|
|
}
|
|
|
|
if (empty($form->alltext)) {
|
|
|
|
$form->alltext = "";
|
|
|
|
}
|
2004-06-04 06:17:30 +00:00
|
|
|
$nohtmleditorneeded = true;
|
2003-01-01 13:17:27 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
|
2003-06-10 05:33:58 +00:00
|
|
|
<form name="form" method="post" action="../mod/resource/details.php">
|
2002-10-17 14:03:59 +00:00
|
|
|
<table cellpadding=5>
|
|
|
|
<tr valign=top>
|
2003-05-20 08:03:12 +00:00
|
|
|
<td align=right><p><b><?php print_string("name") ?>:</b></p></td>
|
2002-10-17 14:03:59 +00:00
|
|
|
<td>
|
2003-05-20 08:03:12 +00:00
|
|
|
<input type="text" name="name" size=50 value="<?php p($form->name) ?>">
|
2002-10-17 14:03:59 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2003-05-20 08:03:12 +00:00
|
|
|
<td align=right><p><b><?php print_string("resourcetype", "resource") ?>:</b></p></td>
|
2002-10-17 14:03:59 +00:00
|
|
|
<td>
|
2003-05-20 08:03:12 +00:00
|
|
|
<?php
|
2002-10-17 14:03:59 +00:00
|
|
|
require("$CFG->dirroot/mod/resource/lib.php");
|
|
|
|
asort($RESOURCE_TYPE);
|
|
|
|
if (!$form->type) {
|
|
|
|
$form->type = 4;
|
|
|
|
}
|
|
|
|
choose_from_menu($RESOURCE_TYPE, "type", $form->type, "");
|
|
|
|
helpbutton("resourcetype", get_string("resourcetype", "resource"), "resource");
|
|
|
|
?>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2003-05-20 08:03:12 +00:00
|
|
|
<td align=right><p><b><?php print_string("summary") ?>:</b></p>
|
|
|
|
<font size="1">
|
|
|
|
<?php
|
|
|
|
helpbutton("summary", get_string("summary"), "resource", true, true);
|
2004-01-25 20:34:54 +00:00
|
|
|
echo "<br />";
|
2003-05-20 08:03:12 +00:00
|
|
|
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
|
2004-01-25 20:34:54 +00:00
|
|
|
echo "<br />";
|
2003-05-20 08:03:12 +00:00
|
|
|
helpbutton("text", get_string("helptext"), "moodle", true, true);
|
|
|
|
?>
|
|
|
|
<br />
|
2002-12-13 09:06:30 +00:00
|
|
|
</font>
|
|
|
|
</td>
|
2002-10-17 14:03:59 +00:00
|
|
|
<td>
|
2004-06-04 06:17:30 +00:00
|
|
|
<?php print_textarea(false, 7, 50, 680, 400, "summary", $form->summary); ?>
|
2002-10-17 14:03:59 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2003-05-20 08:03:12 +00:00
|
|
|
<center>
|
|
|
|
<input type="hidden" name=reference value="<?php p($form->reference) ?>">
|
2002-10-17 14:03:59 +00:00
|
|
|
|
2003-05-20 08:03:12 +00:00
|
|
|
<input type="hidden" name=course value="<?php p($form->course) ?>">
|
|
|
|
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
|
|
|
|
<input type="hidden" name=section value="<?php p($form->section) ?>">
|
|
|
|
<input type="hidden" name=module value="<?php p($form->module) ?>">
|
|
|
|
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
|
|
|
|
<input type="hidden" name=instance value="<?php p($form->instance) ?>">
|
|
|
|
<input type="hidden" name=mode value="<?php p($form->mode) ?>">
|
2003-06-16 14:40:51 +00:00
|
|
|
<input type="hidden" name=destination value="<?php echo "$CFG->wwwroot/course/mod.php" ?>">
|
2003-05-20 08:03:12 +00:00
|
|
|
<input type="submit" value="<?php print_string("continue") ?>">
|
|
|
|
</center>
|
|
|
|
</form>
|