Esempio n. 1
0
 function testCountryListDoesNotHaveUnknown()
 {
     $keys = array_keys(get_country_iso());
     foreach (array('ZZ') as $iso) {
         $this->assertFalse(in_array($iso, $keys), "'{$iso}' should not be in country list");
     }
 }
Esempio n. 2
0
?>
</label></th>
    <td><input type="text" id="name" name="name" size="32" value="<?php 
echo htmlspecialchars($name);
?>
" maxlength="255"></td>
  </tr>
  <tr>
    <th><label for="country"><?php 
echo ht("Country:");
?>
</label></th>
    <td><select name="country" class="country" id="country">
      <option></option>
      <?php 
foreach (get_country_iso() as $key => $value) {
    echo "<option value=\"" . htmlspecialchars($key) . "\"" . ($country == $key ? " selected" : "") . ">" . htmlspecialchars($value) . "</option>\n";
}
?>
    </select> <span class="required">*</span>
  </tr>
  <tr>
    <th><label for="email"><?php 
echo ht("E-mail:");
?>
</label></th>
    <td><input type="text" id="email" name="email" size="48" value="<?php 
echo htmlspecialchars($email);
?>
" maxlength="255"> <span class="required email-required"<?php 
echo !$use_password ? " style=\"display:none;\"" : "";