当前位置: 首页>>代码示例>>PHP>>正文


PHP oos_date_short函数代码示例

本文整理汇总了PHP中oos_date_short函数的典型用法代码示例。如果您正苦于以下问题:PHP oos_date_short函数的具体用法?PHP oos_date_short怎么用?PHP oos_date_short使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了oos_date_short函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

        $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a> <a href="' . oos_href_link_admin($aFilename['orders'], 'cID=' . $cInfo->customers_id) . '">' . oos_image_swap_button('orders', 'orders_off.gif', IMAGE_ORDERS) . '</a> <a href="' . oos_href_link_admin($aFilename['mail'], 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . oos_image_swap_button('email', 'email_off.gif', IMAGE_EMAIL) . '</a>');
        $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_catalog_link($aCatalogPage['wishlist'],  'wlid=' . $cInfo->customers_wishlist_link_id) . '">' . oos_image_swap_button('wishlist', 'wishlist_off.gif', IMAGE_WISHLIST) . '</a> <a href="' . oos_href_link_admin($aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=editstatus') . '">' . oos_image_swap_button('status', 'status_off.gif', IMAGE_STATUS) . '</a>');

        $manual_infotable = $oostable['manual_info'];
        $sql = "SELECT man_info_id, man_key, status
                FROM $manual_infotable
                WHERE man_info_id = '1'";
        $login_result = $dbconn->Execute($sql);
        $login = $login_result->fields;
        if ($login['status'] != '0') {
          $contents[] = array('align' => 'center', 'text' => oos_draw_login_form('login', $aCatalogPage['login_admin'], 'action=login_admin', 'POST', 'target=_blank') . oos_draw_hidden_field('verif_key', $login['man_key']) . oos_draw_hidden_field('email_address', $cInfo->customers_email_address) . oos_image_swap_submits('login', 'login_off.gif', IMAGE_LOGIN) . '</form>');
        }
        $contents[] = array('text' => '<br />'  . oos_customers_payment($customer_status['customers_status_payment']));
        $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_CREATED . ' ' . oos_date_short($cInfo->date_account_created));
        $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . oos_date_short($cInfo->date_account_last_modified));
        $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' '  . oos_date_short($cInfo->date_last_logon));
        $contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $cInfo->number_of_logons);
        $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY . ' ' . $cInfo->countries_name);
        $contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_OF_REVIEWS . ' ' . $cInfo->number_of_reviews);
      }
      break;
  }

  if ( (!empty($heading)) && (!empty($contents) ) ) {
    echo '            <td width="25%" valign="top">' . "\n";

    $box = new box;
    echo $box->infoBox($heading, $contents);

    echo '            </td>' . "\n";
  }
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:customers.php

示例2: defined

   ----------------------------------------------------------------------
   Released under the GNU General Public License
   ---------------------------------------------------------------------- */
/** 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 ($oEvent->installed_plugin('down_for_maintenance')) {
    return false;
}
if ($sPage == $aPages['customers_image']) {
    return false;
}
$myworld_block = '0';
if (isset($_SESSION['customer_id'])) {
    $myworld_block = '1';
    $customerstable = $oostable['customers'];
    $address_bookstable = $oostable['address_book'];
    $customers_infotable = $oostable['customers_info'];
    $sql = "SELECT c.customers_gender, c.customers_firstname, c.customers_lastname, c.customers_image,\n                   a.entry_city, a.entry_country_id, ci.customers_info_date_account_created AS date_account_created\n            FROM {$customerstable} c,\n                 {$address_bookstable} a,\n                 {$customers_infotable} ci\n            WHERE c.customers_id = '" . intval($_SESSION['customer_id']) . "'\n              AND a.customers_id = c.customers_id\n              AND ci.customers_info_id = c.customers_id\n              AND a.address_book_id = '" . intval($_SESSION['customer_default_address_id']) . "'";
    $myworld = $dbconn->GetRow($sql);
    if ($myworld['customers_gender'] == 'm') {
        $myworld_gender = $aLang['male'];
    } elseif ($account['customers_gender'] == 'f') {
        $myworld_gender = $aLang['female'];
    }
    $sCountryName = oos_get_country_name($myworld['entry_country_id']);
    $sAccountCreated = oos_date_short($myworld['date_account_created']);
    // assign Smarty variables;
    $oSmarty->assign(array('myworld' => $myworld, 'myworld_gender' => $myworld_gender, 'country_name' => $sCountryName, 'account_created' => $sAccountCreated));
}
$oSmarty->assign('block_heading_myworld', $block_heading);
$oSmarty->assign('myworld_block', $myworld_block);
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:block_myworld.php

示例3: array

        case 'delete':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_FEATURED . '</b>');
            $contents = array('form' => oos_draw_form('featured', $aFilename['featured'], 'page=' . $_GET['page'] . '&fID=' . $sInfo->featured_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br /><b>' . $sInfo->products_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . '&nbsp;<a href="' . oos_href_link_admin($aFilename['featured'], 'page=' . $_GET['page'] . '&fID=' . $sInfo->featured_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($sInfo) && is_object($sInfo)) {
                $heading[] = array('text' => '<b>' . $sInfo->products_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['featured'], 'page=' . $_GET['page'] . '&fID=' . $sInfo->featured_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['featured'], 'page=' . $_GET['page'] . '&fID=' . $sInfo->featured_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . oos_date_short($sInfo->featured_date_added));
                $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . oos_date_short($sInfo->featured_last_modified));
                $contents[] = array('align' => 'center', 'text' => '<br />' . oos_info_image($sInfo->products_image, $sInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
                $contents[] = array('text' => '<br />' . TEXT_INFO_EXPIRES_DATE . ' <b>' . oos_date_short($sInfo->expires_date) . '</b>');
                $contents[] = array('text' => '' . TEXT_INFO_STATUS_CHANGE . ' ' . oos_date_short($sInfo->date_status_change));
            }
            break;
    }
    if (!empty($heading) && !empty($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
}
?>
          </tr>
        </table></td>
      </tr>
    </table></td>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:featured.php

示例4: array

        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br /><b>' . $mInfo->manufacturers_name . '</b>');
        $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
        if ($mInfo->products_count > 0) {
            $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
            $contents[] = array('text' => '<br />' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
        }
        $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (isset($mInfo) && is_object($mInfo)) {
            $heading[] = array('text' => '<b>' . $mInfo->manufacturers_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br />' . TEXT_DATE_ADDED . ' ' . oos_date_short($mInfo->date_added));
            if (oos_is_not_null($mInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . oos_date_short($mInfo->last_modified));
            }
            $contents[] = array('text' => '<br />' . oos_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
            $contents[] = array('text' => '<br />' . TEXT_PRODUCTS . ' ' . $mInfo->products_count);
        }
        break;
}
if (!empty($heading) && !empty($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:manufacturers.php

示例5: array

      case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_REVIEW . '</b>');

        $contents = array('form' => oos_draw_form('reviews', $aFilename['reviews'], 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_REVIEW_INTRO);
        $contents[] = array('text' => '<br /><b>' . $rInfo->products_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['reviews'], 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
        break;

      default:
      if (isset($rInfo) && is_object($rInfo)) {
        $heading[] = array('text' => '<b>' . $rInfo->products_name . '</b>');

        $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['reviews'], 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . oos_image_swap_button('edit','edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['reviews'], 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
        $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . oos_date_short($rInfo->date_added));
        if (!empty($rInfo->last_modified)) $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . oos_date_short($rInfo->last_modified));
        $contents[] = array('text' => '<br />' . oos_info_image($rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
        $contents[] = array('text' => '<br />' . TEXT_INFO_REVIEW_AUTHOR . ' ' . $rInfo->customers_name);
        $contents[] = array('text' => TEXT_INFO_REVIEW_RATING . ' ' . oos_image(OOS_HTTP_SERVER . OOS_SHOP . OOS_IMAGES . 'stars_' . $rInfo->reviews_rating . '.gif'));
        $contents[] = array('text' => TEXT_INFO_REVIEW_READ . ' ' . $rInfo->reviews_read);
        $contents[] = array('text' => '<br />' . TEXT_INFO_REVIEW_SIZE . ' ' . $rInfo->reviews_text_size . ' bytes');
        $contents[] = array('text' => '<br />' . TEXT_INFO_PRODUCTS_AVERAGE_RATING . ' ' . number_format($rInfo->average_rating, 2) . '%');
      }
        break;
    }

    if ( (!empty($heading)) && (!empty($contents) ) ) {
      echo '            <td width="25%" valign="top">' . "\n";

      $box = new box;
      echo $box->infoBox($heading, $contents);
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:reviews.php

示例6: array

                    $amount = $currencies->format($amount);
                }
                if ($action == 'voucherdelete') {
                    $contents[] = array('text' => TEXT_CONFIRM_DELETE . '</br></br>' . '<a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'action=confirmdelete&cID=' . $_GET['cID'], 'NONSSL') . '">' . oos_image_swap_button('confirm', 'confirm_off.gif', 'Confirm Delete Voucher') . '</a>' . '<a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'cID=' . $cInfo->coupon_id, 'NONSSL') . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', 'Cancel') . '</a>');
                } else {
                    $prod_details = NONE;
                    if ($cInfo->restrict_to_products) {
                        $prod_details = '<a href="' . oos_href_link_admin($aFilename['listproducts'], 'cID=' . $cInfo->coupon_id) . '" TARGET="_blank" ONCLICK="window.open(\'' . $aFilename['listproducts'] . '?cID=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>';
                    }
                    $cat_details = NONE;
                    if ($cInfo->restrict_to_categories) {
                        $cat_details = '<a href="' . oos_href_link_admin($aFilename['listcategories'], 'cID=' . $cInfo->coupon_id) . '" TARGET="_blank" ONCLICK="window.open(\'' . $aFilename['listcategories'] . '?cID=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>';
                    }
                    $coupon_name_result = $dbconn->Execute("SELECT coupon_name\n                                           FROM " . $oostable['coupons_description'] . "\n                                           WHERE coupon_id = '" . $cInfo->coupon_id . "' AND\n                                                 coupon_languages_id = '" . intval($_SESSION['language_id']) . "'");
                    $coupon_name = $coupon_name_result->fields;
                    $contents[] = array('text' => COUPON_NAME . '&nbsp;::&nbsp; ' . $coupon_name['coupon_name'] . '<br />' . COUPON_AMOUNT . '&nbsp;::&nbsp; ' . $amount . '<br />' . COUPON_STARTDATE . '&nbsp;::&nbsp; ' . oos_date_short($cInfo->coupon_start_date) . '<br />' . COUPON_FINISHDATE . '&nbsp;::&nbsp; ' . oos_date_short($cInfo->coupon_expire_date) . '<br />' . COUPON_USES_COUPON . '&nbsp;::&nbsp; ' . $cInfo->uses_per_coupon . '<br />' . COUPON_USES_USER . '&nbsp;::&nbsp; ' . $cInfo->uses_per_user . '<br />' . COUPON_PRODUCTS . '&nbsp;::&nbsp; ' . $prod_details . '<br />' . COUPON_CATEGORIES . '&nbsp;::&nbsp; ' . $cat_details . '<br />' . DATE_CREATED . '&nbsp;::&nbsp; ' . oos_date_short($cInfo->date_created) . '<br />' . DATE_MODIFIED . '&nbsp;::&nbsp; ' . oos_date_short($cInfo->date_modified) . '<br /><br />' . '<center><a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'action=email&cID=' . $cInfo->coupon_id, 'NONSSL') . '">' . oos_image_swap_button('email', 'email_off.gif', 'Email Voucher') . '</a>' . '<a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'action=voucheredit&cID=' . $cInfo->coupon_id, 'NONSSL') . '">' . oos_image_swap_button('edit', 'edit_off.gif', 'Edit Voucher') . '</a>' . '<a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'action=voucherdelete&cID=' . $cInfo->coupon_id, 'NONSSL') . '">' . oos_image_swap_button('delete', 'delete_off.gif', 'Delete Voucher') . '</a>' . '<br /><a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'action=voucherreport&cID=' . $cInfo->coupon_id, 'NONSSL') . '">' . oos_image_swap_button('report', 'report_off.gif', 'Voucher Report') . '</a></center>');
                }
                break;
        }
        ?>
    <td width="25%" valign="top">
<?php 
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
}
?>
      </tr>
    </table></td>
<!-- body_text_eof //-->
  </tr>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:coupon_admin.php

示例7: ON

    $sql1 = "SELECT c.customers_firstname, c.customers_lastname FROM {$customerstable} c WHERE c.customers_id = '" . $cid . "'";
    $result1 = $dbconn->Execute($sql1);
    $crec = $result1->fields;
    // Query DB for the FIRST order that matches this customer ID and came after the abandoned cart
    $orderstable = $oostable['orders'];
    $orders_totaltable = $oostable['orders_total'];
    $orders_statustable = $oostable['orders_status'];
    $orders_sql = "SELECT o.orders_id, o.customers_id, o.date_purchased,\n                          s.orders_status_name, ot.text as order_total, ot.value\n                     FROM {$orderstable} o\n                LEFT JOIN {$orders_totaltable} ot ON (o.orders_id = ot.orders_id),\n                          {$orders_statustable} s\n                    WHERE (o.customers_id = '" . (int) $cid . "'\n                       OR o.customers_email_address like '" . $crec['customers_email_address'] . "'\n                       OR o.customers_name like '" . $crec['customers_firstname'] . ' ' . $crec['customers_lastname'] . "')\n                      AND o.orders_status > " . RCS_PENDING_SALE_STATUS . "\n                      AND o.orders_status = s.orders_status_id\n                      AND o.date_purchased >= '" . $inrec['recovercartsales_date_added'] . "'\n                      AND ot.class = 'ot_total'";
    $orders_result = $dbconn->Execute($orders_sql);
    $orders = $orders_result->fields;
    // If we got a match, create the table entry to display the information
    if (isset($orders) && !empty($orders)) {
        $custknt++;
        $total_recovered += $orders['value'];
        $custknt % 2 ? $class = RCS_REPORT_EVEN_STYLE : ($class = RCS_REPORT_ODD_STYLE);
        $custlist .= '<tr class="' . $class . '">' . '<td class="datatablecontent" align="right">' . $inrec['recovercartsales_id'] . '</td>' . '<td>&nbsp;</td>' . '<td class="datatablecontent" align="center">' . oos_date_order_stat($inrec['recovercartsales_date_added']) . '</td>' . '<td>&nbsp;</td>' . '<td class="datatablecontent"><a href="' . oos_href_link_admin($aFilename['customers'], 'search=' . $crec['customers_lastname'], 'NONSSL') . '">' . $crec['customers_firstname'] . ' ' . $crec['customers_lastname'] . '</a></td>' . '<td class="datatablecontent">' . oos_date_short($orders['date_purchased']) . '</td>' . '<td class="datatablecontent" align="center">' . $orders['orders_status_name'] . '</td>' . '<td class="datatablecontent" align="right">' . strip_tags($orders['order_total']) . '</td>' . '<td>&nbsp;</td>' . '</tr>';
    }
    // Move that ADOdb pointer!
    $result->MoveNext();
}
// Close result set
$result->Close();
$cline = "<tr><td height=\"15\" COLSPAN=8> </td></tr>" . "<tr>" . "<td align=right COLSPAN=3 class=main><b>" . TOTAL_RECORDS . "</b></td>" . "<td>&nbsp;</td>" . "<td align=left COLSPAN=5 class=main>" . $rc_cnt . "</td>" . "</tr>" . "<tr>" . "<td align=right COLSPAN=3 class=main><b>" . TOTAL_SALES . "</b></td>" . "<td>&nbsp;</td>" . "<td align=left COLSPAN=5 class=main>" . $custknt . TOTAL_SALES_EXPLANATION . " </td>" . "</tr>" . "<tr><td height=\"12\" COLSPAN=6> </td></tr>";
echo $cline;
?>
       <tr class="dataTableHeadingRow"> <!-- Header -->
        <td width="7%" class="dataTableHeadingContent" align="right"><?php 
echo TABLE_HEADING_SCART_ID;
?>
</td>
        <td width="1%" class="dataTableHeadingContent">&nbsp;</td>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:stats_recover_cart_sales.php

示例8: array

    $heading = array();
    $contents = array();
    switch ($action) {
        case 'confirm':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_NEWSFEED . '</b>');
            $contents = array('form' => oos_draw_form('newsfeed_manager', $aFilename['newsfeed_manager'], oos_get_all_get_params(array('nmID', 'action')) . 'nmID=' . $nmInfo->newsfeed_manager_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_DELETE_INTRO . '<br /><br /><b>' . $nmInfo->newsfeed_manager_firstname . ' ' . $nmInfo->newsfeed_manager_lastname . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['newsfeed_manager'], oos_get_all_get_params(array('nmID', 'action')) . 'nmID=' . $nmInfo->newsfeed_manager_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($nmInfo) && is_object($nmInfo)) {
                $heading[] = array('text' => '<b>' . $nmInfo->newsfeed_manager_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['newsfeed_manager'], oos_get_all_get_params(array('nmID', 'action')) . 'nmID=' . $nmInfo->newsfeed_manager_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['newsfeed_manager'], oos_get_all_get_params(array('nmID', 'action')) . 'nmID=' . $nmInfo->newsfeed_manager_id . '&action=confirm') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => '<br />' . TEXT_INFO_URL . ' ' . $nmInfo->newsfeed_manager_link);
                $contents[] = array('text' => '<br />' . TEXT_DATE_ADDED . ' ' . oos_date_short($nmInfo->newsfeed_manager_date_added));
                $contents[] = array('text' => '<br />' . TEXT_LAST_MODIFIED . ' ' . oos_date_short($nmInfo->newsfeed_manager_last_modified));
                $contents[] = array('text' => '<br />' . TEXT_CACHE_TIME . ' ' . $nmInfo->newsfeed_manager_refresh);
            }
            break;
    }
    if (!empty($heading) && !empty($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
    ?>
          </tr>
        </table></td>
      </tr>
<?php 
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:newsfeed_manager.php

示例9: round

     $tax = $tax_result->fields;
     $oosPrice = $oosPrice * ($tax[tax_rate] + 100) / 100;
     $oosPriceList = $oosPriceList * ($tax[tax_rate] + 100) / 100;
     if (isset($specials) && is_array($specials)) {
         $oosSpecialsPriceNetto = round($specials['specials_new_products_price'], TAX_DECIMAL_PLACES);
         $oosSpecialsPrice = round($specials['specials_new_products_price'] * ($tax[tax_rate] + 100) / 100, TAX_DECIMAL_PLACES);
     }
 }
 $oosPrice = round($oosPrice, TAX_DECIMAL_PLACES);
 $oosPriceList = round($oosPriceList, TAX_DECIMAL_PLACES);
 if (isset($specials) && is_array($specials)) {
     $contents[] = array('text' => '<br /><b>' . TEXT_PRODUCTS_PRICE_INFO . '</b> <span class="oldPrice">' . $currencies->format($oosPrice) . '</span> - ' . TEXT_TAX_INFO . '<span class="oldPrice">' . $currencies->format($oosPriceNetto) . '</span>');
     $contents[] = array('text' => '<b>' . TEXT_PRODUCTS_PRICE_INFO . '</b> <span class="specialPrice">' . $currencies->format($oosSpecialsPrice) . '</span> - ' . TEXT_TAX_INFO . '<span class="specialPrice">' . $currencies->format($oosSpecialsPriceNetto) . '</span>');
     $contents[] = array('text' => '' . TEXT_INFO_PERCENTAGE . ' ' . number_format(100 - $oosSpecialsPrice / $oosPrice * 100) . '%');
     if (date('Y-m-d') < $specials['expires_date']) {
         $contents[] = array('text' => '' . TEXT_INFO_EXPIRES_DATE . ' <b>' . oos_date_short($specials['expires_date']) . '</b>');
     }
 } else {
     $contents[] = array('text' => '<br /><b>' . TEXT_PRODUCTS_PRICE_INFO . '</b> ' . $currencies->format($oosPrice) . ' - ' . TEXT_TAX_INFO . $currencies->format($oosPriceNetto));
 }
 $contents[] = array('text' => '' . CAT_LIST_PRICE_TEXT . $currencies->format($oosPriceList) . ' - ' . TEXT_TAX_INFO . $currencies->format($oosPriceListNetto) . '<br /><br /><b>' . TEXT_PRODUCTS_DISCOUNT_ALLOWED . '</b> ' . number_format($pInfo->products_discount_allowed, 2) . '%<br /><br />' . TEXT_PRODUCTS_QUANTITY_INFO . ' ' . $pInfo->products_quantity . CAT_QUANTITY_MIN_TEXT . $pInfo->products_quantity_order_min . CAT_QUANTITY_UNITS_TEXT . $pInfo->products_quantity_order_units);
 if ($pInfo->products_discount1_qty > 0) {
     $oosDiscount1 = $pInfo->products_discount1;
     if (OOS_PRICE_IS_BRUTTO == '1') {
         $oosDiscount1Netto = round($oosDiscount1, TAX_DECIMAL_PLACES);
         $oosDiscount1 = $oosDiscount1 * ($tax[tax_rate] + 100) / 100;
     }
     $oosDiscount1 = round($oosDiscount1, TAX_DECIMAL_PLACES);
     $contents[] = array('text' => '<br /><br /><b>' . TEXT_DISCOUNTS_TITLE . ':</b>');
     $contents[] = array('text' => '&nbsp;&nbsp; ' . ($pInfo->products_discount1_qty < 10 ? '&nbsp;' : '') . $pInfo->products_discount1_qty . ' ' . $currencies->format($oosDiscount1) . ' - ' . TEXT_TAX_INFO . $currencies->format($oosDiscount1Netto));
 }
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:categories.php

示例10: switch

                    <tr class="dataTableRow" onMouseOver="this.className='dataTableRowOver';this.style.cursor='hand'" onMouseOut="this.className='dataTableRow'">
<?php
    switch ($srView) {
      case '3':
?>
                      <td class="dataTableContent" align="right"><?php echo oos_date_long(date("Y-m-d\ H:i:s", $sr->showDate)) . " - " . oos_date_short(date("Y-m-d\ H:i:s", $sr->showDateEnd)); ?></td>
<?php
        break;
      case '4':
?>
                      <td class="dataTableContent" align="right"><?php echo oos_date_long(date("Y-m-d\ H:i:s", $sr->showDate)); ?></td>
<?php
        break;
      default;
?>
                      <td class="dataTableContent" align="right"><?php echo oos_date_short(date("Y-m-d\ H:i:s", $sr->showDate)) . " - " . oos_date_short(date("Y-m-d\ H:i:s", $sr->showDateEnd)); ?></td>
<?php
    }
?>
                      <td class="dataTableContent" align="right"><?php echo $info[0]['order']; ?></td>
                      <td class="dataTableContent" align="right"><?php echo $info[$last - 1]['totitem']; ?></td>
                      <td class="dataTableContent" align="right"><?php echo $currencies->format($info[$last - 1]['totsum']);?></td>
                      <td class="dataTableContent" align="right"><?php echo $currencies->format($info[0]['shipping']);?></td>
                    </tr>
<?php
  } else {
    // csv export
    echo date(DATE_FORMAT, $sr->showDate) . SR_SEPARATOR1 . date(DATE_FORMAT, $sr->showDateEnd) . SR_SEPARATOR1;
    echo $info[0]['order'] . SR_SEPARATOR1;
    echo $info[$last - 1]['totitem'] . SR_SEPARATOR1;
    echo $currencies->format($info[$last - 1]['totsum']) . SR_SEPARATOR1;
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:stats_sales_report2.php

示例11: array

                    $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image(OOS_IMAGES . 'graphs/banner_infobox-' . $banner_id . '.' . $banner_extension));
                } else {
                    include 'includes/functions/function_graphs.php';
                    $contents[] = array('align' => 'center', 'text' => '<br />' . oos_banner_graph_info_box($bInfo->banners_id, '3'));
                }
                $contents[] = array('text' => oos_image(OOS_IMAGES . 'graph_hbar_blue.gif', 'Blue', '5', '5') . ' ' . TEXT_BANNERS_BANNER_VIEWS . '<br />' . oos_image(OOS_IMAGES . 'graph_hbar_red.gif', 'Red', '5', '5') . ' ' . TEXT_BANNERS_BANNER_CLICKS);
                if ($bInfo->date_scheduled) {
                    $contents[] = array('text' => '<br />' . sprintf(TEXT_BANNERS_SCHEDULED_AT_DATE, oos_date_short($bInfo->date_scheduled)));
                }
                if ($bInfo->expires_date) {
                    $contents[] = array('text' => '<br />' . sprintf(TEXT_BANNERS_EXPIRES_AT_DATE, oos_date_short($bInfo->expires_date)));
                } elseif ($bInfo->expires_impressions) {
                    $contents[] = array('text' => '<br />' . sprintf(TEXT_BANNERS_EXPIRES_AT_IMPRESSIONS, $bInfo->expires_impressions));
                }
                if ($bInfo->date_status_change) {
                    $contents[] = array('text' => '<br />' . sprintf(TEXT_BANNERS_STATUS_CHANGE, oos_date_short($bInfo->date_status_change)));
                }
            }
            break;
    }
    if (oos_is_not_null($heading) && oos_is_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
    ?>
          </tr>
        </table></td>
      </tr>
<?php 
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:banner_manager.php

示例12: oos_date_order_stat

                      AND ot.class = 'ot_total'";
    $orders_result = $dbconn->Execute($orders_sql);
    $orders = $orders_result->fields;

    // If we got a match, create the table entry to display the information
    if (isset($orders) && !empty($orders)) {
      $custknt++;
      $total_recovered += $orders['value'];
      $custknt % 2 ? $class = RCS_REPORT_EVEN_STYLE : $class = RCS_REPORT_ODD_STYLE;
      $custlist .= '<tr class="' . $class . '">' .
                   '<td class="datatablecontent" align="right">' . $inrec['recovercartsales_id'] . '</td>' .
                   '<td>&nbsp;</td>' .
                   '<td class="datatablecontent" align="center">' . oos_date_order_stat($inrec['recovercartsales_date_added']) . '</td>' .
                   '<td>&nbsp;</td>' .
                   '<td class="datatablecontent"><a href="' . oos_href_link_admin($aFilename['customers'], 'search=' . $crec['customers_lastname'], 'NONSSL') . '">' . $crec['customers_firstname'] . ' ' . $crec['customers_lastname'] . '</a></td>' .
                   '<td class="datatablecontent">' . oos_date_short($orders['date_purchased']) . '</td>' .
                   '<td class="datatablecontent" align="center">' . $orders['orders_status_name'] . '</td>' .
                   '<td class="datatablecontent" align="right">' . strip_tags($orders['order_total']) . '</td>' .
                   '<td>&nbsp;</td>'.
                   '</tr>';
    }

    // Move that ADOdb pointer!
    $result->MoveNext();
  }

  // Close result set
  $result->Close();

  $cline =  "<tr><td height=\"15\" COLSPAN=8> </td></tr>".
          "<tr>".
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:stats_recover_cart_sales.php

示例13: array

      $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br /><br /><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
      if (STOCK_CHECK == '1') {
          $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY);
      }
      $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete','delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['orders'], oos_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
      break;

    default:
      if (isset($oInfo) && is_object($oInfo)) {
        $heading[] = array('text' => '<b>[' . $oInfo->orders_id . ']&nbsp;&nbsp;' . oos_datetime_short($oInfo->date_purchased) . '</b>');

        $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['orders'], oos_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . oos_image_swap_button('edit','edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['orders'], oos_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . oos_image_swap_button('delete','delete_off.gif', IMAGE_DELETE) . '</a>');
        $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['invoice'], 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . oos_image_swap_button('invoice','invoice_off.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . oos_href_link_admin($aFilename['packingslip'], 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . oos_image_swap_button('packingslip','packingslip_off.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>');

        $contents[] = array('text' => '<br />' . TEXT_DATE_ORDER_CREATED . ' ' . oos_date_short($oInfo->date_purchased));
        if (!empty($oInfo->last_modified)) $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . oos_date_short($oInfo->last_modified));
        $contents[] = array('text' => '<br />' . TEXT_INFO_PAYMENT_METHOD . ' '  . $oInfo->payment_method);
      }
      break;
  }

  if ( (!empty($heading)) && (!empty($contents) ) ) {
    echo '            <td width="25%" valign="top">' . "\n";

    $box = new box;
    echo $box->infoBox($heading, $contents);

    echo '            </td>' . "\n";
  }
?>
          </tr>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:orders.php

示例14: array

    }
}
if (TICKET_USE_ORDER_IDS == '1' && isset($_SESSION['customer_id'])) {
    $orders_id = array();
    $orders_values = array();
    $orderstable = $oostable['orders'];
    $sql = "SELECT orders_id, date_purchased\n            FROM {$orderstable}\n            WHERE customers_id= '" . intval($_SESSION['customer_id']) . "'";
    $customers_orders_result = $dbconn->Execute($sql);
    if (isset($_GET['ticket_order_id'])) {
        $ticket_preselected_order_id = oos_var_prep_for_os($_GET['ticket_order_id']);
    }
    $orders_id[] = '';
    $orders_values[] = ' --- ';
    while ($customers_orders = $customers_orders_result->fields) {
        $orders_id[] = $customers_orders['orders_id'];
        $orders_values[] = $customers_orders['orders_id'] . "  (" . oos_date_short($customers_orders['date_purchased']) . ")";
        $customers_orders_result->MoveNext();
    }
}
// links breadcrumb
$oBreadcrumb->add($aLang['navbar_title'], oos_href_link($aPages['ticket_create']), bookmark);
$aOption['template_main'] = $sTheme . '/modules/ticket_create.html';
$aOption['page_heading'] = $sTheme . '/heading/page_heading.html';
$aOption['breadcrumb'] = 'default/system/breadcrumb.html';
$nPageType = OOS_PAGE_TYPE_SERVICE;
require 'includes/oos_system.php';
if (!isset($option)) {
    require 'includes/info_message.php';
    require 'includes/oos_blocks.php';
}
// assign Smarty variables;
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:ticket_create.php

示例15: switch

 switch ($coupon['coupon_type']) {
     case 'F':
         $text_coupon_help .= sprintf($aLang['text_coupon_help_fixed'], $oCurrencies->format($coupon['coupon_amount']));
         break;
     case 'P':
         $text_coupon_help .= sprintf($aLang['text_coupon_help_fixed'], number_format($coupon['coupon_amount'], 2) . '%');
         break;
     case 'S':
         $text_coupon_help .= $aLang['text_coupon_help_freeship'];
         break;
     default:
 }
 if ($coupon['coupon_minimum_order'] > 0) {
     $text_coupon_help .= sprintf($aLang['text_coupon_help_minorder'], $oCurrencies->format($coupon['coupon_minimum_order']));
 }
 $text_coupon_help .= sprintf($aLang['text_coupon_help_date'], oos_date_short($coupon['coupon_start_date']), oos_date_short($coupon['coupon_expire_date']));
 $text_coupon_help .= '<b>' . $aLang['text_coupon_help_restrict'] . '</b>';
 $text_coupon_help .= '<br /><br />' . $aLang['text_coupon_help_categories'];
 $couponstable = $oostable['coupons'];
 $sql = "SELECT restrict_to_categories\n             FROM {$couponstable}\n             WHERE coupon_id = '" . intval($nCouponID) . "'";
 $coupon_get = $dbconn->Execute($sql);
 $get_result = $coupon_get->fields;
 $cat_ids = preg_split("/[,]/", $get_result['restrict_to_categories']);
 for ($i = 0; $i < count($cat_ids); $i++) {
     $categoriestable = $oostable['categories'];
     $categories_descriptiontable = $oostable['categories_description'];
     $sql = "SELECT c.categories_id, c.categories_status, cd.categories_name\n                FROM {$categoriestable} c,\n                     {$categories_descriptiontable} cd\n                WHERE c.categories_status = '1'\n                  AND c.categories_id = cd.categories_id\n                  AND cd.categories_languages_id = '" . intval($nLanguageID) . "'\n                  AND cd.categories_id = '" . oos_db_input($cat_ids[$i]) . "'";
     $result = $dbconn->Execute($sql);
     if ($row = $result->fields) {
         $cats .= '<br />' . $row["categories_name"];
     }
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:popup_coupon_help.php


注:本文中的oos_date_short函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。