Example #1
0
$heading = array();
$contents = array();
switch ($action) {
    case 'backup':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_BACKUP . '</b>');
        $contents = array('form' => smn_draw_form('backup', FILENAME_BACKUP, 'action=backupnow'));
        $contents[] = array('text' => TEXT_INFO_NEW_BACKUP);
        $contents[] = array('text' => '<br>' . smn_draw_radio_field('compress', 'no', true) . ' ' . TEXT_INFO_USE_NO_COMPRESSION);
        if (file_exists(LOCAL_EXE_GZIP)) {
            $contents[] = array('text' => '<br>' . smn_draw_radio_field('compress', 'gzip') . ' ' . TEXT_INFO_USE_GZIP);
        }
        if (file_exists(LOCAL_EXE_ZIP)) {
            $contents[] = array('text' => smn_draw_radio_field('compress', 'zip') . ' ' . TEXT_INFO_USE_ZIP);
        }
        if ($dir_ok == true) {
            $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('download', 'yes') . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS);
        } else {
            $contents[] = array('text' => '<br>' . smn_draw_radio_field('download', 'yes', true) . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS);
        }
        $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_backup.gif', IMAGE_BACKUP) . '&nbsp;<a href="' . smn_href_link(FILENAME_BACKUP) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'restore':
        $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
        $contents[] = array('text' => smn_break_string(sprintf(TEXT_INFO_RESTORE, DIR_FS_BACKUP . ($buInfo->compression != TEXT_NO_EXTENSION ? substr($buInfo->file, 0, strrpos($buInfo->file, '.')) : $buInfo->file), $buInfo->compression != TEXT_NO_EXTENSION ? TEXT_INFO_UNPACK : ''), 35, ' '));
        $contents[] = array('align' => 'center', 'text' => '<br><a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restorenow') . '">' . smn_image_button('button_restore.gif', IMAGE_RESTORE) . '</a>&nbsp;<a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'restorelocal':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_RESTORE_LOCAL . '</b>');
        $contents = array('form' => smn_draw_form('restore', FILENAME_BACKUP, 'action=restorelocalnow', 'post', 'enctype="multipart/form-data"'));
        $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '<br><br>' . TEXT_INFO_BEST_THROUGH_HTTPS);
        $contents[] = array('text' => '<br>' . smn_draw_file_field('sql_file'));
        <td class="main"><b><?php 
echo CATEGORY_OPTIONS;
?>
</b></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td class="main"><?php 
echo ENTRY_NEWSLETTER;
?>
</td>
                <td class="main"><?php 
echo smn_draw_checkbox_field('newsletter', '1') . '&nbsp;' . (smn_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>' : '');
?>
</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
      <tr>
        <td class="main"><b><?php 
            <td><table border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td class="main"><b><?php 
    echo PAYMENT_STATUS;
    ?>
</b> <?php 
    echo smn_draw_pull_down_menu('status', $payments_statuses, $payments['affiliate_payment_status']);
    ?>
</td>
              </tr>
              <tr>
                <td class="main"><b><?php 
    echo PAYMENT_NOTIFY_AFFILIATE;
    ?>
</b><?php 
    echo smn_draw_checkbox_field('notify', '', true);
    ?>
</td>
              </tr>
            </table></td>
            <td valign="top"><?php 
    echo smn_image_submit('button_update.gif', IMAGE_UPDATE);
    ?>
</td>
          </tr>
        </table></td>
      </form></tr>

      <tr>
        <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '10');
                $checkedBox = $selectedGroups;
                $uncheckedBox = implode(",", $result);
                $checked = true;
            } else {
                $add_boxes = array($_GET['gPath']);
                $result = array_merge($add_boxes, $groupsArray);
                sort($result);
                $checkedBox = implode(",", $result);
                $uncheckedBox = $selectedGroups;
                $checked = false;
            }
            ?>
                                       
                    <tr>
                      <td width="20"><?php 
            echo smn_draw_checkbox_field('groups_to_boxes[]', $group_boxes_files['admin_files_id'], $checked, '', 'id="subgroups_' . $group_boxes['admin_boxes_id'] . '" onClick="checkSub(this)"');
            ?>
</td>
                      <td class="dataTableContent"><?php 
            echo $group_boxes_files['admin_files_name'] . ' ' . smn_draw_hidden_field('checked_' . $group_boxes_files['admin_files_id'], $checkedBox) . smn_draw_hidden_field('unchecked_' . $group_boxes_files['admin_files_id'], $uncheckedBox);
            ?>
