本文整理汇总了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>
示例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>
示例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;
示例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