Professional CodeIgniter
Chapter 5: Building a Shopping Cart 118 function jsUpdateCart(){ var parameter_string = ‘’; allNodes = document.getElementsByCla ...
Chapter 5: Building a Shopping Cart 119 function updateCartAjax($idlist){ $cart = $_SESSION[‘cart’]; //split idlist on comma fir ...
Chapter 5: Building a Shopping Cart 120 Please note the use of “ 1 records updated ” in the status message. In Chapter 10 , you ...
Chapter 5: Building a Shopping Cart 121 Updating the CSS The first thing you have to do is update the view, because you ’ ll wan ...
Chapter 5: Building a Shopping Cart 122 echo “ < /tr > \n”; }else{ //just in case! echo “ < tr > < td > No ite ...
Chapter 5: Building a Shopping Cart 123 This particular function will be a lot simpler than the jsUpdateCart() one. In fact, all ...
Chapter 5: Building a Shopping Cart 124 Revisiting the Sprint Backlog At the end of Chapter 1 , you created an initial sprint ba ...
Chapter 5: Building a Shopping Cart 125 Create a controller for all visible pages, with functions for the home page, About Us, ...
Chapter 5: Building a Shopping Cart 126 Here ’ s what Claudia has noticed as you walk through the site: Logo is missing. Top par ...
Chapter 5: Building a Shopping Cart 127 Polishing the Look and Feel At the very beginning of this project, some choices were mad ...
Chapter 5: Building a Shopping Cart 128 margin:10px auto; padding:10px; background-color:#e4deae; border:2px solid #efdda8; } h1 ...
Chapter 5: Building a Shopping Cart 129 #header{ font-size:12px; margin-bottom:10px; } #footer{ clear:both; padding-top:40px; fo ...
Chapter 5: Building a Shopping Cart 130 Figure 5-9 Fixing the Header The header portion of the site is currently maintained in t ...
Chapter 5: Building a Shopping Cart 131 the second segment (as in “ welcome/index ” ) to see if it matches “ index ” or not. Bef ...
Chapter 5: Building a Shopping Cart 132 margin: 2px 0 10px 0; padding: 0; background: #31363E; } Next, establish the rules for t ...
Chapter 5: Building a Shopping Cart 133 Figure 5-10 Fixing the Side Navigation The side navigation work will be similar to the g ...
Chapter 5: Building a Shopping Cart 134 function getCategoriesNav(){ $data = array(); $this- > db- > select(‘id,name,paren ...
Chapter 5: Building a Shopping Cart 135 Knowing what the structure is like, changing your navigation view is easy. Loop through ...
Chapter 5: Building a Shopping Cart 136 Next, create the look and feel for the cat and subcat < li > classes. A good sugge ...
Chapter 5: Building a Shopping Cart 137 Figure 5-11 Placing the Add to Cart Links The next issue that needs addressing is adding ...
«
3
4
5
6
7
8
9
10
11
12
»
Free download pdf