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


PHP img_format函数代码示例

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


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


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