</td>
                    </tr>
<?php 
        }
        ?>
                  </table>
                </td>
              </tr>              
<?php 
    }
     $manufacturer_inputs_string = '';
     $languages = smn_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br>' . smn_image(DIR_WS_CATALOG_LANGUAGES . 'images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . smn_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', smn_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . smn_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_MANUFACTURER . '</b>');
     $contents = array('form' => smn_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br><b>' . $mInfo->manufacturers_name . '</b>');
     $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
     if ($mInfo->products_count > 0) {
         $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
         $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (isset($mInfo) && is_object($mInfo)) {
         $heading[] = array('text' => '<b>' . $mInfo->manufacturers_name . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
         $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . smn_date_short($mInfo->date_added));
         if (smn_not_null($mInfo->last_modified)) {
             $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . smn_date_short($mInfo->last_modified));
         }
         $contents[] = array('text' => '<br>' . smn_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
         $contents[] = array('text' => '<br>' . TEXT_PRODUCTS . ' ' . $mInfo->products_count);
     }
Example #6
0
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_move.gif', IMAGE_MOVE) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete_product':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_PRODUCT . '</b>');
     $contents = array('form' => smn_draw_form('products', FILENAME_CATEGORIES, 'action=delete_product_confirm&cPath=' . $cPath) . smn_draw_hidden_field('products_id', $pInfo->products_id));
     $contents[] = array('text' => TEXT_DELETE_PRODUCT_INTRO);
     $contents[] = array('text' => '<br><b>' . $pInfo->products_name . '</b>');
     $product_categories_string = '';
     $product_categories = smn_generate_category_path($pInfo->products_id, 'product');
     for ($i = 0, $n = sizeof($product_categories); $i < $n; $i++) {
         $category_path = '';
         for ($j = 0, $k = sizeof($product_categories[$i]); $j < $k; $j++) {
             $category_path .= $product_categories[$i][$j]['text'] . '&nbsp;&gt;&nbsp;';
         }
         $category_path = substr($category_path, 0, -16);
         $product_categories_string .= smn_draw_checkbox_field('product_categories[]', $product_categories[$i][sizeof($product_categories[$i]) - 1]['id'], true) . '&nbsp;' . $category_path . '<br>';
     }
     $product_categories_string = substr($product_categories_string, 0, -4);
     $contents[] = array('text' => '<br>' . $product_categories_string);
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'move_product':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_MOVE_PRODUCT . '</b>');
     $contents = array('form' => smn_draw_form('products', FILENAME_CATEGORIES, 'action=move_product_confirm&cPath=' . $cPath) . smn_draw_hidden_field('products_id', $pInfo->products_id));
     $contents[] = array('text' => sprintf(TEXT_MOVE_PRODUCTS_INTRO, $pInfo->products_name));
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENT_CATEGORIES . '<br><b>' . smn_output_generated_category_path($pInfo->products_id, 'product') . '</b>');
     $contents[] = array('text' => '<br>' . sprintf(TEXT_MOVE, $pInfo->products_name) . '<br>' . smn_draw_pull_down_menu('move_to_category_id', smn_get_category_tree(), $current_category_id));
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_move.gif', IMAGE_MOVE) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'copy_to':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_COPY_TO . '</b>');
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($_GET['action']) {
        case 'delete':
            $heading[] = array('text' => '<b>' . $abInfo->affiliate_banners_title . '</b>');
            $contents = array('form' => smn_draw_form('affiliate_banners', FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br><b>' . $abInfo->affiliate_banners_title . '</b>');
            if ($abInfo->affiliate_banners_image) {
                $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('delete_image', 'on', true) . ' ' . TEXT_INFO_DELETE_IMAGE);
            }
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . smn_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'selected_box=affiliate&page=' . $_GET['page'] . '&abID=' . $_GET['abID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (is_object($abInfo)) {
                $sql = "select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $abInfo->affiliate_products_id . "' and language_id = '" . $languages_id . "'";
                $product_description_query = smn_db_query($sql);
                $product_description = smn_db_fetch_array($product_description_query);
                $heading[] = array('text' => '<b>' . $abInfo->affiliate_banners_title . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'selected_box=affiliate&page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=new') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'selected_box=affiliate&page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => $product_description['products_name']);
                $contents[] = array('text' => '<br>' . TEXT_BANNERS_DATE_ADDED . ' ' . smn_date_short($abInfo->affiliate_date_added));
                $contents[] = array('text' => '' . sprintf(TEXT_BANNERS_STATUS_CHANGE, smn_date_short($abInfo->affiliate_date_status_change)));
            }
            break;
?>
</b></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><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
                <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="checkBox('newsletter_general')">
                    <td class="main"><?php 
echo smn_draw_checkbox_field('newsletter_general', '1', $newsletter['customers_newsletter'] == '1' ? true : false, 'onclick="checkBox(\'newsletter_general\')"');
?>
</td>
                    <td class="main"><b><?php 
echo MY_NEWSLETTERS_GENERAL_NEWSLETTER;
?>
</b></td>
                  </tr>
                  <tr>
                    <td class="main">&nbsp;</td>
                    <td><table border="0" cellspacing="0" cellpadding="2">
                      <tr>
                        <td width="10"><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="formAreaTitle"><br></td>
  </tr>
  <tr>
    <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
      <tr>
        <td class="main"><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main">&nbsp;</td>
            <td class="main">&nbsp;
<?php 
    echo smn_draw_checkbox_field('a_agb', $value = '1', $checked = $affiliate['affiliate_agb']) . ENTRY_AFFILIATE_ACCEPT_AGB . '<b>' . ENTRY_AFFILIATE_ACCEPT_AGB_TEXT . '</b>';
    if ($entry_agb_error == true) {
        echo "<br>" . ENTRY_AFFILIATE_AGB_ERROR;
    }
    ?>
            </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
<?php 
}
?>
</table>
                    <td class="main" colspan="2"><?php 
        echo NOTIFICATIONS_DESCRIPTION;
        ?>
</td>
                  </tr>
<?php 
        $counter = 0;
        $products_query = smn_db_query("select pd.products_id, pd.products_name from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_NOTIFICATIONS . " pn where pn.customers_id = '" . (int) $customer_id . "' and pn.products_id = pd.products_id and pd.language_id = '" . (int) $languages_id . "' order by pd.products_name");
        while ($products = smn_db_fetch_array($products_query)) {
            ?>
                  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="checkBox('products[<?php 
            echo $counter;
            ?>
]')">
                    <td class="main" width="30"><?php 
            echo smn_draw_checkbox_field('products[' . $counter . ']', $products['products_id'], true, 'onclick="checkBox(\'products[' . $counter . ']\')"');
            ?>
</td>
                    <td class="main"><b><?php 
            echo $products['products_name'];
            ?>
</b></td>
                  </tr>
<?php 
            $counter++;
        }
    } else {
        ?>
                  <tr>
                    <td class="main"><?php 
        echo NOTIFICATIONS_NON_EXISTING;
</td>
                <td width="10"><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
              </tr>
              <tr>
                <td width="10"><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '5');
