/** * Draw a pulldown for Option Types * * @param $name * @param $default */ function oos_draw_option_type_pull_down_menu($name, $default = '') { global $products_options_types_list; $values = array(); foreach ($products_options_types_list as $id => $text) { $values[] = array('id' => $id, 'text' => $text); } return oos_draw_pull_down_menu($name, $values, $default); }
function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page') { if (!empty($parameters) && substr($parameters, -1) != '&') { $parameters .= '&'; } // calculate number of pages needing links $num_pages = intval($query_numrows / $max_rows_per_page); // $num_pages now contains int of pages needed unless there is a remainder from division if ($query_numrows % $max_rows_per_page) { $num_pages++; } // has remainder so add one page $pages_array = array(); for ($i = 1; $i <= $num_pages; $i++) { $pages_array[] = array('id' => $i, 'text' => $i); } if ($num_pages > 1) { $display_links = oos_draw_form('pages', basename($_SERVER['PHP_SELF']), '', 'get'); if ($current_page_number > 1) { $display_links .= '<a href="' . oos_href_link_admin(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a> '; } else { $display_links .= PREVNEXT_BUTTON_PREV . ' '; } $display_links .= sprintf(TEXT_RESULT_PAGE, oos_draw_pull_down_menu($page_name, $pages_array, '', 'onChange="this.form.submit();"'), $num_pages); if ($current_page_number < $num_pages && $num_pages != 1) { $display_links .= ' <a href="' . oos_href_link_admin(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>'; } else { $display_links .= ' ' . PREVNEXT_BUTTON_NEXT; } if ($parameters != '') { if (substr($parameters, -1) == '&') { $parameters = substr($parameters, 0, -1); } $pairs = explode('&', $parameters); while (list(, $pair) = each($pairs)) { list($key, $value) = explode('=', $pair); $display_links .= oos_draw_hidden_field(rawurldecode($key), rawurldecode($value)); } } if (SID) { $display_links .= oos_draw_hidden_field(oos_session_name(), oos_session_id()); } $display_links .= '</form>'; } else { $display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages); } return $display_links; }
function selection() { global $oOrder, $aLang; 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' => $aLang['module_payment_2checkout_text_credit_card_owner_first_name'], 'field' => oos_draw_input_field('pm_2checkout_cc_owner_firstname', $oOrder->billing['firstname'])), array('title' => $aLang['module_payment_2checkout_text_credit_card_owner_last_name'], 'field' => oos_draw_input_field('pm_2checkout_cc_owner_lastname', $oOrder->billing['lastname'])), array('title' => $aLang['module_payment_2checkout_text_credit_card_number'], 'field' => oos_draw_input_field('pm_2checkout_cc_number')), array('title' => $aLang['module_payment_2checkout_text_credit_card_expires'], 'field' => oos_draw_pull_down_menu('pm_2checkout_cc_expires_month', $expires_month) . ' ' . oos_draw_pull_down_menu('pm_2checkout_cc_expires_year', $expires_year)), array('title' => $aLang['module_payment_2checkout_text_credit_card_checknumber'], 'field' => oos_draw_input_field('pm_2checkout_cc_cvv', '', 'size="4" maxlength="3"') . ' <small>' . $aLang['module_payment_2checkout_text_credit_card_checknumber_location'] . '</small>'))); return $selection; }
?> </td> <td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><?php echo oos_draw_form('status', $aFilename['ticket_view'], '', 'get'); ?> <td class="smallText" align="right"> <?php if (TICKET_USE_STATUS == '1') { echo HEADING_TITLE_STATUS . ' ' . oos_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_TICKETS)), $ticket_statuses), '', 'onChange="this.form.submit();"') . "<br />\n"; } if (TICKET_USE_DEPARTMENT == '1') { echo HEADING_TITLE_DEPARTMENT . ' ' . oos_draw_pull_down_menu('department', array_merge(array(array('id' => '', 'text' => TEXT_ALL_DEPARTMENTS)), $ticket_departments), '', 'onChange="this.form.submit();"') . "<br />\n"; } if (TICKET_USE_PRIORITY == '1') { echo HEADING_TITLE_PRIORITY . ' ' . oos_draw_pull_down_menu('priority', array_merge(array(array('id' => '', 'text' => TEXT_ALL_PRIORITYS)), $ticket_prioritys), '', 'onChange="this.form.submit();"') . "<br />\n"; } ?> </td> </form></tr> </table></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_NAME;
$ProductSelectOptions .= "<option value='0'> " . $LastOptionTag . "\n"; $ProductSelectOptions .= "<option value='0'> " . $LastOptionTag . "\n"; } } echo "<tr><td><table border='0'>\n"; // Set Defaults if (!isset($add_product_categories_id)) { $add_product_categories_id = 0; } if (!isset($add_product_products_id)) { $add_product_products_id = 0; } // Step 1: Choose Category echo '<tr class="dataTableRow"><form action="' . $_SERVER['PHP_SELF'] . '?oID=' . $oID . '&action=' . $action . '" method="POST">' . "\n"; echo '<td class="dataTableContent" align="right"><b>STEP 1:</b></td><td class="dataTableContent" valign="top">'; echo ' ' . oos_draw_pull_down_menu('add_product_categories_id', oos_get_category_tree(), $current_category_id, 'onChange="this.form.submit();"'); echo '<input type="hidden" name="step" value="2">'; echo '</td>' . "\n"; echo '</form></tr>' . "\n"; echo '<tr><td colspan="3"> </td></tr>' . "\n"; // Step 2: Choose Product if ($step > 1 && $add_product_categories_id > 0) { echo '<tr class="dataTableRow"><form action="' . $_SERVER['PHP_SELF'] . '?oID=' . $oID . '&action=' . $action . '" method="POST">' . "\n"; echo '<td class="dataTableContent" align="right"><b>STEP 2:</b></td><td class="dataTableContent" valign="top"><select name="add_product_products_id" onChange="this.form.submit();">'; $ProductOptions = '<option value="0">' . ADDPRODUCT_TEXT_SELECT_PRODUCT . "\n"; asort($ProductList[$add_product_categories_id]); foreach ($ProductList[$add_product_categories_id] as $ProductID => $ProductName) { $ProductOptions .= '<option value="' . $ProductID . '"> ' . $ProductName . "\n"; } $ProductOptions = str_replace('value="' . $add_product_products_id . '"', 'value="' . $add_product_products_id . '" selected', $ProductOptions); echo $ProductOptions;
</td> </tr> <tr><?php echo oos_draw_form('newsletter', $aFilename['newsletters'], 'page=' . $_GET['page'] . '&action=' . $form_action); if ($form_action == 'update') { echo oos_draw_hidden_field('newsletter_id', $nID); } ?> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_NEWSLETTER_MODULE; ?> </td> <td class="main"><?php echo oos_draw_pull_down_menu('module', $modules_array, $nInfo->module); ?> </td> </tr> <tr> <td colspan="2"><?php echo oos_draw_separator('trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_NEWSLETTER_TITLE; ?> </td> <td class="main"><?php
?> </td> </tr> </table></td> <td width="460" valign="center"><table border="0" width="460" height="375" cellspacing="1" cellpadding="1"> <tr> <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr><?php echo oos_draw_form('languages', 'index.php', '', 'get'); ?> <td class="heading"><?php echo HEADING_TITLE; ?> </td> <td align="right"><?php echo oos_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"'); ?> </td> </form></tr> </table></td> </tr> <?php $col = 2; $counter = 0; for ($i = 0, $n = count($cat); $i < $n; $i++) { if ($cat[$i]['access'] == true) { $counter++; if ($counter < $col) { echo ' <tr>' . "\n"; } echo ' <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td><a href="' . $cat[$i]['href'] . '">' . oos_image(OOS_IMAGES . 'categories/' . $cat[$i]['image'], $cat[$i]['title'], '50', '50') . '</a></td>' . "\n" . ' <td><table border="0" cellspacing="0" cellpadding="1">' . "\n" . ' <tr>' . "\n" . ' <td class="main"><a href="' . $cat[$i]['href'] . '" class="main">' . $cat[$i]['title'] . '</a></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="sub_false">';
$contents = array(); switch ($action) { case 'confirm': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CUSTOMER . '</b>'); $contents = array('form' => oos_draw_form('customers', $aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_DELETE_INTRO . '<br /><br /><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>'); if ($cInfo->number_of_reviews > 0) $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('delete_reviews', 'on', true) . ' ' . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews)); $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); break; case 'editstatus': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_STATUS_CUSTOMER . '</b>'); $contents = array('form' => oos_draw_form('customers', $aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=statusconfirm')); $contents[] = array('text' => '<br />' . oos_draw_pull_down_menu('pdm_status', array_merge(array(array('id' => '0', 'text' => PULL_DOWN_DEFAULT)), $customers_statuses_array), $cInfo->customers_status) ); $contents[] = array('text' => '<table border="0" cellspacing="0" cellpadding="5"><tr><td class="smallText" align="center">' . TABLE_HEADING_NEW_VALUE .' </td><td class="smallText" align="center">' . TABLE_HEADING_DATE_ADDED . '</td></tr>'); $customers_status_historytable = $oostable['customers_status_history']; $customers_history_sql = "SELECT new_value, old_value, date_added, customer_notified FROM $customers_status_historytable WHERE customers_id = '" . oos_db_input($cID) . "' ORDER BY customers_status_history_id DESC"; $customers_history_result = $dbconn->Execute($customers_history_sql); if ($customers_history_result->RecordCount()) { while ($customers_history = $customers_history_result->fields) { $contents[] = array('text' => '<tr>' . "\n" . '<td class="smallText">' . $customers_statuses_array[$customers_history['new_value']]['text'] . '</td>' . "\n" .'<td class="smallText" align="center">' . oos_datetime_short($customers_history['date_added']) . '</td>' . "\n" .'<td class="smallText" align="center">'); $contents[] = array('text' => '</tr>' . "\n"); // Move that ADOdb pointer! $customers_history_result->MoveNext();
case 'edit': $heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_BLOCK . '</b>'); $contents = array('form' => oos_draw_form('block', $aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id . '&action=save', 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => TEXT_EDIT_INTRO); $block_inputs_string = ''; $languages = oos_get_languages(); for ($i = 0, $n = count($languages); $i < $n; $i++) { $block_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_draw_input_field('block_name[' . $languages[$i]['id'] . ']', oos_get_block_name($bInfo->block_id, $languages[$i]['id'])); } eval('$value_field = ' . $bInfo->set_function . '"' . htmlspecialchars($bInfo->block_side) . '");'); $contents[] = array('text' => '<br />' . TEXT_BLOCK_NAME . $block_inputs_string); $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_FUNCTION . ':</b><br />' . oos_draw_input_field('function', $bInfo->block_file)); $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_CACHE . ':</b><br />' . oos_draw_input_field('block_cache', $bInfo->block_cache)); $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_COLUMN . ':</b><br />' . $value_field); $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_STATUS . ':</b> ' . oos_draw_pull_down_menu('block_status', $block_status_array, $bInfo->block_status)); $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_LOGIN . ':</b> ' . oos_draw_pull_down_menu('block_login_flag', $block_login_flag_array, $bInfo->block_login_flag)); $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_PAGE . ':</b><br />' . oos_show_block_to_page($bInfo->block_id)); $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_SORT_ORDER . ':</b><br />' . oos_draw_input_field('sort_order', $bInfo->block_sort_order, 'size="2"')); $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_BLOCK . '</b>'); $contents = array('form' => oos_draw_form('block', $aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_DELETE_INTRO); $contents[] = array('text' => '<br /><b>' . $bInfo->block_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); break; default: if (isset($bInfo) && is_object($bInfo)) { $heading[] = array('text' => '<b>' . $bInfo->block_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
function choose_audience() { // Get database information $dbconn =& oosDBGetConn(); $oostable =& oosDBGetTables(); $aFilename = oos_get_filename(); $products_array = array(); $products_result = $dbconn->Execute("SELECT pd.products_id, pd.products_name FROM " . $oostable['products'] . " p, " . $oostable['products_description'] . " pd WHERE pd.products_languages_id = '" . intval($_SESSION['language_id']) . "' AND pd.products_id = p.products_id AND p.products_status >= '1' ORDER BY pd.products_name"); while ($products = $products_result->fields) { $products_array[] = array('id' => $products['products_id'], 'text' => $products['products_name']); // Move that ADOdb pointer! $products_result->MoveNext(); } $choose_audience_string = '<script language="javascript"><!-- function mover(move) { if (move == \'remove\') { for (x=0; x<(document.notifications.products.length); x++) { if (document.notifications.products.options[x].selected) { with(document.notifications.elements[\'chosen[]\']) { options[options.length] = new Option(document.notifications.products.options[x].text,document.notifications.products.options[x].value); } document.notifications.products.options[x] = null; x = -1; } } } if (move == \'add\') { for (x=0; x<(document.notifications.elements[\'chosen[]\'].length); x++) { if (document.notifications.elements[\'chosen[]\'].options[x].selected) { with(document.notifications.products) { options[options.length] = new Option(document.notifications.elements[\'chosen[]\'].options[x].text,document.notifications.elements[\'chosen[]\'].options[x].value); } document.notifications.elements[\'chosen[]\'].options[x] = null; x = -1; } } } return true; } function selectAll(FormName, SelectBox) { temp = "document." + FormName + ".elements[\'" + SelectBox + "\']"; Source = eval(temp); for (x=0; x<(Source.length); x++) { Source.options[x].selected = "true"; } if (x<1) { alert(\'' . JS_PLEASE_SELECT_PRODUCTS . '\'); return false; } else { return true; } } //--></script>'; $choose_audience_string .= '<form name="notifications" action="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm') . '" method="post" onSubmit="return selectAll(\'notifications\', \'chosen[]\')"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td align="center" class="main"><b>' . TEXT_PRODUCTS . '</b><br />' . oos_draw_pull_down_menu('products', $products_array, '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . ' <td align="center" class="main"> <br /><a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm&global=true') . '"><input type="button" value="' . BUTTON_GLOBAL . '" style="width: 8em;"></a><br /><br /><br /><input type="button" value="' . BUTTON_SELECT . '" style="width: 8em;" onClick="mover(\'remove\');"><br /><br /><input type="button" value="' . BUTTON_UNSELECT . '" style="width: 8em;" onClick="mover(\'add\');"><br /><br /><br /><input type="submit" value="' . BUTTON_SUBMIT . '" style="width: 8em;"><br /><br /><a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '"><input type="button" value="' . BUTTON_CANCEL . '" style="width: 8em;"></a></td>' . "\n" . ' <td align="center" class="main"><b>' . TEXT_SELECTED_PRODUCTS . '</b><br />' . oos_draw_pull_down_menu('chosen[]', array(), '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . ' </tr>' . "\n" . '</table></form>'; return $choose_audience_string; }
function selection() { global $oOrder, $aLang; 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))); } for ($i = 1; $i < 13; $i ++) { $start_month[] = array ('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0,0,0,$i,1,2000))); } $today = getdate(); for ($i = $today['year'] - 4; $i <= $today['year']; $i ++) { $start_year[] = array ('id' => strftime('%y', mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))); } $form_array = array (); // Owner $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_owner'], 'field' => oos_draw_input_field('cc_owner', $oOrder->billing['firstname'] . ' ' . $oOrder->billing['lastname'])))); // CC Number $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_number'], 'field' => oos_draw_input_field('cc_number')))); // Startdate if (USE_CC_START == '1') { $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_start'], 'field' => oos_draw_pull_down_menu('cc_start_month', $start_month).' '.oos_draw_pull_down_menu('cc_start_year', $start_year)))); } // expire date $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_expires'], 'field' => oos_draw_pull_down_menu('cc_expires_month', $expires_month) . ' ' . oos_draw_pull_down_menu('cc_expires_year', $expires_year)))); // CVV if (USE_CC_CVV == '1') { $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_cvv'], 'field' => oos_draw_input_field('cc_cvv', '', 'size=4 maxlength=4')))); } if (USE_CC_ISS == '1') { $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_issue'], 'field' => oos_draw_input_field('cc_issue', '', 'size=2 maxlength=2')))); } // cards if (MODULE_PAYMENT_CC_ACCEPT_VISA == '1') $this->accepted .= oos_image(OOS_ICONS . 'cc_visa.jpg'); if (MODULE_PAYMENT_CC_ACCEPT_MASTERCARD == '1') $this->accepted .= oos_image(OOS_ICONS . 'cc_mastercard.jpg'); if (MODULE_PAYMENT_CC_ACCEPT_AMERICANEXPRESS == '1') $this->accepted .= oos_image(OOS_ICONS . 'cc_amex.jpg'); if (MODULE_PAYMENT_CC_ACCEPT_DINERSCLUB == '1') $this->accepted .= oos_image(OOS_ICONS . 'cc_diners.jpg'); if (MODULE_PAYMENT_CC_ACCEPT_DISCOVERNOVUS == '1') $this->accepted .= oos_image(OOS_ICONS . 'cc_discover.jpg'); if (MODULE_PAYMENT_CC_ACCEPT_JCB == '1') $this->accepted .= oos_image(OOS_ICONS . 'cc_jcb.jpg'); if (MODULE_PAYMENT_CC_ACCEPT_OZBANKCARD == '1') $this->accepted .=''; $form_array = array_merge(array(array('title'=>$aLang['module_payment_cc_accepted_cards'],'field'=>$this->accepted)),$form_array); $selection = array ('id' => $this->code, 'module' => $this->title, 'fields' => $form_array); return $selection; }
$contents[] = array('text' => '<br /> ' . TEXT_INFO_FIRSTNAME . '<br /> ' . oos_draw_input_field('admin_firstname', $mInfo->admin_firstname)); $contents[] = array('text' => '<br /> ' . TEXT_INFO_LASTNAME . '<br /> ' . oos_draw_input_field('admin_lastname', $mInfo->admin_lastname)); $contents[] = array('text' => '<br /> ' . TEXT_INFO_EMAIL . '<br /> ' . oos_draw_input_field('admin_email_address', $mInfo->admin_email_address)); if ($mInfo->admin_id == 1) { $contents[] = array('text' => oos_draw_hidden_field('admin_groups_id', $mInfo->admin_groups_id)); } else { $groups_array = array(); $groups_array = array(array('id' => '0', 'text' => TEXT_NONE)); $groups_query = "SELECT admin_groups_id, admin_groups_name FROM " . $oostable['admin_groups']; $groups_result =& $dbconn->Execute($groups_query); while ($groups = $groups_result->fields) { $groups_array[] = array('id' => $groups['admin_groups_id'], 'text' => $groups['admin_groups_name']); // Move that ADOdb pointer! $groups_result->MoveNext(); } $contents[] = array('text' => '<br /> ' . TEXT_INFO_GROUP . '<br /> ' . oos_draw_pull_down_menu('admin_groups_id', $groups_array, $mInfo->admin_groups_id)); } $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('insert', 'insert_off.gif', IMAGE_INSERT, 'onClick="validateForm();return document.returnValue"') . ' <a href="' . oos_href_link_admin($aFilename['admin_members'], 'page=' . $_GET['page'] . '&mID=' . $_GET['mID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); break; case 'del_member': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE . '</b>'); if ($mInfo->admin_id == 1 || $mInfo->admin_email_address == STORE_OWNER_EMAIL_ADDRESS) { $contents[] = array('align' => 'center', 'text' => '<br /><a href="' . oos_href_link_admin($aFilename['admin_members'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->admin_id) . '">' . oos_image_swap_button('back', 'back_off.gif', IMAGE_BACK) . '</a><br /> '); } else { $contents = array('form' => oos_draw_form('edit', $aFilename['admin_members'], 'action=member_delete&page=' . $_GET['page'] . '&mID=' . $admin['admin_id'], 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => oos_draw_hidden_field('admin_id', $mInfo->admin_id)); $contents[] = array('align' => 'center', 'text' => sprintf(TEXT_INFO_DELETE_INTRO, $mInfo->admin_firstname . ' ' . $mInfo->admin_lastname)); $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['admin_members'], 'page=' . $_GET['page'] . '&mID=' . $_GET['mID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); } break; case 'new_group':
$contents[] = array('params' => 'class="infoBox"', 'text' => oos_image(OOS_IMAGES . 'icons/unlocked.gif', ICON_UNLOCKED, '', '', 'align="right"') . BOX_CONNECTION_UNPROTECTED); } $box = new box(); echo $box->tableBlock($contents); ?> </td> </tr> </table></td> <td width="460" valign="center"><table border="0" width="460" height="375" cellspacing="1" cellpadding="1"> <tr> <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr><?php echo oos_draw_form('languages', 'index.php', '', 'get'); ?> <td class="heading"><?php echo HEADING_TITLE; ?></td> <td align="right"><?php echo oos_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"'); ?></td> </form></tr> </table></td> </tr> <?php $col = 2; $counter = 0; for ($i = 0, $n = count($cat); $i < $n; $i++) { if ($cat[$i]['access'] == true) { $counter++; if ($counter < $col) { echo ' <tr>' . "\n"; } echo ' <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" .
sort($directory_array); $dir->close(); } for ($i = 0, $n = count($directory_array); $i < $n; $i++) { $modules_array[] = array('id' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')), 'text' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.'))); } ?> <tr> <td><?php echo oos_draw_separator('trans.gif', '1', '10'); ?></td> </tr> <tr><?php echo oos_draw_form('newsletter', $aFilename['newsletters'], 'page=' . $_GET['page'] . '&action=' . $form_action); if ($form_action == 'update') echo oos_draw_hidden_field('newsletter_id', $nID); ?> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_NEWSLETTER_MODULE; ?></td> <td class="main"><?php echo oos_draw_pull_down_menu('module', $modules_array, $nInfo->module); ?></td> </tr> <tr> <td colspan="2"><?php echo oos_draw_separator('trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_NEWSLETTER_TITLE; ?></td> <td class="main"><?php echo oos_draw_input_field('title', $nInfo->title, '', true); ?></td> </tr> <tr> <td colspan="2"><?php echo oos_draw_separator('trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main" valign="top"><?php echo TEXT_NEWSLETTER_CONTENT; ?></td> <td class="main"><?php echo oos_draw_textarea_field('content', 'soft', '100%', '20', $nInfo->content); ?></td> </tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?> </td> <td class="pageHeading" align="right"><?php echo oos_draw_separator('trans.gif', 1, HEADING_IMAGE_HEIGHT); ?> </td> <td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><?php echo oos_draw_form('categories', $aFilename['newsfeed_manager'], '', 'get'); ?> <td class="smallText" align="right"><?php echo HEADING_TITLE_SHOW . ' ' . oos_draw_pull_down_menu('categories', array_merge(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)), $newsfeed_categories), '', 'onChange="this.form.submit();"'); ?> </td> </form></tr> </table></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_ID;
} } $result = $file_dir; if (count($files_array) > 0) { $result = array_values(array_diff($file_dir, $files_array)); } sort($result); reset($result); $show = array(); while (list($key, $val) = each($result)) { $show[] = array('id' => $val, 'text' => $val); } $contents = array('form' => oos_draw_form('store_file', $aFilename['admin_files'], 'categories=' . $_GET['categories'] . '&fID=' . $files['admin_files_id'] . '&action=file_store', 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => '<b>' . TEXT_INFO_NEW_FILE_BOX . ucfirst(substr_replace($current_box['admin_box_name'], '', -4)) . '</b>'); $contents[] = array('text' => TEXT_INFO_NEW_FILE_INTRO); $contents[] = array('align' => 'left', 'text' => '<br /> ' . oos_draw_pull_down_menu('admin_files_name', $show, $show)); $contents[] = array('text' => oos_draw_hidden_field('admin_files_to_boxes', $_GET['categories'])); $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['admin_files'], 'categories=' . $_GET['categories']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); break; case 'remove_file': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_FILE . '</b>'); $contents = array('form' => oos_draw_form('remove_file', $aFilename['admin_files'], 'action=file_remove&categories=' . $_GET['categories'] . '&fID=' . $files['admin_files_id'], 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => oos_draw_hidden_field('admin_files_id', $_GET['fID'])); $contents[] = array('text' => sprintf(TEXT_INFO_DELETE_FILE_INTRO, $fInfo->admin_files_name, ucfirst(substr_replace($current_box['admin_box_name'], '', -4)))); $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('confirm', 'confirm_off.gif', IMAGE_CONFIRM) . ' <a href="' . oos_href_link_admin($aFilename['admin_files'], 'categories=' . $_GET['categories'] . '&fID=' . $_GET['fID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); break; default: if (isset($cInfo) && is_object($cInfo)) { $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DEFAULT_BOXES . $cInfo->admin_boxes_name . '</b>'); if (substr($cInfo->admin_boxes_id, 0, 1) == 'b') { $contents[] = array('text' => '<b>' . $cInfo->admin_boxes_name . ' ' . TEXT_INFO_DEFAULT_BOXES_NOT_INSTALLED . '</b><br /> ');
?> </td> <td class="dataTableContent" align="center"> <?php echo oos_info_image($products_name['products_image'], $products_name['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); ?> </td> <td class="dataTableContent" align="center"> <?php echo $products['products_name']; ?> </td> <td class="dataTableContent" align="center"> <?php echo $currencies->format($products['products_price']); ?> </td> <td class="dataTableContent" align="center"> <?php echo oos_draw_pull_down_menu($products['products_id'], $sort_order_drop_array, $products['sort_order']); ?> </td> </tr> <?php // Move that ADOdb pointer! $products_result->MoveNext(); } // Close result set $products_result->Close(); ?> </table></form></td> </tr> <tr> <td colspan="6"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="infoBoxContent"> <tr>
<td class="main"><?php echo TEXT_BANNERS_URL; ?> </td> <td class="main"><?php echo oos_draw_input_field('banners_url', $bInfo->banners_url); ?> </td> </tr> <tr> <td class="main" valign="top"><?php echo TEXT_BANNERS_GROUP; ?> </td> <td class="main"><?php echo oos_draw_pull_down_menu('banners_group', $groups_array, $bInfo->banners_group) . TEXT_BANNERS_NEW_GROUP . '<br />' . oos_draw_input_field('new_banners_group', '', '', count($groups_array) > 0 ? false : true); ?> </td> </tr> <tr> <td colspan="2"><?php echo oos_draw_separator('trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main" valign="top"><?php echo TEXT_BANNERS_IMAGE; ?> </td> <td class="main"><?php
default: $options .= '<tr><td class="main">' . $products_options_name['products_options_name'] . ':</td><td class="main">' . "\n"; $selected = 0; $products_options_array = array(); $products_attributestable = $oostable['products_attributes']; $products_options_valuestable = $oostable['products_options_values']; $products_options_sql = "SELECT pov.products_options_values_id, pov.products_options_values_name,\n pa.options_values_price, pa.price_prefix, pa.options_sort_order\n FROM {$products_attributestable} pa,\n {$products_options_valuestable} pov\n WHERE pa.products_id = '" . intval($nProductsId) . "'\n AND pa.options_id = '" . $products_options_name['products_options_id'] . "'\n AND pa.options_values_id = pov.products_options_values_id\n AND pov.products_options_values_languages_id = '" . intval($nLanguageID) . "'\n " . $options_sort_by; $products_options_result = $dbconn->Execute($products_options_sql); while ($products_options = $products_options_result->fields) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] > '0') { if ($_SESSION['member']->group['show_price'] == 1) { if ($info_product_discount != 0) { $products_options_array[count($products_options_array) - 1]['text'] .= ' (' . $products_options['price_prefix'] . $oCurrencies->display_price($products_options['options_values_price'], oos_get_tax_rate($product_info['products_tax_class_id'])) . ' -' . number_format($info_product_discount, 2) . '% ) '; } else { $products_options_array[count($products_options_array) - 1]['text'] .= ' (' . $products_options['price_prefix'] . $oCurrencies->display_price($products_options['options_values_price'], oos_get_tax_rate($product_info['products_tax_class_id'])) . ') '; } } } // Move that ADOdb pointer! $products_options_result->MoveNext(); } $options .= oos_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $_SESSION['cart']->contents[$sProductsId]['attributes'][$products_options_name['products_options_id']]); $options .= '</td></tr>'; } // Move that ADOdb pointer! $products_options_name_result->MoveNext(); } $options .= '</table>'; } }
?> </td> <td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><?php echo oos_draw_form('orders', $aFilename['orders'], '', 'get'); ?> <td class="smallText" align="right"><?php echo HEADING_TITLE_SEARCH . ' ' . oos_draw_input_field('oID', '', 'size="12"') . oos_draw_hidden_field('action', 'edit'); ?> </td> </form></tr> <tr><?php echo oos_draw_form('status', $aFilename['orders'], '', 'get'); ?> <td class="smallText" align="right"><?php echo HEADING_TITLE_STATUS . ' ' . oos_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), '', 'onChange="this.form.submit();"'); ?> </td> </form></tr> </table></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CUSTOMERS; ?>
$contents = array('form' => oos_draw_form('status', $aFilename['customers_status'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=save', 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $customers_status_inputs_string = ''; $languages = oos_get_languages(); for ($i = 0, $n = count($languages); $i < $n; $i++) { $customers_status_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_draw_input_field('customers_status_name[' . $languages[$i]['id'] . ']', oos_get_customer_status_name($cInfo->customers_status_id, $languages[$i]['id'])); } $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_NAME . $customers_status_inputs_string); $contents[] = array('text' => '<br />' . oos_image(OOS_SHOP_IMAGES . 'icons/' . $cInfo->customers_status_image, $cInfo->customers_status_name) . '<br />' . OOS_SHOP_IMAGES . 'icons/<br /><b>' . $cInfo->customers_status_image . '</b>'); $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_IMAGE . '<br />' . oos_draw_file_field('customers_status_image')); $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_PUBLIC_INTRO . '<br /><b>' . ENTRY_CUSTOMERS_STATUS_PUBLIC . '</b> ' . oos_draw_pull_down_menu('customers_status_public', $customers_status_public_array, $cInfo->customers_status_public)); $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_SHOW_PRICE_INTRO . '<br /><b>' . ENTRY_CUSTOMERS_STATUS_SHOW_PRICE . '</b> ' . oos_draw_pull_down_menu('customers_status_show_price', $customers_status_show_price_array, $cInfo->customers_status_show_price)); $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_SHOW_PRICE_TAX_INTRO . '<br /><b>' . ENTRY_CUSTOMERS_STATUS_SHOW_PRICE_TAX . '</b> ' . oos_draw_pull_down_menu('customers_status_show_price_tax', $customers_status_show_price_tax_array, $cInfo->customers_status_show_price_tax)); $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE_INTRO . '<br /><b>' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . '</b> ' . oos_draw_input_field('customers_status_discount', $cInfo->customers_status_discount)); $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_OT_XMEMBER_INTRO . '<br /><b>' . ENTRY_OT_XMEMBER . '</b> ' . oos_draw_pull_down_menu('customers_status_ot_discount_flag', $customers_status_ot_discount_flag_array, $cInfo->customers_status_ot_discount_flag) . '<br />' . TEXT_INFO_CUSTOMERS_STATUS_MINIMUM_AMOUNT_OT_XMEMBER_INTRO . '<br /><b>' . ENTRY_MINIMUM_AMOUNT_OT_XMEMBER . '</b><br />' . oos_draw_input_field('customers_status_ot_minimum', $cInfo->customers_status_ot_minimum) . '<br />' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . '<br />' . oos_draw_input_field('customers_status_ot_discount', $cInfo->customers_status_ot_discount)); $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_STAFFELPREIS_INTRO . '<br /><b>' . ENTRY_STAFFELPREIS . '</b> ' . oos_draw_pull_down_menu('customers_status_qty_discounts', $customers_status_qty_discounts_array, $cInfo->customers_status_qty_discounts)); $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_PAYMENT_INTRO . '<br /><b>' . ENTRY_CUSTOMERS_STATUS_PAYMENT . '</b><br />' . oos_installed_payment($cInfo->customers_status_payment)); if (DEFAULT_CUSTOMERS_STATUS_ID != $cInfo->customers_status_id) { $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT); } $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update', 'update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['customers_status'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CUSTOMERS_STATUS . '</b>'); $contents = array('form' => oos_draw_form('status', $aFilename['customers_status'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br /><b>' . $cInfo->customers_status_name . '</b>'); if ($remove_status) { $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['customers_status'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); } break;
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><?php echo oos_draw_form('goto', $aFilename['file_manager'], '', 'get'); ?> <td class="pageHeading"><?php echo HEADING_TITLE . '<br /><span class="smallText">' . $_SESSION['current_path'] . '</span>'; ?> </td> <td class="pageHeading" align="right"><?php echo oos_draw_separator('trans.gif', '1', HEADING_IMAGE_HEIGHT); ?> </td> <td class="pageHeading" align="right"><?php echo oos_draw_pull_down_menu('goto', $goto_array, $_SESSION['current_path'], 'onChange="this.form.submit();"'); ?> </td> </form></tr> </table></td> </tr> <?php if ($directory_writeable && $action == 'new_file' || $action == 'edit') { if (strstr($_GET['info'], '..')) { oos_redirect_admin(oos_href_link_admin($aFilename['file_manager'])); } if (!isset($file_writeable)) { $file_writeable = true; } $file_contents = ''; if ($action == 'new_file') {
</table> </td> </tr> <tr> <td colspan="2"><?php echo oos_draw_separator('trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_TAX_CLASS; ?> </td> <td class="main"><?php echo oos_draw_separator('trans.gif', '24', '15') . ' ' . oos_draw_pull_down_menu('products_tax_class_id', $tax_class_array, $pInfo->products_tax_class_id); ?> </td> </tr> <tr> <td colspan="2"><?php echo oos_draw_separator('trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?> </td> <td class="main"><?php
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&pID=' . $pInfo->products_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); break; case 'move_product': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_MOVE_PRODUCT . '</b>'); $contents = array('form' => oos_draw_form('products', $aFilename['categories'], 'action=move_product_confirm&categories=' . $categories) . oos_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>' . oos_output_generated_category_path($pInfo->products_id, 'product') . '</b>'); $contents[] = array('text' => '<br />' . sprintf(TEXT_MOVE, $pInfo->products_name) . '<br />' . oos_draw_pull_down_menu('move_to_category_id', oos_get_category_tree(), $current_category_id)); $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('move', 'move_off.gif', IMAGE_MOVE) . ' <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&pID=' . $pInfo->products_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); break; case 'copy_to': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_COPY_TO . '</b>'); $contents = array('form' => oos_draw_form('copy_to', $aFilename['categories'], 'action=copy_to_confirm&categories=' . $categories) . oos_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>' . oos_output_generated_category_path($pInfo->products_id, 'product') . '</b>'); $contents[] = array('text' => '<br />' . TEXT_CATEGORIES . '<br />' . oos_draw_pull_down_menu('categories_id', oos_get_category_tree(), $current_category_id)); $contents[] = array('text' => '<br />' . TEXT_HOW_TO_COPY . '<br />' . oos_draw_radio_field('copy_as', 'link', true) . ' ' . TEXT_COPY_AS_LINK . '<br />' . oos_draw_radio_field('copy_as', 'duplicate') . ' ' . TEXT_COPY_AS_DUPLICATE); $contents[] = array('text' => '<br />' . oos_image(OOS_IMAGES . 'pixel_black.gif', '', '100%', '3')); $contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES_ONLY); $contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES . '<br />' . oos_draw_radio_field('copy_attributes', 'copy_attributes_yes', true) . ' ' . TEXT_COPY_ATTRIBUTES_YES . '<br />' . oos_draw_radio_field('copy_attributes', 'copy_attributes_no') . ' ' . TEXT_COPY_ATTRIBUTES_NO); $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('copy', 'copy_off.gif', IMAGE_COPY) . ' <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&pID=' . $pInfo->products_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); break; default: if ($rows > 0) { if (isset($cInfo) && is_object($cInfo)) { // category info box contents $heading[] = array('text' => '<b>' . $cInfo->categories_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&cID=' . $cInfo->categories_id . '&action=edit_category') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&cID=' . $cInfo->categories_id . '&action=delete_category') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a> <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&cID=' . $cInfo->categories_id . '&action=move_category') . '">' . oos_image_swap_button('move', 'move_off.gif', IMAGE_MOVE) . '</a>'); $contents[] = array('text' => TEXT_CATEGORIES . ' ' . oos_get_categories_name($categories) . ' ' . oos_get_categories_name($cID) . '<br />' . TEXT_DATE_ADDED . ' ' . oos_date_short($cInfo->date_added)); if (oos_is_not_null($cInfo->last_modified)) { $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . oos_date_short($cInfo->last_modified));
<tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?> </td> <td class="main"><?php echo oos_draw_form('status', $aFilename['coupon_admin'], '', 'get'); $status_array[] = array('id' => 'Y', 'text' => TEXT_COUPON_ACTIVE); $status_array[] = array('id' => 'N', 'text' => TEXT_COUPON_INACTIVE); $status_array[] = array('id' => '*', 'text' => TEXT_COUPON_ALL); if (isset($_GET['status'])) { $status = oos_db_prepare_input($_GET['status']); } else { $status = 'Y'; } echo HEADING_TITLE_STATUS . ' ' . oos_draw_pull_down_menu('status', $status_array, $status, 'onChange="this.form.submit();"'); ?> </form> </td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo COUPON_NAME; ?> </td>
/** ensure this file is being included by a parent file */ defined( 'OOS_VALID_MOD' ) or die( 'Direct Access to this location is not allowed.' ); if (isset($oCurrencies) && is_object($oCurrencies)) { reset($oCurrencies->currencies); $aCurrencies = array(); foreach ($oCurrencies->currencies as $sKey => $value) { $aCurrencies[] = array('id' => $sKey, 'text' => $value['title']); } $hidden_get_variables = ''; foreach ($_GET as $sKey => $value) { if ( is_string($value) && ($sKey != 'currency') && ($sKey != oos_session_name()) && ($sKey != 'x') && ($sKey != 'y') ) { $hidden_get_variables .= oos_draw_hidden_field($sKey, $value); } } $oos_pull_down_menu = oos_draw_pull_down_menu('currency', $aCurrencies, $_SESSION['currency'], 'onchange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . oos_hide_session_id(); $oSmarty->assign( array( 'oos_pull_down_menu' => $oos_pull_down_menu, 'block_heading_currencies' => $block_heading ) ); }
$customers[] = array('id' => '**D', 'text' => TEXT_NEWSLETTER_CUSTOMERS); $customerstable = $oostable['customers']; $mail_result = $dbconn->Execute("SELECT customers_email_address, customers_firstname, customers_lastname FROM {$customerstable} ORDER BY customers_lastname"); while ($customers_values = $mail_result->fields) { $customers[] = array('id' => $customers_values['customers_email_address'], 'text' => $customers_values['customers_lastname'] . ', ' . $customers_values['customers_firstname'] . ' (' . $customers_values['customers_email_address'] . ')'); // Move that ADOdb pointer! $mail_result->MoveNext(); } ?> <tr> <td class="main"><?php echo TEXT_CUSTOMER; ?> </td> <td><?php echo oos_draw_pull_down_menu('customers_email_address', $customers, $_GET['customer']); ?> </td> </tr> <tr> <td colspan="2"><?php echo oos_draw_separator('trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_TO; ?> </td> <td><?php
if (($_GET['errorno'] & 10000) == 10000) { $info_message = str_replace('\n', '<br />', $aLang['js_price_from_must_be_num']); } if (($_GET['errorno'] & 100000) == 100000) { $info_message = str_replace('\n', '<br />', $aLang['js_price_to_must_be_num']); } if (($_GET['errorno'] & 1000000) == 1000000) { $info_message = str_replace('\n', '<br />', $aLang['js_price_to_less_than_price_from']); } if (($_GET['errorno'] & 10000000) == 10000000) { $info_message = str_replace('\n', '<br />', $aLang['js_invalid_keywords']); } } $pull_down_menu_categories = oos_draw_pull_down_menu('categories_id', oos_get_categories(array(array('id' => '', 'text' => $aLang['text_all_categories']))), '', 'id="categories"'); $pull_down_menu_manufacturers = oos_draw_pull_down_menu('manufacturers_id', oos_get_manufacturers(array(array('id' => '', 'text' => $aLang['text_all_manufacturers']))), '', 'id="manufacturers"'); /* $options_box .= ' <tr>' . "\n" . ' <td class="fieldKey">' . $aLang['entry_date_from'] . '</td>' . "\n" . ' <td class="fieldValue">' . oos_draw_input_field('dfrom', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="fieldKey">' . $aLang['entry_date_to'] . '</td>' . "\n" . ' <td class="fieldValue">' . oos_draw_input_field('dto', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"') . '</td>' . "\n" . ' </tr>' . "\n"; */ $aOption['template_main'] = $sTheme . '/modules/advanced_search.html'; $aOption['page_heading'] = $sTheme . '/heading/page_heading.html';
function selection() { global $oOrder, $aLang; 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' => $aLang['module_payment_psigate_text_credit_card_owner'], 'field' => $oOrder->billing['firstname'] . ' ' . $oOrder->billing['lastname']), array('title' => $aLang['module_payment_psigate_text_credit_card_number'], 'field' => oos_draw_input_field('psigate_cc_number')), array('title' => $aLang['module_payment_psigate_text_credit_card_expires'], 'field' => oos_draw_pull_down_menu('psigate_cc_expires_month', $expires_month) . ' ' . oos_draw_pull_down_menu('psigate_cc_expires_year', $expires_year)))); } else { $selection = array('id' => $this->code, 'module' => $this->title); } return $selection; }
// we're de-re-activating the selected products if (isset($_POST['update_status']) && !empty($_POST['update_status'])) { if ($items['stock'] >= 1) { $productstable = $oostable['products']; $dbconn->Execute("UPDATE {$productstable} SET products_status = '3' WHERE products_id = '" . $key . "'"); $status_a++; } else { $productstable = $oostable['products']; $dbconn->Execute("UPDATE {$productstable} SET products_status = '0' WHERE products_id = '" . $key . "'"); $status_d++; } } } } $tree = oos_get_category_tree(); $dropdown = oos_draw_pull_down_menu('cat_id', $tree, $_POST['cat_id'], 'onChange="this.form.submit();"'); ?> <br /> <table border="0"> <tr><?php echo oos_draw_form('stockupdate', $aFilename['quick_stockupdate']); ?> <th class="smallText" align="left" valign="top">Categories:<br /><?php echo $dropdown; ?> </form></th> </tr> </table> </td> </tr> </table>