• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP zen_draw_pull_down_menu函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
 }
开发者ID:badarac,项目名称:stock_by_attribute_1.5.4,代码行数:35,代码来源:pad_single_dropdown.php


示例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">&nbsp;<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;
    }
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:57,代码来源:product_notification.php


示例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));
}
开发者ID:lat9,项目名称:dbio,代码行数:12,代码来源:dbio_manager_functions.php


示例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);
 }
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:12,代码来源:googlefroogle.php


示例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) . '&nbsp;' . 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;
 }
开发者ID:avish-bisbeehurry-cko,项目名称:checkout-zencart-plugin,代码行数:14,代码来源:creditcardpci.php


示例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')));
 }
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:16,代码来源:digitalcheck_edy.php


示例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="#">&laquo;</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="#">&raquo;</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;
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:45,代码来源:split_page_results.php


示例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);
}
开发者ID:GetResponse,项目名称:GetResponse-ZenCart-Integration,代码行数:18,代码来源:ot_getresponse.php


示例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);
     }
 }
开发者ID:gofpay,项目名称:zencart-coupon,代码行数:20,代码来源:gofpay.php


示例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;
 }
开发者ID:badarac,项目名称:stock_by_attribute_1.5.4,代码行数:23,代码来源:pad_sba_single_dropdown.php


示例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;
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:24,代码来源:payflowpro.php


示例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') . '&nbsp;' . zen_draw_file_field('products_image') . '&nbsp;' . ($pInfo->products_image != '' ? TEXT_IMAGE_CURRENT . $pInfo->products_image : TEXT_IMAGE_CURRENT . '&nbsp;' . NONE) . zen_draw_hidden_field('products_previous_image', $pInfo->products_image);
?>
</td>
                <td valign = "center" class="main"><?php 
echo TEXT_PRODUCTS_IMAGE_DIR;
?>
&nbsp;<?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) . '&nbsp;' . TABLE_HEADING_NO . ' ' . zen_draw_radio_field('image_delete', '1', $on_image_delete) . '&nbsp;' . TABLE_HEADING_YES;
?>
</td>
	  	    	  </tr>

              <tr>
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:collect_info.php


示例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);
}
开发者ID:ZenMagick,项目名称:zc-base,代码行数:34,代码来源:html_output.php


示例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"') . '&nbsp;<span class="alert" id="stText">&nbsp;</span>';
            ?>
<br class="clearBoth" />

