Commits

Rhys ! committed 7158236

added memorabilia and other booklists

Comments (0)

Files changed (10)

site/booklist_het123.shpaml

+{{inherit "wrapper.tmpl"}}
+{{def bins}}
+li
+    a.inscope href=booklists.php | Booklists
+    ul
+        li
+            a href=# | HET123 Web Programming
+{{enddef}}
+{{py: global left_insert; left_insert = {'Booklists': bins()} }}
+{{def title}}HET123 Web Programming{{enddef}}
+{{def stylesheet}}booklists{{enddef}}
+{{def script}}cart{{enddef}}
+ul.breadcrumb
+    li
+        >
+        a href=index.php | Bookshop
+    li
+        >
+        a href=booklists.php | Booklists
+    li
+        >
+        a href=# | HET123 Web Programming
+h1 | HET123 Web Programming
+h2 | Semester Two, 2011, Hawthorn Campus
+form.table.cartadd method=get action=cart.php
+    table
+        tr
+            th | Add
+            th | Item
+            th | Type
+            th | Author/Supplier
+            th | ISBN/Item No.
+            th | In Stock
+            th | Price A$
+        tr
+            td
+                > input type=checkbox name=item value=1 checked=checked
+            td | PHP programing with mySQL
+            td | Prescribed Text
+            td | Gosselin & Kokoska
+            td.number | 2147483647
+            td.number | 9
+            td.number | $117.95
+    > input type=submit value="Add to cart"

site/booklist_het410.shpaml

+{{inherit "wrapper.tmpl"}}
+{{def bins}}
+li
+    a.inscope href=booklists.php | Booklists
+    ul
+        li
+            a href=# | HET410 Network Administration
+{{enddef}}
+{{py: global left_insert; left_insert = {'Booklists': bins()} }}
+{{def title}}HET410 Network Administration{{enddef}}
+{{def stylesheet}}booklists{{enddef}}
+{{def script}}cart{{enddef}}
+ul.breadcrumb
+    li
+        >
+        a href=index.php | Bookshop
+    li
+        >
+        a href=booklists.php | Booklists
+    li
+        >
+        a href=# | HET410 Network Administration
+h1 | HET410 Network Administration
+h2 | Semester Two, 2011, Hawthorn Campus
+form.table.cartadd method=get action=cart.php
+    table
+        tr
+            th | Add
+            th | Item
+            th | Type
+            th | Author/Supplier
+            th | ISBN/Item No.
+            th | In Stock
+            th | Price A$
+        tr
+            td
+                > input type=checkbox name=item value=2 checked=checked
+            td | Network+ guide to Networks
+            td | Recommended
+            td | Dean
+            td.number | 2147483647
+            td.number | 4
+            td.number | $144.95
+    > input type=submit value="Add to cart"

site/booklist_hit2037.shpaml

+{{inherit "wrapper.tmpl"}}
+{{def bins}}
+li
+    a.inscope href=booklists.php | Booklists
+    ul
+        li
+            a href=# | HIT2316 Usability
+{{enddef}}
+{{py: global left_insert; left_insert = {'Booklists': bins()} }}
+{{def title}}HIT2037 Software Development in Java{{enddef}}
+{{def stylesheet}}booklists{{enddef}}
+{{def script}}cart{{enddef}}
+ul.breadcrumb
+    li
+        >
+        a href=index.php | Bookshop
+    li
+        >
+        a href=booklists.php | Booklists
+    li
+        >
+        a href=# | HIT2037 Software Development in Java
+h1 | HIT2037 Software Development in Java
+h2 | Semester Two, 2011, Hawthorn Campus
+form.table.cartadd method=get action=cart.php
+    table
+        tr
+            th | Add
+            th | Item
+            th | Type
+            th | Author/Supplier
+            th | ISBN/Item No.
+            th | In Stock
+            th | Price A$
+        tr
+            td
+                > input type=checkbox name=item value=3 checked=checked
+            td | Object first with java: A practical introduction using blueJ
+            td | Prescribed Text
+            td | Barnes & Kolling
+            td.number | 2147483647
+            td.number | 5
+            td.number | $148.95
+    > input type=submit value="Add to cart"

site/booklist_hit2316.shpaml

             td | User Interface Design & Evaluation
             td | Prescribed Text
             td | Stone & Woodroffe
-            td.number | 9780120884360
+            td.number | 2147483647
             td.number | 6
             td.number | $112.95
     > input type=submit value="Add to cart"

site/booklists.coffee

 $ ->
     $('form').submit ->
         form = $(this).serializeArray()
-        if form[0].value is "2011" and form[1].value is "two" and form[2].value is "Hawthorn" and form[3].value.toUpperCase() is "HIT2316"
-            document.location = 'booklist_hit2316.php'
+        if form[0].value is "2011" and form[1].value is "two" and form[2].value is "Hawthorn"
+            code = form[3].value.toUpperCase()
+            if code is "HIT2316"
+                document.location = 'booklist_hit2316.php'
+            else if code is "HIT2037"
+                document.location = 'booklist_hit2037.php'
+            else if code is "HET123"
+                document.location = 'booklist_het123.php'
+            else if code is "HET410"
+                document.location = 'booklist_het410.php'
+            else
+                document.location = 'booklist_404.php'
         else
             document.location = 'booklist_404.php'
         return false
     func item for item in $(form).find 'input[name="item"]:checked'
     null
 
-store_item_from_row = (checkbox) ->
+store_item_from_row = (checkbox, type) ->
     props = ($(td).text().trim() for td in $(checkbox).closest('td').siblings())
+    if type
+        props.splice 1, 0, type
     store_item checkbox.value, props
 
 $ ->
         $.cookie 'receipt', null
 
     $('form.cartadd').submit ->
-        map_to_items this, store_item_from_row
+        form = $(this)
+        if form.hasClass 'settype'
+            type = form.data 'type'
+            map_to_items this, (checkbox) -> store_item_from_row checkbox, type
+        else
+            map_to_items this, (checkbox) -> store_item_from_row checkbox, null
         map_to_items this, (item) -> update_cart item.value, 1
     $('table.cart').each ->
         table = $(this)

site/product_hoodies.shpaml

 li
     a.inscope href=product_list.php | Product list
     ul
-        li
-            a href=product_hoodies.php | Varsity Hoodies
+        li > a href=product_memorabilia.php | Memorabilia
+        li > a href=product_hoodies.php | Varsity Hoodies
 {{enddef}}
 {{py: global left_insert; left_insert = {'Product list': bins()} }}
 {{def title}}Varsity Hoodies{{enddef}}

site/product_list.shpaml

 li
     a href=product_list.php | Product list
     ul
-        li
-            a href=product_hoodies.php | Varsity Hoodies
+        li > a href=product_memorabilia.php | Memorabilia
+        li > a href=product_hoodies.php | Varsity Hoodies
 {{enddef}}
 {{py: global left_insert; left_insert = {'Product list': bins()} }}
 {{def title}}Product list{{enddef}}
         >
         a href=# | Product list
 h1 | Product list
-.panel
+.panel.left
     ul
         li
             a href=product_hoodies.php
                 > img src=https://bookshop.swin.edu.au/html/images/product/black_hoodie.jpg
                 Varsity Hoodies
             p | Be proud and show off your University to everyone you meet
+.panel.right
+    ul
+        li
+            a href=product_memorabilia.php
+                > img src=http://images.swinburne.edu.au/retrieve/40382/p017i001.jpg.jpg style="padding: 63px 61px;"
+                Memorabilia
+            p | Memorabilia (Latin for memorable (things), plural of memorābile) are objects treasured for their memories.

site/product_memorabilia.shpaml

+{{inherit "wrapper.tmpl"}}
+{{def bins}}
+li
+    a.inscope href=product_list.php | Product list
+    ul
+        li > a href=product_memorabilia.php | Memorabilia
+        li > a href=product_hoodies.php | Varsity Hoodies
+{{enddef}}
+{{py: global left_insert; left_insert = {'Product list': bins()} }}
+{{def title}}Memorabilia{{enddef}}
+{{def script}}cart{{enddef}}
+ul.breadcrumb
+    li
+        >
+        a href=index.php | Bookshop
+    li
+        >
+        a href=product_list.php | Product list
+    li
+        >
+        a href=# | Memorabilia
+h1 | Memorabilia
+form.table.cartadd.settype method=get action=cart.php data-type=Memorabilia
+    table
+        tr
+            th | Add
+            th | Item
+            th | Author/Supplier
+            th | ISBN/Item No.
+            th | In Stock
+            th | Price A$
+        tr
+            td
+                > input type=checkbox name=item value=mem-1
+            td | BADGE SWINBURNE LOGO PIN CLIP
+            td | PERFECTION BADGES
+            td | 8880000099820
+            td.number | 211
+            td.number | $6.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-2
+            td | Badge Swinburne Large Embroidered Logo for sewing on clothing
+            td | Ideal Corporate Accessories
+            td | 8880000130752
+            td.number | 17
+            td.number | $8.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-3
+            td | BOOKMARK LEATHER SWINBURNE LOGO
+            td | KEITH WILLIAMS (webm)
+            td | 8880000046640
+            td.number | 2
+            td.number | $3.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-4
+            td | BOTTLE OPENER KEYRING SWINBURNE LOGO DIECAST SILVER IN BOX
+            td | LOGO (webm)
+            td | 8880000103275
+            td.number | 1
+            td.number | $8.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-5
+            td | BOX 240 X 155 X 075MM PLAIN CARDBOARD WITH DIVIDER ASSEMBLY REQUIRED
+            td | LOGO GIFTWARE
+            td | 8880000116060
+            td.number | 21
+            td.number | $7.40
+        tr
+            td
+                > input type=checkbox name=item value=mem-6
+            td | BUMPER STICKER WHITE SWINBURNE CREST
+            td | KEITH WILLIAMS (webm)
+            td | 9780000024633
+            td.number | 233
+            td.number | $1.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-7
+            td | BUMPER STICKER GLITTER SWINBURNE CREST
+            td | KEITH WILLIAMS (webm)
+            td | 9780000024640
+            td.number | 75
+            td.number | $1.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-8
+            td | BUMPER STICKER SWINBURNE LOGO WITH MELB AUST
+            td | KEITH WILLIAMS (webm)
+            td | 8880000103497
+            td.number | 44
+            td.number | $1.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-9
+            td | BUMPER STICKER SWINBURNE LOGO WATERPROOF WITH MELB AUST
+            td | KEITH WILLIAMS (webm)
+            td | 8880000103503
+            td.number | 16
+            td.number | $2.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-10
+            td | BUSINESS CARD HOLDER SILVER D512 DELUXE POCKET SWINBURNE LOGO ENGRAVED/BLACKENED
+            td | IMAGE COLLECTION
+            td | 8880000127325
+            td.number | 59
+            td.number | $16.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-11
+            td | CAN STUBBY COOLER SWINBURNE WORDING
+            td | LICENSING ESSENTIALS (webm)
+            td | 8880000089234
+            td.number | 2
+            td.number | $5.50
+        tr
+            td
+                > input type=checkbox name=item value=mem-12
+            td | Certificate Tube Black A3 2 piece 58mm diameter x 310mm length
+            td | Darpac
+            td | 8880000131896
+            td.number | 14
+            td.number | $6.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-13
+            td | CHAMPAGNE FLUTE GLASS ETCHED SWINBURNE LOGO ACADEMIA DEL VINO N.21 185ML LEAD FREE CRYSTAL 3344
+            td | LUIGI BORMLIOLI
+            td | 8880000114240
+            td.number | 4
+            td.number | $36.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-14
+            td | COASTER BOX BLACK FOR SWINBURNE COASTERS
+            td | COASTER
+            td | 8880000092067
+            td.number | 3
+            td.number | $2.20
+        tr
+            td
+                > input type=checkbox name=item value=mem-15
+            td | COASTER GOLD SWINBURNE LOGO SET OF 6
+            td | COASTER
+            td | 8880000031264
+            td.number | 0
+            td.number | $39.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-16
+            td | COASTER GOLD SWINBURNE LOGO SINGLE IN SLEEVE
+            td | COASTER
+            td | 8880000102957
+            td.number | 9
+            td.number | $6.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-17
+            td | COASTER SILVER SWINBURNE LOGO SET 0F 4
+            td | COASTER
+            td | 8880000086394
+            td.number | 14
+            td.number | $26.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-18
+            td | COASTER SILVER SWINBURNE LOGO SET 0F 6
+            td | COASTER
+            td | 9780000024329
+            td.number | 19
+            td.number | $39.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-19
+            td | COASTER SILVER SWINBURNE LOGO SINGLE IN SLEEVE
+            td | COASTER
+            td | 8880000102964
+            td.number | 9
+            td.number | $6.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-20
+            td | COASTER WALLET BLACK VINYL HOLDS 2 SWINBURNE COASTERS
+            td | COASTER
+            td | 8880000092074
+            td.number | 2
+            td.number | $2.20
+        tr
+            td
+                > input type=checkbox name=item value=mem-21
+            td | COFFEE MUG BOX
+            td | KEITH WILLIAMS
+            td | 9780000024275
+            td.number | 19
+            td.number | $1.10
+        tr
+            td
+                > input type=checkbox name=item value=mem-22
+            td | COMPENDIUM A4 BLACK SWINBURNE LOGO DELTA PAD COVER 1 COLOUR PRINT-BLACK LOGO ON GREY STRIP D875
+            td | IMAGE COLLECTION
+            td | 8880000108157
+            td.number | 36
+            td.number | $22.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-23
+            td | DECANTER 1878 STRAIGHT SIDED GLASS HORIZONTAL SWINBURNE LOGOETCHED
+            td | VISLA ODIN
+            td | 8880000123532
+            td.number | 2
+            td.number | $156.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-24
+            td | FLASHLIGHT LED CARABINER L330 BLACK ENGRAVED SWINBURNE LOGO + TEXT GIFTBOXED
+            td | HIGHCALIBER
+            td | 8880000128926
+            td.number | 78
+            td.number | $5.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-26
+            td | GLASS SHOT TUMBLER 2141 60ML VERTICAL SWINBURNE LOGO ETCHED ARTWORK 'F'
+            td | BOHEMIA BARLINE
+            td | 8880000123570
+            td.number | 16
+            td.number | $14.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-27
+            td | GLASS TUMBLER 2643 295ML VERTICAL SW
+            td | MASQUERADE PLAZA
+            td | 8880000123563
+            td.number | 9
+            td.number | $22.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-28
+            td | GLASS TUMBLER PAIR 1872 UNETCHED
+            td | VISLA ODIN
+            td | 8880000123594
+            td.number | 2
+            td.number | $51.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-29
+            td | KEYRING GOLD DIECAST SWINBURNE VERTICAL LOGO WITH BACK DIE
+            td | KEITH WILLIAMS
+            td | 8880000103039
+            td.number | 7
+            td.number | $12.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-30
+            td | KEYRING GRADUATION BEAR NO SWINBURNE BRANDING
+            td | KEITH WILLIAMS
+            td | 8880000049139
+            td.number | 4
+            td.number | $2.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-31
+            td | KEYRING SILVER DIECAST SWINBURNE VERTICAL LOGO WITH BACK DIE
+            td | KEITH WILLIAMS
+            td | 8880000103022
+            td.number | 237
+            td.number | $15.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-32
+            td | KEYRING SWINBURNE OVATION SILVER oval shaped metal
+            td | KEITH WILLIAMS
+            td | 8880000077712
+            td.number | 1
+            td.number | $16.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-33
+            td | KEYRING SWINBURNE OVATION GOLD oval shaped metal
+            td | KEITH WILLIAMS
+            td | 8880000077729
+            td.number | 3
+            td.number | $16.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-34
+            td | KEYRING SWINBURNE LOGO FULL COLOUR PICTO WITH GOLD BACKING
+            td | PERFECTION BADGES
+            td | 8880000099516
+            td.number | 116
+            td.number | $5.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-35
+            td | LABEL SWINBURNE LOGO COLOUR 35X70MM
+            td | SWINBURNE PRESS
+            td | 8880000103015
+            td.number | 1438
+            td.number | $0.35
+        tr
+            td
+                > input type=checkbox name=item value=mem-36
+            td | LANYARD SWINBURNE RED PMS485C 20MM TWILL FLAT SWIVEL DOG CLIP & BREAKAWAY BLACK/WHITE PRINT
+            td | MIX GROUP / OZ ID LA-003-20
+            td | 8880000101318
+            td.number | 1208
+            td.number | $3.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-37
+            td | LETTER OPENER SILVER METAL BOOMERANG D505 BOXED SWINBURNE LOGO + TEXT ENGRAVED
+            td | IMAGE COLLECTION
+            td | 8880000104197
+            td.number | 4
+            td.number | $15.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-38
+            td | MOUSE MAT SWINBURNE LOGO DESIGN MM05C COSMO 235mm(w) x 190mm(h)
+            td | PRIMEPROMO
+            td | 8880000124843
+            td.number | 315
+            td.number | $5.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-39
+            td | MUG COFFEE WHITE #400120WH 2 COLOUR PRINT RED PMS485 & BLACKSWINBURNE LOGO
+            td | MARINA
+            td | 8880000102988
+            td.number | 102
+            td.number | $12.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-40
+            td | Note Box with Pad Black Leather D543 printed with Swinburne Logo 2 colours red PMS485 & white
+            td | Image Collection
+            td | 8880000131643
+            td.number | 0
+            td.number | $11.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-41
+            td | Notepad Holder with Calendar LL471s Companion Black with 1 colour print Swinburne Logo
+            td | Logoline
+            td | 8880000132503
+            td.number | 0
+            td.number | $10.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-42
+            td | PAPERWEIGHT CRYSTAL CUBE 2977 60X60X90MM VERTICAL SWINBURNE LOGO ETCH ARTWORK 'B' PRESENTATION BOX
+            td | RIKARO
+            td | 8880000123556
+            td.number | 13
+            td.number | $69.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-43
+            td | PEN P92 BLACK CHROME CARBON FIBER METAL SWINBURNE LOGO + TEXT ENGRAVED
+            td | PROMO GALLERY
+            td | 8880000125215
+            td.number | 164
+            td.number | $19.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-44
+            td | PEN POUCH BLACK VELVET
+            td | IDEAL CORPORATE ACCESSORIES
+            td | 8880000119719
+            td.number | 33
+            td.number | $0.15
+        tr
+            td
+                > input type=checkbox name=item value=mem-45
+            td | PEN SWINBURNE TRI GRIP P56 ( SAVILLE ) METAL WHITE/SILVER LOGO & TEXT 50X7MM PRINT 2 COLOUR 1 POSITION BLK & PMS485
+            td | PROMO GALLERY
+            td | 8880000123822
+            td.number | 171
+            td.number | $6.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-46
+            td | PEN SWINBURNE LOGO WITH GRIP P140 COMFORT GRIP WHITE WITH BLACK CLIP 2 COLOUR PRINT LOGO WITH TEXT 50X7MM
+            td | PROMOGALLERY
+            td | 8880000127516
+            td.number | 709
+            td.number | $1.50
+        tr
+            td
+                > input type=checkbox name=item value=mem-47
+            td | PHOTO FRAME 3428 CURVED GLASS 125MM X 180MM SWINBURNE LOGO ENGRAVED
+            td | LOGO GIFTWARE
+            td | 8880000123815
+            td.number | 14
+            td.number | $32.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-48
+            td | Stress Ball Red Football Footy Swinburne Logo black print SB005
+            td | Dex Group
+            td | 8880000129701
+            td.number | 1296
+            td.number | $1.50
+        tr
+            td
+                > input type=checkbox name=item value=mem-50
+            td | STUBBY CAN COOLER WRAP NP103 HOLDER SWINBURNE LOGO + TEXT 'MELBOURNE AUSTRALIA' PRINT 2 COLOUR WRAP BLACK & PMS485 RED
+            td | HOGH CALIBER LINE
+            td | 8880000129169
+            td.number | 52
+            td.number | $6.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-51
+            td | TEDDY BEAR BROWN TALL
+            > td
+            td | 8880000031172
+            td.number | 22
+            td.number | $17.37
+        tr
+            td
+                > input type=checkbox name=item value=mem-52
+            td | TIE BAR SWINBURNE CREST
+            td | KEITH WILLIAMS
+            td | 9780000024398
+            td.number | 40
+            td.number | $7.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-53
+            td | TIE ENVELOPE WHITE SWINBURNE
+            td | A.ROYALE
+            td | 8880000109512
+            td.number | 15
+            td.number | $1.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-54
+            td | UMBRELLA 3952 BLACK FEATHERLITE MICRO (UPF 25) SWINBURNE 2 COLOUR PRINT 1 PANEL + SLEEVE
+            td | SHELTA (webm)
+            td | 8880000119160
+            td.number | 21
+            td.number | $31.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-55
+            td | UMBRELLA BLACK METROPOLITAN GOLF WITH WOODEN CROOK HANDLE SWINBURNE 2 COLOUR PRINT 4 PANELS
+            td | SHELTA (webm)
+            td | 8880000119177
+            td.number | 38
+            td.number | $39.95
+        tr
+            td
+                > input type=checkbox name=item value=mem-56
+            td | WATCH BLACK FACE SWINBURNE CREST
+            > td
+            td | 9780000024930
+            td.number | 6
+            td.number | $28.75
+        tr
+            td
+                > input type=checkbox name=item value=mem-57
+            td | WATCH LARGE SWINBURNE CREST
+            > td
+            td | 9780000024497
+            td.number | 10
+            td.number | $53.10
+    > input type=submit value="Add to cart"
 <?php
