Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 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 . "&nbsp;" . '<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 . "&nbsp;" . '<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 . "&nbsp;" . '<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;
 }
Beispiel #4
0
 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') . '&nbsp;' . 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') . '&nbsp;' . tep_draw_input_field('products_price_gross', $pInfo->products_price, 'OnKeyUp="updateNet()"') . '</td>';
     $content .= '</tr>';
     return $content;
 }
Beispiel #5
0
 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;
 }
 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";
     }
 }
 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'] . '&nbsp;x&nbsp;';
             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);
 }
              </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">&nbsp;<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $expected['products_id']) . '">' . $expected['products_name'] . '</a>&nbsp;</td>' . "\n" . '                <td align="right" class="smallText">&nbsp;' . tep_date_short($expected['date_expected']) . '&nbsp;</td>' . "\n" . '              </tr>' . "\n";
    }
    ?>
              <tr>
                <td colspan="2"><?php 
    echo tep_draw_separator();
    ?>
</td>
              </tr>
            </table></td>
          </tr>
<!-- upcoming_products_eof //-->
<?php 
}
            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 
Beispiel #10
0
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') . '&#160;' . 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>';
}
					<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 
Beispiel #12
0
  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
 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;
 }
Beispiel #14
0
            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 //-->
Beispiel #15
0
        ?>
</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();
Beispiel #16
0
            <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>
Beispiel #17
0
    } 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 {
Beispiel #18
0
        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[] = array('text' => $products[$i]['quantity'] . ' x ' . $products[$i]['name']);
            }
            if (sizeof($products) > 0) {
                $contents[] = array('text' => tep_draw_separator('pixel_black.gif', '100%', '1'));
                $contents[] = array('align' => 'right', 'text' => TEXT_SHOPPING_CART_SUBTOTAL . ' ' . $currencies->format($cart->show_total(), true, $currency));
            } else {
                $contents[] = array('text' => '&nbsp;');
            }
        }
    }
}
if (tep_not_null($heading) && tep_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
Beispiel #19
0
 function infoBoxContents($contents)
 {
     $this->table_cellpadding = '3';
     $this->table_parameters = 'class="infoBoxContents"';
     $info_box_contents = array();
     $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
     for ($i = 0, $n = sizeof($contents); $i < $n; $i++) {
         $info_box_contents[] = array(array('align' => isset($contents[$i]['align']) ? $contents[$i]['align'] : '', 'form' => isset($contents[$i]['form']) ? $contents[$i]['form'] : '', 'params' => 'class="boxText"', 'text' => isset($contents[$i]['text']) ? $contents[$i]['text'] : ''));
     }
     $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
     return $this->tableBox($info_box_contents);
 }
Beispiel #20
0
        ?>
</td>
              </tr>
              <tr>
                <td class="dataTableContent"><?php 
        echo $affiliate_clickthroughs['affiliate_clientip'];
        ?>
</td>
                <td class="dataTableContent" colspan="3"><?php 
        echo $affiliate_clickthroughs['affiliate_clientreferer'];
        ?>
</td>
              </tr>
              <tr>
                <td class="dataTableContent" colspan="4"><?php 
        echo tep_draw_separator('pixel_black.gif', '100%', '1');
        ?>
</td>
              </tr>
<?php 
    }
} else {
    ?>
              <tr class="productListing-odd">
                <td colspan="7" class="smallText"><?php 
    echo TEXT_NO_CLICKS;
    ?>
</td>
              </tr>
<?php 
}
 function confirm()
 {
     global $HTTP_GET_VARS, $HTTP_POST_VARS;
     $audience = array();
     if (isset($HTTP_GET_VARS['global']) && $HTTP_GET_VARS['global'] == 'true') {
         $products_query = tep_db_query("select distinct customers_id from " . TABLE_PRODUCTS_NOTIFICATIONS);
         while ($products = tep_db_fetch_array($products_query)) {
             $audience[$products['customers_id']] = '1';
         }
         $customers_query = tep_db_query("select customers_info_id from " . TABLE_CUSTOMERS_INFO . " where global_product_notifications = '1'");
         while ($customers = tep_db_fetch_array($customers_query)) {
             $audience[$customers['customers_info_id']] = '1';
         }
     } else {
         $chosen = $HTTP_POST_VARS['chosen'];
         $ids = implode(',', $chosen);
         $products_query = tep_db_query("select distinct customers_id from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id in (" . $ids . ")");
         while ($products = tep_db_fetch_array($products_query)) {
             $audience[$products['customers_id']] = '1';
         }
         $customers_query = tep_db_query("select customers_info_id from " . TABLE_CUSTOMERS_INFO . " where global_product_notifications = '1'");
         while ($customers = tep_db_fetch_array($customers_query)) {
             $audience[$customers['customers_info_id']] = '1';
         }
     }
     $confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . '  <tr>' . "\n" . '    <td class="main"><font color="#ff0000"><strong>' . sprintf(TEXT_COUNT_CUSTOMERS, sizeof($audience)) . '</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>' . tep_draw_form('confirm', FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID'] . '&action=confirm_send') . "\n" . '    <td class="smallText" align="right">';
     if (sizeof($audience) > 0) {
         if (isset($HTTP_GET_VARS['global']) && $HTTP_GET_VARS['global'] == 'true') {
             $confirm_string .= tep_draw_hidden_field('global', 'true');
         } else {
             for ($i = 0, $n = sizeof($chosen); $i < $n; $i++) {
                 $confirm_string .= tep_draw_hidden_field('chosen[]', $chosen[$i]);
             }
         }
         $confirm_string .= tep_draw_button(IMAGE_SEND, 'mail-closed', null, 'primary');
     }
     $confirm_string .= tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID'] . '&action=send')) . '</td>' . "\n" . '  </tr>' . "\n" . '</table>';
     return $confirm_string;
 }
Beispiel #22
0
            $cart_contents_string .= '<span class="newItemInCart">';
        } else {
            $cart_contents_string .= '<span class="infoBoxContents">';
        }
        $cart_contents_string .= $products[$i]['quantity'] . '&nbsp;x&nbsp;</span></td><td valign="top" class="infoBoxContents"><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">';
        } else {
            $cart_contents_string .= '<span class="infoBoxContents">';
        }
        $cart_contents_string .= $products[$i]['name'] . '</span></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 .= '</table>';
} else {
    $cart_contents_string .= BOX_SHOPPING_CART_EMPTY;
}
$info_box_contents = array();
$info_box_contents[] = array('text' => $cart_contents_string);
if ($cart->count_contents() > 0) {
    $info_box_contents[] = array('text' => tep_draw_separator());
    $info_box_contents[] = array('align' => 'right', 'text' => $currencies->format($cart->show_total()));
}
new infoBox($info_box_contents);
?>
            </td>
          </tr>