<?php 
            if (CART_SHIPPING_METHOD_ZIP_REQUIRED == "true") {
                ?>
<label class="inputLabel"><?php 
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:tpl_modules_shipping_estimator.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;
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:tpl_modules_product_listing.php


示例16: zen_draw_pull_down_menu

  			<tr><td><h2><?php 
    echo HEADING_SUB1;
    ?>
</h2></td></tr>
          <tr>
            <td class="main" colspan="2"><?php 
    echo TEXT_INSTRUCTIONS;
    ?>
</td>
          </tr>
					<tr>
						<td class="main"><strong><?php 
    echo TEXT_ACTIVITY_EXPORT_FORMAT;
    ?>
</strong><br /><?php 
    echo zen_draw_pull_down_menu('format', $available_export_formats, $format);
    ?>
</td>
					</tr>
					<tr>
						<td colspan="2"><?php 
    echo zen_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
					</tr>
					<tr>
						<td class="main"><strong><?php 
    echo TEXT_ACTIVITY_EXPORT_FILENAME;
    ?>
</strong><br /><?php 
    echo zen_draw_input_field('filename', htmlspecialchars($file, ENT_COMPAT, CHARSET, TRUE), ' size="60"');
开发者ID:zenmagick,项目名称:zencart,代码行数:31,代码来源:admin_activity.php


示例17: draw_optiontype_pulldown

function draw_optiontype_pulldown($name, $default = '')
{
    global $products_options_types_list;
    $values = array();
    foreach ($products_options_types_list as $id => $text) {
        $values[] = array('id' => $id, 'text' => $text);
    }
    return zen_draw_pull_down_menu($name, $values, $default);
}
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:9,代码来源:options_name_manager.php


示例18: echo_shipping_address_form


//.........这里部分代码省略.........
    <label class="control-label col-sm-4" for="street-address"><?php 
        echo self::required_text(ENTRY_STREET_ADDRESS_TEXT) . ENTRY_STREET_ADDRESS;
        ?>
</label>
    <div class='col-sm-8'>
    <?php 
        echo zen_draw_input_field('street_address', $entry->fields['entry_street_address'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_street_address', '40') . ' class="form-control" id="street-address"');
        ?>
    </div>
    </div>

    <?php 
        if (ACCOUNT_SUBURB == 'true') {
            ?>
    <div class='form-group'>
    <label class="control-label col-sm-4" for="suburb"><?php 
            echo self::required_text(ENTRY_SUBURB_TEXT) . ENTRY_SUBURB;
            ?>
</label>
    <div class='col-sm-8'>
    <?php 
            echo zen_draw_input_field('suburb', $entry->fields['entry_suburb'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_suburb', '40') . ' class="form-control" id="suburb"');
            ?>
    </div>
    </div>
    <?php 
        }
        ?>

    <div class='form-group'>
    <label class="control-label col-sm-4" for="city"><?php 
        echo self::required_text(ENTRY_CITY_TEXT) . ENTRY_CITY;
        ?>
</label>
    <div class='col-sm-8'>
    <?php 
        echo zen_draw_input_field('city', $entry->fields['entry_city'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' class="form-control" id="city"');
        ?>
    </div></div>

    <?php 
        if (ACCOUNT_STATE == 'true') {
            if ($flag_show_pulldown_states == true) {
                ?>
          <div class='form-group'>
          <label class="control-label col-sm-4" for="stateZone" class="form-control" id="zoneLabel">
            <?php 
                echo self::required_text(ENTRY_STATE_TEXT) . ENTRY_STATE;
                ?>
          </label>
          <div class='col-sm-8'>
    <?php 
                echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'class="form-control" id="stateZone"');
                echo '</div></div>';
            }
            ?>

    <div class='form-group' id='stateLabel'>
    <label class="control-label col-sm-4" for="state"><?php 
            echo self::required_text(ENTRY_STATE_TEXT) . ENTRY_STATE;
            ?>
</label>
    <!-- Elements with ids of `stText` & `stBreak` are required by Zencart,
         leaving them out breaks the auto-populating of the State dropdown when editing
         an address. -->
    <span id='stText'></span><span id='stBreak'></span>
    <div class='col-sm-8'>
    <?php 
            echo zen_draw_input_field('state', zen_get_zone_name($entry->fields['entry_country_id'], $entry->fields['entry_zone_id'], $entry->fields['entry_state']), zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' class="form-control" id="state"');
            if ($flag_show_pulldown_states == false) {
                echo zen_draw_hidden_field('zone_id', $zone_name, ' ');
            }
            ?>
    </div></div>
    <?php 
        }
        ?>

    <div class='form-group'>
    <label class="control-label col-sm-4" for="postcode"><?php 
        echo self::required_text(ENTRY_POST_CODE_TEXT) . ENTRY_POST_CODE;
        ?>
</label>
    <div class='col-sm-8'>
    <?php 
        echo zen_draw_input_field('postcode', $entry->fields['entry_postcode'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' class="form-control" id="postcode"');
        ?>
    </div></div>

    <div class='form-group'>
    <label class="control-label col-sm-4" for="country"><?php 
        echo self::required_text(ENTRY_COUNTRY_TEXT) . ENTRY_COUNTRY;
        ?>
</label>
    <div class='col-sm-8'>
    <?php 
        echo zen_get_country_list('zone_country_id', isset($entry->fields['entry_country_id']) ? $entry->fields['entry_country_id'] : $selected_country, 'class="form-control" id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : ''));
        ?>
    </div></div><?php 
    }
开发者ID:Southern-Exposure-Seed-Exchange,项目名称:Zencart-Bootstrap-Theme,代码行数:101,代码来源:sese_bootstrap_forms.php


示例19: zen_draw_pull_down_menu

<table class="border fit">
<?php 
    // show dropdown if set
    if (CONTACT_US_LIST != '') {
        ?>
<tr>
<th scope="row"><span class="required"><?php 
        echo TEXT_REQUIRED;
        ?>
</span><label><?php 
        echo SEND_TO_TEXT;
        ?>
</label></th>
<td><?php 
        echo zen_draw_pull_down_menu('send_to', $send_to_array, 'id=\\"send-to\\"');
        ?>
</td>
</tr>
<?php 
    }
    ?>

<tr>
<th scope="row"><span class="required"><?php 
    echo TEXT_REQUIRED;
    ?>
</span><label><?php 
    echo ENTRY_NAME;
    ?>
</label></th>
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:30,代码来源:tpl_contact_us_default.php


示例20: zen_draw_form

    ?>
</td>
<?php 
}
?>
    </tr></table></td>
  </tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr class="headerBar" height="20" width="100%">

    <td class="headerBarContent" align="left">
      <?php 
if (!$hide_languages) {
    echo zen_draw_form('languages', basename($PHP_SELF), '', 'get');
    echo DEFINE_LANGUAGE . '&nbsp;&nbsp;' . (sizeof($languages) > 1 ? zen_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"') : '');
    echo zen_hide_session_id();
    echo '</form>';
} else {
    echo '&nbsp;';
}
?>
    </td>
    <td class="headerBarContent" align="center"><b><?php 
echo date("r", time()) . 'GMT' . '&nbsp;[' . $_SERVER['REMOTE_ADDR'] . ' ]&nbsp;';
?>
</b></td>
    <td class="headerBarContent" align="right"><?php 
echo '<a href="' . zen_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_TOP . '</a>&nbsp;|&nbsp;<a href="' . ze 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP zen_draw_radio_field函数代码示例发布时间:2022-05-23
下一篇:
PHP zen_draw_products_pull_down_categories函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap