本文整理汇总了PHP中zen_draw_pull_down_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_draw_pull_down_menu函数的具体用法?PHP zen_draw_pull_down_menu怎么用?PHP zen_draw_pull_down_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_draw_pull_down_menu函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _draw_stocked_attributes
function _draw_stocked_attributes()
{
global $languages_id;
$z = array();
$out = '';
$attributes = $this->_build_attributes_array(true, false);
if (sizeof($attributes) > 0) {
$combinations = array();
$selected_combination = 0;
$this->_build_attributes_combinations($attributes, $this->show_out_of_stock == 'True', $this->mark_out_of_stock, $combinations, $selected_combination);
$combname = '';
foreach ($attributes as $attrib) {
$combname .= ', ' . $attrib['oname'];
}
$combname = substr($combname, 2) . ':';
$out .= "<tr>\n";
$out .= ' <td align="right" class="main"><b>' . $combname . "</b></td>\n <td class=\"main\">";
$z['comb'] = false;
$z['text'] = 'Please select from below';
$z['id'] = '0';
array_unshift($combinations, $z);
for ($i = 0; $i < sizeof($combinations); $i++) {
if (isset($_GET['products_id']) && $_SESSION['cart']->contents[$_GET['products_id']]) {
if ($combinations[$i]['comb'] == $_SESSION['cart']->contents[$_GET['products_id']]['attributes']) {
$selected_combination = $i;
}
}
}
$out .= zen_draw_pull_down_menu('attrcomb', $combinations, $combinations[$selected_combination]['id']);
$out .= "</td>\n";
$out .= "</tr>\n";
}
$out .= $this->_draw_out_of_stock_message_js($attributes);
return $out;
}
示例2: choose_audience
function choose_audience()
{
global $_GET, $db;
$products_array = array();
$products = $db->Execute("select pd.products_id, pd.products_name\r\n from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd\r\n where pd.language_id = '" . $_SESSION['languages_id'] . "'\r\n and pd.products_id = p.products_id\r\n and p.products_status = '1'\r\n order by pd.products_name");
while (!$products->EOF) {
$products_array[] = array('id' => $products->fields['products_id'], 'text' => $products->fields['products_name']);
$products->MoveNext();
}
$choose_audience_string = '<script language="javascript"><!--
function mover(move) {
if (move == \'remove\') {
for (x=0; x<(document.notifications.products.length); x++) {
if (document.notifications.products.options[x].selected) {
with(document.notifications.elements[\'chosen[]\']) {
options[options.length] = new Option(document.notifications.products.options[x].text,document.notifications.products.options[x].value);
}
document.notifications.products.options[x] = null;
x = -1;
}
}
}
if (move == \'add\') {
for (x=0; x<(document.notifications.elements[\'chosen[]\'].length); x++) {
if (document.notifications.elements[\'chosen[]\'].options[x].selected) {
with(document.notifications.products) {
options[options.length] = new Option(document.notifications.elements[\'chosen[]\'].options[x].text,document.notifications.elements[\'chosen[]\'].options[x].value);
}
document.notifications.elements[\'chosen[]\'].options[x] = null;
x = -1;
}
}
}
return true;
}
function selectAll(FormName, SelectBox) {
temp = "document." + FormName + ".elements[\'" + SelectBox + "\']";
Source = eval(temp);
for (x=0; x<(Source.length); x++) {
Source.options[x].selected = "true";
}
if (x<1) {
alert(\'' . JS_PLEASE_SELECT_PRODUCTS . '\');
return false;
} else {
return true;
}
}
//--></script>';
$global_button = '<script language="javascript"><!--' . "\n" . 'document.write(\'<input type="button" value="' . BUTTON_GLOBAL . '" style="width: 8em;" onclick="document.location=\\\'' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm&global=true') . '\\\'">\');' . "\n" . '//--></script><noscript><a href="' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm&global=true') . '">[ ' . BUTTON_GLOBAL . ' ]</a></noscript>';
$cancel_button = '<script language="javascript"><!--' . "\n" . 'document.write(\'<input type="button" value="' . BUTTON_CANCEL . '" style="width: 8em;" onclick="document.location=\\\'' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '\\\'">\');' . "\n" . '//--></script><noscript><a href="' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">[ ' . BUTTON_CANCEL . ' ]</a></noscript>';
$choose_audience_string .= '<form name="notifications" action="' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm') . '" method="post" onSubmit="return selectAll(\'notifications\', \'chosen[]\')"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td align="center" class="main"><b>' . TEXT_PRODUCTS . '</b><br />' . zen_draw_pull_down_menu('products', $products_array, '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . ' <td align="center" class="main"> <br />' . $global_button . '<br /><br /><br /><input type="button" value="' . BUTTON_SELECT . '" style="width: 8em;" onClick="mover(\'remove\');"><br /><br /><input type="button" value="' . BUTTON_UNSELECT . '" style="width: 8em;" onClick="mover(\'add\');"><br /><br /><br /><input type="submit" value="' . BUTTON_SUBMIT . '" style="width: 8em;"><br /><br />' . $cancel_button . '</td>' . "\n" . ' <td align="center" class="main"><b>' . TEXT_SELECTED_PRODUCTS . '</b><br />' . zen_draw_pull_down_menu('chosen[]', array(), '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . ' </tr>' . "\n" . '</table></form>';
return $choose_audience_string;
}
示例3: dbioDrawOrdersStatusDropdown
function dbioDrawOrdersStatusDropdown($field_name)
{
global $db;
$status_array = array(array('id' => 0, 'text' => TEXT_ALL_ORDERS_STATUS_VALUES));
$status_info = $db->Execute("SELECT orders_status_id as `id`, orders_status_name as `text` FROM " . TABLE_ORDERS_STATUS . " WHERE language_id = " . (int) $_SESSION['languages_id'] . " ORDER BY orders_status_id ASC");
while (!$status_info->EOF) {
$status_info->fields['text'] .= ' [' . $status_info->fields['id'] . ']';
$status_array[] = $status_info->fields;
$status_info->MoveNext();
}
return zen_draw_pull_down_menu($field_name, $status_array, dbioGetFieldValue($field_name));
}
示例4: zen_cfg_pull_down_languages_list
function zen_cfg_pull_down_languages_list($languages_id, $key = '')
{
global $db;
$name = $key ? 'configuration[' . $key . ']' : 'configuration_value';
$languages = $db->execute("select code, name from " . TABLE_LANGUAGES);
$languages_array = array();
while (!$languages->EOF) {
$languages_array[] = array('id' => $languages->fields['name'], 'text' => $languages->fields['name']);
$languages->MoveNext();
}
return zen_draw_pull_down_menu($name, $languages_array, $languages_id);
}
示例5: selection
public function selection()
{
global $order;
for ($i = 1; $i < 13; $i++) {
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B - (%m)', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
for ($i = $today['year']; $i < $today['year'] + 15; $i++) {
$expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$onFocus = ' onfocus="methodSelect(\'pmt-' . $this->code . '\')"';
$selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_CHECKOUTAPIPAYMENT_CREDITCARD_OWNER, 'field' => zen_draw_input_field('checkoutapipayment_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'], 'id="' . $this->code . '-cc-owner"' . $onFocus . ' autocomplete="off"'), 'tag' => $this->code . '-cc-owner'), array('title' => MODULE_PAYMENT_CHECKOUTAPIPAYMENT_CREDITCARD_NUMBER, 'field' => zen_draw_input_field('checkoutapipayment_cc_number', $ccnum, 'id="' . $this->code . '-cc-number"' . $onFocus . ' autocomplete="off"'), 'tag' => $this->code . '-cc-number'), array('title' => MODULE_PAYMENT_CHECKOUTAPIPAYMENT_CREDITCARD_EXPIRY, 'field' => zen_draw_pull_down_menu('checkoutapipayment_cc_expires_month', $expires_month, strftime('%m'), 'id="' . $this->code . '-cc-expires-month"' . $onFocus) . ' ' . zen_draw_pull_down_menu('checkoutapipayment_cc_expires_year', $expires_year, '', 'id="' . $this->code . '-cc-expires-year"' . $onFocus), 'tag' => $this->code . '-cc-expires-month'), array('title' => MODULE_PAYMENT_CHECKOUTAPIPAYMENT_CREDITCARD_CVC, 'field' => zen_draw_input_field('checkoutapipayment_cc_cvv', '', 'size="4" maxlength="4"' . ' id="' . $this->code . '-cc-cvv"' . $onFocus . ' autocomplete="off"') . ' ' . '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_CVV_HELP) . '\')">' . MODULE_PAYMENT_CHECKOUTAPIPAYMENT_TEXT_POPUP_CVV_LINK . '</a>', 'tag' => $this->code . '-cc-cvv')));
return $selection;
}
示例6: selection
function selection()
{
$mobile_base[] = array('id' => '@docomo.ne.jp', 'text' => '@docomo.ne.jp');
$mobile_base[] = array('id' => '@ezweb.ne.jp', 'text' => '@ezweb.ne.jp');
$mobile_base[] = array('id' => '@softbank.ne.jp', 'text' => '@softbank.ne.jp');
$mobile_base[] = array('id' => '@d.vodafone.ne.jp', 'text' => '@d.vodafone.ne.jp');
$mobile_base[] = array('id' => '@h.vodafone.ne.jp', 'text' => '@h.vodafone.ne.jp');
$mobile_base[] = array('id' => '@t.vodafone.ne.jp', 'text' => '@t.vodafone.ne.jp');
$mobile_base[] = array('id' => '@c.vodafone.ne.jp', 'text' => '@c.vodafone.ne.jp');
$mobile_base[] = array('id' => '@r.vodafone.ne.jp', 'text' => '@r.vodafone.ne.jp');
$mobile_base[] = array('id' => '@k.vodafone.ne.jp', 'text' => '@k.vodafone.ne.jp');
$mobile_base[] = array('id' => '@n.vodafone.ne.jp', 'text' => '@n.vodafone.ne.jp');
$mobile_base[] = array('id' => '@s.vodafone.ne.jp', 'text' => '@s.vodafone.ne.jp');
$mobile_base[] = array('id' => '@q.vodafone.ne.jp', 'text' => '@q.vodafone.ne.jp');
return array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_DIGITALCHECK_EDY_TEXT_MOBILE_EMAIL, 'field' => zen_draw_input_field('digitalcheck_edy_mobile_email', $_SESSION[$this->code . '-mobile-email'], 'id="' . $this->code . '-mobile-email" size="10"') . zen_draw_pull_down_menu('digitalcheck_edy_mobile_base', $mobile_base, $_SESSION[$this->code . '-mobile-base'], 'id="' . $this->code . '-mobile-base"'), 'tag' => $this->code . '-mobile-email')));
}
示例7: display_links
function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
{
if (zen_not_null($parameters) && substr($parameters, -1) != '&') {
$parameters .= '&';
}
// calculate number of pages needing links
$num_pages = ceil($query_numrows / $max_rows_per_page);
$pages_array = array();
for ($i = 1; $i <= $num_pages; $i++) {
$pages_array[] = array('id' => $i, 'text' => $i);
}
if ($num_pages > 1) {
$display_links = zen_draw_form_admin('pages', basename($_SERVER['SCRIPT_NAME']), '', 'get');
$display_links .= '<ul class="pagination">';
if ($current_page_number > 1) {
$display_links .= '<li><a href="' . zen_href_link_admin(basename($_SERVER['SCRIPT_NAME']), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a></li>';
} else {
$display_links .= '<li><a href="#">«</a></li>';
}
$display_links .= sprintf(TEXT_RESULT_PAGE, zen_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onChange="this.form.submit();"'), $num_pages);
if ($current_page_number < $num_pages && $num_pages != 1) {
$display_links .= '<li><a href="' . zen_href_link_admin(basename($_SERVER['SCRIPT_NAME']), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a></li>';
} else {
$display_links .= '<li><a href="#">»</a></li>';
}
if ($parameters != '') {
if (substr($parameters, -1) == '&') {
$parameters = substr($parameters, 0, -1);
}
$pairs = explode('&', $parameters);
while (list(, $pair) = each($pairs)) {
list($key, $value) = explode('=', $pair);
$display_links .= zen_draw_hidden_field(rawurldecode($key), rawurldecode($value));
}
}
if (SID) {
$display_links .= zen_draw_hidden_field(zen_session_name(), zen_session_id());
}
$display_links .= '</ul>';
$display_links .= '</form>';
} else {
$display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
}
return $display_links;
}
示例8: gr_edit
function gr_edit($id, $key = '')
{
$name = $key ? 'configuration[' . $key . ']' : 'configuration_value';
$gr_campaig = array(array('id' => '0', 'text' => TEXT_NONE));
$api_key = MODULE_ORDER_TOTAL_GETRESPONSE_API_KEY;
if (!empty($api_key)) {
try {
$client = new GetResponseAPI3($api_key);
$result = $client->getCampaigns();
foreach ($result as $k) {
$gr_campaig[] = array('id' => $k->name, 'text' => $k->name);
}
} catch (Exception $e) {
error_log($e->getMessage());
}
}
return zen_draw_pull_down_menu($name, $gr_campaig, $id);
}
示例9: selection
function selection()
{
global $order;
if (MODULE_PAYMENT_GOFPAY_MODE == "Api") {
$expires_month[] = array("id" => "", "text" => MODULE_PAYMENT_GOFPAY_TEXT_MONTH);
$expires_year[] = array("id" => "", "text" => MODULE_PAYMENT_GOFPAY_TEXT_YEAR);
for ($i = 1; $i < 13; $i++) {
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%m', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
for ($i = $today['year']; $i < $today['year'] + 24; $i++) {
$expires_year[] = array('id' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$onFocus = ' onfocus="methodSelect(\'pmt-' . $this->code . '\')"';
$selection = array('id' => $this->code, 'module' => str_replace('*', rtrim(MODULE_PAYMENT_GOFPAY_HANDLER, '/') . '/tools/logos?websiteid=' . MODULE_PAYMENT_GOFPAY_WEBSITE_ID . '&size=middle&transparent=true', MODULE_PAYMENT_GOFPAY_TEXT_CATALOG_LOGO), 'fields' => array(array('title' => MODULE_PAYMENT_GOFPAY_TEXT_CREDIT_CARD_NUMBER, 'field' => zen_draw_input_field('cardNo', '', 'id="' . $this->code . '-cardNo" maxlength="16"' . $onFocus), 'tag' => $this->code . '-cardNo'), array('title' => MODULE_PAYMENT_GOFPAY_TEXT_CREDIT_CARD_EXPIRES, 'field' => zen_draw_pull_down_menu('expires_month', $expires_month, '-------', 'id="' . $this->code . '-expires-month"' . $onFocus) . zen_draw_pull_down_menu('expires_year', $expires_year, '-------', 'id="' . $this->code . '-expires-year"' . $onFocus) . zen_draw_hidden_field('mypretime', '0'), 'tag' => $this->code . '-expires-month'), array('title' => MODULE_PAYMENT_GOFPAY_TEXT_CREDIT_CARD_CVV, 'field' => zen_draw_input_field('cvv', '', ' id="' . $this->code . '-cvv" size="3" maxlength="3"' . $onFocus) . MODULE_PAYMENT_GOFPAY_TEXT_CREDIT_CARD_EXPIRES_WHATISTHIS, 'tag' => $this->code . '-cvv')));
return $selection;
} else {
return array('id' => $this->code, 'module' => str_replace('*', rtrim(MODULE_PAYMENT_GOFPAY_HANDLER, '/') . '/tools/logos?websiteid=' . MODULE_PAYMENT_GOFPAY_WEBSITE_ID . '&size=middle&transparent=true', MODULE_PAYMENT_GOFPAY_TEXT_CATALOG_LOGO), 'icon' => MODULE_PAYMENT_GUFPAY_TEXT_CATALOG_LOGO);
}
}
示例10: _draw_stocked_attributes
function _draw_stocked_attributes()
{
global $languages_id;
$out = '';
$attributes = $this->_build_attributes_array(true, false);
if (sizeof($attributes) > 0) {
$combinations = array();
$selected_combination = 0;
$this->_build_attributes_combinations($attributes, $this->show_out_of_stock == 'True', $this->mark_out_of_stock, $combinations, $selected_combination);
$combname = '';
foreach ($attributes as $attrib) {
$combname .= ', ' . $attrib['oname'];
}
$combname = substr($combname, 2) . ':';
$out .= "<tr>\n";
$out .= ' <td align="right" class="main"><b>' . $combname . "</b></td>\n <td class=\"main\">";
$out .= zen_draw_pull_down_menu('attrcomb', $combinations, $combinations[$selected_combination]['id']);
$out .= "</td>\n";
$out .= "</tr>\n";
}
$out .= $this->_draw_out_of_stock_message_js($attributes);
return $out;
}
示例11: selection
function selection()
{
global $order;
$expireMonths = array();
for ($i = 1; $i < 13; $i++) {
$expireMonths[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
$expireYears = array();
for ($i = $today['year']; $i < $today['year'] + 15; $i++) {
$expireYears[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => tra('Name On Card'), 'field' => zen_draw_input_field('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('field' => '<div class="row"><div class="col-xs-8 col-sm-8"><label class="control-label">' . tra('Card Number') . '</label>' . zen_draw_input_field('cc_number', BitBase::getParameter($_SESSION, 'cc_number'), NULL, 'number') . '</div><div class="col-xs-4 col-sm-4"><label class="control-label"><i class="icon-credit-card"></i> ' . tra('CVV Number') . '</label>' . zen_draw_input_field('cc_cvv', BitBase::getParameter($_SESSION, 'cc_cvv'), NULL, 'number') . '</div></div>'), array('title' => tra('Expiration Date'), 'field' => '<div class="row"><div class="col-xs-7 col-sm-9">' . zen_draw_pull_down_menu('cc_expires_month', $expireMonths, BitBase::getParameter($_SESSION, 'cc_expires_month'), ' class="input-small" ') . '</div><div class="col-xs-5 col-sm-3">' . zen_draw_pull_down_menu('cc_expires_year', $expireYears, substr(BitBase::getParameter($_SESSION, 'cc_expires_year', date('Y') + 1), -2), ' class="input-small" ') . '</div></div>')));
if (!empty($_SESSION[$this->code . '_error']['name'])) {
$selection['fields'][0]['error'] = $_SESSION[$this->code . '_error']['name'];
}
if (!empty($_SESSION[$this->code . '_error']['number'])) {
$selection['fields'][1]['error'] = $_SESSION[$this->code . '_error']['number'];
}
if (!empty($_SESSION[$this->code . '_error']['date'])) {
$selection['fields'][2]['error'] = $_SESSION[$this->code . '_error']['date'];
}
return $selection;
}
示例12: zen_draw_separator
<tr>
<td class="main" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main"><?php
echo TEXT_PRODUCTS_IMAGE;
?>
</td>
<td class="main"><?php
echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_file_field('products_image') . ' ' . ($pInfo->products_image != '' ? TEXT_IMAGE_CURRENT . $pInfo->products_image : TEXT_IMAGE_CURRENT . ' ' . NONE) . zen_draw_hidden_field('products_previous_image', $pInfo->products_image);
?>
</td>
<td valign = "center" class="main"><?php
echo TEXT_PRODUCTS_IMAGE_DIR;
?>
<?php
echo zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory);
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo zen_draw_separator('pixel_trans.gif', '24', '15');
?>
</td>
<td class="main" valign="top"><?php
echo TEXT_IMAGES_DELETE . ' ' . zen_draw_radio_field('image_delete', '0', $off_image_delete) . ' ' . TABLE_HEADING_NO . ' ' . zen_draw_radio_field('image_delete', '1', $on_image_delete) . ' ' . TABLE_HEADING_YES;
?>
</td>
</tr>
<tr>
示例13: zen_get_country_list
function zen_get_country_list($name, $selected = '', $parameters = '')
{
$countriesAtTopOfList = array();
$countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
$countries = zen_get_countries();
// Set some default entries at top of list:
if (STORE_COUNTRY != SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY) {
$countriesAtTopOfList[] = SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
}
$countriesAtTopOfList[] = STORE_COUNTRY;
// IF YOU WANT TO ADD MORE DEFAULTS TO THE TOP OF THIS LIST, SIMPLY ENTER THEIR NUMBERS HERE.
// Duplicate more lines as needed
// Example: Canada is 108, so use 108 as shown:
//$countriesAtTopOfList[] = 108;
//process array of top-of-list entries:
foreach ($countriesAtTopOfList as $key => $val) {
$countries_array[] = array('id' => $val, 'text' => zen_get_country_name($val));
}
// now add anything not in the defaults list:
for ($i = 0, $n = sizeof($countries); $i < $n; $i++) {
$alreadyInList = FALSE;
foreach ($countriesAtTopOfList as $key => $val) {
if ($countries[$i]['countries_id'] == $val) {
// If you don't want to exclude entries already at the top of the list, comment out this next line:
$alreadyInList = TRUE;
continue;
}
}
if (!$alreadyInList) {
$countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);
}
}
return zen_draw_pull_down_menu($name, $countries_array, $selected, $parameters);
}
示例14: zen_get_country_list
?>
<label class="inputLabel" for="country"><?php
echo ENTRY_COUNTRY;
?>
</label>
<?php
echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" onchange="update_zone(this.form);"');
?>
<br class="clearBoth" /> <label class="inputLabel" for="stateZone"
id="zoneLabel"><?php
echo ENTRY_STATE;
?>
</label>
<?php
echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $state_zone_id, 'id="stateZone"');
?>
<br class="clearBoth" id="stBreak" /> <label class="inputLabel"
for="state" id="stateLabel"><?php
echo $state_field_label;
?>
</label>
<?php
echo zen_draw_input_field('state', $selectedState, zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"') . ' <span class="alert" id="stText"> </span>';
?>
<br class="clearBoth" />
<?php
if (CART_SHIPPING_METHOD_ZIP_REQUIRED == "true") {
?>
<label class="inputLabel"><?php
示例15: zen_href_link
<a href="<?php
echo zen_href_link($current_page, 'cPath=' . $current_category_id . '/Free-Shipping-' . $listTypes) . postfixUrl();
?>
"> Free Shipping
</a> </span>
<?php
break;
}
?>
</li>
<li><strong>Sorted By: </strong><?php
echo zen_draw_pull_down_menu('productsort', $productsort, isset($_GET['productsort']) ? $_GET['productsort'] : '', 'onchange="changeSort(this,\'' . cleanSameArg('productsort') . '\');" class="select" rel="dropdown"');
?>
</li>
<li><strong>Show: </strong> <?php
echo zen_draw_pull_down_menu('pagesize', $pagesize, isset($_GET['pagesize']) ? $_GET['pagesize'] : '20', 'onchange="changePagesize(this,\'' . cleanSameArg('pagesize') . '\');" class="select1" rel="dropdown"');
?>
</ul>
</div>
<?php
switch ($listTypes) {
//caizhouqing update pro_list
case '2':
require $template->get_template_dir('tpl_grid_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_grid_display.php';
break;
case '3':
require $template->get_template_dir('tpl_gallery_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_gallery_display.php';
break;
default:
require $template->get_template_dir('tpl_tabular_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_tabular_display.php';
break;