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


PHP olc_draw_pull_down_menu函数代码示例

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


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

示例1: affiliate_get_level_list

/**
 * affiliate_get_level_list()
 *
 * @param $name
 * @param string $selected
 * @param string $parameters
 * @return Dropdown Listbox.  Note personal level value is  AFFILIATE_TIER_LEVELS + 1
 **/
function affiliate_get_level_list($name, $selected = '', $parameters = '')
{
    $status_array = array(array('id' => '', 'text' => TEXT_AFFILIATE_ALL_LEVELS));
    $status_array[] = array('id' => '0', 'text' => TEXT_AFFILIATE_PERSONAL_LEVEL);
    for ($i = 1; $i <= AFFILIATE_TIER_LEVELS; $i++) {
        $status_array[] = array('id' => $i, 'text' => TEXT_AFFILIATE_LEVEL_SUFFIX . $i);
    }
    return olc_draw_pull_down_menu($name, $status_array, $selected, $parameters);
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:17,代码来源:affiliate_get_level_list.inc.php

示例2: olc_get_country_list

function olc_get_country_list($name, $selected = '', $parameters = '')
{
    //    $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
    //    Probleme mit register_globals=off -> erstmal nur auskommentiert. Kann u.U. gelöscht werden.
    $countries = olc_get_countries();
    $countries_array = array();
    for ($i = 0, $n = sizeof($countries); $i < $n; $i++) {
        $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);
    }
    return olc_draw_pull_down_menu($name, $countries_array, $selected, $parameters);
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:11,代码来源:134.php

示例3: affiliate_get_status_list

/**
 * affiliate_get_status_list()
 *
 * @param $name
 * @param string $selected
 * @param string $parameters
 * @param bool $show_all - show "All Status" or not
 * @return  Dropdown listbox with order status
 **/
function affiliate_get_status_list($name, $selected = '', $parameters = '', $show_all = true)
{
    if ($show_all == true) {
        $status_array = array(array('id' => '', 'text' => TEXT_AFFILIATE_ALL_STATUS));
    } else {
        $status_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
    }
    $status = affiliate_get_status_array();
    for ($i = 0, $n = sizeof($status); $i < $n; $i++) {
        $status_array[] = array('id' => $status[$i]['orders_status_id'], 'text' => $status[$i]['orders_status_name']);
    }
    return olc_draw_pull_down_menu($name, $status_array, $selected, $parameters);
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:22,代码来源:004.php

示例4: selection

 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = 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' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_FIRST_NAME, 'field' => olc_draw_input_field('pm_2checkout_cc_owner_firstname', $order->billing['firstname'])), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_LAST_NAME, 'field' => olc_draw_input_field('pm_2checkout_cc_owner_lastname', $order->billing['lastname'])), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_NUMBER, 'field' => olc_draw_input_field('pm_2checkout_cc_number')), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_EXPIRES, 'field' => olc_draw_pull_down_menu('pm_2checkout_cc_expires_month', $expires_month) . HTML_NBSP . olc_draw_pull_down_menu('pm_2checkout_cc_expires_year', $expires_year)), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => olc_draw_input_field('pm_2checkout_cc_cvv', EMPTY_STRING, 'size="4" maxlength="3"') . '&nbsp;<small>' . MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small>')));
     return $selection;
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:13,代码来源:pm2checkout.php