?>
</td>
                <td class="main"><?php 
echo '<a href="' . smn_href_link(FILENAME_CONDITIONS) . '">' . VIEW_CONDITIONS_TEXT . '</a><br>';
?>
                    <?php 
echo smn_draw_checkbox_field('conditions', '1') . '&nbsp;' . '<span class="inputRequirement">' . AGREE_TO_CONDITIONS_CHECK_BOX . '</span>';
?>
</td>
                <td width="10"><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
              </tr>
            </table></td>
          </tr>
        </table></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">
?>
</td>
            <td class="main"><?php 
echo smn_get_country_list('country', $entry['entry_country_id']) . '&nbsp;' . (smn_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>' : '');
?>
</td>
          </tr>
<?php 
if (isset($_GET['edit']) && $customer_default_address_id != $_GET['edit'] || isset($_GET['edit']) == false) {
    ?>
          <tr>
            <td colspan="2"><?php 
    echo smn_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2" class="main"><?php 
    echo smn_draw_checkbox_field('primary', 'on', false, 'id="primary"') . ' ' . SET_AS_PRIMARY;
    ?>
</td>
          </tr>
<?php 
}
?>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
Example #13
0
<?php 
    }
    ?>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'confirm':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CUSTOMER . '</b>');
            $contents = array('form' => smn_draw_form('customers', FILENAME_CUSTOMERS, smn_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_DELETE_INTRO . '<br><br><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
            if (isset($cInfo->number_of_reviews) && $cInfo->number_of_reviews > 0) {
                $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('delete_reviews', 'on', true) . ' ' . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews));
            }
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_CUSTOMERS, smn_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($cInfo) && is_object($cInfo)) {
                $heading[] = array('text' => '<b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_CUSTOMERS, smn_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a><a href="' . smn_href_link(FILENAME_CUSTOMERS, smn_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . smn_href_link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id) . '">' . smn_image_button('button_orders.gif', IMAGE_ORDERS) . '</a> <a href="' . smn_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . smn_image_button('button_email.gif', IMAGE_EMAIL));
                $contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_CREATED . ' ' . smn_date_short($cInfo->date_account_created));
                $contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . smn_date_short($cInfo->date_account_last_modified));
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_LAST_LOGON . ' ' . smn_date_short($cInfo->date_last_logon));
                $contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $cInfo->number_of_logons);
                $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY . ' ' . $cInfo->countries_name);
                $contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_OF_REVIEWS . ' ' . $cInfo->number_of_reviews);
            }
            break;
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";
    }
    // Product name, with or without link
    if (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']) . '"><b>' . $products[$i]['name'] . '</b></a>';
    } else {
        <td align="left"><?php 
        echo smn_draw_input_field('coupon_min_order', $coupon_min_order);
        ?>
</td>
        <td align="left" class="main"><?php 
        echo COUPON_MIN_ORDER_HELP;
        ?>
</td>
      </tr>
      <tr>
        <td align="left" class="main"><?php 
        echo COUPON_FREE_SHIP;
        ?>
</td>
        <td align="left"><?php 
        echo smn_draw_checkbox_field('coupon_free_ship', $coupon_free_ship);
        ?>
</td>
        <td align="left" class="main"><?php 
        echo COUPON_FREE_SHIP_HELP;
        ?>
</td>
      </tr>
      <tr>
        <td align="left" class="main"><?php 
        echo COUPON_CODE;
        ?>
</td>
        <td align="left"><?php 
        echo smn_draw_input_field('coupon_code', $coupon_code);
        ?>
Example #16
0
                        </table>'));
/* Groups Grid Delete Window Setup - END */
/* Groups Grid Permissions Window Setup - BEGIN */
$checkBoxes = '<ul style="margin:0px;padding:0px;font-weight: bold;list-style:none;display:none;">';
$groupID = $_GET['gID'];
$Qboxes = smn_db_query("select admin_files_id as id, admin_files_name as name, admin_groups_id as group_id from " . TABLE_ADMIN_FILES . " where admin_files_is_boxes = '1' and admin_files_is_tab = '0' order by admin_files_name");
while ($boxes = smn_db_fetch_array($Qboxes)) {
    $checkBoxes .= '<li style="padding-bottom:5px;">' . smn_draw_checkbox_field('groups_to_boxes[]', $boxes['id'], false, '', 'id="boxes_' . $boxes['id'] . '"') . ucwords(substr_replace($boxes['name'], '', -4));
    $Qfiles = smn_db_query("select admin_files_id as id, admin_files_name as name, admin_groups_id as group_id from " . TABLE_ADMIN_FILES . " where admin_files_is_boxes = '0' and admin_files_is_tab = '0' and admin_files_to_boxes = '" . $boxes['id'] . "' order by admin_files_name");
    $checkBoxes .= '<ul style="margin:0px;padding:0px;margin-left:18px;list-style:none;">';
    while ($files = smn_db_fetch_array($Qfiles)) {
        $checkBoxes .= '<li>' . smn_draw_checkbox_field('groups_to_boxes[]', $files['id'], false, '', 'id="files_' . $files['id'] . '"') . ucwords(substr_replace($files['name'], '', -4));
        $Qtabs = smn_db_query("select admin_files_id as id, admin_files_name as name, admin_groups_id as group_id from " . TABLE_ADMIN_FILES . " where admin_files_is_boxes = '0' and admin_files_is_tab = '1' and admin_tabs_to_files = '" . $files['id'] . "' order by admin_files_name");
        $checkBoxes .= '<ul style="margin:0px;padding:0px;margin-left:18px;list-style:none;">';
        while ($tabs = smn_db_fetch_array($Qtabs)) {
            $checkBoxes .= '<li>' . smn_draw_checkbox_field('groups_to_boxes[]', $tabs['id'], false, '', 'id="tabs_' . $tabs['id'] . '"') . ucwords(substr_replace($tabs['name'], '', -4)) . '</li>';
        }
        $checkBoxes .= '</ul>';
        $checkBoxes .= '</li>';
    }
    $checkBoxes .= '</ul>';
    $checkBoxes .= '</li>';
}
$checkBoxes .= '</ul>';
$groupsGridPermissionsWindow = $jQuery->getStandAloneClass('box_window', array('id' => 'div_groups_permissions', 'show_header' => true, 'show_footer' => true, 'header_text' => TABLE_HEADING_GROUPS_DEFINE, 'buttons' => array($commonSaveButton, $commonCancelButton), 'content' => '<table cellpadding="3" cellspacing="0" border="0">
                         <tr>
                          <td class="main">Select files below that this group has access to.<br><br></td>
                         </tr>
                         <tr>
                          <td class="main" id="checkBoxes"><div id="loading">Loading Permissions...</div>' . $checkBoxes . '</td>
                         </tr>
            <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
<?php
    for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
      echo '              <tr>' . "\n" .
           '                <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" .
           '                <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>
Example #18
0
    echo $orders_split->display_links($orders_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], smn_get_all_get_params(array('page', 'oID', 'action')));
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDER . '</b>');
            $contents = array('form' => smn_draw_form('orders', FILENAME_ORDERS, smn_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br><br><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
            $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY);
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_ORDERS, smn_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($oInfo) && is_object($oInfo)) {
                $heading[] = array('text' => '<b>[' . $oInfo->orders_id . ']&nbsp;&nbsp;' . smn_datetime_short($oInfo->date_purchased) . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_ORDERS, smn_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_ORDERS, smn_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . smn_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . smn_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . smn_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . smn_date_short($oInfo->date_purchased));
                if (smn_not_null($oInfo->last_modified)) {
                    $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . smn_date_short($oInfo->last_modified));
                }
                $contents[] = array('text' => '<br>' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method);
            }
            break;
    }
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
<div align="center" class="pageHeading"><?php 
echo HEADING_TITLE;
?>
</div><br><?php 
echo TEXT_SUCCESS;
?>
<br><br>
<?php 
if ($global['global_product_notifications'] != '1') {
    echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">';
    $products_displayed = array();
    for ($i = 0, $n = sizeof($products_array); $i < $n; $i++) {
        if (!in_array($products_array[$i]['id'], $products_displayed)) {
            echo smn_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>';
            $products_displayed[] = $products_array[$i]['id'];
        }
    }
    echo '</p>';
} else {
    echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER;
}
?>
            <h3><?php 
