本文整理汇总了PHP中tep_draw_separator函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_draw_separator函数的具体用法?PHP tep_draw_separator怎么用?PHP tep_draw_separator使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_draw_separator函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: confirm
function confirm()
{
$mail_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
$mail = tep_db_fetch_array($mail_query);
$confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td class="main"><font color="#ff0000"><strong>' . sprintf(TEXT_COUNT_CUSTOMERS, $mail['count']) . '</strong></font></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><strong>' . $this->title . '</strong></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><tt>' . nl2br($this->content) . '</tt></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="smallText" align="right">' . tep_draw_button(IMAGE_SEND, 'mail-closed', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send'), 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'])) . '</td>' . "\n" . ' </tr>' . "\n" . '</table>';
return $confirm_string;
}
开发者ID:tiansiyuan,项目名称:oscommerce2,代码行数:7,代码来源:newsletter.php
示例2: confirm
function confirm()
{
global $HTTP_GET_VARS;
$mail_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
$mail = tep_db_fetch_array($mail_query);
$confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td class="main"><font color="#ff0000"><b>' . sprintf(TEXT_COUNT_CUSTOMERS, $mail['count']) . '</b></font></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><b>' . $this->title . '</b></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><tt>' . nl2br($this->content) . '</tt></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td align="right"><a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID'] . '&action=confirm_send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . "\n" . ' </tr>' . "\n" . '</table>';
return $confirm_string;
}
开发者ID:quangbt2005,项目名称:belamdep,代码行数:8,代码来源:newsletter.php
示例3: confirm
function confirm()
{
global $_GET;
$mail_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
$mail = tep_db_fetch_array($mail_query);
// ################# Contribution Newsletter v050 ##############
$confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><font color="#ff0000"><b>' . tep_draw_separator('pixel_trans.gif', '20', '1') . TEXT_TITRE_INFO . '</b></font></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main">' . sprintf(TEXT_COUNT_CUSTOMERS, $mail['count']) . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main">' . TEXT_BULLETIN_NUMB . " " . '<font color="#0000ff">' . $this->newsletters_id . '</font></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main">' . TEXT_MODULE . " " . '<font color="#0000ff">' . $this->module_subscribers . '</font></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main">' . TEXT_TITRE_MAIL . " " . '<font color="#0000ff">' . $this->title . '</font></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><font color="#ff0000"><b>' . tep_draw_separator('pixel_trans.gif', '20', '1') . TEXT_TITRE_VIEW . '</b></font></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><tt>' . $this->header . '</tt></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><tt>' . $this->content . '</tt></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><tt>' . $this->unsubscribea . '</tt></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><tt>' . $this->unsubscribeb . '</tt></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td align="right"><a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . "\n" . ' </tr>' . "\n" . '</table>';
// ################# END - Contribution Newsletter v050 ##############
return $confirm_string;
}
开发者ID:eosc,项目名称:EosC-2.3,代码行数:10,代码来源:newsletter.php
示例4: getAdminPricing
function getAdminPricing()
{
global $pInfo;
$content = '<tr bgcolor="#ebebff">';
$content .= '<td class="main">' . TEXT_PRODUCTS_PRICE_NET . '</td>';
$content .= '<td class="main">' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price', $pInfo->products_price, 'onKeyUp="updateGross()"') . '</td>';
$content .= '</tr>';
$content .= '<tr bgcolor="#ebebff">';
$content .= '<td class="main">' . TEXT_PRODUCTS_PRICE_GROSS . '</td>';
$content .= '<td class="main">' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price_gross', $pInfo->products_price, 'OnKeyUp="updateNet()"') . '</td>';
$content .= '</tr>';
return $content;
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:13,代码来源:price_standard.php
示例5: credit_selection
function credit_selection()
{
global $customer_id, $currencies, $language;
$selection_string = '';
$selection_string .= '<tr>' . "\n";
$selection_string .= ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>';
$selection_string .= ' <td class="main">' . "\n";
$image_submit = '<input type="image" name="submit_redeem" onClick="submitFunction()" src="' . DIR_WS_LANGUAGES . $language . '/images/buttons/button_redeem.gif" border="0" alt="' . IMAGE_REDEEM_VOUCHER . '" title = "' . IMAGE_REDEEM_VOUCHER . '">';
$selection_string .= TEXT_ENTER_COUPON_CODE . tep_draw_input_field('gv_redeem_code') . '</td>';
$selection_string .= ' <td align="right">' . $image_submit . '</td>';
$selection_string .= ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>';
$selection_string .= '</tr>' . "\n";
return $selection_string;
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:14,代码来源:ot_coupon.php
示例6: table_image_border_top
function table_image_border_top($left, $right, $header)
{
if (defined('MAIN_TABLE_BORDER') && MAIN_TABLE_BORDER == 'yes') {
echo '<!--table_image_border_top: BOF-->' . "\n";
echo '<tr>' . "\n";
echo ' <td valign="top" width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0">' . "\n";
if (SHOW_HEADING_TITLE_ORIGINAL != 'yes' && $header != '') {
echo ' <tr>' . "\n";
echo ' <td><table width="100%" border="0" cellspacing="0" cellpadding="1">' . "\n";
echo ' <tr>' . "\n";
echo ' <td class="main_table_heading"><table width="100%" border="0" cellspacing="0" cellpadding="1">' . "\n";
echo ' <tr>' . "\n";
echo ' <td class="main_table_heading_inner"><table width="100%" border="0" cellspacing="0" cellpadding="4">' . "\n";
echo ' <tr>' . "\n";
echo ' <td class="pageHeading">' . $header . '</td>' . "\n";
echo ' </tr>' . "\n";
echo ' </table></td>' . "\n";
echo ' </tr>' . "\n";
echo ' </table></td>' . "\n";
echo ' </tr>' . "\n";
echo ' </table></td>' . "\n";
echo ' </tr>' . "\n";
echo ' <tr>' . "\n";
echo ' <td>' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td>' . "\n";
echo ' </tr>' . "\n";
}
echo ' <tr>' . "\n";
echo ' <td valign="top" width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0">' . "\n";
echo ' <tr>' . "\n";
echo ' <td class="main_table_heading"><table width="100%" border="0" cellspacing="0" cellpadding="1">' . "\n";
echo ' <tr>' . "\n";
echo ' <td><table width="100%" border="0" cellspacing="0" cellpadding="1">' . "\n";
echo ' <tr>' . "\n";
echo ' <td class="main_table_heading_inner"><table width="100%" border="0" cellspacing="0" cellpadding="4">' . "\n";
echo '<!--table_image_border_top: BOF-->' . "\n";
}
}
开发者ID:resultsonlyweb,项目名称:loaded6-template,代码行数:37,代码来源:extra_html_output.php
示例7: execute
function execute()
{
global $cart, $new_products_id_in_cart, $currencies, $oscTemplate;
$cart_contents_string = '';
if ($cart->count_contents() > 0) {
$cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0" class="ui-widget-content infoBoxContents">';
$products = $cart->get_products();
for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
$cart_contents_string .= '<tr><td align="right" valign="top">';
if (tep_session_is_registered('new_products_id_in_cart') && $new_products_id_in_cart == $products[$i]['id']) {
$cart_contents_string .= '<span class="newItemInCart">';
}
$cart_contents_string .= $products[$i]['quantity'] . ' x ';
if (tep_session_is_registered('new_products_id_in_cart') && $new_products_id_in_cart == $products[$i]['id']) {
$cart_contents_string .= '</span>';
}
$cart_contents_string .= '</td><td valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">';
if (tep_session_is_registered('new_products_id_in_cart') && $new_products_id_in_cart == $products[$i]['id']) {
$cart_contents_string .= '<span class="newItemInCart">';
}
$cart_contents_string .= $products[$i]['name'];
if (tep_session_is_registered('new_products_id_in_cart') && $new_products_id_in_cart == $products[$i]['id']) {
$cart_contents_string .= '</span>';
}
$cart_contents_string .= '</a></td></tr>';
if (tep_session_is_registered('new_products_id_in_cart') && $new_products_id_in_cart == $products[$i]['id']) {
tep_session_unregister('new_products_id_in_cart');
}
}
$cart_contents_string .= '<tr><td colspan="2" style="padding-top: 5px; padding-bottom: 2px;">' . tep_draw_separator() . '</td></tr>' . '<tr><td colspan="2" align="right">' . $currencies->format($cart->show_total()) . '</td></tr>' . '</table>';
} else {
$cart_contents_string .= '<div class="ui-widget-content infoBoxContents">' . MODULE_BOXES_SHOPPING_CART_BOX_CART_EMPTY . '</div>';
}
$data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading"><a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . MODULE_BOXES_SHOPPING_CART_BOX_TITLE . '</a></div>' . ' ' . $cart_contents_string . '</div>';
$oscTemplate->addBlock($data, $this->group);
}
开发者ID:Sibzsolutions,项目名称:Savostore,代码行数:36,代码来源:bm_shopping_cart.php
示例8: tep_draw_separator
</tr>
<tr>
<td colspan="2"><?php
echo tep_draw_separator();
?>
</td>
</tr>
<tr>
<?php
$row = 0;
while ($expected = tep_db_fetch_array($expected_query)) {
$row++;
if ($row / 2 == floor($row / 2)) {
echo ' <tr class="upcomingProducts-even">' . "\n";
} else {
echo ' <tr class="upcomingProducts-odd">' . "\n";
}
echo ' <td class="smallText"> <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $expected['products_id']) . '">' . $expected['products_name'] . '</a> </td>' . "\n" . ' <td align="right" class="smallText"> ' . tep_date_short($expected['date_expected']) . ' </td>' . "\n" . ' </tr>' . "\n";
}
?>
<tr>
<td colspan="2"><?php
echo tep_draw_separator();
?>
</td>
</tr>
</table></td>
</tr>
<!-- upcoming_products_eof //-->
<?php
}
开发者ID:laiello,项目名称:myopensources,代码行数:31,代码来源:upcoming_products.php
示例9: tep_draw_separator
break;
}
}
require 'includes/template_top.php';
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php
echo HEADING_TITLE;
?>
</td>
<td class="pageHeading" align="right"><?php
echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent"><?php
echo TABLE_HEADING_COUNTRY_NAME;
?>
</td>
<td class="dataTableHeadingContent" align="center" colspan="2"><?php
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:31,代码来源:countries.php
示例10: tep_load_blocks
function tep_load_blocks($content_id, $content_type)
{
global $languages_id, $HTTP_POST_VARS, $PHP_SELF, $HTTP_GET_VARS;
$templates_id = '';
if ($content_type == 'page') {
$templates = array(array('id' => '', 'text' => TEXT_CHOOSE));
$templates_query = tep_db_query("select templates_id, templates_name from " . TABLE_TEMPLATES . " where language_id = '" . (int) $languages_id . "' order by sort_order, default_status desc, templates_id");
while ($templates_array = tep_db_fetch_array($templates_query)) {
$templates[] = array('id' => $templates_array['templates_id'], 'text' => $templates_array['templates_name']);
}
$template_info_query = tep_db_query("select templates_id from " . TABLE_TEMPLATES_TO_CONTENT . " where content_type = '" . tep_db_input($content_type) . "' and content_id = '" . (int) $content_id . "'");
$template_info = tep_db_fetch_array($template_info_query);
$templates_id = isset($HTTP_POST_VARS['templates_id']) ? $HTTP_POST_VARS['templates_id'] : $template_info['templates_id'];
}
$languages = tep_get_languages();
$metatags = array('metatags_page_title' => 'Заголовок окна', 'metatags_title' => 'Заголовок страницы', 'metatags_keywords' => 'Ключевые слова (meta-keywords)', 'metatags_description' => 'Описание (meta-description)');
?>
<div id="blocks">
<table border="0" width="100%" cellspacing="0" cellpadding="1">
<?php
if ($content_type == 'page') {
?>
<tr>
<td colspan="2"><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr valign="top">
<td class="main" style="width: 250px;"><?php
echo TEXT_CHOOSE_TEMPLATE;
?>
</td>
<td class="main"><?php
echo tep_draw_separator('pixel_trans.gif', '18', '12') . ' ' . tep_draw_pull_down_menu('templates_id', $templates, $templates_id);
?>
</td>
</tr>
<?php
}
reset($metatags);
while (list($metatag, $title) = each($metatags)) {
?>
<tr>
<td colspan="2"><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<?php
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$value_query = tep_db_query("select " . tep_db_input($metatag) . " as value from " . TABLE_METATAGS . " where content_id = '" . (int) $content_id . "' and content_type = '" . tep_db_input($content_type) . "' and language_id = '" . (int) $languages[$i]['id'] . "'");
$value = tep_db_fetch_array($value_query);
?>
<tr valign="top">
<td class="main" style="width: 250px;"><?php
if ($i == 0) {
echo $title . ':';
}
?>
</td>
<td class="main"><?php
echo tep_image(DIR_WS_CATALOG_IMAGES . $languages[$i]['image'], $languages[$i]['name'], '', '', 'style="float: left; margin: 4px 4px 0px 0px;"');
$field_name = $metatag . '[' . $languages[$i]['id'] . ']';
$field_value = isset($HTTP_POST_VARS[$metatag][$languages[$i]['id']]) ? $HTTP_POST_VARS[$metatag][$languages[$i]['id']] : $value['value'];
$field_value = str_replace('\\\\"', '"', $field_value);
$field_value = str_replace('\\"', '"', $field_value);
$field_value = str_replace("\\\\'", "\\'", $field_value);
$field_value = str_replace('src="/', 'src="' . HTTP_SERVER . '/', $field_value);
if ($metatag == 'metatags_description') {
echo tep_draw_textarea_field($field_name, 'soft', '55', '5', $field_value);
} else {
echo tep_draw_input_field($field_name, $field_value, 'size="55"');
}
?>
</td>
</tr>
<?php
}
}
echo '</table></div>';
}
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:82,代码来源:general.php
示例11: tep_draw_separator
<td width="25%"><?php
echo tep_draw_separator('pixel_silver.gif', '100%', '1');
?>
</td>
<td width="25%"><?php
echo tep_draw_separator('pixel_silver.gif', '100%', '1');
?>
</td>
<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%"><?php
echo tep_draw_separator('pixel_silver.gif', '100%', '1');
?>
</td>
<td width="50%"><?php
echo tep_draw_separator('pixel_silver.gif', '1', '5');
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" width="25%" class="checkoutBarCurrent"><?php
echo CHECKOUT_BAR_DELIVERY;
?>
</td>
<td align="center" width="25%" class="checkoutBarTo"><?php
echo CHECKOUT_BAR_PAYMENT;
?>
</td>
<td align="center" width="25%" class="checkoutBarTo"><?php
开发者ID:laiello,项目名称:hotel-os,代码行数:31,代码来源:checkout_shipping_address.php
示例12: Copyright
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
?>
<!-- downloads //-->
<?php
if (!strstr($PHP_SELF, FILENAME_ACCOUNT_HISTORY_INFO)) {
// Get last order id for checkout_success
$orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int) $customer_id . "' order by orders_id desc limit 1");
$orders = tep_db_fetch_array($orders_query);
$last_order = $orders['orders_id'];
} else {
$last_order = $HTTP_GET_VARS['order_id'];
}
$xoopsTpl->assign("seperator", tep_draw_separator('pixel_trans.gif', '100%', '10'));
// Now get all downloadable products in that order
$downloads_query = tep_db_query("select date_format(o.date_purchased, '%Y-%m-%d') as date_purchased_day, opd.download_maxdays, op.products_name, opd.orders_products_download_id, opd.orders_products_filename, opd.download_count, opd.download_maxdays from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " opd where o.customers_id = '" . (int) $customer_id . "' and o.orders_id = '" . (int) $last_order . "' and o.orders_id = op.orders_id and op.orders_products_id = opd.orders_products_id and opd.orders_products_filename != ''");
if (tep_db_num_rows($downloads_query) > 0) {
$xoopsTpl->assign("down", 1);
$i = 0;
while ($downloads = tep_db_fetch_array($downloads_query)) {
$tmp_downloads[$i] = $downloads;
// MySQL 3.22 does not have INTERVAL
list($dt_year, $dt_month, $dt_day) = explode('-', $downloads['date_purchased_day']);
$download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads['download_maxdays'], $dt_year);
$download_expiry = date('Y-m-d H:i:s', $download_timestamp);
// The link will appear only if:
// - Download remaining count is > 0, AND
// - The file is present in the DOWNLOAD directory, AND EITHER
// - No expiry date is enforced (maxdays == 0), OR
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:downloads.php
示例13: credit_selection
function credit_selection()
{
global $customer_id, $currencies, $language;
$selection_string = '';
$gv_query = tep_db_query("select coupon_id from " . TABLE_COUPONS . " where coupon_type = 'G' and coupon_active='Y'");
if (tep_db_num_rows($gv_query)) {
$selection_string .= '<tr>' . "\n";
$selection_string .= ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>';
$selection_string .= ' <td class="main">' . "\n";
$image_submit = '<input type="image" name="submit_redeem" onclick="submitFunction()" src="' . DIR_WS_LANGUAGES . $language . '/images/buttons/button_redeem.gif" border="0" alt="' . IMAGE_REDEEM_VOUCHER . '" title = "' . IMAGE_REDEEM_VOUCHER . '">';
$selection_string .= TEXT_ENTER_GV_CODE . tep_draw_input_field('gv_redeem_code') . '</td>';
$selection_string .= ' <td align="right">' . $image_submit . '</td>';
$selection_string .= ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>';
$selection_string .= '</tr>' . "\n";
}
return $selection_string;
}
开发者ID:othreed,项目名称:osCommerce-234-bootstrap-wADDONS,代码行数:17,代码来源:ot_gv.php
示例14: tep_draw_separator
if ($gv_result['amount'] > 0) {
$boxContent .= tep_draw_separator();
$boxContent .= '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smallText">' . VOUCHER_BALANCE . '</td><td class="smallText" align="right" valign="bottom">' . $currencies->format($gv_result['amount']) . '</td></tr></table>';
$boxContent .= '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smallText"><a href="' . tep_href_link(FILENAME_GV_SEND) . '">' . BOX_SEND_TO_FRIEND . '</a></td></tr></table>';
}
}
if (tep_session_is_registered('gv_id')) {
$gv_query = tep_db_query("select coupon_amount from " . TABLE_COUPONS . " where coupon_id = '" . $gv_id . "'");
$coupon = tep_db_fetch_array($gv_query);
$boxContent .= tep_draw_separator();
$boxContent .= '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smallText">' . VOUCHER_REDEEMED . '</td><td class="smallText" align="right" valign="bottom">' . $currencies->format($coupon['coupon_amount']) . '</td></tr></table>';
}
if (tep_session_is_registered('cc_id') && $cc_id) {
$coupon_query = tep_db_query("select * from " . TABLE_COUPONS . " where coupon_id = '" . $cc_id . "'");
$coupon = tep_db_fetch_array($coupon_query);
$coupon_desc_query = tep_db_query("select * from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $cc_id . "' and language_id = '" . $languages_id . "'");
$coupon_desc = tep_db_fetch_array($coupon_desc_query);
$text_coupon_help = sprintf("%s", $coupon_desc['coupon_name']);
$boxContent .= tep_draw_separator();
$boxContent .= '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="couponText"><a href="javascript:couponpopupWindow(\'' . tep_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $cc_id) . '\')">' . CART_COUPON . '</a></td><td class="couponText" align="right" valign="bottom">' . '<a href="javascript:couponpopupWindow(\'' . tep_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $cc_id) . '\')">' . $coupon['coupon_code'] . '</a>' . '</td></tr></table>';
}
// EOF - MOD: CREDIT CLASS Gift Voucher Contribution
include bts_select('boxes', $box_base_name);
// BTS 1.5
$boxLink = '';
}
}
// end if to check for OPC
?>
<!-- shopping_cart_eof //-->
开发者ID:digideskio,项目名称:oscmax2,代码行数:30,代码来源:shopping_cart.php
示例15: tep_href_link
?>
</td></tr>
<tr><td height="17"></td></tr>
</table>
<?php
}
?>
<!--
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents"><td>
-->
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="product box_width_cont">
<tr>
<td class="main bg_input"><?php
echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>';
echo tep_draw_separator('spacer.gif', '15', '1');
echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_add_to_cart1.gif', IMAGE_BUTTON_IN_CART);
?>
</td>
</tr>
</table><br style="line-height:1px;"><br style="line-height:10px;">
<!--
</td></tr>
</table>
-->
<?php
tep_draw_heading_bottom_2();
?>
<?php
tep_draw_heading_bottom_4();
开发者ID:laiello,项目名称:hotel-os,代码行数:31,代码来源:product_info.php
示例16: array
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_SPECIALS);
new infoBoxHeading4($info_box_contents, false, false, tep_href_link(FILENAME_SPECIALS));
$name_prod = '<span><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a></span>';
$pic_prod = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT) . '</a>';
$sp_price_1 = '<span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>';
$sp_price_2 = '<del>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</del>';
$sp_price = $sp_price_2 . '<br />' . tep_draw_separator('spacer.gif', '1', '9') . '<br />' . $sp_price_1;
$info_box_contents = array();
$info_box_contents[] = array('align' => 'center', 'text' => '
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>' . tep_draw_box_prod_top() . '' . $pic_prod . '' . tep_draw_box_prod_bottom() . '</td>
<td>' . tep_draw_separator('spacer.gif', '10', '1') . '</td>
<td style="width:100%">
<table cellpadding="0" cellspacing="0" border="0" class="box_body">
<tr>
<td class="vam" style="height:31px ">' . $name_prod . '</td>
</tr>
<tr>
<td class="vam" style="height:46px ">' . $sp_price . '</td>
</tr>
</table>
</td>
</tr>
</table>');
new infoBox4($info_box_contents);
?>
</td>
开发者ID:laiello,项目名称:hotel-os,代码行数:31,代码来源:specials.php
示例17: tep_db_query
} else {
$category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int) $current_category_id . "'");
$category_parent = tep_db_fetch_array($category_parent_query);
if ($category_parent['total'] > 0) {
$category_depth = 'nested';
// navigate through the categories
$xoopsTpl->assign("nested", 1);
} else {
$category_depth = 'products';
// category has no products, but display the 'no products' message
}
}
}
require DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT;
include "includes/header.php";
$separator = tep_draw_separator('pixel_trans.gif', '100%', '10');
$xoopsTpl->assign("separator", $separator);
if ($category_depth == 'nested') {
$category_query = tep_db_query("select cd.short_description,cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_status = 1 and c.categories_id = '" . (int) $current_category_id . "' and cd.categories_id = '" . (int) $current_category_id . "' and cd.language_id = '" . (int) $languages_id . "'");
$category = tep_db_fetch_array($category_query);
$xoopsTpl->assign("categories_image", tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT));
$xoopsTpl->assign('categorie_description', $category['short_description']);
if (isset($cPath) && strpos('_', $cPath)) {
// check to see if there are deeper categories within the current category
$category_links = array_reverse($cPath_array);
for ($i = 0, $n = sizeof($category_links); $i < $n; $i++) {
$categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_status = 1 and c.parent_id = '" . (int) $category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int) $languages_id . "'");
$categories = tep_db_fetch_array($categories_query);
if ($categories['total'] < 1) {
// do nothing, go through the loop
} else {
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:index.php
示例18: session_decode
session_decode($session_data_currency);
session_decode($session_data_country);
session_decode($session_data_zone);
session_decode($session_data_cart);
if (PHP_VERSION < 4) {
$broken_cart = $cart;
$cart = new shoppingCart();
$cart->unserialize($broken_cart);
}
if (is_object($cart)) {
$products = $cart->get_products();
for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
$contents[]
|
请发表评论