本文整理汇总了PHP中xtc_date_short函数的典型用法代码示例。如果您正苦于以下问题:PHP xtc_date_short函数的具体用法?PHP xtc_date_short怎么用?PHP xtc_date_short使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xtc_date_short函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: xtc_draw_input_field
?>
<div class="col-xs-12">
<div class="col-sm-2 col-xs-12 main"><?php
echo ENTRY_DATE_OF_BIRTH;
?>
</div>
<div class="col-sm-10 col-xs-12 main">
<?php
if (isset($error) && $error == true) {
if (isset($entry_date_of_birth_error) && $entry_date_of_birth_error == true) {
echo xtc_draw_input_field('customers_dob', xtc_date_short(isset($customers_dob) ? $customers_dob : ''), 'maxlength="10"') . ' ' . ENTRY_DATE_OF_BIRTH_ERROR;
} else {
echo xtc_draw_input_field('customers_dob', xtc_date_short(isset($customers_dob) ? $customers_dob : ''), 'maxlength="10"');
}
} else {
echo xtc_draw_input_field('customers_dob', xtc_date_short(isset($customers_dob) ? $customers_dob : ''), 'maxlength="10"');
}
?>
</div>
</div>
<?php
}
?>
<div class="col-xs-12">
<div class="col-sm-2 col-xs-12 main"><?php
echo ENTRY_EMAIL_ADDRESS;
?>
</div>
<div class="col-sm-10 col-xs-12 main">
<?php
if (isset($error) && $error == true) {
示例2: showSpecialsBox
//.........这里部分代码省略.........
?>
');"style="vertical-align:middle;"/><label for="input_specials_delete"> <?php
echo TEXT_INFO_HEADING_DELETE_SPECIALS;
?>
</label>
<?php
}
?>
</div>
</div>
<div class='clearfix' ></div>
<div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5">
<div class="main col-xs-12 col-sm-4">
<?php
echo TEXT_SPECIALS_SPECIAL_QUANTITY;
?>
</div>
<div class="main col-xs-12 col-sm-4">
<?php
echo xtc_draw_input_field('specials_quantity', $sInfo->specials_quantity, 'style="width: 135px"');
?>
</div>
</div>
<div class='clearfix' ></div>
<?php
if (isset($_GET['pID']) and xtc_db_num_rows($specials_query, true) > 0) {
?>
<div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5">
<div class="main col-xs-12 col-sm-4"><?php
echo TEXT_INFO_DATE_ADDED;
?>
</div>
<div class="main col-xs-12 col-sm-4"><?php
echo xtc_date_short($sInfo->specials_date_added);
?>
</div>
<div class="main col-xs-12 col-sm-4"> </div>
</div>
<div class='clearfix' ></div>
<div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5">
<div class="main col-xs-12 col-sm-4"><?php
echo TEXT_INFO_LAST_MODIFIED;
?>
</div>
<div class="main col-xs-12 col-sm-4"><?php
echo xtc_date_short($sInfo->specials_last_modified);
?>
</div>
<div class="main col-xs-12 col-sm-4"> </div>
</div>
<div class='clearfix' ></div>
<?php
}
?>
<div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5">
<div class="main col-xs-12 col-sm-4">
<?php
echo TEXT_SPECIALS_EXPIRES_DATE;
?>
</div>
<div class="main col-xs-12 col-sm-4">
<script type="text/javascript">specialExpires.writeControl(); specialExpires.dateFormat="yyyy-MM-dd";</script>
<noscript>
<?php
echo xtc_draw_input_field('specials_expires', $expires_date, 'style="width: 135px"');
?>
</noscript>
</div>
<div class="main col-xs-12 col-sm-4">
<?php
if (isset($_GET['pID']) and xtc_db_num_rows($specials_query, true) > 0) {
?>
<input type="checkbox" name="specials_status" value="1" id="input_specials_status" style="vertical-align:middle;" <?php
echo $status;
?>
/><label for="input_specials_status"> <?php
echo TEXT_EDIT_STATUS;
?>
</label>
<?php
}
?>
</div>
</div>
<div class='clearfix' ></div>
<div class="col-xs-12">
<div class="main" style="padding:3px; background: #D8D8D8;">
<?php
echo TEXT_SPECIALS_PRICE_TIP;
?>
</div>
</div>
<?php
}
?>
</div>
</div>
<?php
}
示例3: xtc_db_query
$info_query = xtc_db_query("SELECT\n customers_info_date_account_created as date_account_created,\n customers_info_date_account_last_modified as date_account_last_modified,\n customers_info_date_of_last_logon as date_last_logon,\n customers_info_number_of_logons as number_of_logons\n FROM " . TABLE_CUSTOMERS_INFO . " WHERE customers_info_id = '" . $cInfo->customers_id . "'");
$info = xtc_db_fetch_array($info_query);
$country_query = xtc_db_query("SELECT countries_name FROM " . TABLE_COUNTRIES . " WHERE countries_id = '" . (int) $cInfo->entry_country_id . "'");
$country = xtc_db_fetch_array($country_query);
$reviews_query = xtc_db_query("SELECT COUNT(*) as number_of_reviews FROM " . TABLE_REVIEWS . " WHERE customers_id = '" . (int) $cInfo->customers_id . "'");
$reviews = xtc_db_fetch_array($reviews_query);
$contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_CREATED . ' ' . xtc_date_short($info['date_account_created']));
$contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . xtc_date_short($info['date_account_last_modified']));
$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' ' . xtc_date_short($info['date_last_logon']));
$contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $info['number_of_logons']);
$contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY . ' ' . $country['countries_name']);
$contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_OF_REVIEWS . ' ' . $reviews['number_of_reviews']);
} else {
//EOF - DokuMan - 2010-11-02 - Workaround for customer details not showing on iplog-Box
$contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_CREATED . ' ' . xtc_date_short($cInfo->date_account_created));
$contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . xtc_date_short($cInfo->date_account_last_modified));
// BOF - Tomcraft - 2011-01-16 - Additionally show time for customers last logon time
//$contents[] = array ('text' => '<br />'.TEXT_INFO_DATE_LAST_LOGON.' '.xtc_date_short($cInfo->date_last_logon));
$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' ' . xtc_datetime_short($cInfo->date_last_logon));
// EOF - Tomcraft - 2011-01-16 - Additionally show time for customers last logon time
$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);
//BOF - DokuMan - 2010-11-02 - Workaround for customer details not showing on iplog-Box
}
//EOF - DokuMan - 2010-11-02 - Workaround for customer details not showing on iplog-Box
}
if ($action == 'iplog') {
if (isset($_GET['cID'])) {
$contents[] = array('text' => '<br /><b>IPLOG :');
$customers_id = xtc_db_prepare_input($_GET['cID']);
示例4: xtc_href_link
}
?>
<td class="dataTableContent"><?php
echo '<a href="' . xtc_href_link(FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . xtc_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 xtc_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 xtc_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', '');
} else {
echo '<a href="' . xtc_href_link(FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID')) . 'pID=' . $payments['affiliate_payment_id']) . '">' . xtc_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
}
?>
</td>
</tr>
示例5: array
$contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="button" value="' . BUTTON_DELETE . '"><a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . BUTTON_CANCEL . '</a>');
break;
default:
if (is_object($oInfo)) {
$heading[] = array('text' => '<b>[' . $oInfo->orders_id . '] ' . xtc_datetime_short($oInfo->date_purchased) . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . BUTTON_EDIT . '</a> <a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . BUTTON_DELETE . '</a>');
if (AFTERBUY_ACTIVATED == 'true') {
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=afterbuy_send') . '">' . BUTTON_AFTERBUY_SEND . '</a>');
}
// RATEPAY START
include 'includes/ratepay_order_buttons.php';
// RATEPAY END
//$contents[] = array('align' => 'center', 'text' => '');
$contents[] = array('text' => '<br />' . TEXT_DATE_ORDER_CREATED . ' ' . xtc_date_short($oInfo->date_purchased));
if (xtc_not_null($oInfo->last_modified)) {
$contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . xtc_date_short($oInfo->last_modified));
}
$contents[] = array('text' => '<br />' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method);
// elari added to display product list for selected order
$order = new order($oInfo->orders_id);
// BOF - Tomcraft - 2010-04-22 - Added a missing language definition
//$contents[] = array ('text' => '<br /><br />'.sizeof($order->products).' Products ');
$contents[] = array('text' => '<br /><br />' . sizeof($order->products) . ' ' . TEXT_PRODUCTS);
// EOF - Tomcraft - 2010-04-22 - Added a missing language definition
for ($i = 0; $i < sizeof($order->products); $i++) {
$contents[] = array('text' => $order->products[$i]['qty'] . ' x' . $order->products[$i]['name']);
if (sizeof($order->products[$i]['attributes']) > 0) {
for ($j = 0; $j < sizeof($order->products[$i]['attributes']); $j++) {
$contents[] = array('text' => '<small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>');
}
}
示例6: LoadData
/**
* Produktdaten einlesen
*
* @param array $selected_products uebergebene Auswahl
*/
function LoadData($oID)
{
global $xtPrice;
// --- bof -- changes -- h.koch@hen-vm68.com -- 05.2016 --
//$c_query ="SELECT
// customers_status
// FROM " . TABLE_ORDERS . "
// WHERE
// orders_id = '".$oID."'";
$c_query = "SELECT\r\n customers_status,\r\n currency\r\n FROM " . TABLE_ORDERS . "\r\n WHERE\r\n orders_id = '" . $oID . "'";
// --- eof -- changes -- h.koch@hen-vm68.com -- 05.2016 --
$c_query = xtDBquery($c_query);
$c_query = xtc_db_fetch_array($c_query);
$customers_status = $c_query['customers_status'];
$currency = $c_query['currency'];
// EUR, CHF
// --- changes -- h.koch@hen-vm68.com -- 05.2016 --
//$xtPrice = new xtcPrice( 'EUR', $customers_status );
$xtPrice = new xtcPrice($currency, $customers_status);
// --- changes -- h.koch@hen-vm68.com -- 05.2016 --
$order = new order_pdf($oID);
$this->data['address_label_customer'] = xtc_address_format($order->customer['format_id'], $order->customer, 0, '', "\n");
$this->data['address_label_shipping'] = xtc_address_format($order->delivery['format_id'], $order->delivery, 0, '', "\n");
$this->data['address_label_payment'] = xtc_address_format($order->billing['format_id'], $order->billing, 0, '', "\n");
$this->data['csID'] = $order->customer['csID'];
// get products data
$order_total = $order->getTotalData($oID);
$this->data['order_data'] = $order->getOrderData($oID);
$this->data['order_total'] = $order_total['data'];
// assign language to template for caching
$this->data['language'] = $_SESSION['language'];
$this->data['oID'] = $oID;
if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
include DIR_FS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
$payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE'));
}
$this->data['PAYMENT_METHOD'] = $payment_method;
$this->data['COMMENT'] = $order->info['comments'];
$this->data['order'] = $order;
$this->data['DATE'] = xtc_date_short($order->info['date_purchased']);
$this->data['DATE_INVOICE'] = xtc_date_short($order->info['ibn_billdate']);
$this->data['ibn_billdate'] = $order->info['ibn_billdate'];
$this->data['ibn_billnr'] = $order->info['ibn_billnr'];
//echo "data:<pre>"; print_r($this->data); echo "</pre>";
return;
}
示例7: xtc_add_tax
$tax_rate = $xtPrice->TAX[$product->data['products_tax_class_id']];
$products_options['options_values_price'] = xtc_add_tax($products_options['options_values_price'], $xtPrice->TAX[$product->data['products_tax_class_id']]);
}
if ($_SESSION['customers_status']['customers_status_show_price'] == 1) {
$module_content[sizeof($module_content) - 1]['NAME'] .= ' (' . $products_options['price_prefix'] . $xtPrice->xtcFormat($products_options['options_values_price'], true, 0, true) . ')';
}
}
}
}
}
$info_smarty->assign('module_content', $module_content);
// show expiry date of active special products
$special_expires_date_query = "SELECT expires_date\n FROM " . TABLE_SPECIALS . "\n WHERE products_id = '" . $product->data['products_id'] . "'\n AND status = '1'";
$special_expires_date_query = xtDBquery($special_expires_date_query);
$sDate = xtc_db_fetch_array($special_expires_date_query, true);
$info_smarty->assign('PRODUCTS_EXPIRES', $sDate['expires_date'] != '0000-00-00 00:00:00' ? xtc_date_short($sDate['expires_date']) : '');
// FSK18
$info_smarty->assign('PRODUCTS_FSK18', $product->data['products_fsk18'] == '1' ? 'true' : '');
//get shippingstatus image and name
if (ACTIVATE_SHIPPING_STATUS == 'true') {
$info_smarty->assign('SHIPPING_NAME', $main->getShippingStatusName($product->data['products_shippingtime']));
$info_smarty->assign('SHIPPING_IMAGE', $main->getShippingStatusImage($product->data['products_shippingtime']));
}
//products formated price
$info_smarty->assign('PRODUCTS_PRICE', $products_price['formated']);
//get products vpe
$info_smarty->assign('PRODUCTS_VPE', $main->getVPEtext($product->data, $products_price['plain']));
//web28 - 2012-04-17 - use classes function getVPEtext()
// products id
$info_smarty->assign('PRODUCTS_ID', $product->data['products_id']);
// products name
示例8: on
$affiliate_clickthroughs_raw = "select a.*, pd.products_name from " . TABLE_AFFILIATE_CLICKTHROUGHS . " a\n left join " . TABLE_PRODUCTS . " p on (p.products_id = a.affiliate_products_id)\n left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on (pd.products_id = p.products_id and pd.language_id = '" . $_SESSION['languages_id'] . "')\n where a.affiliate_id = '" . $_SESSION['affiliate_id'] . "' ORDER BY a.affiliate_clientdate desc";
$affiliate_clickthroughs_split = new splitPageResults($affiliate_clickthroughs_raw, $_GET['page'], MAX_DISPLAY_SEARCH_RESULTS);
require DIR_WS_INCLUDES . 'header.php';
$smarty->assign('affiliate_clickthroughs_split_number', $affiliate_clickthroughs_split->number_of_rows);
$affiliate_clickthrough_table = '';
if ($affiliate_clickthroughs_split->number_of_rows > 0) {
$affiliate_clickthroughs_values = xtc_db_query($affiliate_clickthroughs_split->sql_query);
$number_of_clickthroughs = '0';
while ($affiliate_clickthroughs = xtc_db_fetch_array($affiliate_clickthroughs_values)) {
$number_of_clickthroughs++;
if ($number_of_clickthroughs / 2 == floor($number_of_clickthroughs / 2)) {
$affiliate_clickthrough_table .= '<tr class="productListing-even">';
} else {
$affiliate_clickthrough_table .= '<tr class="productListing-odd">';
}
$affiliate_clickthrough_table .= '<td class="smallText">' . xtc_date_short($affiliate_clickthroughs['affiliate_clientdate']) . '</td>';
if ($affiliate_clickthroughs['affiliate_products_id'] > 0) {
$link_to = '<a href="' . xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $affiliate_clickthroughs['affiliate_products_id']) . '" target="_blank">' . $affiliate_clickthroughs['products_name'] . '</a>';
} else {
$link_to = "Startpage";
}
$affiliate_clickthrough_table .= '<td class="smallText">' . $link_to . '</td>';
$affiliate_clickthrough_table .= '<td class="smallText">' . $affiliate_clickthroughs['affiliate_clientreferer'] . '</td></tr>';
}
$smarty->assign('affiliate_clickthrough_table', $affiliate_clickthrough_table);
}
if ($affiliate_clickthroughs_split->number_of_rows > 0) {
$smarty->assign('affiliate_clickthroughs_split_count', $affiliate_clickthroughs_split->display_count(TEXT_DISPLAY_NUMBER_OF_CLICKS));
$smarty->assign('affiliate_clickthroughs_split_links', $affiliate_clickthroughs_split->display_links(MAX_DISPLAY_PAGE_LINKS, xtc_get_all_get_params(array('page', 'info', 'x', 'y'))));
}
$smarty->assign('language', $_SESSION['language']);
示例9: xtc_address_format
$smarty->assign('address_label_customer', xtc_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />'));
$smarty->assign('address_label_shipping', xtc_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'));
$smarty->assign('address_label_payment', xtc_address_format($order->billing['format_id'], $order->billing, 1, '', '<br />'));
$smarty->assign('csID', $order->customer['csID']);
$smarty->assign('vat_id', $order->customer['vat_id']);
// get products data
include_once DIR_FS_CATALOG . DIR_WS_CLASSES . 'xtcPrice.php';
$xtPrice = new xtcPrice($order->info['currency'], $order->info['status']);
$order_total = $order->getTotalData($order->info['order_id']);
$order_data = $order->getOrderData($order->info['order_id']);
$smarty->assign('order_data', $order_data);
$smarty->assign('order_total', $order_total['data']);
// --- bof -- ipdfbill --------
$d = make_billnr($order->info['ibn_billdate'], $order->info['ibn_billnr']);
$smarty->assign('IBN_BILLNUMBER', $d);
$smarty->assign('IBN_BILLDATE', xtc_date_short($order->info['ibn_billdate'] . ' 00:00:00'));
// --- eof -- ipdfbill --------
// assign language to template for caching
$languages_query = xtc_db_query("select code, language_charset from " . TABLE_LANGUAGES . " WHERE directory ='" . $order->info['language'] . "'");
$langcode = xtc_db_fetch_array($languages_query);
$smarty->assign('langcode', $langcode['code']);
$smarty->assign('charset', $langcode['language_charset']);
$smarty->assign('language', $order->info['language']);
$smarty->assign('logo_path', HTTP_SERVER . DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/img/');
$smarty->assign('oID', $order->info['order_id']);
if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
include DIR_FS_CATALOG . 'lang/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
$payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE'));
$smarty->assign('PAYMENT_METHOD', $payment_method);
if (strpos($order->info['payment_method'], 'paypalplus') !== false) {
require_once DIR_FS_EXTERNAL . 'paypal/classes/PayPalInfo.php';
示例10: while
$number_of_sales = '0';
while ($affiliate_sales = xtc_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 xtc_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
示例11: array
case 'confirm':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CUSTOMER . '</b>');
$contents = array('form' => xtc_draw_form('affiliate', FILENAME_AFFILIATE, xtc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO . '<br><br><b>' . $aInfo->affiliate_firstname . ' ' . $aInfo->affiliate_lastname . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . xtc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . xtc_href_link(FILENAME_AFFILIATE, xtc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id) . '">' . xtc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (is_object($aInfo)) {
$heading[] = array('text' => '<b>' . $aInfo->affiliate_firstname . ' ' . $aInfo->affiliate_lastname . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . xtc_href_link(FILENAME_AFFILIATE, xtc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id . '&action=edit') . '">' . xtc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . xtc_href_link(FILENAME_AFFILIATE, xtc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id . '&action=confirm') . '">' . xtc_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . xtc_href_link(FILENAME_AFFILIATE_CONTACT, 'selected_box=affiliate&affiliate=' . $aInfo->affiliate_email_address) . '">' . xtc_image_button('button_email.gif', IMAGE_EMAIL) . '</a>');
$affiliate_sales_raw = "select count(*) as count, sum(affiliate_value) as total, sum(affiliate_payment) as payment from " . TABLE_AFFILIATE_SALES . " a left join " . TABLE_ORDERS . " o on (a.affiliate_orders_id=o.orders_id) where o.orders_status >= " . AFFILIATE_PAYMENT_ORDER_MIN_STATUS . " and affiliate_id = '" . $aInfo->affiliate_id . "'";
$affiliate_sales_values = xtc_db_query($affiliate_sales_raw);
$affiliate_sales = xtc_db_fetch_array($affiliate_sales_values);
$contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_CREATED . ' ' . xtc_date_short($aInfo->date_account_created));
$contents[] = array('text' => '' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . xtc_date_short($aInfo->date_account_last_modified));
$contents[] = array('text' => '' . TEXT_INFO_DATE_LAST_LOGON . ' ' . xtc_date_short($aInfo->date_last_logon));
$contents[] = array('text' => '' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $aInfo->number_of_logons);
$contents[] = array('text' => '' . TEXT_INFO_COMMISSION . ' ' . $aInfo->affiliate_commission_percent . ' %');
$contents[] = array('text' => '' . TEXT_INFO_COUNTRY . ' ' . $aInfo->countries_name);
$contents[] = array('text' => '' . TEXT_INFO_NUMBER_OF_SALES . ' ' . $affiliate_sales['count'], '');
$contents[] = array('text' => '' . TEXT_INFO_SALES_TOTAL . ' ' . $currencies->display_price($affiliate_sales['total'], ''));
$contents[] = array('text' => '' . TEXT_INFO_AFFILIATE_TOTAL . ' ' . $currencies->display_price($affiliate_sales['payment'], ''));
}
break;
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
}
示例12: array
echo $products_split->display_count($products_query_numrows, '20', $_GET['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS_EXPECTED);
?>
</div>
<div class="smallText col-xs-6 text-right" ><?php
echo $products_split->display_links($products_query_numrows, '20', MAX_DISPLAY_PAGE_LINKS, $_GET['page']);
?>
</div>
</div>
</div>
<?php
$heading = array();
$contents = array();
if (is_object($pInfo)) {
$heading[] = array('text' => '<b>' . $pInfo->products_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_CATEGORIES, 'pID=' . $pInfo->products_id . '&action=new_product') . '">' . BUTTON_EDIT . '</a>');
$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_EXPECTED . ' ' . xtc_date_short($pInfo->products_date_available));
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
echo '<div class="col-md-3 col-sm-12 col-xs-12 pull-right edit-box-class">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo '</div>' . "\n";
?>
<script>
//responsive_table
$('#responsive_table').addClass('col-md-9');
</script>
<?php
}
?>
</div></div>
示例13: xtc_draw_input_fieldNote
} else {
$lastname_content = xtc_draw_input_fieldNote(array('name' => 'a_lastname', 'text' => ' ' . ENTRY_FIRST_NAME_TEXT), $affiliate['affiliate_lastname']);
}
$module_smarty->assign('lastname_content', $lastname_content);
if (ACCOUNT_DOB == 'true') {
$module_smarty->assign('ACCOUNT_DOB', 'true');
if ($is_read_only == true) {
$dob_content = xtc_date_short($affiliate['affiliate_dob']);
} elseif ($error == true) {
if ($entry_date_of_birth_error == true) {
$dob_content = xtc_draw_input_fieldNote(array('name' => 'a_dob', 'text' => ' ' . ENTRY_DATE_OF_BIRTH_ERROR));
} else {
$dob_content = $a_dob . xtc_draw_hidden_field('a_dob');
}
} else {
$dob_content = xtc_draw_input_fieldNote(array('name' => 'a_dob', 'text' => ' ' . ENTRY_DATE_OF_BIRTH_TEXT), xtc_date_short($affiliate['affiliate_dob']));
}
$module_smarty->assign('dob_content', $dob_content);
}
if ($is_read_only == true) {
$email_content = $affiliate['affiliate_email_address'];
} elseif ($error == true) {
if ($entry_email_address_error == true) {
$email_content = xtc_draw_input_fieldNote(array('name' => 'a_email_address', 'text' => ' ' . ENTRY_EMAIL_ADDRESS_ERROR));
} elseif ($entry_email_address_check_error == true) {
$email_content = xtc_draw_input_fieldNote(array('name' => 'a_email_address', 'text' => ' ' . ENTRY_EMAIL_ADDRESS_CHECK_ERROR));
} elseif ($entry_email_address_exists == true) {
$email_content = xtc_draw_input_fieldNote(array('name' => 'a_email_address', 'text' => ' ' . ENTRY_EMAIL_ADDRESS_ERROR_EXISTS));
} else {
$email_content = $a_email_address . xtc_draw_hidden_field('a_email_address');
}
示例14: switch
switch ($coupon['coupon_type']) {
case 'F':
$text_coupon_help .= sprintf(TEXT_COUPON_HELP_FIXED, $xtPrice->xtcFormat($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, $xtPrice->xtcFormat($coupon['coupon_minimum_order'], true));
}
$text_coupon_help .= sprintf(TEXT_COUPON_HELP_DATE, xtc_date_short($coupon['coupon_start_date']), xtc_date_short($coupon['coupon_expire_date']));
$text_coupon_help .= '<strong>' . TEXT_COUPON_HELP_RESTRICT . '</strong>';
$text_coupon_help .= '<br /><br />' . TEXT_COUPON_HELP_CATEGORIES;
$coupon_get = xtc_db_query("select restrict_to_categories from " . TABLE_COUPONS . " where coupon_id='" . (int) $_GET['cID'] . "'");
$get_result = xtc_db_fetch_array($coupon_get);
$cat_ids = explode(",", $get_result['restrict_to_categories']);
// Hetfield - 2009-08-18 - replaced deprecated function split with explode to be ready for PHP >= 5.3
for ($i = 0; $i < count($cat_ids); $i++) {
$result = xtc_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 = xtc_db_fetch_array($result)) {
$cats .= '<br />' . $row["categories_name"];
}
}
if ($cats == '') {
$cats = '<br />NONE';
}
示例15: xtc_href_link
if (!xtc_not_null($search)) {
$buttons_new_elements = '<a class="btn btn-default" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_category') . '">' . BUTTON_NEW_CATEGORIES . '</a>';
if ($cPath != '0') {
$buttons_new_elements .= ' ';
$buttons_new_elements .= '<a class="btn btn-default" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_product') . '">' . BUTTON_NEW_PRODUCTS . '</a>';
}
$contents[] = array('align' => 'center', 'text' => $buttons_new_elements);
}
//Informations
$contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%; border-top: 1px solid Black; margin-top: 5px;">' . TEXT_INFORMATIONS . '</div>');
$contents[] = array('text' => '<div style="padding-left: 30px;">' . TEXT_DATE_ADDED . ' ' . xtc_date_short($pInfo->products_date_added) . '</div>');
if (xtc_not_null($pInfo->products_last_modified)) {
$contents[] = array('text' => '<div style="padding-left: 30px;">' . TEXT_LAST_MODIFIED . ' ' . xtc_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 . ' ' . xtc_date_short($pInfo->products_date_available) . '</div>');
}
// START IN-SOLUTION Berechung des Bruttopreises
$price = $pInfo->products_price;
$price = xtc_round($price, PRICE_PRECISION);
$price_string = '' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($price);
if (PRICE_IS_BRUTTO == 'true' && ($_GET['read'] == 'only' || $action != 'new_product_preview')) {
$price_netto = xtc_round($price, PRICE_PRECISION);
$tax_query = xtc_db_query("select tax_rate from " . TABLE_TAX_RATES . " where tax_class_id = '" . $pInfo->products_tax_class_id . "' ");
$tax = xtc_db_fetch_array($tax_query);
$price = $price * ($tax[tax_rate] + 100) / 100;
$price_string = '' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($price) . '<br/>' . 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);