本文整理汇总了PHP中vam_draw_form函数的典型用法代码示例。如果您正苦于以下问题:PHP vam_draw_form函数的具体用法?PHP vam_draw_form怎么用?PHP vam_draw_form使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了vam_draw_form函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: 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> ';
} else {
$display_links .= PREVNEXT_BUTTON_PREV . ' ';
}
$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 .= ' <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 .= ' ' . 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
示例2: vam_encrypt_password
$crypted_password = vam_encrypt_password($newpass);
vam_db_query("update " . TABLE_AFFILIATE . " set affiliate_password = '" . $crypted_password . "' where affiliate_id = '" . $check_affiliate['affiliate_id'] . "'");
vam_php_mail(AFFILIATE_EMAIL_ADDRESS, STORE_OWNER, $_POST['email_address'], $check_affiliate['affiliate_firstname'] . " " . $check_affiliate['affiliate_lastname'], '', AFFILIATE_EMAIL_ADDRESS, STORE_OWNER, '', '', EMAIL_PASSWORD_REMINDER_SUBJECT, nl2br(sprintf(EMAIL_PASSWORD_REMINDER_BODY, $newpass)), nl2br(sprintf(EMAIL_PASSWORD_REMINDER_BODY, $newpass)));
if (!isset($mail_error)) {
vam_redirect(vam_href_link(FILENAME_AFFILIATE, 'info_message=' . urlencode(TEXT_PASSWORD_SENT), 'SSL', true, false));
} else {
echo $mail_error;
}
} else {
vam_redirect(vam_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, 'email=nonexistent', 'SSL'));
}
} else {
$breadcrumb->add(NAVBAR_TITLE, vam_href_link(FILENAME_AFFILIATE, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_PASSWORD_FORGOTTEN, vam_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, '', 'SSL'));
require DIR_WS_INCLUDES . 'header.php';
$vamTemplate->assign('FORM_ACTION', vam_draw_form('password_forgotten', vam_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, 'action=process', 'SSL')));
$vamTemplate->assign('INPUT_EMAIL', vam_draw_input_field('email_address', '', 'maxlength="96"'));
$vamTemplate->assign('LINK_AFFILIATE', '<a class="button" href="' . vam_href_link(FILENAME_AFFILIATE, '', 'SSL') . '">' . vam_image_button('back.png', IMAGE_BUTTON_BACK) . '</a>');
$vamTemplate->assign('BUTTON_SUBMIT', vam_image_submit('submit.png', IMAGE_BUTTON_CONTINUE));
if (isset($_GET['email']) && $_GET['email'] == 'nonexistent') {
$vamTemplate->assign('email_nonexistent', 'true');
}
}
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/affiliate_password_forgotten.html');
$vamTemplate->assign('main_content', $main_content);
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
if (!defined(RM)) {
$vamTemplate->load_filter('output', 'note');
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:affiliate_password_forgotten.php
示例3: Copyright
Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(search.php,v 1.22 2003/02/10); www.oscommerce.com
(c) 2003 nextcommerce (search.php,v 1.9 2003/08/17); www.nextcommerce.org
(c) 2004 xt:Commerce (search.php,v 1.9 2003/08/13); xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$box = new vamTemplate();
$box->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$box_content = '';
require_once DIR_FS_INC . 'vam_image_submit.inc.php';
require_once DIR_FS_INC . 'vam_hide_session_id.inc.php';
$box->assign('FORM_ACTION', vam_draw_form('quick_find', vam_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . vam_hide_session_id());
$box->assign('INPUT_SEARCH', vam_draw_input_field('keywords', '', 'id="quick_find_keyword"'));
$box->assign('BUTTON_SUBMIT', vam_image_submit('', IMAGE_BUTTON_SEARCH));
$box->assign('FORM_END', '</form>');
$box->assign('LINK_ADVANCED', vam_href_link(FILENAME_ADVANCED_SEARCH));
$box->assign('BOX_CONTENT', $box_content);
$box->assign('language', $_SESSION['language']);
// set cache ID
if (!CacheCheck()) {
$box->caching = 0;
$box_search = $box->fetch(CURRENT_TEMPLATE . '/boxes/box_search.html');
} else {
$box->caching = 1;
$box->cache_lifetime = CACHE_LIFETIME;
$box->cache_modified_check = CACHE_CHECK;
$cache_id = $_SESSION['language'];
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:search.php
示例4: vam_href_link
break;
case no_account:
$vamTemplate->assign('text_heading', HEADING_PASSWORD_FORGOTTEN);
$vamTemplate->assign('info_message', $info_message);
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/password_messages.html');
break;
case double_opt:
$vamTemplate->assign('CAPTCHA_IMG', '<img src="' . vam_href_link(FILENAME_DISPLAY_CAPTCHA) . '" alt="captcha" />');
$vamTemplate->assign('CAPTCHA_INPUT', vam_draw_input_field('captcha', '', 'size="6"', 'text', false));
$vamTemplate->assign('text_heading', HEADING_PASSWORD_FORGOTTEN);
// $vamTemplate->assign('info_message', $info_message);
$vamTemplate->assign('message', TEXT_PASSWORD_FORGOTTEN);
$vamTemplate->assign('SHOP_NAME', STORE_NAME);
$vamTemplate->assign('FORM_ACTION', vam_draw_form('sign', vam_href_link(FILENAME_PASSWORD_DOUBLE_OPT, 'action=first_opt_in', 'NONSSL')));
$vamTemplate->assign('INPUT_EMAIL', vam_draw_input_field('email', vam_db_input($_POST['email'])));
$vamTemplate->assign('BUTTON_SEND', vam_image_submit('submit.png', IMAGE_BUTTON_LOGIN));
$vamTemplate->assign('FORM_END', '</form>');
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/password_double_opt_in.html');
break;
}
$vamTemplate->assign('main_content', $main_content);
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
if (!defined(RM)) {
$vamTemplate->load_filter('output', 'note');
}
$template = file_exists('templates/' . CURRENT_TEMPLATE . '/' . FILENAME_PASSWORD_DOUBLE_OPT . '.html') ? CURRENT_TEMPLATE . '/' . FILENAME_PASSWORD_DOUBLE_OPT . '.html' : CURRENT_TEMPLATE . '/index.html';
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:password_double_opt.php
示例5: vam_image
echo '<span class="button"><button type="submit" value="' . BUTTON_SEARCH . '"/>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/search.png', '', '12', '12') . ' ' . BUTTON_SEARCH . '</button></span>';
?>
</td>
</form>
</tr>
</table>
<hr noshade>
</td>
</tr>
<tr>
<td>
<?php
// search results
if ($_GET['search']) {
echo vam_draw_form('product_search', FILENAME_CATEGORIES, '', 'GET');
echo vam_draw_hidden_field('action', 'edit_crossselling');
echo vam_draw_hidden_field('special', 'add_entries');
echo vam_draw_hidden_field('current_product_id', $_GET['current_product_id']);
echo vam_draw_hidden_field('cpath', $_GET['cpath']);
?>
<table width="100%" border="0">
<tr>
<td class="dataTableHeadingContent" width="9%"><?php
echo HEADING_ADD;
?>
</td>
<td class="dataTableHeadingContent" width="10%"><?php
echo HEADING_GROUP;
?>
</td>
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:cross_selling.php
示例6: vamTemplate
} else {
$_SESSION['nologin'] = true;
}
// create template elements
$vamTemplate = new vamTemplate();
// include needed functions
require_once DIR_FS_INC . 'vam_array_to_string.inc.php';
require_once DIR_FS_INC . 'vam_image_submit.inc.php';
require_once DIR_FS_INC . 'vam_recalculate_price.inc.php';
require_once DIR_FS_INC . 'get_cross_sell_name.inc.php';
$breadcrumb->add(NAVBAR_TITLE_SHOPPING_CART, vam_href_link(FILENAME_SHOPPING_CART));
if ($_SESSION['cart']->count_contents() > 0) {
if ($_SESSION['error_cart_msg'] != 0) {
$vamTemplate->assign('info_message', $_SESSION['error_cart_msg']);
}
$vamTemplate->assign('FORM_ACTION', vam_draw_form('cart_quantity', vam_href_link(FILENAME_SHOPPING_CART, 'action=update_product')));
$vamTemplate->assign('FORM_END', '</form>');
$hidden_options = '';
$_SESSION['any_out_of_stock'] = 0;
$products = $_SESSION['cart']->get_products();
$vamTemplate->assign('PRODUCTS_COUNT', sizeof($products));
for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
// Push all attributes information in an array
if (isset($products[$i]['attributes'])) {
while (list($option, $value) = each($products[$i]['attributes'])) {
//$hidden_options .= vam_draw_hidden_field('id['.$products[$i]['id'].']['.$option.']', $value);
$attributes = vam_db_query("select popt.products_options_name, popt.products_options_type, poval.products_options_values_name, pa.options_values_price, pa.price_prefix,pa.attributes_stock,pa.products_attributes_id,pa.attributes_model\n\t\t\t\t from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa\n\t\t\t\t where pa.products_id = '" . $products[$i]['id'] . "'\n\t\t\t\t and pa.options_id = '" . $option . "'\n\t\t\t\t and pa.options_id = popt.products_options_id\n\t\t\t\t and pa.options_values_id = '" . $value . "'\n\t\t\t\t and pa.options_values_id = poval.products_options_values_id\n\t\t\t\t and popt.language_id = '" . (int) $_SESSION['languages_id'] . "'\n\t\t\t\t and poval.language_id = '" . (int) $_SESSION['languages_id'] . "'");
$attributes_values = vam_db_fetch_array($attributes);
if ($attributes_values['products_options_type'] == '2' || $attributes_values['products_options_type'] == '3') {
$hidden_options .= vam_draw_hidden_field('id[' . $products[$i]['id'] . '][txt_' . $option . '_' . $value . ']', $products[$i]['attributes_values'][$option]);
$attr_value = $products[$i]['attributes_values'][$option];
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:shopping_cart.php
示例7: reset
$keys = '';
reset($mInfo->keys);
while (list($key, $value) = each($mInfo->keys)) {
// if($value['description']!='_DESC' && $value['title']!='_TITLE'){
$keys .= '<b>' . $value['title'] . '</b><br />' . $value['description'] . '<br />';
// }
if ($value['set_function']) {
eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
} else {
$keys .= vam_draw_input_field('configuration[' . $key . ']', $value['value']);
}
$keys .= '<br /><br />';
}
$keys = substr($keys, 0, strrpos($keys, '<br /><br />'));
$heading[] = array('text' => '<b>' . $mInfo->title . '</b>');
$contents = array('form' => vam_draw_form('modules', FILENAME_MODULES, 'set=' . $_GET['set'] . '&module=' . $_GET['module'] . '&action=save'));
$contents[] = array('text' => $keys);
$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') . ' ' . BUTTON_INSERT . '</button></span> <a class="button" href="' . vam_href_link(FILENAME_MODULES, 'set=' . $_GET['set'] . '&module=' . $_GET['module']) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . ' ' . BUTTON_CANCEL . '</span></a>');
break;
default:
$heading[] = array('text' => '<b>' . $mInfo->title . '</b>');
if ($mInfo->status == '1') {
$keys = '';
reset($mInfo->keys);
while (list(, $value) = each($mInfo->keys)) {
$keys .= '<b>' . $value['title'] . '</b><br />';
if ($value['use_function']) {
$use_function = $value['use_function'];
if (preg_match('/->/', $use_function)) {
$class_method = explode('->', $use_function);
if (!is_object(${$class_method[0]})) {
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:modules.php
示例8: vam_href_link
?>
</td>
<td align="right"><?php
echo '<a class="button" href="' . vam_href_link(FILENAME_GV_MAIL) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . ' ' . BUTTON_CANCEL . '</span></a> <span class="button"><button type="submit" value="' . BUTTON_SEND_EMAIL . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . ' ' . BUTTON_SEND_EMAIL . '</button></span>';
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</form></tr>
<?php
} else {
?>
<tr><?php
echo vam_draw_form('mail', FILENAME_GV_MAIL, 'action=preview');
?>
<td><table border="0" cellpadding="0" cellspacing="2">
<tr>
<td colspan="2"><?php
echo vam_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<?php
if ($_GET['cID']) {
$select = 'where customers_id=' . $_GET['cID'];
} else {
$customers = array();
$customers[] = array('id' => '', 'text' => TEXT_SELECT_CUSTOMER);
$customers[] = array('id' => '***', 'text' => TEXT_ALL_CUSTOMERS);
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:gv_mail.php
示例9: order
require_once DIR_FS_INC . 'vam_draw_checkbox_field.inc.php';
require_once DIR_FS_INC . 'vam_draw_password_field.inc.php';
require_once DIR_FS_INC . 'vam_validate_email.inc.php';
require_once DIR_FS_INC . 'vam_encrypt_password.inc.php';
require_once DIR_FS_INC . 'vam_create_password.inc.php';
require_once DIR_FS_INC . 'vam_draw_hidden_field.inc.php';
require_once DIR_FS_INC . 'vam_draw_pull_down_menu.inc.php';
require_once DIR_FS_INC . 'vam_get_geo_zone_code.inc.php';
require_once DIR_FS_INC . 'vam_get_zone_name.inc.php';
require_once DIR_FS_INC . 'vam_random_charcode.inc.php';
require DIR_WS_CLASSES . 'shipping.php';
require DIR_WS_CLASSES . 'payment.php';
require DIR_WS_CLASSES . 'order.php';
$order = new order();
$breadcrumb->add(TEXT_CHECKOUT_ALTERNATIVE);
$vamTemplate->assign('FORM_ACTION', vam_draw_form('checkout_alternative', vam_href_link(FILENAME_CHECKOUT_ALTERNATIVE, '', 'SSL'), 'post') . vam_draw_hidden_field('action', 'process'));
$vamTemplate->assign('ADDRESS_LABEL', vam_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, ' ', '<br />'));
//$vamTemplate->assign('BUTTON_ADDRESS', '<a href="'.vam_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL').'">'.vam_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS).'</a>');
$vamTemplate->assign('FORM_END', '</form>');
if ($order->content_type == 'virtual' || $order->content_type == 'virtual_weight' || $_SESSION['cart']->count_contents_virtual() == 0) {
$_SESSION['shipping'] = false;
$_SESSION['sendto'] = false;
$vamTemplate->assign('virtual', 'true');
} else {
$vamTemplate->assign('virtual', 'false');
}
$process = false;
if (isset($_POST['action']) && $_POST['action'] == 'process') {
$process = true;
$_SESSION['wm'] = $_POST['wm'];
if (!isset($_SESSION['kvit_name'])) {
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:checkout_alternative.php
示例10: vam_redirect
}
// no addresses to select from - customer decided to keep the current assigned address
} else {
$_SESSION['billto'] = $_SESSION['customer_default_address_id'];
vam_redirect(vam_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}
}
// if no billing destination address was selected, use their own address as default
if (!isset($_SESSION['billto'])) {
$_SESSION['billto'] = $_SESSION['customer_default_address_id'];
}
$breadcrumb->add(NAVBAR_TITLE_1_PAYMENT_ADDRESS, vam_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2_PAYMENT_ADDRESS, vam_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
$addresses_count = vam_count_customer_address_book_entries();
require DIR_WS_INCLUDES . 'header.php';
$vamTemplate->assign('FORM_ACTION', vam_draw_form('checkout_address', vam_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'), 'post', 'onsubmit="return checkform(this);"') . vam_draw_hidden_field('required', 'gender,firstname,lastname,address,postcode,city,state,country', 'id="required"'));
if ($messageStack->size('checkout_address') > 0) {
$vamTemplate->assign('error', $messageStack->output('checkout_address'));
}
if ($process == false) {
$vamTemplate->assign('ADDRESS_LABEL', vam_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, ' ', '<br />'));
if ($addresses_count > 1) {
$address_content = '';
$radio_buttons = 0;
$addresses_query = vam_db_query("select address_book_id, entry_firstname as firstname, entry_secondname as secondname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $_SESSION['customer_id'] . "'");
while ($addresses = vam_db_fetch_array($addresses_query)) {
$format_id = vam_get_address_format_id($address['country_id']);
$address_content .= '';
if ($addresses['address_book_id'] == $_SESSION['billto']) {
$address_content .= '' . "\n";
} else {
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:checkout_payment_address.php
示例11: vam_draw_form
" align="left" valign="top">
<!-- left_navigation //-->
<?php
require DIR_WS_INCLUDES . 'column_left.php';
?>
<!-- left_navigation_eof //-->
</td>
<?php
}
?>
<!-- body_text //-->
<td width="100%" valign="top">
<?php
if ($action == 'edit' && $order_exists == true) {
echo vam_draw_form('edit_order', FILENAME_ORDERS_EDIT, vam_get_all_get_params(array('action')) . 'action=update_order');
?>
<div id="header">
<p id="headerTitle" class="pageHeading"><h1 class="contentBoxHeading"><?php
echo sprintf(HEADING_TITLE, $oID, vam_datetime_short($order->info['date_purchased']));
?>
</h1></p>
<ul>
<?php
if (ORDER_EDITOR_USE_AJAX == 'true') {
?>
<script language="JavaScript" type="text/javascript"><!--
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:edit_orders.php
示例12: vam_draw_form
<td class="pageHeading" align="left">
<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';
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:categories.php
示例13: draw_info
function draw_info()
{
global $fInfo, $message, $cip;
$heading = array();
$contents = array();
switch ($this->action) {
case 'upload':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_UPLOAD . '</b>');
$contents = array('form' => vam_draw_form('file', $this->script_name(), 'action=processuploads', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_UPLOAD_INTRO);
$contents[] = array('text' => TEXT_UPLOAD_LIMITS);
$file_upload = '';
for ($i = 1; $i < 11; $i++) {
$file_upload .= $i . ($i > 9 ? ' ' : ' ') . vam_draw_input_field('cip_' . $i, '', 'size="50"', false, 'file') . '<br>';
}
$contents[] = array('text' => '<br>' . $file_upload);
$contents[] = array('align' => 'left', 'text' => '<br>' . ($this->upload_directory_writeable() ? '<span class="button"><button type="submit" value=" ' . BUTTON_UPLOAD . ' ">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . ' ' . BUTTON_UPLOAD . '</button></span>' : '') . ' <a class="button" href="' . vam_href_link($this->script_name(), isset($this->cip) ? 'cip=' . urlencode($this->cip) : '') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . ' ' . BUTTON_CANCEL . '</span></a><br /><br />');
break;
default:
//This is 'info':
if (isset($fInfo) && is_object($fInfo)) {
$heading[] = array('text' => '<b>' . $fInfo->name . '</b>');
// Prints a contrib info:
$cip = new CIP($fInfo->name);
$cip->read_xml();
if ($cip->get_count_php_tags()) {
$message->add(CIP_USES . ' <<b>php</b>> (' . $cip->get_count_php_tags() . ')!', 'notice');
}
//Print description:
$description = $cip->get_data($cip->get_description_id());
if ($description) {
$array = $this->cip_description($description->data);
foreach ($array as $value) {
$contents[] = $value;
}
} else {
$contents[] = array('text' => '<font style="color:red;">' . CONFIG_FILENAME . TEXT_DOESNT_EXISTS . '!!!</font>');
}
}
}
//Prints an error message at the right column
// if ($message->size>0) array_unshift($contents, array('text' => $message->output()."<br>"));
//Prints an error message at the right column
//if (!$heading) $heading[]=array('text' => '<b>Error</b>');
if (vam_not_null($heading) or vam_not_null($contents)) {
$box = new box();
return '<td width="30%" valign="top">' . "\n" . $box->infoBox($heading, $contents) . '</td>' . "\n";
}
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:49,代码来源:ci_cip_manager.class.php
示例14: vam_get_all_get_params
<td class="smallText" align="right"><?php
echo $faq_split->display_links($faq_query_numrows, MAX_DISPLAY_ADMIN_PAGE, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], vam_get_all_get_params(array('page', 'action', 'x', 'y', 'faq_id')));
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete_faq':
//generate box for confirming a faqdeletion
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ITEM . '</b>');
$contents = array('form' => vam_draw_form('faq', FILENAME_FAQ, vam_get_all_get_params(array('action')) . 'action=delete_faq_confirm') . vam_draw_hidden_field('faq_id', $_GET['faq_id']));
$contents[] = array('text' => TEXT_DELETE_ITEM_INTRO);
$contents[] = array('text' => '<br><b>' . $selected_item['question'] . '</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') . ' ' . BUTTON_DELETE . '</button></span><a class="button" href="' . vam_href_link(FILENAME_FAQ, vam_get_all_get_params(array('faq_id', 'action')) . 'faq_id=' . $selected_item['faq_id']) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . ' ' . BUTTON_CANCEL . '</span></a>');
break;
default:
if ($rows > 0) {
if (is_object($fInfo)) {
//an item is selected, so make the side box
$heading[] = array('text' => '<b>' . $fInfo->question . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . vam_href_link(FILENAME_FAQ, vam_get_all_get_params(array('faq_id', 'action')) . 'faq_id=' . $fInfo->faq_id . '&action=new_faq') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/edit.png', '', '12', '12') . ' ' . BUTTON_EDIT . '</span></a> <a class="button" href="' . vam_href_link(FILENAME_FAQ, vam_get_all_get_params(array('faq_id', 'action')) . 'faq_id=' . $fInfo->faq_id . '&action=delete_faq') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . ' ' . BUTTON_DELETE . '</span></a>');
$contents[] = array('text' => '<br>' . $fInfo->answer);
}
} else {
// create category/product info
$heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>');
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:faq.php
示例15: vam_db_query
$customer_info_query = vam_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int) $_SESSION['customer_id'] . "'");
$customer_info = vam_db_fetch_array($customer_info_query);
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');
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:product_reviews_write.php
示例16: array
</td>
<td class="smallText" align="right"><?php
echo $reviews_split->display_links($reviews_query_numrows, MAX_DISPLAY_ADMIN_PAGE, MAX_DISPLAY_PAGE_LINKS, $_GET['page']);
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_REVIEW . '</b>');
$contents = array('form' => vam_draw_form('reviews', FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_REVIEW_INTRO);
$contents[] = array('text' => '<br /><b>' . $rInfo->products_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') . ' ' . BUTTON_DELETE . '</button></span> <a class="button" href="' . vam_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . ' ' . BUTTON_CANCEL . '</span></a>');
break;
default:
if (is_object($rInfo)) {
$heading[] = array('text' => '<b>' . $rInfo->products_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a class="button"href="' . vam_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/edit.png', '', '12', '12') . ' ' . BUTTON_EDIT . '</span></a> <a class="button" href="' . vam_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . ' ' . BUTTON_DELETE . '</span></a>');
$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . vam_date_short($rInfo->date_added));
if (vam_not_null($rInfo->last_modified)) {
$contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . vam_date_short($rInfo->last_modified));
}
$contents[] = array('text' => '<br />' . vam_product_thumb_image($rInfo->products_image, $rInfo->products_name));
$contents[] = array('text' => '<br />' . TEXT_INFO_REVIEW_AUTHOR . ' ' . $rInfo->customers_name);
$contents[] = array('text' => TEXT_INFO_REVIEW_RATING . ' ' . vam_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/img/stars_' . $rInfo->reviews_rating . '.gif'));
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:reviews.php
示例17: MONTH
$affiliate_sales_raw = "select a.affiliate_payment, a.affiliate_date, a.affiliate_value, a.affiliate_percent,\n a.affiliate_payment, a.affiliate_level AS level,\n o.orders_status as orders_status_id, os.orders_status_name as orders_status, \n MONTH(aa.affiliate_date_account_created) as start_month, YEAR(aa.affiliate_date_account_created) as start_year\n from " . TABLE_AFFILIATE . " aa\n left join " . TABLE_AFFILIATE_SALES . " a on (aa.affiliate_id = a.affiliate_id )\n left join " . TABLE_ORDERS . " o on (a.affiliate_orders_id = o.orders_id) \n left join " . TABLE_ORDERS_STATUS . " os on (o.orders_status = os.orders_status_id and language_id = '" . $_SESSION['languages_id'] . "')\n where a.affiliate_id = '" . $_SESSION['affiliate_id'] . "' " . $period_clause . $status_clause . $level_clause . " \n group by aa.affiliate_date_account_created, o.orders_status, os.orders_status_name, \n a.affiliate_payment, a.affiliate_date, a.affiliate_value, a.affiliate_percent, \n o.orders_status, os.orders_status_name\n order by affiliate_date DESC";
$count_key = 'aa.affiliate_date_account_created, o.orders_status, os.orders_status_name, a.affiliate_payment, a.affiliate_date, a.affiliate_value, a.affiliate_percent, o.orders_status, os.orders_status_name';
$affiliate_sales_split = new splitPageResults($affiliate_sales_raw, $_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, $count_key);
if ($affiliate_sales_split->number_of_rows > 0) {
$affiliate_sales_values = vam_db_query($affiliate_sales_split->sql_query);
$affiliate_sales = vam_db_fetch_array($affiliate_sales_values);
} else {
$affiliate_sales_values = vam_db_query("select MONTH(affiliate_date_account_created) as start_month,\n YEAR(affiliate_date_account_created) as start_year\n FROM " . TABLE_AFFILIATE . " WHERE affiliate_id = '" . $_SESSION['affiliate_id'] . "'");
$affiliate_sales = vam_db_fetch_array($affiliate_sales_values);
}
$vamTemplate->assign('period_selector', affiliate_period('a_period', $affiliate_sales['start_year'], $affiliate_sales['start_month'], true, vam_db_prepare_input($_GET['a_period']), 'onchange="this.form.submit();"'));
$vamTemplate->assign('status_selector', affiliate_get_status_list('a_status', vam_db_prepare_input($_GET['a_status']), 'onchange="this.form.submit();"'));
$vamTemplate->assign('level_selector', affiliate_get_level_list('a_level', vam_db_prepare_input($_GET['a_level']), 'onchange="this.form.submit();"'));
require DIR_WS_INCLUDES . 'header.php';
$vamTemplate->assign('affiliate_sales_split_numbers', $affiliate_sales_split->number_of_rows);
$vamTemplate->assign('FORM_ACTION', vam_draw_form('params', vam_href_link(FILENAME_AFFILIATE_SALES), 'get'));
$affiliate_sales_table = '';
if ($affiliate_sales_split->number_of_rows > 0) {
$number_of_sales = 0;
$sum_of_earnings = 0;
do {
$number_of_sales++;
if ($affiliate_sales['orders_status_id'] >= AFFILIATE_PAYMENT_ORDER_MIN_STATUS) {
$sum_of_earnings += $affiliate_sales['affiliate_payment'];
}
if ($number_of_sales / 2 == floor($number_of_sales / 2)) {
$affiliate_sales_table .= '<tr class="productListing-even">';
} else {
$affiliate_sales_table .= '<tr class="productListing-odd">';
}
$affiliate_sales_table .= '<td class="smallText" align="center">' . vam_date_short($affiliate_sales['affiliate_date']) . '</td>';
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:affiliate_sales.php
-
GitbookIO/gitbook:
阅读:954|2022-08-17
-
juleswhite/mobile-cloud-asgn1
阅读:1029|2022-08-30
-
kyamagu/matlab-json: Use official API: https://mathworks.com/help/matlab/json-fo
阅读:924|2022-08-17
-
书名:墙壁眼睛膝盖 作者:温柔一刀 类别:欲望丛林,饮食男女。 簡介:Wall(我)Eye(爱)Kn
阅读:655|2022-11-06
-
前言 在编写MATLAB程序时,我们可以不指定变量的数据类型。这使得MATALB编程很接近演
阅读:1519|2022-07-18
-
sevenjay/cpp-markdown: Cpp-Markdown is a freely-available Markdown text-to-HTML
阅读:578|2022-08-18
-
Q1: 多线程中需避免多个线程同时向全局变量进行写入操作,导致访问冲突问题。A1:
阅读:1193|2022-07-18
-
An issue in the isSVG() function of Known v1.2.2+2020061101 allows attackers to
阅读:967|2022-07-29
-
mathjax/MathJax-i18n: MathJax localization
阅读:387|2022-08-16
-
众所周知,我们的身份证号码里面包含的信息有很多,如出生日期、性别和识别码等,如果
阅读:251|2022-11-06
|
请发表评论