Esempio n. 1
0
 function selection()
 {
     global $order;
     $payment_query = vam_db_query("select * from " . TABLE_COMPANIES . " where customers_id = '" . (int) $order->customer['id'] . "'");
     $payment_data = vam_db_fetch_array($payment_query);
     $selection = array('id' => $this->code, 'module' => $this->title, 'description' => $this->info, 'fields' => array(array('title' => '<div id="schet">' . MODULE_PAYMENT_SCHET_J_NAME_TITLE, 'field' => MODULE_PAYMENT_SCHET_J_NAME_DESC), array('title' => MODULE_PAYMENT_SCHET_J_NAME, 'field' => vam_draw_input_field('s_name', $payment_data['name']) . MODULE_PAYMENT_SCHET_J_NAME_IP), array('title' => MODULE_PAYMENT_SCHET_J_INN, 'field' => vam_draw_input_field('s_inn')), array('title' => MODULE_PAYMENT_SCHET_J_TELEPHONE, 'field' => vam_draw_input_field('s_telephone', $order->customer['telephone']) . '</div>')));
     return $selection;
 }
Esempio n. 2
0
 function selection()
 {
     global $order;
     $selection = array('id' => $this->code, 'module' => $this->title, 'description' => $this->info, 'fields' => array(array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE, 'field' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_INFO), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_OWNER, 'field' => vam_draw_input_field('banktransfer_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_BLZ, 'field' => vam_draw_input_field('banktransfer_blz', $_GET['banktransfer_blz'], 'size="8" maxlength="8"')), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_NUMBER, 'field' => vam_draw_input_field('banktransfer_number', $_GET['banktransfer_number'], 'size="16" maxlength="32"')), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_NAME, 'field' => vam_draw_input_field('banktransfer_bankname')), array('title' => '', 'field' => vam_draw_hidden_field('recheckok', $_POST['recheckok']))));
     if (MODULE_PAYMENT_BANKTRANSFER_FAX_CONFIRMATION == 'true') {
         $selection['fields'][] = array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE, 'field' => MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE2 . '<a href="' . MODULE_PAYMENT_BANKTRANSFER_URL_NOTE . '" target="_blank"><b>' . MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE3 . '</b></a>' . MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE4);
         $selection['fields'][] = array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_FAX, 'field' => vam_draw_checkbox_field('banktransfer_fax', 'on'));
     }
     return $selection;
 }
Esempio n. 3
0
 function selection()
 {
     global $order;
     if (vam_not_null($this->icon)) {
         $icon = vam_image($this->icon, $this->title);
     }
     //$person_query = vam_db_query("select * from ".TABLE_PERSONS." where customers_id = '" . (int)$order->customer['id'] . "'");
     //$person_data = vam_db_fetch_array($payment_query);
     $selection = array('id' => $this->code, 'module' => $this->title, 'icon' => $icon, 'description' => $this->info, 'fields' => array(array('title' => '<div id="kvitancia">' . MODULE_PAYMENT_KVITANCIA_NAME_TITLE, 'field' => MODULE_PAYMENT_KVITANCIA_NAME_DESC), array('title' => MODULE_PAYMENT_KVITANCIA_NAME, 'field' => vam_draw_input_field('kvit_name', $order->customer['firstname'] . ' ' . $order->customer['lastname'])), array('title' => MODULE_PAYMENT_KVITANCIA_ADDRESS, 'field' => vam_draw_input_field('kvit_address', $order->customer['city'] . ' ' . $order->customer['street_address']) . MODULE_PAYMENT_KVITANCIA_ADDRESS_HELP . '</div>')));
     return $selection;
 }
Esempio n. 4
0
 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_IPAYMENTELV_TEXT_BANK_OWNER, 'field' => vam_draw_input_field('ipayment_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_IPAYMENTELV_TEXT_BANK_NAME, 'field' => vam_draw_input_field('ipayment_bank_name')), array('title' => MODULE_PAYMENT_IPAYMENTELV_TEXT_BANK_BLZ, 'field' => vam_draw_input_field('ipayment_bank_code')), array('title' => MODULE_PAYMENT_IPAYMENTELV_TEXT_BANK_NUMBER, 'field' => vam_draw_input_field('ipayment_bank_account')), array('title' => MODULE_PAYMENT_IPAYMENTELV_TEXT_BANK_IBAN, 'field' => vam_draw_input_field('ipayment_bank_iban')), array('field' => '&nbsp;<small>' . MODULE_PAYMENT_IPAYMENTELV_TEXT_IBAN . '</small>')), 'description' => $this->info);
     return $selection;
 }
