• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP img_format函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了img_format函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: img_format

  
<h4>Product Details</h4>
  <table width="595" border="0" cellspacing="0" cellpadding="0" style="border:#000000 1px solid;padding:10px">
    <tbody>
      <tr>
        <td height="32">ID</td>
        <td>Name</td>
        <td>Value</td>
      </tr>
      <tr>
        <td width="98" height="27">
          <?php 
if ($order->picture) {
    ?>
                    <img src="<?php 
    echo img_format('../pictures/' . $order->picture, 'stamp');
    ?>
" width="70" height="70" />
                    <?php 
}
?>
        </td>
        <td width="347">
          <strong> <?php 
echo $order->product_id;
?>
 -  <?php 
echo $order->product;
?>
</strong>
        </td>
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:30,代码来源:print-order.php


示例2: foreach

if (count($catproducts)) {
    ?>
        <tr>
          <td valign="top" class="label">Products Display Order</td>
          <td><div class="scroll_win" style="height:550px; width:700px;">
            <table border="0" cellspacing="0" cellpadding="0" id="result" class="result">
               <tr>
               <th colspan="2">Products</th><th>Display Order</th>
               </tr>
	      <?php 
    foreach ($catproducts as $row) {
        ?>
              <tr>
                <td>
                  <img src="<?php 
        echo img_format('productres/' . $row->product_picture, 'macro');
        ?>
" /></td>
                <td nowrap="nowrap"><?php 
        echo $row->product_name;
        ?>
</td>
		<td><input type="text" name="display_order[<?php 
        echo $row->product_id;
        ?>
]" value="<?php 
        if (isset($row->display_order)) {
            echo $row->display_order;
        } else {
            echo '0';
        }
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:category-form.php


示例3: foreach

                
              </div>
              
              <div id="birthday_month_thumbs" class="clearfix">
              <?php 
foreach ($products as $row) {
    ?>
    
                <div class="product-item clearfix">
                  <center>
                    <div class="item">
                  <a href="/<?php 
    echo $row->url;
    ?>
"><img src="<?php 
    echo img_format('productres/' . $row->product_picture, 'birthmonthitem');
    ?>
" alt="<?php 
    echo $row->alternate_text;
    ?>
"  title="<?php 
    echo $row->alternate_text;
    ?>
"  class="mpic" /></a>
                    <a class="product-name" href="/<?php 
    echo $row->url;
    ?>
"><?php 
    echo $row->product_code;
    ?>
</a>
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:30,代码来源:monthly-products.php


示例4: lang

<h3><?php 
echo lang('your_cart');
?>
</h3>
<div class="sidebar-item" id="side-cart">
   <?php 
if (isset($this->cart) && $this->cart->total_items() > 0) {
    ?>
   <div class="sidebar-cart">
      <?php 
    foreach ($this->cart->contents() as $cart) {
        ?>
      <div class="sidecart-item">
            <p><img src="<?php 
        echo img_format('../pictures/' . $cart['options']['picture'], 'stamp');
        ?>
" width="50" height="50" /></p>
            <p><em><?php 
        echo $cart['name'];
        ?>
</em></p>
            <p><em><?php 
        echo $cart['qty'] . ' x $' . number_format($cart['price'], 2);
        ?>
</em></p>
      </div>
      <?php 
    }
    ?>
      <div class="total"><span>Total:</span> <?php 
    echo '$' . number_format($this->cart->total(), 2);
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:widget_cart.php


示例5: submit


//.........这里部分代码省略.........
                     $this->db->where('cart_id', $cart_id);
                     $this->db->update('carts', array('completed' => '1'));
                     $this->session->set_userdata('cart_id', '0');
                     //$this->unset_cart();
                     $data['items'] = $this->Order_model->getDelivery($cart_id);
                     $data['message'] = 'Your order completed successfully';
                     $data['invoice_number'] = $oid;
                     $data['totals'] = $totals;
                     $data['billing'] = $this->Order_model->getBilling($cart_id);
                     $conversion = '';
                     $cartitems = array();
                     $itemscount = count($cart);
                     foreach ($cart as $item) {
                         $itemprc = 0;
                         $ptotal = $item->product_price;
                         $icnt++;
                         $itemf = $oformat;
                         $itemf = str_replace('{counter}', $icnt, $itemf);
                         $itemf = str_replace('{firstname}', $item->firstname, $itemf);
                         $itemf = str_replace('{lastname}', $item->lastname, $itemf);
                         $itemf = str_replace('{location_type}', $item->location_type, $itemf);
                         $itemf = str_replace('{location_type_name}', $item->location_type_name, $itemf);
                         $itemf = str_replace('{address1}', $item->address1, $itemf);
                         $itemf = str_replace('{address2}', $item->address2, $itemf);
                         $itemf = str_replace('{city}', $item->city, $itemf);
                         $itemf = str_replace('{postalcode}', $item->postalcode, $itemf);
                         $itemf = str_replace('{province}', $item->province, $itemf);
                         $itemf = str_replace('{country}', $item->country_id, $itemf);
                         $itemf = str_replace('{phone}', $item->dayphone . ' ' . $item->evephone, $itemf);
                         $itemf = str_replace('{message}', $item->card_message, $itemf);
                         $itemf = str_replace('{delivery_date}', date('d M Y', strtotime($item->delivery_date)), $itemf);
                         $itemf = str_replace('{shipping_method}', $item->infotext, $itemf);
                         $itemf = str_replace('{delivery_info}', $item->delivery_description, $itemf);
                         $itemf = str_replace('{product_image}', '<img src="' . $this->config->item('base_url') . img_format('productres/' . $item->product_picture, 'thumb') . '" />', $itemf);
                         $itemf = str_replace('{product_code}', $item->product_code, $itemf);
                         $itemf = str_replace('{orderitem_id}', $item->orderitem_id, $itemf);
                         $itemf = str_replace('{product_name}', $item->product_name . '<br/><small>(' . $item->price_name . ')</small>', $itemf);
                         $itemf = str_replace('{price}', '$' . number_format($item->product_price, 2), $itemf);
                         $itemf = str_replace('{quantity}', '1', $itemf);
                         $itemprc += $item->product_price;
                         if ($item->delivery_method_id == 1) {
                             $itemf = str_replace('{delivery_by}', 'Delivery by Local', $itemf);
                         } else {
                             $itemf = str_replace('{delivery_by}', 'This bouquet comes to via UPS.', $itemf);
                         }
                         $itemf = str_replace('{total}', '$' . number_format($item->product_price, 2), $itemf);
                         if (array_key_exists($item->product_id, $cartitems)) {
                             $cartitems[$item->product_id]['sku'] = $item->product_code;
                             $cartitems[$item->product_id]['qty'] = $cartitems[$item->product_id]['qty'] + 1;
                             $cartitems[$item->product_id]['amt'] = $cartitems[$item->product_id]['amt'] + $item->product_price * 100;
                             $cartitems[$item->product_id]['name'] = urlencode($item->product_name);
                             $cartitems[$item->product_id]['category'] = urlencode($item->category);
                         } else {
                             $cartitems[$item->product_id]['sku'] = $item->product_code;
                             $cartitems[$item->product_id]['qty'] = 1;
                             $cartitems[$item->product_id]['amt'] = $item->product_price * 100;
                             $cartitems[$item->product_id]['name'] = urlencode($item->product_name);
                             $cartitems[$item->product_id]['category'] = urlencode($item->category);
                         }
                         $addontot = 0;
                         if (count($item->addons)) {
                             $order_items = '';
                             foreach ($item->addons as $addon) {
                                 $order_items .= '+(' . $addon->addon_name . " " . $addon->addon_quantity . 'x$' . number_format($addon->addon_price, 2) . ")   \$" . number_format($addon->addon_price * $addon->addon_quantity, 2) . "<br/>\n";
                                 $itemprc += $addon->addon_price * $addon->addon_quantity;
                                 $addontot += $addon->addon_price * $addon->addon_quantity;
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:67,代码来源:orders_new.php


示例6: img_format

    ?>
    <div class="product-item box-small">
      <div class="row-fluid">
        <div class="span12" style="height:600px;">
            <?php 
    if (strlen($product->product_picture) > 4) {
        ?>
            <img src="<?php 
        echo img_format('productres/' . $product->product_picture, 'sthumb');
        ?>
" />
            <?php 
    } else {
        ?>
            <img src="<?php 
        echo img_format('productres/' . $product->product_picture, 'sthumb');
        ?>
" />
            <?php 
    }
    ?>
			
			<?php 
    $con = mysqli_connect("localhost", "flowercrazy", "fc883", "funeral_test");
    $result = mysqli_query($con, "SELECT * FROM product_prices WHERE product_id='" . $product->product_id . "' ORDER BY price_value ASC");
    $nu = 1;
    echo '<table width="100%"><tr >';
    while ($row = mysqli_fetch_array($result)) {
        echo '<td style="text-align:center; width:40px;">';
        echo '<label style="font-size:16px; font-weight:bold;">$' . $row['price_value'] . '</label>';
        if ($nu == 1) {
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:show-products_radiojava.php


示例7: lang

        echo $month->name;
        ?>
">
                          <em><?php 
        echo lang('read more');
        ?>
</em></a>
                        </p>
                      <?php 
    } else {
        ?>
                        <a href="/products/birthmonth_flowers/<?php 
        echo $month->name;
        ?>
"><img src="<?php 
        echo img_format('productres/' . $month->picture, 'birthmonth');
        ?>
" /></a>
                        <p class="description">
                          <?php 
        echo substr($month->description, 0, 100);
        ?>
                           :<a href="/products/birthmonth_flowers/<?php 
        echo $month->name;
        ?>
"><em><?php 
        echo lang('read more');
        ?>
</em></a>
                        </p>                      
                      <?php 
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:birthday-months.php


示例8: str_replace

        ?>
  
    <?php 
        $upath = str_replace(' ', '-', strtolower($row->occasion_name)) . '/';
        if ($upath == '/') {
            $upath = '';
        }
        ?>
  
    <div class="product-item">
        <div class="item">
      <a href="/<?php 
        echo $upath . $row->url;
        ?>
"><img src="<?php 
        echo img_format('productres/' . $row->product_picture, 'thumb');
        ?>
" alt="<?php 
        echo $row->alternate_text;
        ?>
" title="<?php 
        echo $row->alternate_text;
        ?>
" width="186" height="208"/></a>
        <a class="product-name" href="/<?php 
        echo $upath . $row->url;
        ?>
"><?php 
        echo rightLang($row->product_name, $row->product_name_fr);
        ?>
</a>
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:index_temp.php


示例9: lang

                        <button  name="rem" class="btn btn-danger btn-mini"  /><?php 
        echo lang('Remove');
        ?>
</button></a></td>
                        <td class="pprice right" width="25%"><?php 
        echo getRate($row->product_price);
        ?>
</p></td>
                    </tr>
                    <?php 
        foreach ($row->addons as $addon) {
            $total_price += $addon->addon_price * $addon->addon_quantity;
            ?>
                    <tr>
                            <td class="addonrow"><img src="<?php 
            echo img_format('productres/' . $addon->addon_picture, 'sthumb');
            ?>
" /></td>
                            <td class="addonrow">
                                <?php 
            echo ucfirst(strtolower($addon->addon_name));
            ?>
 - <?php 
            echo ucfirst(strtolower($addon->description));
            ?>
 (<?php 
            echo getRate($addon->addon_price);
            ?>
)
                            </td>
                            <td class="center">
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:shopping_cart.php


示例10: date

        ?>
</td>
            <td><?php 
        echo $res->product;
        ?>
<br/>
                  <?php 
        echo '<small><em>(From: ' . date('d M Y', strtotime($res->created)) . ')</small></em>';
        ?>
            </td>
            <td width="50">
                  <?php 
        if (strlen($res->picture) > 4) {
            ?>
                  <img src="<?php 
            echo img_format('../pictures/' . $res->picture, 'thumb');
            ?>
" width="50" height="50" />
                  <?php 
        } else {
            ?>
                  No Image
                  <?php 
        }
        ?>
            </td>
            <td><?php 
        echo $res->sales ? $res->sales : '0';
        ?>
</td>
            <td><?php 
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:products.php


示例11: foreach

<?php

$total = 0;
foreach ($addons as $addon) {
    ?>
    <div class="addon-item">
      <div class="item_pic">
        <img src="<?php 
    echo img_format('../pictures/' . $addon->picture, 'tiny');
    ?>
" width="30" height="30" />
        <p><?php 
    echo $addon->additionalitem;
    ?>
</p>
      </div>
      <div class="item_price">
        <?php 
    echo '$' . number_format($addon->price, 2);
    ?>
      </div>
      <div class="item_quantity">
        <input type="text" name="quantity" size="3" value="0" />
      </div>
      <div class="item_action">
        <a href="#" class="remove" id="<?php 
    echo $item['rowid'];
    ?>
">Remove</a>
      </div>
    </div>
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:add_addons.php


示例12: img_format

        </p>
        
        <p>
            <label for="delivery_id">Delivery Type</label>
            <select name="delivery_id">
                  <option value="1">Sameday</option>
                  <option value="2">Grower Direct</option>
                  <option value="3">International</option>
            </select>
        </p>
        <?php 
if (isset($product) && strlen($product->picture) > 4) {
    ?>
        <p><label>&nbsp;</label>
            <img src="<?php 
    echo img_format('../pictures/' . $product->picture, 'stamp');
    ?>
" /></p>
        <?php 
}
?>
        <p><label for="picture">Product Image</label>
            <input type="file" name="picture" size="35" />
        </p>

        <p><label for="active">Activate?</label>
            <input type="checkbox" name="active" value="1" <?php 
if (isset($_POST) && isset($_POST['active'])) {
    echo ' checked="checked" ';
} elseif (isset($product) && $product->active == 1) {
    echo ' checked="checked" ';
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:product-form.php


示例13: img

function img($image, $size, $attributes = '')
{
    return '<img src="' . img_format('productres/' . $image, $size) . '" ' . $attributes . ' />';
}
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:4,代码来源:apps_helper.php


示例14: foreach

			
			
			<br />
			
			<!--
			<?php 
if (count($product->addons)) {
    ?>
			<h4>Add to your Order <em>(Optional)</em></h4>
			<div id="addons" class="clearfix">
			    <?php 
    foreach ($product->addons as $add) {
        ?>
			    <div class="addonbox">
				<img src="<?php 
        echo img_format('productres/' . $add->addon_picture, 'macro');
        ?>
" alt="<?php 
        echo $add->addon_name;
        ?>
" align="left" class="img-polaroid" />
				<ul class="addon_details">	
				<span class="lead"><?php 
        echo $add->addon_name;
        ?>
</span>
				<li>
				<select name="option[<?php 
        echo $add->addon_id;
        ?>
]" class="seladdon" style="width:180px;" id="seladdon<?php 
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:29,代码来源:sc_clava.php


示例15: foreach

                    <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
                      Your Cart                     
                    </a>
                  </div>
                  <div id="collapseTwo" class="accordion-body collapse in">
                    <div class="accordion-inner">
                        
                        <?php 
if (count($cart)) {
    $total = 0;
    foreach ($cart as $item) {
        ?>
                                <div class="row-fluid sidebar-cart-item">
                                  <div class="span8">
                                    <img src="<?php 
        echo img_format('productres/' . $item->product_picture, 'stamppng');
        ?>
" />
                                  </div>
                                  <div class="span16">
                                    <?php 
        echo $item->product_name;
        ?>
 <br/>
                                    1 x <?php 
        echo getRate($item->product_price);
        $total += $item->product_price;
        ?>
                                  </div>
                                </div>
                                
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:30,代码来源:productslist.php


示例16: lang

                    <input type="hidden" name="oid" id="oid" value="<?php 
echo $orderitem_id;
?>
" />
                    </div>
                    </div><!-- common_form-->
                    <div class="col2">
                        
                    <h3><?php 
echo lang('Card Message');
?>
</h3>
                    <div class="form-control">
                        <div class="form-field">
                            <img src="<?php 
echo img_format('productres/' . $row->product_picture, 'stamp');
?>
" />
                            <strong><?php 
echo $row->product_name;
?>
</strong>
                        </div>                        
                    </div>
                    <div class="form-control">
                        <label for="delivery_date" class="form-label"><?php 
echo lang('Delivery Date');
?>
</label>
                            <div class="form-field">
                            <?php 
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:edit-delivery3-7-13.php


示例17: checkout

 function checkout()
 {
     use_ssl(TRUE);
     $cart_id = $this->session->userdata('cart_id');
     if ($this->Order_model->is_cart_empty($cart_id)) {
         redirect('/shop/cart');
         exit;
     } elseif (!$this->Order_model->is_delivery_entered($cart_id)) {
         redirect('/shop/delivery');
         exit;
     } elseif (!$this->Order_model->is_billing_entered($cart_id)) {
         redirect('/shop/billing');
         exit;
     } else {
         $this->load->model('Group_model');
         $cart = $this->Order_model->get_fullcart($this->session->userdata('cart_id'));
         $totals = array('itemtotal' => 0, 'shipping' => 0, 'service' => 0, 'surcharge' => 0, 'tax' => 0, 'discount' => 0, 'coupon' => 0, 'coupon_code' => '', 'companyless' => 0, 'grandtotal' => 0);
         $order_items = '';
         $oformat = file_get_contents('assets/email_items.html');
         $aoformat = $itemformat = '';
         $aitemformat = '';
         $icnt = 0;
         $itemprc = 0;
         $this->load->model('Company_model');
         $this->load->model('Customer_model');
         $conversion = '';
         $cartitems = array();
         foreach ($cart as $item) {
             $itemprc = 0;
             $ptotal = $item->product_price;
             $icnt++;
             $itemf = $oformat;
             $itemf = str_replace('{counter}', $icnt, $itemf);
             $itemf = str_replace('{firstname}', $item->firstname, $itemf);
             $itemf = str_replace('{lastname}', $item->lastname, $itemf);
             $itemf = str_replace('{address1}', $item->address1, $itemf);
             $itemf = str_replace('{address2}', $item->address2, $itemf);
             $itemf = str_replace('{city}', $item->city, $itemf);
             $itemf = str_replace('{postalcode}', $item->postalcode, $itemf);
             $itemf = str_replace('{province}', $item->province, $itemf);
             $itemf = str_replace('{country}', $item->country_id, $itemf);
             $itemf = str_replace('{phone}', $item->dayphone . ' ' . $item->evephone, $itemf);
             $itemf = str_replace('{message}', $item->card_message, $itemf);
             // $itemf = str_replace('{delivery_date}',date('d M Y',strtotime($item->delivery_date)),$itemf);
             $itemf = str_replace('{delivery_date}', date('d M Y', strtotime($item->delivery_date)) . ' - ' . $item->delivery_time, $itemf);
             $itemf = str_replace('{shipping_method}', $item->infotext, $itemf);
             $itemf = str_replace('{delivery_info}', $item->delivery_description, $itemf);
             $itemf = str_replace('{product_image}', '<img src="' . $this->config->item('base_url') . img_format('productres/' . $item->product_picture, 'thumb') . '" />', $itemf);
             $itemf = str_replace('{product_code}', $item->product_code, $itemf);
             $itemf = str_replace('{product_name}', $item->product_name . '<br/><small>(' . $item->price_name . ')</small>', $itemf);
             $itemf = str_replace('{price}', '$' . number_format($item->product_price, 2), $itemf);
             $itemf = str_replace('{quantity}', '1', $itemf);
             $itemprc += $item->product_price;
             if ($item->delivery_method_id == 1) {
                 $itemf = str_replace('{delivery_by}', 'Delivery by Local', $itemf);
             } else {
                 $itemf = str_replace('{delivery_by}', 'This bouquet comes to via UPS.', $itemf);
             }
             $itemf = str_replace('{total}', '$' . number_format($item->product_price, 2), $itemf);
             $totals['itemtotal'] += $item->product_price;
             if (array_key_exists($item->product_id, $cartitems)) {
                 $cartitems[$item->product_id]['sku'] = $item->product_code;
                 $cartitems[$item->product_id]['qty'] = $cartitems[$item->product_id]['qty'] + 1;
                 $cartitems[$item->product_id]['amt'] = $cartitems[$item->product_id]['amt'] + $item->product_price * 100;
                 $cartitems[$item->product_id]['name'] = urlencode($item->product_name);
                 $cartitems[$item->product_id]['category'] = urlencode($item->category);
             } else {
                 $cartitems[$item->product_id]['sku'] = $item->product_code;
                 $cartitems[$item->product_id]['qty'] = 1;
                 $cartitems[$item->product_id]['amt'] = $item->product_price * 100;
                 $cartitems[$item->product_id]['name'] = urlencode($item->product_name);
                 $cartitems[$item->product_id]['category'] = urlencode($item->category);
             }
             $addontot = 0;
             if (count($item->addons)) {
                 $order_items = '';
                 foreach ($item->addons as $addon) {
                     $order_items .= '+(' . $addon->addon_name . " " . $addon->addon_quantity . 'x$' . number_format($addon->addon_price, 2) . ")   \$" . number_format($addon->addon_price * $addon->addon_quantity, 2) . "<br/>\n";
                     $totals['itemtotal'] += $addon->addon_price * $addon->addon_quantity;
                     $itemprc += $addon->addon_price * $addon->addon_quantity;
                     $addontot += $addon->addon_price * $addon->addon_quantity;
                     $ptotal += $addon->addon_price * $addon->addon_quantity;
                     if (array_key_exists($addon->addon_id, $cartitems)) {
                         $cartitems[$addon->addon_id]['sku'] = $addon->addon_id;
                         $cartitems[$addon->addon_id]['qty'] = $cartitems[$addon->addon_id]['qty'] + $addon->addon_quantity;
                         $cartitems[$addon->addon_id]['amt'] = $cartitems[$addon->addon_id]['amt'] + $addon->addon_price * 100;
                         $cartitems[$addon->addon_id]['name'] = urlencode($addon->addon_name);
                         $cartitems[$item->product_id]['category'] = urlencode($item->category);
                     } else {
                         $cartitems[$addon->addon_id]['sku'] = $addon->addon_id;
                         $cartitems[$addon->addon_id]['qty'] = $addon->addon_quantity;
                         $cartitems[$addon->addon_id]['amt'] = $addon->addon_price * 100;
                         $cartitems[$addon->addon_id]['name'] = urlencode($addon->addon_name);
                         $cartitems[$item->product_id]['category'] = urlencode($item->category);
                     }
                     //echo $order_items;
                 }
                 //echo $order_items;
             } else {
                 $order_items .= 'None';
//.........这里部分代码省略.........
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:101,代码来源:shop.php


示例18: foreach

foreach ($order->items as $item) {
    $counter++;
    ?>
         <div class="tab-pane <?php 
    if ($counter === 1) {
        echo ' active';
    }
    ?>
" id="tab<?php 
    echo $counter;
    ?>
">
        <div class="row-fluid">
          <div class="span6">
            <img src="<?php 
    echo img_format('productres/' . $item->product_picture, 'thumbpng');
    ?>
" />
            <h3><?php 
    echo $item->product_name;
    ?>
</h3>
            <p class="lead"> 1 & <?php 
    echo getRate($item->product_price);
    ?>
 = <?php 
    echo getRate($item->product_price);
    ?>
</p>
          </div>
          <div class="span12">
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:order-view--21-04-2014Shaji.php


示例19: checkout


//.........这里部分代码省略.........
                    $cartcoupon = 0;
                    $cartdiscounttype = 'percentage';
                    $cartcoupontype = 'percentage';
                    $conversion = '';
                    $cartitems = array();
                    $itemscount = count($cart);
                    foreach ($cart as $item) {
                        //echo $this->input->post('card_message'.$item->orderitem_id);
                        //OSCAR CODE
                        //$this->Order_model->update_item_card_message($this->input->post('card_message'.$item->orderitem_id),$item->orderitem_id);
                        //OSCAR CODE
                        $itemprc = 0;
                        $ptotal = $item->product_price;
                        $icnt++;
                        $itemf = $oformat;
                        $itemf = str_replace('{counter}', $icnt, $itemf);
                        $itemf = str_replace('{firstname}', $item->firstname, $itemf);
                        $itemf = str_replace('{lastname}', $item->lastname, $itemf);
                        $itemf = str_replace('{location_type}', $item->location_type, $itemf);
                        $itemf = str_replace('{location_type_name}', $item->location_type_name, $itemf);
                        $itemf = str_replace('{address1}', $item->address1, $itemf);
                        $itemf = str_replace('{address2}', $item->address2, $itemf);
                        $itemf = str_replace('{city}', $item->city, $itemf);
                        $itemf = str_replace('{postalcode}', $item->postalcode, $itemf);
                        $itemf = str_replace('{province}', $item->province, $itemf);
                        $itemf = str_replace('{country}', $item->country_id, $itemf);
                        $itemf = str_replace('{phone}', $item->dayphone . ' ' . $item->evephone, $itemf);
                        $itemf = str_replace('{message}', $item->card_message, $itemf);
                        $itemf = str_replace('{special_note}', $item->ribbon_text, $itemf);
                        $itemf = str_replace('{delivery_date}', date('d M Y', strtotime($item->delivery_date)) . ' - ' . $item->delivery_time, $itemf);
                        $itemf = str_replace('{shipping_method}', $item->infotext, $itemf);
                        $itemf = str_replace('{delivery_info}', $item->delivery_description, $itemf);
                        if ($item->option_picture == '') {
                            $itemf = str_replace('{product_image}', '<img src="' . $this->config->item('base_url') . img_format('productres/' . $item->product_picture, 'thumb') . '" />', $itemf);
                        } else {
                            $itemf = str_replace('{product_image}', '<img src="' . $this->config->item('base_url') . img_format('productres/' . $item->option_picture, 'thumb') . '" />', $itemf);
                        }
                        $itemf = str_replace('{product_code}', $item->product_code, $itemf);
                        $itemf = str_replace('{orderitem_id}', $item->orderitem_id, $itemf);
                        if ($item->ribbon_text != '') {
                            $itemf = str_replace('{product_name}', $item->product_name . ' + Ribbon ($12.99)<br/><small>(' . $item->price_name . ')</small>', $itemf);
                        } else {
                            $itemf = str_replace('{product_name}', $item->product_name . '<br/><small>(' . $item->price_name . ')</small>', $itemf);
                        }
                        if ($item->ribbon_text != '') {
                            $itemf = str_replace('{price}', '$' . number_format($item->product_price + 12.99, 2), $itemf);
                            $itemf = str_replace('{total}', '$' . number_format($item->product_price + 12.99, 2), $itemf);
                        } else {
                            $itemf = str_replace('{price}', '$' . number_format($item->product_price, 2), $itemf);
                            $itemf = str_replace('{total}', '$' . number_format($item->product_price, 2), $itemf);
                        }
                        //$itemf = str_replace('{product_name}',$item->product_name .'<br/><small>('.$item->price_name.')</small>',$itemf);
                        //$itemf = str_replace('{price}','$'.number_format($item->product_price,2),$itemf);
                        //$itemf = str_replace('{total}','$'.number_format($item->product_price,2),$itemf);
                        $itemf = str_replace('{quantity}', '1', $itemf);
                        $itemprc += $item->product_price;
                        if ($item->delivery_method_id == 1) {
                            $itemf = str_replace('{delivery_by}', 'Delivery by Local', $itemf);
                        } else {
                            $itemf = str_replace('{delivery_by}', 'This bouquet comes to via UPS.', $itemf);
                        }
                        if (array_key_exists($item->product_id, $cartitems)) {
                            $cartitems[$item->product_id]['sku'] = $item->product_code;
                            $cartitems[$item->product_id]['qty'] = $cartitems[$item->product_id]['qty'] + 1;
                            $cartitems[$item->product_id]['amt'] = $cartitems[$item->product_id]['amt'] + $item->product_price * 100;
                            $cartitems[$item->product_id]['name'] = urlencode($item->product_name);
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:67,代码来源:shop.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP img_help函数代码示例发布时间:2022-05-15
下一篇:
PHP img_error函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap