当前位置: 首页>>代码示例>>PHP>>正文


PHP tep_get_country_list函数代码示例

本文整理汇总了PHP中tep_get_country_list函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_get_country_list函数的具体用法?PHP tep_get_country_list怎么用?PHP tep_get_country_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了tep_get_country_list函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: echo

		<td width="50%"><?php 
echo (ENTRY_LAST_NAME_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_LAST_NAME . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_LAST_NAME) . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '&nbsp;' . ENTRY_LAST_NAME_TEXT : '');
?>
</td>
		<td width="50%"><?php 
echo tep_draw_input_field('lastname', tep_not_null($entry['entry_lastname']) ? $entry['entry_lastname'] : $customer_last_name, 'size="20"');
?>
</td>
	  </tr>
	  <tr>
		<td width="50%"><?php 
echo ENTRY_COUNTRY_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_COUNTRY . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_COUNTRY;
?>
</td>
		<td width="50%"><?php 
echo tep_get_country_list('country', $entry['entry_country_id'], 'onchange="if (this.form.postcode) this.form.postcode.focus();"') . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<br />' . "\n" . '<small>' . ENTRY_COUNTRY_TEXT . '</small>' : '');
?>
</td>
	  </tr>
<?php 
if (ACCOUNT_POSTCODE == 'true') {
    ?>
	  <tr>
		<td width="50%"><?php 
    echo (ENTRY_POSTCODE_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_POSTCODE . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_POSTCODE) . (tep_not_null(ENTRY_POSTCODE_TEXT) ? '&nbsp;' . ENTRY_POSTCODE_TEXT : '');
    ?>
</td>
		<td width="50%"><?php 
    echo tep_draw_input_field('postcode', $entry['entry_postcode'], 'size="20" onblur="loadCity(this.form, this.value);"');
    ?>
</td>
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:address_book_details.php

示例2: tep_get_country_list

    ?>
        </div>
      </div>
      
<?php 
}
?>

      <div class="form-group has-feedback">
        <label for="inputCountry" class="control-label col-sm-3"><?php 
echo ENTRY_COUNTRY;
?>
</label>
        <div class="col-sm-9">
          <?php 
echo tep_get_country_list('country', isset($entry['entry_country_id']) ? $entry['entry_country_id'] : 0, 'aria-describedby="atCountry" id="inputCountry"');
echo FORM_REQUIRED_INPUT;
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    echo '<span id="atCountry" class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>';
}
?>
        </div>
      </div>

<?php 
if (isset($_GET['edit']) && $customer_default_address_id != $_GET['edit'] || isset($_GET['edit']) == false) {
    ?>

      <div class="form-group">
        <label for="primary" class="control-label col-sm-3"><?php 
    echo SET_AS_PRIMARY;
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:31,代码来源:address_book_details.php

示例3: tep_get_country_list

    ?>
      </div>
    </div>

<?php 
}
?>

    <div class="form-group has-feedback">
      <label for="inputCountry" class="control-label col-sm-3"><?php 
echo ENTRY_COUNTRY;
?>
</label>
      <div class="col-sm-9">
        <?php 
echo tep_get_country_list('country', NULL, 'required aria-required="true" id="inputCountry"');
echo FORM_REQUIRED_INPUT;
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    echo '<span class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>';
}
?>
      </div>
    </div>
  </div>

  <div class="page-header">
    <h4><?php 
echo CATEGORY_CONTACT;
?>
</h4>
  </div>
开发者ID:Akofelaz,项目名称:oscommerce2,代码行数:31,代码来源:create_account.php

示例4: array

