mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Fixed up some styles and pagepath for field-editing pages
This commit is contained in:
parent
76a1cf366e
commit
26d93549f5
11 changed files with 119 additions and 89 deletions
|
@ -1,14 +1,14 @@
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fieldname', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fieldname', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="name" id="name" value="<?php echo($this->field->name); ?>" /></td>
|
<td class="c1"><input class="fieldname" type="text" name="name" id="name" value="<?php echo($this->field->name); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="description" id="description" value="<?php echo($this->field->description); ?>" /></td>
|
<td class="c1"><input class="fielddescription" type="text" name="description" id="description" value="<?php echo($this->field->description); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top"><?php echo get_string('fieldoptions', 'data'); ?>:</td>
|
<td class="c0" valign="top"><?php echo get_string('fieldoptions', 'data'); ?>:</td>
|
||||||
<td><textarea style="width:300px; height:150px;" name="param1" id="param1" cols="80" rows="10"><?php if($this->field->param1) {echo $this->field->param1;} ?></textarea></td>
|
<td class="c1"><textarea style="width:300px; height:150px;" name="param1" id="param1" cols="80" rows="10"><?php if($this->field->param1) {echo $this->field->param1;} ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,15 +1,10 @@
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="c0"> <?php echo get_string('fieldname', 'data'); ?>: </td>
|
||||||
<?php echo get_string('fieldname', 'data'); ?>:
|
<td class="c1"> <input class="fieldname" type="text" name="name" id="name" value = "<?php echo($this->field->name); ?>" /></td>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<input style="width:300px;" type="text" name="name" id="name" value = "<?php echo($this->field->name); ?>" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="c0"> <?php echo get_string('fielddescription', 'data'); ?>:</td>
|
||||||
<?php echo get_string('fielddescription', 'data'); ?>:</td><td><input style="width:300px;" type="text" name="description" id="description" value = "<?php echo ($this->field->description);?>" />
|
<td class="c1"><input class="fielddescription" type="text" name="description" id="description" value = "<?php echo ($this->field->description);?>" /></td>
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fieldname', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fieldname', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="name" id="name" value = "<?php echo($this->field->name); ?>" /></td>
|
<td class="c1"><input class="fieldname" type="text" name="name" id="name" value = "<?php echo($this->field->name); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="description" id="description" value = "<?php echo ($this->field->description);?>" /></td>
|
<td class="c1"><input class="fielddescription" type="text" name="description" id="description" value = "<?php echo ($this->field->description);?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top"><?php echo get_string('fieldoptions', 'data'); ?>:</td>
|
<td class="c0" valign="top"><?php echo get_string('fieldoptions', 'data'); ?>:</td>
|
||||||
<td><textarea style="width:300px; height:150px;" name="param1" id="param1" cols="80" rows="10"><?php if($this->field->param1) {echo $this->field->param1;} ?></textarea></td>
|
<td class="c1"><textarea style="width:300px; height:150px;" name="param1" id="param1" cols="80" rows="10"><?php if($this->field->param1) {echo $this->field->param1;} ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fieldname', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fieldname', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="name" id="name" value="<?php echo($this->field->name); ?>" /></td>
|
<td class="c1"><input class="fieldname" type="text" name="name" id="name" value="<?php echo($this->field->name); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="description" id="description" value="<?php echo($this->field->description); ?>" /></td>
|
<td class="c1"><input class="fielddescription" type="text" name="description" id="description" value="<?php echo($this->field->description); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top"><?php echo get_string('fieldoptions', 'data'); ?></td>
|
<td class="c0" valign="top"><?php echo get_string('fieldoptions', 'data'); ?></td>
|
||||||
<td><textarea style="width:300px; height:150px;" name="param1" id="param1" cols="80" rows="10"><?php if($this->field->param1) {echo $this->field->param1;} ?></textarea></td>
|
<td class="c1"><textarea style="width:300px; height:150px;" name="param1" id="param1" cols="80" rows="10"><?php if($this->field->param1) {echo $this->field->param1;} ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,51 +1,54 @@
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="c0">
|
||||||
<?php echo get_string('fieldname', 'data');?>:</td><td><input style="width:300px;" type="text" name="name" id="name" value = "<?php echo($this->field->name); ?>" />
|
<?php echo get_string('fieldname', 'data');?>:</td>
|
||||||
|
<td class="c1"><input class="fieldname" type="text" name="name" id="name" value = "<?php echo($this->field->name); ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="c0">
|
||||||
<?php echo get_string('fielddescription', 'data');?>:
|
<?php echo get_string('fielddescription', 'data');?>:
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="c1">
|
||||||
<input style="width:300px;" type="text" name="description" id="description" value = "<?php echo ($this->field->description);?>" />
|
<input class="fielddescription" type="text" name="description" id="description" value = "<?php echo ($this->field->description);?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="c0">
|
||||||
<?php echo get_string('fieldwidthsingleview', 'data');?>:
|
<?php echo get_string('fieldwidthsingleview', 'data');?>:
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="c1">
|
||||||
<input style="width:70px;" type="text" name="param1" id="param1" value = "<?php if (!empty($this->field->param1)) echo $this->field->param1; ?>" />
|
<input style="width:70px;" type="text" name="param1" id="param1" value = "<?php if (!empty($this->field->param1)) echo $this->field->param1; ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="c0">
|
||||||
<?php echo get_string('fieldheightsingleview', 'data');?>:
|
<?php echo get_string('fieldheightsingleview', 'data');?>:
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="c1">
|
||||||
<input style="width:70px;" type="text" name="param2" id="param2" value = "<?php if (!empty($this->field->param2)) echo $this->field->param2; ?>" />
|
<input style="width:70px;" type="text" name="param2" id="param2" value = "<?php if (!empty($this->field->param2)) echo $this->field->param2; ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="c0">
|
||||||
<?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; ?>" />
|
<?php echo get_string('fieldwidthlistview', 'data');?>:
|
||||||
|
</td>
|
||||||
|
<td class="c1"><input style="width:70px;" type="text" name="param4" id="param4" value = "<?php if (!empty($this->field->param4)) echo $this->field->param4; ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="c0">
|
||||||
<?php echo get_string('fieldheightlistview', 'data');?>:
|
<?php echo get_string('fieldheightlistview', 'data');?>:
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="c1">
|
||||||
<input style="width:70px;" type="text" name="param5" id="param5" value = "<?php if (!empty($this->field->param5)) echo $this->field->param5; ?>" />
|
<input style="width:70px;" type="text" name="param5" id="param5" value = "<?php if (!empty($this->field->param5)) echo $this->field->param5; ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="c0">
|
||||||
<?php echo get_string('maxsize', 'data'); ?>:
|
<?php echo get_string('maxsize', 'data'); ?>:
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="c1">
|
||||||
<?php
|
<?php
|
||||||
$course->maxbytes = get_field('course', 'maxbytes', 'id', $this->data->course);
|
$course->maxbytes = get_field('course', 'maxbytes', 'id', $this->data->course);
|
||||||
$choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes);
|
$choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes);
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fieldname', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fieldname', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="name" id="name" value="<?php echo($this->field->name); ?>" /></td>
|
<td class="c1"><input class="fieldname" type="text" name="name" id="name" value="<?php echo($this->field->name); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="description" id="description" value="<?php echo($this->field->description); ?>" /></td>
|
<td class="c1"><input class="fielddescription" type="text" name="description" id="description" value="<?php echo($this->field->description); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top"><?php echo get_string('fieldoptions', 'data'); ?>:</td>
|
<td class="c0" valign="top"><?php echo get_string('fieldoptions', 'data'); ?>:</td>
|
||||||
<td><textarea style="width:300px; height:150px;" name="param1" id="param1" cols="80" rows="10"><?php if($this->field->param1) {echo $this->field->param1;} ?></textarea></td>
|
<td class="c1"><textarea style="width:300px; height:150px;" name="param1" id="param1" cols="80" rows="10"><?php if($this->field->param1) {echo $this->field->param1;} ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fieldname', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fieldname', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="name" id="name" value="<?php echo($this->field->name); ?>" /></td>
|
<td class="c1"><input class="fieldname" type="text" name="name" id="name" value="<?php echo($this->field->name); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="description" id="description" value="<?php echo($this->field->description); ?>" /></td>
|
<td class="c1"><input class="fielddescription" type="text" name="description" id="description" value="<?php echo($this->field->description); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fieldallowautolink', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fieldallowautolink', 'data'); ?>:</td>
|
||||||
<td><input type="checkbox" name="param1" id="param1" <?php if($this->field->param1) {echo 'checked="checked"';} ?> value="1" /></td>
|
<td class="c1"><input type="checkbox" name="param1" id="param1" <?php if($this->field->param1) {echo 'checked="checked"';} ?> value="1" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fieldname', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fieldname', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="name" id="name" value="<?php echo($this->field->name); ?>" /></td>
|
<td class="c1"><input class="fieldname" type="text" name="name" id="name" value="<?php echo($this->field->name); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fielddescription', 'data'); ?>:</td>
|
||||||
<td><input style="width:300px;" type="text" name="description" id="description" value="<?php echo($this->field->description); ?>" /></td>
|
<td class="c1"><input class="fielddescription" type="text" name="description" id="description" value="<?php echo($this->field->description); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fieldwidth', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fieldwidth', 'data'); ?>:</td>
|
||||||
<td><input style="width:50px;" type="text" name="param2" id="width" value="<?php echo($this->field->param2); ?>" /> columns</td>
|
<td class="c1"><input style="width:50px;" type="text" name="param2" id="width" value="<?php echo($this->field->param2); ?>" /> columns</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_string('fieldheight', 'data'); ?>:</td>
|
<td class="c0"><?php echo get_string('fieldheight', 'data'); ?>:</td>
|
||||||
<td><input style="width:50px;" type="text" name="param3" id="height" value="<?php echo($this->field->param3); ?>" /> rows</td>
|
<td class="c1"><input style="width:50px;" type="text" name="param3" id="height" value="<?php echo($this->field->param3); ?>" /> rows</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,18 +1,10 @@
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="c0"> <?php echo get_string('fieldname', 'data'); ?>: </td>
|
||||||
<?php echo get_string('fieldname', 'data'); ?>:
|
<td class="c1"> <input class="fieldname" type="text" name="name" id="name" value = "<?php echo($this->field->name); ?>" /> </td>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<input style="width:350px;" type="text" name="name" id="name" value = "<?php echo($this->field->name); ?>" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="c0"> <?php echo get_string('fielddescription', 'data'); ?>: </td>
|
||||||
<?php echo get_string('fielddescription', 'data'); ?>:
|
<td class="c1"> <input class="fielddescription" type="text" name="description" id="description" value = "<?php echo ($this->field->description);?>" /> </td>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<input style="width:350px;" type="text" name="description" id="description" value = "<?php echo ($this->field->description);?>" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -60,18 +60,12 @@
|
||||||
error(get_string('noaccess','data'));
|
error(get_string('noaccess','data'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$strdata = get_string('modulenameplural','data');
|
|
||||||
|
|
||||||
print_header_simple($data->name, '', "<a href='index.php?id=$course->id'>$strdata</a> -> $data->name",
|
|
||||||
'', '', true, '', navmenu($course, $cm));
|
|
||||||
|
|
||||||
print_heading(format_string($data->name));
|
|
||||||
|
|
||||||
|
|
||||||
/************************************
|
/************************************
|
||||||
* Data Processing *
|
* Data Processing *
|
||||||
***********************************/
|
***********************************/
|
||||||
switch ($mode){
|
switch ($mode) {
|
||||||
|
|
||||||
case 'add': ///add a new field
|
case 'add': ///add a new field
|
||||||
if (confirm_sesskey() and $fieldinput = data_submitted($CFG->wwwroot.'/mod/data/fields.php')){
|
if (confirm_sesskey() and $fieldinput = data_submitted($CFG->wwwroot.'/mod/data/fields.php')){
|
||||||
|
@ -136,8 +130,10 @@
|
||||||
|
|
||||||
case 'delete': // Delete a field
|
case 'delete': // Delete a field
|
||||||
if (confirm_sesskey()){
|
if (confirm_sesskey()){
|
||||||
|
|
||||||
if ($confirm = optional_param('confirm', 0, PARAM_INT)) {
|
if ($confirm = optional_param('confirm', 0, PARAM_INT)) {
|
||||||
|
|
||||||
|
|
||||||
// Delete the field completely
|
// Delete the field completely
|
||||||
if ($field = data_get_field_from_id($fid, $data)) {
|
if ($field = data_get_field_from_id($fid, $data)) {
|
||||||
$field->delete_field();
|
$field->delete_field();
|
||||||
|
@ -152,6 +148,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
data_fields_print_header($course,$cm,$data, false);
|
||||||
|
|
||||||
// Print confirmation message.
|
// Print confirmation message.
|
||||||
$field = data_get_field_from_id($fid, $data);
|
$field = data_get_field_from_id($fid, $data);
|
||||||
|
|
||||||
|
@ -169,10 +168,7 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Print the tabs
|
|
||||||
|
|
||||||
$currenttab = 'fields';
|
|
||||||
include('tabs.php');
|
|
||||||
|
|
||||||
/// Print the browsing interface
|
/// Print the browsing interface
|
||||||
|
|
||||||
|
@ -185,21 +181,25 @@
|
||||||
}
|
}
|
||||||
asort($menufield); //sort in alphabetical order
|
asort($menufield); //sort in alphabetical order
|
||||||
|
|
||||||
if (!empty($displaynoticegood)) {
|
|
||||||
notify($displaynoticegood, 'notifysuccess'); // good (usually green)
|
|
||||||
} else if (!empty($displaynoticebad)) {
|
|
||||||
notify($displaynoticebad); // bad (usuually red)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (($mode == 'new') && confirm_sesskey()) { /// Adding a new field
|
if (($mode == 'new') && confirm_sesskey()) { /// Adding a new field
|
||||||
|
$CFG->pagepath='mod/data/field/'.$newtype;
|
||||||
|
data_fields_print_header($course,$cm,$data);
|
||||||
|
|
||||||
$field = data_get_field_new($newtype, $data);
|
$field = data_get_field_new($newtype, $data);
|
||||||
$field->display_edit_field();
|
$field->display_edit_field();
|
||||||
|
|
||||||
} else if ($mode == 'display' && confirm_sesskey()) { /// Display/edit existing field
|
} else if ($mode == 'display' && confirm_sesskey()) { /// Display/edit existing field
|
||||||
|
$CFG->pagepath='mod/data/field/'.$newtype;
|
||||||
|
data_fields_print_header($course,$cm,$data);
|
||||||
|
|
||||||
$field = data_get_field_from_id($fid, $data);
|
$field = data_get_field_from_id($fid, $data);
|
||||||
$field->display_edit_field();
|
$field->display_edit_field();
|
||||||
|
|
||||||
} else { /// Display the main listing of all fields
|
} else { /// Display the main listing of all fields
|
||||||
|
|
||||||
|
$CFG->pagepath='mod/data/field/'.$newtype;
|
||||||
|
data_fields_print_header($course,$cm,$data);
|
||||||
|
|
||||||
|
|
||||||
if (!record_exists('data_fields','dataid',$data->id)) {
|
if (!record_exists('data_fields','dataid',$data->id)) {
|
||||||
|
@ -251,4 +251,32 @@
|
||||||
/// Finish the page
|
/// Finish the page
|
||||||
print_footer($course);
|
print_footer($course);
|
||||||
|
|
||||||
|
|
||||||
|
function data_fields_print_header($course,$cm,$data,$showtabs=true) {
|
||||||
|
|
||||||
|
global $CFG, $displaynoticegood, $displaynoticebad;
|
||||||
|
|
||||||
|
$strdata = get_string('modulenameplural','data');
|
||||||
|
|
||||||
|
print_header_simple($data->name, '', "<a href='index.php?id=$course->id'>$strdata</a> -> $data->name",
|
||||||
|
'', '', true, '', navmenu($course, $cm));
|
||||||
|
|
||||||
|
print_heading(format_string($data->name));
|
||||||
|
|
||||||
|
/// Print the tabs
|
||||||
|
|
||||||
|
if ($showtabs) {
|
||||||
|
$currenttab = 'fields';
|
||||||
|
include_once('tabs.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Print any notices
|
||||||
|
|
||||||
|
if (!empty($displaynoticegood)) {
|
||||||
|
notify($displaynoticegood, 'notifysuccess'); // good (usually green)
|
||||||
|
} else if (!empty($displaynoticebad)) {
|
||||||
|
notify($displaynoticebad); // bad (usuually red)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
#mod-data-view #sortsearch .c0 {
|
#mod-data-view #sortsearch .c0 {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mod-data-field .c0 {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mod-data-field .fieldname {
|
||||||
|
width:300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mod-data-field .fielddescription {
|
||||||
|
width:300px;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue