示例#1
0
  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.
*/
?>
<!-- loginbox //-->
<?php 
if (!smn_session_is_registered('customer_id')) {
    $boxContent = "\n            <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n              <tr>\n                <td align=\"left\" class=\"main\">\n                <a href=\"" . smn_href_link(FILENAME_LOGIN, 'ID=1&account=new_customer', 'NONSSL') . "\">" . smn_image_button('button_create_account.gif', IMAGE_CREATE_CUSTOMER) . "</a>\n                </td>\n              </tr>\n              <tr>\n                <td align=\"left\" class=\"main\">\n                  <a href=\"" . smn_href_link(FILENAME_LOGIN, 'ID=1&account=new_agent', 'NONSSL') . "\">" . smn_image_button('button_create_agent.gif', IMAGE_CREATE_AGENT) . "</a>\n                </td>\n              </tr>\n              <tr>\n                <td align=\"left\" class=\"main\">\n                  <a href=\"" . smn_href_link(FILENAME_LOGIN, 'ID=1&account=new_store', 'NONSSL') . "\">" . smn_image_button('button_create_store.gif', IMAGE_CREATE_STORE) . "</a>\n                </td>\n              </tr>\n            <form name=\"login\" method=\"post\" action=\"" . smn_href_link(FILENAME_LOGIN, 'action=process', 'NONSSL') . "\">\n              <tr>\n                <td align=\"left\" class=\"main\">\n                  " . BOX_LOGINBOX_EMAIL . "\n                </td>\n              </tr>\n              <tr>\n                <td align=\"left\" class=\"main\">\n                  <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\">\n                </td>\n              </tr>\n              <tr>\n                <td align=\"left\" class=\"main\">\n                  " . BOX_LOGINBOX_PASSWORD . "\n                </td>\n              </tr>\n              <tr>\n                <td align=\"left\" class=\"main\">\n                  <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\">\n                </td>\n              </tr>\n              <tr>\n                <td class=\"main\" align=\"left\"><br>\n                  " . smn_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . "\n                </td>\n              </tr>\n            </form>\n            </table> ";
} elseif (smn_session_is_registered('customer_id')) {
    $check_store_owner_query = smn_db_query("select c.customers_firstname, a.store_id, sd.store_name, a.admin_email_address from " . TABLE_CUSTOMERS . " c, " . TABLE_STORE_DESCRIPTION . " sd, " . TABLE_ADMIN . " a where  c.customers_id = '" . $customer_id . "' and c.customers_email_address = a.admin_email_address and a.store_id = sd.store_id");
    if (smn_db_num_rows($check_store_owner_query)) {
        $check_store_owner = smn_db_fetch_array($check_store_owner_query);
        //$store_site_address = $check_store_owner['store_site_address'];
        $owner_store_id = $check_store_owner['store_id'];
        $display_store_name = $check_store_owner['store_name'];
        $admin = HTTP_SERVER . DIR_WS_ADMIN . FILENAME_DEFAULT;
        $store_site_address = HTTP_SERVER . DIR_WS_HTTP_CATALOG . FILENAME_DEFAULT . '?ID=' . $owner_store_id;
        $boxContent = '<table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left" class="main">Welcome Back ' . $check_store_owner['customers_firstname'] . '<br>' . '<a href=" ' . $admin . ' " target="_blank" class="main"><b>Store Administration</b></a><br>' . '<a href="' . $store_site_address . '" class="main"><b>Go to your store ' . $display_store_name . '</b></a><br><br>' . '<a href="' . smn_href_link(FILENAME_ACCOUNT, 'ID=' . $owner_store_id, 'NONSSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . smn_href_link(FILENAME_ACCOUNT_EDIT, 'ID=' . $owner_store_id, 'NONSSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . smn_href_link(FILENAME_ACCOUNT_HISTORY, 'ID=' . $owner_store_id, 'NONSSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . smn_href_link(FILENAME_ADDRESS_BOOK, 'ID=' . $owner_store_id, 'NONSSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . smn_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, 'ID=' . $owner_store_id, 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . smn_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a><br></td>
              </tr>
            </table>';
    } else {
示例#2
0
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_REVIEW . '</b>');
            $contents = array('form' => smn_draw_form('reviews', FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_REVIEW_INTRO);
            $contents[] = array('text' => '<br><b>' . $rInfo->products_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($rInfo) && is_object($rInfo)) {
                $heading[] = array('text' => '<b>' . $rInfo->products_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . smn_date_short($rInfo->date_added));
                if (smn_not_null($rInfo->last_modified)) {
                    $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . smn_date_short($rInfo->last_modified));
                }
                $contents[] = array('text' => '<br>' . smn_info_image($rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
                $contents[] = array('text' => '<br>' . TEXT_INFO_REVIEW_AUTHOR . ' ' . $rInfo->customers_name);
                $contents[] = array('text' => TEXT_INFO_REVIEW_RATING . ' ' . smn_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . 'stars_' . $rInfo->reviews_rating . '.gif'));
                $contents[] = array('text' => TEXT_INFO_REVIEW_READ . ' ' . $rInfo->reviews_read);
                $contents[] = array('text' => '<br>' . TEXT_INFO_REVIEW_SIZE . ' ' . $rInfo->reviews_text_size . ' bytes');
                $contents[] = array('text' => '<br>' . TEXT_INFO_PRODUCTS_AVERAGE_RATING . ' ' . number_format($rInfo->average_rating, 2) . '%');
      </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>
示例#4
0
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
            $contents = array('form' => smn_draw_form('newsletters', FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br><b>' . $nInfo->title . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (is_object($nInfo)) {
                $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
                if ($nInfo->locked > 0) {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=new') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . smn_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=send') . '">' . smn_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=unlock') . '">' . smn_image_button('button_unlock.gif', IMAGE_UNLOCK) . '</a>');
                } else {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . smn_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=lock') . '">' . smn_image_button('button_lock.gif', IMAGE_LOCK) . '</a>');
                }
                $contents[] = array('text' => '<br>' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . smn_date_short($nInfo->date_added));
                if ($nInfo->status == '1') {
                    $contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . smn_date_short($nInfo->date_sent));
                }
            }
            break;
        <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</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 class="main"><?php 
    echo smn_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART);
    ?>
</td>
<?php 
    $back = sizeof($navigation->path) - 2;
    if (isset($navigation->path[$back])) {
        ?>
                <td class="main"><?php 
        echo '<a href="' . smn_href_link($navigation->path[$back]['page'], smn_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . smn_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>';
        ?>
</td>
<?php 
    }
    ?>
                <td align="right" class="main"><?php 
    echo '<a href="' . smn_href_link(FILENAME_CHECKOUT_SELECT, '', 'NONSSL') . '">' . smn_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>';
示例#6
0
      </tr>
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="smallText"><?php 
echo '<a href="javascript:popupWindow(\'' . smn_href_link(FILENAME_POPUP_SEARCH_HELP) . '\')">' . TEXT_SEARCH_HELP_LINK . '</a>';
?>
</td>
            <td class="smallText" align="right"><?php 
echo smn_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH);
?>
</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr>
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
示例#7
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 = '';
                  </tr>
                  <tr>
                    <td class="main" colspan="2"><?php 
echo '<a href="' . smn_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, '', 'NONSSL') . '">' . TEXT_AFFILIATE_PASSWORD_FORGOTTEN . '</a>';
?>
</td>
                  </tr>
                  <tr>
                    <td colspan="2"><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td width="50%" align="right" valign="top"><?php 
echo '<a href="' . smn_href_link(FILENAME_AFFILIATE_SIGNUP, '', 'NONSSL') . '">' . smn_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>';
?>
</td>
            <td width="50%" align="right" valign="top"><?php 
echo smn_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN);
?>
</td>
          </tr>
        </table></form></td>
      </tr>
    </table>
           '                <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" .
           '              </tr>' . "\n";
    }
