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


PHP vam_draw_hidden_field函数代码示例

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


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

示例1: vam_hide_session_id

function vam_hide_session_id()
{
    global $session_started;
    if ($session_started == true && defined('SID') && vam_not_null(SID)) {
        return vam_draw_hidden_field(vam_session_name(), vam_session_id());
    }
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:7,代码来源:vam_hide_session_id.inc.php

示例2: process_button

 function process_button()
 {
     global $order, $vamPrice;
     if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
         $total = $order->info['total'] + $order->info['tax'];
     } else {
         $total = $order->info['total'];
     }
     $process_button_string = vam_draw_hidden_field('cmd', '_xclick') . vam_draw_hidden_field('email', MODULE_PAYMENT_NOCHEX_ID) . vam_draw_hidden_field('amount', round($vamPrice->CalculateCurrEx($total, 'GBP'), $vamPrice->get_decimal_places('GBP'))) . vam_draw_hidden_field('ordernumber', $_SESSION['customer_id'] . '-' . date('Ymdhis')) . vam_draw_hidden_field('returnurl', vam_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . vam_draw_hidden_field('cancel_return', vam_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
     return $process_button_string;
 }
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:11,代码来源:nochex.php

示例3: 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

示例4: vam_href_link

    $vamTemplate->assign('LINK_DEFAULT', '<a class="button" href="' . vam_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . vam_image_button('submit.png', IMAGE_BUTTON_CONTINUE) . '</a>');
}
if ($_GET['action'] == 'send' && !$error) {
    $vamTemplate->assign('action', 'send');
    // validate entries
    $gv_amount = (double) $gv_amount;
    $gv_query = vam_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . $_SESSION['customer_id'] . "'");
    $gv_result = vam_db_fetch_array($gv_query);
    $send_name = $gv_result['customers_firstname'] . ' ' . $gv_result['customers_lastname'];
    $vamTemplate->assign('FORM_ACTION', '<form action="' . vam_href_link(FILENAME_GV_SEND, 'action=process', 'NONSSL') . '" method="post">');
    $vamTemplate->assign('MAIN_MESSAGE', sprintf(MAIN_MESSAGE, $vamPrice->Format(str_replace(",", ".", $_POST['amount']), true), stripslashes($_POST['to_name']), $_POST['email'], stripslashes($_POST['to_name']), $vamPrice->Format(str_replace(",", ".", $_POST['amount']), true), $send_name));
    if ($_POST['message']) {
        $vamTemplate->assign('PERSONAL_MESSAGE', sprintf(PERSONAL_MESSAGE, $gv_result['customers_firstname']));
        $vamTemplate->assign('POST_MESSAGE', stripslashes($_POST['message']));
    }
    $vamTemplate->assign('HIDDEN_FIELDS', vam_draw_hidden_field('send_name', $send_name) . vam_draw_hidden_field('to_name', stripslashes($_POST['to_name'])) . vam_draw_hidden_field('email', $_POST['email']) . vam_draw_hidden_field('amount', $gv_amount) . vam_draw_hidden_field('message', stripslashes($_POST['message'])));
    $vamTemplate->assign('LINK_BACK', vam_image_submit('back.png', IMAGE_BUTTON_BACK, 'name=back') . '</a>');
    $vamTemplate->assign('LINK_SUBMIT', vam_image_submit('submit.png', IMAGE_BUTTON_CONTINUE));
} elseif ($_GET['action'] == '' || $error) {
    $vamTemplate->assign('action', '');
    $vamTemplate->assign('FORM_ACTION', '<form action="' . vam_href_link(FILENAME_GV_SEND, 'action=send', 'NONSSL') . '" method="post">');
    $vamTemplate->assign('LINK_SEND', vam_href_link(FILENAME_GV_SEND, 'action=send', 'NONSSL'));
    $vamTemplate->assign('INPUT_TO_NAME', vam_draw_input_field('to_name', stripslashes($_POST['to_name'])));
    $vamTemplate->assign('INPUT_EMAIL', vam_draw_input_field('email', $_POST['email']));
    $vamTemplate->assign('ERROR_EMAIL', $error_email);
    $vamTemplate->assign('INPUT_AMOUNT', vam_draw_input_field('amount', $_POST['amount'], '', 'text', false));
    $vamTemplate->assign('ERROR_AMOUNT', $error_amount);
    $vamTemplate->assign('TEXTAREA_MESSAGE', vam_draw_textarea_field('message', 'soft', 50, 15, stripslashes($_POST['message'])));
    $vamTemplate->assign('LINK_SUBMIT', vam_image_submit('submit.png', IMAGE_BUTTON_CONTINUE));
}
$vamTemplate->assign('FORM_END', '</form>');
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:gv_send.php

