示例#1
0
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo OSCOM::getDef('param_administrator_password') . '<br />' . HTML::inputField('CFG_ADMINISTRATOR_PASSWORD', null, 'class="text"');
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_administrator_password_description');
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo OSCOM::getDef('param_time_zone') . '<br />' . HTML::timeZoneSelectMenu('CFG_TIME_ZONE', ini_get('date.timezone') ?: null);
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_time_zone_description');
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo HTML::checkboxField('DB_INSERT_SAMPLE_DATA', 'true', true) . '&nbsp;' . OSCOM::getDef('param_database_import_sample_data');
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_database_import_sample_data_description');
?>
示例#2
0
 public function testTimeZoneSelectMenu()
 {
     $result = array();
     foreach (DateTime::getTimeZones() as $zone => $zones_array) {
         foreach ($zones_array as $key => $value) {
             $result[] = array('id' => $key, 'text' => $value, 'group' => $zone);
         }
     }
     $this->assertEquals(HTML::selectMenu('timezone', $result, 'Europe/Berlin'), HTML::timeZoneSelectMenu('timezone', 'Europe/Berlin'));
 }