示例5: selection

 function selection()
 {
     global $order;
     if (MODULE_PAYMENT_PSIGATE_INPUT_MODE == 'Local') {
         for ($i = 1; $i < 13; $i++) {
             $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
         }
         $today = getdate();
         for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
             $expires_year[] = 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' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_OWNER, 'field' => $order->billing['firstname'] . BLANK . $order->billing['lastname']), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_NUMBER, 'field' => olc_draw_input_field('psigate_cc_number')), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_EXPIRES, 'field' => olc_draw_pull_down_menu('psigate_cc_expires_month', $expires_month) . HTML_NBSP . olc_draw_pull_down_menu('psigate_cc_expires_year', $expires_year))));
     } else {
         $selection = array('id' => $this->code, 'module' => $this->title);
     }
     return $selection;
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:17,代码来源:psigate.php

示例6: affiliate_period

/**
 * affiliate_period()
 *
 * @param $start_year
 * @param $start_month
 * @param boolean $return_dropdown
 * @param string $selected_period
 * @return
 **/
function affiliate_period($name, $start_year, $start_month, $return_dropdown = TRUE, $selected_period = '', $parameters)
{
    $return_array = array(array('id' => '', 'text' => TEXT_AFFILIATE_ALL_PERIODS));
    for ($period_year = $start_year; $period_year <= date("Y"); $period_year++) {
        for ($period_month = 1; $period_month <= 12; $period_month++) {
            if ($period_year == $start_year && $period_month < $start_month) {
                continue;
            }
            if ($period_year == date("Y") && $period_month > date("m")) {
                continue;
            }
            $return_array[] = array('id' => $period_year . '-' . $period_month, 'text' => $period_year . '-' . $period_month);
        }
    }
    if ($return_dropdown) {
        return olc_draw_pull_down_menu($name, $return_array, $selected_period, $parameters);
    }
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:27,代码来源:007.php

示例7: display_links

 function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
 {
     if (olc_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 = olc_draw_form('pages', CURRENT_SCRIPT, '', 'get');
         if ($current_page_number > 1) {
             $display_links .= HTML_A_START . olc_href_link(CURRENT_SCRIPT, $parameters . $page_name . '=' . ($current_page_number - 1), NONSSL) . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a>&nbsp;&nbsp;';
         } else {
             $display_links .= PREVNEXT_BUTTON_PREV . '&nbsp;&nbsp;';
         }
         $display_links .= sprintf(TEXT_RESULT_PAGE, olc_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 .= '&nbsp;&nbsp;<a href="' . olc_href_link(CURRENT_SCRIPT, $parameters . $page_name . '=' . ($current_page_number + 1), NONSSL) . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . HTML_A_END;
         } else {
             $display_links .= '&nbsp;&nbsp;' . PREVNEXT_BUTTON_NEXT;
         }
         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 .= olc_draw_hidden_field(rawurldecode($key), rawurldecode($value));
             }
         }
         if (SID) {
             $display_links .= olc_draw_hidden_field(session_name(), session_id());
         }
         $display_links .= '</form>';
     } else {
         $display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
     }
     return $display_links;
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:43,代码来源:split_page_results.php

示例8: array

     $contents = array('form' => olc_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&action=insert'));
     $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
     $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_NAME . HTML_BR . olc_draw_input_field('countries_name'));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_2 . HTML_BR . olc_draw_input_field('countries_iso_code_2'));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_3 . HTML_BR . olc_draw_input_field('countries_iso_code_3'));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_ADDRESS_FORMAT . HTML_BR . olc_draw_pull_down_menu('address_format_id', olc_get_address_formats()));
     $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . '&nbsp;<a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 case 'edit':
     $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_EDIT_COUNTRY . HTML_B_END);
     $contents = array('form' => olc_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=save'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_NAME . HTML_BR . olc_draw_input_field('countries_name', $cInfo->countries_name));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_2 . HTML_BR . olc_draw_input_field('countries_iso_code_2', $cInfo->countries_iso_code_2));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_3 . HTML_BR . olc_draw_input_field('countries_iso_code_3', $cInfo->countries_iso_code_3));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_ADDRESS_FORMAT . HTML_BR . olc_draw_pull_down_menu('address_format_id', olc_get_address_formats(), $cInfo->address_format_id));
     $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 case 'delete':
     $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_COUNTRY . HTML_B_END);
     $contents = array('form' => olc_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br/><b>' . $cInfo->countries_name . HTML_B_END);
     $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 default:
     if (is_object($cInfo)) {
         $heading[] = array('text' => HTML_B_START . $cInfo->countries_name . HTML_B_END);
         $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
         $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_NAME . HTML_BR . $cInfo->countries_name);
         $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_2 . BLANK . $cInfo->countries_iso_code_2);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:countries.php

示例9: olc_draw_pull_down_menu

?>
</td>
            <td class="main" align="right"><?php 
