コード例 #1
0
ファイル: main.php プロジェクト: rbredow/allyzabbacart
</label>
            </td>
          </tr>
          <tr valign="top" class="eligible_countries_block">
            <th scope="row"><?php 
_e('Ship to Countries', 'cart66');
?>
</th>
            <td>
              <select id="countries" name="countries[]" class="multiselect" multiple="multiple">
                <?php 
$countryList = Cart66Setting::getValue('countries');
$countryList = $countryList ? explode(',', $countryList) : array();
?>
                <?php 
foreach (Cart66Common::getCountries(true) as $code => $country) {
    ?>
                  <?php 
    $selected = in_array($code . '~' . $country, $countryList) ? 'selected="selected"' : '';
    if (!empty($code)) {
        ?>
                    <option value="<?php 
        echo $code . '~' . $country;
        ?>
" <?php 
        echo $selected;
        ?>
><?php 
        echo $country;
        ?>
</option>
コード例 #2
0
?>
:</label>
            <input type="text" id="billing-zip" name="billing[zip]" value="<?php 
Cart66Common::showValue($b['zip']);
?>
" class="ajax-tax" />
          </li>

          <li>
            <label for="billing-country" class="short"><?php 
_e('Country', 'cart66');
?>
:</label>
            <select title="country" id="billing-country" name="billing[country]" class="billing_countries">
              <?php 
foreach (Cart66Common::getCountries() as $code => $name) {
    ?>
                <option value="<?php 
    echo $code;
    ?>
" <?php 
    if ($code == $billingCountryCode) {
        echo 'selected="selected"';
    }
    ?>
><?php 
    echo $name;
    ?>
</option>
              <?php 
}