XHTML Strict templates for Commerce and Web Services Client

This commit is contained in:
Steve Swanson 2006-03-22 21:58:41 +00:00
parent f375a5d4b7
commit f3a306d21c
4 changed files with 155 additions and 0 deletions

View file

@ -0,0 +1,58 @@
#PBtmpl0000000000000016
<a href="<tmpl_var viewShoppingCart.url>"><tmpl_var viewShoppingCart.label></a> &middot;
<a href="<tmpl_var changePayment.url>"><tmpl_var changePayment.label></a> &middot;
<a href="<tmpl_var changeShipping.url>"><tmpl_var changeShipping.label></a><br />
<br>
<tmpl_var title><br>
<ul>
<tmpl_loop errorLoop>
<li><tmpl_var message></li>
</tmpl_loop>
</ul>
<table> <tr align="left">
<th style="border-bottom: 2px solid black">Product</th>
<th style="border-bottom: 2px solid black">Quantity</th>
<th style="border-bottom: 2px solid black">Price</th>
<th style="border-bottom: 2px solid black">Each</th>
</tr>
<tmpl_if normalItems>
</tmpl_if>
<tmpl_loop normalItemsLoop>
<tr>
<td align="left"><tmpl_var name></td>
<td align="center"><tmpl_var quantity></td>
<td align="right"><tmpl_var totalPrice></td>
</tr>
</tmpl_loop>
<tmpl_loop recurringItemsLoop>
<tr>
<td align="left"><tmpl_var name></td>
<td align="center"><tmpl_var quantity></td>
<td align="right"><tmpl_var totalPrice></td>
<td align="left"><tmpl_var period></td>
</tr>
</tmpl_loop>
<tr style="border-top: 1px solid black">
<td style="border-top: 1px solid black">&nbsp;</td>
<td align="right" style="border-top: 1px solid black"><b>Subtotal</b></td>
<td align="right" style="border-top: 1px solid black"><b><tmpl_var subtotal></b></td>
</tr>
<tr>
<td colspan="2" align="right">Shipping</td>
<td align="right"><tmpl_var shippingCost></td>
</tr>
<tr>
<td colspan="2" align="right" style="border-top: 1px solid black"><b>Total</b></td>
<td align="right" style="border-top: 1px solid black"><b><tmpl_var total></b></td>
</tr>
</table>
<br /><br />
<tmpl_var form>

View file

@ -0,0 +1,20 @@
#PBtmpl0000000000000018
<table border="1" cellpadding="5" cellspacing="0">
<tr>
<th>Transaction description</th>
<th>Price</th>
<th>Status</th>
<th>Error</th>
</tr>
<tmpl_loop resultLoop>
<tr>
<td align="left"><tmpl_var purchaseDescription></td>
<td align="right"><tmpl_var purchaseAmount></td>
<td><tmpl_var status></td>
<td align="left"><tmpl_var error> (<tmpl_var errorCode>)</td>
</tr>
</tmpl_loop>
</table><br />
<br />
<tmpl_var statusExplanation>

View file

@ -0,0 +1,57 @@
#PBtmpl0000000000000100
<a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a>
<tmpl_if session.var.adminOn>
<p><tmpl_var controls></p>
</tmpl_if>
<h2><tmpl_var title></h2>
<tmpl_if description>
<tmpl_var description><br /><br />
</tmpl_if>
<form method="post">
<input type="hidden" name="func" value="view" />
<input type="hidden" name="wid" value="<tmpl_var wobjectId>" />
<input type="hidden" name="targetWobjects" value="doGoogleSearch" />
<input type="text" name="q"><input type="submit" value="Search" />
</form>
<tmpl_if results>
<tmpl_loop results>
<tmpl_if resultElements>
<p>You searched for <b><tmpl_var searchQuery></b>. We found around <tmpl_var estimatedTotalResultsCount> matching records.</p>
</tmpl_if>
<tmpl_loop resultElements>
<a href="<tmpl_var URL>">
<tmpl_if title>
<tmpl_var title>
<tmpl_else>
<tmpl_var url>
</tmpl_if>
</a><br />
<tmpl_if snippet>
<tmpl_var snippet><br />
</tmpl_if>
<div class="googleDetail">
<tmpl_if summary>
<b>Description:</b> <tmpl_var summary><br />
</tmpl_if>
<a href="<tmpl_var URL>"><tmpl_var URL></a>
<tmpl_if cachedSize>
- <tmpl_var cachedSize>
</tmpl_if>
</div><br />
</tmpl_loop>
</tmpl_loop>
<tmpl_else>
Could not retrieve results from Google.
</tmpl_if>
~~~
<style type="text/css">
.googleDetail {
font-size: 9px;
}
</style>

View file

@ -0,0 +1,20 @@
#PBtmpl0000000000000069
<a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a>
<tmpl_if session.var.adminOn>
<p><tmpl_var controls></p>
</tmpl_if>
<h2><tmpl_var title></h2>
<tmpl_if description>
<tmpl_var description><br /><br />
</tmpl_if>
<tmpl_if results>
<tmpl_loop results>
The current temp is: <tmpl_var result>
</tmpl_loop>
<tmpl_else>
Failed to retrieve temp.
</tmpl_if>