本文整理汇总了PHP中zen_date_short函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_date_short函数的具体用法?PHP zen_date_short怎么用?PHP zen_date_short使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_date_short函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $sInfo->sale_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_SALEMAKER, 'page=' . $_GET['page'] . '&sID=' . $sInfo->sale_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (is_object($sInfo)) {
$heading[] = array('text' => '<b>' . $sInfo->sale_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_SALEMAKER, 'page=' . $_GET['page'] . '&sID=' . $sInfo->sale_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_SALEMAKER, 'page=' . $_GET['page'] . '&sID=' . $sInfo->sale_id . '&action=copy') . '">' . zen_image_button('button_copy_to.gif', IMAGE_COPY_TO) . '</a> <a href="' . zen_href_link(FILENAME_SALEMAKER, 'page=' . $_GET['page'] . '&sID=' . $sInfo->sale_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($sInfo->sale_date_added));
$contents[] = array('text' => '' . TEXT_INFO_DATE_MODIFIED . ' ' . ($sInfo->sale_date_last_modified == '0001-01-01' ? TEXT_SALEMAKER_NEVER : zen_date_short($sInfo->sale_date_last_modified)));
$contents[] = array('text' => '' . TEXT_INFO_DATE_STATUS_CHANGE . ' ' . ($sInfo->sale_date_status_change == '0001-01-01' ? TEXT_SALEMAKER_NEVER : zen_date_short($sInfo->sale_date_status_change)));
$contents[] = array('text' => '<br>' . TEXT_INFO_DEDUCTION . ' ' . $sInfo->sale_deduction_value . ' ' . $deduction_type_array[$sInfo->sale_deduction_type]['text']);
$contents[] = array('text' => '' . TEXT_INFO_PRICERANGE_FROM . ' ' . $currencies->format($sInfo->sale_pricerange_from) . TEXT_INFO_PRICERANGE_TO . $currencies->format($sInfo->sale_pricerange_to));
$contents[] = array('text' => '<table class="dataTableContent" border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td valign="top">' . TEXT_INFO_SPECIALS_CONDITION . ' </td><td>' . $specials_condition_array[$sInfo->sale_specials_condition]['text'] . '</td></tr></table>');
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE_START . ' ' . ($sInfo->sale_date_start == '0001-01-01' ? TEXT_SALEMAKER_IMMEDIATELY : zen_date_short($sInfo->sale_date_start)));
$contents[] = array('text' => '' . TEXT_INFO_DATE_END . ' ' . ($sInfo->sale_date_end == '0001-01-01' ? TEXT_SALEMAKER_NEVER : zen_date_short($sInfo->sale_date_end)));
}
break;
}
if (zen_not_null($heading) && zen_not_null($contents)) {
echo ' <td valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
}
}
?>
</tr>
</table></td>
</tr>
</table></td>
示例2: zen_build_html_email_from_template
function zen_build_html_email_from_template($module = 'default', $block)
{
// Identify and Read the template file for the type of message being sent
$template_filename_base = DIR_FS_EMAIL_TEMPLATES . "email_template_";
if (file_exists($template_filename_base . str_replace(array('_extra', '_admin'), '', $module) . '.html')) {
$template_filename = $template_filename_base . str_replace(array('_extra', '_admin'), '', $module) . '.html';
} elseif (file_exists($template_filename_base . 'default' . '.html')) {
$template_filename = $template_filename_base . 'default' . '.html';
} else {
echo 'ERROR: The email template file for ' . $template_filename_base . ' or ' . $template_filename . ' cannot be found.';
return '';
// couldn't find template file, so return an empty string for html message.
}
if (!($fh = fopen($template_filename, 'rb'))) {
// note: the 'b' is for compatibility with Windows systems
echo 'ERROR: The email template file ' . $template_filename_base . ' or ' . $template_filename . ' cannot be opened';
}
$file_holder = fread($fh, filesize($template_filename));
fclose($fh);
//strip linebreaks and tabs out of the template
$file_holder = zen_convert_linefeeds(array("\r\n", "\n", "\r", "\t"), '', $file_holder);
//check for some specifics that need to be included with all messages
if ($block['EMAIL_STORE_NAME'] == '') {
$block['EMAIL_STORE_NAME'] = STORE_NAME;
}
if ($block['EMAIL_STORE_URL'] == '') {
$block['EMAIL_STORE_URL'] = '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . '">' . STORE_NAME . '</a>';
}
if ($block['EMAIL_STORE_OWNER'] == '') {
$block['EMAIL_STORE_OWNER'] = STORE_OWNER;
}
if ($block['EMAIL_FOOTER_COPYRIGHT'] == '') {
$block['EMAIL_FOOTER_COPYRIGHT'] = EMAIL_FOOTER_COPYRIGHT;
}
if ($block['EMAIL_DISCLAIMER'] == '') {
$block['EMAIL_DISCLAIMER'] = sprintf(EMAIL_DISCLAIMER, '<a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">' . STORE_OWNER_EMAIL_ADDRESS . ' </a>');
}
if ($block['EMAIL_SPAM_DISCLAIMER'] == '') {
$block['EMAIL_SPAM_DISCLAIMER'] = EMAIL_SPAM_DISCLAIMER;
}
if ($block['BASE_HREF'] == '') {
$block['BASE_HREF'] = HTTP_SERVER . DIR_WS_CATALOG;
}
if ($block['EMAIL_DATE_SHORT'] == '') {
$block['EMAIL_DATE_SHORT'] = zen_date_short(date("Y-m-d"));
}
if ($block['EMAIL_DATE_LONG'] == '') {
$block['EMAIL_DATE_LONG'] = zen_date_long(date("Y-m-d"));
}
if ($block['EXTRA_INFO'] == 'EXTRA_INFO') {
$block['EXTRA_INFO'] = '';
}
if (substr($module, -6) != '_extra' && $module != 'contact_us') {
$block['EXTRA_INFO'] = '';
}
$block['COUPON_BLOCK'] = '';
if ($block['COUPON_TEXT_VOUCHER_IS'] && $block['COUPON_TEXT_TO_REDEEM']) {
$block['COUPON_BLOCK'] = '<div class="coupon-block">' . $block['COUPON_TEXT_VOUCHER_IS'] . $block['COUPON_DESCRIPTION'] . '<br />' . $block['COUPON_TEXT_TO_REDEEM'] . '<span class="coupon-code">' . $block['COUPON_CODE'] . '</span></div>';
}
$block['GV_BLOCK'] = '';
if ($block['GV_WORTH'] && $block['GV_REDEEM'] && $block['GV_CODE_URL']) {
$block['GV_BLOCK'] = '<div class="gv-block">' . $block['GV_WORTH'] . '<br />' . $block['GV_REDEEM'] . $block['GV_CODE_URL'] . '<br />' . $block['GV_LINK_OTHER'] . '</div>';
}
//prepare the "unsubscribe" link:
if (function_exists(zen_catalog_href_link)) {
$block['UNSUBSCRIBE_LINK'] = str_replace("\n", '', TEXT_UNSUBSCRIBE) . ' <a href="' . zen_catalog_href_link(FILENAME_UNSUBSCRIBE, "unsubscribe_address=" . $block['EMAIL_TO_ADDRESS']) . '">' . zen_catalog_href_link(FILENAME_UNSUBSCRIBE, "unsubscribe_address=" . $block['EMAIL_TO_ADDRESS']) . '</a>';
} else {
$block['UNSUBSCRIBE_LINK'] = str_replace("\n", '', TEXT_UNSUBSCRIBE) . ' <a href="' . zen_href_link(FILENAME_UNSUBSCRIBE, "unsubscribe_address=" . $block['EMAIL_TO_ADDRESS']) . '">' . zen_href_link(FILENAME_UNSUBSCRIBE, "unsubscribe_address=" . $block['EMAIL_TO_ADDRESS']) . '</a>';
}
//now replace the $BLOCK_NAME items in the template file with the values passed to this function's array
foreach ($block as $key => $value) {
$file_holder = str_replace('$' . $key, $value, $file_holder);
}
//DEBUG -- to display preview on-screen
if (EMAIL_SYSTEM_DEBUG == 'on') {
echo $file_holder;
}
return $file_holder;
}
示例3: array
$contents = array('form' => zen_draw_form('group_pricing', FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $gInfo->group_name . '</b>');
if ($gInfo->customer_count > 0) {
$contents[] = array('text' => '<br>' . zen_draw_checkbox_field('delete_customers') . ' ' . TEXT_DELETE_PRICING_GROUP);
$contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_GROUP_MEMBERS, $gInfo->customer_count));
}
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($gInfo) && is_object($gInfo)) {
$heading[] = array('text' => '<b>' . $gInfo->group_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . zen_date_short($gInfo->date_added));
if (zen_not_null($gInfo->last_modified)) {
$contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . zen_date_short($gInfo->last_modified));
}
$contents[] = array('text' => '<br>' . TEXT_CUSTOMERS . ' ' . $gInfo->customer_count);
}
break;
}
if (zen_not_null($heading) && zen_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>
示例4: on
}
?>
</div>
</div>
<div id="colthree">
<div class="reportBox">
<div class="header"><?php
echo BOX_ENTRY_NEW_ORDERS;
?>
</div>
<?php
$orders = $db->Execute("select o.orders_id as orders_id, o.customers_name as customers_name, o.customers_id, o.date_purchased as date_purchased, o.currency, o.currency_value, ot.class, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id and class = 'ot_total') order by orders_id DESC limit 5");
while (!$orders->EOF) {
echo ' <div class="row"><span class="left"><a href="' . zen_href_link(FILENAME_ORDERS, 'oID=' . $orders->fields['orders_id'] . '&origin=' . FILENAME_DEFAULT, 'NONSSL') . '" class="contentlink"> ' . $orders->fields['customers_name'] . '</a></span><span class="center">' . $orders->fields['order_total'] . '</span><span class="rigth">' . "\n";
echo zen_date_short($orders->fields['date_purchased']);
echo ' </span></div>' . "\n";
$orders->MoveNext();
}
?>
</div>
</div>
<!-- The following copyright announcement is in compliance
to section 2c of the GNU General Public License, and
thus can not be removed, or can only be modified
appropriately.
Please leave this comment intact together with the
following copyright announcement. //-->
<div class="copyrightrow"><a href="http://www.zen-cart.cn" target="_blank"><img src="images/small_zen_logo.gif" alt="Zen Cart:: 电子商务的艺术" border="0" /></a><br /><br />版权所有 © 2003-<?php
示例5: zen_date_short
<td class="main" align="left"><?php
echo HEADER_PO_NUMBER;
?>
</td>
<td class="main" align="right"><?php
echo $so->purchase_order[0]['number'];
?>
</td>
</tr>
<tr>
<td class="main" align="left"><?php
echo HEADER_PO_INVOICE_DATE;
?>
</td>
<td class="main" align="right"><?php
echo zen_date_short($so->purchase_order[0]['posted']);
?>
</td>
</tr>
<tr>
<td class="main" align="left"><?php
echo HEADER_PO_TERMS;
?>
</td>
<td class="main" align="right"><?php
echo HEADER_PO_TERMS_LENGTH;
?>
</td>
</tr>
</table></td>
<?php
示例6: confirmation
/**
* Display Account Information on the Checkout Confirmation Page
*
* @return array
*/
function confirmation()
{
global $order;
$confirmation = array('fields' => array(array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_BANK_NAME, 'field' => $_POST['authorizenet_echeck_bank_name']), array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_BANK_ROUTING_CODE, 'field' => $_POST['authorizenet_echeck_bank_aba_code']), array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_BANK_ACCOUNT_TYPE, 'field' => $_POST['authorizenet_echeck_bank_acct_type']), array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_BANK_ACCOUNT_NUM, 'field' => $_POST['authorizenet_echeck_bank_acct_num']), array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_AUTHORIZATION_TITLE, 'field' => sprintf(MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_AUTHORIZATION_NOTICE, strtolower(zen_db_prepare_input($_POST['authorizenet_echeck_bank_acct_type'])), zen_date_short(date("Y-m-d")), $order->info['total']))));
return $confirmation;
}
示例7: sprintf
}
} else {
$email_text = sprintf(EMAIL_GREET_NONE, $firstname);
}
$html_msg['EMAIL_GREETING'] = str_replace('\\n', '', $email_text);
$html_msg['EMAIL_FIRST_NAME'] = $firstname;
$html_msg['EMAIL_LAST_NAME'] = $lastname;
// initial welcome
$email_text .= EMAIL_WELCOME;
$html_msg['EMAIL_WELCOME'] = str_replace('\\n', '', EMAIL_WELCOME);
if (NEW_SIGNUP_DISCOUNT_COUPON != '' and NEW_SIGNUP_DISCOUNT_COUPON != '0') {
$coupon_id = NEW_SIGNUP_DISCOUNT_COUPON;
$coupon = $db->Execute("select * from " . TABLE_COUPONS . " where coupon_id = '" . $coupon_id . "'");
$coupon_desc = $db->Execute("select coupon_description from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $coupon_id . "' and language_id = '" . $_SESSION['languages_id'] . "'");
$db->Execute("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $coupon_id . "', '0', 'Admin', '" . $email_address . "', now() )");
$text_coupon_help = sprintf(TEXT_COUPON_HELP_DATE, zen_date_short($coupon->fields['coupon_start_date']), zen_date_short($coupon->fields['coupon_expire_date']));
// if on, add in Discount Coupon explanation
// $email_text .= EMAIL_COUPON_INCENTIVE_HEADER .
$email_text .= "\n" . EMAIL_COUPON_INCENTIVE_HEADER . (!empty($coupon_desc->fields['coupon_description']) ? $coupon_desc->fields['coupon_description'] . "\n\n" : '') . $text_coupon_help . "\n\n" . strip_tags(sprintf(EMAIL_COUPON_REDEEM, ' ' . $coupon->fields['coupon_code'])) . EMAIL_SEPARATOR;
$html_msg['COUPON_TEXT_VOUCHER_IS'] = EMAIL_COUPON_INCENTIVE_HEADER;
$html_msg['COUPON_DESCRIPTION'] = !empty($coupon_desc->fields['coupon_description']) ? '<strong>' . $coupon_desc->fields['coupon_description'] . '</strong>' : '';
$html_msg['COUPON_TEXT_TO_REDEEM'] = str_replace("\n", '', sprintf(EMAIL_COUPON_REDEEM, ''));
$html_msg['COUPON_CODE'] = $coupon->fields['coupon_code'] . $text_coupon_help;
}
//endif coupon
if (NEW_SIGNUP_GIFT_VOUCHER_AMOUNT > 0) {
$coupon_code = zen_create_coupon_code();
$insert_query = $db->Execute("insert into " . TABLE_COUPONS . " (coupon_code, coupon_type, coupon_amount, date_created) values ('" . $coupon_code . "', 'G', '" . NEW_SIGNUP_GIFT_VOUCHER_AMOUNT . "', now())");
$insert_id = $db->Insert_ID();
$db->Execute("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $insert_id . "', '0', 'Admin', '" . $email_address . "', now() )");
// if on, add in GV explanation
示例8: zen_draw_input_field
?>
</label>
<?php
echo zen_draw_input_field('lastname', $account->fields['customers_lastname'], 'id="lastname"') . (zen_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="alert">' . ENTRY_LAST_NAME_TEXT . '</span>' : '');
?>
<br class="clearBoth" />
<?php
if (ACCOUNT_DOB == 'true') {
?>
<label class="inputLabel" for="dob"><?php
echo ENTRY_DATE_OF_BIRTH;
?>
</label>
<?php
echo zen_draw_input_field('dob', zen_date_short($account->fields['customers_dob']), 'id="dob"') . (zen_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="alert">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>' : '');
?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="email-address"><?php
echo ENTRY_EMAIL_ADDRESS;
?>
</label>
<?php
echo zen_draw_input_field('email_address', $account->fields['customers_email_address'], 'id="email-address"') . (zen_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>' : '');
?>
<br class="clearBoth" />
示例9: array
//bof 12-6ke
$category_query = $db->Execute("select * from " . TABLE_COUPON_RESTRICT . " where coupon_id = '" . $cInfo->coupon_id . "' and category_id != '0'");
if ($category_query->RecordCount() > 0) {
$cat_details = TEXT_SEE_RESTRICT;
}
//eof 12-6ke
$coupon_name = $db->Execute("select coupon_name\r\n from " . TABLE_COUPONS_DESCRIPTION . "\r\n where coupon_id = '" . $cInfo->coupon_id . "'\r\n and language_id = '" . $_SESSION['languages_id'] . "'");
$uses_coupon = $cInfo->uses_per_coupon;
$uses_user = $cInfo->uses_per_user;
if ($uses_coupon == 0 || $uses_coupon == '') {
$uses_coupon = TEXT_UNLIMITED;
}
if ($uses_user == 0 || $uses_user == '') {
$uses_user = TEXT_UNLIMITED;
}
$contents[] = array('text' => COUPON_NAME . ' :: ' . $coupon_name->fields['coupon_name'] . '<br />' . COUPON_AMOUNT . ' :: ' . $amount . '<br />' . COUPON_STARTDATE . ' :: ' . zen_date_short($cInfo->coupon_start_date) . '<br />' . COUPON_FINISHDATE . ' :: ' . zen_date_short($cInfo->coupon_expire_date) . '<br />' . COUPON_USES_COUPON . ' :: ' . $uses_coupon . '<br />' . COUPON_USES_USER . ' :: ' . $uses_user . '<br />' . COUPON_PRODUCTS . ' :: ' . $prod_details . '<br />' . COUPON_CATEGORIES . ' :: ' . $cat_details . '<br />' . DATE_CREATED . ' :: ' . zen_date_short($cInfo->date_created) . '<br />' . DATE_MODIFIED . ' :: ' . zen_date_short($cInfo->date_modified) . '<br /><br />' . COUPON_ZONE_RESTRICTION . ' :: ' . zen_get_geo_zone_name($cInfo->coupon_zone_restriction) . '<br /><br />' . ($cInfo->coupon_id != '' ? '<center><a href="' . zen_href_link(FILENAME_COUPON_ADMIN, 'action=email&cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . zen_image_button('button_email.gif', 'Email ' . TEXT_DISCOUNT_COUPON) . '</a>' . '<a href="' . zen_href_link(FILENAME_COUPON_ADMIN, 'action=voucheredit&cid=' . $cInfo->coupon_id . (isset($_GET['status']) ? '&status=' . $_GET['status'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image_button('button_edit.gif', 'Edit ' . TEXT_DISCOUNT_COUPON) . '</a>' . '<a href="' . zen_href_link(FILENAME_COUPON_ADMIN, 'action=voucherdelete&cid=' . $cInfo->coupon_id . (isset($_GET['status']) ? '&status=' . $_GET['status'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image_button('button_delete.gif', 'Delete ' . TEXT_DISCOUNT_COUPON) . '</a>' . '<br /><a href="' . zen_href_link('coupon_restrict.php', 'cid=' . $cInfo->coupon_id . (isset($_GET['status']) ? '&status=' . $_GET['status'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image_button('button_restrict.gif', 'Restrict') . '</a><a href="' . zen_href_link(FILENAME_COUPON_ADMIN, 'action=voucherreport&cid=' . $cInfo->coupon_id . (isset($_GET['status']) ? '&status=' . $_GET['status'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image_button('button_report.gif', TEXT_DISCOUNT_COUPON . ' Report') . '<a href="' . zen_href_link(FILENAME_COUPON_ADMIN, 'action=vouchercopy&cid=' . $cInfo->coupon_id . (isset($_GET['status']) ? '&status=' . $_GET['status'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image_button('button_copy.gif', 'Copy ' . TEXT_DISCOUNT_COUPON) . '</a></center>' : ' who ' . $cInfo->coupon_id . ' - ' . $_GET['cid']));
}
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>
示例10: array
if (isset($pInfo) && is_object($pInfo)) {
$heading[] = array('text' => '<strong>[' . $pInfo->id . '] ' . zen_datetime_short($pInfo->created_at) . '</strong>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=delete', 'NONSSL') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
if ($pInfo->status == 1) {
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=statusoff', 'NONSSL') . '">' . TEXT_STATUS_OFF . '</a>');
if ($pInfo->pending > 0) {
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=p2d') . '">' . TEXT_PENDING_TO_DEPOSIT . '</a>');
} elseif ($pInfo->deposit > 0) {
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=d2p') . '">' . TEXT_DEPOSIT_TO_PENDING . '</a>');
}
} else {
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=statuson', 'NONSSL') . '">' . TEXT_STATUS_ON . '</a>');
}
$contents[] = array('text' => '<br />' . TEXT_DATE_POINT_CREATED . ' ' . zen_date_short($pInfo->created_at));
if (zen_not_null($pInfo->updated_at)) {
$contents[] = array('text' => TEXT_DATE_POINT_UPDATED . ' ' . zen_date_short($pInfo->updated_at));
}
//$contents[] = array('text' => '<br />' . TEXT_INFO_POINT_CLASS . ' ' . $pInfo->class);
}
break;
}
if (zen_not_null($heading) && zen_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>
示例11: zen_get_products_base_price
if ($sInfo->products_priced_by_attribute == '1') {
$specials_current_price = zen_get_products_base_price($sInfo->products_id);
} else {
$specials_current_price = $sInfo->products_price;
}
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_PRODUCTS_PRICE_MANAGER, 'action=edit&products_filter=' . $sInfo->products_id) . '">' . zen_image_button('button_products_price_manager.gif', IMAGE_PRODUCTS_PRICE_MANAGER) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($sInfo->specials_date_added));
$contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . zen_date_short($sInfo->specials_last_modified));
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_info_image($sInfo->products_image, $sInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
$contents[] = array('text' => '<br>' . TEXT_INFO_ORIGINAL_PRICE . ' ' . $currencies->format($specials_current_price));
$contents[] = array('text' => '' . TEXT_INFO_NEW_PRICE . ' ' . $currencies->format($sInfo->specials_new_products_price));
$contents[] = array('text' => '' . TEXT_INFO_DISPLAY_PRICE . ' ' . zen_get_products_display_price($sInfo->products_id));
$contents[] = array('text' => '<br>' . TEXT_INFO_AVAILABLE_DATE . ' <b>' . (($specials->fields['specials_date_available'] != '0001-01-01' and $specials->fields['specials_date_available'] != '') ? zen_date_short($specials->fields['specials_date_available']) : TEXT_NONE) . '</b>');
$contents[] = array('text' => '<br>' . TEXT_INFO_EXPIRES_DATE . ' <b>' . (($specials->fields['expires_date'] != '0001-01-01' and $specials->fields['expires_date'] != '') ? zen_date_short($specials->fields['expires_date']) : TEXT_NONE) . '</b>');
$contents[] = array('text' => '' . TEXT_INFO_STATUS_CHANGE . ' ' . zen_date_short($sInfo->date_status_change));
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_CATEGORIES, '&action=new_product' . '&cPath=' . zen_get_product_path($sInfo->products_id, 'override') . '&pID=' . $sInfo->products_id . '&product_type=' . zen_get_products_type($sInfo->products_id)) . '">' . zen_image_button('button_edit_product.gif', IMAGE_EDIT_PRODUCT) . '<br />' . TEXT_PRODUCT_EDIT . '</a>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_SPECIALS, 'action=pre_add') . '">' . zen_image_button('button_select.gif', IMAGE_SELECT) . '<br />' . TEXT_INFO_MANUAL . '</a><br /><br />');
}
break;
}
if (zen_not_null($heading) && zen_not_null($contents)) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
}
}
?>
</tr>
</table></td>
示例12: while
// $Id$
//
?>
<!-- bof: upcoming_products -->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="tableHeading"><?php
echo TABLE_HEADING_UPCOMING_PRODUCTS;
?>
</td>
<td align="right" nowrap="nowrap" class="tableHeading"><?php
echo TABLE_HEADING_DATE_EXPECTED;
?>
</td>
</tr>
<?php
$row = 0;
while (!$expected->EOF) {
$row++;
if ($row / 2 == floor($row / 2)) {
echo ' <tr class="upcomingProducts-even">' . "\n";
} else {
echo ' <tr class="upcomingProducts-odd">' . "\n";
}
echo ' <td class="smallText"><a href="' . zen_href_link(zen_get_info_page($expected->fields['products_id']), 'products_id=' . $expected->fields['products_id']) . '">' . $expected->fields['products_name'] . '</a></td>' . "\n" . ' <td align="right" class="smallText">' . zen_date_short($expected->fields['date_expected']) . '</td>' . "\n" . ' </tr>' . "\n";
$expected->MoveNext();
}
?>
</table>
<!-- eof: upcoming_products -->
示例13: zen_href_link
<td colspan="2" align="left" class="smallText">
<?php
echo '<a href="' . zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params()) . '">' . TEXT_PRODUCT_INFO . '</a>';
?>
| <?php
echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . (int) $_GET['products_id'] . '&reviews_id=' . $reviews->fields['reviews_id']) . '">' . TEXT_READ_REVIEW . '</a>';
?>
</td>
</tr>
<tr>
<td class="main"><span class="greetUser"><?php
echo sprintf(TEXT_REVIEW_BY, zen_output_string_protected($reviews->fields['customers_name']));
?>
<span></td>
<td class="smallText" align="right"><?php
echo sprintf(TEXT_REVIEW_DATE_ADDED, zen_date_short($reviews->fields['date_added']));
?>
</td>
</tr>
<tr>
<td valign="top" class="main" colspan="2"><?php
echo zen_break_string(zen_output_string_protected(stripslashes(substr($reviews->fields['reviews_text'], 0, 100))), 60, '-<br />') . (strlen($reviews->fields['reviews_text']) >= 100 ? '..' : '') . '<br /><br /><i>' . sprintf(TEXT_REVIEW_RATING, zen_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $reviews->fields['reviews_rating'] . '.png', sprintf(TEXT_OF_5_STARS, $reviews->fields['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $reviews->fields['reviews_rating'])) . '</i>';
?>
</td>
</tr>
<?php
$reviews->MoveNext();
}
} else {
?>
<tr>
示例14: zen_get_product_path
} else {
// products_name or products_model
$cPath = zen_get_product_path($chk_orders_products->fields['products_id']);
}
?>
<tr class="dataTableRow">
<td class="dataTableContent"><?php
echo '<a href="' . zen_href_link(FILENAME_CUSTOMERS, zen_get_all_get_params(array('cID', 'action', 'page', 'products_filter')) . 'cID=' . $chk_orders_products->fields['customers_id'] . '&action=edit', 'NONSSL') . '">' . $chk_orders_products->fields['customers_id'] . '</a>';
?>
</td>
<td class="dataTableContent"><?php
echo '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action', 'page', 'products_filter')) . 'oID=' . $chk_orders_products->fields['orders_id'] . '&action=edit', 'NONSSL') . '">' . $chk_orders_products->fields['orders_id'] . '</a>';
?>
</td>
<td class="dataTableContent"><?php
echo zen_date_short($chk_orders_products->fields['date_purchased']);
?>
</td>
<td class="dataTableContent"><?php
echo $chk_orders_products->fields['customers_name'] . ($chk_orders_products->fields['customers_company'] != '' ? '<br />' . $chk_orders_products->fields['customers_company'] : '') . '<br />' . $chk_orders_products->fields['customers_email_address'];
?>
</td>
<td class="dataTableContent" align="center"><?php
echo $chk_orders_products->fields['products_quantity'];
?>
</td>
<td class="dataTableContent" align="center"><?php
echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_filter) . '">' . $chk_orders_products->fields['products_name'] . '</a>';
?>
</td>
<td class="dataTableContent" align="center"><?php
示例15: zen_image
<img title="Proof of Safety" alt="Security Testing" src="includes/templates/blackcool/images/renzhen.gif">
<!--<img src="https://www.paypal.com/en_US/i/logo/PayPal_mark_60x38.gif" border="0">-->
</span>
</p>
<p>
<span class="span_l">
<strong>
<?php
echo TEXT_INVENTORY;
?>
<?php
echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'stock_status_' . $products_stock_status . '.png');
?>
<?php
if ($products_stock_status == 3) {
echo '<span style="color:#FF6633;font-size:14px;">' . constant('TEXT_PRODUCTS_STOCK_STATUS_' . $products_stock_status) . zen_date_short($products_date_available) . '</span>';
} else {
echo constant('TEXT_PRODUCTS_STOCK_STATUS_' . $products_stock_status);
}
?>
</strong>
<a rel="nofollow" href="<?php
echo zen_href_link(FILENAME_CONTACT_US, 'action=stock_status');
?>
" target="_blank">
<?php
echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'stock_inquiry.png');
?>
</a>
</span>
</p>