?>
            </table></td>
          </tr>
        </table></td>
      </tr>
	<tr class="infoBoxContents"><td><?=ORDER_DELETE_DESCRIPTION?></td></tr> 
	<tr class="infoBoxContents"><?php echo smn_draw_form('order_delete', smn_href_link(FILENAME_STORE_ORDER_EDIT,  smn_get_all_get_params(array('action')) . 'action=deleteconfirm&ID='.$store_id,'NONSSL'),'POST'); ?>
        <td><?php echo smn_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY; ?></td>
      </tr> 
	  
	<tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td><?php echo '<a href="' . smn_href_link(FILENAME_STORE_ORDER_TOOL, 'ID='.$store_id, 'NONSSL') . '">' . smn_image_button('small_back.gif', IMAGE_small_back) . '</a>'; ?></td>
                <td valign="top"><?php echo smn_image_submit('button_delete.gif', IMAGE_DELETE); ?></td>
                <td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
<?
  }
?>
        <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>
        </table></td>
      </tr>
      <tr>
        <td><?php 
示例#11
0
</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>
      </td></table></form>
      </tr>

      </table></td>
        <td><table width="95%" align="center" border="0" cellpadding="4" cellspacing="0"><td>
          <tr class="footer">
            <td class="infoBoxHeading" align="center"><?php 
