heartranked

git clone https://git.tarina.org/heartranked
Log | Files | Refs

pending.html (1817B)


      1 $def with (pending_key,pendingform,pendinginfo,bag,productname,db,getprice,eur_to_sat,ordertype)
      2 $ totsats = 0
      3 $ toteuro = 0
      4 <div id="container">
      5 <div id="default">
      6 <br>
      7 ~*~<br>
      8 <h2>Your Order</h2>
      9 
     10 in your order:<br> 
     11 $for i in bag: 
     12     $ goodies = db.query("SELECT * FROM soundlink WHERE id='" +i.product+"';")
     13     $code:
     14         price = getprice(i.product)
     15         quantity = i.quantity
     16         p_totsats=i.quantity*price[0]
     17         p_toteuro=i.quantity*price[1]
     18     $i.quantity x $productname(i.product)
     19     <a href="/dropitem/$i.product">X</a> $p_toteuro&euro;<br>
     20     $for g in goodies:
     21         $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png':
     22             <br>
     23             <img src="/static/img/thumb/$g.soundname" style="width:120px"><br>
     24     $code:
     25         totsats += p_totsats
     26         toteuro += p_toteuro
     27 
     28 <br>
     29 <br>
     30 $if ordertype() == 'digital':
     31     <h2>Digital goods if any will be shipped to your email once invoice paid..</h2>
     32 $else:
     33     $ shippinginfo = db.select('shipping', where="country='" + pendinginfo.country + "'", what='price, days')[0]
     34     Shipping cost to $pendinginfo.country is $(shippinginfo.price/100)&euro; <br>
     35     Shipping estimate is $shippinginfo.days days<br>
     36     $code:
     37         totsats += eur_to_sat(shippinginfo.price)
     38         toteuro += shippinginfo.price/100
     39     <pre>
     40     First Name: $pendinginfo.firstname
     41     Last Name: $pendinginfo.lastname
     42     Country: $pendinginfo.country
     43     Address: $pendinginfo.address
     44     Town: $pendinginfo.town
     45     Postalcode: $pendinginfo.postalcode
     46     Email: $pendinginfo.email
     47     </pre>
     48 
     49 <br>
     50 <p>
     51 $if totsats > 0:
     52     total: $(toteuro)&euro;
     53 <p>
     54 ~*~<br>
     55 <div id="addevent">
     56 <form method="POST">
     57 $:pendingform.render()
     58 </form>
     59 </div>
     60 <b><p></p></b>
     61 <a href="/checkout"><- back shopping for moar? yes plz</a>
     62 </div>
     63 </div>
     64 </div>