echo TEXT_THANKS_FOR_SHOPPING;
?>
</h3></td>
          </tr>
        </table></td>
                      <td width="10"><?php 
?>
</b></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><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
                <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="checkBox('newsletter_affiliate')">
                    <td class="main"><?php 
echo smn_draw_checkbox_field('newsletter_affiliate', '1', $newsletter['affiliate_newsletter'] == '1' ? true : false, 'onclick="checkBox(\'newsletter_affiliate\')"');
?>
</td>
                    <td class="main"><b><?php 
echo MY_NEWSLETTERS_AFFILIATE_NEWSLETTER;
?>
</b></td>
                  </tr>
                  <tr>
                    <td class="main">&nbsp;</td>
                    <td><table border="0" cellspacing="0" cellpadding="2">
                      <tr>
                        <td width="10"><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
Example #21
0
     $contents = array('form' => smn_draw_form('languages', FILENAME_LANGUAGES, 'action=insert'));
     $contents[] = array('text' => smn_draw_pull_down_menu('new_language_id', smn_language_list()));
     $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $_GET['lID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_LANGUAGE . '</b>');
     $contents = array('form' => smn_draw_form('languages', FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=save'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . smn_draw_input_field('name', $lInfo->name));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_CODE . '<br>' . smn_draw_input_field('code', $lInfo->code));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . smn_draw_input_field('image', $lInfo->image));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_DIRECTORY . '<br>' . smn_draw_input_field('directory', $lInfo->directory));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . smn_draw_input_field('sort_order', $lInfo->sort_order));
     if (DEFAULT_LANGUAGE != $lInfo->code) {
         $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_LANGUAGE . '</b>');
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br><b>' . $lInfo->name . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($remove_language ? '<a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=deleteconfirm') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (is_object($lInfo)) {
         $heading[] = array('text' => '<b>' . $lInfo->name . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . smn_href_link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $lInfo->directory) . '">' . smn_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');
         $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . ' ' . $lInfo->name);
         $contents[] = array('text' => TEXT_INFO_LANGUAGE_CODE . ' ' . $lInfo->code);
            </tr>
              <tr>
                <td>
                  <table border="0" width="100%" cellspacing="0" cellpadding="2">                
                  <tr>
                    <td class="main"><b><?php 
echo ENTRY_NOTIFY_CUSTOMER;
?>
</b> <?php 
echo smn_draw_checkbox_field('notify', '', true);
?>
&nbsp;&nbsp;
                    <b><?php 
echo ENTRY_NOTIFY_COMMENTS;
?>
</b> <?php 
echo smn_draw_checkbox_field('notify_comments', '', true);
?>
</td>
                  </tr>
                  <tr>
                  <td valign="top" align="right"><?php 
echo smn_image_submit('button_update.gif', IMAGE_UPDATE);
?>
</td>
                  </tr>
                </table></td>
          </tr>
        </table></td>
      </tr>
    </table>
Example #23
0
    </tr>
    <tr>
     <td class="main"><label for="fax_0"><?php 
echo ENTRY_FAX_NUMBER;
?>
</label></td>
     <td><?php 
echo smn_draw_input_field('fax_0', $fax[0], 'id="fax_0" size="3" maxlength="3"') . '&nbsp;&nbsp;' . smn_draw_input_field('fax_1', $fax[1], 'id="fax_1" size="3" maxlength="3"') . '&nbsp;&nbsp;' . smn_draw_input_field('fax_2', $fax[2], 'id="fax_2" size="4" maxlength="4"');
?>
</td>
    </tr>
   </table>
  </fieldset>
  <fieldset>
   <legend><?php 
echo CATEGORY_OPTIONS;
?>
</legend>
   <table cellpadding="3" cellspacing="0" border="0">
    <tr>
     <td class="main"><label for="newsletter"><?php 
echo ENTRY_NEWSLETTER;
?>
</label></td>
     <td><?php 
echo smn_draw_checkbox_field('newsletter', '1', $customerInfo->customer_data['customers_newsletter'], 'id="newsletter"');
?>
</td>
    </tr>
   </table>
  </fieldset>
                    echo $products_options_name['products_options_name'] . ':';
                    ?>
</td>
              <td class="main"><?php 
                    echo $tmp_html;
                    ?>
</td>
            </tr>
<?php 
                    break;
                case PRODUCTS_OPTIONS_TYPE_CHECKBOX:
                    //CLR 030714 Add logic for checkboxes
                    $products_attribs_query = smn_db_query("select distinct patrib.options_values_id, patrib.options_values_price, patrib.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int) $_GET['products_id'] . "' and patrib.options_id = '" . $products_options_name['products_options_id'] . "'");
                    $products_attribs_array = smn_db_fetch_array($products_attribs_query);
                    echo '<tr><td class="main">' . $products_options_name['products_options_name'] . ': </td><td class="main">';
                    echo smn_draw_checkbox_field('id[' . $products_options_name['products_options_id'] . ']', $products_attribs_array['options_values_id']);
                    echo $products_options_name['products_options_comment'];
                    if ($products_attribs_array['options_values_price'] != '0') {
                        echo '(' . $products_attribs_array['price_prefix'] . $currencies->display_price($products_attribs_array['options_values_price'], $product_info_values['products_tax_class_id']) . ')&nbsp';
                    }
                    echo '</td></tr>';
                    break;
                default:
                    //clr 030714 default is select list
                    //clr 030714 reset selected_attribute variable
                    $selected_attribute = false;
                    $products_options_array = array();
                    $products_options_query = smn_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int) $_GET['products_id'] . "' and pa.options_id = '" . (int) $products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int) $languages_id . "'");
                    while ($products_options = smn_db_fetch_array($products_options_query)) {
                        $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);
                        if ($products_options['options_values_price'] != '0') {
Example #25
0
          <tr>
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td class="fieldKey"><?php 
echo ENTRY_CATEGORIES;
?>
</td>
                <td class="fieldValue"><?php 
echo smn_draw_pull_down_menu('categories_id', smn_get_categories_extended(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES))));
?>
</td>
              </tr>
              <tr>
                <td class="fieldKey">&nbsp;</td>
                <td class="smallText"><?php 
