[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/calendar/ -> preferences.html (source)

   1  <form method="post" action="preferences.php" id="prefform">
   2  
   3  <table class="formtable">
   4  <tr>
   5      <th style="width: 30%;" scope="row"><?php print_string('pref_timeformat', 'calendar')?>:</th>
   6      <td>
   7      <?php
   8          $options = array();
   9          $options['0']  = get_string('default', 'calendar');
  10          $options[CALENDAR_TF_12] = get_string('timeformat_12', 'calendar');
  11          $options[CALENDAR_TF_24] = get_string('timeformat_24', 'calendar');
  12          choose_from_menu ($options, "timeformat", $prefs->timeformat, "", "", "");
  13      ?>
  14      <p><?php print_string('explain_timeformat', 'calendar'); ?></p>
  15      </td>
  16  </tr>
  17  
  18  <tr>
  19      <th scope="row"><?php print_string('pref_startwday', 'calendar')?>:</th>
  20      <td>
  21      <?php
  22          $options = array();
  23          $options[0] = get_string('sunday', 'calendar');
  24          $options[1] = get_string('monday', 'calendar');
  25          $options[2] = get_string('tuesday', 'calendar');
  26          $options[3] = get_string('wednesday', 'calendar');
  27          $options[4] = get_string('thursday', 'calendar');
  28          $options[5] = get_string('friday', 'calendar');
  29          $options[6] = get_string('saturday', 'calendar');
  30          choose_from_menu($options, 'startwday', $prefs->startwday, '', '', '');
  31      ?>
  32      <p><?php print_string('explain_startwday', 'calendar'); ?></p>
  33      </td>
  34  </tr>
  35  
  36  <tr>
  37      <th scope="row"><?php print_string('pref_maxevents', 'calendar')?>:</th>
  38      <td>
  39      <?php
  40          $options = NULL;
  41          for ($i=1; $i<=20; $i++) {
  42              $options[$i] = $i;
  43          }
  44          choose_from_menu ($options, "maxevents", $prefs->maxevents, "", "", "");
  45      ?>
  46      <p><?php print_string('explain_maxevents', 'calendar'); ?></p>
  47      </td>
  48  </tr>
  49  
  50  <tr>
  51      <th scope="row"><?php print_string('pref_lookahead', 'calendar')?>:</th>
  52      <td>
  53      <?php
  54          $options = NULL;
  55          for ($i=1; $i<=200; $i++) {
  56              $options[$i] = $i;
  57          }
  58          choose_from_menu ($options, "lookahead", $prefs->lookahead, "", "", "");
  59      ?>
  60      <p><?php print_string('explain_lookahead', 'calendar'); ?></p>
  61      </td>
  62  </tr>
  63  
  64  <tr>
  65      <th scope="row"><?php print_string('pref_persistflt', 'calendar')?>:</th>
  66      <td>
  67      <?php choose_from_menu (array(0 => get_string('no'), 1 => get_string('yes')), 'persistflt', $prefs->persistflt, '', '', ''); ?>
  68      <p><?php print_string('explain_persistflt', 'calendar'); ?></p>
  69      </td>
  70  </tr>
  71  
  72  <tr>
  73      <td colspan="2" style="text-align: center;">
  74      <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
  75  </tr>
  76  </table>
  77  
  78  </form>


Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7