Пример #1
0
 function confirm()
 {
     global $_GET;
     $mail_query = smn_db_query("select count(*) as count from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
     $mail = smn_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>' . smn_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>' . smn_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>' . smn_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td align="right"><a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . '">' . smn_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . "\n" . '  </tr>' . "\n" . '</table>';
     return $confirm_string;
 }
        ?>
</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 smn_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 
}
<?php 
require DIR_WS_INCLUDES . 'column_left.php';
?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td width="100%"><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 smn_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">
              
<?php 
if ($HTTP_POST_VARS['task'] == '' && $task == '') {
    echo "<FORM name='add' action='{$PHP_SELF}' method='post'>";
    echo "<select name = 'what_info'>";
    while (list($key, $value) = each($additional_info_array)) {
                </tr>
                <tr>
                  <td colspan="4"><?php 
echo smn_draw_separator();
?>
</td>
                </tr>
                <tr>
                  <td align="center" class="dataTableContent" colspan="4"><b><?php 
echo TEXT_SUMMARY;
?>
</b></td>
                </tr>
                <tr>
                  <td colspan="4"><?php 
echo smn_draw_separator();
?>
</td>
                </tr>
                <tr>
                  <td align="right" class="dataTableContent" colspan="4"><?php 
echo '<a href="' . smn_href_link(FILENAME_AFFILIATE_BANNERS, '') . '">' . smn_image_button('button_affiliate_banners.gif', IMAGE_BANNERS) . '</a> <a href="' . smn_href_link(FILENAME_AFFILIATE_CLICKS, '') . '">' . smn_image_button('button_affiliate_clickthroughs.gif', IMAGE_CLICKTHROUGHS) . '</a> <a href="' . smn_href_link(FILENAME_AFFILIATE_SALES, '') . '">' . smn_image_button('button_affiliate_sales.gif', IMAGE_SALES) . '</a>';
?>
</td>
                </tr>
              </center>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>
           '                <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" .
           '              </tr>' . "\n";
    }
?>
            </table></td>
          </tr>
        </table></td>
      </tr>
	<tr class="infoBoxContents"><td><?=ORDER_DELETE_DESCRIPTION?></td></tr> 
	<tr class="infoBoxContents"><?php echo smn_draw_form('order_delete', smn_href_link(FILENAME_STORE_ORDER_EDIT,  smn_get_all_get_params(array('action')) . 'action=deleteconfirm&ID='.$store_id,'NONSSL'),'POST'); ?>
        <td><?php echo smn_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY; ?></td>
      </tr> 
	  
	<tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td><?php echo '<a href="' . smn_href_link(FILENAME_STORE_ORDER_TOOL, 'ID='.$store_id, 'NONSSL') . '">' . smn_image_button('small_back.gif', IMAGE_small_back) . '</a>'; ?></td>
                <td valign="top"><?php echo smn_image_submit('button_delete.gif', IMAGE_DELETE); ?></td>
                <td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
<?
  }
?>
Пример #6
0
<?php

/*
  Copyright (c) 2002 - 2006 SystemsManager.Net
  SystemsManager Technologies
  oscMall System Version 4
  http://www.systemsmanager.net
  Portions Copyright (c) 2002 osCommerce

  This source file is subject to version 2.0 of the GPL license,   
  that is bundled with this package in the file LICENSE. If you
  did not receive a copy of the oscMall System license and are unable 
  to obtain it through the world-wide-web, please send a note to    
  license@systemsmanager.net so we can mail you a copy immediately.
*/
?>
 <table border="0" cellspacing="0" cellpadding="5" width="96%">
  <tr>
   <td class="main"><?php 
echo TEXT_PRODUCTS_IMAGE;
?>
</td>
   <td class="main"><?php 
echo smn_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . smn_draw_file_field('products_image') . '<br>' . smn_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . smn_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image) . smn_draw_hidden_field('products_previous_image', $pInfo->products_image);
?>
</td>
  </tr>
 </table>