if (tep_not_null(ENTRY_CITY_TEXT)) {
    $xoopsTpl->assign("city_entry", '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>');
}
if (ACCOUNT_STATE == 'true') {
    $xoopsTpl->assign("state", 1);
    if ($process == true) {
        if ($entry_state_has_zones == true) {
            $zones_array = array();
            $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int) $country . "' order by zone_name");
            while ($zones_values = tep_db_fetch_array($zones_query)) {
                $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
            }
            $xoopsTpl->assign("cstate", tep_draw_pull_down_menu('state', $zones_array));
        } else {
            $xoopsTpl->assign("cstate", tep_draw_input_field('state'));
        }
    } else {
        $xoopsTpl->assign("cstate", tep_draw_input_field('state', tep_get_zone_name($entry['entry_country_id'], $entry['entry_zone_id'], $entry['entry_state'])));
    }
    if (tep_not_null(ENTRY_STATE_TEXT)) {
        $xoopsTpl->assign("state_entry", '&nbsp;<span class="inputRequirement">' . ENTRY_STATE_TEXT);
    }
}
$xoopsTpl->assign("country", tep_get_country_list('country', $entry['entry_country_id']));
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    $xoopsTpl->assign("country_entry", '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>');
}
if (isset($HTTP_GET_VARS['edit']) && $customer_default_address_id != $HTTP_GET_VARS['edit'] || isset($HTTP_GET_VARS['edit']) == false) {
    $xoopsTpl->assign("primary", 1);
    $xoopsTpl->assign("primary_field", tep_draw_checkbox_field('primary', 'on', false, 'id="primary"'));
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:address_book_details.php

示例5: Translate

 style="margin-left: 3px; margin-top: 1px; float: left;" title="Required" /></div>
            </div>
            </td>
        <?php 
}
?>
        <td>
            <label class="formLabel" for="billing_country"><?php 
echo Translate('Land');
?>
</label>
            <?php 
if (!tep_session_is_registered('customer_id')) {
    echo tep_get_country_list('billing_country', '', 'class="inputbox required" id="billing_country" condition="select_i0" type="select-one"');
} else {
    echo tep_get_country_list('billing_country', isset($billingAddress) && tep_not_null($billingAddress['country_id']) ? $billingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY, 'class="inputbox required" id="billing_country" condition="select_i0"');
}
?>
        </td>
    </tr>
</table>
<?php 
if (!tep_session_is_registered('customer_id')) {
    ?>
	<?php 
    if (ONEPAGE_ACCOUNT_CREATE != 'required' && CUSTOMER_ACCOUNTS != 'false') {
        ?>
    	<div class="indent-small"></div>
		<p><input type="checkbox" name="billing_show_pw" id="billing_show_pw" value="1">
        <label for="billing_show_pw"><?php 
        echo Translate('Maak een account aan voor uw volgend bezoek');
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:31,代码来源:billing_address_horizontal.php

示例6: tep_draw_input_field

                echo '<span id="atState" class="help-block">' . ENTRY_STATE_TEXT . '</span>';
            }
        } else {
            echo tep_draw_input_field('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE_TEXT . '"');
        }
    } else {
        echo tep_draw_input_field('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE_TEXT . '"');
    }
    ?>
      </div>
    </div>

<?php 
}
?>
    <div class="form-group">
      <label for="inputCountry" class="control-label col-sm-3"><?php 
echo ENTRY_COUNTRY;
?>
</label>
      <div class="col-sm-9">
        <?php 
echo tep_get_country_list('country', NULL, 'aria-describedby="atCountry" id="inputCountry"');
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    echo '<span id="atCountry" class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>';
}
?>
      </div>
    </div>
</div>
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:30,代码来源:checkout_new_address.php

示例7: Translate

            <td class="main"><?php 
echo Translate('Woonplaats');
?>
:</td>
            <td class="main"><?php 
echo tep_draw_input_field('city', $entry['entry_city']) . '<span class="inputRequirement">' . ' *' . '</span>';
?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
echo Translate('Land');
?>
:</td>
            <td class="main"><?php 
echo tep_get_country_list('country', $entry['entry_country_id']) . '<span class="inputRequirement">' . ' *' . '</span>';
?>
</td>
          </tr>
