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;
 }
Пример #2
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.
*/
?>
<!-- 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 //-->
Пример #3
0
    echo sprintf(TEXT_OF_5_STARS, $rInfo->reviews_rating);
    ?>
]</small></td>
      </tr>
      <tr>
        <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
      </tr>
<?php 
    if (smn_not_null($_POST)) {
        /* Re-Post all POST'ed variables */
        reset($_POST);
        while (list($key, $value) = each($_POST)) {
            echo smn_draw_hidden_field($key, htmlspecialchars(stripslashes($value)));
        }
        ?>
      <tr>
        <td align="right" class="smallText"><?php 
        echo '<a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . smn_image_button('button_back.gif', IMAGE_BACK) . '</a> ' . smn_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
        ?>
</td>
      </form></tr>
<?php 
    } else {
        if (isset($_GET['origin'])) {
            $back_url = $_GET['origin'];
            $back_url_params = '';
        } else {
            $back_url = FILENAME_REVIEWS;
Пример #4
0
        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>';
        $info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"', 'text' => $products_name);
        $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => smn_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . smn_draw_hidden_field('products_id[]', $products[$i]['id']));
        $info_box_contents[$cur_row][] = array('align' => 'right', 'params' => 'class="productListing-data" valign="top"', 'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], smn_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');
    }
    new productListingBox($info_box_contents);
    ?>
        </td>
      </tr>
      <tr>
        <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</td>
      </tr>
      <tr>
        <td align="right" class="main"><b><?php 
    echo SUB_TITLE_SUB_TOTAL;
Пример #5
0
        $dir->close();
    }
    for ($i = 0, $n = sizeof($directory_array); $i < $n; $i++) {
        $modules_array[] = array('id' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')), 'text' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')));
    }
    ?>
      <tr>
        <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
      </tr>
      <tr><?php 
    echo smn_draw_form('newsletter', FILENAME_NEWSLETTERS, (isset($HTTP_GET_VARS['page']) ? 'page=' . $HTTP_GET_VARS['page'] . '&' : '') . 'action=' . $form_action);
    if ($form_action == 'update') {
        echo smn_draw_hidden_field('newsletter_id', $nID);
    }
    ?>
        <td><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><?php 
    echo TEXT_NEWSLETTER_MODULE;
    ?>
</td>
            <td class="main"><?php 
    echo smn_draw_pull_down_menu('module', $modules_array, $nInfo->module);
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
Пример #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.
*/
$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 
                    if ($n > 1 || $n2 > 1) {
                        ?>
                    <td class="main"><?php 
                        echo $currencies->format(smn_add_tax($quotes[$i]['methods'][$j]['cost'], isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0));
                        ?>
</td>
                    <td class="main" align="right"><?php 
                        echo smn_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked);
                        ?>
</td>
<?php 
                    } else {
                        ?>
                    <td class="main" align="right" colspan="2"><?php 
                        echo $currencies->format(smn_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . smn_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']);
                        ?>
</td>
<?php 
                    }
                    ?>
                    <td width="10"><?php 
                    echo smn_draw_separator('pixel_trans.gif', '10', '1');
                    ?>
</td>
                  </tr>
<?php 
                    $radio_buttons++;
                }
            }
            ?>
Пример #8
0
function smn_hide_session_id()
{
    $string = '';
    if (defined('SID') && smn_not_null(SID)) {
        $string = smn_draw_hidden_field(smn_session_name(), smn_session_id());
    }
    return $string;
}
<?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'];
Пример #10
0
        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>';

      $info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"',
                                             'text' => $products_name);

      $info_box_contents[$cur_row][] = array('align' => 'center',
                                             'params' => 'class="productListing-data" valign="top"',
                                             'text' => smn_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . smn_draw_hidden_field('products_id[]', $products[$i]['id']));

      $info_box_contents[$cur_row][] = array('align' => 'right',
                                             'params' => 'class="productListing-data" valign="top"',
                                             'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], smn_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');
					     
    $cart_total += ($products[$i]['final_price'] * $products[$i]['quantity']) ;
    }
	$tot += $cart_total;
    new productListingBox($info_box_contents);
	?></td></tr></table></td></tr>
<tr>
     <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
Пример #11
0
 function process_button()
 {
     global $_POST, $order;
     $process_button_string = smn_draw_hidden_field('x_login', MODULE_PAYMENT_2CHECKOUT_LOGIN) . smn_draw_hidden_field('x_amount', number_format($order->info['total'], 2)) . smn_draw_hidden_field('x_invoice_num', date('YmdHis')) . smn_draw_hidden_field('x_test_request', MODULE_PAYMENT_2CHECKOUT_TESTMODE == 'Test' ? 'Y' : 'N') . smn_draw_hidden_field('x_card_num', $this->cc_card_number) . smn_draw_hidden_field('cvv', $_POST['pm_2checkout_cc_cvv']) . smn_draw_hidden_field('x_exp_date', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) . smn_draw_hidden_field('x_first_name', $_POST['pm_2checkout_cc_owner_firstname']) . smn_draw_hidden_field('x_last_name', $_POST['pm_2checkout_cc_owner_lastname']) . smn_draw_hidden_field('x_address', $order->customer['street_address']) . smn_draw_hidden_field('x_city', $order->customer['city']) . smn_draw_hidden_field('x_state', $order->customer['state']) . smn_draw_hidden_field('x_zip', $order->customer['postcode']) . smn_draw_hidden_field('x_country', $order->customer['country']['title']) . smn_draw_hidden_field('x_email', $order->customer['email_address']) . smn_draw_hidden_field('x_phone', $order->customer['telephone']) . smn_draw_hidden_field('x_ship_to_first_name', $order->delivery['firstname']) . smn_draw_hidden_field('x_ship_to_last_name', $order->delivery['lastname']) . smn_draw_hidden_field('x_ship_to_address', $order->delivery['street_address']) . smn_draw_hidden_field('x_ship_to_city', $order->delivery['city']) . smn_draw_hidden_field('x_ship_to_state', $order->delivery['state']) . smn_draw_hidden_field('x_ship_to_zip', $order->delivery['postcode']) . smn_draw_hidden_field('x_ship_to_country', $order->delivery['country']['title']) . smn_draw_hidden_field('x_receipt_link_url', smn_href_link(FILENAME_CHECKOUT_PROCESS, '', 'NONSSL')) . smn_draw_hidden_field('x_email_merchant', MODULE_PAYMENT_2CHECKOUT_EMAIL_MERCHANT == 'True' ? 'TRUE' : 'FALSE');
     return $process_button_string;
 }
            <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 class="main"><?php 
    echo '<a href="' . smn_href_link(FILENAME_PRODUCT_REVIEWS, smn_get_all_get_params()) . '">' . smn_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>';
    ?>
</td>
<?php 
    if ($product_master['product_master_status'] != 1) {
        ?>
 
                <td class="main" align="right"><?php 
        echo smn_draw_hidden_field('products_id', $product_info['products_id']) . smn_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);
        ?>
</td></form>
<?php 
    }
    ?>
 
                <td width="10"><?php 
    echo smn_draw_separator('pixel_trans.gif', '10', '1');
    ?>
</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
Пример #13
0
        echo smn_draw_checkbox_field('select_order[' . $row . ']', '', false);
        ?>
&nbsp;</td>
<?php 
    } else {
        ?>
                <td class="dataTableContent" align="right"><?php 
        echo smn_draw_checkbox_field('select_order[' . $row . ']', '', true);
        ?>
&nbsp;</td>
<?php 
    }
    ?>
              </tr>
<?php 
    echo smn_draw_hidden_field('orders_selected[' . $row . ']', $orders['orders_id']);
    $row++;
}
?>
            </table></td>
          </tr>
        </table></td>
      </tr>
               <tr>
                <td><?php 
echo smn_draw_separator('pixel_trans.gif', '1', '5');
?>
</td>
              </tr>             
        <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
Пример #14
0
    echo 'action="' . smn_href_link(FILENAME_SPECIALS, smn_get_all_get_params(array('action', 'info', 'sID')) . 'action=' . $form_action, 'NONSSL') . '"';
    ?>
 method="post"><?php 
    if ($form_action == 'update') {
        echo smn_draw_hidden_field('specials_id', $_GET['sID']);
    }
    ?>
        <td><br><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><?php 
    echo TEXT_SPECIALS_PRODUCT;
    ?>
&nbsp;</td>
            <td class="main"><?php 
    echo isset($sInfo->products_name) ? $sInfo->products_name . ' <small>(' . $currencies->format($sInfo->products_price) . ')</small>' : smn_draw_products_pull_down('products_id', 'style="font-size:10px"', $specials_array);
    echo smn_draw_hidden_field('products_price', isset($sInfo->products_price) ? $sInfo->products_price : '');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_SPECIALS_SPECIAL_PRICE;
    ?>
&nbsp;</td>
            <td class="main"><?php 
    echo smn_draw_input_field('specials_price', isset($sInfo->specials_new_products_price) ? $sInfo->specials_new_products_price : '');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
Пример #15
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>
    $groups_array = array();
    $groups_query = smn_db_query("select distinct affiliate_banners_group from " . TABLE_AFFILIATE_BANNERS . " order by affiliate_banners_group");
    while ($groups = smn_db_fetch_array($groups_query)) {
        $groups_array[] = array('id' => $groups['affiliate_banners_group'], 'text' => $groups['affiliate_banners_group']);
    }
    ?>
      <tr>
        <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
      </tr>
      <tr><?php 
    echo smn_draw_form('new_banner', FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"');
    if ($form_action == 'update') {
        echo smn_draw_hidden_field('affiliate_banners_id', $abID);
    }
    ?>
        <td><table border="0" cellspacing="2" cellpadding="2">
          <tr>
            <td class="main"><?php 
    echo TEXT_BANNERS_TITLE;
    ?>
</td>
            <td class="main"><?php 
    echo smn_draw_input_field('affiliate_banners_title', $abInfo->affiliate_banners_title, '', true);
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
Пример #17
0
         $contents[] = array('text' => TEXT_INFO_GROUPS_NAME_USED . '<br>&nbsp;');
     }
     $contents[] = array('align' => 'left', 'text' => TEXT_INFO_EDIT_GROUP_NAME . '<br>&nbsp;<br>' . smn_draw_input_field('admin_groups_name', $gInfo->admin_groups_name));
     $contents[] = array('align' => 'left', 'text' => TEXT_INFO_EDIT_GROUP_STORE_TYPE . '<br>&nbsp;<br>' . smn_pull_down_store_list($gInfo->admin_groups_store_type));
     $contents[] = array('align' => 'left', 'text' => TEXT_INFO_EDIT_GROUP_MAX_PRODUCTS . '<br>&nbsp;<br>' . smn_draw_input_field('admin_groups_max_products', $gInfo->admin_groups_max_products));
     $contents[] = array('align' => 'left', 'text' => TEXT_INFO_EDIT_SALES_COST . '<br>&nbsp;<br>' . smn_draw_input_field('admin_sales_cost', $gInfo->admin_sales_cost));
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $gInfo->admin_groups_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'del_group':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_GROUPS . '</b>');
     $contents = array('form' => smn_draw_form('delete_group', FILENAME_ADMIN_MEMBERS, 'action=group_delete&gID=' . $gInfo->admin_groups_id, 'post', 'enctype="multipart/form-data"'));
     if ($gInfo->admin_groups_id == 1) {
         $contents[] = array('align' => 'center', 'text' => sprintf(TEXT_INFO_DELETE_GROUPS_INTRO_NOT, $gInfo->admin_groups_name));
         $contents[] = array('align' => 'center', 'text' => '<br><a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $_GET['gID']) . '">' . smn_image_button('button_back.gif', IMAGE_BACK) . '</a><br>&nbsp;');
     } else {
         $contents[] = array('text' => smn_draw_hidden_field('set_groups_id', substr($del_groups_prepare, 4)));
         $contents[] = array('align' => 'center', 'text' => sprintf(TEXT_INFO_DELETE_GROUPS_INTRO, $gInfo->admin_groups_name));
         $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $_GET['gID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a><br>&nbsp;');
     }
     break;
 case 'define_group':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DEFINE . '</b>');
     $contents[] = array('text' => sprintf(TEXT_INFO_DEFINE_INTRO, $group_name['admin_groups_name']));
     if ($_GET['gPath'] == 1) {
         $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $_GET['gPath']) . '">' . smn_image_button('button_back.gif', IMAGE_CANCEL) . '</a><br>');
     }
     break;
 case 'show_group':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_GROUP . '</b>');
     $check_email_query = smn_db_query("select admin_email_address from " . TABLE_ADMIN . "");
     //$stored_email[];
Пример #18
0
    }
    ?>
                    <td width="10"><?php 
    echo smn_draw_separator('pixel_trans.gif', '10', '1');
    ?>
</td>
                    <td class="main" colspan="3"><b><?php 
    echo $selection[$i]['module'];
    ?>
</b></td>
                    <td class="main" align="right">
<?php 
    if (sizeof($selection) > 1) {
        echo smn_draw_radio_field('payment', $selection[$i]['id'], $selection[$i]['id'] == $payment);
    } else {
        echo smn_draw_hidden_field('payment', $selection[$i]['id']);
    }
    ?>
                    </td>
                    <td width="10"><?php 
    echo smn_draw_separator('pixel_trans.gif', '10', '1');
    ?>
</td>
                  </tr>
<?php 
    if (isset($selection[$i]['error'])) {
        ?>
                  <tr>
                    <td width="10"><?php 
        echo smn_draw_separator('pixel_trans.gif', '10', '1');
        ?>
Пример #19
0
        ?>
           <tr>
            <td class="main"><?php 
        echo sprintf(PERSONAL_MESSAGE, $gv_result['customers_firstname']);
        ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
        echo stripslashes($_POST['message']);
        ?>
</td>
          </tr>
<?php 
    }
    echo smn_draw_hidden_field('send_name', $send_name) . smn_draw_hidden_field('to_name', stripslashes($_POST['to_name'])) . smn_draw_hidden_field('email', $_POST['email']) . smn_draw_hidden_field('amount', $gv_amount) . smn_draw_hidden_field('message', stripslashes($_POST['message']));
    ?>
          <tr>
            <td class="main"><?php 
    echo smn_image_submit('button_back.gif', IMAGE_BUTTON_BACK, 'name=back') . '</a>';
    ?>
</td>
            <td align="right"><br><?php 
    echo smn_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE);
    ?>
</td>
          </tr>
        </table></form></td>
      </tr>
<?php 
} elseif ($_GET['action'] == '' || $error) {
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <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 align ="right">
<?php 
/* Added the hidden field for store id by Cimi on June 12,2007*/
echo smn_draw_hidden_field('ID', $_REQUEST['ID']);
if (is_array($payment_modules->modules)) {
    echo $payment_modules->process_button();
}
echo smn_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n";
?>
            </td>
                <td width="10"><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
  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. 
*/
?>
  
    <?php 
echo smn_draw_form('a_password', smn_href_link(FILENAME_AFFILIATE_PASSWORD, '', 'NONSSL'), 'post', 'onSubmit="return check_form(a_password);"') . smn_draw_hidden_field('action', 'process');
?>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <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_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</td>
          </tr>
        </table></td>
Пример #22
0
      <tr>
        <td align="left" class="main"><?php 
        echo COUPON_FINISHDATE;
        ?>
</td>
        <td align="left"><?php 
        echo smn_draw_date_selector('coupon_finishdate', mktime(0, 0, 0, $coupon_finishdate[1], $coupon_finishdate[2], $coupon_finishdate[0], 0));
        ?>
</td>
        <td align="left" class="main"><?php 
        echo COUPON_FINISHDATE_HELP;
        ?>
</td>
      </tr>
<?php 
        echo smn_draw_hidden_field('date_created', $date_created);
        ?>
      <tr>
        <td align="left"><?php 
        echo smn_image_submit('button_preview.gif', IMAGE_PREVIEW);
        ?>
</td>
        <td align="left">&nbsp;&nbsp;<a href="<?php 
        echo smn_href_link('coupon_admin.php', '');
        ?>
"><?php 
        echo smn_image_button('button_cancel.gif', IMAGE_CANCEL);
        ?>
</a>
      </td>
      </tr>
Пример #23
0
    if ($is_read_only) {
        echo smn_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state']);
    } elseif ($error) {
        if ($entry_state_error) {
            if ($entry_state_has_zones) {
                $zones_array = array();
                $zones_query = smn_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . smn_db_input($country) . "' order by zone_name");
                while ($zones_values = smn_db_fetch_array($zones_query)) {
                    $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
                }
                echo smn_draw_pull_down_menu('state', $zones_array) . '&nbsp;' . ENTRY_STATE_ERROR;
            } else {
                echo smn_draw_input_field('state') . '&nbsp;' . ENTRY_STATE_ERROR;
            }
        } else {
            echo $state . smn_draw_hidden_field('zone_id') . smn_draw_hidden_field('state');
        }
    } else {
        echo smn_draw_input_field('state', smn_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state'])) . '&nbsp;' . '<span class="inputRequirement">' . ENTRY_STATE_TEXT . '</span>';
    }
    ?>
                </td>
              </tr>
<?php 
}
?>
              <tr>
                <td class="main"><?php 