echo smn_draw_checkbox_field('inc_subcat', '1', true) . ' ' . ENTRY_INCLUDE_SUBCATEGORIES;
?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
              </tr>
<!-- systemsmanager begin
              <tr>
                <td class="fieldKey"><?php 
echo ENTRY_MANUFACTURERS;
?>
</td>
        }
      }
    }
    $cart_total = 0;
    for ($i=0, $n=sizeof($products); $i<$n; $i++) {
    $store_images = 'images/'. $products[$i]['store_id'] . '_images/';
      if (($i/2) == floor($i/2)) {
        $info_box_contents[] = array('params' => 'class="productListing-even"');
      } else {
        $info_box_contents[] = array('params' => 'class="productListing-odd"');
      }

      $cur_row = sizeof($info_box_contents) - 1;
      $info_box_contents[$cur_row][] = array('align' => 'center',
                                             'params' => 'class="productListing-data" valign="top"',
                                             'text' => smn_draw_checkbox_field('cart_delete[]', $products[$i]['id']));
      $products_name = '<table border="0" cellspacing="2" cellpadding="2">' .
                       '  <tr>' .
                       '    <td class="productListing-data" align="center"><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'ID=' . $products[$i]['store_id'] . '&products_id=' . $products[$i]['id']) . '">' . smn_image($store_images . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .
                       '    <td class="productListing-data" valign="top"><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'ID=' . $products[$i]['store_id'] . '&products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a>';

      if (STOCK_CHECK == 'true') {
        $stock_check = smn_check_stock($products[$i]['id'], $products[$i]['quantity']);
        if (smn_not_null($stock_check)) {
          $any_out_of_stock = 1;

          $products_name .= $stock_check;
        }
      }

      if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
             $products[$i][$option]['products_options_name'] = $attributes_values['products_options_name'];
             $products[$i][$option]['options_values_id'] = $value;
             $products[$i][$option]['products_options_values_name'] = $attributes_values['products_options_values_name'];
             $products[$i][$option]['options_values_price'] = $attributes_values['options_values_price'];
             $products[$i][$option]['price_prefix'] = $attributes_values['price_prefix'];
         }
     }
 }
 for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
     if ($i / 2 == floor($i / 2)) {
         $info_box_contents[] = array('params' => 'class="productListing-even"');
     } else {
         $info_box_contents[] = array('params' => 'class="productListing-odd"');
     }
     $cur_row = sizeof($info_box_contents) - 1;
     $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => smn_draw_checkbox_field('cart_delete[]', $products[$i]['id']));
     $products_name = '<table border="0" cellspacing="2" cellpadding="2">' . '  <tr>' . '    <td class="productListing-data" align="center"><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . smn_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . '    <td class="productListing-data" valign="top"><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a>';
     if (STOCK_CHECK == 'true') {
         $stock_check = smn_check_stock($products[$i]['id'], $products[$i]['quantity']);
         if (smn_not_null($stock_check)) {
             $any_out_of_stock = 1;
             $products_name .= $stock_check;
         }
     }
     if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
         reset($products[$i]['attributes']);
         while (list($option, $value) = each($products[$i]['attributes'])) {
             $products_name .= '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
         }
     }
     $products_name .= '    </td>' . '  </tr>' . '</table>';
            <td class="main"><?php 
    echo TEXT_PRODUCT_NOTIFICATIONS_LIST;
    ?>
</td>
          </tr>
          <tr>
            <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</td>
          </tr>
          <?php 
    echo smn_draw_form('notifications', smn_href_link(FILENAME_PRODUCT_NOTIFICATIONS, 'action=update_notifications', 'NONSSL'));
    $products_query = smn_db_query("select pd.products_id, pd.products_name from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_NOTIFICATIONS . " pn where pn.customers_id = '" . $customer_id . "' and pn.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' order by pd.products_name");
    while ($products = smn_db_fetch_array($products_query)) {
        echo '          <tr>' . "\n" . '            <td class="main">' . smn_draw_checkbox_field('products[]', $products['products_id']) . '&nbsp;' . $products['products_name'] . '</td>' . "\n" . '          </tr>' . "\n";
    }
    ?>
          <tr>
            <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo smn_image_submit('button_remove_notifications.gif', IMAGE_BUTTON_REMOVE_NOTIFICATIONS);
    ?>
</td>
          </tr>
          </form>