我在这里有一个网页我正在显示我的产品详细信息,在这个页面中,我想要以下要求
Display products should have filtering options:
a. From lower to higher price
b. From Higher to lower price
c. Newly created
d. Alphabetical order
我想知道如何实现上述要求。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CodeIgniter Shopping Cart</title>
<link href="<?php echo base_url(); ?>assets/css/core.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/core1.js"></script>
</head>
<body>
<div id="cart_data">
<a href="<?php echo base_url(); ?>cart1/show_cart">View Cart </a>
<div id="cart_message"> </div>
<div id="wrap">
<?php $this->view('products1'); ?>
<!--
<div class="cart_list">
<h3>Your shopping cart</h3>
<div id="cart_content">
<?php //echo $this->view('cart1.php'); ?>
</div>
</div>-->
</div>
<!-- <p style="text-align: justify;"><div id="pagination"> <?php //echo $links; ?> </div></p>-->
</div>
</body>
</html>