echo TEXT_AFFILIATE_INDIVIDUAL_BANNER . ' ' . $affiliate_banners['affiliate_banners_title'];
?>
</td>
          </tr>
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
          <tr>
            <td class="smallText" align="center"><?php 
echo TEXT_AFFILIATE_INDIVIDUAL_BANNER_INFO . smn_draw_form('individual_banner', smn_href_link(FILENAME_AFFILIATE_BANNERS_BUILD)) . "\n" . smn_draw_input_field('individual_banner_id', '', 'size="5"') . "&nbsp;&nbsp;" . smn_image_submit('button_affiliate_build_a_link.gif', IMAGE_BUTTON_BUILD_A_LINK);
?>
</form></td>
          </tr>
     <tr>
       <td class="smallText" align="center"><?php 
echo '<a href="javascript:popupWindow(\'' . smn_href_link(FILENAME_AFFILIATE_VALIDPRODUCTS) . '\')"><b>' . TEXT_AFFILIATE_VALIDPRODUCTS . '</b></a>';
?>
&nbsp;&nbsp;<?php 
echo TEXT_AFFILIATE_INDIVIDUAL_BANNER_VIEW;
?>
<br><?php 
echo TEXT_AFFILIATE_INDIVIDUAL_BANNER_HELP;
?>
</td>
     </tr>
示例#13
0
        $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'));
        $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE);
        $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_restore.gif', IMAGE_RESTORE) . '&nbsp;<a href="' . smn_href_link(FILENAME_BACKUP) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
        $contents = array('form' => smn_draw_form('delete', FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br><b>' . $buInfo->file . '</b>');
        $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (isset($buInfo) && is_object($buInfo)) {
            $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restore') . '">' . smn_image_button('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_INFO_DATE . ' ' . $buInfo->date);
            $contents[] = array('text' => TEXT_INFO_SIZE . ' ' . $buInfo->size);
            $contents[] = array('text' => '<br>' . TEXT_INFO_COMPRESSION . ' ' . $buInfo->compression);
        }
        break;
}
if (smn_not_null($heading) && smn_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
            <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>
示例#15
0
     $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[];
     while ($check_email = smn_db_fetch_array($check_email_query)) {
         $stored_email[] = $check_email['admin_email_address'];
示例#16
0
 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'] . '_';
             }
             $category_path_string = substr($category_path_string, 0, -1);
             $heading[] = array('text' => '<b>' . $cInfo->categories_name . '</b>');
             $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&action=edit_category') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&action=delete_category') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&action=move_category') . '">' . smn_image_button('button_move.gif', IMAGE_MOVE) . '</a>');
             $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . smn_date_short($cInfo->date_added));
             if (smn_not_null($cInfo->last_modified)) {
示例#17
0
            $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);
        }
        break;
}
if (smn_not_null($heading) && smn_not_null($contents)) {
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</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 smn_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE, 'onClick="return checksubmit(this)"');
?>
</td>
                <td width="10"><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></form></td>
  </tr>
  </table>
