當前位置: 首頁>>代碼示例>>PHP>>正文


PHP total_price函數代碼示例

本文整理匯總了PHP中total_price函數的典型用法代碼示例。如果您正苦於以下問題:PHP total_price函數的具體用法?PHP total_price怎麽用?PHP total_price使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了total_price函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: d_getProductCat

						<?php 
d_getProductCat();
?>
                    </div>
                </div>
				<div class = "col-md-9">
					<?php 
d_cart();
?>
					<div id="shopping_cart" align = "right"; style = "border: 2px #f05f40 solid;">
						<span style = "font-size: 15px; padding: 5px; line-height: 30px;">
							Welcome Guest! <b>Shopping Cart -</b> Total Items: <b><?php 
total_items();
?>
</b>  Total Price: <b><?php 
total_price();
?>
</b>  <a href = "cart.php"> View Cart </a>
						</span>
					</div>
					<br><span>Store > <a href = "store.php?cat=3">Delivery</a> > <?php 
storeName();
?>
 > <?php 
productName();
?>
</span><br><br>
					<h1><?php 
productName();
?>
</h1>
開發者ID:kang39,項目名稱:Team11_Core,代碼行數:31,代碼來源:d_orders.php

示例2: getGenre

					<ul class="list-group">
						<?php 
getGenre();
?>
					</ul>
				</div>
				<span style="float:right; font-size:18px; padding:5px; line-height:40px;">
					<?php 
selection();
?>
					Welcome Guest!  <strong style ="color:red">JobBucket-</strong> Shortlisted : <strong style ="color:red"> <?php 
echo total_selections();
?>
</strong>
					Total Price:<strong style ="color:red;text-decoration:underline;"><?php 
echo total_price();
?>
</strong>
					<a href ="picked.php"  class="btn btn-danger">Go To JobBucket</a>
				</span>
				<div class ="col-md-9">
					<?php 
getWorkers();
?>
					<?php 
getOccWorker();
?>
					<?php 
getGenreWorker();
?>
				</div>
開發者ID:WhizzDev,項目名稱:HilfeBucket,代碼行數:31,代碼來源:front2.php

示例3: get_product

     $id = $_GET['id'];
     $product = get_product($id);
     break;
 case 'cart':
     break;
 case 'add_to_cart':
     $id = $_GET['id'];
     $add_item = add_to_cart($id);
     $_SESSION['total_items'] = total_items($_SESSION['cart']);
     $_SESSION['total_price'] = total_price($_SESSION['cart']);
     header('Location: index.php?view=product&id=' . $id);
     break;
 case 'update_cart':
     update_cart();
     $_SESSION['total_items'] = total_items($_SESSION['cart']);
     $_SESSION['total_price'] = total_price($_SESSION['cart']);
     header('Location: index.php?view=cart');
     break;
 case 'admin':
     break;
 case 'rings':
     $val = $_POST['val'];
     $cat = $_GET['id'];
     $products = get_cat_products($cat, $val);
     break;
 case 'news':
     $news = news();
     break;
 case 'save_goods':
     db_connect();
     break;
開發者ID:Kit-kat1,項目名稱:Orbis_jewellery,代碼行數:31,代碼來源:index.php

示例4: number_format

        </tbody>
        <tfoot>
         <tr class="text-right">
           <td colspan="4"></td>
           <td colspan="1">Grand Total</td>
           <td> $
           <?php 
    echo number_format(total_price($results)[0], 2);
    ?>
          </td>
         </tr>
         <tr class="text-right">
           <td colspan="4"></td>
           <td colspan="1">Profit</td>
           <td> $<?php 
    echo number_format(total_price($results)[1], 2);
    ?>
</td>
         </tr>
        </tfoot>
      </table>
    </div>
  <?php 
} else {
    $session->msg("d", "Sorry no sales has been found. ");
    redirect('sales_report.php', false);
}
?>
</body>
</html>
<?php 
開發者ID:rmhulle,項目名稱:warehouse-inventory-system,代碼行數:31,代碼來源:sale_report_process.php


注:本文中的total_price函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。