示例#1
0
  license@systemsmanager.net so we can mail you a copy immediately.
*/
?>
<link href="style.css" rel="stylesheet" type="text/css">
<table border="0" width="600" height="100%" cellspacing="0" cellpadding="0" align="center" valign="middle" style="padding-top:40px;">
  <tr>
    <td><table border="0" width="600" height="440" cellspacing="0" cellpadding="1" align="center" valign="middle">
      <tr bgcolor="#000000">
        <td><table border="0" width="600" height="440" cellspacing="0" cellpadding="0">
          <tr bgcolor="#ffffff" height="50">
            <td height="50"><?php 
echo smn_info_image(STORE_LOGO, STORE_NAME, '200', '');
?>
</td>
            <td align="right" class="text" nowrap><?php 
echo '<a class="text" href="' . smn_href_link(FILENAME_DEFAULT) . '">' . HEADER_TITLE_ADMINISTRATION . '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="text" href="' . smn_catalog_href_link() . '">' . HEADER_TITLE_ONLINE_CATALOG . '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="text" href="http://www.systemsmanager.net" target="_blank">' . HEADER_TITLE_SUPPORT_SITE . '</a>';
?>
&nbsp;&nbsp;</td>
          </tr>
    <?php 
if ($super_user == 'true') {
    ?>
   <tr bgcolor="#ffffff" height="50">
   <td class="headerBarContent">&nbsp;Currently Working in Store :<br><b>&nbsp;<?php 
    echo $store->get_store_name();
    ?>
</b></td>

<?php 
    $groups_array = array(array('id' => '0', 'text' => TEXT_NONE));
    $groups_query = smn_db_query("select store_id, store_name from " . TABLE_STORE_DESCRIPTION);
</td>
                      <td class="dataTableContent" align="right"><?php 
        echo $currencies->format($info[0]['shipping']);
        ?>
</td>
                    </tr>
<?php 
    } elseif ($srDetail) {
        for ($i = 0; $i < $last; $i++) {
            if ($srMax == 0 or $i < $srMax) {
                if ($srExp < 2) {
                    ?>
                    <tr class="dataTableRow" onmouseover="this.className='dataTableRowOver';this.style.cursor='hand'" onmouseout="this.className='dataTableRow'">
                    <td class="dataTableContent">&nbsp;</td>
                    <td class="dataTableContent" align="left"><a href="<?php 
                    echo smn_catalog_href_link("product_info.php?products_id=" . $info[$i]['pid']);
                    ?>
" target="_blank"><?php 
                    echo $info[$i]['pname'];
                    ?>
</a></td>
                    <td class="dataTableContent" align="right"><?php 
                    echo $info[$i]['pquant'];
                    ?>
</td>
<?php 
                    if ($srDetail == 2) {
                        ?>
                    <td class="dataTableContent" align="right"><?php 
                        echo $currencies->format($info[$i]['psum']);
                        ?>
     }
     $messageStack->add_session(SUCCESS_BILLING, 'success');
     smn_redirect(smn_href_link(FILENAME_AFFILIATE_PAYMENT, smn_get_all_get_params(array('action')) . 'action=edit'));
     break;
 case 'update_payment':
     $pID = smn_db_prepare_input($_GET['pID']);
     $status = smn_db_prepare_input($_POST['status']);
     $payment_updated = false;
     $check_status_query = smn_db_query("select af.affiliate_email_address, ap.affiliate_lastname, ap.affiliate_firstname, ap.affiliate_payment_status, ap.affiliate_payment_date, ap.affiliate_payment_date from " . TABLE_AFFILIATE_PAYMENT . " ap, " . TABLE_AFFILIATE . " af where affiliate_payment_id = '" . smn_db_input($pID) . "' and af.affiliate_id = ap.affiliate_id ");
     $check_status = smn_db_fetch_array($check_status_query);
     if ($check_status['affiliate_payment_status'] != $status) {
         smn_db_query("update " . TABLE_AFFILIATE_PAYMENT . " set affiliate_payment_status = '" . smn_db_input($status) . "', affiliate_last_modified = now() where affiliate_payment_id = '" . smn_db_input($pID) . "'");
         $affiliate_notified = '0';
         // Notify Affiliate
         if ($_POST['notify'] == 'on') {
             $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_AFFILIATE_PAYMENT_NUMBER . ' ' . $pID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . smn_catalog_href_link(FILENAME_CATALOG_AFFILIATE_PAYMENT_INFO, 'payment_id=' . $pID, 'NONSSL') . "\n" . EMAIL_TEXT_PAYMENT_BILLED . ' ' . smn_date_long($check_status['affiliate_payment_date']) . "\n\n" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $payments_status_array[$status]);
             smn_mail($check_status['affiliate_firstname'] . ' ' . $check_status['affiliate_lastname'], $check_status['affiliate_email_address'], EMAIL_TEXT_SUBJECT, nl2br($email), STORE_OWNER, AFFILIATE_EMAIL_ADDRESS);
             $affiliate_notified = '1';
         }
         smn_db_query("insert into " . TABLE_AFFILIATE_PAYMENT_STATUS_HISTORY . " (affiliate_payment_id, affiliate_new_value, affiliate_old_value, affiliate_date_added, affiliate_notified) values ('" . smn_db_input($pID) . "', '" . smn_db_input($status) . "', '" . $check_status['affiliate_payment_status'] . "', now(), '" . $affiliate_notified . "')");
         $order_updated = true;
     }
     if ($order_updated) {
         $messageStack->add_session(SUCCESS_PAYMENT_UPDATED, 'success');
     }
     smn_redirect(smn_href_link(FILENAME_AFFILIATE_PAYMENT, smn_get_all_get_params(array('action')) . 'action=edit'));
     break;
 case 'deleteconfirm':
     $pID = smn_db_prepare_input($_GET['pID']);
     smn_db_query("delete from " . TABLE_AFFILIATE_PAYMENT . " where affiliate_payment_id = '" . smn_db_input($pID) . "'");
     smn_db_query("delete from " . TABLE_AFFILIATE_PAYMENT_STATUS_HISTORY . " where affiliate_payment_id = '" . smn_db_input($pID) . "'");
            echo '                  <tr class="productListing-even">';
        } else {
            echo '                  <tr class="productListing-odd">';
        }
        ?>
                <td class="dataTableContent"><?php 
        echo $affiliate_clickthroughs['affiliate_firstname'] . " " . $affiliate_clickthroughs['affiliate_lastname'];
        ?>
</td>
                <td class="dataTableContent" align="center"><?php 
        echo smn_date_short($affiliate_clickthroughs['affiliate_clientdate']);
        ?>
</td>
<?php 
        if ($affiliate_clickthroughs['affiliate_products_id'] > 0) {
            $link_to = '<a href="' . smn_catalog_href_link(FILENAME_CATALOG_PRODUCT_INFO, 'products_id=' . $affiliate_clickthroughs['affiliate_products_id']) . '" target="_blank">' . $affiliate_clickthroughs['products_name'] . '</a>';
        } else {
            $link_to = "Startpage";
        }
        ?>
                <td class="dataTableContent"><?php 
        echo $link_to;
        ?>
</td>
                <td class="dataTableContent" align="center"><?php 
        echo $affiliate_clickthroughs['affiliate_clientbrowser'];
        ?>
</td>
              </tr>
              <tr>
                <td class="dataTableContent"><?php 
示例#5
0
     $comments = smn_db_prepare_input($_POST['comments']);
     $order_updated = false;
     $check_status_query = smn_db_query("select * from " . TABLE_ORDERS . " where store_id = '" . $store_id . "' and orders_id = '" . (int) $oID . "'");
     $check_status = smn_db_fetch_array($check_status_query);
     if ($check_status['orders_status'] != $status || smn_not_null($comments) || $status == DOWNLOADS_ORDERS_STATUS_UPDATED_VALUE) {
         smn_db_query("update " . TABLE_ORDERS . " set orders_status = '" . smn_db_input($status) . "', last_modified = now() where orders_id = '" . (int) $oID . "'");
         if ($check_status['orders_status'] == DOWNLOADS_ORDERS_STATUS_UPDATED_VALUE) {
             smn_db_query("update " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " set download_maxdays = '" . smn_get_configuration_key_value('DOWNLOAD_MAX_DAYS') . "', download_count = '" . smn_get_configuration_key_value('DOWNLOAD_MAX_COUNT') . "' where store_id = '" . $store_id . "' and orders_id = '" . (int) $oID . "' ");
         }
         $customer_notified = '0';
         if (isset($_POST['notify']) && $_POST['notify'] == 'on') {
             $notify_comments = '';
             if (isset($_POST['notify_comments']) && $_POST['notify_comments'] == 'on') {
                 $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n\n";
             }
             $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . smn_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'NONSSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . smn_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);
             smn_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
             $customer_notified = '1';
         }
         smn_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int) $oID . "', '" . smn_db_input($status) . "', now(), '" . smn_db_input($customer_notified) . "', '" . smn_db_input($comments) . "')");
         $order_updated = true;
     }
     if ($order_updated == true) {
         $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');
     } else {
         $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning');
     }
     smn_redirect(smn_href_link(FILENAME_ORDERS, smn_get_all_get_params(array('action')) . 'action=edit'));
     break;
 case 'deleteconfirm':
     $oID = smn_db_prepare_input($_GET['oID']);
