本文整理汇总了PHP中olc_draw_form函数的典型用法代码示例。如果您正苦于以下问题:PHP olc_draw_form函数的具体用法?PHP olc_draw_form怎么用?PHP olc_draw_form使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了olc_draw_form函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display_links
function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
{
if (olc_not_null($parameters) && substr($parameters, -1) != '&') {
$parameters .= '&';
}
// calculate number of pages needing links
$num_pages = ceil($query_numrows / $max_rows_per_page);
$pages_array = array();
for ($i = 1; $i <= $num_pages; $i++) {
$pages_array[] = array('id' => $i, 'text' => $i);
}
if ($num_pages > 1) {
$display_links = olc_draw_form('pages', CURRENT_SCRIPT, '', 'get');
if ($current_page_number > 1) {
$display_links .= HTML_A_START . olc_href_link(CURRENT_SCRIPT, $parameters . $page_name . '=' . ($current_page_number - 1), NONSSL) . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a> ';
} else {
$display_links .= PREVNEXT_BUTTON_PREV . ' ';
}
$display_links .= sprintf(TEXT_RESULT_PAGE, olc_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onchange="this.form.submit();"'), $num_pages);
if ($current_page_number < $num_pages && $num_pages != 1) {
$display_links .= ' <a href="' . olc_href_link(CURRENT_SCRIPT, $parameters . $page_name . '=' . ($current_page_number + 1), NONSSL) . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . HTML_A_END;
} else {
$display_links .= ' ' . PREVNEXT_BUTTON_NEXT;
}
if ($parameters != '') {
if (substr($parameters, -1) == '&') {
$parameters = substr($parameters, 0, -1);
}
$pairs = explode('&', $parameters);
while (list(, $pair) = each($pairs)) {
list($key, $value) = explode('=', $pair);
$display_links .= olc_draw_hidden_field(rawurldecode($key), rawurldecode($value));
}
}
if (SID) {
$display_links .= olc_draw_hidden_field(session_name(), session_id());
}
$display_links .= '</form>';
} else {
$display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
}
return $display_links;
}
示例2: elseif
include 'orders_edit_products.php';
} elseif ($_GET['edit_action'] == 'shipping') {
include 'orders_edit_shipping.php';
} elseif ($_GET['edit_action'] == 'options') {
include 'orders_edit_options.php';
}
?>
<!-- Bestellung Sichern Anfang //-->
<br/><br/>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableRow">
<td class="dataTableContent" align="right">
<?php
echo TEXT_SAVE_ORDER;
echo olc_draw_form('save_order', FILENAME_ORDERS_EDIT, 'action=save_order', 'post');
echo olc_draw_hidden_field('customers_status_id', $address[customers_status]);
echo olc_draw_hidden_field('orders_id', $_GET['oID']);
echo olc_image_submit('button_save.gif', TEXT_BUTTON_SAVE_ORDER, 'style="cursor:hand" ');
?>
</form>
</td>
</tr>
<tr><td><?php
echo olc_draw_separator();
?>
</td></tr>
</table>
<br/><br/>
<!-- Bestellung Sichern Ende //-->
示例3: olc_draw_form
@
<p>
Bitte geben Sie in die folgenden Felder die <font color=
"Blue><b>Speicherorte</b></font> des
<b>PHPMyAdmin</b>-<font color=
"Blue"><b>Struktur</b></font>-Dumps der aktuellen
<font color="Red"><b>OL-Commerce</b></font>- und der
<font color="Red"><b>Import</b></font>-Datenbank, sowie
den Speicherort des <b>PHPMyAdmin</b>-<font color=
"Blue"><b>Daten</b></font>-Dumps der aktuellen
<font color="Red"><b>Import</b></font>-Datenbank ein.
<b><a target="_blank" href=
"../olc_installer/automatischer_daten_import.html">Hilfe</a></b>
</p>
';
$main_content .= olc_draw_form('xxc_import', $PHP_SELF, 'post', 'enctype="multipart/form-data"') . olc_draw_hidden_field('action', 'process') . '
<table border="0">
<tr>
<td valign="top" class="main" class="main">
<b>Speicherort des....<br/><br/></b>
</td>
<td valign="top" class="main">
(' . $file_size . ')
</td>
</tr>
<tr>
<td valign="top" class="main">
<font color="Blue"><b>Struktur</b></font>-Dumps
der <font color=
"Red"><b>OL-Commerce</b></font>-Datenbank:
</td>
示例4: olc_href_link
?>
</td>
<td align="right"><?php
echo HTML_A_START . olc_href_link(FILENAME_MAIL) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a> ' . olc_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL);
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</form></tr>
<?php
} else {
?>
<tr><?php
echo olc_draw_form('mail', FILENAME_MAIL, 'action=preview');
?>
<td><table border="0" cellpadding="0" cellspacing="2">
<tr>
<td colspan="2"><?php
echo olc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<?php
$customers = array();
$customers[] = array('id' => '', 'text' => TEXT_SELECT_CUSTOMER);
$customers[] = array('id' => '***', 'text' => TEXT_ALL_CUSTOMERS);
$customers[] = array('id' => '**D', 'text' => TEXT_NEWSLETTER_CUSTOMERS);
// Customers Status 1.x
// $customers_statuses_array = olc_get_customers_statuses();
示例5: olc_href_link
} else {
$parameters = 'basket_id=' . $basket_id;
$cart_content = EMPTY_STRING;
}
$link = olc_href_link(CURRENT_SCRIPT, $parameters);
$date = $basket['basket_date_added'];
$date = substr($date, 6, 2) . DOT . substr($date, 4, 2) . DOT . substr($date, 0, 4);
$module_content[] = array('show_order_details' => $show_order_details, 'BOX_SELECT' => olc_draw_radio_field('cart_select[]', $basket_id, $selected), 'NAME' => $basket['basket_name'], 'DATE' => $date, 'BOX_DELETE' => olc_draw_checkbox_field('cart_delete[]', $basket_id), 'LINK' => $link);
}
} else {
$error_message = olc_get_smarty_config_variable($smarty, 'shopping_cart', 'text_no_saved_cart');
}
$cart_restore_text = 'cart_restore';
if ($error_message) {
$module_smarty->assign('ERROR_MESSAGE', $error_message);
} else {
$module_smarty->assign(MODULE_CONTENT, $module_content);
if ($bid) {
$MODULE_order_details_text = 'MODULE_order_details';
$module_smarty->assign($MODULE_order_details_text, $smarty->_tpl_vars[$MODULE_order_details_text]);
$smarty->assign($MODULE_order_details_text, EMPTY_STRING);
}
}
$module_smarty->assign('FORM_ACTION', olc_draw_form($cart_restore_text, $cart_restore_text . PHP . '?process=true'));
$module_smarty->assign('BUTTON_CONTINUE', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
$main_content = $module_smarty->fetch(CURRENT_TEMPLATE_MODULE . $cart_restore_text . HTML_EXT, $cache_id);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
}
}
示例6: olc_db_query
} else {
$smarty->assign('GLOBAL_NOTIFICATION', '1');
}
if ($global['global_product_notifications'] != '1') {
$products_check_query = olc_db_query("select count(*) as total from " . TABLE_PRODUCTS_NOTIFICATIONS . " where customers_id = '" . (int) $_SESSION['customer_id'] . APOS);
$products_check = olc_db_fetch_array($products_check_query);
if ($products_check['total'] > 0) {
$counter = 0;
$notifications_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
$products_query = olc_db_query("select pd.products_id, pd.products_name from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_NOTIFICATIONS . " pn where pn.customers_id = '" . (int) $_SESSION['customer_id'] . "' and pn.products_id = pd.products_id and pd.language_id = '" . SESSION_LANGUAGE_ID . "' order by pd.products_name");
while ($products = olc_db_fetch_array($products_query)) {
$notifications_products .= '
<tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="javascript:checkBox(\'products[' . $counter . ']\')">
<td class="main" width="30">' . olc_draw_checkbox_field('products[' . $counter . ']', $products['products_id'], true, 'onclick="javascript:checkBox(\'products[' . $counter . ']\')"') . '</td>
<td class="main"><b>' . $products['products_name'] . '</b></td>
</tr> ';
$counter++;
}
$notifications_products .= '</table>';
$smarty->assign('PRODUCTS_NOTIFICATION', $notifications_products);
} else {
}
}
$smarty->assign('FORM_ACTION', olc_draw_form('account_notifications', olc_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', SSL)) . olc_draw_hidden_field('action', 'process'));
$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_notifications' . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
示例7: olc_href_link
?>
</td>
<td align="right"><?php
echo HTML_A_START . olc_href_link(FILENAME_AFFILIATE_CONTACT) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a> ' . olc_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL);
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</form></tr>
<?php
} else {
?>
<tr><?php
echo olc_draw_form('mail', FILENAME_AFFILIATE_CONTACT, 'action=preview');
?>
<td><table border="0" cellpadding="0" cellspacing="2">
<tr>
<td colspan="2"><?php
echo olc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<?php
$affiliate = array();
$affiliate[] = array('id' => '', 'text' => TEXT_SELECT_AFFILIATE);
$affiliate[] = array('id' => '***', 'text' => TEXT_ALL_AFFILIATES);
// $affiliate[] = array('id' => '**D', 'text' => TEXT_NEWSLETTER_AFFILIATES);
$mail_query = olc_db_query("select affiliate_email_address, affiliate_firstname, affiliate_lastname from " . TABLE_AFFILIATE . " order by affiliate_lastname");
while ($affiliate_values = olc_db_fetch_array($mail_query)) {
示例8: Copyright
<?php
/* -----------------------------------------------------------------------------------------
$Id: add_a_quickie.php,v 1.2 2004/02/17 16:20:07 fanta2k Exp $
OL-Commerce Version 5.x/AJAX
http://www.ol-commerce.com, http://www.seifenparadies.de
Copyright (c) 2004 OL-Commerce, 2006 Dipl.-Ing.(TH) Winfried Kaiser (w.kaiser@fortune.de, info@seifenparadies.de)
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(add_a_quickie.php,v 1.10 2001/12/19); www.oscommerce.com
Released under the GNU General Public License
-----------------------------------------------------------------------------------------
Third Party contribution:
Add A Quickie v1.0 Autor Harald Ponce de Leon
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
olc_smarty_init($box_smarty, $cacheid);
$box_content = olc_draw_form('quick_add', olc_href_link('index' . PHP), 'get');
$box_smarty->assign('FORM_ACTION', $box_content);
$box_smarty->assign('INPUT_FIELD', olc_draw_hidden_field('action', 'buy_now') . olc_draw_input_field('BUYproducts_model', EMPTY_STRING, 'size=10'));
$box_smarty->assign('SUBMIT_BUTTON', olc_image_submit('button_buy_now.gif', BOX_HEADING_ADD_PRODUCT_ID));
$box_add_a_quickie = $box_smarty->fetch(CURRENT_TEMPLATE_BOXES . 'box_add_a_quickie' . HTML_EXT, $cacheid);
$smarty->assign('box_ADD_A_QUICKIE', $box_add_a_quickie);
示例9: 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;
示例10: array
$contents[] = array('text' => HTML_BR . TEXT_INFO_ADDRESS_FORMAT . HTML_BR . olc_draw_pull_down_menu('address_format_id', olc_get_address_formats()));
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . olc_href_link(FILENAME_COUNTRIES, '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_COUNTRY . HTML_B_END);
$contents = array('form' => olc_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_NAME . HTML_BR . olc_draw_input_field('countries_name', $cInfo->countries_name));
$contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_2 . HTML_BR . olc_draw_input_field('countries_iso_code_2', $cInfo->countries_iso_code_2));
$contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_3 . HTML_BR . olc_draw_input_field('countries_iso_code_3', $cInfo->countries_iso_code_3));
$contents[] = array('text' => HTML_BR . TEXT_INFO_ADDRESS_FORMAT . HTML_BR . olc_draw_pull_down_menu('address_format_id', olc_get_address_formats(), $cInfo->address_format_id));
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_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_COUNTRY . HTML_B_END);
$contents = array('form' => olc_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br/><b>' . $cInfo->countries_name . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_UPDATE) . ' <a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
default:
if (is_object($cInfo)) {
$heading[] = array('text' => HTML_B_START . $cInfo->countries_name . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
$contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_NAME . HTML_BR . $cInfo->countries_name);
$contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_2 . BLANK . $cInfo->countries_iso_code_2);
$contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_3 . BLANK . $cInfo->countries_iso_code_3);
$contents[] = array('text' => HTML_BR . TEXT_INFO_ADDRESS_FORMAT . BLANK . $cInfo->address_format_id);
}
break;
}
示例11: toGMT
$resultstring = AUCTIONS_TEXT_AUCTION_LIST_STATUS_FAILED;
}
if ($resultstring) {
$main_content = "<span class='smallText'>" . $resultstring . "</span><br/>";
}
}
$orderby = "auction_id";
//Default order field
require_once DIR_WS_FUNCTIONS . 'list_sorting.php';
//show all auctions not ended and not sheduled
$mynewstarttime = toGMT(date(AUCTIONS_DATE_FORMAT));
$auctionssql = SELECT_ALL . TABLE_AUCTION_LIST . " where ended !=1 AND starttime <= '" . $mynewstarttime . "' " . $ordersql;
$myauctions = olc_db_query($auctionssql);
$main_content .= '
<p align="right">
' . olc_draw_form('pickup_form', $PHP_SELF) . olc_draw_submit_button('pickup', AUCTIONS_TEXT_AUCTION_LIST_STATUS_GET) . '
</form>
</p>
';
/* define Table Heading */
$heading = array(array($name_text => AUCTIONS_TEXT_AUCTION_AMOUNT, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $auction_title_text, $sort0), $link_text => $file . $auction_title_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_EBAY_ID, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $auction_id_text, $sort0), $link_text => $file . $auction_id_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_center_text, $sort_text => str_replace(HASH, $buynowprice_text, $sort0), $link_text => $file . $buynowprice_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_START_TIME, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $starttime_text, $sort0), $link_text => $file . $starttime_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_END_TIME, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $endtime_text, $sort0), $link_text => $file . $endtime_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_BIDS, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $bidcount_text, $sort0), $link_text => $file . $bidcount_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_HIGHEST_BID, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $bidprice_text, $sort0), $link_text => $file . $bidprice_text));
/* print table heading */
$main_content = tableheading($heading);
$i = 0;
while ($auctions_values = olc_db_fetch_array($myauctions)) {
$mybidcount = $auctions_values[$bidcount_text];
if ($mybidcount == 0) {
$currentprice = DASH;
} else {
$currentprice = olc_format_price($auctions_values[$bidprice_text], 1, 1, 1);
}
示例12: olc_href_link
<tr>
<td align="right" colspan="2"><?php
echo HTML_A_START . olc_href_link(FILENAME_BANNER_MANAGER, 'action=new') . '">' . olc_image_button('button_new_banner.gif', IMAGE_NEW_BANNER) . HTML_A_END;
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($action) {
case 'delete':
$heading[] = array('text' => HTML_B_START . $bInfo->banners_title . HTML_B_END);
$contents = array('form' => olc_draw_form('banners', FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bInfo->banners_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br/><b>' . $bInfo->banners_title . HTML_B_END);
if ($bInfo->banners_image) {
$contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', 'on', true) . BLANK . TEXT_INFO_DELETE_IMAGE);
}
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . olc_href_link(FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bID) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
default:
if (is_object($bInfo)) {
$heading[] = array('text' => HTML_B_START . $bInfo->banners_title . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bInfo->banners_id . '&action=new') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bInfo->banners_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
$contents[] = array('text' => HTML_BR . TEXT_BANNERS_DATE_ADDED . BLANK . olc_date_short($bInfo->date_added));
if (function_exists('imagecreate') && $dir_ok && $banner_extension) {
$banner_id = $bInfo->banners_id;
$days = '3';
示例13: olc_draw_hidden_field
</table>
</td>
</tr>';
$radio_buttons++;
}
$address_content .= '
</table>';
$smarty->assign('BLOCK_ADDRESS', $address_content);
}
}
/*
if ($addresses_count < MAX_ADDRESS_BOOK_ENTRIES)
{
include(DIR_WS_MODULES . SMARTY_TEMPLATE.PHP);
}
*/
$submit_routine_trailer = '_optional';
$smarty->assign('BUTTON_CONTINUE', olc_draw_hidden_field('action', 'submit') . olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
if ($process) {
$smarty->assign('BUTTON_BACK', HTML_A_START . olc_href_link($back_file, EMPTY_STRING, SSL) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END);
}
}
$smarty->assign('FORM_ACTION', olc_draw_form(MESSAGE_STACK_NAME, olc_href_link(MESSAGE_STACK_NAME . PHP, EMPTY_STRING, SSL), 'post', 'onsubmit="return check_form' . $submit_routine_trailer . '(\'' . MESSAGE_STACK_NAME . '\');"'));
//W. Kaiser - AJAX
if ($messageStack->size(MESSAGE_STACK_NAME) > 0) {
$smarty->assign('error', $messageStack->output(MESSAGE_STACK_NAME));
}
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . MESSAGE_STACK_NAME . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
示例14: array
if ($cInfo->customers_id) {
$cid_db = $cInfo->customers_id;
}
$heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_CUSTOMER . HTML_B_END);
$contents = array('form' => olc_draw_form('customers', FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cid_db . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO . '<br/><br/><b>' . $cInfo->customers_firstname . BLANK . $cInfo->customers_lastname . HTML_B_END);
if ($cInfo->number_of_reviews > 0) {
$contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_reviews', 'on', true) . BLANK . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews));
}
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
case 'editstatus':
if ($cId != 1) {
$customers_history_query = olc_db_query(SELECT . "new_value, old_value, date_added, customer_notified from " . TABLE_CUSTOMERS_STATUS_HISTORY . " where customers_id = '" . $cId_db . "' order by customers_status_history_id desc");
$heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_STATUS_CUSTOMER . HTML_B_END);
$contents = array('form' => olc_draw_form('customers', FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=statusconfirm'));
$contents[] = array('text' => HTML_BR . olc_draw_pull_down_menu('status', $customers_statuses_array, $cInfo->customers_status));
$contents[] = array('text' => '
<table nowrap="nowrap" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="border-bottom: 1px solid; border-color: #000000;" nowrap="nowrap" class="smallText" align="center">
<b>' . TABLE_HEADING_NEW_VALUE . '</b>
</td>
<td style="border-bottom: 1px solid; border-color: #000000;" nowrap="nowrap" class="smallText" align="center">
<b>' . TABLE_HEADING_DATE_ADDED . '</b>
</td>
</tr>
');
if (olc_db_num_rows($customers_history_query)) {
while ($customers_history = olc_db_fetch_array($customers_history_query)) {
$contents[] = array('text' => '<tr>' . NEW_LINE . '<td class="smallText">' . $customers_statuses_array[$customers_history['new_value']]['text'] . '</td>' . NEW_LINE . '<td class="smallText" align="center">' . olc_datetime_short($customers_history['date_added']) . '</td>' . NEW_LINE . '<td class="smallText" align="center">');
示例15: olc_db_query
}
if (!$manufacturers_id) {
$products_id = $_GET['products_id'];
if ($products_id) {
$manufacturers_query = olc_db_query("select manufacturers_id from " . TABLE_PRODUCTS . " where products_id = " . $products_id);
if (olc_db_num_rows($manufacturers_query)) {
$products_data = olc_db_fetch_array($manufacturers_query);
$manufacturers_id = $products_data['manufacturers_id'];
}
} else {
$manufacturers_id = $_GET['filter_id'];
}
}
$form_name_text = 'manufacturers';
if (USE_AJAX) {
$onchange = "make_AJAX_Request_POST('" . $form_name_text . "','" . FILENAME_DEFAULT . "')";
} else {
$onchange = 'this.form.submit()';
}
$box_content = olc_draw_form($form_name_text, olc_href_link(FILENAME_DEFAULT, EMPTY_STRING, NONSSL, false), 'get');
$box_content .= olc_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $manufacturers_id, 'onchange="' . $onchange . '" size="' . MAX_MANUFACTURERS_LIST . QUOTE) . olc_hide_session_id() . '
</form>
';
$box_smarty->assign('BOX_CONTENT', $box_content);
$box_manufacturers = $box_smarty->fetch(CURRENT_TEMPLATE_BOXES . 'box_manufacturers' . HTML_EXT, $cacheid);
} else {
if (IS_AJAX_PROCESSING) {
$box_manufacturers = HTML_NBSP;
}
}
$smarty->assign('box_MANUFACTURERS', $box_manufacturers);