Пример #7
0
if (smn_session_is_registered('customer_id')) {
    $gv_query = smn_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'");
    $gv_result = smn_db_fetch_array($gv_query);
    if ($gv_result['amount'] > 0) {
        $boxContent .= smn_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="' . smn_href_link(FILENAME_GV_SEND, 'ID=' . $store_id) . '">' . BOX_SEND_TO_FRIEND . '</a></td></tr></table>';
    }
}
if (smn_session_is_registered('gv_id')) {
    $gv_query = smn_db_query("select coupon_amount from " . TABLE_COUPONS . " where coupon_id = '" . $gv_id . "'");
    $coupon = smn_db_fetch_array($gv_query);
    $boxContent .= smn_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 (smn_session_is_registered('cc_id') && $cc_id) {
    $coupon_query = smn_db_query("select c.*, cd.* from " . TABLE_COUPONS . "c,  " . TABLE_COUPONS_DESCRIPTION . " cd where cd.coupon_id = '" . $cc_id . "' and c.coupon_id = '" . $cc_id . "' and cd.language_id = '" . $languages_id . "'");
    $coupon = smn_db_fetch_array($coupon_query);
    $coupon_desc_query = smn_db_query("select * from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $cc_id . "' and language_id = '" . $languages_id . "'");
    $coupon_desc = smn_db_fetch_array($coupon_desc_query);
    $text_coupon_help = sprintf("%s", $coupon_desc['coupon_name']);
    $boxContent .= smn_draw_separator();
    $boxContent .= '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents">' . CART_COUPON . $text_coupon_help . '<br>' . '</td></tr></table>';
}
if (file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.php')) {
    require DIR_WS_BOX_TEMPLATES . $box_base_name . '.php';
} else {
    require DEFAULT_TEMPLATENAME_BOX;
}
$boxContent_attributes = '';
$boxLink = '';
            <td width="25%"><?php 
echo smn_draw_separator('pixel_silver.gif', '100%', '1');
?>
</td>
            <td width="25%"><?php 
echo smn_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 smn_draw_separator('pixel_silver.gif', '100%', '1');
?>
</td>
                <td width="50%"><?php 
echo smn_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 
Пример #9
0
 function sub_credit_selection()
 {
     $selection_string = '';
     $close_string = '';
     $credit_class_string = '';
     if (MODULE_ORDER_TOTAL_INSTALLED) {
         $this->modules = explode(';', MODULE_ORDER_TOTAL_INSTALLED);
         reset($this->modules);
         $output_string = '';
         while (list(, $value) = each($this->modules)) {
             $class = substr($value, 0, strrpos($value, '.'));
             if ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) {
                 $use_credit_string = $GLOBALS[$class]->use_credit_amount();
                 if ($selection_string == '') {
                     $selection_string = $GLOBALS[$class]->credit_selection();
                 }
                 if ($use_credit_string != '' || $selection_string != '') {
                     $output_string = $use_credit_string;
                     $output_string .= '<td width="10">' . smn_draw_separator('pixel_trans.gif', '10', '1') . '</td>';
                     $output_string .= '  </tr></table></td><td width="10">' . smn_draw_separator('pixel_trans.gif', '10', '1') . '</td></tr>' . "\n";
                     //$output_string.=$GLOBALS[$class]->use_credit_amount();
                     //$output_string .= $selection_string;
                 }
             }
         }
         if ($output_string != '') {
         }
     }
     return $output_string;
 }
Пример #10
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' => smn_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 (smn_not_null($heading) && smn_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
Пример #11
0
    $product_query = smn_db_query("select products_name, products_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $new_products['products_id'] . "' and language_id = '" . $languages_id . "'");
    $product_details = smn_db_fetch_array($product_query);
    $new_products['products_name'] = $product_details['products_name'];
    $new_products['products_description'] = substr($product_details['products_description'], 0, 96);
    //**
    /* Added 'ID=' . $new_products['store_id'] . '& in L92 to add the store id in the url by Cimi on June 08,2007*/
    $info_box_contents[$row][$col] = array('align' => 'left', 'params' => 'width="50%" valign="top"', 'text' => smn_draw_form('cart_quantity', smn_href_link(FILENAME_PRODUCT_INFO, smn_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $new_products['products_id'])) . '
										 
			<TABLE border="0" width="100%" cellspacing="0" cellpadding="0">
				<TR>
       				<TD style="padding-left: 8px;">
					
					
					<TABLE border="0" width="100%" cellspacing="0" cellpadding="0">
						<TR>
       						<TD style="' . $style1 . '">' . smn_draw_separator('pixel_trans.gif', '100%', '7') . '</TD>
						</TR>
					</TABLE>
					
					
					
					</TD>					
				</TR>
				<TR>
       				<TD style="' . $style2 . 'padding-left: 7px;">
				<SPAN CLASS="priceNew">' . $currencies->display_price($new_products['products_price'], smn_get_tax_rate($new_products['products_tax_class_id'])) . '</SPAN><br>
				' . smn_draw_hidden_field('products_id', $new_products['products_id']) . smn_image_submit('add_to_cart.gif', IMAGE_BUTTON_IN_CART) . '<br>
				<a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'ID=' . $new_products['store_id'] . '&products_id=' . $new_products['products_id']) . '">' . smn_image(DIR_WS_CATALOG_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a class="prodNameNew" href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'ID=' . $new_products['store_id'] . '&products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $new_products['products_description'] . '
			    	</TD>
				</TR>
			</TABLE>										   						   
        }
      }
      echo '&nbsp;&nbsp;<a href="' . smn_href_link(FILENAME_STORE_PRODUCT_CATEGORIES, 'cPath=' . $cPath . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : '').'&ID='.$store_id) . '">' . smn_image_button('small_cancel.gif', IMAGE_CANCEL) . '</a>';