示例5: vam_check_stock

$mark_stock = '';
for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
    if (STOCK_CHECK == 'true') {
        $mark_stock = vam_check_stock($products[$i]['id'], $products[$i]['quantity']);
        if ($mark_stock) {
            $_SESSION['any_out_of_stock'] = 1;
        }
    }
    $image = '';
    if ($products[$i]['image'] != '') {
        $image = DIR_WS_THUMBNAIL_IMAGES . $products[$i]['image'];
    }
    if (!is_file($image)) {
        $image = DIR_WS_THUMBNAIL_IMAGES . '../noimage.gif';
    }
    $module_content[$i] = array('PRODUCTS_NAME' => $products[$i]['name'] . $mark_stock, 'PRODUCTS_QTY' => vam_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="2" data-id="' . $products[$i]['id'] . '" class="quantity"') . vam_draw_hidden_field('products_id[]', $products[$i]['id']) . vam_draw_hidden_field('old_qty[]', $products[$i]['quantity']), 'PRODUCTS_MODEL' => $products[$i]['model'], 'PRODUCTS_SHIPPING_TIME' => $products[$i]['shipping_time'], 'PRODUCTS_TAX' => number_format($products[$i]['tax'], TAX_DECIMAL_PLACES), 'PRODUCTS_IMAGE' => $image, 'IMAGE_ALT' => $products[$i]['name'], 'BOX_DELETE' => $products[$i]['id'], 'PRODUCTS_LINK' => vam_href_link(FILENAME_PRODUCT_INFO, vam_product_link($products[$i]['id'], $products[$i]['name'])), 'PRODUCTS_PRICE' => $vamPrice->Format($products[$i]['price'] * $products[$i]['quantity'], true), 'PRODUCTS_SINGLE_PRICE' => $vamPrice->Format($products[$i]['price'], true), 'PRODUCTS_SHORT_DESCRIPTION' => vam_get_short_description($products[$i]['id']), 'ATTRIBUTES' => '');
    // Product options names
    $attributes_exist = isset($products[$i]['attributes']) ? 1 : 0;
    if ($attributes_exist == 1) {
        reset($products[$i]['attributes']);
        while (list($option, $value) = each($products[$i]['attributes'])) {
            if (ATTRIBUTE_STOCK_CHECK == 'true' && STOCK_CHECK == 'true') {
                $attribute_stock_check = vam_check_stock_attributes($products[$i][$option]['products_attributes_id'], $products[$i]['quantity']);
                if ($attribute_stock_check) {
                    $_SESSION['any_out_of_stock'] = 1;
                }
            }
            $module_content[$i]['ATTRIBUTES'][] = array('ID' => $products[$i][$option]['products_attributes_id'], 'MODEL' => vam_get_attributes_model(vam_get_prid($products[$i]['id']), $products[$i][$option]['products_options_values_name'], $products[$i][$option]['products_options_name']), 'NAME' => $products[$i][$option]['products_options_name'], 'VALUE_NAME' => $products[$i][$option]['products_options_values_name'] . $attribute_stock_check);
        }
    }
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:order_details_cart.php

示例6: process_button

 function process_button()
 {
     global $customer_id, $order, $sendto, $vamPrice, $currencies, $shipping;
     $process_button_string = '';
     $merchant = MODULE_PAYMENT_MONEYUA_ID;
     $mp = 3;
     $comiss = 1;
     $order_sum = round($order->info['total'] * 100);
     $order_num = substr($_SESSION['cart_moneyua_id'], strpos($_SESSION['cart_moneyua_id'], '-') + 1);
     $testmode = PAYMENT_TESTMODE;
     $urlresult = vam_href_link('moneyua.php', '', 'SSL');
     $urlreturn = vam_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
     $method = 2;
     $mypass = MODULE_PAYMENT_MONEYUA_SECRET_KEY;
     $hash = md5($merchant . ':' . $mp . ':' . $comiss . ':' . $order_sum . ':' . $order_num . ':' . $order_num . ':' . $order_num . ':' . $order_num . ':' . $visa . ':' . $testmode . ':' . $urlresult . ':' . $urlreturn . ':' . $method . ':' . $mypass);
     $process_button_string = vam_draw_hidden_field('PAYMENT_AMOUNT', $order_sum) . vam_draw_hidden_field('PAYMENT_INFO', substr($_SESSION['cart_moneyua_id'], strpos($_SESSION['cart_moneyua_id'], '-') + 1)) . vam_draw_hidden_field('PAYMENT_DELIVER', substr($_SESSION['cart_moneyua_id'], strpos($_SESSION['cart_moneyua_id'], '-') + 1)) . vam_draw_hidden_field('PAYMENT_ADDVALUE', substr($_SESSION['cart_moneyua_id'], strpos($_SESSION['cart_moneyua_id'], '-') + 1)) . vam_draw_hidden_field('MERCHANT_INFO', MODULE_PAYMENT_MONEYUA_ID) . vam_draw_hidden_field('PAYMENT_ORDER', substr($_SESSION['cart_moneyua_id'], strpos($_SESSION['cart_moneyua_id'], '-') + 1)) . vam_draw_hidden_field('PAYMENT_TYPE', 3) . vam_draw_hidden_field('PAYMENT_RULE', 1) . vam_draw_hidden_field('PAYMENT_VISA', '') . vam_draw_hidden_field('PAYMENT_RETURNRES', vam_href_link('moneyua.php', '', 'SSL')) . vam_draw_hidden_field('PAYMENT_RETURN', vam_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . vam_draw_hidden_field('PAYMENT_RETURNMET', 2) . vam_draw_hidden_field('PAYMENT_RETURNFAIL', vam_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . vam_draw_hidden_field('PAYMENT_TESTMODE', MODULE_PAYMENT_MONEYUA_MODE) . vam_draw_hidden_field('PAYMENT_HASH', $hash);
     return $process_button_string;
 }
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:18,代码来源:moneyua.php

示例7: vam_href_link

    ?>
</td>
            <td class="pageHeading"><?php 
    echo '<a class="button" href="' . vam_href_link(FILENAME_AFFILIATE_PAYMENT, 'pID=' . $pInfo->affiliate_payment_id . '&action=start_billing') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/payment.png', '', '12', '12') . '&nbsp;' . IMAGE_AFFILIATE_BILLING . '</span></a>';
    ?>
</td>
            <td class="pageHeading" align="right"><?php 
    echo vam_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT);
    ?>
</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>
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:affiliate_payment.php

示例8: vam_draw_textarea_field

require DIR_WS_INCLUDES . 'header.php';
if (!$product->isProduct()) {
    $vamTemplate->assign('error', ERROR_INVALID_PRODUCT);
} else {
    $name = $customer_info['customers_firstname'] . ' ' . $customer_info['customers_lastname'];
    if ($name == ' ') {
        $customer_info['customers_lastname'] = TEXT_GUEST;
    }
    $vamTemplate->assign('PRODUCTS_NAME', $product->data['products_name']);
    $vamTemplate->assign('AUTHOR', $customer_info['customers_firstname'] . ' ' . $customer_info['customers_lastname']);
    $vamTemplate->assign('INPUT_TEXT', vam_draw_textarea_field('review', 'soft', 60, 15, $_POST['review'], '', false));
    $input_rationg = '<td>' . vam_draw_radio_field('rating', '1') . '<br/><b>1</b></td><td>' . vam_draw_radio_field('rating', '2') . '<br/><b>2</b></td><td>' . vam_draw_radio_field('rating', '3') . '<br/><b>3</b></td><td>' . vam_draw_radio_field('rating', '4') . '<br/><b>4</b></td><td>' . vam_draw_radio_field('rating', '5') . '<br/><b>5</b></td>';
    $vamTemplate->assign('INPUT_RATING', $input_rationg);
    $vamTemplate->assign('FORM_ACTION', vam_draw_form('product_reviews_write', vam_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'action=process&' . vam_product_link($product->data['products_id'], $product->data['products_name'])), 'post', 'onsubmit="return checkForm();"'));
    $vamTemplate->assign('BUTTON_BACK', '<a class="button" href="javascript:history.back(1)">' . vam_image_button('back.png', IMAGE_BUTTON_BACK) . '</a>');
    $vamTemplate->assign('BUTTON_SUBMIT', vam_image_submit('submit.png', IMAGE_BUTTON_CONTINUE) . vam_draw_hidden_field('get_params', $get_params));
    $vamTemplate->assign('CAPTCHA_IMG', '<img src="' . vam_href_link(FILENAME_DISPLAY_CAPTCHA) . '" alt="captcha" name="captcha" />');
    $vamTemplate->assign('CAPTCHA_INPUT', vam_draw_input_field('captcha', '', 'size="6"', 'text', false));
    $vamTemplate->assign('FORM_END', '</form>');
}
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/product_reviews_write.html');
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('main_content', $main_content);
$vamTemplate->caching = 0;
if (!defined(RM)) {
    $vamTemplate->load_filter('output', 'note');
}
$template = file_exists('templates/' . CURRENT_TEMPLATE . '/' . FILENAME_PRODUCT_REVIEWS_WRITE . '.html') ? CURRENT_TEMPLATE . '/' . FILENAME_PRODUCT_REVIEWS_WRITE . '.html' : CURRENT_TEMPLATE . '/index.html';
$vamTemplate->display($template);
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:product_reviews_write.php

示例9: vam_get_extra_fields

function vam_get_extra_fields($customer_id, $languages_id)
{
    $extra_fields_query = vam_db_query("select ce.fields_id, ce.fields_input_type, ce.fields_input_value, ce.fields_required_status, cei.fields_name, ce.fields_status, ce.fields_input_type from " . TABLE_EXTRA_FIELDS . " ce, " . TABLE_EXTRA_FIELDS_INFO . " cei where ce.fields_status=1 and cei.fields_id=ce.fields_id and cei.languages_id =" . $languages_id);
    $extra_fields_string = '';
    if (vam_db_num_rows($extra_fields_query) > 0) {
        $extra_fields_string .= '<tr><td class="formAreaTitle"><b>' . CATEGORY_EXTRA_FIELDS . '</b></td></tr>';
        $extra_fields_string .= '<td class="formArea"><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
                                     <tr class="infoBoxContents"><td><table border="0" cellspacing="2" cellpadding="2">';
        while ($extra_fields = vam_db_fetch_array($extra_fields_query)) {
            $value = '';
            if (isset($customer_id)) {
                $value_query = vam_db_query("select value from " . TABLE_CUSTOMERS_TO_EXTRA_FIELDS . " where customers_id=" . $customer_id . " and fields_id=" . $extra_fields['fields_id']);
                $value_info = vam_db_fetch_array($value_query);
                $value_list = explode("\n", $value_info['value']);
                for ($i = 0, $n = sizeof($value_list); $i < $n; $i++) {
                    $value_list[$i] = trim($value_list[$i]);
                }
                $value = $value_list[0];
            }
            $extra_fields_string .= '<tr>
                                        <td class="main" valign="top">' . $extra_fields['fields_name'] . ': </td><td class="main" valign="top">';
            $select_values_list = explode("\n", $extra_fields['fields_input_value']);
            $select_values = array();
            foreach ($select_values_list as $item) {
                $item = trim($item);
                $select_values[] = array('id' => $item, 'text' => $item);
            }
            switch ($extra_fields['fields_input_type']) {
                case 0:
                    $extra_fields_string .= vam_draw_input_field('fields_' . $extra_fields['fields_id'], $value) . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement">*</span>' : '');
                    break;
                case 1:
                    $extra_fields_string .= vam_draw_textarea_field('fields_' . $extra_fields['fields_id'], 'soft', 50, 6, $value, 'style="width:400px;"') . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement">*</span>' : '');
                    break;
                case 2:
                    foreach ($select_values_list as $item) {
                        $item = trim($item);
                        $extra_fields_string .= vam_draw_selection_field('fields_' . $extra_fields['fields_id'], 'radio', $item, $value == $item ? true : false) . $item . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement">*</span>' : '') . '<br>';
                        $extra_fields['fields_required_status'] = 0;
                    }
                    break;
                case 3:
                    $cnt = 1;
                    foreach ($select_values_list as $item) {
                        $item = trim($item);
                        $extra_fields_string .= vam_draw_selection_field('fields_' . $extra_fields['fields_id'] . '_' . $cnt++, 'checkbox', $item, in_array($item, $value_list) ? true : false) . $item . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement">*</span>' : '') . '<br>';
                        $extra_fields['fields_required_status'] = 0;
                    }
                    $extra_fields_string .= vam_draw_hidden_field('fields_' . $extra_fields['fields_id'] . '_total', $cnt);
                    break;
                case 4:
                    $extra_fields_string .= vam_draw_pull_down_menu('fields_' . $extra_fields['fields_id'], $select_values, $value) . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement">*</span>' : '');
                    break;
                default:
                    $extra_fields_string .= vam_draw_input_field('fields_' . $extra_fields['fields_id'], $value) . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement">*</span>' : '');
                    break;
            }
            $extra_fields_string .= ' ' . '</td></tr>';
        }
        $extra_fields_string .= '</table></td></tr></table></td></tr>';
        $extra_fields_string .= '<tr><td>' . vam_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>';
    }
    return $extra_fields_string;
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:64,代码来源:general.php

示例10: vam_draw_form

             <?php 
    echo vam_draw_form('status', FILENAME_ORDERS, '', 'get');
    ?>
                <?php 
    echo HEADING_TITLE_STATUS . ' ' . vam_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), $_GET['status'], 'onChange="this.form.submit();"') . vam_draw_hidden_field(vam_session_name(), vam_session_id());
    ?>
              </form>
              
         </td>
         <td align="right">
              <?php 
    echo vam_draw_form('orders', FILENAME_ORDERS, '', 'get');
    ?>
                <?php 
    echo HEADING_TITLE_SEARCH . ' ' . vam_draw_input_field('oID', '', 'size="12"') . vam_draw_hidden_field('action', 'edit') . vam_draw_hidden_field(vam_session_name(), vam_session_id());
    ?>
              </form>
         </td>
       </tr>
       </table>

        
        </td>
      </tr>
      
      <tr>
        <td>
        
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:30,代码来源:orders.php

