function selection() { global $order; for ($i = 1; $i < 13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000))); } $today = getdate(); for ($i = $today['year']; $i < $today['year'] + 10; $i++) { $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))); } $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_OWNER, 'field' => smn_draw_input_field('ipayment_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_NUMBER, 'field' => smn_draw_input_field('ipayment_cc_number')), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_EXPIRES, 'field' => smn_draw_pull_down_menu('ipayment_cc_expires_month', $expires_month) . ' ' . smn_draw_pull_down_menu('ipayment_cc_expires_year', $expires_year)), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => smn_draw_input_field('ipayment_cc_checkcode', '', 'size="4" maxlength="3"') . ' <small>' . MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small>'))); return $selection; }
function credit_selection() { global $customer_id, $currencies, $language; $selection_string = ''; $selection_string .= '' . "\n"; $selection_string .= ' </tr><tr><td class="main">' . "\n"; $selection_string .= TEXT_ENTER_GV_CODE . smn_draw_input_field('gv_redeem_code') . ' and click '; $image_submit = '<input type="image" name="submit_redeem" onClick="return check_form(), submitFunction()" ' . smn_image_button('button_redeem.gif', IMAGE_REDEEM_VOUCHER); $selection_string .= ''; $selection_string .= '' . $image_submit . '</td>'; $selection_string .= ''; $selection_string .= '' . "\n"; return $selection_string; }
function selection() { global $order; // -- Generates an array containing the text names of each month of the year. for ($i = 1; $i < 13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000))); } // -- Generates an array containing this year and the next nine years. $today = getdate(); for ($i = $today['year']; $i < $today['year'] + 10; $i++) { $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))); } $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_SUREPAY_TEXT_CREDIT_CARD_NUMBER, 'field' => smn_draw_input_field('surepay_cc_number')), array('title' => MODULE_PAYMENT_SUREPAY_TEXT_CREDIT_CARD_CVV2, 'field' => smn_draw_input_field('surepay_cc_cvv2')), array('title' => MODULE_PAYMENT_SUREPAY_TEXT_CREDIT_CARD_EXPIRES, 'field' => smn_draw_pull_down_menu('surepay_cc_expires_month', $expires_month) . ' ' . smn_draw_pull_down_menu('surepay_cc_expires_year', $expires_year)))); return $selection; }
function selection() { global $order; if (MODULE_PAYMENT_PSIGATE_INPUT_MODE == 'Local') { for ($i = 1; $i < 13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000))); } $today = getdate(); for ($i = $today['year']; $i < $today['year'] + 10; $i++) { $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))); } $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_OWNER, 'field' => $order->billing['firstname'] . ' ' . $order->billing['lastname']), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_NUMBER, 'field' => smn_draw_input_field('psigate_cc_number')), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_EXPIRES, 'field' => smn_draw_pull_down_menu('psigate_cc_expires_month', $expires_month) . ' ' . smn_draw_pull_down_menu('psigate_cc_expires_year', $expires_year)))); } else { $selection = array('id' => $this->code, 'module' => $this->title); } return $selection; }
<?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" ') . ' ' . 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 = '';
echo smn_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_DATE_FROM; ?> </td> <td class="fieldValue"><?php echo smn_draw_input_field('dfrom', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"'); ?> </td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_DATE_TO; ?> </td> <td class="fieldValue"><?php echo smn_draw_input_field('dto', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"'); ?> </td> </tr> </table></td> </tr> </table></td> </tr> </table></form> <!-- search_eof //-->
} else { switch ($action) { case 'new_zone': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_ZONE . '</b>'); $contents = array('form' => smn_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=insert_zone')); $contents[] = array('text' => TEXT_INFO_NEW_ZONE_INTRO); $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_NAME . '<br>' . smn_draw_input_field('geo_zone_name')); $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_DESCRIPTION . '<br>' . smn_draw_input_field('geo_zone_description')); $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));
$category_inputs_string = ''; $category_description_input_string = ''; $languages = smn_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $category_inputs_string .= '<br>' . smn_image(DIR_WS_CATALOG_LANGUAGES . 'images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . smn_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', smn_get_category_name($cInfo->categories_id, $languages[$i]['id'])); //$category_description_input_string .= '<br>' . smn_image(DIR_WS_CATALOG_LANGUAGES . 'images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . smn_draw_input_field('categories_description[' . $languages[$i]['id'] . ']', smn_get_category_description($cInfo->categories_id, $languages[$i]['id'])); $category_description_input_string .= '<br>' . smn_image(DIR_WS_CATALOG_LANGUAGES . 'images/' . $languages[$i]['image'], $languages[$i]['name']) . ' <br><textarea name="categories_description[' . $languages[$i]['id'] . ']" wrap="physical" cols="28" rows="5" onKeyDown="textCounter(this,document.categories.remLen2,125)" onKeyUp="textCounter(this,document.categories.remLen2,125)" value="' . $cInfo->categories_id . '">' . smn_get_category_description($cInfo->categories_id, $languages[$i]['id']) . '</textarea>' . '<br><input readonly type="text" name="remLen2" size="3" maxlength="3" value="125">characters left<br>'; } $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string); $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_DESCRIPTION . $category_description_input_string); $contents[] = array('text' => '<br>' . smn_image(DIR_WS_CATALOG_IMAGES . $cInfo->categories_image, $cInfo->categories_name) . '<br>' . DIR_WS_CATALOG_IMAGES . '<br><b>' . $cInfo->categories_image . '</b>'); $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_IMAGE . '<br>' . smn_draw_file_field('categories_image')); $contents[] = array('text' => '<br>' . TEXT_EDIT_SORT_ORDER . '<br>' . smn_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"')); $contents[] = array('text' => '<br>' . TEXT_CATEGORY_PAGE_TITLE . '<br>' . smn_draw_input_field('htc_title', $cInfo->category_head_title_tag, 'size="30"')); $contents[] = array('text' => '<br>' . TEXT_CATEGORY_HEADER_DESCRIPTION . '<br>' . smn_draw_input_field('htc_desc', $cInfo->category_head_desc_tag, 'size="30"')); $contents[] = array('text' => '<br>' . TEXT_CATEGORY_KEYWORDS . '<br>' . smn_draw_input_field('htc_keywords', $cInfo->category_head_keywords_tag, 'size="30"')); $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete_category': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CATEGORY . '</b>'); $contents = array('form' => smn_draw_form('categories', FILENAME_CATEGORIES, 'action=delete_category_confirm&cPath=' . $cPath) . smn_draw_hidden_field('categories_id', $cInfo->categories_id)); $contents[] = array('text' => TEXT_DELETE_CATEGORY_INTRO); $contents[] = array('text' => '<br><b>' . $cInfo->categories_name . '</b>'); if ($cInfo->childs_count > 0) { $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_CHILDS, $cInfo->childs_count)); } if ($cInfo->products_count > 0) { $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $cInfo->products_count)); } $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break;
echo ENTRY_EMAIL; ?> <br><?php echo smn_draw_input_field('email', $_POST['email']); if ($error) { echo $error_email; } ?> </td> </tr> <tr> <td class="main"><?php echo ENTRY_AMOUNT; ?> <br><?php echo smn_draw_input_field('amount', $_POST['amount'], '', '', false); if ($error) { echo $error_amount; } ?> </td> </tr> <tr> <td class="main"><?php echo ENTRY_MESSAGE; ?> <br><?php echo smn_draw_textarea_field('message', 'soft', 50, 15, stripslashes($_POST['message'])); ?> </td> </tr>
?> </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_NEWSLETTER_TITLE; ?> </td> <td class="main"><?php echo smn_draw_input_field('title', $nInfo->title, '', true); ?> </td> </tr> <tr> <td colspan="2"><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td td colspan="2 class="main" valign="top"><?php echo TEXT_NEWSLETTER_CONTENT; ?> </td> </tr>
?> </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_SUBJECT; ?> </td> <td><?php echo smn_draw_input_field('subject'); ?> </td> </tr> <tr> <td colspan="2"><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td valign="top" class="main"><?php echo TEXT_MESSAGE; ?> </td> <td><?php
} 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']; } if (in_array($_POST['admin_email_address'], $stored_email)) { $checkEmail = "true"; } else { $checkEmail = "false"; } $contents = array('form' => smn_draw_form('show_group', FILENAME_ADMIN_MEMBERS, 'action=show_group&gID=groups', 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => $define_files['admin_files_name'] . smn_draw_input_field('level_edit', $checkEmail)); //$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $gInfo->admin_groups_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($mInfo)) { $heading[] = array('text' => '<b> ' . TEXT_INFO_HEADING_DEFAULT . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->admin_id . '&action=edit_member') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->admin_id . '&action=del_member') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a><br> '); $contents[] = array('text' => ' <b>' . TEXT_INFO_FULLNAME . '</b><br> ' . $mInfo->admin_firstname . ' ' . $mInfo->admin_lastname); $contents[] = array('text' => ' <b>' . TEXT_INFO_EMAIL . '</b><br> ' . $mInfo->admin_email_address); $contents[] = array('text' => ' <b>' . TEXT_INFO_GROUP . '</b>' . $mInfo->admin_groups_name); $contents[] = array('text' => ' <b>' . TEXT_INFO_CREATED . '</b><br> ' . $mInfo->admin_created); $contents[] = array('text' => ' <b>' . TEXT_INFO_MODIFIED . '</b><br> ' . $mInfo->admin_modified); $contents[] = array('text' => ' <b>' . TEXT_INFO_LOGDATE . '</b><br> ' . $mInfo->admin_logdate); $contents[] = array('text' => ' <b>' . TEXT_INFO_LOGNUM . '</b>' . $mInfo->admin_lognum); $contents[] = array('text' => '<br>'); } elseif (is_object($gInfo)) {
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;
echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_MANUFACTURER; ?> </td> <td><?php echo smn_draw_separator('pixel_trans.gif', '24', '15') . ' ' . smn_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?> </td> <td><?php echo smn_draw_separator('pixel_trans.gif', '24', '15') . ' ' . smn_draw_input_field('products_weight', $pInfo->products_weight); ?> </td> </tr> <tr> <td colspan="2"><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> </table>
case 'new': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_LANGUAGE . '</b>'); $contents = array('form' => smn_draw_form('languages', FILENAME_LANGUAGES, 'action=insert')); $contents[] = array('text' => smn_draw_pull_down_menu('new_language_id', smn_language_list())); $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT); $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $_GET['lID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'edit': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_LANGUAGE . '</b>'); $contents = array('form' => smn_draw_form('languages', FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=save')); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . smn_draw_input_field('name', $lInfo->name)); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_CODE . '<br>' . smn_draw_input_field('code', $lInfo->code)); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . smn_draw_input_field('image', $lInfo->image)); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_DIRECTORY . '<br>' . smn_draw_input_field('directory', $lInfo->directory)); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . smn_draw_input_field('sort_order', $lInfo->sort_order)); if (DEFAULT_LANGUAGE != $lInfo->code) { $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT); } $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_LANGUAGE . '</b>'); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br><b>' . $lInfo->name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br>' . ($remove_language ? '<a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=deleteconfirm') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($lInfo)) { $heading[] = array('text' => '<b>' . $lInfo->name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . smn_href_link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $lInfo->directory) . '">' . smn_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');
?> </td> <td class="smallText"><?php echo TABLE_TEXT_MAX_DAYS; ?> </td> <td class="smallText"><?php echo smn_draw_input_field('products_attributes_maxdays', $products_attributes_maxdays, 'size="5"'); ?> </td> <td class="smallText"><?php echo TABLE_TEXT_MAX_COUNT; ?> </td> <td class="smallText"><?php echo smn_draw_input_field('products_attributes_maxcount', $products_attributes_maxcount, 'size="5"'); ?> </td> </tr> </table> </td> <td> </td> </tr> <?php } // end of DOWNLOAD_ENABLED section } ?> <tr> <td colspan="8"><?php echo smn_black_line();
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_COUNTRY . '</b>'); $contents = array('form' => smn_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&action=insert')); $contents[] = array('text' => TEXT_INFO_INSERT_INTRO); $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_NAME . '<br>' . smn_draw_input_field('countries_name')); $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_2 . '<br>' . smn_draw_input_field('countries_iso_code_2')); $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_3 . '<br>' . smn_draw_input_field('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())); $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . smn_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; 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) . ' <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) . ' <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);
?> </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_BANNERS_IMAGE_TARGET; ?> </td> <td class="main"><?php echo DIR_FS_CATALOG_IMAGES . smn_draw_input_field('affiliate_banners_image_target'); ?> </td> </tr> </table></td> </tr> <tr> <td><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" align="right" valign="top" nowrap><?php
</tr> <tr> <td class="main" colspan="2"><?php echo TEXT_MAIN; ?> </td> </tr> <tr> <td><?php echo smn_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo '<b>' . ENTRY_EMAIL_ADDRESS . '</b> ' . smn_draw_input_field('email_address'); ?> </td> </tr> <tr> <td><?php echo smn_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php
$classesGridData[] = array($classes['tax_class_id'], $classes['tax_class_title'], $classes['tax_class_description'], $classes['last_modified'], $classes['date_added']); } $classesGridEditButton = $jQuery->getPluginClass('button', array('id' => 'classesGridEditButton', 'text' => IMAGE_BUTTON_EDIT_SELECTED)); $classesGridDeleteButton = $jQuery->getPluginClass('button', array('id' => 'classesGridDeleteButton', 'text' => IMAGE_BUTTON_DELETE_SELECTED)); $classesGridInsertButton = $jQuery->getPluginClass('button', array('id' => 'classesGridInsertButton', 'text' => IMAGE_BUTTON_INSERT_NEW)); $classesGrid = $jQuery->getPluginClass('basicgrid', array('id' => 'taxClassesGrid', 'columns' => array(array('id' => 'tax_class_id', 'text' => TABLE_HEADING_TAX_CLASS_ID), array('id' => 'tax_class_title', 'text' => TABLE_HEADING_TAX_CLASS_TITLE), array('id' => 'tax_class_description', 'text' => TABLE_HEADING_TAX_CLASS_DESCRIPTION, 'hidden' => true), array('id' => 'last_modified', 'text' => TABLE_HEADING_LAST_MODIFIED, 'hidden' => true), array('id' => 'date_added', 'text' => TABLE_HEADING_DATE_ADDED, 'hidden' => true)), 'data' => $classesGridData, 'buttons' => array($classesGridInsertButton, $classesGridEditButton, $classesGridDeleteButton))); /* Tax Classes Grid Setup - END */ /* Tax Classes Grid Edit Window Setup - BEGIN */ $classesGridEditWindow = $jQuery->getStandAloneClass('box_window', array('id' => 'div_classes_edit', 'show_header' => true, 'show_footer' => true, 'header_text' => WINDOW_HEADING_EDIT_TAX_CLASS, 'buttons' => array($commonSaveButton, $commonCancelButton), 'form' => '<form id="form_classesEdit" action="' . $jQuery->link(basename($_SERVER['PHP_SELF']), 'action=saveClass&ID=' . $store_id) . '" method="POST"><input type="hidden" name="hidden_action" id="hidden_action" value="new"><input type="hidden" name="tax_class_id" id="tax_class_id" value="">', 'content' => '<table cellpadding="3" cellspacing="0" border="0"> <tr> <td class="main">' . TEXT_INFO_CLASS_TITLE . '</td> <td>' . smn_draw_input_field('tax_class_title', '', 'id="tax_class_title"') . '</td> </tr> <tr> <td class="main">' . TEXT_INFO_CLASS_DESCRIPTION . '</td> <td>' . smn_draw_input_field('tax_class_description', '', 'id="tax_class_description"') . '</td> </tr> </table>')); /* Tax Classes Grid Edit Window Setup - END */ /* Tax Classes Grid Delete Window Setup - BEGIN */ $classesGridDeleteWindow = $jQuery->getStandAloneClass('box_window', array('id' => 'div_classes_delete', 'show_header' => true, 'show_footer' => true, 'header_text' => WINDOW_HEADING_DELETE_TAX_CLASS, 'buttons' => array($commonDeleteButton, $commonCancelButton), 'content' => '<table cellpadding="3" cellspacing="0" border="0"> <tr> <td class="main" align="center">' . TEXT_INFO_DELETE_INTRO . '</td> </tr> <tr> <td class="main" align="center"><br><b></b></td> </tr> </table>')); /* Tax Classes Grid Delete Window Setup - END */ ?> <script language="Javascript">
<td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?> </td> <td class="main"><?php echo smn_draw_input_field('telephone') . ' ' . (smn_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>' : ''); ?> </td> </tr> <tr> <td class="main"><?php echo ENTRY_FAX_NUMBER; ?> </td> <td class="main"><?php echo smn_draw_input_field('fax') . ' ' . (smn_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>' : ''); ?> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo smn_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> <tr> <td class="main"><b><?php
$contents = array(); switch ($action) { case 'new': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_TAX_CLASS . '</b>'); $contents = array('form' => smn_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&action=insert')); $contents[] = array('text' => TEXT_INFO_INSERT_INTRO); $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_TITLE . '<br>' . smn_draw_input_field('tax_class_title')); $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . smn_draw_input_field('tax_class_description')); $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT) . ' <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) . ' <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) . ' <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));
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 (isset($_GET['action']) && $_GET['action'] == 'getZones') { $Qzones = smn_db_query('select zone_name from ' . TABLE_ZONES . ' where zone_country_id = "' . smn_db_input($_GET['country_id']) . '"'); if (smn_db_num_rows($Qzones)) { $zones_array = array(); while ($zones = smn_db_fetch_array($Qzones)) { $zones_array[] = array('id' => $zones['zone_name'], 'text' => $zones['zone_name']); } echo smn_draw_pull_down_menu('state', $zones_array); } else { echo smn_draw_input_field('state'); } echo smn_not_null(ENTRY_STATE_TEXT) ? ' <span class="inputRequirement">' . ENTRY_STATE_TEXT . '</span>' : ''; exit; } if ($_POST['conditions'] != 1) { smn_redirect(smn_href_link(FILENAME_CREATE_STORE, '', 'NONSSL')); } if (!isset($_POST['store_type'])) { smn_redirect(smn_href_link(FILENAME_CREATE_STORE, '', 'NONSSL')); } else { $new_store_type = (int) $_POST['store_type']; } if (isset($_POST['action']) && $_POST['action'] == 'process') { $error = false; // include validation functions (right now only email address)
<td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?> </td> <td class="main"><?php echo smn_draw_input_field('telephone_area', '', 'maxlength="3" size="3"') . ' - ' . smn_draw_input_field('telephone_prefix', '', 'maxlength="3" size="3"') . ' - ' . smn_draw_input_field('telephone_post', '', 'maxlength="4" size="4"') . ' ' . (smn_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>' : '') . NOT_REQUIRED_TEXT; ?> </td> </tr> <tr> <td class="main"><?php echo ENTRY_FAX_NUMBER; ?> </td> <td class="main"><?php echo smn_draw_input_field('fax_area', '', 'maxlength="3" size="3"') . ' - ' . smn_draw_input_field('fax_prefix', '', 'maxlength="3" size="3"') . ' - ' . smn_draw_input_field('fax_post', '', 'maxlength="4" size="4"') . ' ' . (smn_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>' : '') . NOT_REQUIRED_TEXT; ?> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo smn_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> <tr> <td class="main"><b><?php
/* 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', '') . ' '; $boxContent .= smn_draw_hidden_field('search_in_description', '1'); $boxContent .= '<br/>FOR: ' . smn_draw_input_field('keywords', '', 'size="20" maxlength="30" ') . ' ' . smn_hide_session_id() . smn_image_submit('button_quick_find.gif', 'Go Search', 'align="absmiddle"'); $boxContent .= ' <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 = '';
function smn_draw_file_field($name, $required = false) { $field = smn_draw_input_field($name, '', '', $required, 'file'); return $field; }
<td class="main"><label for="postcode"><?php echo ENTRY_POST_CODE; ?> </label></td> <td><?php echo smn_draw_input_field('postcode', $customerInfo->address_data['entry_postcode'], 'id="postcode"'); ?> </td> </tr> <tr> <td class="main"><label for="country"><?php echo ENTRY_COUNTRY; ?> </label></td> <td><?php echo smn_get_country_list('country', $customerInfo->address_data['entry_country_id'], 'id="country"'); ?> </td> </tr> <tr> <td class="main"><label for="state"><?php echo ENTRY_STATE; ?> </label></td> <td id="state_col"><?php echo smn_draw_input_field('state', $customerInfo->address_data['entry_state'], 'id="state"'); ?> </td> </tr> </table> </fieldset>
<td class="main"><label for="tollfree_0"><?php echo ENTRY_TOLL_FREE_NUMBER; ?> </label></td> <td><?php echo smn_draw_input_field('tollfree_0', $tollfree[0], 'id="tollfree_0" size="3" maxlength="3"') . ' ' . smn_draw_input_field('tollfree_1', $tollfree[1], 'id="tollfree_1" size="3" maxlength="3"') . ' ' . smn_draw_input_field('tollfree_2', $tollfree[2], 'id="tollfree_2" size="4" maxlength="4"'); ?> </td> </tr> <tr> <td class="main"><label for="fax_0"><?php echo ENTRY_FAX_NUMBER; ?> </label></td> <td><?php echo smn_draw_input_field('fax_0', $fax[0], 'id="fax_0" size="3" maxlength="3"') . ' ' . smn_draw_input_field('fax_1', $fax[1], 'id="fax_1" size="3" maxlength="3"') . ' ' . smn_draw_input_field('fax_2', $fax[2], 'id="fax_2" size="4" maxlength="4"'); ?> </td> </tr> </table> </fieldset> <fieldset> <legend><?php echo CATEGORY_OPTIONS; ?> </legend> <table cellpadding="3" cellspacing="0" border="0"> <tr> <td class="main"><label for="newsletter"><?php echo ENTRY_NEWSLETTER; ?>
<td class="main"><?php echo CURRENT_TEXT_PAGE_NAME; ?> </td> <td class="main"><?php echo smn_draw_separator('pixel_trans.gif', '24', '15') . ' ' . smn_draw_pull_down_menu('use_current_catagory', $new_page_array, $new_page_array[1]); ?> </td> </tr> <tr> <td class="main"><?php echo NEW_TEXT_KEY_TITLE; ?> </td> <td class="main"><?php echo smn_draw_separator('pixel_trans.gif', '24', '15') . ' ' . smn_draw_input_field('text_key', $pInfo->text_key) . ' ' . NEW_TEXT_KEY_REQUIREMENT; ?> </td> </tr> <?php } ?> <table> <tr> <td align="right" class="main"><?php echo smn_image_submit('button_save.gif', IMAGE_SAVE); ?> </td> <td align="right" class="main"><?php echo '<a href="' . smn_href_link(FILENAME_TEXT_EDITOR) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?>
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $manufacturer_inputs_string .= '<br>' . smn_image(DIR_WS_CATALOG_LANGUAGES . 'images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . smn_draw_input_field('manufacturers_url[' . $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=' . $_GET['mID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'edit': $heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_MANUFACTURER . '</b>'); $contents = array('form' => smn_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=save', 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => TEXT_EDIT_INTRO); $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_NAME . '<br>' . smn_draw_input_field('manufacturers_name', $mInfo->manufacturers_name)); $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_IMAGE . '<br>' . smn_draw_file_field('manufacturers_image') . '<br>' . $mInfo->manufacturers_image); $manufacturer_inputs_string = ''; $languages = smn_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $manufacturer_inputs_string .= '<br>' . smn_image(DIR_WS_CATALOG_LANGUAGES . 'images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . 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>');