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


PHP vam_draw_pull_down_menu函数代码示例

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


在下文中一共展示了vam_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 vam_draw_pull_down_menu($name, $status_array, $selected, $parameters);
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:17,代码来源:affiliate_get_level_list.inc.php

示例2: 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 vam_draw_pull_down_menu($name, $status_array, $selected, $parameters);
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:22,代码来源:affiliate_get_status_list.inc.php

示例3: vam_get_country_list

function vam_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 = vam_get_countriesList();
    for ($i = 0, $n = sizeof($countries); $i < $n; $i++) {
        $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);
    }
    if (is_array($name)) {
        return vam_draw_pull_down_menuNote($name, $countries_array, $selected, $parameters);
    }
    return vam_draw_pull_down_menu($name, $countries_array, $selected, $parameters);
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:13,代码来源:vam_get_country_list.inc.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, 'description' => $this->info, 'fields' => array(array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_OWNER, 'field' => vam_draw_input_field('ipayment_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_NUMBER, 'field' => vam_draw_input_field('ipayment_cc_number')), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_EXPIRES, 'field' => vam_draw_pull_down_menu('ipayment_cc_expires_month', $expires_month) . '&nbsp;' . vam_draw_pull_down_menu('ipayment_cc_expires_year', $expires_year)), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => vam_draw_input_field('ipayment_cc_checkcode', '', 'size="4" maxlength="3"') . '&nbsp;<small>' . MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small>')));
     return $selection;
 }
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:13,代码来源:ipayment.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'] . ' ' . $order->billing['lastname']), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_NUMBER, 'field' => vam_draw_input_field('psigate_cc_number')), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_EXPIRES, 'field' => vam_draw_pull_down_menu('psigate_cc_expires_month', $expires_month) . '&nbsp;' . vam_draw_pull_down_menu('psigate_cc_expires_year', $expires_year))));
     } else {
         $selection = array('id' => $this->code, 'module' => $this->title, 'description' => $this->info);
     }
     return $selection;
 }
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数: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 vam_draw_pull_down_menu($name, $return_array, $selected_period, $parameters);
    }
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:27,代码来源:affiliate_period.inc.php