<?php 
if (isset($HTTP_GET_VARS['edit']) && $customer_default_address_id != $HTTP_GET_VARS['edit'] || isset($HTTP_GET_VARS['edit']) == false) {
    ?>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2" class="main"><?php 
    echo tep_draw_checkbox_field('primary', 'on', false, 'id="primary"') . ' ' . Translate('Markeer als uw primaire adres');
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:31,代码来源:address_book_details.php

示例8: tep_get_country_list

?>
&nbsp;</P></td>
				</tr>
				 <tr><td><P CLASS="main"><?php 
echo TEXT_ZIP_CODE;
?>
&nbsp;&nbsp;&nbsp;</P></td>
				 <td>&nbsp;</td><td><input type="text" name="zip" value="" size="6" maxlength="6"></td>
									 </tr>
					<tr>
            <td class="main"><?php 
echo ENTRY_COUNTRY;
?>
</td>
            <td>&nbsp;</td><td class="main"><?php 
echo tep_get_country_list('country', $subscribers_country_id) . '&nbsp;';
?>
</td>
          </tr>
									 <tr>
	 <td colspan=3 valign="center" align="right"><br><input type="image" border="0" src="includes/languages/english/images/buttons/button_confirm.gif" name="submit" align="ABSCENTER"></td>
	 </tr>
	 </table>
	 <BR>
            <P CLASS="smallText"><?php 
echo TEXT_ORIGIN_EXPLAIN_BOTTOM;
?>
</P>
            <br>
		</td>
      </tr>
开发者ID:eosc,项目名称:EosC-2.3,代码行数:31,代码来源:newsletters.php

示例9: tep_draw_input_field

</td>
  <td class="main"><?php 
        echo tep_draw_input_field('shipping_company', '', 'style="width:80%;float:left;"');
        ?>
</td>
 </tr>
<?php 
    }
    ?>
 <tr>
  <td class="main" nowrap><?php 
    echo ENTRY_COUNTRY;
    ?>
</td>
  <td class="main"><?php 
    echo tep_get_country_list('shipping_country', isset($shippingAddress['country_id']) ? $shippingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY, 'class="required" style="width:80%;float:left;"');
    ?>
<div class="success_icon ui-icon-green ui-icon-circle-check" style="margin-left: 3px; margin-top: 1px; float: left;" title="false" /></td>
 </tr>
 <tr>
  <td class="main" ><?php 
    echo ENTRY_STREET_ADDRESS;
    ?>
</td>
  <td class="main"><?php 
    echo tep_draw_input_field('shipping_street_address', $shippingAddress['street_address'], 'class="required" style="width:80%;float:left;"');
    ?>
</td>
 </tr>
<?php 
    if (ACCOUNT_SUBURB == 'true') {
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:shipping_address_vertical.php

示例10: Translate

?>
" id="city" />
				</div>

				<div class="form-group <?php 
if ($messageStack->size('country') > 0) {
    echo 'has_error';
}
?>
">
					<label for="country" class="control-label"><?php 
echo Translate('Land');
?>
 <span class="text-danger">*</span></label>
					<?php 
echo tep_get_country_list('country', '', ' class="form-control" id="country" title="' . Translate('Gelieve een land uit de lijst te selecteren') . '"');
?>
				</div>

				<div class="form-group <?php 
if ($messageStack->size('telephone') > 0) {
    echo 'has_error';
}
?>
">
					<label for="telephone" class="control-label"><?php 
echo Translate('Telefoonnummer');
?>
 <span class="text-danger">*</span></label>
					<input class="form-control" type="text" name="telephone"  placeholder="bv. 000/00.00.00" value="<?php 
echo isset($_POST['telephone']) ? $_POST['telephone'] : '';
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:31,代码来源:create_account.php

示例11: array

</label>
  <?php 
    if ($process == true) {
        if ($entry_state_has_zones == true) {
            $zones_array = array();
            $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int) $country . "' order by zone_name");
            while ($zones_values = tep_db_fetch_array($zones_query)) {
                $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
            }
            echo tep_draw_pull_down_menu('state', $zones_array);
        } else {
            echo tep_draw_input_field('state');
        }
    } else {
        echo tep_draw_input_field('state');
    }
    ?>