示例11: vam_draw_hidden_field

    } else {
        $selection[$i]['selection'] = vam_draw_hidden_field('payment', $selection[$i]['id']);
    }
    $selection[$i]['id'] = $selection[$i]['id'];
    if (isset($selection[$i]['error'])) {
    } else {
        $radio_buttons++;
    }
}
$module->assign('module_content', $selection);
if (ACTIVATE_GIFT_SYSTEM == 'true') {
    $vamTemplate->assign('module_gift', $order_total_modules->credit_selection());
}
$module->caching = 0;
$payment_block = $module->fetch(CURRENT_TEMPLATE . '/module/checkout_payment_block.html');
$vamTemplate->assign('COMMENTS', vam_draw_textarea_field('comments', 'soft', '60', '5', $_POST['comments']) . vam_draw_hidden_field('comments_added', 'YES'));
$vamTemplate->assign('conditions', 'false');
//check if display conditions on checkout page is true
if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
    $vamTemplate->assign('conditions', 'true');
    if (GROUP_CHECK == 'true') {
        $group_check = "and group_ids LIKE '%c_" . $_SESSION['customers_status']['customers_status_id'] . "_group%'";
    }
    $shop_content_query = vam_db_query("SELECT\n\t                                                content_title,\n\t                                                content_heading,\n\t                                                content_text,\n\t                                                content_file\n\t                                                FROM " . TABLE_CONTENT_MANAGER . "\n\t                                                WHERE content_group='3' " . $group_check . "\n\t                                                AND languages_id='" . $_SESSION['languages_id'] . "'");
    $shop_content_data = vam_db_fetch_array($shop_content_query);
    if ($shop_content_data['content_file'] != '') {
        $conditions = '<iframe SRC="' . DIR_WS_CATALOG . 'media/content/' . $shop_content_data['content_file'] . '" width="100%" height="300">';
        $conditions .= '</iframe>';
    } else {
        $conditions = '<textarea name="blabla" cols="60" rows="10" readonly="readonly">' . strip_tags(str_replace('<br />', "\n", $shop_content_data['content_text'])) . '</textarea>';
    }
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:checkout_alternative.php

