if ($addresses['address_book_id'] == $sendto) { echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } ?> <td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td class="main" colspan="2"><b><?php echo smn_output_string_protected($addresses['firstname'] . ' ' . $addresses['lastname']); ?> </b></td> <td class="main" align="right"><?php echo smn_draw_radio_field('address', $addresses['address_book_id'], $addresses['address_book_id'] == $sendto); ?> </td> <td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> </tr> <tr> <td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td colspan="3"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php
</table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" cellspacing="2" cellpadding="2"> <?php if (ACCOUNT_GENDER == 'true') { ?> <tr> <td class="main"><?php echo ENTRY_GENDER; ?> </td> <td class="main"><?php echo smn_draw_radio_field('gender', 'm') . ' ' . MALE . ' ' . smn_draw_radio_field('gender', 'f') . ' ' . FEMALE . ' ' . (smn_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>' : ''); ?> </td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_FIRST_NAME; ?> </td> <td class="main"><?php echo smn_draw_input_field('firstname') . ' ' . (smn_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>' : ''); ?> </td>
<tr> <td><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><b><?php echo ENTRY_RATING; ?> </b> <?php echo TEXT_BAD; ?> <?php for ($i = 1; $i <= 5; $i++) { echo smn_draw_radio_field('reviews_rating', $i, '', $rInfo->reviews_rating) . ' '; } echo TEXT_GOOD; ?> </td> </tr> <tr> <td><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td align="right" class="main"><?php echo smn_draw_hidden_field('reviews_id', $rInfo->reviews_id) . smn_draw_hidden_field('products_id', $rInfo->products_id) . smn_draw_hidden_field('customers_name', $rInfo->customers_name) . smn_draw_hidden_field('products_name', $rInfo->products_name) . smn_draw_hidden_field('products_image', $rInfo->products_image) . smn_draw_hidden_field('date_added', $rInfo->date_added) . smn_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $_GET['rID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?>
?> </td> </tr> <tr> <td colspan="2"><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_STATUS; ?> </td> <td class="main"><?php echo smn_draw_separator('pixel_trans.gif', '24', '15') . '' . smn_draw_radio_field('products_status', '1', $in_status) . '' . TEXT_PRODUCT_AVAILABLE . '<br>' . smn_draw_separator('pixel_trans.gif', '24', '15') . smn_draw_radio_field('products_status', '0', $out_status) . '' . TEXT_PRODUCT_NOT_AVAILABLE; ?> </td> </tr> <tr> <td colspan="2"><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_DATE_AVAILABLE; ?> <br><small>(YYYY-MM-DD)</small></td> <td><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td class="main" width="75%"><?php echo $quotes[$i]['methods'][$j]['title']; ?> </td> <?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'); ?>
</table></td> </tr> <tr> <td> <?php echo smn_draw_form('coupon', 'coupon_admin.php', 'action=update&oldaction=' . ($_GET['oldaction'] == 'voucheredit' ? $_GET['oldaction'] : $_GET['action']) . '&cid=' . $_GET['cid']); ?> <table border="0" width="100%" cellspacing="0" cellpadding="6"> <tr> <td align="left" class="main"><?php echo COUPON_STATUS; ?> </td> <td align="left"><?php echo smn_draw_radio_field('coupon_status', 'Y', $in_status) . ' ' . IMAGE_ICON_STATUS_GREEN . ' ' . smn_draw_radio_field('coupon_status', 'N', $out_status) . ' ' . IMAGE_ICON_STATUS_RED; ?> </td> <td align="left" class="main"><?php echo COUPON_STATUS_HELP; ?> </td> </tr> <?php $languages = smn_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $language_id = $languages[$i]['id']; ?> <tr> <td align="left" class="main"><?php
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'] . '_'; } $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));
} else { echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } ?> <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
switch ($action) { case 'backup': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_BACKUP . '</b>'); $contents = array('form' => smn_draw_form('backup', FILENAME_BACKUP, 'action=backupnow')); $contents[] = array('text' => TEXT_INFO_NEW_BACKUP); $contents[] = array('text' => '<br>' . smn_draw_radio_field('compress', 'no', true) . ' ' . TEXT_INFO_USE_NO_COMPRESSION); if (file_exists(LOCAL_EXE_GZIP)) { $contents[] = array('text' => '<br>' . smn_draw_radio_field('compress', 'gzip') . ' ' . TEXT_INFO_USE_GZIP); } if (file_exists(LOCAL_EXE_ZIP)) { $contents[] = array('text' => smn_draw_radio_field('compress', 'zip') . ' ' . TEXT_INFO_USE_ZIP); } if ($dir_ok == true) { $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('download', 'yes') . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS); } else { $contents[] = array('text' => '<br>' . smn_draw_radio_field('download', 'yes', true) . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS); } $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_backup.gif', IMAGE_BACKUP) . ' <a href="' . smn_href_link(FILENAME_BACKUP) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'restore': $heading[] = array('text' => '<b>' . $buInfo->date . '</b>'); $contents[] = array('text' => smn_break_string(sprintf(TEXT_INFO_RESTORE, DIR_FS_BACKUP . ($buInfo->compression != TEXT_NO_EXTENSION ? substr($buInfo->file, 0, strrpos($buInfo->file, '.')) : $buInfo->file), $buInfo->compression != TEXT_NO_EXTENSION ? TEXT_INFO_UNPACK : ''), 35, ' ')); $contents[] = array('align' => 'center', 'text' => '<br><a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restorenow') . '">' . smn_image_button('button_restore.gif', IMAGE_RESTORE) . '</a> <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) . ' <a href="' . smn_href_link(FILENAME_BACKUP) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
</td> <td class="main"><?php echo $tmp_html; ?> </td> </tr> <?php break; case PRODUCTS_OPTIONS_TYPE_RADIO: //CLR 030714 Add logic for radio buttons $tmp_html = '<table>'; $products_options_query = smn_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int) $_GET['products_id'] . "' and pa.options_id = '" . $products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "'"); $checked = true; while ($products_options_array = smn_db_fetch_array($products_options_query)) { $tmp_html .= '<tr><td class="main">'; $tmp_html .= smn_draw_radio_field('id[' . $products_options_name['products_options_id'] . ']', $products_options_array['products_options_values_id'], $checked); $checked = false; $tmp_html .= $products_options_array['products_options_values_name']; $tmp_html .= $products_options_name['products_options_comment']; if ($products_options_array['options_values_price'] != '0') { $tmp_html .= '(' . $products_options_array['price_prefix'] . $currencies->display_price($products_options_array['options_values_price'], $product_info_values['products_tax_class_id']) . ') '; } $tmp_html .= '</tr></td>'; } $tmp_html .= '</table>'; ?> <tr> <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?> </td>
<td><table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td><?php echo smn_draw_textarea_field('review', 'soft', 50, 15, smn_sanitize_string($_POST['review']), '', false); ?> </td> </tr> <tr> <td class="smallText" align="right"><?php echo TEXT_NO_HTML; ?> </td> </tr> <tr> <td class="main"><?php echo '<b>' . SUB_TITLE_RATING . '</b> ' . TEXT_BAD . ' ' . smn_draw_radio_field('rating', '1') . ' ' . smn_draw_radio_field('rating', '2') . ' ' . smn_draw_radio_field('rating', '3') . ' ' . smn_draw_radio_field('rating', '4') . ' ' . smn_draw_radio_field('rating', '5') . ' ' . TEXT_GOOD; ?> </td> </tr> </table></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">
echo ENTRY_GENDER; ?> </td> <td class="main"> <?php if ($is_read_only == true) { echo $account['customers_gender'] == 'm' ? MALE : FEMALE; } elseif ($error == true) { if ($entry_gender_error == true) { echo smn_draw_radio_field('gender', 'm', $male) . ' ' . MALE . ' ' . smn_draw_radio_field('gender', 'f', $female) . ' ' . FEMALE . ' ' . ENTRY_GENDER_ERROR; } else { echo $gender == 'm' ? MALE : FEMALE; echo smn_draw_hidden_field('gender'); } } else { echo smn_draw_radio_field('gender', 'm', $male) . ' ' . MALE . ' ' . smn_draw_radio_field('gender', 'f', $female) . ' ' . FEMALE . ' ' . ENTRY_GENDER_TEXT; } ?> </td> </tr> <?php } ?> <tr> <td class="main"> <?php echo ENTRY_FIRST_NAME; ?> </td> <td class="main"> <?php if ($is_read_only == true) {
?> </td> </tr> <tr> <td class="formArea"><table border="0" cellspacing="2" cellpadding="2"> <?php if (ACCOUNT_GENDER == 'true') { ?> <tr> <td class="main"><?php echo ENTRY_GENDER; ?> </td> <!--Changed the $aInfo->affilaite_gender to $aInfo->customers_gender by Cimi --> <td class="main"><?php echo smn_draw_radio_field('affiliate_gender', 'm', false, $aInfo->customers_gender) . ' ' . MALE . ' ' . smn_draw_radio_field('affiliate_gender', 'f', false, $aInfo->customers_gender) . ' ' . FEMALE; ?> </td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_FIRST_NAME; ?> </td> <!--Changed the $aInfo->affiliate_firstname to $aInfo->customers_firstname by Cimi --> <td class="main"><?php echo smn_draw_input_field('affiliate_firstname', $aInfo->customers_firstname, 'maxlength="32"', true); ?>
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. */ global $page_name; if ($store_id != 1) { $store_id = 1; //$cart->reset(TRUE); smn_redirect(smn_href_link(FILENAME_CREATE_STORE, '', 'NONSSL')); } $store_selection_out_string .= '<td class="smallText">' . BASIC_STORE_PACKAGE_TEXT . '<br><br>'; $store_selection_out_string .= smn_draw_separator('pixel_trans.gif', '10', '10'); $db_groups_query = smn_db_query("select ag.admin_groups_id, ag.admin_groups_name, ag.admin_groups_max_products, ag.admin_groups_store_type, p.products_price from " . TABLE_ADMIN_GROUPS . " ag, " . TABLE_PRODUCTS . " p where ag.admin_groups_products_id = p.products_id order by ag.admin_groups_id"); while ($groups = smn_db_fetch_array($db_groups_query)) { if ((int) $groups['admin_groups_max_products'] == 0) { $groups['admin_groups_max_products'] = 'unlimited'; } if ((int) $sInfo->admin_groups_id == (int) $groups['admin_groups_id']) { $store_selection_out_string .= smn_draw_radio_field('store_type', $groups['admin_groups_id'], true) . ' ' . '<span class="inputRequirement"><b>' . $groups['admin_groups_name'] . '</b> ' . REGULAR_STORE_MAX_PRODUCTS . ' ' . $groups['admin_groups_max_products'] . ' ' . REGULAR_STORE_COST . ': <b>$' . round($groups['products_price'], 2) . '</b></span><br>'; $store_selection_out_string .= smn_draw_separator('pixel_trans.gif', '10', '5'); } elseif ($groups['admin_groups_id'] != '1') { $store_selection_out_string .= smn_draw_radio_field('store_type', $groups['admin_groups_id'], false) . ' ' . '<span class="inputRequirement"><b>' . $groups['admin_groups_name'] . '</b> ' . REGULAR_STORE_MAX_PRODUCTS . ' ' . $groups['admin_groups_max_products'] . ' ' . REGULAR_STORE_COST . ': <b>$' . round($groups['products_price'], 2) . '</b></span><br>'; $store_selection_out_string .= smn_draw_separator('pixel_trans.gif', '10', '5'); } } $store_selection_out_string .= smn_draw_separator('pixel_trans.gif', '10', '10'); $store_selection_out_string .= '</td>'; $breadcrumb->add(NAVBAR_TITLE, smn_href_link(FILENAME_CREATE_STORE, '', 'NONSSL'));