Esempio n. 5
0
 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;
 }
Esempio n. 6
0
 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;
 }
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;
}
Esempio n. 8
0
 function selection()
 {
     if (isset($_SESSION['cart_aviso_id'])) {
         $order_id = substr($_SESSION['cart_aviso_id'], strpos($_SESSION['cart_aviso_id'], '-') + 1);
         $check_query = vam_db_query('select orders_id from ' . TABLE_ORDERS_STATUS_HISTORY . ' where orders_id = "' . (int) $order_id . '" limit 1');
         if (vam_db_num_rows($check_query) < 1) {
             vam_db_query('delete from ' . TABLE_ORDERS . ' where orders_id = "' . (int) $order_id . '"');
             vam_db_query('delete from ' . TABLE_ORDERS_TOTAL . ' where orders_id = "' . (int) $order_id . '"');
             vam_db_query('delete from ' . TABLE_ORDERS_STATUS_HISTORY . ' where orders_id = "' . (int) $order_id . '"');
             vam_db_query('delete from ' . TABLE_ORDERS_PRODUCTS . ' where orders_id = "' . (int) $order_id . '"');
             vam_db_query('delete from ' . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . ' where orders_id = "' . (int) $order_id . '"');
             vam_db_query('delete from ' . TABLE_ORDERS_PRODUCTS_DOWNLOAD . ' where orders_id = "' . (int) $order_id . '"');
             unset($_SESSION['cart_aviso_id']);
         }
     }
     if (vam_not_null($this->icon)) {
         $icon = vam_image($this->icon, $this->title);
     }
     return array('id' => $this->code, 'module' => $this->title, 'icon' => $icon, 'description' => $this->info, 'fields' => array(array('title' => '<div id="aviso">' . MODULE_PAYMENT_AVISO_NAME_TITLE, 'field' => MODULE_PAYMENT_AVISO_NAME_DESC), array('title' => MODULE_PAYMENT_AVISO_TELEPHONE, 'field' => vam_draw_input_field('aviso_telephone', $order->customer['telephone']) . MODULE_PAYMENT_AVISO_TELEPHONE_HELP . '</div>')));
 }
Esempio n. 9
0
   -----------------------------------------------------------------------------------------
   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'];
    $box_search = $box->fetch(CURRENT_TEMPLATE . '/boxes/box_search.html', $cache_id);
    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';
$vamTemplate->display($template);
Esempio n. 11
0
<td class="pageHeading"><hr noshade><?php 
echo CROSS_SELLING_SEARCH;
?>