echo ENTRY_COUNTRY;
?>
</td>
Пример #24
0
     }
     $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>');
     $contents = array('form' => smn_draw_form('copy_to', FILENAME_CATEGORIES, 'action=copy_to_confirm&cPath=' . $cPath) . smn_draw_hidden_field('products_id', $pInfo->products_id));
     $contents[] = array('text' => TEXT_INFO_COPY_TO_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENT_CATEGORIES . '<br><b>' . smn_output_generated_category_path($pInfo->products_id, 'product') . '</b>');
     $contents[] = array('text' => '<br>' . TEXT_CATEGORIES . '<br>' . smn_draw_pull_down_menu('categories_id', smn_get_category_tree(), $current_category_id));
     $contents[] = array('text' => '<br>' . TEXT_HOW_TO_COPY . '<br>' . smn_draw_radio_field('copy_as', 'link', true) . ' ' . TEXT_COPY_AS_LINK . '<br>' . smn_draw_radio_field('copy_as', 'duplicate') . ' ' . TEXT_COPY_AS_DUPLICATE);
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_copy.gif', IMAGE_COPY) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if ($rows > 0) {
         if (isset($cInfo) && is_object($cInfo)) {
             // category info box contents
             $category_path_string = '';
             $category_path = smn_generate_category_path($cInfo->categories_id);
             for ($i = sizeof($category_path[0]) - 1; $i > 0; $i--) {
                 $category_path_string .= $category_path[0][$i]['id'] . '_';
             }
Пример #25
0
 function process_button()
 {
     global $_POST, $order, $currencies, $currency;
     global $store;
     switch (MODULE_PAYMENT_IPAYMENT_CURRENCY) {
         case 'Always EUR':
             $trx_currency = 'EUR';
             break;
         case 'Always USD':
             $trx_currency = 'USD';
             break;
         case 'Either EUR or USD, else EUR':
             if ($currency == 'EUR' || $currency == 'USD') {
                 $trx_currency = $currency;
             } else {
                 $trx_currency = 'EUR';
             }
             break;
         case 'Either EUR or USD, else USD':
             if ($currency == 'EUR' || $currency == 'USD') {
                 $trx_currency = $currency;
             } else {
                 $trx_currency = 'USD';
             }
             break;
     }
     $process_button_string = smn_draw_hidden_field('silent', '1') . smn_draw_hidden_field('trx_paymenttyp', 'cc') . smn_draw_hidden_field('trxuser_id', MODULE_PAYMENT_IPAYMENT_USER_ID) . smn_draw_hidden_field('trxpassword', MODULE_PAYMENT_IPAYMENT_PASSWORD) . smn_draw_hidden_field('item_name', $store->get_store_name()) . smn_draw_hidden_field('trx_currency', $trx_currency) . smn_draw_hidden_field('trx_amount', number_format($order->info['total'] * 100 * $currencies->get_value($trx_currency), 0, '', '')) . smn_draw_hidden_field('cc_expdate_month', $_POST['ipayment_cc_expires_month']) . smn_draw_hidden_field('cc_expdate_year', $_POST['ipayment_cc_expires_year']) . smn_draw_hidden_field('cc_number', $_POST['ipayment_cc_number']) . smn_draw_hidden_field('cc_checkcode', $_POST['ipayment_cc_checkcode']) . smn_draw_hidden_field('addr_name', $_POST['ipayment_cc_owner']) . smn_draw_hidden_field('addr_email', $order->customer['email_address']) . smn_draw_hidden_field('redirect_url', smn_href_link(FILENAME_CHECKOUT_PROCESS, '', 'NONSSL', true)) . smn_draw_hidden_field('silent_error_url', smn_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code . '&ipayment_cc_owner=' . urlencode($_POST['ipayment_cc_owner']), 'NONSSL', true));
     return $process_button_string;
 }
