method="post"> <?php if ($form_action == 'update') { echo oos_draw_hidden_field('featured_id', $_GET['fID']); } elseif (isset($_GET['pID'])) { echo oos_draw_hidden_field('products_id', $sInfo->products_id); } ?> <td><br /><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_FEATURED_PRODUCT; ?> </td> <td class="main"><?php echo $sInfo->products_name ? $sInfo->products_name : oos_draw_products_pull_down('products_id', 'style="font-size:10px"', $featured_array); echo oos_draw_hidden_field('products_price', $sInfo->products_price); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_FEATURED_EXPIRES_DATE; ?> </td> <td class="main"><?php echo oos_draw_input_field('day', substr($sInfo->expires_date, 8, 2), 'size="2" maxlength="2" class="cal-TextBox"') . oos_draw_input_field('month', substr($sInfo->expires_date, 5, 2), 'size="2" maxlength="2" class="cal-TextBox"') . oos_draw_input_field('year', substr($sInfo->expires_date, 0, 4), 'size="4" maxlength="4" class="cal-TextBox"'); ?> <a class="so-BtnLink" href="javascript:calClick();return false;" onMouseOver="calSwapImg('BTN_date', 'img_Date_OVER',true);" onMouseOut="calSwapImg('BTN_date', 'img_Date_UP',true);" onClick="calSwapImg('BTN_date', 'img_Date_DOWN');showCalendar('new_feature','dteWhen','BTN_date');return false;"><?php echo oos_image(OOS_IMAGES . 'cal_date_up.gif', 'Calendar', '22', '17', 'align="absmiddle" name="BTN_date"'); ?>
$tax_ratestable = $oostable['tax_rates']; $tax_result = $dbconn->Execute("SELECT tax_rate FROM {$tax_ratestable} WHERE tax_class_id = '" . $sInfo->products_tax_class_id . "' "); $tax = $tax_result->fields; $in_price = $in_price * ($tax[tax_rate] + 100) / 100; $in_new_price = $in_new_price * ($tax[tax_rate] + 100) / 100; } $in_price = round($in_price, TAX_DECIMAL_PLACES); $in_new_price = round($in_new_price, TAX_DECIMAL_PLACES); if (isset($_GET['pID'])) { echo '<input type="hidden" name="products_id" value="' . $sInfo->products_id . '">'; } else { echo '<input type="hidden" name="products_up_id" value="' . $sInfo->products_id . '">'; } ?> <td class="main"><?php echo $sInfo->products_name ? $sInfo->products_name . ' <small>(' . $currencies->format($in_price) . ' - ' . TEXT_TAX_INFO . $currencies->format($in_price_netto) . ')</small>' : oos_draw_products_pull_down('products_id', 'style="font-size:10px"', $specials_array); echo oos_draw_hidden_field('products_price', $sInfo->products_price); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_SPECIALS_SPECIAL_PRICE; ?> </td> <td class="main"><?php echo oos_draw_input_field('specials_price', $in_new_price); echo ' ' . TEXT_TAX_INFO . $in_new_price_netto; ?> </td>
$tax_ratestable = $oostable['tax_rates']; $tax_result = $dbconn->Execute("SELECT tax_rate FROM $tax_ratestable WHERE tax_class_id = '" . $sInfo->products_tax_class_id . "' "); $tax = $tax_result->fields; $in_price = ($in_price*($tax[tax_rate]+100)/100); $in_new_price = ($in_new_price*($tax[tax_rate]+100)/100); } $in_price=round($in_price,TAX_DECIMAL_PLACES); $in_new_price=round($in_new_price,TAX_DECIMAL_PLACES); if (isset($_GET['pID']) ) { echo '<input type="hidden" name="products_id" value="' . $sInfo->products_id . '">'; } else { echo '<input type="hidden" name="products_up_id" value="' . $sInfo->products_id . '">'; } ?> <td class="main"><?php echo ($sInfo->products_name) ? $sInfo->products_name . ' <small>(' . $currencies->format($in_price) . ' - ' . TEXT_TAX_INFO . $currencies->format($in_price_netto) . ')</small>' : oos_draw_products_pull_down('products_id', 'style="font-size:10px"', $specials_array); echo oos_draw_hidden_field('products_price', $sInfo->products_price); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_SPECIALS_SPECIAL_PRICE; ?> </td> <td class="main"><?php echo oos_draw_input_field('specials_price', $in_new_price); echo ' ' . TEXT_TAX_INFO . $in_new_price_netto; ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_SPECIALS_EXPIRES_DATE; ?> </td> <td class="main"><?php echo oos_draw_input_field('day', substr($sInfo->expires_date, 8, 2), 'size="2" maxlength="2" class="cal-TextBox"') . oos_draw_input_field('month', substr($sInfo->expires_date, 5, 2), 'size="2" maxlength="2" class="cal-TextBox"') . oos_draw_input_field('year', substr($sInfo->expires_date, 0, 4), 'size="4" maxlength="4" class="cal-TextBox"'); ?><a class="so-BtnLink" href="javascript:calClick();return false;" onmouseover="calSwapImg('BTN_date', 'img_Date_OVER',true);" onmouseout="calSwapImg('BTN_date', 'img_Date_UP',true);" onclick="calSwapImg('BTN_date', 'img_Date_DOWN');showCalendar('new_special','dteWhen','BTN_date');return false;"><?php echo oos_image(OOS_IMAGES . 'cal_date_up.gif', 'Calendar', '22', '17', 'align="absmiddle" name="BTN_date"'); ?></a></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr>
$featured_result->Close(); } ?> <tr><form name="new_feature" <?php echo 'action="' . oos_href_link_admin($aFilename['featured'], oos_get_all_get_params(array('action', 'info', 'fID')) . 'action=' . $form_action, 'NONSSL') . '"'; ?> method="post"> <?php if ($form_action == 'update') { echo oos_draw_hidden_field('featured_id', $_GET['fID']); } elseif (isset($_GET['pID']) ) { echo oos_draw_hidden_field('products_id', $sInfo->products_id); } ?> <td><br /><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_FEATURED_PRODUCT; ?> </td> <td class="main"><?php echo ($sInfo->products_name) ? $sInfo->products_name : oos_draw_products_pull_down('products_id', 'style="font-size:10px"', $featured_array); echo oos_draw_hidden_field('products_price', $sInfo->products_price); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_FEATURED_EXPIRES_DATE; ?> </td> <td class="main"><?php echo oos_draw_input_field('day', substr($sInfo->expires_date, 8, 2), 'size="2" maxlength="2" class="cal-TextBox"') . oos_draw_input_field('month', substr($sInfo->expires_date, 5, 2), 'size="2" maxlength="2" class="cal-TextBox"') . oos_draw_input_field('year', substr($sInfo->expires_date, 0, 4), 'size="4" maxlength="4" class="cal-TextBox"'); ?><a class="so-BtnLink" href="javascript:calClick();return false;" onMouseOver="calSwapImg('BTN_date', 'img_Date_OVER',true);" onMouseOut="calSwapImg('BTN_date', 'img_Date_UP',true);" onClick="calSwapImg('BTN_date', 'img_Date_DOWN');showCalendar('new_feature','dteWhen','BTN_date');return false;"><?php echo oos_image(OOS_IMAGES . 'cal_date_up.gif', 'Calendar', '22', '17', 'align="absmiddle" name="BTN_date"'); ?></a></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" align="right" valign="top"><br /><?php echo (($form_action == 'insert') ? oos_image_swap_submits('insert','insert_off.gif', IMAGE_INSERT) : oos_image_swap_submits('update','update_off.gif', IMAGE_UPDATE)). ' <a href="' . oos_href_link_admin($aFilename['featured'], 'page=' . $_GET['page'] . '&fID=' . $_GET['fID']) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>'; ?></td> </tr> </table></td> </form></tr> <?php