summaryrefslogtreecommitdiffstats
path: root/templates/productdetails.tpl
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-06-01 18:46:12 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-06-01 18:46:12 +0200
commitaf6dd5f8f9844596e85db25a8e97df9e08cb795c (patch)
tree8408e754dd335571635bcde041bbce69213af592 /templates/productdetails.tpl
parentbe50d9ed4ba2b844bbc29686cee46b1dc149372a (diff)
downloadCatalog-af6dd5f8f9844596e85db25a8e97df9e08cb795c.tar.gz
Catalog-af6dd5f8f9844596e85db25a8e97df9e08cb795c.zip
Port alls sites to smarty and use the inheritance model
Diffstat (limited to 'templates/productdetails.tpl')
-rw-r--r--templates/productdetails.tpl49
1 files changed, 49 insertions, 0 deletions
diff --git a/templates/productdetails.tpl b/templates/productdetails.tpl
new file mode 100644
index 0000000..b850c7d
--- /dev/null
+++ b/templates/productdetails.tpl
@@ -0,0 +1,49 @@
+{extends file="layout.tpl"}
+{block name=title}{$product->getName()}{/block}
+{block name=navigation}
+<dl>
+ <dt><a href="contact.php">Contact us</a></dt>
+ <dt><a href=".">Home</a></dt>
+ <dt><a href="categories.php">Categories</a></dt>
+ <dt><a href="products.php?id={$catid}">Back to Category</a></dt>
+ {if $loggedin}
+ <dt><a href="login.php?logout">Logout</a></dt>
+ {else}
+ <dt><a href="login.php">Login</a></dt>
+ {/if}
+</dl>
+{/block}
+{block name=content}
+<form>
+ <div class="row">
+ <label for="name"><u>N</u>ame:</label>
+ <input class="formw" type="text"
+ placeholder="Name" id="name" name="name" accesskey="n"
+ maxlength="100" readonly value="{$product->getName()}">
+ </div>
+ <div class="row">
+ <label for="price"><u>P</u>rice (Euro):</label>
+ <input class="formw" type="text"
+ placeholder="Price (Euro)" id="price" name="price" accesskey="p"
+ maxlength="13" readonly value="{$product->getPrice()}">
+ </div>
+ <div class="row">
+ <label for="width"><u>W</u>idth (mm):</label>
+ <input class="formw" type="text"
+ placeholder="Width (mm)" id="width" name="width" accesskey="w"
+ maxlength="11" readonly value="{$product->getWidth()}">
+ </div>
+ <div class="row">
+ <label for="height"><u>H</u>eight (mm):</label>
+ <input class="formw" type="text"
+ placeholder="Height (mm)" id="height" name="height" accesskey="h"
+ maxlength="11" readonly value="{$product->getHeight()}">
+ </div>
+ <div class="row">
+ <label for="desc"><u>D</u>escription:</label>
+ <textarea class="formw" placeholder="Description" id="desc" name="desc"
+ accesskey="d" maxlength="1000" readonly rows="5">{$product->getDescription()}</textarea>
+ </div>
+ <div class="spacer">&nbsp;</div>
+</form>
+{/block} \ No newline at end of file