本文整理汇总了PHP中vam_date_short函数的典型用法代码示例。如果您正苦于以下问题:PHP vam_date_short函数的具体用法?PHP vam_date_short怎么用?PHP vam_date_short使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了vam_date_short函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$amount = $currencies->format($amount);
}
if ($_GET['action'] == 'voucherdelete') {
$contents[] = array('text' => TEXT_CONFIRM_DELETE . '</br></br>' . '<a class="button" href="' . vam_href_link('coupon_admin.php', 'action=confirmdelete&cid=' . $_GET['cid'], 'NONSSL') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . ' ' . BUTTON_CONFIRM . '</span></a>' . '<a class="button" href="' . vam_href_link('coupon_admin.php', 'cid=' . $cInfo->coupon_id, 'NONSSL') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . ' ' . BUTTON_CANCEL . '</span></a>');
} else {
$prod_details = NONE;
if ($cInfo->restrict_to_products) {
$prod_details = '<A HREF="listproducts.php?cid=' . $cInfo->coupon_id . '" TARGET="_blank" ONCLICK="window.open(\'listproducts.php?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="listcategories.php?cid=' . $cInfo->coupon_id . '" TARGET="_blank" ONCLICK="window.open(\'listcategories.php?cid=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>';
}
$coupon_name_query = vam_db_query("select coupon_name from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $cInfo->coupon_id . "' and language_id = '" . $_SESSION['languages_id'] . "'");
$coupon_name = vam_db_fetch_array($coupon_name_query);
$contents[] = array('text' => COUPON_NAME . ' :: ' . $coupon_name['coupon_name'] . '<br />' . COUPON_AMOUNT . ' :: ' . $amount . '<br />' . COUPON_STARTDATE . ' :: ' . vam_date_short($cInfo->coupon_start_date) . '<br />' . COUPON_FINISHDATE . ' :: ' . vam_date_short($cInfo->coupon_expire_date) . '<br />' . COUPON_USES_COUPON . ' :: ' . $cInfo->uses_per_coupon . '<br />' . COUPON_USES_USER . ' :: ' . $cInfo->uses_per_user . '<br />' . COUPON_PRODUCTS . ' :: ' . $prod_details . '<br />' . COUPON_CATEGORIES . ' :: ' . $cat_details . '<br />' . DATE_CREATED . ' :: ' . vam_date_short($cInfo->date_created) . '<br />' . DATE_MODIFIED . ' :: ' . vam_date_short($cInfo->date_modified) . '<br /><br />' . '<table border=0 align=center><tr><td align="center"><a class="button" href="' . vam_href_link('coupon_admin.php', 'action=email&cid=' . $cInfo->coupon_id, 'NONSSL') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/email.png', '', '12', '12') . ' ' . BUTTON_EMAIL . '</span></a></td></tr><tr><td align="center">' . '<a class="button" href="' . vam_href_link('coupon_admin.php', 'action=voucheredit&cid=' . $cInfo->coupon_id, 'NONSSL') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/edit.png', '', '12', '12') . ' ' . BUTTON_EDIT . '</span></a></td></tr><tr><td align="center">' . '<a class="button" href="' . vam_href_link('coupon_admin.php', 'action=voucherdelete&cid=' . $cInfo->coupon_id, 'NONSSL') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . ' ' . BUTTON_DELETE . '</span></a></td></tr><tr><td align="center">' . '<a class="button" href="' . vam_href_link('coupon_admin.php', 'action=voucherreport&cid=' . $cInfo->coupon_id, 'NONSSL') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/stat.png', '', '12', '12') . ' ' . BUTTON_REPORT . '</span></a></center></td></tr>');
}
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>
示例2: vam_href_link
}
?>
<td class="dataTableContent"><?php
echo '<a href="' . vam_href_link(FILENAME_AFFILIATE_PAYMENT, vam_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . vam_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ' . $payments['affiliate_firstname'] . ' ' . $payments['affiliate_lastname'];
?>
</td>
<td class="dataTableContent" align="right"><?php
echo $currencies->format(strip_tags($payments['affiliate_payment']));
?>
</td>
<td class="dataTableContent" align="right"><?php
echo $currencies->format(strip_tags($payments['affiliate_payment'] + $payments['affiliate_payment_tax']));
?>
</td>
<td class="dataTableContent" align="center"><?php
echo vam_date_short($payments['affiliate_payment_date']);
?>
</td>
<td class="dataTableContent" align="right"><?php
echo $payments['affiliate_payment_status_name'];
?>
</td>
<td class="dataTableContent" align="right"><?php
if (is_object($pInfo) && $payments['affiliate_payment_id'] == $pInfo->affiliate_payment_id) {
echo vam_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', '');
} else {
echo '<a href="' . vam_href_link(FILENAME_AFFILIATE_PAYMENT, vam_get_all_get_params(array('pID')) . 'pID=' . $payments['affiliate_payment_id']) . '">' . vam_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
}
?>
</td>
</tr>
示例3: inwords
$vamTemplate->assign('7', MODULE_PAYMENT_SCHET_7);
$vamTemplate->assign('8', MODULE_PAYMENT_SCHET_8);
$vamTemplate->assign('9', MODULE_PAYMENT_SCHET_9);
$vamTemplate->assign('10', MODULE_PAYMENT_SCHET_10);
$vamTemplate->assign('11', MODULE_PAYMENT_SCHET_11);
$vamTemplate->assign('12', MODULE_PAYMENT_SCHET_12);
$vamTemplate->assign('13', $order->customer['firstname']);
$vamTemplate->assign('14', $order->customer['lastname']);
$iw = new inwords();
$vamTemplate->assign('summa', $iw->get($order->info['total_value']));
$vamTemplate->assign('extra_fields_data', vam_get_extra_fields_order($order_check['customers_id'], $_SESSION['languages_id']));
// assign language to template for caching
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('charset', $_SESSION['language_charset']);
$vamTemplate->assign('oID', (int) $_GET['oID']);
if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
include DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
$payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE'));
}
$vamTemplate->assign('PAYMENT_METHOD', $payment_method);
$vamTemplate->assign('COMMENT', $order->info['comments']);
$vamTemplate->assign('DATE', vam_date_short($order->info['date_purchased']));
$path = DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/';
$vamTemplate->assign('tpl_path', $path);
// dont allow cache
$vamTemplate->caching = false;
$vamTemplate->display(CURRENT_TEMPLATE . '/module/schet.html');
} else {
$vamTemplate->assign('ERROR', 'You are not allowed to view this order!');
$vamTemplate->display(CURRENT_TEMPLATE . '/module/error_message.html');
}
示例4: while
while ($one = vam_db_fetch_array($query, true)) {
//
$qI = 0;
$qIcon = '';
if ($qI = strpos($one['content'], 'src="')) {
$qI = $qI + 5;
$qIcon = substr($one['content'], $qI);
$qI = strpos($qIcon, '"');
$qIcon = '<img class="newsImage" src="' . substr($qIcon, 0, $qI) . '" alt="Image" />';
}
//
$SEF_parameter = '';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
$SEF_parameter = '&headline=' . vam_cleanName($one['headline']);
}
$module_content[] = array('NEWS_HEADING' => $one['headline'], 'NEWS_CONTENT' => $one['content'], 'NEWS_ID' => $one['news_id'], 'NEWS_ICON' => $qIcon, 'NEWS_DATA' => vam_date_short($one['date_added']), 'NEWS_LINK_MORE' => vam_href_link(FILENAME_NEWS, 'news_id=' . $one['news_id'] . $SEF_parameter, 'NONSSL'));
}
if (sizeof($module_content) > 0) {
$module->assign('NEWS_LINK', vam_href_link(FILENAME_NEWS));
$module->assign('language', $_SESSION['language']);
$module->assign('module_content', $module_content);
// set cache ID
if (!CacheCheck()) {
$module->caching = 0;
$module = $module->fetch(CURRENT_TEMPLATE . '/module/latest_news_default.html');
} else {
$module->caching = 1;
$module->cache_lifetime = CACHE_LIFETIME;
$module->cache_modified_check = CACHE_CHECK;
$module = $module->fetch(CURRENT_TEMPLATE . '/module/latest_news_default.html', $cache_id);
}
示例5: vamTemplate
(c) 2004 xt:Commerce (upcoming_products.php,v 1.7 2003/08/22); xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$module = new vamTemplate();
$module->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
// include needed functions
require_once DIR_FS_INC . 'vam_date_short.inc.php';
$module_content = array();
//fsk18 lock
$fsk_lock = '';
if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') {
$fsk_lock = ' and p.products_fsk18!=1';
}
if (GROUP_CHECK == 'true') {
$group_check = "and p.group_permission_" . $_SESSION['customers_status']['customers_status_id'] . "=1 ";
}
$expected_query = vamDBquery("select p.products_id,\n pd.products_name,\n products_date_available as date_expected from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd\n where to_days(products_date_available) >= to_days(now())\n and p.products_id = pd.products_id\n " . $group_check . "\n " . $fsk_lock . "\n and pd.language_id = '" . (int) $_SESSION['languages_id'] . "'\n order by " . EXPECTED_PRODUCTS_FIELD . " " . EXPECTED_PRODUCTS_SORT . "\n limit " . MAX_DISPLAY_UPCOMING_PRODUCTS);
if (vam_db_num_rows($expected_query, true) > 0) {
$row = 0;
while ($expected = vam_db_fetch_array($expected_query, true)) {
$row++;
$module_content[] = array('PRODUCTS_LINK' => vam_href_link(FILENAME_PRODUCT_INFO, vam_product_link($expected['products_id'], $expected['products_name'])), 'PRODUCTS_NAME' => $expected['products_name'], 'PRODUCTS_DATE' => vam_date_short($expected['date_expected']));
}
$module->assign('language', $_SESSION['language']);
$module->assign('module_content', $module_content);
// set cache ID
$module->caching = 0;
$module = $module->fetch(CURRENT_TEMPLATE . '/module/upcoming_products.html');
$default->assign('MODULE_upcoming_products', $module);
}
示例6: vam_href_link
if ($downloads_values['download_is_pin'] == 1) {
//PIN processing
$pinstring = $downloads_values['download_pin_code'];
$box_content .= $downloads_values['products_name'] . ': ' . $pinstring . '<br />';
} else {
//usual stuff
// The link will appear only if:
// - Download remaining count is > 0, AND
// - The file is present in the DOWNLOAD directory, AND EITHER
// - No expiry date is enforced (maxdays == 0), OR
// - The expiry date is not reached
if ($downloads_values['download_count'] > 0 && file_exists(DIR_FS_DOWNLOAD . $downloads_values['orders_products_filename']) && ($downloads_values['download_maxdays'] == 0 || $download_timestamp > time())) {
$box_content .= BOX_TEXT_DOWNLOAD . '<br /><br /><a href="' . vam_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads_values['orders_products_download_id']) . '">' . $downloads_values['products_name'] . '</a><br /><a href="' . vam_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads_values['orders_products_download_id']) . '"><span class="Requirement"><strong>' . BOX_TEXT_DOWNLOAD_NOW . '</strong></span></a><br /><br />';
} else {
$box_content .= $downloads_values['products_name'];
}
$box_content .= TABLE_HEADING_DOWNLOAD_DATE . vam_date_short($download_expiry) . '<br />';
$box_content .= TABLE_HEADING_DOWNLOAD_COUNT . $downloads_values['download_count'] . '<br /><br />';
}
}
if (!strstr($_SERVER['SCRIPT_NAME'], FILENAME_ACCOUNT_HISTORY_INFO)) {
$box_content .= TEXT_FOOTER_DOWNLOAD . '<a href="' . vam_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . TEXT_DOWNLOAD_MY_ACCOUNT . '</a>';
}
$box->assign('BOX_CONTENT', $box_content);
$box->caching = 0;
$box->assign('language', $_SESSION['language']);
$box_download = $box->fetch(CURRENT_TEMPLATE . '/boxes/box_download.html');
$vamTemplate->assign('box_DOWNLOADS', $box_download);
}
}
// /downloads
示例7: array
$heading = array();
$contents = array();
$heading[] = array('text' => '[' . $gInfo->coupon_id . '] ' . ' ' . $currencies->format($gInfo->coupon_amount));
$redeem_query = vam_db_query("select * from " . TABLE_COUPON_REDEEM_TRACK . " where coupon_id = '" . $gInfo->coupon_id . "'");
$redeemed = 'No';
if (vam_db_num_rows($redeem_query) > 0) {
$redeemed = 'Yes';
}
$contents[] = array('text' => TEXT_INFO_SENDERS_ID . ' ' . $gInfo->customer_id_sent);
$contents[] = array('text' => TEXT_INFO_AMOUNT_SENT . ' ' . $currencies->format($gInfo->coupon_amount));
$contents[] = array('text' => TEXT_INFO_DATE_SENT . ' ' . vam_date_short($gInfo->date_sent));
$contents[] = array('text' => TEXT_INFO_VOUCHER_CODE . ' ' . $gInfo->coupon_code);
$contents[] = array('text' => TEXT_INFO_EMAIL_ADDRESS . ' ' . $gInfo->emailed_to);
if ($redeemed == 'Yes') {
$redeem = vam_db_fetch_array($redeem_query);
$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_REDEEMED . ' ' . vam_date_short($redeem['redeem_date']));
$contents[] = array('text' => TEXT_INFO_IP_ADDRESS . ' ' . $redeem['redeem_ip']);
$contents[] = array('text' => TEXT_INFO_CUSTOMERS_ID . ' ' . $redeem['customer_id']);
} else {
$contents[] = array('text' => '<br />' . TEXT_INFO_NOT_REDEEMED);
}
if (vam_not_null($heading) && vam_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>
示例8: array
//Single Product Actions
$contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%; margin-top: 5px;">' . TEXT_ACTIVE_ELEMENT . '</div>');
$contents[] = array('align' => 'center', 'text' => '<table border=0><tr><td align="center"><a class="button" href="' . vam_href_link(FILENAME_CATEGORIES, vam_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=new_product') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/edit.png', '', '12', '12') . ' ' . BUTTON_EDIT . '</span></a></td></tr><tr><td align="center"><form action="' . FILENAME_NEW_ATTRIBUTES . '" name="edit_attributes" method="post"><input type="hidden" name="action" value="edit"><input type="hidden" name="current_product_id" value="' . $pInfo->products_id . '"><input type="hidden" name="cpath" value="' . $cPath . '"><span class="button"><button type="submit" value="' . BUTTON_EDIT_ATTRIBUTES . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/add.png', '', '12', '12') . ' ' . BUTTON_EDIT_ATTRIBUTES . '</button></span></form></td></tr><tr><td align="center" style="text-align: center;"><form action="' . FILENAME_CATEGORIES . '" name="edit_crossselling" method="GET"><input type="hidden" name="action" value="edit_crossselling"><input type="hidden" name="current_product_id" value="' . $pInfo->products_id . '"><input type="hidden" name="cpath" value="' . $cPath . '"><span class="button"><button type="submit" value="' . BUTTON_EDIT_CROSS_SELLING . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/add.png', '', '12', '12') . ' ' . BUTTON_EDIT_CROSS_SELLING . '</button></span></form></td></tr></table>');
//Insert new Element Actions
$contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%; margin-top: 5px;">' . TEXT_INSERT_ELEMENT . '</div>');
if (!$_GET['search']) {
$contents[] = array('align' => 'center', 'text' => '<table border=0><tr><td align="center"><a class="button" href="' . vam_href_link(FILENAME_CATEGORIES, vam_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_category') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/categories.png', '', '12', '12') . ' ' . BUTTON_NEW_CATEGORIES . '</span></a></td></tr><tr><td align="center"><a class="button" href="' . vam_href_link(FILENAME_CATEGORIES, vam_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_product') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/products.png', '', '12', '12') . ' ' . BUTTON_NEW_PRODUCTS . '</span></a></td></tr></table>');
}
//Informations
$contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%; margin-top: 5px;">' . TEXT_INFORMATIONS . '</div>');
$contents[] = array('text' => '<div style="padding-left: 30px;">' . TEXT_DATE_ADDED . ' ' . vam_date_short($pInfo->products_date_added) . '</div>');
if (vam_not_null($pInfo->products_last_modified)) {
$contents[] = array('text' => '<div style="padding-left: 30px;">' . TEXT_LAST_MODIFIED . ' ' . vam_date_short($pInfo->products_last_modified) . '</div>');
}
if (date('Y-m-d') < $pInfo->products_date_available) {
$contents[] = array('text' => '<div style="padding-left: 30px;">' . TEXT_DATE_AVAILABLE . ' ' . vam_date_short($pInfo->products_date_available) . '</div>');
}
// START IN-SOLUTION Berechung des Bruttopreises
$price = $pInfo->products_price;
$price = vam_round($price, PRICE_PRECISION);
$price_string = '' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($price);
if (PRICE_IS_BRUTTO == 'true' && ($_GET['read'] == 'only' || $_GET['action'] != 'new_product_preview')) {
$price_netto = vam_round($price, PRICE_PRECISION);
$tax_query = vam_db_query("select tax_rate from " . TABLE_TAX_RATES . " where tax_class_id = '" . $pInfo->products_tax_class_id . "' ");
$tax = vam_db_fetch_array($tax_query);
$price = $price * ($tax[tax_rate] + 100) / 100;
$price_string = '' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($price) . ' - ' . TXT_NETTO . $currencies->format($price_netto);
}
$contents[] = array('text' => '<div style="padding-left: 30px;">' . $price_string . '</div><div style="padding-left: 30px;">' . TEXT_PRODUCTS_DISCOUNT_ALLOWED_INFO . ' ' . $pInfo->products_discount_allowed . '</div><div style="padding-left: 30px;">' . TEXT_PRODUCTS_QUANTITY_INFO . ' ' . $pInfo->products_quantity . '</div>');
// END IN-SOLUTION
//$contents[] = array('text' => '<br />' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($pInfo->products_price) . '<br />' . TEXT_PRODUCTS_QUANTITY_INFO . ' ' . $pInfo->products_quantity);
示例9: array
}
if ($cInfo->customers_id != 1) {
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . vam_href_link(FILENAME_CUSTOMERS, vam_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . ' ' . BUTTON_DELETE . '</span></a>');
}
if ($cInfo->customers_id != 1) {
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . vam_href_link(FILENAME_CUSTOMERS, vam_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=editstatus') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/customer_status.png', '', '12', '12') . ' ' . BUTTON_STATUS . '</span></a>');
}
// elari cs v3.x changed for added accounting module
if ($cInfo->customers_id != 1) {
$contents[] = array('align' => 'center', 'text' => '<a class="button" ' . ($cs_id != 0 ? 'onClick="alert(\'Сначала определите пользователя в группу Админ (кнопка Статус покупателя)!\\nДоступ в админку можно настраивать только для пользователей, состоящих в группе Админ.\');"' : '') . ' href="' . vam_href_link(FILENAME_ACCOUNTING, vam_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/gear.png', '', '12', '12') . ' ' . BUTTON_ACCOUNTING . '</span></a>');
}
// elari cs v3.x changed for added iplog module
$contents[] = array('align' => 'center', 'text' => '<table><tr><td style="text-align: center;"><a class="button" href="' . vam_href_link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/categories.png', '', '12', '12') . ' ' . BUTTON_ORDERS . '</span></a></td><td style="text-align: center;"><a class="button" href="' . vam_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/email.png', '', '12', '12') . ' ' . BUTTON_EMAIL . '</span></a></td></tr><tr><td style="text-align: center;"><a class="button" href="' . vam_href_link(FILENAME_CUSTOMERS, vam_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=iplog') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/ip.png', '', '12', '12') . ' ' . BUTTON_IPLOG . '</span></a></td><td style="text-align: center;"><a class="button" href="' . vam_href_link(FILENAME_CUSTOMERS, vam_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=new_order') . '" onClick="return confirm(\'' . NEW_ORDER . '\')"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/add.png', '', '12', '12') . ' ' . BUTTON_NEW_ORDER . '</span></a></td></tr></table>');
$contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_CREATED . ' ' . vam_date_short($cInfo->date_account_created));
$contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . vam_date_short($cInfo->date_account_last_modified));
$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' ' . vam_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);
}
if ($_GET['action'] == 'iplog') {
if (isset($_GET['cID'])) {
$contents[] = array('text' => '<br /><b>IPLOG :');
$customers_id = vam_db_prepare_input($_GET['cID']);
$customers_log_info_array = vam_get_user_info($customers_id);
if (vam_db_num_rows($customers_log_info_array)) {
while ($customers_log_info = vam_db_fetch_array($customers_log_info_array)) {
$contents[] = array('text' => '<tr>' . "\n" . '<td class="smallText">' . $customers_log_info['customers_ip_date'] . ' ' . $customers_log_info['customers_ip'] . ' ' . $customers_log_info['customers_advertiser']);
}
}
}
示例10: vam_date_long
?>
</td>
<?php
break;
case '4':
?>
<td class="dataTableContent" align="right"><?php
echo vam_date_long(date("Y-m-d\\ H:i:s", $sr->showDate));
?>
</td>
<?php
break;
default:
?>
<td class="dataTableContent" align="right"><?php
echo vam_date_short(date("Y-m-d\\ H:i:s", $sr->showDate)) . " - " . vam_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']);
示例11: Copyright
Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$box = new vamTemplate();
$box->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$sql = "\n SELECT\n faq_id,\n question,\n answer,\n date_added\n FROM " . TABLE_FAQ . "\n WHERE\n status = '1'\n and language = '" . (int) $_SESSION['languages_id'] . "'\n ORDER BY date_added DESC\n LIMIT " . MAX_DISPLAY_FAQ . "\n ";
$module_content = array();
$query = vamDBquery($sql);
while ($one = vam_db_fetch_array($query, true)) {
$SEF_parameter = '';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
$SEF_parameter = '&question=' . vam_cleanName($one['question']);
}
$module_content[] = array('FAQ_QUESTION' => $one['question'], 'FAQ_ANSWER' => $one['answer'], 'FAQ_ID' => $one['faq_id'], 'FAQ_DATA' => vam_date_short($one['date_added']), 'FAQ_LINK_MORE' => vam_href_link(FILENAME_FAQ, 'faq_id=' . $one['faq_id'] . $SEF_parameter, 'NONSSL'));
}
if (sizeof($module_content) > 0) {
$box->assign('FAQ_LINK', vam_href_link(FILENAME_FAQ));
$box->assign('language', $_SESSION['language']);
$box->assign('module_content', $module_content);
// set cache ID
if (USE_CACHE == 'false') {
$box->caching = 0;
$module = $box->fetch(CURRENT_TEMPLATE . '/boxes/box_faq.html');
} else {
$box->caching = 1;
$box->cache_lifetime = CACHE_LIFETIME;
$box->cache_modified_check = CACHE_CHECK;
$module = $box->fetch(CURRENT_TEMPLATE . '/boxes/box_faq.html', $cache_id);
}
示例12: switch
switch ($coupon['coupon_type']) {
case 'F':
$text_coupon_help .= sprintf(TEXT_COUPON_HELP_FIXED, $vamPrice->Format($coupon['coupon_amount'], true));
break;
case 'P':
$text_coupon_help .= sprintf(TEXT_COUPON_HELP_FIXED, number_format($coupon['coupon_amount'], 2) . '%');
break;
case 'S':
$text_coupon_help .= TEXT_COUPON_HELP_FREESHIP;
break;
default:
}
if ($coupon['coupon_minimum_order'] > 0) {
$text_coupon_help .= sprintf(TEXT_COUPON_HELP_MINORDER, $vamPrice->Format($coupon['coupon_minimum_order'], true));
}
$text_coupon_help .= sprintf(TEXT_COUPON_HELP_DATE, vam_date_short($coupon['coupon_start_date']), vam_date_short($coupon['coupon_expire_date']));
$text_coupon_help .= '<b>' . TEXT_COUPON_HELP_RESTRICT . '</b>';
$text_coupon_help .= '<br /><br />' . TEXT_COUPON_HELP_CATEGORIES;
$coupon_get = vam_db_query("select restrict_to_categories from " . TABLE_COUPONS . " where coupon_id='" . (int) $_GET['cID'] . "'");
$get_result = vam_db_fetch_array($coupon_get);
$cat_ids = preg_split("/[,]/", $get_result['restrict_to_categories']);
for ($i = 0; $i < count($cat_ids); $i++) {
$result = vam_db_query("SELECT * FROM " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd WHERE c.categories_id = cd.categories_id and cd.language_id = '" . $_SESSION['languages_id'] . "' and c.categories_id='" . $cat_ids[$i] . "'");
if ($row = vam_db_fetch_array($result)) {
$cats .= '<br />' . $row["categories_name"];
}
}
if ($cats == '') {
$cats = '<br />NONE';
}
$text_coupon_help .= $cats;
示例13:
}
}
if (strlen($a_firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {
$error = true;
$entry_firstname_error = true;
} else {
$entry_firstname_error = false;
}
if (strlen($a_lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {
$error = true;
$entry_lastname_error = true;
} else {
$entry_lastname_error = false;
}
if (ACCOUNT_DOB == 'true') {
if (checkdate(substr(vam_date_short($a_dob), 4, 2), substr(vam_date_short($a_dob), 6, 2), substr(vam_date_short($a_dob), 0, 4))) {
$entry_date_of_birth_error = false;
} else {
$error = true;
$entry_date_of_birth_error = true;
}
}
if (strlen($a_email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) {
$error = true;
$entry_email_address_error = true;
} else {
$entry_email_address_error = false;
}
if (!vam_validate_email($a_email_address)) {
$error = true;
$entry_email_address_check_error = true;
示例14: vamTemplate
require 'includes/application_top.php';
// create template elements
$vamTemplate = new vamTemplate();
// include boxes
require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
// include needed functions
require_once DIR_FS_INC . 'vam_validate_email.inc.php';
if (GROUP_CHECK == 'true') {
$group_check = "and group_ids LIKE '%c_" . $_SESSION['customers_status']['customers_status_id'] . "_group%'";
}
$shop_content_query = vam_db_query("SELECT\n content_id,\n content_title,\n content_group,\n content_heading,\n content_text,\n content_file\n FROM " . TABLE_CONTENT_MANAGER . "\n WHERE content_group='" . (int) $_GET['coID'] . "' " . $group_check . "\n AND languages_id='" . (int) $_SESSION['languages_id'] . "'");
$shop_content_data = vam_db_fetch_array($shop_content_query);
$shop_content_sub_pages_query = vam_db_query("SELECT\n content_id,\n content_title,\n content_group,\n content_heading,\n content_text,\n content_file\n FROM " . TABLE_CONTENT_MANAGER . "\n WHERE parent_id='" . $shop_content_data['content_id'] . "' " . $group_check . "\n AND languages_id='" . (int) $_SESSION['languages_id'] . "'");
$sub_pages_content = array();
while ($shop_content_sub_pages_data = vam_db_fetch_array($shop_content_sub_pages_query)) {
$sub_pages_content[] = array('PAGE_ID' => $shop_content_sub_pages_data['content_id'], 'PAGE_TITLE' => $shop_content_sub_pages_data['content_title'], 'PAGE_HEADING' => $shop_content_sub_pages_data['content_heading'], 'PAGE_CONTENT' => vam_date_short($one['content_text']), 'PAGE_LINK' => vam_href_link(FILENAME_CONTENT, 'coID=' . $shop_content_sub_pages_data['content_group']));
}
$vamTemplate->assign('sub_pages_content', $sub_pages_content);
$breadcrumb->add($shop_content_data['content_title'], vam_href_link(FILENAME_CONTENT, 'coID=' . (int) $_GET['coID']));
if ($_GET['coID'] != 7) {
require DIR_WS_INCLUDES . 'header.php';
}
if ($_GET['coID'] == 7 && $_GET['action'] == 'success') {
require DIR_WS_INCLUDES . 'header.php';
}
$vamTemplate->assign('CONTENT_HEADING', $shop_content_data['content_heading']);
if ($_GET['coID'] == 7) {
$error = false;
if (isset($_GET['action']) && $_GET['action'] == 'send') {
if (vam_validate_email(trim($_POST['email']))) {
vam_php_mail($_POST['email'], $_POST['name'], CONTACT_US_EMAIL_ADDRESS, CONTACT_US_NAME, CONTACT_US_FORWARDING_STRING, $_POST['email'], $_POST['name'], '', '', CONTACT_US_EMAIL_SUBJECT, nl2br($_POST['message_body']), $_POST['message_body']);
示例15: while
$number_of_sales = '0';
while ($affiliate_sales = vam_db_fetch_array($affiliate_sales_values)) {
$number_of_sales++;
if ($number_of_sales / 2 == floor($number_of_sales / 2)) {
echo ' <tr class="dataTableRowSelected">';
} else {
echo ' <tr class="dataTableRow">';
}
$link_to = '<a href="orders.php?action=edit&oID=' . $affiliate_sales['affiliate_orders_id'] . '">' . $affiliate_sales['affiliate_orders_id'] . '</a>';
?>
<td class="dataTableContent"><?php
echo $affiliate_sales['affiliate_firstname'] . " " . $affiliate_sales['affiliate_lastname'];
?>
</td>
<td class="dataTableContent" align="center"><?php
echo vam_date_short($affiliate_sales['affiliate_date']);
?>
</td>
<td class="dataTableContent" align="right"><?php
echo $link_to;
?>
</td>
<td class="dataTableContent" align="right"> <?php
echo $currencies->display_price($affiliate_sales['affiliate_value'], '');
?>
</td>
<td class="dataTableContent" align="right"><?php
echo $affiliate_sales['affiliate_percent'] . "%";
?>
</td>
<td class="dataTableContent" align="right"> <?php