<!-- shopping_cart_eof //-->
  http://www.creloaded.com

  Copyright (c) 2006 CRE Loaded
  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/
if (defined('MODULE_ADDONS_FDM_STATUS') && MODULE_ADDONS_FDM_STATUS == 'True') {
    $rci = '<tr>' . "\n";
    $rci .= '  <td><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n";
    $rci .= '    <tr>' . "\n";
    $rci .= '      <td class="main"><b>' . FILE_MY_DOWNLOADS . '</b></td>' . "\n";
    $rci .= '    </tr>' . "\n";
    $rci .= '  </table></td>' . "\n";
    $rci .= '</tr>' . "\n";
    $rci .= '<tr>' . "\n";
    $rci .= '  <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">' . "\n";
    $rci .= '    <tr class="infoBoxContents">' . "\n";
    $rci .= '      <td><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n";
    $rci .= '        <tr>' . "\n";
    $rci .= '          <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>' . "\n";
    $rci .= '          <td width="60">' . tep_image(DIR_WS_IMAGES . 'fdms_logo.gif') . '</td>' . "\n";
    $rci .= '          <td width="2">' . tep_draw_separator('pixel_trans.gif', '2', '1') . '</td>' . "\n";
    $rci .= '          <td class="main">' . tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_DOWNLOADS_INDEX, 'customer_id=' . $_SESSION['customer_id'], 'SSL') . '">' . FILE_MY_DOWNLOADS . '</a></td>' . "\n";
    $rci .= '        </tr>' . "\n";
    $rci .= '      </table></td>' . "\n";
    $rci .= '    </tr>' . "\n";
    $rci .= '  </table></td>' . "\n";
    $rci .= '</tr>' . "\n";
    return $rci;
}
        ?>
              <tr>
                <td><b><?php 
        echo TEXT_INFO_CONFIRM_CONFIG;
        ?>
</b></td>
              </tr>
<?php 
    }
    foreach ($_POST as $key => $value) {
        echo tep_draw_hidden_field($key, $value);
    }
    ?>
              <tr>
                <td><?php 
    echo tep_draw_separator('pixel_trans.gif', '100%', '6');
    ?>
</td>
              </tr>
              <tr>
                <td class="main"><?php 
    echo tep_image_submit('button_confirm.gif', TEXT_INFO_CONFIRM_MYSQL) . ' <a href="' . tep_href_link($g_script) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
    ?>
</td>
              </tr>
            </table></form></div>
          </div>
<?php 
    // Show them all
} elseif ($gID == 0) {
    ?>
$col = 0;
while ($categories_cat = tep_db_fetch_array($categories_query_cat)) {
    if ($categories_cat['categories_parent_id'] == 0) {
        if ($categories_cat['categories_url_override'] != '') {
            $override_url = $categories_cat['categories_url_override'];
        } else {
            $override_url = tep_href_link(FILENAME_PAGES, 'CDpath=' . $categories_cat['categories_id']);
        }
        $info_box_contents[$row][$col] = array('align' => 'left', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<div ' . $item_div_options . '><a href="' . $override_url . '"' . ($categories_cat['categories_url_override_target'] != '' ? ' target="' . $categories_cat['categories_url_override_target'] . '"' : '') . '>' . tep_image(DIR_WS_IMAGES . $categories_cat['categories_image'], $categories_cat['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories_cat['categories_name'] . '</a></DIV>');
        // determine the column position to see if we need to go to a new row
        $col++;
        if ($col > $item_column_number - 1) {
            $col = 0;
            $row++;
        }
        //if ($col > ($number_of_columns - 1))
    }
    //if ($categories['categories_parent_id'] == 0)
}
// while ($categories = tep_db_fetch_array($categories_query_cat))
//output the contents
new contentBox($info_box_contents, true, true);
if (TEMPLATE_INCLUDE_FOOTER == 'true') {
    $info_box_contents = array();
    $info_box_contents[] = array('align' => 'left', 'text' => tep_draw_separator('pixel_trans.gif', '100%', '1'));
    new contentBoxFooter($info_box_contents);
}
?>

<!-- main_CDS_categories_eof //-->
  <table width="100%" border="0" align="center" style="vertical-align:top" cellpadding="0" cellspacing="0">
    <tr>
      <td align="left">
        <?php 
    if (cre_site_branding('storeurl') != '' || cre_site_branding('phone') != '' || cre_site_branding('email') != '') {
        ?>
          <table width="100%" border="0" cellpadding="0" cellspacing="0" class="top_bar">
            <tr>
              <td class="top_bar_td1" align="left" NOWRAP>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php 
        echo cre_site_branding('storeurl');
        ?>
</td>
              <td width="80%"></td>
              <td class="top_bar_td2" align="left" NOWRAP>&nbsp; <?php 
        if (cre_site_branding('phone') != '') {
            echo tep_draw_separator('pixel_trans.gif', '1', '1') . tep_image(DIR_WS_TEMPLATE_IMAGES . 'icon_phone.gif') . ' &nbsp; ' . MENU_TEXT_CALLUS . ' &nbsp;' . cre_site_branding('phone');
        }
        ?>
&nbsp; <?php 
        if (cre_site_branding('email') != '') {
            echo tep_image(DIR_WS_TEMPLATE_IMAGES . 'icon_email.png') . ' &nbsp; ' . MENU_TEXT_EMAILUS . ' &nbsp;' . cre_site_branding('email');
        }
        ?>
</td>
            </tr>
          </table>
          <?php 
    }
    ?>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="top_nav">
          <tr>
Beispiel #27
0
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
          <tr class="infoBoxNoticeContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td><?php echo tep_draw_separator('clear.gif', '10', '1'); ?></td>
                <td class="main" width="100%" valign="top"><?php echo tep_output_string($error['error']); ?></td>
                <td><?php echo tep_draw_separator('clear.gif', '10', '1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('clear.gif', '100%', '10'); ?></td>
      </tr>
      </table>
<?php
  }
?>
    <table class="infoBox" width="80%" cellspacing="0" cellpadding="2" align=center>

<?php
  $selection = $payment_modules->selection();
  
  if (sizeof($selection) > 1) {
?>

           <tr height=10>
                <td class="infoBoxHeading">&nbsp;</td>
?>
</td>
			</tr>

<?php 
if ($include_file === false && $_GET['a_information'] != 'Added') {
    echo '
			<tr>
				<td class="formAreaTitle">Page Location:</td>
				<td class="formAreaTitle">';
    echo '<a href="http://' . $hostname . '/' . $output . '.html" target="_blank">http://' . $hostname . '/' . $output . '.html</a>';
    echo '
				</td>
			</tr>
			<tr>
				<td colspan="2">' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>
			</tr>';
}
?>
			<tr>

				<td colspan="2" class="formAreaTitle">Content:<?php 
//echo DESCRIPTION_INFORMATION;
?>
<br>
<?php 
$descrip = htmlentities($edit[description], ENT_NOQUOTES, 'UTF-8');
echo tep_draw_textarea_field('description', '', '100', '15', $descrip, 'style="width:99%; height:350px;"');
?>
				</td>
			</tr>
    ?>
      <tr>
        <td><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
      </tr>
      <tr>
        <td class="main"><font color="#ff0000"><b><?php 
    echo TEXT_FINISHED_SENDING_EMAILS;
    ?>
</b></font></td>
      </tr>
      <tr>
        <td><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
      </tr>
      <tr>
        <td><?php 
    echo '<a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $_GET['nID']) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>';
    ?>
</td>
      </tr>
<?php 
} else {
    ?>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
Beispiel #30
0
 function display_validation()
 {
     extract(tep_load('defs'));
     $html_string = '';
     $html_string .= '      <tr>' . "\n" . '        <td><hr /></td>' . "\n" . '      </tr>' . "\n";
     if (count($this->error_array)) {
         $html_string .= '      <tr>' . "\n" . '        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n" . '          <tr>' . "\n" . '            <td class="dataTableRowHighBorder" width="16">&nbsp;</td>' . "\n" . '            <td><b>&nbsp;-&nbsp;Entry present in the entries table but not present in the SEO-G table</b></td>' . "\n" . '          </tr>' . "\n" . '          <tr>' . "\n" . '            <td colspan="2">' . tep_draw_separator('pixel_trans.gif', '100%', '1') . '</td>' . "\n" . '          </tr>' . "\n" . '          <tr>' . "\n" . '            <td class="dataTableRowImpactBorder" width="16">&nbsp;</td>' . "\n" . '            <td><b>&nbsp;-&nbsp;Entry present in the SEO-G table but it is not present in the entries table</b></td>' . "\n" . '          </tr>' . "\n" . '        </table></td>' . "\n" . '      </tr>' . "\n" . '      <tr>' . "\n" . '        <td>' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td>' . "\n" . '      </tr>' . "\n";
         $html_string .= '      <tr>' . "\n" . '        <td valign="top">' . tep_draw_form('rl', $cDefs->script, 'action=validate_confirm&zID=' . $this->m_zID . '&zpage=' . $this->m_zpage, 'post') . '<table class="tabledata">' . "\n" . '          <tr class="dataTableHeadingRow">' . "\n" . '            <th class="calign"><a href="#pc_id" class="page_select" title="' . TEXT_PAGE_SELECT . '">' . tep_image(DIR_WS_ICONS . 'icon_tick.png', TEXT_PAGE_SELECT) . '</a></th>' . "\n" . '            <th>' . TABLE_HEADING_ID . '</th>' . "\n" . '            <th>' . TABLE_HEADING_NAME . '</th>' . "\n" . '            <th>' . TABLE_HEADING_COMMENT . '</th>' . "\n" . '          </tr>' . "\n";
         for ($i = 0, $j = count($this->error_array); $i < $j; $i++) {
             $row_class = $this->error_array[$i]['missing_id'] ? 'dataTableRowImpact' : 'dataTableRowHigh';
             $html_string .= '          <tr class="' . $row_class . '">' . "\n" . '            <td class="calign">' . tep_draw_checkbox_field('pc_id[' . $this->error_array[$i]['gtext_id'] . ']', 'on', false) . tep_draw_hidden_field('missing[' . $this->error_array[$i]['gtext_id'] . ']', $this->error_array[$i]['missing_id']) . '</td>' . "\n" . '            <td>' . $this->error_array[$i]['gtext_id'] . '</td>' . "\n" . '            <td>' . $this->error_array[$i]['name'] . '</td>' . "\n" . '            <td>' . ($this->error_array[$i]['missing_id'] ? 'Missing from Entries' : 'Missing from SEO-G') . '</td>' . "\n" . '          </tr>' . "\n";
         }
         $html_string .= '          <tr>' . "\n" . '            <td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n" . '              <tr>' . "\n" . '                <td><a href="' . tep_href_link($cDefs->script, 'zpage=' . $this->m_zpage . '&zID=' . $this->m_zID) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a> ' . tep_image_submit('button_fix_errors.gif', 'Fix Listed Errors') . '</td>' . "\n" . '              </tr>' . "\n" . '            </table></td>' . "\n" . '          </tr>' . "\n" . '        </table></form></td>' . "\n" . '      </tr>' . "\n";
     } else {
         $html_string .= '      <tr>' . "\n" . '        <td class="smallText">' . 'No Errors Found' . '</td>' . "\n" . '      </tr>' . "\n" . '      <tr>' . "\n" . '        <td colspan="2">' . tep_draw_separator('pixel_trans.gif', '100%', '4') . '</td>' . "\n" . '      </tr>' . "\n" . '      <tr>' . "\n" . '        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">' . "\n" . '          <tr>' . "\n" . '            <td><a href="' . tep_href_link($cDefs->script, 'zpage=' . $this->m_zpage . '&zID=' . $this->m_zID) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a></td>' . "\n" . '          </tr>' . "\n" . '        </table></td>' . "\n" . '      </tr>' . "\n";
     }
     return $html_string;
 }