?></td>
      </tr>
    </table></form>
<?php
    }
  } else {
?>
    <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 smn_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?></td>
            <td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td class="smallText" align="right">
<?php
    echo smn_draw_form('search', FILENAME_STORE_PRODUCT_CATEGORIES.'?ID='.$store_id, 'post');
    echo HEADING_TITLE_SEARCH . ' ' . smn_draw_input_field('search');
    echo smn_hide_session_id() . '</form>';
?>
                </td>
              </tr>
              <tr>
                <td class="smallText" align="right">
<?php
    echo smn_draw_form('goto', FILENAME_STORE_PRODUCT_CATEGORIES,'get');
    echo smn_draw_hidden_field('ID', $store_id);
Пример #13
0
 function credit_selection()
 {
     global $customer_id, $currencies, $language;
     $selection_string = '';
     $gv_query = smn_db_query("select coupon_id from " . TABLE_COUPONS . " where coupon_type = 'G' and coupon_active='Y'");
     if (smn_db_num_rows($gv_query)) {
         $selection_string .= '<tr>' . "\n";
         $selection_string .= '  <td width="10">' . smn_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 . smn_draw_input_field('gv_redeem_code') . '</td>';
         $selection_string .= ' <td align="right">' . $image_submit . '</td>';
         $selection_string .= '  <td width="10">' . smn_draw_separator('pixel_trans.gif', '10', '1') . '</td>';
         $selection_string .= '</tr>' . "\n";
     }
     return $selection_string;
 }
Пример #14
0
  <tr bgcolor="#ebebff">
   <td class="main"><?php 
echo TEXT_PRODUCTS_TAX_CLASS;
?>
</td>
   <td><?php 
echo smn_draw_separator('pixel_trans.gif', '150', '15') . '' . smn_draw_pull_down_menu('products_tax_class_id', $tax_class_array, $pInfo->products_tax_class_id, 'id="products_tax_class_id"');
?>
</td>
  </tr>
  <tr bgcolor="#ebebff">
   <td class="main"><?php 
echo TEXT_PRODUCTS_PRICE_NET;
?>
</td>
   <td><?php 
echo smn_draw_separator('pixel_trans.gif', '150', '15') . '' . smn_draw_input_field('products_price', $pInfo->products_price, 'id="products_price"');
?>
</td>
  </tr>
  <tr bgcolor="#ebebff">
   <td class="main"><?php 
echo TEXT_PRODUCTS_PRICE_GROSS;
?>
</td>
   <td><?php 
echo smn_draw_separator('pixel_trans.gif', '150', '15') . '' . smn_draw_input_field('products_price_gross', $pInfo->products_price, 'id="products_price_gross"');
?>
</td>
  </tr>
 </table>
Пример #15
0
$colspan = 3;
if (strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
    $colspan++;
    echo '    <td align="center" class="smallText"><b>' . TABLE_HEADING_REMOVE . '</b></td>' . "\n";
}
echo '    <td align="center" class="tableHeading">' . TABLE_HEADING_QUANTITY . '</td>' . "\n";
if (PRODUCT_LIST_MODEL > 0 && strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
    $colspan++;
    echo '    <td class="tableHeading">' . TABLE_HEADING_MODEL . '</td>' . "\n";
}
echo '    <td class="tableHeading">' . TABLE_HEADING_PRODUCTS . '</td>' . "\n";
if (!strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
    $colspan++;
    echo '    <td align="center" class="tableHeading">' . TABLE_HEADING_TAX . '</td>' . "\n";
}
echo '    <td align="right" class="tableHeading">' . TABLE_HEADING_TOTAL . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td colspan="' . $colspan . '">' . smn_draw_separator() . '</td>' . "\n" . '  </tr>' . "\n";
for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
    echo '  <tr>' . "\n";
    // Delete box only for shopping cart
    if (strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
        echo '    <td align="center" valign="top">' . smn_draw_checkbox_field('cart_delete[]', $products[$i]['id']) . '</td>' . "\n";
    }
    // Quantity box or information as an input box or text
    if (strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
        echo '    <td align="center" valign="top">' . smn_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . smn_draw_hidden_field('products_id[]', $products[$i]['id']) . '</td>' . "\n";
    } else {
        echo '    <td align="center" valign="top" class ="main">' . $products[$i]['quantity'] . '</td>' . "\n";
    }
    // Model
    if (PRODUCT_LIST_MODEL > 0 && strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
        echo '    <td valign="top" class="main"><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . $products[$i]['model'] . '</a></td>' . "\n";
Пример #16
0
 function infoBoxFooter($contents, $left_corner = true, $right_corner = true, $right_arrow = false)
 {
     $this->table_cellpadding = '0';
     if ($left_corner) {
         $left_corner = smn_image(DIR_WS_INFOBOX . 'corner_left.gif');
     } else {
         $left_corner = smn_image(DIR_WS_INFOBOX . 'corner_right_left.gif');
     }
     if ($right_arrow) {
         $right_arrow = '<a href="' . $right_arrow . '">' . smn_image(DIR_WS_INFOBOX . 'arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
     } else {
         $right_arrow = '';
     }
     if ($right_corner) {
         $right_corner = $right_arrow . smn_image(DIR_WS_INFOBOX . 'corner_right.gif');
     } else {
         $right_corner = $right_arrow . smn_draw_separator('pixel_trans.gif', '12', '13');
     }
     $info_box_contents = array();
     $info_box_contents[] = array(array('params' => 'height="5" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'class="infoBoxHeading" background="' . DIR_WS_INFOBOX . 'backgroundfb.gif" width="100%" height="5"', 'text' => $contents[0]['text']), array('params' => 'height="5" class="infoBoxHeading" nowrap', 'text' => $right_corner));
     $this->tableBox($info_box_contents, true);
 }
Пример #17
0
        <td class="main"><table border="0" width="40%" cellspacing="0" cellpadding="0" align="right">
          <tr>
            <td><?php 
new InfoBoxHeading(array(array('text' => BOX_INFORMATION_HEADING)));
?>
</td>
          </tr>
          <tr>
            <td><?php 
new infoBox(array(array('text' => BOX_INFORMATION)));
?>
</td>
          </tr>
        </table><?php 
echo TEXT_INFORMATION;
?>
</td>
      </tr>
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
      <tr>
        <td align="right" class="main"><?php 
echo '<a href="' . smn_href_link(FILENAME_LOGIN) . '">' . smn_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>';
?>
</td>
      </tr>
    </table>
 function confirm()
 {
     global $_GET, $_POST;
     $audience = array();
     if (isset($_GET['global']) && $_GET['global'] == 'true') {
         $products_query = smn_db_query("select distinct customers_id from " . TABLE_PRODUCTS_NOTIFICATIONS);
         while ($products = smn_db_fetch_array($products_query)) {
             $audience[$products['customers_id']] = '1';
         }
         $customers_query = smn_db_query("select customers_info_id from " . TABLE_CUSTOMERS_INFO . " where global_product_notifications = '1'");
         while ($customers = smn_db_fetch_array($customers_query)) {
             $audience[$customers['customers_info_id']] = '1';
         }
     } else {
         $chosen = $_POST['chosen'];
         $ids = implode(',', $chosen);
         $products_query = smn_db_query("select distinct customers_id from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id in (" . $ids . ")");
         while ($products = smn_db_fetch_array($products_query)) {
             $audience[$products['customers_id']] = '1';
         }
         $customers_query = smn_db_query("select customers_info_id from " . TABLE_CUSTOMERS_INFO . " where global_product_notifications = '1'");
         while ($customers = smn_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"><b>' . sprintf(TEXT_COUNT_CUSTOMERS, sizeof($audience)) . '</b></font></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td>' . smn_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>' . smn_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>' . smn_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . smn_draw_form('confirm', FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . "\n" . '    <td align="right">';
     if (sizeof($audience) > 0) {
         if (isset($_GET['global']) && $_GET['global'] == 'true') {
             $confirm_string .= smn_draw_hidden_field('global', 'true');
         } else {
             for ($i = 0, $n = sizeof($chosen); $i < $n; $i++) {
                 $confirm_string .= smn_draw_hidden_field('chosen[]', $chosen[$i]);
             }
         }
         $confirm_string .= smn_image_submit('button_send.gif', IMAGE_SEND) . ' ';
     }
     $confirm_string .= '<a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=send') . '">' . smn_image_button('button_back.gif', IMAGE_BACK) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . "\n" . '  </tr>' . "\n" . '</table>';
     return $confirm_string;
 }
Пример #19
0
            <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>     
          <tr>    
            </td> <td align="left" class="main">
            <?php 
    echo smn_image_submit('button_save.gif', IMAGE_SAVE) . '&nbsp;&nbsp;';
    echo '<a href="' . smn_href_link(FILENAME_TEXT_EDITOR) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>&nbsp;&nbsp;';
    ?>
</td>
          </tr>  
          <tr>
        <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '20');
    ?>
</td>
      </tr>         
      <tr>
        <td align="center" class="main"><a href="http://www.systemsmanager.net"><b>Copyright &copy; 2005 SystemsManager Technologies</b></a>
      </tr>
    </table></td>
  </form></tr>
</table></td>
<?php 
}
?>
          </tr>
        </table></td>
      </tr>
Пример #20
0
  
  This source file is subject to version 2.0 of the GPL license,   
  that is bundled with this package in the file LICENSE. If you
  did not receive a copy of the oscMall System license and are unable 
  to obtain it through the world-wide-web, please send a note to    
  license@systemsmanager.net so we can mail you a copy immediately.
*/
global $page_name;
if ($store_id != 1) {
    $store_id = 1;
    //$cart->reset(TRUE);
    smn_redirect(smn_href_link(FILENAME_CREATE_STORE, '', 'NONSSL'));
}
$store_selection_out_string .= '<td class="smallText">' . BASIC_STORE_PACKAGE_TEXT . '<br><br>';
$store_selection_out_string .= smn_draw_separator('pixel_trans.gif', '10', '10');
$db_groups_query = smn_db_query("select ag.admin_groups_id, ag.admin_groups_name, ag.admin_groups_max_products, ag.admin_groups_store_type, p.products_price from " . TABLE_ADMIN_GROUPS . " ag,  " . TABLE_PRODUCTS . " p where ag.admin_groups_products_id = p.products_id order by ag.admin_groups_id");
while ($groups = smn_db_fetch_array($db_groups_query)) {
    if ((int) $groups['admin_groups_max_products'] == 0) {
        $groups['admin_groups_max_products'] = 'unlimited';
    }
    if ((int) $sInfo->admin_groups_id == (int) $groups['admin_groups_id']) {
        $store_selection_out_string .= smn_draw_radio_field('store_type', $groups['admin_groups_id'], true) . '&nbsp;' . '<span class="inputRequirement"><b>' . $groups['admin_groups_name'] . '</b> ' . REGULAR_STORE_MAX_PRODUCTS . ' ' . $groups['admin_groups_max_products'] . ' ' . REGULAR_STORE_COST . ': <b>$' . round($groups['products_price'], 2) . '</b></span><br>';
        $store_selection_out_string .= smn_draw_separator('pixel_trans.gif', '10', '5');
    } elseif ($groups['admin_groups_id'] != '1') {
        $store_selection_out_string .= smn_draw_radio_field('store_type', $groups['admin_groups_id'], false) . '&nbsp;' . '<span class="inputRequirement"><b>' . $groups['admin_groups_name'] . '</b> ' . REGULAR_STORE_MAX_PRODUCTS . ' ' . $groups['admin_groups_max_products'] . ' ' . REGULAR_STORE_COST . ': <b>$' . round($groups['products_price'], 2) . '</b></span><br>';
        $store_selection_out_string .= smn_draw_separator('pixel_trans.gif', '10', '5');
    }
}
$store_selection_out_string .= smn_draw_separator('pixel_trans.gif', '10', '10');
$store_selection_out_string .= '</td>';
$breadcrumb->add(NAVBAR_TITLE, smn_href_link(FILENAME_CREATE_STORE, '', 'NONSSL'));