本文整理汇总了PHP中olc_draw_input_field函数的典型用法代码示例。如果您正苦于以下问题:PHP olc_draw_input_field函数的具体用法?PHP olc_draw_input_field怎么用?PHP olc_draw_input_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了olc_draw_input_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_FIRST_NAME, 'field' => olc_draw_input_field('pm_2checkout_cc_owner_firstname', $order->billing['firstname'])), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_LAST_NAME, 'field' => olc_draw_input_field('pm_2checkout_cc_owner_lastname', $order->billing['lastname'])), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_NUMBER, 'field' => olc_draw_input_field('pm_2checkout_cc_number')), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_EXPIRES, 'field' => olc_draw_pull_down_menu('pm_2checkout_cc_expires_month', $expires_month) . HTML_NBSP . olc_draw_pull_down_menu('pm_2checkout_cc_expires_year', $expires_year)), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => olc_draw_input_field('pm_2checkout_cc_cvv', EMPTY_STRING, 'size="4" maxlength="3"') . ' <small>' . MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small>')));
return $selection;
}
示例2: selection
function selection()
{
global $order;
//W. Kaiser - AJAX
$bank_info_required = $_SESSION['credit_covers'] != true;
$selection = array('id' => $this->code, 'module' => $this->title, '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' => olc_draw_input_field('banktransfer_owner', trim($order->billing['firstname'] . BLANK . $order->billing['lastname'])) . olc_draw_hidden_field('entry_country_id', $order->billing['country']['id'])), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_BLZ, 'field' => olc_draw_input_field('banktransfer_blz', EMPTY_STRING, 'size="10" maxlength="8"', 'text', true, AJAX_BLZ_VALIDATION, $bank_info_required, MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_BLZ, true)), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_NUMBER, 'field' => olc_draw_input_field('banktransfer_number', EMPTY_STRING, 'size="16" maxlength="32"', 'text', true, AJAX_BLZ_VALIDATION, $bank_info_required, MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_NUMBER, true)), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_NAME, 'field' => olc_draw_input_field('banktransfer_bankname', EMPTY_STRING, 'size="32" maxlength="32"')), array('title' => EMPTY_STRING, 'field' => olc_draw_hidden_field('recheckok', $_POST['recheckok']))));
//W. Kaiser - AJAX
if (MODULE_PAYMENT_BANKTRANSFER_FAX_CONFIRMATION == TRUE_STRING_S) {
$selection['fields'][] = array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE, 'field' => MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE2 . HTML_A_START . 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' => olc_draw_checkbox_field('banktransfer_fax', 'on'));
}
return $selection;
}
示例3: 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'] . BLANK . $order->billing['lastname']), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_NUMBER, 'field' => olc_draw_input_field('psigate_cc_number')), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_EXPIRES, 'field' => olc_draw_pull_down_menu('psigate_cc_expires_month', $expires_month) . HTML_NBSP . olc_draw_pull_down_menu('psigate_cc_expires_year', $expires_year))));
} else {
$selection = array('id' => $this->code, 'module' => $this->title);
}
return $selection;
}
示例4: array
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'release':
break;
case 'voucherreport':
$heading[] = array('text' => HTML_B_START . TEXT_HEADING_COUPON_REPORT . HTML_B_END);
$contents[] = array('text' => TEXT_NEW_INTRO);
break;
case 'neww':
$heading[] = array('text' => HTML_B_START . TEXT_HEADING_NEW_COUPON . HTML_B_END);
$contents[] = array('text' => TEXT_NEW_INTRO);
$contents[] = array('text' => HTML_BR . COUPON_NAME . HTML_BR . olc_draw_input_field('name'));
$contents[] = array('text' => HTML_BR . COUPON_AMOUNT . HTML_BR . olc_draw_input_field('voucher_amount'));
$contents[] = array('text' => HTML_BR . COUPON_CODE . HTML_BR . olc_draw_input_field('voucher_code'));
$contents[] = array('text' => HTML_BR . COUPON_USES_COUPON . HTML_BR . olc_draw_input_field('voucher_number_of'));
break;
default:
$heading[] = array('text' => '[' . $cInfo->coupon_id . '] ' . $cInfo->coupon_code);
$amount = $cInfo->coupon_amount;
if ($cInfo->coupon_type == 'P') {
$amount .= '%';
} else {
$amount = $currencies->format($amount);
}
if ($_GET['action'] == 'voucherdelete') {
$contents[] = array('text' => TEXT_CONFIRM_DELETE . '</br></br>' . HTML_A_START . olc_href_link('coupon_admin.php', 'action=confirmdelete&cid=' . $_GET['cid'], NONSSL) . '">' . olc_image_button('button_confirm.gif', 'Confirm Delete Voucher') . HTML_A_END . HTML_A_START . olc_href_link('coupon_admin.php', 'cid=' . $cInfo->coupon_id, NONSSL) . '">' . olc_image_button('button_cancel.gif', 'Cancel') . HTML_A_END);
} else {
$prod_details = NONE;
if ($cInfo->restrict_to_products) {
$prod_details = '<A href="listproducts.php?cid=' . $cInfo->coupon_id . '" TARGET="_blank" onclick="javascript:window.open(\'listproducts.php?cid=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>';
示例5: olc_draw_password_field
function olc_draw_password_field($name, $value = '', $parameters = 'maxlength="40"')
{
return olc_draw_input_field($name, $value, $parameters, 'password', false);
}
示例6: olc_image
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$manufacturer_inputs_string .= HTML_BR . olc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . HTML_NBSP . olc_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', $field_size);
}
$contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_save.gif', IMAGE_SAVE) . BLANK . HTML_A_START . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mID) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
case 'edit':
$heading[] = array('text' => HTML_B_START . TEXT_HEADING_EDIT_MANUFACTURER . HTML_B_END);
$contents = array('form' => olc_draw_form('manufacturers', FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_EDIT_INTRO);
$contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_NAME . HTML_BR . olc_draw_input_field('manufacturers_name', $mInfo->manufacturers_name, $field_size));
$contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_IMAGE . HTML_BR . olc_draw_file_field('manufacturers_image') . HTML_BR . $mInfo->manufacturers_image);
$manufacturer_inputs_string = '';
$languages = olc_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$manufacturer_inputs_string .= HTML_BR . olc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . HTML_NBSP . olc_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', olc_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']), $field_size);
}
$contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_save.gif', IMAGE_SAVE) . BLANK . HTML_A_START . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
case 'delete':
$heading[] = array('text' => HTML_B_START . TEXT_HEADING_DELETE_MANUFACTURER . HTML_B_END);
$contents = array('form' => olc_draw_form('manufacturers', FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO);
$contents[] = array('text' => '<br/><b>' . $mInfo->manufacturers_name . HTML_B_END);
$contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', '', true) . BLANK . TEXT_DELETE_IMAGE);
if ($mInfo->products_count > 0) {
$contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_products') . BLANK . TEXT_DELETE_PRODUCTS);
$contents[] = array('text' => HTML_BR . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
}
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
示例7: olc_draw_separator
<tr>
<td colspan="2"><?php
echo olc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td valign="top" class="main">
<?php
$spiffy_date_field_caption = TEXT_BANNERS_EXPIRES_ON;
$spiffy_date = $bInfo->expires_date;
$spiffy_control_name = "dateExpires";
$spiffy_form_name = 'new_banner';
$spiffy_date_field_name = 'expires_date';
include $create_spiffy_control;
echo TEXT_BANNERS_OR_AT . HTML_BR . olc_draw_input_field('impressions', $bInfo->expires_impressions, 'maxlength="7" size="7"') . BLANK . TEXT_BANNERS_IMPRESSIONS;
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo olc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><?php
示例8: olc_db_query
';
$configuration_query = olc_db_query($configuration_query_sql);
while ($configuration = olc_db_fetch_array($configuration_query)) {
$configuration_value_text = 'configuration_value';
$configuration_value = $configuration[$configuration_value_text];
$use_function = $configuration['use_function'];
if (olc_not_null($use_function)) {
$cfgValue = olc_call_function($use_function, $configuration_value);
} else {
$cfgValue = $configuration_value;
}
$set_function = $configuration['set_function'];
if ($set_function) {
eval('$value_field = ' . $set_function . QUOTE . htmlspecialchars($configuration_value) . '");');
} else {
$value_field = olc_draw_input_field($configuration[$configuration_key_text], $configuration_value, 'size=10');
}
// add
if (strstr($value_field, $configuration_value_text)) {
$value_field = str_replace($configuration_value_text, $configuration[$configuration_key_text], $value_field);
}
$configuration_key_u = strtoupper($configuration[$configuration_key_text]);
$main_content .= '
<tr>
<td valign="top" class="pageSubHeading"><b>' . constant($configuration_key_u . '_TITLE') . '</b></td>
<td valign="top" class="pageSubHeading">' . $value_field . HTML_BR . HTML_B_START . constant($configuration_key_u . '_DESC') . HTML_B_END . '
</td>
</tr>';
}
$main_content .= '
</table>
示例9: olc_draw_separator
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo olc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_SUBJECT;
?>
</td>
<td><?php
echo olc_draw_input_field('subject', '', 'size="60"');
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo olc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td valign="top" class="main"><?php
echo TEXT_MESSAGE;
?>
</td>
<td><?php
示例10: olc_db_query
$zone_name = 'zone_name';
$db_data_query = olc_db_query($sql_select . $zone_id . COMMA . $zone_name . SQL_FROM . TABLE_PREFIX_COMMON . 'zones' . " where zone_country_id = '" . $current_value . "' order by " . $zone_name);
$rows = olc_db_num_rows($db_data_query);
if ($rows >= 1) {
$id = 'id';
$text = 'text';
while ($value = olc_db_fetch_array($db_data_query)) {
$zones_array[] = array($id => $value[$zone_id], $text => $value[$zone_name]);
}
if ($rows > 1) {
require_once DIR_FS_INC . 'olc_not_null.inc.php';
require_once DIR_FS_INC . 'olc_draw_pull_down_menu.inc.php';
$main_content = olc_draw_pull_down_menu('entry_state', $zones_array);
} else {
require_once DIR_FS_INC . 'olc_draw_input_field.inc.php';
$main_content = olc_draw_input_field($entry_state_text, $zones_array[0]['text']);
}
} else {
$main_content = HTML_NBSP;
}
$build_selection = true;
} else {
$check_banktransfer_number = $action == $banktransfer_number;
$current_value = str_replace("*", "%", $current_value);
$sql_where_condition = $sql_select_data . SQL_LIKE . APOS . $current_value . HASH . APOS;
if ($add_land_condition) {
$sql_where_condition .= SQL_AND . "land = '" . $land . APOS;
}
if (!$is_bank_check) {
$selection = "*";
}
示例11: olc_draw_hidden_field
$fax_content = $a_fax . olc_draw_hidden_field('a_fax');
}
} else {
$fax_content = olc_draw_input_field('a_fax', $affiliate['affiliate_fax']) . HTML_NBSP . ENTRY_FAX_NUMBER_TEXT;
}
$module_smarty->assign('fax_content', $fax_content);
if ($is_read_only == true) {
$homepage_content = $affiliate['affiliate_homepage'];
} elseif ($error == true) {
if ($entry_homepage_error == true) {
$homepage_content = olc_draw_input_field('a_homepage') . HTML_NBSP . ENTRY_AFFILIATE_HOMEPAGE_ERROR;
} else {
$homepage_content = $a_homepage . olc_draw_hidden_field('a_homepage');
}
} else {
$homepage_content = olc_draw_input_field('a_homepage', $affiliate['affiliate_homepage']) . HTML_NBSP . ENTRY_AFFILIATE_HOMEPAGE_TEXT;
}
$module_smarty->assign('homepage_content', $homepage_content);
if ($is_read_only == false) {
$module_smarty->assign('PASSWORD_READONLY', FALSE_STRING_S);
if ($error == true) {
$module_smarty->assign('error', TRUE_STRING_S);
if ($entry_password_error == true) {
$password_content = olc_draw_password_field('a_password') . HTML_NBSP . ENTRY_PASSWORD_ERROR;
} else {
$password_content = PASSWORD_HIDDEN . olc_draw_hidden_field('a_password') . olc_draw_hidden_field('a_confirmation');
}
} else {
$password_content = olc_draw_password_field('a_password') . HTML_NBSP . ENTRY_PASSWORD_TEXT;
}
if ($error == false || $entry_password_error == true) {
示例12: array
$contents = array();
switch ($_GET['action']) {
case 'new':
$heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_NEW_TAX_CLASS . HTML_B_END);
$contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&action=insert'));
$contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
$contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_TITLE . HTML_BR . olc_draw_input_field('tax_class_title'));
$contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_DESCRIPTION . HTML_BR . olc_draw_input_field('tax_class_description'));
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
case 'edit':
$heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_EDIT_TAX_CLASS . HTML_B_END);
$contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_TITLE . HTML_BR . olc_draw_input_field('tax_class_title', $tcInfo->tax_class_title));
$contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_DESCRIPTION . HTML_BR . olc_draw_input_field('tax_class_description', $tcInfo->tax_class_description));
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
case 'delete':
$heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_TAX_CLASS . HTML_B_END);
$contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br/><b>' . $tcInfo->tax_class_title . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
default:
if (is_object($tcInfo)) {
$heading[] = array('text' => HTML_B_START . $tcInfo->tax_class_title . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
$contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_ADDED . BLANK . olc_date_short($tcInfo->date_added));
$contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . BLANK . olc_date_short($tcInfo->last_modified));
示例13: str_replace
<tr class="optionValue">
<td width="60" align="center" valign="top">
<img' . str_replace("#", "arrow", $image_data) . ' />
</td>
<td valign="top" width="41%">
' . olc_draw_pull_down_menu("optionValueDropDown", $optionValueDrop, $selectedOptionValue) . '
<br/><br/>
<input' . str_replace("#", "add_new", $image_data) . '
onclick="javascript:return amAddOptionValue();" title="Fügt der Liste einen neuen Optionswert hinzu" />
<b>Neuen Optionswert definieren</b>
<!--<input' . str_replace("#", "delete", $image_data) . '
onclick="javascript:return deleteOptionValue();" title="Löscht den Options-Wert aus der Datenbank" />-->
</td>
<td width="15%" valign="top">
Preis: ' . drawDropDownPrefix($prefix_0_id) . olc_draw_input_field("newPrice", "", $newPrice_id) . '
</td>
<td width="41%" valign="top">
<input' . str_replace("#", "add_up", $image_data) . ' value="Add"
onclick="javascript:return amAddAttributeToProduct();" title="Das Attribut dem aktuellen Produkt hinzufügen" border="0" />
<b>Das Attribut dem aktuellen Produkt hinzufügen</b>
</td>
</tr>
</table>
</div>
<br/>
</div>
';
require_once DIR_FS_INC . 'olc_ajax_prepare_special_html_chars.inc.php';
$html_text = "#am#" . $html_text;
//Signal attributemanager message
示例14: olc_get_products_price
$price_single = olc_get_products_price($product_id, $price_special = 1, $quantity = 1, $price_real);
$price_single = abs($price_real);
$total_price = olc_format_price($price_single * $products_quantity, 1, 1);
if ($show_saved_cart) {
$products_qty = $products_quantity;
} else {
if (USE_AJAX) {
$parameter = str_replace(HASH, $i, $parameter0);
$parameter1 = str_replace(HASH, $i, $parameter10);
$parameter2 = str_replace(HASH, $i, $parameter20);
$parameter3 = str_replace(HASH, $i, $parameter30);
$parameter4 = str_replace(HASH, $i, $parameter40);
$parameter5 = str_replace(HASH, $i, $parameter50);
$total_price = $parameter3 . $total_price . $span_end_text;
}
$products_qty = olc_draw_input_field($cart_quantity_text, $products_quantity, $parameter) . olc_draw_hidden_field($cart_min_quantity_text, $products_min_quantity, $parameter4) . olc_draw_hidden_field($products_id_text, $product_id, $parameter1);
if ($do_stock_check) {
$products_qty .= olc_draw_hidden_field($cart_stock_quantity_text, olc_get_products_stock($product_id), $parameter5);
}
}
$auctionid = $product['auctionid'];
if ($auctionid) {
//no deletebox
$mydelete = EMPTY_STRING;
//quantity is hidden - no changes can be made by the user
$myquantity = $products_quantity . str_replace(HASH, $products_quantity, $hidden_quantity) . str_replace(HASH, $product_id, $hidden_product_id);
//link to ebay-auction
$mylink = str_replace(HASH, $auctionid, $ebay_link);
//as title show ebayicon - so user knows that this is the product bought at ebay
$myimage = HTML_A_START . $mylink . '">' . $ebay_image . HTML_A_END;
} else {
示例15: str_replace
// fsk18
if (CUSTOMER_NOT_IS_FSK18) {
$allow_purchase = $product_info['products_fsk18'] == '0';
} else {
$allow_purchase = true;
}
if ($allow_purchase) {
//W. Kaiser - AJAX
$parameter = 'size="3"';
if (USE_AJAX) {
$action = 'products_quantity_changed(this,"' . $form_action . '",#)';
//$parameter.=' onkeyup='.str_replace(HASH,'false',$action);
$parameter .= ' onchange=' . str_replace(HASH, 'true', $action);
}
$products_min_order_quantity = max(1, $product_info['products_min_order_quantity']);
$qty_field = olc_draw_input_field('products_qty', $products_min_order_quantity, $parameter) . olc_draw_hidden_field('products_id', $products_id) . olc_draw_hidden_field('products_min_order_quantity', $products_min_order_quantity);
$do_stock_check = STOCK_CHECK == TRUE_STRING_S;
if ($do_stock_check) {
$products_qty .= olc_draw_hidden_field('cart_stock_quantity', olc_get_products_stock($products_id));
}
if ($is_gallery) {
$qty_field .= olc_draw_hidden_field($gallery_text, TRUE_STRING_S);
}
$info_smarty->assign('ADD_QTY', $qty_field);
$info_smarty->assign('ADD_CART_BUTTON', olc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, ' id="update_cart" align="middle"', USE_AJAX));
if ($is_gallery) {
$info_smarty->assign('ABORT_BUTTON', HTML_A_START . olc_href_link(FILENAME_GALLERY) . '">' . olc_image(CURRENT_TEMPLATE_BUTTONS . 'button_back.gif', IMAGE_BUTTON_CANCEL, EMPTY_STRING, EMPTY_STRING)) . HTML_A_END;
}
//W. Kaiser - AJAX
}
}