示例7: display_links

 function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
 {
     if (vam_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 = vam_draw_form('pages', basename($_SERVER['PHP_SELF']), '', 'get');
         if ($current_page_number > 1) {
             $display_links .= '<a href="' . vam_href_link(basename($_SERVER['PHP_SELF']), $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, vam_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="' . vam_href_link(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
         } 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 .= vam_draw_hidden_field(rawurldecode($key), rawurldecode($value));
             }
         }
         if (SID) {
             $display_links .= vam_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:nomadcomanche,项目名称:zdorov_shop,代码行数:43,代码来源:split_page_results.php

示例8: languageTextFields

function languageTextFields()
{
    $return = '
<table border="0">';
    $languages = vam_get_languages();
    foreach ($languages as $amLanguage) {
        $return .= '
	<tr>
		<td align="right">' . $amLanguage['name'] . ': </td>
		<td align="left">' . vam_draw_input_field('text_field_' . $amLanguage['id'], '', 'id="' . $amLanguage['id'] . '"') . '</td>
	</tr>';
    }
    if ($_GET['section'] == 'amAddOption') {
        $style = 'style="margin:3px 0px 3px 0px;" id="stockTracking_1" size="4"';
        $optionSortDrop = array('1', '2', '3', '4', '5', '6', '7', '8', '9');
        $type_array = array();
        $type_array[] = array('id' => '1', 'text' => TEXT_TYPE_DROPDOWN);
        $type_array[] = array('id' => '2', 'text' => TEXT_TYPE_TEXT);
        $type_array[] = array('id' => '3', 'text' => TEXT_TYPE_TEXTAREA);
        $type_array[] = array('id' => '4', 'text' => TEXT_TYPE_RADIO);
        $type_array[] = array('id' => '5', 'text' => TEXT_TYPE_CHECKBOX);
        $type_array[] = array('id' => '6', 'text' => TEXT_TYPE_READ_ONLY);
        $return .= '	<tr>';
        if (AM_USE_SORT_ORDER) {
            $return .= '<td>' . AM_AJAX_SORT . '</td><td align="left">' . vam_draw_pull_down_menu('optionSortDropDown', $optionSortDrop, '', 'id="optionSortDropDown"') . '</td></tr>';
        } else {
            $return .= vam_draw_hidden_field('optionSortDropDown', '0', 'id="optionSortDropDown"');
        }
        $return .= '<tr><td>' . AM_AJAX_TYPE . '</td><td align="left">' . vam_draw_pull_down_menu('optionType', $type_array, '', 'id="optionType"') . '</td></tr>';
        if (AM_USE_QT_PRO) {
            $return .= '	<td>' . AM_AJAX_TRACK_STOCK . ' <img src="attributeManager/images/icon_up.png" id="imgCheck_1" onclick="checkBox(1)" title="' . AM_AJAX_TRACK_STOCK_IMGALT . '" />
		    ' . vam_draw_hidden_field('stockTracking_1', '0', $style) . '
			</td>';
        } else {
            $return .= vam_draw_hidden_field('stockTracking_1', '0', $style);
        }
        $return .= '	</tr>';
    }
    $return .= '
</table>';
    return $return;
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:42,代码来源:attributeManagerPrompts.inc.php

示例9: array

     $contents = array('form' => vam_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&action=insert'));
     $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
     $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_NAME . '<br />' . vam_draw_input_field('countries_name'));
     $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_CODE_2 . '<br />' . vam_draw_input_field('countries_iso_code_2'));
     $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_CODE_3 . '<br />' . vam_draw_input_field('countries_iso_code_3'));
     $contents[] = array('text' => '<br />' . TEXT_INFO_ADDRESS_FORMAT . '<br />' . vam_draw_pull_down_menu('address_format_id', vam_get_address_formats()));
     $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_INSERT . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . '&nbsp;' . BUTTON_INSERT . '</button></span>&nbsp;<a class="button" href="' . vam_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page']) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_COUNTRY . '</b>');
     $contents = array('form' => vam_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=save'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_NAME . '<br />' . vam_draw_input_field('countries_name', $cInfo->countries_name));
     $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_CODE_2 . '<br />' . vam_draw_input_field('countries_iso_code_2', $cInfo->countries_iso_code_2));
     $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_CODE_3 . '<br />' . vam_draw_input_field('countries_iso_code_3', $cInfo->countries_iso_code_3));
     $contents[] = array('text' => '<br />' . TEXT_INFO_ADDRESS_FORMAT . '<br />' . vam_draw_pull_down_menu('address_format_id', vam_get_address_formats(), $cInfo->address_format_id));
     $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_UPDATE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . '&nbsp;' . BUTTON_INSERT . '</button></span>&nbsp;<a class="button" href="' . vam_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_COUNTRY . '</b>');
     $contents = array('form' => vam_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 . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_DELETE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . '&nbsp;' . BUTTON_DELETE . '</button></span>&nbsp;<a class="button" href="' . vam_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
     break;
 default:
     if (is_object($cInfo)) {
         $heading[] = array('text' => '<b>' . $cInfo->countries_name . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . vam_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/edit.png', '', '12', '12') . '&nbsp;' . BUTTON_EDIT . '</span></a> <a class="button" href="' . vam_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . '&nbsp;' . BUTTON_DELETE . '</span></a>');
         $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_NAME . '<br />' . $cInfo->countries_name);
         $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_CODE_2 . ' ' . $cInfo->countries_iso_code_2);
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:countries.php

示例10: vam_draw_form

    ?>
</td>
            <td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr><?php 
    echo vam_draw_form('orders', FILENAME_AFFILIATE_PAYMENT, '', 'get');
    ?>
                <td class="smallText" align="right"><?php 
    echo HEADING_TITLE_SEARCH . ' ' . vam_draw_input_field('sID', '', 'size="12"') . vam_draw_hidden_field('action', 'edit');
    ?>
</td>
              </form></tr>
              <tr><?php 
    echo vam_draw_form('status', FILENAME_AFFILIATE_PAYMENT, '', 'get');
    ?>
                <td class="smallText" align="right"><?php 
    echo HEADING_TITLE_STATUS . ' ' . vam_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_PAYMENTS)), $payments_statuses), '', 'onChange="this.form.submit();"');
    ?>
</td>
              </form></tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table border="0" width="100%" cellspacing="2" cellpadding="0" class="contentListingTable">
              <tr class="dataTableHeadingRow">
                <td class="dataTableHeadingContent"><?php 
    echo TABLE_HEADING_AFILIATE_NAME;
    ?>
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:affiliate_payment.php