</div>
<?php 
}
?>
<div class="form-group">
  <label><?php 
echo (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<sup class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</sup>' : '') . ENTRY_COUNTRY;
?>
</label>
  <?php 
echo tep_get_country_list('country', STORE_COUNTRY);
?>
 </div>
开发者ID:templatemonster,项目名称:oscommerce,代码行数:30,代码来源:checkout_new_address.php

示例12: tep_draw_input_field

</td>
  <td class="main"><?php 
    echo tep_draw_input_field('billing_company', isset($billingAddress) ? $billingAddress['company'] : '', 'style="width:80%;float:left;"');
    ?>
</td>
 </tr>
<?php 
}
?>
 <tr>
  <td class="main" nowrap><?php 
echo ENTRY_COUNTRY;
?>
</td>
  <td class="main"><?php 
echo tep_get_country_list('billing_country', isset($billingAddress) && tep_not_null($billingAddress['country_id']) ? $billingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY, 'class="required" style="float:left;width:80%"');
?>
<div class="success_icon ui-icon-green ui-icon-circle-check" style="margin-left: 3px; margin-top: 1px; float: left;" title="false" /></td>
 </tr>
 <tr>
  <td class="main" nowrap><?php 
echo ENTRY_STREET_ADDRESS;
?>
</td>
  <td class="main"><?php 
echo tep_draw_input_field('billing_street_address', isset($billingAddress) ? $billingAddress['street_address'] : '', 'class="required" style="width:80%;float:left;"');
?>
</td>
 </tr>
<?php 
if (ACCOUNT_SUBURB == 'true') {
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:billing_address_horizontal.php

示例13: Translate

        ?>
 class="required_icon ui-icon-red ui-icon-gear" <?php 
    }
    ?>
 style="margin-left: 1px; margin-top: 1px; float: left;" title="Required" /></div>
                        </div>
                        </td>
                    <?php 
}
?>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <label class="formLabel" for="shipping_country"><?php 
echo Translate('Land');
?>
</label>
            <?php 
if (!tep_session_is_registered('customer_id')) {
    echo tep_get_country_list('shipping_country', '', 'class="inputbox required" id="shipping_country" condition="select_i0" type="select-one"');
} else {
    echo tep_get_country_list('shipping_country', isset($shippingAddress['country_id']) ? $shippingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY, 'class="inputbox required" id="shipping_country" condition="select_i0"');
}
?>
        </td>
    </tr>
</table>
<div class="indent-small"></div>
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:31,代码来源:shipping_address_horizontal.php

示例14: array