示例#6
0
.login { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #000000;}
//--></style>
<table border="0" width="600" cellspacing="0" cellpadding="0" align="center" style="margin-top:10%">
  <tr>
    <td><table border="0" width="600" height="440" cellspacing="0" cellpadding="1" align="center" valign="middle">
      <tr bgcolor="#000000">
        <td><table border="0" width="600" height="440" cellspacing="0" cellpadding="0">
          <tr bgcolor="#ffffff">
            <td><?php 
echo smn_image(DIR_WS_IMAGES . 'logo.gif', STORE_NAME, '200', '');
?>
</td>
          </tr>
          <tr align="left" bgcolor="#ffffff">
            <td align="center" class="text" nowrap><?php 
echo '<a href="' . smn_catalog_href_link() . '">' . HEADER_TITLE_ONLINE_CATALOG . '</a>&nbsp;|&nbsp;<a href="http://forum.systemsmanager.net" target="_blank">' . HEADER_TITLE_SUPPORT_SITE . '</a>';
?>
&nbsp;&nbsp;</td>
          </tr>
          <tr bgcolor="#ffffff">
            <td colspan="2" align="center" valign="middle">
                            <table width="280" border="0" cellspacing="0" cellpadding="2">
                              <tr>
                                <td class="login_heading" valign="top"><b><?php 
echo HEADING_TITLE;
?>
</b></td>
                              </tr>
                              <tr>
                                <td class="login_heading"><?php 
echo TEXT_MAIN;
示例#7
0
 <table border="0" width="100%" cellspacing="0" cellpadding="0" id="headerTable">
  <tr bgcolor="#FFFFFF">
   <td><?php 
echo smn_info_image(STORE_LOGO, $store_name, '200', '');
?>
</td>
   <td align="right" bgcolor="#FFFFFF"></td>
  </tr>
  <tr class="headerBar">
   <td class="headerBarContent">&nbsp;&nbsp;<?php 
if (smn_session_is_registered('login_id')) {
    echo '<a href="' . smn_href_link(FILENAME_ADMIN_ACCOUNT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ACCOUNT . '</a>' . ' &nbsp;|&nbsp; <a href="' . smn_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_LOGOFF . '</a>';
} else {
    echo '<a href="' . smn_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_TOP . '</a>';
}
echo ' &nbsp;|&nbsp; <a href="http://www.systemsmanager.net" class="headerLink">' . HEADER_TITLE_SUPPORT_SITE . '</a>' . ' &nbsp;|&nbsp; <a href="' . smn_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a>' . ' &nbsp;|&nbsp; <a href="' . smn_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a>' . ' &nbsp;|&nbsp;<a href="javascript:popupWindow(\'' . 'includes/help/' . FILENAME_POPUP_HELP . '?HelpID=' . str_replace('.php', '', basename($PHP_SELF)) . '\')" class="headerLink">' . HEADER_TITLE_HELP . '</a>';
?>
</td>
   <td class="headerBarContent" align="center"></td>
  </tr>
<?php 
if ($super_user == 'true') {
    $groups_array = array(array('id' => '0', 'text' => TEXT_NONE));
    $groups_query = smn_db_query("select store_id, store_name from " . TABLE_STORE_DESCRIPTION);
    while ($groups = smn_db_fetch_array($groups_query)) {
        $groups_array[] = array('id' => $groups['store_id'], 'text' => $groups['store_name']);
    }
    ?>
  <tr class="headerBar">
   <td class="headerBarContent">&nbsp;&nbsp;You are Signed in Store :&nbsp;&nbsp;<?php 
    echo $store->get_store_name();
示例#8
0
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#7187bb">

<table border="0" width="600" height="100%" cellspacing="0" cellpadding="0" align="center" valign="middle">
  <tr>
    <td><table border="0" width="600" height="440" cellspacing="0" cellpadding="1" align="center" valign="middle">
      <tr bgcolor="#000000">
        <td><table border="0" width="600" height="440" cellspacing="0" cellpadding="0">
          <tr bgcolor="#ffffff" height="50">
          <td align="left" width="100%"><?php 
echo smn_image(DIR_WS_IMAGES . 'logo.gif', STORE_NAME, '200', '');
?>
</td>
          </tr>
          <tr bgcolor="#ffffff">
          <td align="center" width="100%"><?php 
echo 'If not a vendor please use our <a href="' . smn_catalog_href_link() . '">' . HEADER_TITLE_ONLINE_CATALOG . '</a><br/>For technical support please go to our <a href="http://forum.systemsmanager.net" target="_blank">' . HEADER_TITLE_SUPPORT_SITE . '</a>';
?>
</td>
          </tr>
          <tr bgcolor="#ffffff">
            <td colspan="2" align="center" valign="middle">
                          <?php 
echo smn_draw_form('login', FILENAME_LOGIN, 'action=process', 'POST');
?>
                            <table width="280" border="0" cellspacing="0" cellpadding="2">
                              <tr>
                                <td class="login_heading" valign="top">&nbsp;<b><?php 
echo HEADING_RETURNING_ADMIN;
?>
</b></td>
                              </tr>