示例11: and

</td>
  </tr>
  <?php 
    $search_query = "SELECT * FROM " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p WHERE p.products_id=pd.products_id and pd.language_id='" . $_SESSION['languages_id'] . "' and p.products_id!='" . $_GET['current_product_id'] . "' and (pd.products_name LIKE '%" . $_GET['search'] . "%' or p.products_model LIKE '%" . $_GET['search'] . "%')";
    $search_query = vam_db_query($search_query);
    while ($search_data = vam_db_fetch_array($search_query)) {
        $categorie_query = vam_db_query("SELECT\n\t\t\t\t\t\t                                            categories_id\n\t\t\t\t\t\t                                            FROM " . TABLE_PRODUCTS_TO_CATEGORIES . "\n\t\t\t\t\t\t                                            WHERE products_id='" . $search_data['products_id'] . "' LIMIT 0,1");
        $categorie_data = vam_db_fetch_array($categorie_query);
        ?>
  <tr>
    <td class="categories_view_data"><input type="checkbox" name="ids[]" value="<?php 
        echo $search_data['products_id'];
        ?>
"></td>
    <td class="categories_view_data" style="text-align: left;"><?php 
        echo vam_draw_pull_down_menu('group_name[' . $search_data['products_id'] . ']', $cross_sell_groups);
        ?>
</td>
    <td class="categories_view_data" style="text-align: left;"><?php 
        echo $search_data['products_model'];
        ?>
</td>
    <td class="categories_view_data" style="text-align: left;"><?php 
        echo $search_data['products_name'];
        ?>
</td>
    <td class="categories_view_data" style="text-align: left;"><?php 
        echo buildCAT($categorie_data['categories_id']);
        ?>
 </td>
  </tr>
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:cross_selling.php

示例12: vam_cfg_pull_down_payment_methods

function vam_cfg_pull_down_payment_methods()
{
    $payments = preg_split('/;/', MODULE_PAYMENT_INSTALLED);
    for ($i = 0; $i < count($payments); $i++) {
        require DIR_FS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $payments[$i];
        $payment = substr($payments[$i], 0, strrpos($payments[$i], '.'));
        $payment_text = constant(MODULE_PAYMENT_ . strtoupper($payment) . _TEXT_TITLE);
        $payment_array[] = array('id' => $payment, 'text' => $payment_text);
    }
    //draw the dropdown menu for payment methods and default to the order value
    return vam_draw_pull_down_menu('configuration_value', $payment_array, ORDER_EDITOR_CREDIT_CARD, '');
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:12,代码来源:general.php

示例13: vam_image

</td>
                <?php 
        }
        ?>
                <td class="dataTableContent" align="right"><?php 
        if (is_object($oInfo) && $orders['orders_id'] == $oInfo->orders_id) {
            echo vam_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', '');
        } else {
            echo '<a href="' . vam_href_link(FILENAME_ORDERS, vam_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . '">' . vam_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
        }
        ?>
&nbsp;</td>
              </tr>
<?php 
    }
    echo '<tr class="dataTableContent"><td colspan="7">' . BUS_HEADING_TITLE . ': ' . vam_draw_pull_down_menu('new_status', array_merge(array(array('id' => '', 'text' => BUS_TEXT_NEW_STATUS)), $orders_statuses), '', '') . vam_draw_checkbox_field('notify', '1', true) . ' ' . BUS_NOTIFY_CUSTOMERS . '</td></tr>';
    echo '<tr class="dataTableContent" align="left"><td colspan="7" nobr="nobr" align="left">' . BUS_DELETE_ORDERS . ': ' . vam_draw_checkbox_field('delete_orders', '1') . '</td></tr>';
    echo '<tr class="dataTableContent" align="center"><td colspan="7" nobr="nobr" align="left">' . '<a class="button" href="javascript:SwitchCheck()"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/reverse.png', '', '12', '12') . '&nbsp;' . BUTTON_REVERSE_SELECTION . '</span></a>&nbsp;<span class="button"><button name="submit" type="submit" value="' . BUTTON_SUBMIT . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . '&nbsp;' . BUTTON_SUBMIT . '</button></span></td></tr>';
    ?>
</form>
              <tr>
                <td colspan="7"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="smallText" valign="top"><?php 
    echo $orders_split->display_count($orders_query_numrows, MAX_DISPLAY_ADMIN_PAGE, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_ORDERS);
    ?>
