$this->notices(); ?> <?php $totalsedit = isset($_GET['edit']) && 'totals' == $_GET['edit']; $columns = get_column_headers($this->screen); $hidden = get_hidden_columns($this->screen); $colspan = count($columns); $timestamp = empty($Purchase->created) ? current_time('timestamp') : $Purchase->created; ?> <div id="order"> <div class="title"> <div id="titlewrap"> <span class="date"><?php echo Shopp::_d(get_option('date_format'), $timestamp); ?> <small><?php echo date(get_option('time_format'), $timestamp); ?> </small> <div class="alignright"> <?php if ($Purchase->shipped) { ?> <div class="stamp shipped<?php if ($Purchase->isvoid()) { echo ' void'; }
?> <br class="clear" /> <?php $totalsedit = isset($_GET['edit']) && 'totals' == $_GET['edit']; $columns = get_column_headers($this->id); $hidden = get_hidden_columns($this->id); $colspan = count($columns); ?> <div id="order"> <div class="title"> <div id="titlewrap"> <span class="date"><?php $datetime = $Purchase->exists() ? $Purchase->created : current_time('timestamp'); echo Shopp::_d(get_option('date_format'), $datetime); ?> <small><?php echo date(get_option('time_format'), $datetime); ?> </small> <div class="alignright"> <?php if ($Purchase->shipped) { ?> <div class="stamp shipped<?php if ($Purchase->isvoid()) { echo ' void'; }
<td class="applied column-applied<?php echo in_array('applied', $hidden) ? ' hidden' : ''; ?> "><?php echo $Promotion->target; ?> </td> <td class="eff column-eff<?php echo in_array('eff', $hidden) ? ' hidden' : ''; ?> "><strong><?php echo $states[$Promotion->status]; ?> </strong><?php $starts = mktimestamp($Promotion->starts) > 1 ? Shopp::_d(get_option('date_format'), Shopp::mktimestamp($Promotion->starts)) : Shopp::_d(get_option('date_format'), Shopp::mktimestamp($Promotion->created)); $ends = Shopp::mktimestamp($Promotion->ends) > 1 ? " — " . Shopp::_d(get_option('date_format'), Shopp::mktimestamp($Promotion->ends)) : ", " . __('does not expire', 'Shopp'); echo "<br />" . $starts . $ends; ?> </td> </tr> <?php } ?> </tbody> <?php } else { ?> <tbody><tr><td colspan="5"><?php Shopp::esc_html_e('No discounts found.'); ?> </td></tr></tbody>
<?php include $this->ui('navigation.php'); ?> <br class="clear" /> <?php $totalsedit = isset($_GET['edit']) && 'totals' == $_GET['edit']; $columns = get_column_headers($this->screen); $hidden = get_hidden_columns($this->screen); $colspan = count($columns); ?> <div id="order"> <div class="title"> <div id="titlewrap"> <span class="date"><?php echo Shopp::_d(get_option('date_format'), $Purchase->created); ?> <small><?php echo date(get_option('time_format'), $Purchase->created); ?> </small> <div class="alignright"> <?php if ($Purchase->shipped) { ?> <div class="stamp shipped<?php if ($Purchase->isvoid()) { echo ' void'; }
/** * @deprecated Use Shopp::_d() **/ function _d($format, $timestamp = false) { return Shopp::_d($format, $timestamp); }