File: mod.html

package info (click to toggle)
moodle 1.6.3-2%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 37,172 kB
  • ctags: 51,688
  • sloc: php: 231,916; sql: 5,631; xml: 2,688; sh: 1,185; perl: 638; makefile: 48; pascal: 36
file content (110 lines) | stat: -rw-r--r-- 4,240 bytes parent folder | download | duplicates (2)
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
<?php  // $Id: mod.html,v 1.14 2005/02/12 21:41:17 gustav_delius Exp $
    if (!isset($form->name)) {
        $form->name = '';
    }
    if (!isset($form->intro)) {
        $form->intro = '';
    }
    if (!isset($form->keepdays)) {
        $form->keepdays = 30;
    }
    if (!isset($form->studentlogs)) {
        $form->studentlogs = 0;
    }
    if (!isset($form->chattime)) {
        $form->chattime = 0;
    }
    if (!isset($form->schedule)) {
        $form->schedule = 0;
    }
?>
<form name="form" method="post" action="mod.php">
<table cellpadding="5">
<tr valign="top">
    <td align="right"><b><?php print_string('chatname', 'chat')?>:</b></td>
    <td>
        <input type="text" name="name" size="30" value="<?php p($form->name) ?>" alt="<?php print_string('chatname', 'chat') ?>" />
    </td>
</tr>
<tr valign="top">
    <td align="right"><b><?php print_string('chatintro', 'chat')?>:</b><br /><br />
     <?php
        helpbutton('writing', get_string('helpwriting'), 'moodle', true, true);
        echo '<br />';
        helpbutton('questions', get_string('helpquestions'), 'moodle', true, true);
        echo '<br />';
        emoticonhelpbutton('form', 'intro');
        echo '<br />';
      ?>
    </td>
    <td>
        <?php print_textarea($usehtmleditor, 20, 50, 680, 400, 'intro', $form->intro); ?>
    </td>
</tr>
<tr valign="top">
    <td align="right"><b><?php print_string('chattime', 'chat') ?>:</b></td>
    <td><?php
           print_date_selector('chatday', 'chatmonth', 'chatyear', $form->chattime);
           echo '&nbsp;-&nbsp;';
           print_time_selector('chathour', 'chatminute', $form->chattime);
    ?></td>
</tr>
<tr valign="top">
    <td align="right"><b><?php print_string('repeattimes', 'chat') ?>:</b></td>
    <td><?php
       unset($options);
       $options[0]  = get_string('donotusechattime', 'chat');
       $options[1]  = get_string('repeatnone', 'chat');
       $options[2]  = get_string('repeatdaily', 'chat');
       $options[3]  = get_string('repeatweekly', 'chat');
       choose_from_menu ($options, 'schedule', $form->schedule, '', '', '');
    ?></td>
</tr>
<tr valign="top">
  <td align="right"><b><?php print_string('savemessages', 'chat')?>:</b></td>
  <td>
    <?php 
       unset($options);
       $options[0]    = get_string('neverdeletemessages', 'chat');
       $options[365]  = get_string('numdays', '', 365);
       $options[180]  = get_string('numdays', '', 180);
       $options[150]  = get_string('numdays', '', 150);
       $options[120]  = get_string('numdays', '', 120);
       $options[90]   = get_string('numdays', '', 90);
       $options[60]   = get_string('numdays', '', 60);
       $options[30]   = get_string('numdays', '', 30);
       $options[21]   = get_string('numdays', '', 21);
       $options[14]   = get_string('numdays', '', 14);
       $options[7]    = get_string('numdays', '', 7);
       $options[2]    = get_string('numdays', '', 2);

       choose_from_menu ($options, 'keepdays', $form->keepdays, '', '', '');
    ?>
    </td>
</tr>
<tr valign="top">
  <td align="right"><b><?php print_string('studentseereports', 'chat')?>:</b></td>
  <td>
    <?php 
       unset($options);
       $options[0]    = get_string('no');
       $options[1]    = get_string('yes');
       choose_from_menu ($options, 'studentlogs', $form->studentlogs, '', '', '');
    ?>
    </td>
</tr>
<?php print_standard_coursemodule_settings($form); ?>
</table>
<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) ?>" />
<input type="submit" value="<?php  print_string('savechanges') ?>" />
<input type="submit" name="cancel" value="<?php  print_string('cancel') ?>" />
</center>
</form>