</td>
                    <td class="smallText" align="right"><?php 
    echo $orders_split->display_links($orders_query_numrows, MAX_DISPLAY_ADMIN_PAGE, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], vam_get_all_get_params(array('page', 'oID', 'action')));
    ?>
</td>
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:orders.php

示例14: switch

if ($_GET['action'] == 'list') {
    switch ($_GET['saction']) {
        case 'new':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_SUB_ZONE . '</b>');
            $contents = array('form' => vam_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $_GET['sID'] . '&saction=insert_sub'));
            $contents[] = array('text' => TEXT_INFO_NEW_SUB_ZONE_INTRO);
            $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY . '<br />' . vam_draw_pull_down_menu('zone_country_id', vam_get_countries(TEXT_ALL_COUNTRIES), '', 'onChange="update_zone(this.form);"'));
            $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_ZONE . '<br />' . vam_draw_pull_down_menu('zone_id', vam_prepare_country_zones_pull_down()));
            $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_INSERT . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . '&nbsp;' . BUTTON_INSERT . '</button></span> <a class="button" href="' . vam_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $_GET['sID']) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
            break;
        case 'edit':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_SUB_ZONE . '</b>');
            $contents = array('form' => vam_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id . '&saction=save_sub'));
            $contents[] = array('text' => TEXT_INFO_EDIT_SUB_ZONE_INTRO);
            $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY . '<br />' . vam_draw_pull_down_menu('zone_country_id', vam_get_countries(TEXT_ALL_COUNTRIES), $sInfo->zone_country_id, 'onChange="update_zone(this.form);"'));
            $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_ZONE . '<br />' . vam_draw_pull_down_menu('zone_id', vam_prepare_country_zones_pull_down($sInfo->zone_country_id), $sInfo->zone_id));
            $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_UPDATE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . '&nbsp;' . BUTTON_INSERT . '</button></span> <a class="button" href="' . vam_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
            break;
        case 'delete':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_SUB_ZONE . '</b>');
            $contents = array('form' => vam_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id . '&saction=deleteconfirm_sub'));
            $contents[] = array('text' => TEXT_INFO_DELETE_SUB_ZONE_INTRO);
            $contents[] = array('text' => '<br /><b>' . $sInfo->countries_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_DELETE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . '&nbsp;' . BUTTON_DELETE . '</button></span> <a class="button" href="' . vam_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
            break;
        default:
            if (is_object($sInfo)) {
                $heading[] = array('text' => '<b>' . $sInfo->countries_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . vam_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id . '&saction=edit') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/edit.png', '', '12', '12') . '&nbsp;' . BUTTON_EDIT . '</span></a> <a class="button" href="' . vam_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id . '&saction=delete') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . '&nbsp;' . BUTTON_DELETE . '</span></a>');
                $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . vam_date_short($sInfo->date_added));
                if (vam_not_null($sInfo->last_modified)) {
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:geo_zones.php

示例15: vam_href_link

            		}*/
            $manufacturers_list .= '<a href="' . vam_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '</a><br />';
        }
        $manufacturers_list .= '</tr></table>';
        $box_content = $manufacturers_list;
    } else {
        // Display a drop-down
        $manufacturers_array = array();
        if (MAX_MANUFACTURERS_LIST < 2) {
            $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT);
        }
        while ($manufacturers = vam_db_fetch_array($manufacturers_query, true)) {
            $manufacturers_name = utf8_strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? utf8_substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name'];
            $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name);
        }
        $box_content = vam_draw_form('manufacturers', vam_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get') . vam_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $_GET['manufacturers_id'], 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '"') . vam_hide_session_id() . '</form>';
    }
    if ($box_content != '') {
        $box->assign('BOX_CONTENT', $box_content);
    }
}
// set cache ID
if (!$cache) {
    $box_manufacturers = $box->fetch(CURRENT_TEMPLATE . '/boxes/box_manufacturers.html');
} else {
    $box_manufacturers = $box->fetch(CURRENT_TEMPLATE . '/boxes/box_manufacturers.html', $cache_id);
}
/*
if (vam_db_num_rows($manufacturers_query, true) > 0) {
$vamTemplate->assign('box_MANUFACTURERS', $box_manufacturers);
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:manufacturers.php


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