Пример #26
0
 function process_button()
 {
     global $_POST, $CardName, $CardNumber, $order;
     // TODO: enter real tax rate.
     $process_button_string = smn_draw_hidden_field('surepay_cc_number', $this->cc_number) . smn_draw_hidden_field('surepay_cc_cvv2', $this->cc_cvv2) . smn_draw_hidden_field('surepay_cc_expires_month', $this->cc_expires_month) . smn_draw_hidden_field('surepay_cc_expires_year', $this->cc_expires_year) . smn_draw_hidden_field('surepay_fullname', $order->customer['firstname'] . ' ' . $order->customer['lastname']) . smn_draw_hidden_field('surepay_address', $order->customer['street_address']) . smn_draw_hidden_field('surepay_city', $order->customer['city']) . smn_draw_hidden_field('surepay_state', $order->customer['state']) . smn_draw_hidden_field('surepay_postcode', $order->customer['postcode']) . smn_draw_hidden_field('surepay_country', $order->customer['country']['title']) . smn_draw_hidden_field('surepay_phone', $order->customer['telephone']) . smn_draw_hidden_field('surepay_email', $order->customer['email_address']) . smn_draw_hidden_field('surepay_delivery_fullname', $order->delivery['firstname'] . ' ' . $order->delivery['lastname']) . smn_draw_hidden_field('surepay_delivery_address', $order->delivery['street_address']) . smn_draw_hidden_field('surepay_delivery_city', $order->delivery['city']) . smn_draw_hidden_field('surepay_delivery_state', $order->delivery['state']) . smn_draw_hidden_field('surepay_delivery_postcode', $order->delivery['postcode']) . smn_draw_hidden_field('surepay_delivery_country', $order->delivery['country']['title']) . smn_draw_hidden_field('surepay_tax_rate', '0.00') . smn_draw_hidden_field('surepay_shipping_cost', number_format($order->info['shipping_cost'], 2) . 'USD') . smn_draw_hidden_field('surepay_tax', number_format($order->info['tax'], 2) . 'USD') . smn_draw_hidden_field('surepay_total', number_format($order->info['total'], 2) . 'USD');
     return $process_button_string;
 }
Пример #27
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 = '';
Пример #28
0
function smn_hide_session_id()
{
    global $session_started, $SID;
    if ($session_started == true && smn_not_null($SID)) {
        return smn_draw_hidden_field(smn_session_name(), smn_session_id());
    }
}
      </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 class="main"><?php 
echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE;
?>
</td>
                <td class="main" align="right"><?php 
echo smn_draw_hidden_field('action', 'submit') . smn_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE);
?>
</td>
                <td width="10"><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
<?php 
if ($process == true) {
    ?>
      <tr>
              }
          });
      });
  });
 </script>
 <table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" valign="top"><?php 
echo smn_draw_form('create_store_account', smn_href_link(FILENAME_CREATE_STORE_ACCOUNT, '', 'NONSSL'), 'post', 'enctype="multipart/form-data" onSubmit="return check_form(create_store_account);"') . smn_draw_hidden_field('action', 'process');
?>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <?php 
echo smn_draw_hidden_field('store_type', $_POST['store_type']);
?>
    <?php 
echo smn_draw_hidden_field('conditions', $_POST['conditions']);
?>
      <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_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</td>
          </tr>
        </table></td>
      </tr>