Example #1
0
        echo tep_draw_hidden_field('featured_id', $_GET['sID']);
    }
    ?>
        <td><br><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><?php 
    echo TEXT_FEATURED_PRODUCT;
    ?>
&nbsp;</td>
	    <td class="main">
<?php 
    if ($_GET['action'] == 'new' && isset($_GET['prodID'])) {
        echo tep_draw_hidden_field('products_id', $_GET['prodID']);
        echo $sInfo->products_name;
    } else {
        echo isset($sInfo->products_name) ? $sInfo->products_name : tep_draw_products_pull_down('products_id', 'style="font-size:10px"', $featured_array);
    }
    ?>
            </td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_FEATURED_EXPIRES_DATE;
    ?>
&nbsp;</td>
            <td class="main"><?php 
    echo tep_draw_input_field('day', substr($sInfo->expires_date, 8, 2), 'size="2" maxlength="2" class="cal-TextBox"') . tep_draw_input_field('month', substr($sInfo->expires_date, 5, 2), 'size="2" maxlength="2" class="cal-TextBox"') . tep_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 tep_image(DIR_WS_IMAGES . 'cal_date_up.gif', 'Calendar', '22', '17', 'align="absmiddle" name="BTN_date"');
    ?>
Example #2
0
      <tr><form name="new_special" <?php 
    echo 'action="' . tep_href_link(FILENAME_SPECIALS, tep_get_all_get_params(array('action', 'info', 'sID')) . 'action=' . $form_action, 'NONSSL') . '"';
    ?>
 method="post"><?php 
    if ($form_action == 'update') {
        echo tep_draw_hidden_field('specials_id', $HTTP_GET_VARS['sID']);
    }
    ?>
        <td><br><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><?php 
    echo TEXT_SPECIALS_PRODUCT;
    ?>
&nbsp;</td>
            <td class="main"><?php 
    echo isset($sInfo->products_name) ? $sInfo->products_name . ' <small>(' . $currencies->format($sInfo->products_price) . ')</small>' : tep_draw_products_pull_down('products_id', 'style="font-size:10px"', $specials_array);
    echo tep_draw_hidden_field('products_price', isset($sInfo->products_price) ? $sInfo->products_price : '');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_SPECIALS_SPECIAL_PRICE;
    ?>
&nbsp;</td>
            <td class="main"><?php 
    echo tep_draw_input_field('specials_price', isset($sInfo->specials_new_products_price) ? $sInfo->specials_new_products_price : '');
    ?>
</td>
          </tr>
          <tr>
Example #3
0
<?php 
    echo tep_draw_form('new_feature', FILENAME_FEATURED . '?' . tep_get_all_get_params(array('action', 'info', 'sID')) . 'action=' . $form_action);
    ?>

<table border=0>
      <tr>

        <td valign=top><br><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><?php 
    echo TEXT_FEATURED_PRODUCT;
    ?>
&nbsp;</td>
            <td class="main">
<?php 
    echo $sInfo->products_name ? $sInfo->products_name : tep_draw_products_pull_down('products_id', 'style="font-size:11px; width:99%"', $exclude_array);
    echo tep_draw_hidden_field('products_price', $sInfo->products_price);
    ?>
			</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_FEATURED_EXPIRES_DATE;
    ?>
&nbsp;</td>
            <td class="main"><script language="javascript">dateExpires.writeControl(); dateExpires.dateFormat="dd/MM/yyyy";</script></td>
          </tr>
          <tr>
            <td class="main">Sort Order:&nbsp;</td>
            <td class="main"><?php 
    echo tep_draw_input_field("sort_order", $sInfo->sort_order > 0 ? $sInfo->sort_order : '0');