[interchange-cvs] [SCM] Interchange branch, master, updated. 5afadccff16a21b7fab46395ede1b66c04e4c091

Gert van der Spoel interchange-cvs at icdevgroup.org
Tue Jul 14 07:01:14 UTC 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Interchange".

The branch, master has been updated
       via  5afadccff16a21b7fab46395ede1b66c04e4c091 (commit)
      from  8276d0ead67a68b68e695b91d1af7afb7cc00e8b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5afadccff16a21b7fab46395ede1b66c04e4c091
Author: René Hertell <icdevgroup.com at hertell.com>
Date:   Tue Jul 14 08:59:34 2009 +0200

    Refurbishing standard/pages/quantity.html
    
    - fixed a couple of html-issues
      (missing quotes, wrongly set vertical alignments in table cells).
    - Added a couple of checks to avoid empty cells in tables
    - replaced whitespace with tabs and changed case on html-tags

-----------------------------------------------------------------------

Summary of changes and diff:
 dist/standard/pages/quantity.html |  119 +++++++++++++++++++------------------
 1 files changed, 60 insertions(+), 59 deletions(-)

diff --git a/dist/standard/pages/quantity.html b/dist/standard/pages/quantity.html
index 5af3a83..3a263da 100644
--- a/dist/standard/pages/quantity.html
+++ b/dist/standard/pages/quantity.html
@@ -26,64 +26,65 @@ ui_template_name: leftonly
 <!-- BEGIN CONTENT -->
 
 <br>
-				  
+
 [fly-list code="[data session arg]"]
-                    
+
 <table width="65%" border="0">
-<tr class="contentbar1"> 
-  <td>
-    <big>[item-field category] : <b>[item-description]</b></big>
-  </td>
-</tr>
+	<tr class="contentbar1">
+		<td>
+			<big>[item-field category] : <b>[item-description]</b></big>
+		</td>
+	</tr>
 </table>
-					
+
 <table width="65%" border="0">
-<tr valign="middle"> 
-  <td align=center> 
-    <table border="0" cellspacing="5" align="center">
-    <tr> 
-      <td valign="center" align="center"> 
+	<tr valign="middle">
+		<td align="center">
+			<table border="0" cellspacing="5" align="center">
+				<tr>
+					<td valign="middle" align="center">
 	[if-item-field image]
-	  <IMG SRC="items/[item-field image]" ALT="[item-description]" BORDER="0">
-	[/if-item-field]							  
-      </td>
-      <td valign="center" align="center"> 
-        <table border="0" cellpadding="3" cellspacing="0">
-        <tr> 
-          <td align="center">&nbsp;</td>
-        </tr>									
-        <tr> 
-          <td colspan="2">   
-  	    [item-field comment]
-          </td>
-        </tr>
-	<tr><td>&nbsp;</td></tr>
+	  <img src="items/[item-field image]" alt="[item-description]">
+	[else]&nbsp;[/else]
+	[/if-item-field]
+					</td>
+					<td valign="middle" align="center">
+						<table border="0" cellpadding="3" cellspacing="0">
+							<tr>
+								<td align="center">&nbsp;</td>
+							</tr>
+							<tr>
+								<td colspan="2">
+									[either][item-field comment][or]&nbsp;[/either]
+								</td>
+							</tr>
+							<tr><td>&nbsp;</td></tr>
 
 [seti count][data table=inventory column=quantity key='[item-code]'][/seti]
 [if scratch count eq 0]
-        <tr> 
-          <td>
-	    <b>[L]Out Of Stock[/L]</b>
-	    <a href="[area function/stock_alert [item-code]]">[L]In Stock Notification[/L]</a>
-          </td>
-        </tr>
+							<tr>
+								<td>
+									<b>[L]Out Of Stock[/L]</b>
+									<a href="[area function/stock_alert [item-code]]">[L]In Stock Notification[/L]</a>
+								</td>
+							</tr>
 [else]
-        <tr> 
-          <td>
-	    <b>In Stock</b>
-	  </td>
-        </tr>
+							<tr>
+								<td>
+									<b>[L]In Stock[/L]</b>
+								</td>
+							</tr>
 [/else]
-[/if]									
-        </table>
-      </td>
-    </tr>
-    </table>
-  </td>
-</tr>
+[/if]
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
 </table>
-					
-<br>			  
+
+<br>
 
 [set quantities]1 5 10 25[/set]
 			[calc]
@@ -97,7 +98,7 @@ ui_template_name: leftonly
 
 [loop prefix="part" list="[data session arg]"]
 
-<TABLE width="65%" cellpadding="5">
+<table width="65%" cellpadding="5">
 [table-organize
 			caption="Quantity Pricing"
 			rows="2"
@@ -106,18 +107,18 @@ ui_template_name: leftonly
 			tr.1=|class="maincontent"|
 			cols="[scratch qp_columns]"
 			]
-  <TD>
-    [L]Part No.[/L]
-  </TD>
-  <TD VALIGN=TOP>[part-code]</TD>
-  [loop list="[scratch quantities]"]
-  <TD VALIGN=BOTTOM ALIGN=RIGHT>[loop-code]</TD>
-  <TD VALIGN=TOP ALIGN=RIGHT>
-    [order code="[part-code]" quantity="[loop-code]"][price code="[part-code]" quantity="[loop-code]"]</A>	
-  </TD>
-  [/loop]
+	<td>
+		[L]Part No.[/L]
+	</td>
+	<td valign="top">[part-code]</td>
+	[loop list="[scratch quantities]"]
+	<td valign="bottom" align="right">[loop-code]</td>
+	<td valign="top" align="right">
+		[order code="[part-code]" quantity="[loop-code]"][price code="[part-code]" quantity="[loop-code]"]</a>
+	</td>
+	[/loop]
 [/table-organize]
-</TABLE>
+</table>
 
 [/loop]
 


hooks/post-receive
-- 
Interchange



More information about the interchange-cvs mailing list