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


PHP oos_image函数代码示例

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


在下文中一共展示了oos_image函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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) . '&nbsp;' . $message);
     } elseif ($type == 'warning') {
         $this->errors[] = array('params' => 'class="messageStackWarning"', 'text' => oos_image(OOS_IMAGES . 'icons/warning.gif', ICON_WARNING) . '&nbsp;' . $message);
     } elseif ($type == 'success') {
         $this->errors[] = array('params' => 'class="messageStackSuccess"', 'text' => oos_image(OOS_IMAGES . 'icons/success.gif', ICON_SUCCESS) . '&nbsp;' . $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>';
    }
    ?>
&nbsp;</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>';
    }
    ?>
&nbsp;</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>';
        }
        ?>
&nbsp;</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>';
        }
        ?>
&nbsp;</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).'&nbsp;'.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) . '&nbsp;' . 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">&nbsp;</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>';
        }
        ?>
&nbsp;</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


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