+    function xmlentities($string) {
+        return str_replace("&", "&amp;", $string);
+    }
 	$searchParam = $_GET["by"];
 	$searchValue = $_GET["query"];
 	$DB = mysql_connect("mysql.ict.swin.edu.au",
 		while($row = mysql_fetch_array($result))
 		{
 			echo '<tr>';
-			echo '<td><input type="checkbox" value="'.$row["bookCode"].'" name="item"/></td>';
-			echo '<td>'.$row["bookTitle"].'</td>';
-			echo '<td>'.$row["bookType"].'</td>';
-			echo '<td>'.$row["bookAuthor"].'</td>';
-			echo '<td>'.$row["bookISBN"].'</td>';
-			echo '<td class="number">'.$row["bookStock"].'</td>';
-			echo '<td class="number">$'.$row["bookPrice"].'</td>';
+			echo '<td><input type="checkbox" value="'.xmlentities($row["bookCode"]).'" name="item"/></td>';
+			echo '<td>'.xmlentities($row["bookTitle"]).'</td>';
+			echo '<td>'.xmlentities($row["bookType"]).'</td>';
+			echo '<td>'.xmlentities($row["bookAuthor"]).'</td>';
+			echo '<td>'.xmlentities($row["bookISBN"]).'</td>';
+			echo '<td class="number">'.xmlentities($row["bookStock"]).'</td>';
+			echo '<td class="number">$'.xmlentities($row["bookPrice"]).'</td>';
 			echo '</tr>';
 		}
 		mysql_close($DB);
 		echo '</table>';
-		echo '<input type="Submit" value="Add to cart"/>';
+		echo '<input type="submit" value="Add to cart"/>';
 #		echo '</form>';
 	}
 ?>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.