本文整理汇总了PHP中oos_image函数的典型用法代码示例。如果您正苦于以下问题:PHP oos_image函数的具体用法?PHP oos_image怎么用?PHP oos_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了oos_image函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: quote
function quote($method = '')
{
global $oOrder, $aLang, $shipping_weight, $shipping_num_boxes;
if (MODULE_SHIPPING_TABLE_MODE == 'price') {
$oOrder_total = $_SESSION['cart']->show_total();
} else {
$oOrder_total = $shipping_weight;
}
$table_cost = split("[:,]", MODULE_SHIPPING_TABLE_COST);
$size = count($table_cost);
for ($i = 0, $n = $size; $i < $n; $i += 2) {
if ($oOrder_total <= $table_cost[$i]) {
$shipping = $table_cost[$i + 1];
break;
}
}
if (MODULE_SHIPPING_TABLE_MODE == 'weight') {
$shipping = $shipping * $shipping_num_boxes;
}
$this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_table_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_table_text_way'], 'cost' => $shipping + MODULE_SHIPPING_TABLE_HANDLING)));
if ($this->tax_class > 0) {
$this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
}
if (oos_is_not_null($this->icon)) {
$this->quotes['icon'] = oos_image($this->icon, $this->title);
}
return $this->quotes;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:28,代码来源:table.php
示例2: quote
function quote($method = '')
{
global $oOrder, $aLang, $total_count;
$this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_selfpickup_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_selfpickup_text_way'], 'cost' => 0)));
if (!empty($this->icon)) {
$this->quotes['icon'] = oos_image($this->icon, $this->title);
}
return $this->quotes;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:9,代码来源:selfpickup.php
示例3: quote
function quote($method = '')
{
global $aLang, $oOrder;
$this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_hermes_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_hermes_text_way'], 'cost' => MODULE_SHIPPING_HERMES_COST)));
if ($this->tax_class > 0) {
$this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
}
if (!empty($this->icon)) {
$this->quotes['icon'] = oos_image($this->icon, $this->title);
}
return $this->quotes;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:12,代码来源:hermes.php
示例4: quote
function quote($method = '')
{
global $oOrder, $aLang, $total_count;
$this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_item_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_item_text_way'], 'cost' => MODULE_SHIPPING_ITEM_COST * $total_count + MODULE_SHIPPING_ITEM_HANDLING)));
if ($this->tax_class > 0) {
$this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
}
if (oos_is_not_null($this->icon)) {
$this->quotes['icon'] = oos_image($this->icon, $this->title);
}
return $this->quotes;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:12,代码来源:item.php
示例5: quote
function quote($method = '')
{
global $aLang, $oOrder;
$this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_certified_mail_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_certified_mail_text_way'], 'cost' => MODULE_SHIPPING_CERTIFIED_MAIL_COST)));
if ($this->tax_class > 0) {
$this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
}
if (oos_is_not_null($this->icon)) {
$this->quotes['icon'] = oos_image($this->icon, $this->title);
}
return $this->quotes;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:12,代码来源:certifiedmail.php
示例6: add
function add($message, $type = 'error')
{
if ($type == 'error') {
$this->errors[] = array('params' => 'class="messageStackError"', 'text' => oos_image(OOS_IMAGES . 'icons/error.gif', ICON_ERROR) . ' ' . $message);
} elseif ($type == 'warning') {
$this->errors[] = array('params' => 'class="messageStackWarning"', 'text' => oos_image(OOS_IMAGES . 'icons/warning.gif', ICON_WARNING) . ' ' . $message);
} elseif ($type == 'success') {
$this->errors[] = array('params' => 'class="messageStackSuccess"', 'text' => oos_image(OOS_IMAGES . 'icons/success.gif', ICON_SUCCESS) . ' ' . $message);
} else {
$this->errors[] = array('params' => 'class="messageStackError"', 'text' => $message);
}
$this->size++;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:13,代码来源:class_message_stack.php
示例7: quote
function quote($method = '')
{
global $oOrder, $aLang, $shipping_weight;
$weight_cost = preg_split("/[:,]/", MODULE_SHIPPING_WEIGHT_COST);
if ($shipping_weight > $weight_cost[count($weight_cost) - 2]) {
$shipping = ($shipping_weight - $weight_cost[count($weight_cost) - 2]) * MODULE_SHIPPING_WEIGHT_STEP + $weight_cost[count($weight_cost) - 1];
}
for ($i = 0; $i < count($weight_cost); $i += 2) {
if ($shipping_weight <= $weight_cost[$i]) {
$shipping = $weight_cost[$i + 1];
break;
}
}
$this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_weight_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_weight_text_way'], 'cost' => $shipping + MODULE_SHIPPING_WEIGHT_HANDLING)));
if ($this->tax_class > 0) {
$this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
}
if (!empty($this->icon)) {
$this->quotes['icon'] = oos_image($this->icon, $this->title);
}
return $this->quotes;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:22,代码来源:weight.php
示例8: oos_href_link_admin
echo ' <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . oos_href_link_admin($aFilename['products_expected'], 'page=' . $_GET['page'] . '&pID=' . $products['products_id']) . '\'">' . "\n";
}
?>
<td class="dataTableContent"><?php
echo $products['products_name'];
?>
</td>
<td class="dataTableContent" align="center"><?php
echo oos_date_short($products['products_date_available']);
?>
</td>
<td class="dataTableContent" align="right"><?php
if (isset($pInfo) && is_object($pInfo) && $products['products_id'] == $pInfo->products_id) {
echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif');
} else {
echo '<a href="' . oos_href_link_admin($aFilename['products_expected'], 'page=' . $_GET['page'] . '&pID=' . $products['products_id']) . '">' . oos_image(OOS_IMAGES . 'icon_information.gif', IMAGE_ICON_INFO) . '</a>';
}
?>
</td>
</tr>
<?php
// Move that ADOdb pointer!
$products_result->MoveNext();
}
// Close result set
$products_result->Close();
?>
<tr>
<td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:products_expected.php
示例9: number_format
echo ' <td class="dataTableContent">' . $currency['title'] . '</td>' . "\n";
}
?>
<td class="dataTableContent"><?php
echo $currency['code'];
?>
</td>
<td class="dataTableContent" align="right"><?php
echo number_format($currency['value'], 8);
?>
</td>
<td class="dataTableContent" align="right"><?php
if (isset($cInfo) && is_object($cInfo) && $currency['currencies_id'] == $cInfo->currencies_id) {
echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif');
} else {
echo '<a href="' . oos_href_link_admin($aFilename['currencies'], 'page=' . $_GET['page'] . '&cID=' . $currency['currencies_id']) . '">' . oos_image(OOS_IMAGES . 'icon_information.gif', IMAGE_ICON_INFO) . '</a>';
}
?>
</td>
</tr>
<?php
// Move that ADOdb pointer!
$currency_result->MoveNext();
}
// Close result set
$currency_result->Close();
?>
<tr>
<td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:currencies.php
示例10: oos_image
}
?>
</td>
<td class="dataTableContent" align="center"><?php
if ($newsletters['locked'] > 0) {
echo oos_image(OOS_IMAGES . 'icons/locked.gif', ICON_LOCKED);
} else {
echo oos_image(OOS_IMAGES . 'icons/unlocked.gif', ICON_UNLOCKED);
}
?>
</td>
<td class="dataTableContent" align="right"><?php
if (isset($nInfo) && is_object($nInfo) && $newsletters['newsletters_id'] == $nInfo->newsletters_id) {
echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif', '');
} else {
echo '<a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $newsletters['newsletters_id']) . '">' . oos_image(OOS_IMAGES . 'icon_information.gif', IMAGE_ICON_INFO) . '</a>';
}
?>
</td>
</tr>
<?php
// Move that ADOdb pointer!
$newsletters_result->MoveNext();
}
// Close result set
$newsletters_result->Close();
?>
<tr>
<td colspan="6"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:newsletters.php
示例11: str_replace
$_SESSION['cart']->remove($_POST['products_id'][$i]);
} else {
if (DECIMAL_CART_QUANTITY == '1') {
$_POST['cart_quantity'][$i] = str_replace(',', '.', $_POST['cart_quantity'][$i]);
}
$products_order_min = oos_get_products_quantity_order_min($_POST['products_id'][$i]);
$products_order_units = oos_get_products_quantity_order_units($_POST['products_id'][$i]);
if ($_POST['cart_quantity'][$i] >= $products_order_min) {
if ($_POST['cart_quantity'][$i] % $products_order_units == 0) {
$attributes = $_POST['id'][$_POST['products_id'][$i]] ? $_POST['id'][$_POST['products_id'][$i]] : '';
$_SESSION['cart']->add_cart($_POST['products_id'][$i], $_POST['cart_quantity'][$i], $attributes, false, $_POST['to_wl_id'][$i]);
} else {
$_SESSION['error_cart_msg'] = trim($_SESSION['error_cart_msg']) . '<br />' . trim(oos_image(OOS_IMAGES . 'pixel_trans.gif', '', '11', '10') . $aLang['error_products_quantity_order_min_text'] . ' ' . oos_get_products_name($_POST['products_id'][$i]) . ' - ' . $aLang['error_products_units_invalid'] . ' ' . $_POST['cart_quantity'][$i] . ' - ' . $aLang['products_order_qty_unit_text_cart'] . ' ' . $products_order_units);
}
} else {
$_SESSION['error_cart_msg'] = trim($_SESSION['error_cart_msg']) . '<br />' . trim(oos_image(OOS_IMAGES . 'pixel_trans.gif', '', '11', '10') . $aLang['error_products_quantity_order_min_text'] . ' ' . oos_get_products_name($_POST['products_id'][$i]) . ' - ' . $aLang['error_products_quantity_invalid'] . ' ' . $_POST['cart_quantity'][$i] . ' - ' . $aLang['products_order_qty_min_text_cart'] . ' ' . $products_order_min);
}
}
}
$_SESSION['navigation']->remove_last_page();
MyOOS_CoreApi::redirect(oos_href_link($goto_file, oos_get_all_get_parameters($parameters), 'NONSSL'));
break;
case 'add_product':
// customer adds a product from the products page
if (isset($_POST['products_id']) && is_numeric($_POST['products_id'])) {
if (isset($_POST['edit_product'])) {
$_SESSION['cart']->remove($_POST['edit_product']);
}
$real_ids = $_POST['id'];
// File_upload
if (isset($_POST['number_of_uploads']) && is_numeric($_POST['number_of_uploads']) && $_POST['number_of_uploads'] > 0) {
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:oos_cart_actions.php
示例12: oos_info_image
function oos_info_image($image, $alt, $width = '', $height = '') {
if ( ($image) && (file_exists(OOS_ABSOLUTE_PATH . OOS_IMAGES . $image)) ) {
$image = oos_image(OOS_SHOP_IMAGES . $image, $alt, $width, $height);
} else {
$image = TEXT_IMAGE_NONEXISTENT;
}
return $image;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:9,代码来源:function_kernel.php
示例13: date
'"><?php
echo date(PHP_DATE_TIME_FORMAT, filemtime(OOS_FEEDS_EXPORT_PATH . $entry));
?>
</td>
<td class="dataTableContent" align="right" onclick="document.location.href='<?php
echo oos_href_link_admin($aFilename['export_googlebase'], $onclick_link);
?>
'"><?php
echo number_format(filesize(OOS_FEEDS_EXPORT_PATH . $entry));
?>
bytes</td>
<td class="dataTableContent" align="right"><?php
if (isset($buInfo) && is_object($buInfo) && $entry == $buInfo->file) {
echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif', '');
} else {
echo '<a href="' . oos_href_link_admin($aFilename['export_googlebase'], 'file=' . $entry) . '">' . oos_image(OOS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
}
?>
</td>
</tr>
<?php
}
$dir->close();
}
?>
<tr>
<td class="smallText" colspan="3"><?php
echo TEXT_EXPORT_DIRECTORY . ' ' . OOS_FEEDS_EXPORT_PATH;
?>
</td>
<td align="right" class="smallText"><?php
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:export_googlebase.php
示例14: selection
function selection() {
global $oOrder, $aLang;
for ($i=1; $i<13; $i++) {
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));
}
$today = getdate();
for ($i=$today['year']; $i < $today['year']+10; $i++) {
$expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));
}
for ($i = 1; $i < 13; $i ++) {
$start_month[] = array ('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0,0,0,$i,1,2000)));
}
$today = getdate();
for ($i = $today['year'] - 4; $i <= $today['year']; $i ++) {
$start_year[] = array ('id' => strftime('%y', mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$form_array = array ();
// Owner
$form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_owner'], 'field' => oos_draw_input_field('cc_owner', $oOrder->billing['firstname'] . ' ' . $oOrder->billing['lastname']))));
// CC Number
$form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_number'], 'field' => oos_draw_input_field('cc_number'))));
// Startdate
if (USE_CC_START == '1') {
$form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_start'], 'field' => oos_draw_pull_down_menu('cc_start_month', $start_month).' '.oos_draw_pull_down_menu('cc_start_year', $start_year))));
}
// expire date
$form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_expires'], 'field' => oos_draw_pull_down_menu('cc_expires_month', $expires_month) . ' ' . oos_draw_pull_down_menu('cc_expires_year', $expires_year))));
// CVV
if (USE_CC_CVV == '1') {
$form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_cvv'], 'field' => oos_draw_input_field('cc_cvv', '', 'size=4 maxlength=4'))));
}
if (USE_CC_ISS == '1') {
$form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_issue'], 'field' => oos_draw_input_field('cc_issue', '', 'size=2 maxlength=2'))));
}
// cards
if (MODULE_PAYMENT_CC_ACCEPT_VISA == '1')
$this->accepted .= oos_image(OOS_ICONS . 'cc_visa.jpg');
if (MODULE_PAYMENT_CC_ACCEPT_MASTERCARD == '1')
$this->accepted .= oos_image(OOS_ICONS . 'cc_mastercard.jpg');
if (MODULE_PAYMENT_CC_ACCEPT_AMERICANEXPRESS == '1')
$this->accepted .= oos_image(OOS_ICONS . 'cc_amex.jpg');
if (MODULE_PAYMENT_CC_ACCEPT_DINERSCLUB == '1')
$this->accepted .= oos_image(OOS_ICONS . 'cc_diners.jpg');
if (MODULE_PAYMENT_CC_ACCEPT_DISCOVERNOVUS == '1')
$this->accepted .= oos_image(OOS_ICONS . 'cc_discover.jpg');
if (MODULE_PAYMENT_CC_ACCEPT_JCB == '1')
$this->accepted .= oos_image(OOS_ICONS . 'cc_jcb.jpg');
if (MODULE_PAYMENT_CC_ACCEPT_OZBANKCARD == '1')
$this->accepted .='';
$form_array = array_merge(array(array('title'=>$aLang['module_payment_cc_accepted_cards'],'field'=>$this->accepted)),$form_array);
$selection = array ('id' => $this->code,
'module' => $this->title,
'fields' => $form_array);
return $selection;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:73,代码来源:cc.php
示例15: oos_href_link_admin
</td>
<td class="dataTableContent" align="right"> </td>
<td class="dataTableContent" align="right">
<?php
if ($featured['status'] == '1') {
echo '<a href="' . oos_href_link_admin($aFilename['featured'], 'action=setflag&flag=0&id=' . $featured['featured_id'], 'NONSSL') . '">' . oos_image(OOS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10) . '</a>';
} else {
echo '<a href="' . oos_href_link_admin($aFilename['featured'], 'action=setflag&flag=1&id=' . $featured['featured_id'], 'NONSSL') . '">' . oos_image(OOS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_GREEN_LIGHT, 10, 10) . '</a>';
}
?>
</td>
<td class="dataTableContent" align="right"><?php
if (is_object($sInfo) && $featured['featured_id'] == $sInfo->featured_id) {
echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif', '');
} else {
echo '<a href="' . oos_href_link_admin($aFilename['featured'], 'page=' . $_GET['page'] . '&fID=' . $featured['featured_id']) . '">' . oos_image(OOS_IMAGES . 'icon_information.gif', IMAGE_ICON_INFO) . '</a>';
}
?>
</td>
</tr>
<?php
// Move that ADOdb pointer!
$featured_result->MoveNext();
}
// Close result set
$featured_result->Close();
?>
<tr>
<td colspan="4"><table border="0" width="100%" cellpadding="0"cellspacing="2">
<tr>
<td class="smallText" valign="top"><?php
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:featured.php
示例16: oos_href_link_admin
?>
</tr>
<tr>
<?php
if (!$delete_subimage4 && !$remove_subimage4) {
echo '<td align="center" class="main"><a href="javascript:popupImageWindow(\'' . oos_href_link_admin($aFilename['popup_subimage_product'], 'bimage=' . $products_subimage4_name) . '\')">' . ($products_subimage4_name ? oos_image(OOS_SHOP_IMAGES . $products_subimage4_name, $pInfo->products_name, '', '80', 'align="right" hspace="5" vspace="5"') : '') . '</a></td>';
} else {
echo '<td></td>';
}
if (!$delete_subimage5 && !$remove_subimage5) {
echo '<td align="center" class="main"><a href="javascript:popupImageWindow(\'' . oos_href_link_admin($aFilename['popup_subimage_product'], 'bimage=' . $products_subimage5_name) . '\')">' . ($products_subimage5_name ? oos_image(OOS_SHOP_IMAGES . $products_subimage5_name, $pInfo->products_name, '', '80', 'align="right" hspace="5" vspace="5"') : '') . '</a></td>';
} else {
echo '<td></td>';
}
if (!$delete_subimage6 && !$remove_subimage6) {
echo '<td align="center" class="main"><a href="javascript:popupImageWindow(\'' . oos_href_link_admin($aFilename['popup_subimage_product'], 'bimage=' . $products_subimage6_name) . '\')">' . ($products_subimage6_name ? oos_image(OOS_SHOP_IMAGES . $products_subimage6_name, $pInfo->products_name, '', '80', 'align="right" hspace="5" vspace="5"') : '') . '</a></td>';
} else {
echo '<td></td>';
}
?>
</tr>
</table>
</td>
</tr>
<?php
if ($pInfo->products_date_available > date('Y-m-d')) {
?>
<tr>
<td align="center" class="smallText"><?php
echo sprintf(TEXT_PRODUCT_DATE_AVAILABLE, oos_date_long($pInfo->products_date_available));
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:products.php
示例17: array
$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 (oos_is_not_null($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 (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>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:reviews.php
示例18: quote
function quote($method = '')
{
global $aLang, $oOrder, $shipping_weight, $shipping_num_boxes;
$dest_country = $oOrder->delivery['country']['iso_code_2'];
$dest_zone = 0;
$error = false;
for ($i = 1; $i <= $this->num_dp; $i++) {
$countries_table = constant('MODULE_SHIPPING_DP_COUNTRIES_' . $i);
$country_zones = preg_split("/[,]/", $countries_table);
if (in_array($dest_country, $country_zones)) {
$dest_zone = $i;
break;
}
}
if ($dest_zone == 0) {
$error = true;
} else {
$shipping = -1;
$dp_cost = constant('MODULE_SHIPPING_DP_COST_' . $i);
$dp_table = preg_split("/[:,]/", $dp_cost);
$nArrayCountDP = count($dp_table);
for ($i = 0; $i < $nArrayCountDP; $i += 2) {
if ($shipping_weight <= $dp_table[$i]) {
$shipping = $dp_table[$i + 1];
$shipping_method = $aLang['module_shipping_dp_text_way'] . ' ' . $dest_country . ': ';
break;
}
}
if ($shipping == -1) {
$shipping_cost = 0;
$shipping_method = $aLang['module_shipping_dp_undefined_rate'];
} else {
$shipping_cost = $shipping + MODULE_SHIPPING_DP_HANDLING;
}
}
$this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_dp_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $shipping_method . ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . ' ' . $aLang['module_shipping_dp_text_units'] . ')', 'cost' => $shipping_cost * $shipping_num_boxes)));
if ($this->tax_class > 0) {
$this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
}
if (!empty($this->icon)) {
$this->quotes['icon'] = oos_image($this->icon, $this->title);
}
if ($error == true) {
$this->quotes['error'] = $aLang['module_shipping_dp_invalid_zone'];
}
return $this->quotes;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:47,代码来源:dp.php
示例19: array
$contents = array('form' => oos_draw_form('reply', $aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $oInfo->ticket_reply_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['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_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->ticket_reply_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id . '&action=edit') . '">' . oos_image_swap_button('edit','edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id . '&action=delete') . '">' . oos_image_swap_button('delete','delete_off.gif', IMAGE_DELETE) . '</a>');
$ticket_reply_inputs_string = '';
$languages = oos_get_languages();
for ($i = 0, $n = count($languages); $i < $n; $i++) {
$ticket_reply_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_get_ticket_reply_name($oInfo->ticket_reply_id, $languages[$i]['id']);
}
$contents[] = array('text' => $ticket_reply_inputs_string);
}
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,代码来源:ticket_reply.php
示例20: oos_href_link
} else {
if ($oEvent->installed_plugin('sefu')) {
$lc_text = ' <a href="' . oos_href_link($aModules['products'], $aFilename['product_info'], 'products_id=' . $listing['products_id']) . '">';
} else {
$lc_text = ' <a href="' . oos_href_link($aModules['products'], $aFilename['product_info'], ($categories ? 'categories=' . $categories . '&' : '') . 'products_id=' . $listing['products_id']) . '">';
}
}
$lc_image = 'no_picture.gif';
if (oos_is_not_null($listing['products_image'])) {
$lc_image = $listing['products_image'];
} else {
if (is_readable(OOS_ABSOLUTE_PATH . OOS_IMAGES . 'no_picture_' . $sLanguage . '.gif')) {
$lc_image = 'no_picture_' . $sLanguage . '.gif';
}
}
$lc_text .= oos_image(OOS_IMAGES . $lc_image, $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
break;
case 'PRODUCT_LIST_BUY_NOW':
$lc_align = 'right';
if ($_SESSION['member']->group['show_price'] == 1) {
if (DECIMAL_CART_QUANTITY == '1') {
$order_min = number_format($listing['products_quantity_order_min'], 2);
} else {
$order_min = number_format($listing['products_quantity_order_min']);
}
if (PRODUCT_LISTING_WITH_QTY == '1') {
$lc_text = '<form name="buy_now" action="' . OOS_HTTP_SERVER . OOS_SHOP . 'index.php" method="post">';
$lc_text .= '<input type="hidden" name="action" value="buy_now">';
$lc_text .= '<input type="hidden" name="products_id" value="' . $listing['products_id'] . '">';
$lc_text .= '<input type="hidden" name="mp" value="' . $sMp . '">';
$lc_text .= '<input type="hidden" name="file" value="' . $sFile . '">';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:product_listing.php
注:本文中的oos_image函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论