本文整理汇总了PHP中vam_draw_input_field函数的典型用法代码示例。如果您正苦于以下问题:PHP vam_draw_input_field函数的具体用法?PHP vam_draw_input_field怎么用?PHP vam_draw_input_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了vam_draw_input_field函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: selection
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;
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:8,代码来源:schet.php
示例2: selection
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;
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:10,代码来源:banktransfer.php
示例3: selection
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;
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:11,代码来源:kvitancia.php
示例4: selection
function selection()
{
global $order;
for ($i = 1; $i < 13; $i++) {
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
$expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_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' => ' <small>' . MODULE_PAYMENT_IPAYMENTELV_TEXT_IBAN . '</small>')), 'description' => $this->info);
return $selection;
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:13,代码来源:ipaymentelv.php
示例5: selection
function selection()
{
global $order;
for ($i = 1; $i < 13; $i++) {
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
$expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$selection = array('id' => $this->code, 'module' => $this->title, 'description' => $this->info, 'fields' => array(array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_OWNER, 'field' => vam_draw_input_field('ipayment_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_NUMBER, 'field' => vam_draw_input_field('ipayment_cc_number')), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_EXPIRES, 'field' => vam_draw_pull_down_menu('ipayment_cc_expires_month', $expires_month) . ' ' . 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"') . ' <small>' . MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small>')));
return $selection;
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:13,代码来源:ipayment.php
示例6: selection
function selection()
{
global $order;
if (MODULE_PAYMENT_PSIGATE_INPUT_MODE == 'Local') {
for ($i = 1; $i < 13; $i++) {
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
$expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_OWNER, 'field' => $order->billing['firstname'] . ' ' . $order->billing['lastname']), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_NUMBER, 'field' => vam_draw_input_field('psigate_cc_number')), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_EXPIRES, 'field' => vam_draw_pull_down_menu('psigate_cc_expires_month', $expires_month) . ' ' . vam_draw_pull_down_menu('psigate_cc_expires_year', $expires_year))));
} else {
$selection = array('id' => $this->code, 'module' => $this->title, 'description' => $this->info);
}
return $selection;
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:17,代码来源:psigate.php
示例7: 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
示例8: selection
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>')));
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:20,代码来源:aviso.php
示例9: Project
-----------------------------------------------------------------------------------------
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);
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:search.php
示例10: vam_href_link
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);
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:password_double_opt.php
示例11: vam_draw_form
<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') . ' ' . BUTTON_SEARCH . '</button></span>';
?>
</td>
</form>
</tr>
</table>
<hr noshade>
</td>
</tr>
<tr>
<td>
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:cross_selling.php
示例12: vam_draw_input_field
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$shipping_status_inputs_string .= '<br />' . $languages[$i]['name'] . ': ' . 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') . ' ' . 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') . ' ' . 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'] . ': ' . 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') . ' ' . 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') . ' ' . 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') . ' ' . 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') . ' ' . BUTTON_CANCEL . '</span></a>');
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:shipping_status.php
示例13: 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
示例14: vam_draw_separator
?>
</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
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:gv_mail.php
示例15: 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
示例16: vam_draw_input_field
<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);
?>
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:new_category.php
示例17: 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
示例18: vam_image
echo vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12');
?>
<?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');
?>
<?php
echo BUTTON_INSERT;
?>
</button></span></td>
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:customer_to_manufacturer_discount.php
示例19: vam_draw_form
<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');
?>
<?php
echo DAYS_FIELD_BUTTON;
?>
</button></span></td>
</tr>
</table>
</form>
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:recover_cart_sales.php
示例20: array
$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') . ' ' . 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') . ' ' . 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') . ' ' . 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') . ' ' . 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&quo
|
请发表评论