示例#1
0
        <td align="left"><?php 
        echo oos_draw_date_selector('coupon_startdate', mktime(0, 0, 0, $coupon_startdate[1], $coupon_startdate[2], $coupon_startdate[0], 0));
        ?>
</td>
        <td align="left" class="main"><?php 
        echo COUPON_STARTDATE_HELP;
        ?>
</td>
      </tr>
      <tr>
        <td align="left" class="main"><?php 
        echo COUPON_FINISHDATE;
        ?>
</td>
        <td align="left"><?php 
        echo oos_draw_date_selector('coupon_finishdate', mktime(0, 0, 0, $coupon_finishdate[1], $coupon_finishdate[2], $coupon_finishdate[0], 0));
        ?>
</td>
        <td align="left" class="main"><?php 
        echo COUPON_FINISHDATE_HELP;
        ?>
</td>
      </tr>
      <tr>
        <td align="left"><?php 
        echo oos_image_swap_submits('preview', 'preview_off.gif', COUPON_BUTTON_PREVIEW);
        ?>
</td>
        <td align="left"><?php 
        echo '&nbsp;&nbsp;<a href="' . oos_href_link_admin($aFilename['coupon_admin'], '');
        ?>
示例#2
0
      $coupon_startdate = explode('-', $_POST['coupon_startdate']);
    }
    if (!$_POST['coupon_finishdate']) {
      $coupon_finishdate = explode('-', date('Y-m-d'));
      $coupon_finishdate[0] = $coupon_finishdate[0] + 1;
    } else {
      $coupon_finishdate = explode('-', $_POST['coupon_finishdate']);
    }
?>
        <td align="left" class="main"><?php echo COUPON_STARTDATE; ?></td>
        <td align="left"><?php echo oos_draw_date_selector('coupon_startdate', mktime(0,0,0, (int)$coupon_startdate[1], (int)$coupon_startdate[2], (int)$coupon_startdate[0], 0)); ?></td>
        <td align="left" class="main"><?php echo COUPON_STARTDATE_HELP; ?></td>
      </tr>
      <tr>
        <td align="left" class="main"><?php echo COUPON_FINISHDATE; ?></td>
        <td align="left"><?php echo oos_draw_date_selector('coupon_finishdate', mktime(0,0,0, (int)$coupon_finishdate[1], (int)$coupon_finishdate[2], (int)$coupon_finishdate[0], 0)); ?></td>
        <td align="left" class="main"><?php echo COUPON_FINISHDATE_HELP; ?></td>
      </tr>
      <tr>
        <td align="left"><?php echo oos_image_swap_submits('preview', 'preview_off.gif',COUPON_BUTTON_PREVIEW); ?></td>
        <td align="left"><?php echo '&nbsp;&nbsp;<a href="' . oos_href_link_admin($aFilename['coupon_admin'], ''); ?>"><?php echo oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL); ?></a>
      </td>
      </tr>
      </td></table></form>
      </tr>

      </table></td>
<?php
    break;
  default:
?>