示例12: process_button

 function process_button()
 {
     $process_button_string = vam_draw_hidden_field('s_name', $this->name) . vam_draw_hidden_field('s_inn', $this->inn) . vam_draw_hidden_field('s_kpp', $this->kpp) . vam_draw_hidden_field('s_ogrn', $this->ogrn) . vam_draw_hidden_field('s_okpo', $this->okpo) . vam_draw_hidden_field('s_rs', $this->rs) . vam_draw_hidden_field('s_bank_name', $this->bank_name) . vam_draw_hidden_field('s_bik', $this->bik) . vam_draw_hidden_field('s_ks', $this->ks) . vam_draw_hidden_field('s_address', $this->address) . vam_draw_hidden_field('s_yur_address', $this->yur_address) . vam_draw_hidden_field('s_fakt_address', $this->fakt_address) . vam_draw_hidden_field('s_telephone', $this->telephone) . vam_draw_hidden_field('s_fax', $this->fax) . vam_draw_hidden_field('s_email', $this->email) . vam_draw_hidden_field('s_director', $this->director) . vam_draw_hidden_field('s_accountant', $this->accountant);
     return $process_button_string;
 }
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:5,代码来源:schet.php

示例13: vam_draw_radio_field

                $address_content .= '' . "\n";
            } else {
                $address_content .= '' . "\n";
            }
            $address_content .= '<p><span class="bold">' . $addresses['firstname'] . ' ' . $addresses['secondname'] . ' ' . $addresses['lastname'] . '</span>&nbsp;' . vam_draw_radio_field('address', $addresses['address_book_id'], $addresses['address_book_id'] == $_SESSION['billto']) . '</p>
			                        <p>' . vam_address_format($format_id, $addresses, true, ' ', ', ') . '</p>';
            $radio_buttons++;
        }
        $address_content .= '';
        $vamTemplate->assign('BLOCK_ADDRESS', $address_content);
    }
}
if ($addresses_count < MAX_ADDRESS_BOOK_ENTRIES) {
    require DIR_WS_MODULES . 'checkout_new_address.php';
}
$vamTemplate->assign('BUTTON_CONTINUE', vam_draw_hidden_field('action', 'submit') . vam_image_submit('submit.png', IMAGE_BUTTON_CONTINUE));
if ($process == true) {
    $vamTemplate->assign('BUTTON_BACK', '<a class="button" href="' . vam_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . vam_image_button('back.png', IMAGE_BUTTON_BACK) . '</a>');
}
$vamTemplate->assign('FORM_END', '</form>');
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/checkout_payment_address.html');
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('main_content', $main_content);
$vamTemplate->caching = 0;
if (!defined(RM)) {
    $vamTemplate->load_filter('output', 'note');
}
$template = file_exists('templates/' . CURRENT_TEMPLATE . '/' . FILENAME_CHECKOUT_PAYMENT_ADDRESS . '.html') ? CURRENT_TEMPLATE . '/' . FILENAME_CHECKOUT_PAYMENT_ADDRESS . '.html' : CURRENT_TEMPLATE . '/index.html';
$vamTemplate->display($template);
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:checkout_payment_address.php