<table>
<br><br>
<tr class="dataTableRow">
<?php 
echo vam_draw_form('product_search', FILENAME_CATEGORIES, '', 'GET');
echo vam_draw_hidden_field('action', 'edit_crossselling');
echo vam_draw_hidden_field(vam_session_name(), vam_session_id());
echo vam_draw_hidden_field('current_product_id', $_GET['current_product_id']);
echo vam_draw_hidden_field('cpath', $_GET['cpath']);
?>
<td class="dataTableContent" width="40"><?php 
echo vam_draw_input_field('search', '', 'size="30"');
?>
</td>
<td class="dataTableContent">
<?php 
echo '<span class="button"><button type="submit" value="' . BUTTON_SEARCH . '"/>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/search.png', '', '12', '12') . '&nbsp;' . BUTTON_SEARCH . '</button></span>';
?>
</td>
</form>
</tr>
</table>
<hr noshade>
</td>
</tr>
<tr>
<td>
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $shipping_status_inputs_string .= '<br />' . $languages[$i]['name'] . ':&nbsp;' . vam_draw_input_field('shipping_status_name[' . $languages[$i]['id'] . ']');
     }
     $contents[] = array('text' => '<br />' . TEXT_INFO_SHIPPING_STATUS_IMAGE . '<br />' . vam_draw_file_field('shipping_status_image'));
     $contents[] = array('text' => '<br />' . TEXT_INFO_SHIPPING_STATUS_NAME . $shipping_status_inputs_string);
     $contents[] = array('text' => '<br />' . vam_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
     $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_SHIPPING_STATUS, '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_SHIPPING_STATUS . '</b>');
     $contents = array('form' => vam_draw_form('status', FILENAME_SHIPPING_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->shipping_status_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $shipping_status_inputs_string = '';
     $languages = vam_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $shipping_status_inputs_string .= '<br />' . $languages[$i]['name'] . ':&nbsp;' . vam_draw_input_field('shipping_status_name[' . $languages[$i]['id'] . ']', vam_get_shipping_status_name($oInfo->shipping_status_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . TEXT_INFO_SHIPPING_STATUS_IMAGE . '<br />' . vam_draw_file_field('shipping_status_image', $oInfo->shipping_status_image));
     $contents[] = array('text' => '<br />' . TEXT_INFO_SHIPPING_STATUS_NAME . $shipping_status_inputs_string);
     if (DEFAULT_SHIPPING_STATUS_ID != $oInfo->shipping_status_id) {
         $contents[] = array('text' => '<br />' . vam_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
     }
     $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_SHIPPING_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->shipping_status_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_SHIPPING_STATUS . '</b>');
     $contents = array('form' => vam_draw_form('status', FILENAME_SHIPPING_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->shipping_status_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br /><b>' . $oInfo->shipping_status_name . '</b>');
     if ($remove_status) {
         $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_SHIPPING_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->shipping_status_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
Esempio n. 13
0
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;
}
Esempio n. 14
0
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td valign="top" class="main"><?php 
    echo TEXT_AMOUNT;
    ?>
</td>
                <td><?php 
    echo vam_draw_input_field('amount');
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td valign="top" class="main"><?php 
    echo TEXT_MESSAGE;
    ?>
</td>
                <td><?php 
Esempio n. 15
0
         <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') {
Esempio n. 16
0
            <td valign="top" class="main"><?php 
echo TEXT_YANDEX_MARKET_BID;
?>
</td>
            <td valign="top" class="main"><?php 
echo vam_draw_input_field('yml_bid', $cInfo->yml_bid, 'size="2"');
?>
</td>
          </tr>
          <tr>
            <td valign="top" class="main"><?php 
echo TEXT_YANDEX_MARKET_CBID;
?>
</td>
            <td valign="top" class="main"><?php 
echo vam_draw_input_field('yml_cbid', $cInfo->yml_cbid, 'size="2"');
?>
</td>
          </tr>
	<!-- slider -->	
		  <tr>
            <td valign="top" class="main">Slider</td>
            <td valign="top" class="main">
			<?php 
$slider_query = vam_db_query("select slider_id, slider_name from slider");
$slider_array[] = array('id' => '0', 'text' => 'none');
while ($slider_res = vam_db_fetch_array($slider_query)) {
    $slider_array[] = array('id' => $slider_res['slider_id'], 'text' => $slider_res['slider_name']);
}
echo vam_draw_pull_down_menu('slider', $slider_array, $cInfo->slider_id);
?>
Esempio n. 17
0
             <?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>
    echo vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12');
    ?>
&nbsp;<?php 
    echo BUTTON_DELETE;
    ?>
</span></a></td>
      </tr>
    </table>
<?php 
    $i++;
}
?>
    <table width="100%">
      <tr>
        <td class="main"><?php 
echo vam_draw_input_field('manufacturer_discount_new');
?>
%
        <?php 
echo $select_string;
?>
        <span class="button"><button type="submit" value="<?php 
echo BUTTON_INSERT;
?>
"><?php 
echo vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12');
?>
&nbsp;<?php 
echo BUTTON_INSERT;
?>
</button></span></td>
            <tr>
              <td class="pageHeading" align="left" width="100%" colspan="8">
                <?php 
    $tdate = $_POST['tdate'];
    if ($_POST['tdate'] == '') {
        $tdate = $BASE_DAYS;
    }
    ?>
                <?php 
    echo vam_draw_form('form', FILENAME_RECOVER_CART_SALES);
    ?>
                  <table align="right" width="100%" border="0">
                    <tr class="dataTableContent" align="right">
                      <td><?php 
    echo DAYS_FIELD_PREFIX;
    echo vam_draw_input_field('tdate', $tdate, 'size="4"');
    echo DAYS_FIELD_POSTFIX;
    ?>
<span class="button"><button type="submit" value="<?php 
    echo DAYS_FIELD_BUTTON;
    ?>
"><?php 
    echo vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12');
    ?>
&nbsp;<?php 
    echo DAYS_FIELD_BUTTON;
    ?>
</button></span></td>
                    </tr>
                  </table>
                </form>
Esempio n. 20
0
$heading = array();
$contents = array();
switch ($_GET['action']) {
    case 'new':
        $heading[] = array('text' => '<b>' . TEXT_HEADING_NEW_BLACKLIST_CARD . '</b>');
        $contents = array('form' => vam_draw_form('blacklisted', FILENAME_BLACKLIST, 'action=insert', 'post', 'enctype="multipart/form-data"'));
        $contents[] = array('text' => TEXT_NEW_INTRO);
        $contents[] = array('text' => '<br />' . TEXT_BLACKLIST_CARD_NUMBER . '<br />' . vam_draw_input_field('blacklist_card_number'));
        $blacklist_inputs_string = '';
        $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_SAVE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/save.png', '', '12', '12') . '&nbsp;' . BUTTON_SAVE . '</button></span> <a class="button" href="' . vam_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $_GET['bID']) . '"><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_HEADING_EDIT_BLACKLIST_CARD . '</b>');
        $contents = array('form' => vam_draw_form('blacklisted', FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
        $contents[] = array('text' => TEXT_EDIT_INTRO);
        $contents[] = array('text' => '<br />' . TEXT_BLACKLIST_CARD_NUMBER . '<br />' . vam_draw_input_field('blacklist_card_number', $bInfo->blacklist_card_number));
        $blacklist_inputs_string = '';
        $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_SAVE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/save.png', '', '12', '12') . '&nbsp;' . BUTTON_SAVE . '</button></span> <a class="button" href="' . vam_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $mInfo->blacklist_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_HEADING_DELETE_BLACKLIST_CARD . '</b>');
        $contents = array('form' => vam_draw_form('blacklisted', FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br /><b>' . $bInfo->blacklist_card_number . '</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_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
        break;
    default:
        if (is_object($bInfo)) {
            $heading[] = array('text' => '<b>' . $bInfo->blacklist_card_number . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . vam_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_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_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_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_DATE_ADDED . ' ' . vam_date_short($bInfo->date_added));
Esempio n. 21
0
            </table></td>
<?php 
$heading = array();
$contents = array();
switch ($_GET['action']) {
    case 'edit':
        $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') . '&nbsp;' . 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') . '&nbsp;' . 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)) {
function vam_get_values_menu($display_type, $values_select_array, $specification_name, $specification_value)
{
    $box_text = '';
    switch ($display_type) {
        case 'pulldown':
            $box_text .= vam_draw_pull_down_menu($specification_name, $values_select_array, $specification_value);
            break;
        case 'radio':
            foreach ($values_select_array as $value) {
                $checked = $value['id'] == $specification_value ? true : false;
                $box_text .= vam_draw_radio_field($specification_name, $value['id'], $checked) . '&nbsp;' . $value['text'];
                $box_text .= '<br>' . "\n";
            }
            break;
        case 'multi':
            $box_text .= vam_draw_multi_pull_down_menu($specification_name . '[]', $values_select_array, $specification_value, 'multiple="' . $specification_name . 'f"');
            break;
        case 'checkbox':
            $checkbox_id = 0;
            foreach ($values_select_array as $value) {
                $checked = false;
                if (is_array($specification_value)) {
                    foreach ($specification_value as $spec) {
                        if ($spec['id'] == $value['id']) {
                            $checked = true;
                            break;
                        }
                    }
                } else {
                    $checked = $value['id'] == $specification_value[$checkbox_id] ? true : false;
                }
                // if (is_array ... else ...
                $box_text .= vam_draw_checkbox_field($specification_name . '[' . $checkbox_id . ']', $value['id'], $checked) . '&nbsp;' . $value['text'];
                $box_text .= '<br>' . "\n";
                $checkbox_id++;
            }
            // foreach ($values_select_array
            break;
        case 'image':
            $value = $specification_value != '0' ? $specification_value : '';
            foreach ($values_select_array as $value) {
                $checked = $value['id'] == $specification_value ? true : false;
                $box_text .= '<span class=image_box>';
                $box_text .= vam_draw_radio_field($specification_name, $value['id'], $checked);
                $box_text .= '&nbsp;&nbsp;' . vam_image(DIR_WS_CATALOG_IMAGES . $value['text'], $value['text'], SPECIFICATIONS_FILTER_IMAGE_WIDTH, SPECIFICATIONS_FILTER_IMAGE_HEIGHT, ' class="image_filter"');
                $box_text .= '</span>' . "\n";
            }
            break;
        case 'multiimage':
            foreach ($values_select_array as $value) {
                $checked = $value['id'] == $specification_value ? true : false;
                if ($value['id'] == '0') {
                    $value['id'] = SPECIFICATIONS_GET_ALL_IMAGE;
                    $value['text'] = SPECIFICATIONS_GET_ALL_IMAGE;
                }
                $box_text .= '<span class=image_box>';
                $box_text .= vam_draw_checkbox_field($specification_name, $value['id'], $checked);
                $box_text .= '&nbsp;&nbsp;' . vam_image(DIR_WS_CATALOG_IMAGES . $value['text'], $value['text'], SPECIFICATIONS_FILTER_IMAGE_WIDTH, SPECIFICATIONS_FILTER_IMAGE_HEIGHT, ' class="image_filter"');
                $box_text .= '</span>' . "\n";
            }
            break;
        default:
        case 'text':
            $value = $specification_value != 0 ? $specification_value : '';
            $box_text .= vam_draw_input_field($specification_name, $value);
            break;
    }
    // switch ($display_type
    return $box_text;
}
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td class="main"><?php 
    echo TEXT_SUBJECT;
    ?>
</td>
                <td><?php 
    echo vam_draw_input_field('subject', '', 'size="60"');
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td valign="top" class="main"><?php 
    echo TEXT_MESSAGE;
    ?>
</td>
                <td><?php 
$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);
        }
    }
}
Esempio n. 25
0
              </table>
            </td>
          <tr>
          <tr>
            <td colspan="2"><?php 
        echo vam_draw_separator('pixel_trans.gif', '1', '10');
        ?>
</td>
          </tr>
          <tr>
            <td class="main" valign="top"><?php 
        echo TEXT_AUTHORS_URL;
        ?>
</td>
            <td class="main" valign="top"><?php 
        echo $languages[$i]['name'] . '&nbsp;' . vam_draw_input_field('authors_url[' . $languages[$i]['id'] . ']', vam_get_author_url($authors['authors_id'], $languages[$i]['id']), 'size="30"');
        ?>
</td>
          <tr>
          <tr>
            <td colspan="2"><?php 
        echo vam_draw_separator('pixel_trans.gif', '1', '10');
        ?>
</td>
          </tr>
<?php 
    }
    ?>
-->
      <tr>
        <td class="main">&nbsp;</td>
Esempio n. 26
0
    $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>');
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/gv_send.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_GV_SEND . '.html') ? CURRENT_TEMPLATE . '/' . FILENAME_GV_SEND . '.html' : CURRENT_TEMPLATE . '/index.html';
    ?>
</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>
Esempio n. 28
0
} else {
    switch ($_GET['action']) {
        case 'new_zone':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_ZONE . '</b>');
            $contents = array('form' => vam_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=insert_zone'));
            $contents[] = array('text' => TEXT_INFO_NEW_ZONE_INTRO);
            $contents[] = array('text' => '<br />' . TEXT_INFO_ZONE_NAME . '<br />' . vam_draw_input_field('geo_zone_name'));
            $contents[] = array('text' => '<br />' . TEXT_INFO_ZONE_DESCRIPTION . '<br />' . vam_draw_input_field('geo_zone_description'));
            $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']) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
            break;
        case 'edit_zone':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_ZONE . '</b>');
            $contents = array('form' => vam_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=save_zone'));
            $contents[] = array('text' => TEXT_INFO_EDIT_ZONE_INTRO);
            $contents[] = array('text' => '<br />' . TEXT_INFO_ZONE_NAME . '<br />' . vam_draw_input_field('geo_zone_name', $zInfo->geo_zone_name));
            $contents[] = array('text' => '<br />' . TEXT_INFO_ZONE_DESCRIPTION . '<br />' . vam_draw_input_field('geo_zone_description', $zInfo->geo_zone_description));
            $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=' . $zInfo->geo_zone_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
            break;
        case 'delete_zone':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ZONE . '</b>');
            $contents = array('form' => vam_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=deleteconfirm_zone'));
            $contents[] = array('text' => TEXT_INFO_DELETE_ZONE_INTRO);
            $contents[] = array('text' => '<br /><b>' . $zInfo->geo_zone_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=' . $zInfo->geo_zone_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
            break;
        default:
            if (is_object($zInfo)) {
                $heading[] = array('text' => '<b>' . $zInfo->geo_zone_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . vam_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=edit_zone') . '"><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=' . $zInfo->geo_zone_id . '&action=delete_zone') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . '&nbsp;' . BUTTON_DELETE . '</span></a>' . ' <a class="button" href="' . vam_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=list') . '"><span>' . BUTTON_DETAILS . '</span></a>');
                $contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_ZONES . ' ' . $zInfo->num_zones);
                $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . vam_date_short($zInfo->date_added));
Esempio n. 29
0
require_once DIR_FS_INC . 'vam_random_charcode.inc.php';
require_once DIR_FS_INC . 'vam_render_vvcode.inc.php';
// create smarty elements
if (isset($_POST['firstname'])) {
    $firstname = $_POST['firstname'];
}
if (isset($_POST['phone'])) {
    $phone = $_POST['phone'];
}
if (isset($_POST['message_body'])) {
    $message_body = stripslashes($_POST['message_body']);
}
if (isset($_POST['phone'])) {
    $subject = $_POST['subject'];
    $txt_mail = 'tel: ' . $phone . " " . $message_body;
    // отправка данных
    vam_php_mail('', EMAIL_SUPPORT_NAME, EMAIL_SUPPORT_ADDRESS, STORE_NAME, EMAIL_SUPPORT_FORWARDING_STRING, '', $firstname, '', '', $subject, '', $txt_mail);
    die('Спасибо. Ваше сообщение отправлено. Вскоре мы Вам перезвоним.');
}
$vamTemplate = new vamTemplate();
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('CAPTCHA_IMG', vam_image(HTTP_SERVER . DIR_WS_CATALOG . FILENAME_DISPLAY_CAPTCHA, 'captcha', '150', '', 'name="captcha" '));
$vamTemplate->assign('CAPTCHA_INPUT', vam_draw_input_field('captcha', '', 'size="6" maxlength="6"', 'text', false));
$vamTemplate->assign('FORM_ACTION', vam_draw_form('callback_form', '') . vam_draw_hidden_field('action', 'process') . vam_draw_hidden_field('products_id', $_GET['products_id']));
$vamTemplate->assign('INPUT_FIRSTNAME', vam_draw_input_field('firstname', $firstname, 'size="30" maxlength="100"', 'text', true));
$vamTemplate->assign('INPUT_LASTNAME', vam_draw_input_field('phone', $phone, 'size="30" maxlength="100"', 'text', true));
$vamTemplate->assign('INPUT_TEXT', vam_draw_textarea_field('message_body', 'soft', 30, 3, $message_body));
$vamTemplate->assign('FORM_END', '</form>');
$vamTemplate->assign('BUTTON_SUBMIT', '<a class="button" id="callback_send" href="javascript:void(0);">' . vam_image_button('submit.png', IMAGE_BUTTON_SEND) . '</a>');
$vamTemplate->assign('BUTTON_CONTINUE', '<a class="button" href="javascript:void(0);" onclick="$(\'#showCart\').dialog(\'close\');">' . vam_image_button('back.png', IMAGE_BUTTON_BACK) . '</a>');
$vamTemplate->display(CURRENT_TEMPLATE . '/module/callback_form.html');
Esempio n. 30
0
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td class="main"><?php 
    echo TEXT_SUBJECT;
    ?>
</td>
                <td><?php 
    echo vam_draw_input_field('subject');
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td valign="top" class="main"><?php 
    echo TEXT_MESSAGE;
    ?>
</td>
                <td><?php