echo TITLE_TYPE . BLANK . olc_draw_pull_down_menu('type', $type_array, $_GET['type'] ? $_GET['type'] : 'daily', 'onchange="this.form.submit();"');
?>
<noscript><input type="submit" value="GO"></noscript><br/>
<?php 
switch ($_GET['type']) {
    case 'yearly':
        break;
    case 'monthly':
        echo TITLE_YEAR . BLANK . olc_draw_pull_down_menu('year', $years_array, $_GET['year'] ? $_GET['year'] : date('Y'), 'onchange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
        break;
    default:
    case 'daily':
        echo TITLE_MONTH . BLANK . olc_draw_pull_down_menu('month', $months_array, $_GET['month'] ? $_GET['month'] : date('n'), 'onchange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript><br/>' . TITLE_YEAR . BLANK . olc_draw_pull_down_menu('year', $years_array, $_GET['year'] ? $_GET['year'] : date('Y'), 'onchange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
        break;
}
?>
            </td>
          <?php 
echo olc_draw_hidden_field('page', $_GET['page']) . olc_draw_hidden_field('bID', $_GET['bID']);
?>
</form></tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
echo olc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:banner_statistics.php

示例10: array

                $cid_db = $cInfo->customers_id;
            }
            $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_CUSTOMER . HTML_B_END);
            $contents = array('form' => olc_draw_form('customers', FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cid_db . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_DELETE_INTRO . '<br/><br/><b>' . $cInfo->customers_firstname . BLANK . $cInfo->customers_lastname . HTML_B_END);
            if ($cInfo->number_of_reviews > 0) {
                $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_reviews', 'on', true) . BLANK . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews));
            }
            $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
            break;
        case 'editstatus':
            if ($cId != 1) {
                $customers_history_query = olc_db_query(SELECT . "new_value, old_value, date_added, customer_notified from " . TABLE_CUSTOMERS_STATUS_HISTORY . " where customers_id = '" . $cId_db . "' order by customers_status_history_id desc");
                $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_STATUS_CUSTOMER . HTML_B_END);
                $contents = array('form' => olc_draw_form('customers', FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=statusconfirm'));
                $contents[] = array('text' => HTML_BR . olc_draw_pull_down_menu('status', $customers_statuses_array, $cInfo->customers_status));
                $contents[] = array('text' => '
				<table nowrap="nowrap" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td style="border-bottom: 1px solid; border-color: #000000;" nowrap="nowrap" class="smallText" align="center">
						<b>' . TABLE_HEADING_NEW_VALUE . '</b>
					</td>
					<td style="border-bottom: 1px solid; border-color: #000000;" nowrap="nowrap" class="smallText" align="center">
						<b>' . TABLE_HEADING_DATE_ADDED . '</b>
					</td>
			</tr>
			');
                if (olc_db_num_rows($customers_history_query)) {
                    while ($customers_history = olc_db_fetch_array($customers_history_query)) {
                        $contents[] = array('text' => '<tr>' . NEW_LINE . '<td class="smallText">' . $customers_statuses_array[$customers_history['new_value']]['text'] . '</td>' . NEW_LINE . '<td class="smallText" align="center">' . olc_datetime_short($customers_history['date_added']) . '</td>' . NEW_LINE . '<td class="smallText" align="center">');
                        $contents[] = array('text' => '</tr>' . NEW_LINE);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:customers.php

示例11: olc_draw_input_field

	<td class="main"><?php 
    echo TEXT_BANNERS_URL;
    ?>
</td>
	<td class="main"><?php 
    echo olc_draw_input_field('banners_url', $bInfo->banners_url);
    ?>
</td>
	</tr>
	<tr>
	<td class="main" valign="top"><?php 
    echo TEXT_BANNERS_GROUP;
    ?>
</td>
	<td class="main"><?php 
    echo olc_draw_pull_down_menu('banners_group', $groups_array, $bInfo->banners_group) . TEXT_BANNERS_NEW_GROUP . HTML_BR . olc_draw_input_field('new_banners_group', EMPTY_STRING, EMPTY_STRING, sizeof($groups_array) > 0 ? false : true);
    ?>
</td>
	</tr>
	<tr>
	<td colspan="2"><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
	</tr>
	<tr>
	<td class="main" valign="top"><?php 
    echo TEXT_BANNERS_IMAGE;
    ?>
</td>
	<td class="main"><?php 
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:banner_manager.php

示例12: reset

require_once DIR_FS_INC . 'olc_draw_form.inc.php';
require_once DIR_FS_INC . 'olc_draw_pull_down_menu.inc.php';
require_once DIR_FS_INC . 'olc_draw_hidden_field.inc.php';
require_once DIR_FS_INC . 'olc_hide_session_id.inc.php';
$count_cur = 0;
if (is_object($currencies)) {
    reset($currencies->currencies);
    $currencies_array = array();
    while (list($key, $value) = each($currencies->currencies)) {
        $count_cur++;
        $currencies_array[] = array('id' => $key, 'text' => $value['title']);
    }
}
// dont show box if there's only 1 currency
if ($count_cur > 1) {
    $hidden_get_variables = EMPTY_STRING;
    reset($_GET);
    $exclude = array('currency', olc_session_name(), 'x', 'y');
    while (list($key, $value) = each($_GET)) {
        if (!in_array($key, $exclude)) {
            $hidden_get_variables .= olc_draw_hidden_field($key, $value);
        }
    }
    // reset var
    olc_smarty_init($box_smarty, $cacheid);
    $box_content = EMPTY_STRING;
    $box_content = olc_draw_form('currencies', olc_href_link(CURRENT_SCRIPT, EMPTY_STRING, $request_type, false), 'get') . olc_draw_pull_down_menu('currency', $currencies_array, SESSION_CURRENCY, 'onchange="this.form.submit();"') . $hidden_get_variables . olc_hide_session_id() . '</form>';
    $box_smarty->assign('BOX_CONTENT', $box_content);
    $box_currencies = $box_smarty->fetch(CURRENT_TEMPLATE_BOXES . 'box_currencies' . HTML_EXT, $cacheid);
    $smarty->assign('box_CURRENCIES', $box_currencies);
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:currencies.php

示例13: olc_db_query

    }
    if (!$manufacturers_id) {
        $products_id = $_GET['products_id'];
        if ($products_id) {
            $manufacturers_query = olc_db_query("select manufacturers_id from " . TABLE_PRODUCTS . " where products_id = " . $products_id);
            if (olc_db_num_rows($manufacturers_query)) {
                $products_data = olc_db_fetch_array($manufacturers_query);
                $manufacturers_id = $products_data['manufacturers_id'];
            }
        } else {
            $manufacturers_id = $_GET['filter_id'];
        }
    }
    $form_name_text = 'manufacturers';
    if (USE_AJAX) {
        $onchange = "make_AJAX_Request_POST('" . $form_name_text . "','" . FILENAME_DEFAULT . "')";
    } else {
        $onchange = 'this.form.submit()';
    }
    $box_content = olc_draw_form($form_name_text, olc_href_link(FILENAME_DEFAULT, EMPTY_STRING, NONSSL, false), 'get');
    $box_content .= olc_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $manufacturers_id, 'onchange="' . $onchange . '" size="' . MAX_MANUFACTURERS_LIST . QUOTE) . olc_hide_session_id() . '
</form>
';
    $box_smarty->assign('BOX_CONTENT', $box_content);
    $box_manufacturers = $box_smarty->fetch(CURRENT_TEMPLATE_BOXES . 'box_manufacturers' . HTML_EXT, $cacheid);
} else {
    if (IS_AJAX_PROCESSING) {
        $box_manufacturers = HTML_NBSP;
    }
}
$smarty->assign('box_MANUFACTURERS', $box_manufacturers);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:manufacturers.php

示例14: display

 function display()
 {
     $customers_statuses_array = olc_get_customers_statuses();
     // build Currency Select
     $curr = '';
     $currencies = olc_db_query("SELECT code FROM " . TABLE_CURRENCIES);
     while ($currencies_data = olc_db_fetch_array($currencies)) {
         $curr .= olc_draw_radio_field('currencies', $currencies_data['code'], true) . $currencies_data['code'] . HTML_BR;
     }
     return array('text' => EXPORT_STATUS_TYPE . HTML_BR . EXPORT_STATUS . HTML_BR . olc_draw_pull_down_menu('status', $customers_statuses_array, '1') . HTML_BR . CURRENCY . HTML_BR . CURRENCY_DESC . HTML_BR . $curr . EXPORT_TYPE . HTML_BR . EXPORT . HTML_BR . olc_draw_radio_field('export', 'no', false) . EXPORT_NO . HTML_BR . olc_draw_radio_field('export', 'yes', true) . EXPORT_YES . HTML_BR . HTML_BR . olc_image_submit('button_export.gif', IMAGE_UPDATE) . HTML_A_START . olc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=kelkoo') . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:11,代码来源:kelkoo.php

示例15: olc_get_zone_name

}
$module_smarty->assign('country_id_content', $country_id_content);
if (ACCOUNT_STATE == TRUE_STRING_S) {
    $module_smarty->assign('ACCOUNT_STATE', TRUE_STRING_S);
    $state = olc_get_zone_name($a_country, $a_zone_id, $a_state);
    if ($is_read_only == true) {
        $state_content = olc_get_zone_name($affiliate['affiliate_country_id'], $affiliate['affiliate_zone_id'], $affiliate['affiliate_state']);
    } elseif ($error == true) {
        if ($entry_state_error == true) {
            if ($entry_state_has_zones == true) {
                $zones_array = array();
                $zones_query = olc_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . olc_db_input($a_country) . "' order by zone_name");
                while ($zones_values = olc_db_fetch_array($zones_query)) {
                    $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
                }
                $state_content = olc_draw_pull_down_menu('a_state', $zones_array) . HTML_NBSP . ENTRY_STATE_ERROR;
            } else {
                $state_content = olc_draw_input_field('a_state') . HTML_NBSP . ENTRY_STATE_ERROR;
            }
        } else {
            $state_content = $state . olc_draw_hidden_field('a_zone_id') . olc_draw_hidden_field('a_state');
        }
    } else {
        $state_content = olc_draw_input_field('a_state', olc_get_zone_name($affiliate['affiliate_country_id'], $affiliate['affiliate_zone_id'], $affiliate['affiliate_state'])) . HTML_NBSP . ENTRY_STATE_TEXT;
    }
    $module_smarty->assign('state_content', $state_content);
}
if ($is_read_only == true) {
    $telephone_content = $affiliate['affiliate_telephone'];
} elseif ($error == true) {
    if ($entry_telephone_error == true) {
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:affiliate_account_details.php


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