示例14: vam_draw_form

         <h1 class="contentBoxHeading"><?php 
echo HEADING_TITLE;
?>
</h1>   
         </td>
         <td align="right">
                <?php 
echo vam_draw_form('goto', FILENAME_CATEGORIES, '', 'get');
echo HEADING_TITLE_GOTO . ' ' . vam_draw_pull_down_menu('cPath', vam_get_category_tree(), $current_category_id, 'onChange="this.form.submit();"') . vam_draw_hidden_field(vam_session_name(), vam_session_id());
?>
                </form>
         </td>
         <td align="right">
                <?php 
echo vam_draw_form('search', FILENAME_CATEGORIES, '', 'get');
echo HEADING_TITLE_SEARCH . ' ' . vam_draw_input_field('search') . vam_draw_hidden_field(vam_session_name(), vam_session_id());
?>
                </form>
         </td>
       </tr>
       </table>

    
    
    <table border="0" width="100%" cellspacing="0" cellpadding="2">

                    <?php 
//----- new_category / edit_category (when ALLOW_CATEGORY_DESCRIPTIONS is 'true') -----
if ($_GET['action'] == 'new_category' || $_GET['action'] == 'edit_category') {
    include DIR_WS_MODULES . 'new_category.php';
} elseif ($_GET['action'] == 'new_product') {
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:categories.php

示例15: process_button

 function process_button()
 {
     global $customer_id, $order, $sendto, $vamPrice, $currencies, $shipping;
     $process_button_string = '';
     $order_sum = $order->info['total'];
     $crc = md5(MODULE_PAYMENT_ROBOXCHANGE_LOGIN . ':' . $order_sum . ':' . substr($_SESSION['cart_roboxchange_id'], strpos($_SESSION['cart_roboxchange_id'], '-') + 1) . ':' . MODULE_PAYMENT_ROBOXCHANGE_PASSWORD1);
     $process_button_string = vam_draw_hidden_field('InvId', substr($_SESSION['cart_roboxchange_id'], strpos($_SESSION['cart_roboxchange_id'], '-') + 1)) . vam_draw_hidden_field('MrchLogin', MODULE_PAYMENT_ROBOXCHANGE_LOGIN) . vam_draw_hidden_field('Desc', substr($_SESSION['cart_roboxchange_id'], strpos($_SESSION['cart_roboxchange_id'], '-') + 1)) . vam_draw_hidden_field('OutSum', $order_sum) . vam_draw_hidden_field('SignatureValue', $crc);
     return $process_button_string;
 }
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:9,代码来源:roboxchange.php


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