示例#19
0
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        case 'edit_zone':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_ZONE . '</b>');
            $contents = array('form' => smn_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=save_zone'));
            $contents[] = array('text' => TEXT_INFO_EDIT_ZONE_INTRO);
            $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_NAME . '<br>' . smn_draw_input_field('geo_zone_name', $zInfo->geo_zone_name));
            $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_DESCRIPTION . '<br>' . smn_draw_input_field('geo_zone_description', $zInfo->geo_zone_description));
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        case 'delete_zone':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ZONE . '</b>');
            $contents = array('form' => smn_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=deleteconfirm_zone'));
            $contents[] = array('text' => TEXT_INFO_DELETE_ZONE_INTRO);
            $contents[] = array('text' => '<br><b>' . $zInfo->geo_zone_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($zInfo) && is_object($zInfo)) {
                $heading[] = array('text' => '<b>' . $zInfo->geo_zone_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=edit_zone') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=delete_zone') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' . ' <a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=list') . '">' . smn_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_ZONES . ' ' . $zInfo->num_zones);
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . smn_date_short($zInfo->date_added));
                if (smn_not_null($zInfo->last_modified)) {
                    $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . smn_date_short($zInfo->last_modified));
                }
                $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_DESCRIPTION . '<br>' . $zInfo->geo_zone_description);
            }
            break;
    }
}
示例#20
0
              <tr>
                <td valign="top" class="main"><?php 
    echo TEXT_MESSAGE;
    ?>
</td>
                <td><?php 
    echo smn_draw_textarea_field('message', 'soft', '60', '15');
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2" align="right"><?php 
    echo smn_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL);
    ?>
</td>
              </tr>
            </table></td>
          </form></tr>
<?php 
}
?>
<!-- body_text_eof //-->
        </table></td>
      </tr>
    </table>
      </tr>
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</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 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>
    </table></form>
                </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;
    }
    if (smn_not_null($heading) && smn_not_null($contents)) {
              <tr>
                <td class="main"><?php 
        echo smn_draw_textarea_field('file_contents', 'soft', '80', '20', $file_contents, $file_writeable ? '' : 'readonly');
        ?>
</td>
              </tr>
              <tr>
                <td><?php 
        echo smn_draw_separator('pixel_trans.gif', '1', '10');
        ?>
</td>
              </tr>
              <tr>
                <td align="right"><?php 
        if ($file_writeable) {
            echo smn_image_submit('button_save.gif', IMAGE_SAVE) . '&nbsp;<a href="' . smn_href_link(FILENAME_DEFINE_MAINPAGE, 'lngdir=' . $_GET['lngdir']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
        } else {
            echo '<a href="' . smn_href_link(FILENAME_DEFINE_MAINPAGE, 'lngdir=' . $_GET['lngdir']) . '">' . smn_image_button('button_back.gif', IMAGE_BACK) . '</a>';
        }
        ?>
</td>
              </tr>
            </table></td>
          </form></tr>

  <?php 
        if (HTML_AREA_WYSIWYG_DISABLE_DEFINE == 'Disable') {
        } else {
            ?>
      <script language="JavaScript1.2" defer>
          // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.5 Products Description HTML - Body
示例#24
0
    case 'edit':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_COUNTRY . '</b>');
        $contents = array('form' => smn_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=save'));
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_NAME . '<br>' . smn_draw_input_field('countries_name', $cInfo->countries_name));
        $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_2 . '<br>' . smn_draw_input_field('countries_iso_code_2', $cInfo->countries_iso_code_2));
        $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_3 . '<br>' . smn_draw_input_field('countries_iso_code_3', $cInfo->countries_iso_code_3));
        $contents[] = array('text' => '<br>' . TEXT_INFO_ADDRESS_FORMAT . '<br>' . smn_draw_pull_down_menu('address_format_id', smn_get_address_formats(), $cInfo->address_format_id));
        $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . smn_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_COUNTRY . '</b>');
        $contents = array('form' => smn_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br><b>' . $cInfo->countries_name . '</b>');
        $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . smn_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (is_object($cInfo)) {
            $heading[] = array('text' => '<b>' . $cInfo->countries_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_NAME . '<br>' . $cInfo->countries_name);
            $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_2 . ' ' . $cInfo->countries_iso_code_2);
            $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_3 . ' ' . $cInfo->countries_iso_code_3);
            $contents[] = array('text' => '<br>' . TEXT_INFO_ADDRESS_FORMAT . ' ' . $cInfo->address_format_id);
        }
        break;
}
if (smn_not_null($heading) && smn_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
示例#25
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 = '';
    }
    ?>
            </select>&nbsp;</td>
            <td class="smallText">&nbsp;<select name="values_id">
