本文整理汇总了PHP中olc_draw_hidden_field函数的典型用法代码示例。如果您正苦于以下问题:PHP olc_draw_hidden_field函数的具体用法?PHP olc_draw_hidden_field怎么用?PHP olc_draw_hidden_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了olc_draw_hidden_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: olc_hide_session_id
function olc_hide_session_id()
{
global $session_started;
if ($session_started) {
if (defined('SID')) {
if (olc_not_null(SID)) {
return olc_draw_hidden_field(olc_session_name(), olc_session_id());
}
}
}
}
示例2: build_optional_image_html
function build_optional_image_html($i)
{
global $pic_display_text0, $pic_table_text0, $pic_url_text, $pic_text, $onclick0, $sep, $use_multi_pic_text;
global $multi_pictures, $pic_table0, $span_start, $thumbs_dir_local, $id_is, $dummy_span, $hidden_text, $end;
global $original_dir_local, $thumbs_dir_local, $display_visible_text, $display_hidden_text, $pic_table0;
global $dummy_span, $style_display, $fees, $rab, $div_tex, $onchange, $space;
$next_i = $i + 1;
//$index=UNDERSCORE.$i;
$index = UNDERSCORE . $next_i;
$my_pic_display_text = $pic_display_text0 . $index;
$my_pic_table_text = $pic_table_text0 . $next_i;
$my_pic_url_text = $pic_url_text . $index;
$my_pic_text = $pic_text . $index;
$my_use_multi_pic_text = $use_multi_pic_text . $next_i;
$my_use_multi_pic_div_text = $my_use_multi_pic_text . $div_text;
$not_last = $i < 12;
$onclick = $onclick0 . $my_pic_table_text . $sep . $my_pic_url_text . $sep . $my_pic_text;
if ($not_last) {
//$onclick.=$sep.$my_use_multi_pic_text.$sep.TRUE_STRING_S;
$next_i_1 = $next_i + 1;
$onclick .= $sep . $use_multi_pic_text . $next_i_1 . $div_text . $sep . $next_i;
}
$onclick .= $end;
if ($not_last) {
$pic_file_name = $multi_pictures[$next_i];
$use_multi_pic = $pic_file_name != EMPTY_STRING;
$id = $id_is . $my_pic_text . QUOTE;
if ($use_multi_pic) {
$display = $display_visible_text;
$my_image = olc_image($thumbs_dir_local . $pic_file_name, EMPTY_STRING, EMPTY_STRING, EMPTY_STRING, $id . QUOTE);
$my_pic_file_name = DIR_WS_ORIGINAL_IMAGES . $pic_file_name;
} else {
$display = $display_hidden_text;
$my_image = SPAN_START . $id . $rab . SPAN_END;
$my_pic_file_name = EMPTY_STRING;
}
$pic_table = str_replace(UNDERSCORE, $display, $pic_table0);
$pic_table = str_replace(TILDE, $my_pic_table_text, $pic_table);
$image_html .= HTML_BR . olc_draw_file_field($my_pic_url_text, EMPTY_STRING, str_replace(HASH, $index, $onchange)) . HTML_BR . str_replace(HASH, $my_pic_display_text, $span_start) . $my_pic_file_name . SPAN_END;
$image_html = str_replace(HASH, $image_html, $pic_table);
$image_html = str_replace(ATSIGN, $space . $my_image . $dummy_span, $image_html) . olc_draw_hidden_field($my_pic_url_text . $hidden_text, $original_dir_local . $pic_file_name);
if ($i == 1 || $use_multi_pic) {
$display = $display_visible_text;
} else {
$display = $display_hidden_text;
}
$display = $style_display . $display . QUOTE;
$image_html = '<div nowrap="nowrap"="nowrap" id="' . $my_use_multi_pic_div_text . QUOTE . BLANK . $display . $rab . HTML_BR . olc_draw_checkbox_field($my_use_multi_pic_text, ONE_STRING, $use_multi_pic, $onclick) . HTML_NBSP . sprintf(AUCTIONS_TEXT_AUCTION_USE_MULTI_PIC, $next_i, $fees[$pic_text]) . $image_html . '</div>';
}
return $image_html;
}
示例3: noteOptionFields
function noteOptionFields($option = 'No', $msg = MODULE_PAYMENT_PAYPAL_IPN_CUSTOMER_COMMENTS)
{
$option = $option == 'Yes' ? '0' : '1';
$no_note = olc_draw_hidden_field('no_note', $option);
if (!$option) {
return $no_note .= olc_draw_hidden_field('cn', $msg);
} else {
return $no_note;
}
}
示例4: olc_image
echo '<tr><td colspan="4"><table><tr><td align="center" class="main" width="' . (PRODUCT_IMAGE_THUMBNAIL_WIDTH + 15) . '">' . olc_image(DIR_WS_CATALOG_THUMBNAIL_IMAGES . $pInfo->products_image, 'Standard Image') . '</td>';
}
$products_previous_image = 'products_previous_image_';
echo '<td class="main">' . TEXT_PRODUCTS_IMAGE . HTML_BR . olc_draw_file_field('products_image') . HTML_BR . olc_draw_separator('pixel_trans.gif', '24', '15') . HTML_NBSP . $pInfo->products_image . olc_draw_hidden_field($products_previous_image . '0', $pInfo->products_image);
if ($pInfo->products_image) {
echo '</td></tr></table>';
} else {
echo '</td></tr>';
}
// display MO PICS
if (MO_PICS > 0) {
$mo_images = olc_get_products_mo_images($pInfo->products_id);
for ($i = 0; $i < MO_PICS; $i++) {
echo '<tr><td colspan="4">' . olc_draw_separator('pixel_black.gif', '100%', '1') . '</td></tr>';
echo '<tr><td colspan="4">' . olc_draw_separator('pixel_trans.gif', '1', '10') . '</td></tr>';
$image_name = $mo_images[$i]["image_name"];
$i1 = $i + 1;
if ($image_name) {
echo '<tr><td colspan="4"><table><tr><td align="center" class="main" width="' . (PRODUCT_IMAGE_THUMBNAIL_WIDTH + 15) . '">' . olc_image(DIR_WS_CATALOG_THUMBNAIL_IMAGES . $image_name, 'Image ' . $i1) . '</td>';
} else {
echo '<tr>';
}
echo '<td class="main">' . TEXT_PRODUCTS_IMAGE . BLANK . $i1 . HTML_BR . olc_draw_file_field('mo_pics_' . $i) . HTML_BR . olc_draw_separator('pixel_trans.gif', '24', '15') . HTML_NBSP . $image_name . olc_draw_hidden_field($products_previous_image . $i1, $image_name);
if ($image_name) {
echo '</tr><tr><td align="center" valign="middle">' . olc_draw_selection_field('del_mo_pic[]', 'checkbox', $image_name) . BLANK . TEXT_DELETE . '</td></tr></table>';
} else {
echo '</td></tr>';
}
}
}
}
示例5: process_button
function process_button()
{
global $_POST, $order, $currencies, $currency, $paypal_ec_token, $paypal_ec_payer_id, $paypal_ec_payer_info;
if ($this->is_paypal_process()) {
return EMPTY_STRING;
} else {
require_once DIR_FS_INC . 'olc_draw_hidden_field.inc.php';
$wpp_currency = $this->get_currency();
$process_button_string = olc_draw_hidden_field('wpp_cc_type', $_POST['paypalwpp_cc_type']) . olc_draw_hidden_field('wpp_cc_expdate_month', $_POST['paypalwpp_cc_expires_month']) . olc_draw_hidden_field('wpp_cc_expdate_year', $_POST['paypalwpp_cc_expires_year']) . olc_draw_hidden_field('wpp_cc_number', $_POST['paypalwpp_cc_number']) . olc_draw_hidden_field('wpp_cc_checkcode', $_POST['paypalwpp_cc_checkcode']) . olc_draw_hidden_field('wpp_payer_firstname', $_POST['paypalwpp_cc_firstname']) . olc_draw_hidden_field('wpp_payer_lastname', $_POST['paypalwpp_cc_lastname']) . olc_draw_hidden_field('wpp_redirect_url', olc_href_link(FILENAME_CHECKOUT_PROCESS, EMPTY_STRING, SSL, true));
return $process_button_string;
}
}
示例6: olc_href_link
?>
</td>
<td class="pageHeading"><?php
echo HTML_A_START . olc_href_link(FILENAME_AFFILIATE_PAYMENT, 'pID=' . $pInfo->affiliate_payment_id . '&action=start_billing') . '">' . olc_image_button('button_affiliate_billing.gif', IMAGE_AFFILIATE_BILLING) . HTML_A_END;
?>
</td>
<td class="pageHeading" align="right"><?php
echo olc_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 olc_draw_form('orders', FILENAME_AFFILIATE_PAYMENT, '', 'get');
?>
<td class="smallText" align="right"><?php
echo HEADING_TITLE_SEARCH . BLANK . olc_draw_input_field('sID', '', 'size="12"') . olc_draw_hidden_field('action', 'edit');
?>
</td>
</form></tr>
<tr><?php
echo olc_draw_form('status', FILENAME_AFFILIATE_PAYMENT, '', 'get');
?>
<td class="smallText" align="right"><?php
echo HEADING_TITLE_STATUS . BLANK . olc_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>
示例7: olc_redirect
require_once DIR_FS_INC . 'olc_draw_selection_field.inc.php';
require_once DIR_FS_INC . 'olc_image_button.inc.php';
if (!isset($_SESSION['customer_id'])) {
olc_redirect(olc_href_link(FILENAME_LOGIN, '', SSL));
}
$newsletter_query = olc_db_query("select customers_newsletter from " . TABLE_CUSTOMERS . " where customers_id = '" . (int) $_SESSION['customer_id'] . APOS);
$newsletter = olc_db_fetch_array($newsletter_query);
if (isset($_POST['action']) && $_POST['action'] == 'process') {
if (isset($_POST['newsletter_general']) && is_numeric($_POST['newsletter_general'])) {
$newsletter_general = olc_db_prepare_input($_POST['newsletter_general']);
} else {
$newsletter_general = '0';
}
if ($newsletter_general != $newsletter['customers_newsletter']) {
$newsletter_general = $newsletter['customers_newsletter'] == '1' ? '0' : '1';
olc_db_query(SQL_UPDATE . TABLE_CUSTOMERS . " set customers_newsletter = '" . (int) $newsletter_general . "' where customers_id = '" . (int) $_SESSION['customer_id'] . APOS);
}
$messageStack->add_session('account', SUCCESS_NEWSLETTER_UPDATED, 'success');
olc_redirect(olc_href_link(FILENAME_ACCOUNT));
}
$breadcrumb->add(NAVBAR_TITLE_1_ACCOUNT_NEWSLETTERS, olc_href_link(FILENAME_ACCOUNT, '', SSL));
$breadcrumb->add(NAVBAR_TITLE_2_ACCOUNT_NEWSLETTERS, olc_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', SSL));
require DIR_WS_INCLUDES . 'header.php';
$smarty->assign('FORM_ACTION', olc_draw_form('account_newsletter', olc_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', SSL)) . olc_draw_hidden_field('action', 'process'));
$smarty->assign('CHECKBOX', olc_draw_checkbox_field('newsletter_general', '1', $newsletter['customers_newsletter'] == '1' ? true : false, 'onclick="javascript:checkBox(\'newsletter_general\')"'));
$smarty->assign('BUTTON_BACK', HTML_A_START . olc_href_link(FILENAME_ACCOUNT, '', SSL) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END);
$smarty->assign('BUTTON_CONTINUE', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'account_newsletter' . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
示例8: str_replace
$templates_entry .= str_replace(HASH, $this_template, $templates_image);
}
$content_body .= HTML_BR . $templates_entry;
$templates_count++;
}
}
}
}
}
closedir($dh);
if ($templates_count == 0) {
$subtitle = TEXT_NO_SHOP_DESIGNS;
$action = 'return';
} else {
$subtitle = TEXT_NEW_SHOP_DESIGN;
$button_continue = olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE);
$action = 'process';
}
$content_body .= olc_draw_hidden_field('action', $action);
$breadcrumb->add(TEXT_CHANGE_SHOP_DESIGN, olc_href_link('skin.php'));
olc_smarty_init($module_smarty, $cacheid);
$module_smarty->assign('FORM_ACTION', olc_draw_form($templates_dir, CURRENT_SCRIPT));
$module_smarty->assign('CONTENT_HEADING', TEXT_CHANGE_SHOP_DESIGN . HTML_BR . $subtitle);
$module_smarty->assign('BUTTON_CONTINUE', $button_continue);
$module_smarty->assign('CONTENT_BODY', $content_body);
$main_content = $module_smarty->fetch(CURRENT_TEMPLATE_MODULE . 'skin' . HTML_EXT, $cacheid);
$smarty->assign(MAIN_CONTENT, $main_content);
//W. Kaiser - AJAX
require BOXES;
$smarty->display(INDEX_HTML);
}
示例9: while
$options_values_price_name = 'options_values_price';
$price_prefix_name = 'price_prefix';
$weight_prefix_name = 'weight_prefix';
$options_values_weight_name = 'options_values_weight';
$attributes_stock_name = 'attributes_stock';
$products_attributes_id_name = 'products_attributes_id';
$products_attributes_model_name = 'products_attributes_model';
$products = $cart->get_products();
for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
// Push all attributes information in an array
$current_product = $products[$i];
$current_product_id = $current_product['id'];
$products_attributes = $current_product['attributes'];
if ($products_attributes) {
while (list($option, $value) = each($products_attributes)) {
$hidden_options .= olc_draw_hidden_field('id[' . $current_product_id . '][' . $option . ']', $value);
$sql = str_replace(TILDE, $current_product_id, $sql0);
$sql = str_replace(HASH, $option, $sql);
$sql = str_replace(ATSIGN, $value, $sql);
$attributes = olc_db_query($sql);
$attributes_values = olc_db_fetch_array($attributes);
$options_values_price = $attributes_values[$options_values_price_name];
if ((double) $options_values_price != 0) {
$price_prefix = $attributes_values[$price_prefix_name];
} else {
$price_prefix = EMPTY_STRING;
}
$products_option[$products_options_name] = $attributes_values[$products_options_name];
$products_option[$options_values_id_name] = $value;
$products_option[$products_options_values_name] = $attributes_values[$products_options_values_name];
$products_option[$options_values_price_name] = $options_values_price;
示例10: olc_draw_hidden_field
</table>
</td>
</tr>
<?php
}
?>
</table>
</td>
</tr>
<tr>
<td>
<?php
include DIR_WS_MODULES . 'group_prices.php';
?>
</td>
</tr>
<tr>
<td class="main" align="right">
<?php
if ($have_vpe) {
$have_vpe = TRUE_STRING_S;
} else {
$have_vpe = FALSE_STRING_S;
}
// IMAGE_SAVE,'style="cursor:hand" onclick="javascript:return confirm(\''.SAVE_ENTRY.'\')"') .
echo olc_draw_hidden_field('products_date_added', $pInfo->products_date_added ? $pInfo->products_date_added : date('Y-m-d')) . olc_image_submit('button_save.gif', IMAGE_SAVE, 'style="cursor:hand" onclick="javascript:return check_product_form(' . $have_vpe . ')"') . ' <a href="' . olc_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pID) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END;
?>
</td>
</tr>
</table>
</form>
示例11: array
$groups_array = array();
$groups_query = olc_db_query("select distinct affiliate_banners_group from " . TABLE_AFFILIATE_BANNERS . " order by affiliate_banners_group");
while ($groups = olc_db_fetch_array($groups_query)) {
$groups_array[] = array('id' => $groups['affiliate_banners_group'], 'text' => $groups['affiliate_banners_group']);
}
?>
<tr>
<td><?php
echo olc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr><?php
echo olc_draw_form('new_banner', FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"');
if ($form_action == 'update') {
echo olc_draw_hidden_field('affiliate_banners_id', $abID);
}
?>
<td><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main"><?php
echo TEXT_BANNERS_TITLE;
?>
</td>
<td class="main"><?php
echo olc_draw_input_field('affiliate_banners_title', $abInfo->affiliate_banners_title, '', true);
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
示例12: olc_db_query
//get all auction templates
$auctionssql = SELECT . "predef_id, quantity, title, subtitle, c.name catname, cat1, startprice, binprice, duration,\n\tt.name typename FROM " . TABLE_AUCTION_PREDEFINITION . " p, " . TABLE_EBAY_CATEGORIES . " c, " . TABLE_EBAY_AUCTIONTYPE . " t\n\twhere\n\tp.cat1 = c.id and\n\tp.auction_type = t.id " . $ordersql;
$myauctions = olc_db_query($auctionssql);
/* define Table Heading */
$heading = array(array($name_text => AUCTIONS_TEXT_AUCTION_PREDEF_ID, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $predef_id_text, $sort0), $link_text => $file . $predef_id_text), array($name_text => AUCTIONS_TEXT_AUCTION_AMOUNT, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $product_id_text, $sort0), $link_text => $file . $product_id_text), array($name_text => AUCTIONS_TEXT_AUCTION_CAT, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $cat1_text, $sort0), $link_text => $file . $cat1_text), array($name_text => AUCTIONS_TEXT_AUCTION_START_PRICE, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $startprice_text, $sort0), $link_text => $file . $startprice_text), array($name_text => AUCTIONS_TEXT_AUCTION_BUYNOW_PRICE, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $binprice_text, $sort0), $link_text => $file . $binprice_text), array($name_text => AUCTIONS_TEXT_AUCTION_PREDEF_DURATION, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $duration_text, $sort0), $link_text => $file . $duration_text), array($name_text => AUCTIONS_TEXT_AUCTION_PREDEF_TYPE, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $typename_text, $sort0), $link_text => $file . $typename_text, array($name_text => HTML_NBSP)));
/* print table heading */
$main_content .= tableheading($heading);
$i = 0;
while ($auctions_values = olc_db_fetch_array($myauctions)) {
/* define content array */
$i++;
if ($i % 2 == 0) {
$class = $dataTableRow_1_text;
} else {
$class = $dataTableRow_text;
}
$startprice = $auctions_values[$startprice_text];
$startprice = $startprice == 0 ? DASH : olc_format_price($startprice, 1, 1, 1);
$binprice = $auctions_values[$binprice_text];
$binprice = $binprice == 0 ? DASH : olc_format_price($binprice, 1, 1, 1);
$content = array($cssclass_text => $class, $values_text => array(array($value_text => $auctions_values[$predef_id_text], $link_text => $getItem_text . $auctions_values[$predef_id_text], $linkattribute_text => $target_blank_text), array($value_text => $auctions_values[$quantity_text] . $x_text . $auctions_values[$title_text] . HTML_BR . $auctions_values[$subtitle_text]), array($value_text => $auctions_values[$catname_text] . HTML_BR . "(" . $auctions_values[$cat1_text] . RPAREN, $attributes_text => $align_right_text), array($value_text => $startprice, $attributes_text => $align_right_text), array($value_text => $binprice, $attributes_text => $align_right_text), array($value_text => $auctions_values[$duration_text] . AUCTIONS_TEXT_AUCTION_DURATION_DAYS), array($value_text => $auctions_values[$typename_text], $attributes_text => $align_right_text), array($value_text => olc_draw_form('edit_form', FILENAME_AUCTIONS_NEW) . olc_draw_hidden_field('id', $auctions_values[$predef_id_text]) . olc_draw_submit_button('edit', AUCTIONS_TEXT_AUCTION_PREDEF_ACCEPT) . '
</form>', $attributes_text => $align_right_text)));
/* print content table */
$main_content .= tablecontent($content);
}
$page_header_title = AUCTIONS_TEXT_HEADER;
$page_header_subtitle = AUCTIONS_TEXT_SUB_HEADER_PREDEF;
$page_header_icon_image = HEADING_MODULES_ICON;
$show_column_right = true;
$no_left_menu = false;
require PROGRAM_FRAME;
示例13: olc_draw_separator
echo '
<link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css">
<script language="JavaScript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script>
';
}
?>
<tr>
<td><?php
echo olc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr><?php
echo olc_draw_form('new_banner', FILENAME_BANNER_MANAGER, $page_parameter . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"');
if ($form_action == 'update') {
echo olc_draw_hidden_field('banners_id', $bID);
}
?>
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><?php
echo TEXT_BANNERS_TITLE;
?>
</td>
<td class="main"><?php
echo olc_draw_input_field('banners_title', $bInfo->banners_title, EMPTY_STRING, true);
?>
</td>
</tr>
<tr>
<td class="main"><?php
示例14: olc_draw_input_field
$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) {
$password_confirmation_content = olc_draw_password_field('a_confirmation') . HTML_NBSP . ENTRY_PASSWORD_CONFIRMATION_TEXT;
}
$agb_content = olc_draw_checkbox_field('a_agb', $value = '1', $checked = $affiliate['affiliate_agb']) . sprintf(ENTRY_AFFILIATE_ACCEPT_AGB, olc_href_link(FILENAME_CONTENT, 'coID=900', SSL));
if ($entry_agb_error == true) {
$agb_content .= HTML_BR . ENTRY_AFFILIATE_AGB_ERROR;
}
$module_smarty->assign('agb_content', $agb_content);
$module_smarty->assign('password_content', $password_content);
$module_smarty->assign('password_confirmation_content', $password_confirmation_content);
}
示例15: olc_db_query
}
if ($error == false) {
$check_customer_query = olc_db_query("select customers_password from " . TABLE_CUSTOMERS . " where customers_id = '" . (int) $_SESSION['customer_id'] . APOS);
$check_customer = olc_db_fetch_array($check_customer_query);
if (olc_validate_password($password_current, $check_customer['customers_password'])) {
olc_db_query(SQL_UPDATE . TABLE_CUSTOMERS . " set customers_password = '" . olc_encrypt_password($password_new) . "' where customers_id = '" . (int) $_SESSION['customer_id'] . APOS);
olc_db_query(SQL_UPDATE . TABLE_CUSTOMERS_INFO . " set customers_info_date_account_last_modified = now() where customers_info_id = '" . (int) $_SESSION['customer_id'] . APOS);
$messageStack->add_session('account', SUCCESS_PASSWORD_UPDATED, 'success');
olc_redirect(olc_href_link(FILENAME_ACCOUNT));
} else {
$error = true;
$messageStack->add('account_password', ERROR_CURRENT_PASSWORD_NOT_MATCHING);
}
}
}
$breadcrumb->add(NAVBAR_TITLE_1_ACCOUNT_PASSWORD, olc_href_link(FILENAME_ACCOUNT));
$breadcrumb->add(NAVBAR_TITLE_2_ACCOUNT_PASSWORD, olc_href_link(FILENAME_ACCOUNT_PASSWORD));
require DIR_WS_INCLUDES . 'header.php';
if ($messageStack->size('account_password') > 0) {
$smarty->assign('error', $messageStack->output('account_password'));
}
$smarty->assign('FORM_ACTION', olc_draw_form('account_password', olc_href_link(FILENAME_ACCOUNT_PASSWORD), 'post', 'onsubmit="return check_form(account_password);"') . olc_draw_hidden_field('action', 'process'));
$smarty->assign('INPUT_ACTUAL', olc_draw_password_field('password_current') . HTML_NBSP . (olc_not_null(ENTRY_PASSWORD_CURRENT_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_CURRENT_TEXT . '</span>' : ''));
$smarty->assign('INPUT_NEW', olc_draw_password_field('password_new') . HTML_NBSP . (olc_not_null(ENTRY_PASSWORD_NEW_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_NEW_TEXT . '</span>' : ''));
$smarty->assign('INPUT_CONFIRM', olc_draw_password_field('password_confirmation') . HTML_NBSP . (olc_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>' : ''));
$smarty->assign('BUTTON_BACK', HTML_A_START . olc_href_link(FILENAME_ACCOUNT) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END);
$smarty->assign('BUTTON_SUBMIT', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'account_password' . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);