-
Notifications
You must be signed in to change notification settings - Fork 1
/
mod.html
executable file
·145 lines (130 loc) · 5.24 KB
/
mod.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php // $Id: mod.html,v 1.7 2005/07/14 20:58:07 skodak Exp $
require($CFG->dirroot.'/mod/hiperbook/lib.php');
if (empty($form->name)) {
$form->name = '';
}
if (empty($form->summary)) {
$form->summary = '';
}
if (empty($form->numbering)) {
$form->numbering = NUM_NONE;
}
if (empty($form->disableprinting)) {
$form->disableprinting = 1;
}
if (empty($form->customtitles)) {
$form->customtitles = 0;
}
?>
<form name="form" method="post" action="mod.php">
<input type="hidden" name="windowpopup" value="1" />
<input name="resizable" type="hidden" value="1" />
<input name="width" type="hidden" value="600" />
<input name="height" type="hidden" value="400" />
<input type="hidden" name="windowsettingspref" id="windowsettingspref"
value="1" />
<input name="scrollbars" type="hidden" value="0" />
<input name="directories" type="hidden" value="0" />
<input name="location" type="hidden" value="0" />
<input name="menubar" type="hidden" value="0" />
<input name="toolbar" type="hidden" value="0" />
<input name="status" type="hidden" value="0" />
<table cellpadding="5" align="center">
<tr>
<td align="right"><p><b><?php print_string('name') ?>:</b></p></td>
<td>
<input type="text" name="name" size="30" value="<?php p($form->name) ?>">
</td>
</tr>
<?php print_standard_coursemodule_settings($form); ?>
<!--tr>
<td align="right"><p><b><?php print_string('summary') ?>:</b></p>
<font size="1">
<?php
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
echo "<br />";
helpbutton("questions", get_string("helpquestions"), "moodle", true, true);
echo "<br />";
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
emoticonhelpbutton("form", "description");
}
?>
<br />
</font>
</td>
<td>
<?php print_textarea($usehtmleditor, 20, 60, 680, 400, 'summary', $form->summary); ?>
</td>
</tr-->
<!--tr valign="top">
<td align="right"><p><b><?php print_string('numbering', 'hiperbook') ?>:</b></p></td>
<td>
<?php
choose_from_menu($NUMBERING_TYPE, 'numbering', $form->numbering, '');
helpbutton('numberingtype', get_string('numbering', 'hiperbook'), 'hiperbook');
?>
</td>
</tr>
<tr>
<td align="right"><p><b><?php print_string('disableprinting', 'hiperbook') ?>:</b></p></td>
<td>
<select size="1" name="disableprinting">
<option value="1" <?php
if ( $form->disableprinting ) {
echo 'selected="selected"';
}
?>><?php echo get_string('yes') ?>
</option>
<option value="0" <?php
if ( !$form->disableprinting ) {
echo 'selected="selected"';
}
?>><?php echo get_string('no') ?>
</option>
</select> <?php helpbutton('disableprinting', get_string('disableprinting', 'hiperbook'), 'hiperbook') ?>
</td>
</tr>
<tr>
<td align="right"><p><b><?php print_string('customtitles', 'hiperbook') ?>:</b></p></td>
<td>
<select size="1" name="customtitles">
<option value="1" <?php
if ( $form->customtitles ) {
echo 'selected="selected"';
}
?>><?php echo get_string('yes') ?>
</option>
<option value="0" <?php
if ( !$form->customtitles ) {
echo 'selected="selected"';
}
?>><?php echo get_string('no') ?>
</option>
</select> <?php helpbutton('customtitles', get_string('customtitles', 'hiperbook'), 'hiperbook') ?>
</td>
</tr-->
</table>
<p align="center"><a href="<?php echo $CFG->wwwroot.'/mod/hiperbook/express0.php?id='. $form->coursemodule; ?>">Modo de implementação</a></p>
<p align="center">
<a href="<?php echo $CFG->wwwroot.'/mod/hiperbook/metadata/metadados.php?id='. $form->coursemodule; ?>">Metadados</a>
</p>
<p align="center">
Exportar:
<a href="<?php echo $CFG->wwwroot.'/mod/hiperbook/scormer.php?id='. $form->coursemodule; ?>">SCORM</a>
<a href="<?php echo $CFG->wwwroot.'/mod/hiperbook/htmler.php?id='. $form->coursemodule; ?>">HTML</a>
<a href="<?php echo $CFG->wwwroot.'/mod/hiperbook/pdf.php?id='. $form->coursemodule; ?>">PDF</a>
</p>
<center>
<input type="submit" value="<?php print_string('savechanges') ?>" />
</center>
<input type="hidden" name="course" value="<?php p($form->course) ?>" />
<input type="hidden" name="sesskey" value="<?php p($form->sesskey) ?>" />
<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) ?>" />
</form>