<?php 
    $values = smn_db_query("select * from " . TABLE_PRODUCTS_OPTIONS_VALUES . " where store_id = '" . $store_id . "' and language_id = '" . $languages_id . "' order by products_options_values_name");
    while ($values_values = smn_db_fetch_array($values)) {
        echo '<option name="' . $values_values['products_options_values_name'] . '" value="' . $values_values['products_options_values_id'] . '">' . $values_values['products_options_values_name'] . '</option>';
    }
    ?>
            </select>&nbsp;</td>
            <td align="left" class="smallText">&nbsp;<input type="text" name="sort_order" size="4">&nbsp;</td>
            <td align="right" class="smallText">&nbsp;<input type="text" name="value_price" size="6">&nbsp;</td>
            <td align="right" class="smallText">&nbsp;<input type="text" name="price_prefix" size="2" value="+">&nbsp;</td>
            <td align="center" class="smallText">&nbsp;<?php 
    echo smn_image_submit('button_insert.gif', IMAGE_INSERT);
    ?>
&nbsp;</td>
          </tr>
<?php 
    if (DOWNLOAD_ENABLED == 'true') {
        $products_attributes_maxdays = DOWNLOAD_MAX_DAYS;
        $products_attributes_maxcount = DOWNLOAD_MAX_COUNT;
        ?>
          <tr class="<?php 
        echo !($rows % 2) ? 'attributes-even' : 'attributes-odd';
        ?>
">
            <td>&nbsp;</td>
            <td colspan="5">
              <table>
示例#27
0
        $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT) . '&nbsp;<a href="' . smn_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'edit':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TAX_CLASS . '</b>');
        $contents = array('form' => smn_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=save'));
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_TITLE . '<br>' . smn_draw_input_field('tax_class_title', $tcInfo->tax_class_title));
        $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . smn_draw_input_field('tax_class_description', $tcInfo->tax_class_description));
        $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . smn_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TAX_CLASS . '</b>');
        $contents = array('form' => smn_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br><b>' . $tcInfo->tax_class_title . '</b>');
        $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . smn_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (isset($tcInfo) && is_object($tcInfo)) {
            $heading[] = array('text' => '<b>' . $tcInfo->tax_class_title . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . smn_date_short($tcInfo->date_added));
            $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . smn_date_short($tcInfo->last_modified));
            $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . $tcInfo->tax_class_description);
        }
        break;
}
if (smn_not_null($heading) && smn_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
示例#28
0
     $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);
         $contents[] = array('text' => '<br>' . smn_image(DIR_WS_CATALOG_LANGUAGES . 'images/' . $lInfo->image, $lInfo->name));
         $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_DIRECTORY . '<br>' . DIR_WS_CATALOG_LANGUAGES . '<b>');
<?php 
    echo smn_draw_textarea_field('mainpage', 'text', '80', '20', $store->get_store_description(), '');
    $java_editor = 'mainpage';
    ?>
        </td>     
      </tr>
          <tr>
            <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>     
          <tr>    
            </td> <td align="left" class="main">
            <?php 
    echo smn_image_submit('button_save.gif', IMAGE_SAVE) . '&nbsp;&nbsp;';
    echo '<a href="' . smn_href_link(FILENAME_TEXT_EDITOR) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>&nbsp;&nbsp;';
    ?>
</td>
          </tr>  
          <tr>
        <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '20');
    ?>
</td>
      </tr>         
      <tr>
        <td align="center" class="main"><a href="http://www.systemsmanager.net"><b>Copyright &copy; 2005 SystemsManager Technologies</b></a>
      </tr>
    </table></td>
  </form></tr>
            </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>