Example #1
0
                <td width="460"><table border="0" width="460" height="390" cellspacing="0" cellpadding="2">
                  <tr>
                    <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                      <tr><?php 
echo smn_draw_form('languages', 'index.php', '', 'get');
?>
                        <td class="heading"><?php 
echo HEADING_TITLE;
?>
</td>
                        <td align="right"><?php 
echo smn_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"');
?>
</td>
                      <?php 
echo smn_hide_session_id();
?>
</form></tr>
                    </table></td>
                  </tr>
<?php 
$col = 2;
$counter = 0;
for ($i = 0, $n = sizeof($cat); $i < $n; $i++) {
    if ($cat[$i]['access'] == true) {
        $counter++;
        if ($counter < $col) {
            echo '                  <tr>' . "\n";
        }
        echo '                    <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" . '                      <tr>' . "\n" . '                        <td><a href="' . $cat[$i]['href'] . '"></a></td>' . "\n" . '                        <td><table border="0" cellspacing="0" cellpadding="1">' . "\n" . '                          <tr>' . "\n" . '                            <td class="main"><a href="' . $cat[$i]['href'] . '" class="main">' . $cat[$i]['title'] . '</a></td>' . "\n" . '                          </tr>' . "\n" . '                          <tr>' . "\n" . '                            <td class="sub_false">';
        $children = '';
Example #2
0
  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.
*/
?>
<!-- articles //-->
<?php 
$boxHeading = BOX_HEADING_ARTICLES;
$box_base_name = 'articles';
$box_id = $box_base_name . 'Box';
$boxContent = '';
$articles_query = smn_db_query("select distinct page_name from " . TABLE_DYNAMIC_PAGE_INDEX . "  where page_type='articles' and store_id='" . $store_id . "' order by page_name");
// Display a drop-down
while ($articles_values = smn_db_fetch_array($articles_query)) {
    $name = str_replace('_', ' ', $articles_values['page_name']);
    $boxContent .= '<a href="' . smn_href_link(FILENAME_ARTICLES, 'ID=1&type=' . $articles_values['page_name']) . '">' . $name . '</a><br>';
}
$boxContent .= smn_hide_session_id();
$boxContent .= '<br><br>';
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 = '';
?>
<!-- articles_eof //-->
Example #3
0
/*
  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.
*/
$boxHeading = "";
$box_base_name = 'search2';
$box_id = $box_base_name . 'Box';
$boxContent = smn_draw_form('quick_find', smn_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'ID=1', 'NONSSL', false), 'post');
$boxContent .= '<table HEIGHT="40" CELLSPACING="0" CELLPADDING="0" align="left"><tr><td HEIGHT="40" class="search_css">' . 'SEARCH: ';
$boxContent .= smn_draw_pull_down_menu('categories_id', smn_get_categories_extended(array(array('id' => '', 'text' => 'All Stores'))), '0', '') . '&nbsp;&nbsp;';
$boxContent .= smn_draw_hidden_field('search_in_description', '1');
$boxContent .= '<br/>FOR: ' . smn_draw_input_field('keywords', '', 'size="20" maxlength="30" ') . '&nbsp;' . smn_hide_session_id() . smn_image_submit('button_quick_find.gif', 'Go Search', 'align="absmiddle"');
$boxContent .= '&nbsp;&nbsp;&nbsp;<a href="' . smn_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>';
$boxContent .= '</td></tr></table></form>';
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 = '';
Example #4
0
/*
  Copyright (c) 2002 - 2005 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. 
*/
echo smn_draw_form('advanced_search', smn_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'post', 'onSubmit="return check_form(this);"') . smn_hide_session_id();
?>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
      <tr>
        <td><?php 
echo HEADING_SEARCH_CRITERIA;
?>
</td>
      </tr>
      <tr>
Example #5
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.
*/
$boxHeading = BOX_HEADING_SEARCH;
$box_base_name = 'search';
$box_id = $box_base_name . 'Box';
$boxContent = smn_draw_form('quick_find', smn_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'ID=1', 'NONSSL', false), 'get');
$boxContent .= smn_draw_hidden_field('search_in_description', '1') . smn_draw_input_field('keywords', '', 'size="10" maxlength="30" ') . '&nbsp;' . smn_hide_session_id() . smn_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . smn_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>';
$boxContent .= '</form>';
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 = '';
<?php 
switch ($type) {
    case 'yearly':
        break;
    case 'monthly':
        echo TITLE_YEAR . ' ' . smn_draw_pull_down_menu('year', $years_array, isset($_GET['year']) ? $_GET['year'] : date('Y'), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
        break;
    default:
    case 'daily':
        echo TITLE_MONTH . ' ' . smn_draw_pull_down_menu('month', $months_array, isset($_GET['month']) ? $_GET['month'] : date('n'), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript><br>' . TITLE_YEAR . ' ' . smn_draw_pull_down_menu('year', $years_array, isset($_GET['year']) ? $_GET['year'] : date('Y'), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
        break;
}
?>
            </td>
          <?php 
echo smn_draw_hidden_field('page', $_GET['page']) . smn_draw_hidden_field('bID', $_GET['bID']) . smn_hide_session_id();
?>
</form></tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
      </tr>
      <tr>
        <td align="center">
<?php 
if (function_exists('imagecreate') && $dir_ok == true && smn_not_null($banner_extension)) {
    $banner_id = (int) $_GET['bID'];
Example #7
0
            <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_CATEGORIES, '', '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_CATEGORIES, '', 'post');
    echo HEADING_TITLE_GOTO . ' ' . smn_draw_pull_down_menu('cPath', smn_get_category_tree(), $current_category_id, 'onChange="this.form.submit();"');
    echo smn_hide_session_id() . '</form>';
    ?>
                </td>
              </tr>
            </table></td>
          </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr class="dataTableHeadingRow">
                <td class="dataTableHeadingContent"><?php 
    echo TABLE_HEADING_CATEGORIES_PRODUCTS;
    ?>
</td>
                <td class="dataTableHeadingContent" align="center"><?php 
Example #8
0
  
  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. 
*/
if (isset($_GET['action'])) {
    switch ($_GET['action']) {
        case 'add_quck_pick_name':
            $quick_pick_box_display = smn_get_quick_pick_list($customer_id);
            $quick_pick_box_display['form'] = smn_draw_form('quick_pick_name', smn_href_link(basename($PHP_SELF), 'action=add_quck_pick', 'NONSSL', false), 'post');
            $quick_pick_box_display['text'] .= '<br><b>Order Name<br></b>';
            $quick_pick_box_display['text'] .= smn_draw_input_field('quick_pick_name', '', 'size="10"') . '&nbsp;&nbsp;' . smn_image_submit('button_submit.gif', BOX_HEADING_TELL_A_FRIEND) . smn_hide_session_id() . '<br>';
            break;
        case 'add_quck_pick':
            $products = $cart->get_products();
            $quick_pick_add = smn_add_quick_pick($products, $_POST['quick_pick_name']);
            if ($quick_pick_add == 'true') {
                $quick_pick_box_display = smn_get_quick_pick_list($customer_id);
                $quick_pick_box_display['form'] = smn_draw_form('quick_pick', smn_href_link(basename($PHP_SELF), 'action=show_saved_order', 'NONSSL', false), 'post');
                $quick_pick_box_display['text'] .= '<b>Success!<br></b>';
            } else {
                $quick_pick_box_display = smn_get_quick_pick_list($customer_id);
                $quick_pick_box_display['form'] = smn_draw_form('quick_pick', smn_href_link(basename($PHP_SELF), 'action=show_saved_order', 'NONSSL', false), 'post');
                $quick_pick_box_display['text'] .= '<b>You Have reached the limit<br> for Quick Picks in your list.<br> Please delete one first<br></b>';
            }
            break;
        case 'delete_quck_pick':
  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.
*/
?>
<!-- tell_a_friend //-->

<?php 
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_TELL_A_FRIEND);
new infoBoxHeading($info_box_contents, false, false, '', $side);
$info_box_contents = array();
$info_box_contents[] = array('form' => smn_draw_form('tell_a_friend', smn_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false), 'get'), 'align' => 'center', 'text' => smn_draw_input_field('to_email_address', '', 'size="10"') . '&nbsp;' . smn_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . smn_draw_hidden_field('products_id', $_GET['products_id']) . smn_hide_session_id() . '<br>' . BOX_TELL_A_FRIEND_TEXT);
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 = '';
?>
<!-- tell_a_friend_eof //-->
    $filterlist_query = smn_db_query($filterlist_sql);
    if (smn_db_num_rows($filterlist_query) > 1) {
        echo '            <td align="center" class="main">' . smn_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . '&nbsp;';
        if (isset($_GET['manufacturers_id'])) {
            echo smn_draw_hidden_field('manufacturers_id', $_GET['manufacturers_id']);
            $options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));
        } else {
            echo smn_draw_hidden_field('cPath', $cPath);
            $options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));
        }
        echo smn_draw_hidden_field('sort', $_GET['sort']);
        while ($filterlist = smn_db_fetch_array($filterlist_query)) {
            $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']);
        }
        echo smn_draw_pull_down_menu('filter_id', $options, isset($_GET['filter_id']) ? $_GET['filter_id'] : '', 'onchange="this.form.submit()"');
        echo smn_hide_session_id() . '</form></td>' . "\n";
    }
}
// Get the right image for the top-right
$image = DIR_WS_IMAGES . 'table_background_list.gif';
if (isset($_GET['manufacturers_id'])) {
    $image = smn_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int) $_GET['manufacturers_id'] . "'");
    $image = smn_db_fetch_array($image);
    $image = $image['manufacturers_image'];
} elseif ($current_category_id) {
    $image = smn_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int) $current_category_id . "'");
    $image = smn_db_fetch_array($image);
    $image = $image['categories_image'];
}
?>
      <tr>
 function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
 {
     global $PHP_SELF;
     if (smn_not_null($parameters) && substr($parameters, -1) != '&') {
         $parameters .= '&';
     }
     // calculate number of pages needing links
     $num_pages = ceil($query_numrows / $max_rows_per_page);
     $pages_array = array();
     for ($i = 1; $i <= $num_pages; $i++) {
         $pages_array[] = array('id' => $i, 'text' => $i);
     }
     if ($num_pages > 1) {
         $display_links = smn_draw_form('pages', basename($PHP_SELF), '', 'get');
         if ($current_page_number > 1) {
             $display_links .= '<a href="' . smn_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a>&nbsp;&nbsp;';
         } else {
             $display_links .= PREVNEXT_BUTTON_PREV . '&nbsp;&nbsp;';
         }
         $display_links .= sprintf(TEXT_RESULT_PAGE, smn_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onChange="this.form.submit();"'), $num_pages);
         if ($current_page_number < $num_pages && $num_pages != 1) {
             $display_links .= '&nbsp;&nbsp;<a href="' . smn_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
         } else {
             $display_links .= '&nbsp;&nbsp;' . PREVNEXT_BUTTON_NEXT;
         }
         if ($parameters != '') {
             if (substr($parameters, -1) == '&') {
                 $parameters = substr($parameters, 0, -1);
             }
             $pairs = explode('&', $parameters);
             while (list(, $pair) = each($pairs)) {
                 list($key, $value) = explode('=', $pair);
                 $display_links .= smn_draw_hidden_field(rawurldecode($key), rawurldecode($value));
             }
         }
         $display_links .= smn_hide_session_id() . '</form>';
     } else {
         $display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
     }
     return $display_links;
 }
Example #12
0
<?php 
} else {
    ?>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php 
    echo HEADING_TITLE;
    ?>
</td>
          </tr>
        </table></td>
      </tr>
      <tr>
       <td class="smalltext" align="right"><?php 
    echo smn_draw_form('search', FILENAME_CUSTOMERS, '', 'get') . HEADING_TITLE_SEARCH . ' ' . smn_draw_input_field('search') . smn_hide_session_id() . '</form>';
    ?>
</td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr class="dataTableHeadingRow">
                <td class="dataTableHeadingContent"><?php 
    echo TABLE_HEADING_LASTNAME;
    ?>
</td>
                <td class="dataTableHeadingContent"><?php 
    echo TABLE_HEADING_FIRSTNAME;
    ?>