thiswebshoprules

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

products.html.html (3640B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      5 <title>products.html - getdafuckouttahere.net - Unnamed repository; edit this file &#39;description&#39; to name the repository.
      6 </title>
      7 <link rel="icon" type="image/png" href="../../../favicon.png" />
      8 <link rel="alternate" type="application/atom+xml" title="getdafuckouttahere.net Atom Feed" href="../../../atom.xml" />
      9 <link rel="alternate" type="application/atom+xml" title="getdafuckouttahere.net Atom Feed (tags)" href="../../../tags.xml" />
     10 <link rel="stylesheet" type="text/css" href="../../../style.css" />
     11 </head>
     12 <body>
     13 <table><tr><td><a href="../../../../"><img src="../../../logo.png" alt="" width="32" height="32" /></a></td><td><h1>getdafuckouttahere.net</h1><span class="desc">Unnamed repository; edit this file &#39;description&#39; to name the repository.
     14 </span></td></tr><tr><td></td><td>
     15 <a href="../../../log.html">Log</a> | <a href="../../../files.html">Files</a> | <a href="../../../refs.html">Refs</a></td></tr></table>
     16 <hr/>
     17 <div id="content">
     18 <p> products.html (750B)</p><hr/><pre id="blob">
     19 <a href="#l1" class="line" id="l1">      1</a> $def with (addproduct, listproducts, productimages, idvalue)
     20 <a href="#l2" class="line" id="l2">      2</a> &lt;div id=&quot;container&quot;&gt;
     21 <a href="#l3" class="line" id="l3">      3</a> &lt;div id=&quot;default&quot;&gt;
     22 <a href="#l4" class="line" id="l4">      4</a> &lt;br&gt;
     23 <a href="#l5" class="line" id="l5">      5</a> $for i in listproducts:
     24 <a href="#l6" class="line" id="l6">      6</a>     &lt;a href=&#39;/products/$i.id&#39;&gt;$i.name $i.price&lt;/a&gt;
     25 <a href="#l7" class="line" id="l7">      7</a> $if idvalue == &#39;&#39;:
     26 <a href="#l8" class="line" id="l8">      8</a>     &lt;h2&gt;Add product&lt;/h2&gt;
     27 <a href="#l9" class="line" id="l9">      9</a> $else:
     28 <a href="#l10" class="line" id="l10">     10</a>     &lt;h2&gt;Edit product&lt;/h2&gt;
     29 <a href="#l11" class="line" id="l11">     11</a> &lt;div id=&quot;addevent&quot;&gt;
     30 <a href="#l12" class="line" id="l12">     12</a> &lt;form method=&quot;POST&quot;&gt;
     31 <a href="#l13" class="line" id="l13">     13</a> $:addproduct.render()
     32 <a href="#l14" class="line" id="l14">     14</a> &lt;/form&gt;
     33 <a href="#l15" class="line" id="l15">     15</a> &lt;a href=&#39;/products/$idvalue?cmd=del&amp;id=$idvalue&#39;&gt;remove product&lt;/a&gt;
     34 <a href="#l16" class="line" id="l16">     16</a> &lt;br&gt;
     35 <a href="#l17" class="line" id="l17">     17</a> $for i in productimages:
     36 <a href="#l18" class="line" id="l18">     18</a>     &lt;img src=&quot;/static/img/$idvalue/thumb/$i&quot;&gt;
     37 <a href="#l19" class="line" id="l19">     19</a>     &lt;a href=&#39;/products/$idvalue?cmd=removeimg&amp;img=$i&#39;&gt;remove&lt;/a&gt;
     38 <a href="#l20" class="line" id="l20">     20</a> &lt;form method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot; action=&quot;&quot;&gt;
     39 <a href="#l21" class="line" id="l21">     21</a> Image(jpeg): &lt;input type=&quot;file&quot; name=&quot;imgfile&quot;/&gt; &lt;br&gt;
     40 <a href="#l22" class="line" id="l22">     22</a> &lt;br/&gt;
     41 <a href="#l23" class="line" id="l23">     23</a> &lt;input name=&quot;upload&quot;, type=&quot;submit&quot; value=&quot;upload&quot; /&gt;
     42 <a href="#l24" class="line" id="l24">     24</a> &lt;/form&gt;
     43 <a href="#l25" class="line" id="l25">     25</a> &lt;/div&gt;
     44 <a href="#l26" class="line" id="l26">     26</a> 
     45 <a href="#l27" class="line" id="l27">     27</a> &lt;/div&gt;
     46 <a href="#l28" class="line" id="l28">     28</a> &lt;/div&gt;
     47 <a href="#l29" class="line" id="l29">     29</a> &lt;/div&gt;
     48 </pre>
     49 </div>
     50 </body>
     51 </html>