if (ACCOUNT_GENDER == 'true') {
    if (isset($gender)) {
        $male = $gender == 'm' ? true : false;
        $female = $gender == 'f' ? true : false;
    } else {
        $male = false;
        $female = false;
    }
    $address_fields['gender'] = array('title' => (ENTRY_GENDER_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_GENDER . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_GENDER) . (tep_not_null(ENTRY_GENDER_TEXT) ? '&nbsp;' . ENTRY_GENDER_TEXT : ''), 'field' => tep_draw_radio_field('gender', 'm', $male) . '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . tep_draw_radio_field('gender', 'f', $female) . '&nbsp;&nbsp;' . FEMALE);
}
$address_fields['first_name'] = array('title' => (ENTRY_FIRST_NAME_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_FIRST_NAME . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_FIRST_NAME) . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '&nbsp;' . ENTRY_FIRST_NAME_TEXT : ''), 'field' => tep_draw_input_field('firstname', isset($firstname) ? $firstname : $customer_first_name, 'size="20"'));
if (ACCOUNT_MIDDLE_NAME == 'true') {
    $address_fields['middle_name'] = array('title' => (ENTRY_MIDDLE_NAME_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_MIDDLE_NAME . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_MIDDLE_NAME) . (tep_not_null(ENTRY_MIDDLE_NAME_TEXT) ? '&nbsp;' . ENTRY_MIDDLE_NAME_TEXT : ''), 'field' => tep_draw_input_field('middlename', isset($middlename) ? $middlename : $customer_middle_name, 'size="20"'));
}
$address_fields['last_name'] = array('title' => (ENTRY_LAST_NAME_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_LAST_NAME . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_LAST_NAME) . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '&nbsp;' . ENTRY_LAST_NAME_TEXT : ''), 'field' => tep_draw_input_field('lastname', isset($lastname) ? $lastname : $customer_last_name, 'size="20"'));
$address_fields['country'] = array('title' => ENTRY_COUNTRY_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_COUNTRY . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_COUNTRY, 'field' => tep_get_country_list('country', '', 'onchange="if (this.form.postcode) this.form.postcode.focus();"') . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<br />' . "\n" . '<small>' . ENTRY_COUNTRY_TEXT . '</small>' : ''));
if (ACCOUNT_POSTCODE == 'true') {
    $address_fields['postcode'] = array('title' => (ENTRY_POSTCODE_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_POSTCODE . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_POSTCODE) . (tep_not_null(ENTRY_POSTCODE_TEXT) ? '&nbsp;' . ENTRY_POSTCODE_TEXT : ''), 'field' => tep_draw_input_field('postcode', '', 'size="20" onblur="loadCity(this.form, this.value);"') . (in_array(DOMAIN_ZONE, array('ru', 'by', 'ua', 'kz', 'us')) ? ' &nbsp; <small style="float: right;"><a href="#" onclick="var countryField = checkout_address.country; if (countryField.type==\'hidden\') countrySelected = countryField.value; else if (countryField.type==\'select-one\') countrySelected = countryField.options[countryField.selectedIndex].value; else countrySelected = 0; if (parseInt(countrySelected) &gt; 0) { document.getElementById(\'checkPostcode\').style.display = \'block\'; getXMLDOM(\'' . tep_href_link(FILENAME_LOADER, 'action=load_states', $request_type) . '&country=\'+countryField.value, \'postcodes\'); } else { alert(\'Пожалуйста, выберите страну!\'); } return false;">Я не знаю свой индекс</a></small>' : '') . '<div id="checkPostcode" style="background: #ECECEC; padding: 10px; border: 1px solid #D6D6D6; display: none; position: absolute;"><div id="postcodes"></div><a href="#" style="display: block; text-align: center;" onclick="document.getElementById(\'checkPostcode\').style.display=\'none\'; return false;">закрыть [x]</a></div>');
}
if (ACCOUNT_STATE == 'true') {
    $country_id = 0;
    if ($process != true) {
        $countries_check_query = tep_db_query("select countries_id from " . TABLE_COUNTRIES . "");
        if (tep_db_num_rows($countries_check_query) == 1) {
            $countries_check = tep_db_fetch_array($countries_check_query);
            $country_id = $countries_check['countries_id'];
        }
        if ($country_id > 0) {
            $zones_check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int) $country_id . "'");
            $zones_check = tep_db_fetch_array($zones_check_query);
            if ($zones_check['total'] > 0) {
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:checkout_new_address.php

示例15: tep_draw_pull_down_menu

            }
            echo tep_draw_pull_down_menu('state', $zones_array, 'class="form-control"');
        } else {
            echo tep_draw_input_field('state');
        }
    } else {
        echo tep_draw_input_field('state');
    }
    if (tep_not_null(ENTRY_STATE_TEXT)) {
    }
    ?>

  </div>
<?php 
}
?>
 <div class="form-group full-width margin-bottom"><label class="sr-only"></label>

    <?php 
echo ENTRY_COUNTRY;
?>
	<?php 
echo tep_get_country_list('country', isset($entry['entry_country_id']) ? $entry['entry_country_id'] : '', 'class="form-control"') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '' : '');
?>
  </div>
</div>
</div>
</div>


开发者ID:resultsonlyweb,项目名称:loaded6-template,代码行数:28,代码来源:checkout_new_address.php


注:本文中的tep_get_country_list函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。