You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/09/24 02:24:26 UTC

svn commit: r818324 - /ofbiz/trunk/applications/product/webapp/catalog/product/EditProductContent.ftl

Author: lektran
Date: Thu Sep 24 00:24:25 2009
New Revision: 818324

URL: http://svn.apache.org/viewvc?rev=818324&view=rev
Log:
Various xhtml validation fixes

Modified:
    ofbiz/trunk/applications/product/webapp/catalog/product/EditProductContent.ftl

Modified: ofbiz/trunk/applications/product/webapp/catalog/product/EditProductContent.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/product/EditProductContent.ftl?rev=818324&r1=818323&r2=818324&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/product/EditProductContent.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/product/EditProductContent.ftl Thu Sep 24 00:24:25 2009
@@ -39,13 +39,13 @@
     <br/>
     </#if>
     <form action="<@o...@ofbizUrl>" method="post" style="margin: 0;" name="productForm">
+    <input type="hidden" name="productId" value="${productId?if_exists}"/>
     <table cellspacing="0" class="basic-table">
-    <input type="hidden" name="productId" value="${productId?if_exists}">
     <tr>
         <td width="20%" align="right" valign="top"><b>${uiLabelMap.ProductProductName}</b></td>
         <td>&nbsp;</td>
         <td width="80%" colspan="4" valign="top">
-            <input type="text" name="productName" value="${(product.productName?html)?if_exists}" size="30" maxlength="60">
+            <input type="text" name="productName" value="${(product.productName?html)?if_exists}" size="30" maxlength="60"/>
         </td>
     </tr>
     <tr>
@@ -66,7 +66,7 @@
         <td width="20%" align="right" valign="top"><b>${uiLabelMap.ProductDetailScreen}</b></td>
         <td>&nbsp;</td>
         <td width="80%" colspan="4" valign="top">
-            <input type="text" name="detailScreen" value="${(product.detailScreen)?if_exists}" size="60" maxlength="250">
+            <input type="text" name="detailScreen" value="${(product.detailScreen)?if_exists}" size="60" maxlength="250"/>
             <br/><span class="tooltip">${uiLabelMap.ProductIfNotSpecifiedDefaultsIsProductdetail} &quot;productdetail&quot;, ${uiLabelMap.ProductDetailScreenMessage}: &quot;component://ecommerce/widget/CatalogScreens.xml#productdetail&quot;</span>
         </td>
     </tr>
@@ -74,12 +74,12 @@
         <td width="20%" align="right" valign="top">
             <div><b>${uiLabelMap.ProductSmallImage}</b></div>
             <#if (product.smallImageUrl)?exists>
-                <a href="<@o...@ofbizContentUrl>" target="_blank"><img alt="Small Image" src="<@o...@ofbizContentUrl>" height="40" width="40"></a>
+                <a href="<@o...@ofbizContentUrl>" target="_blank"><img alt="Small Image" src="<@o...@ofbizContentUrl>" height="40" width="40"/></a>
             </#if>
         </td>
         <td>&nbsp;</td>
         <td width="80%" colspan="4" valign="top">
-        <input type="text" name="smallImageUrl" value="${(product.smallImageUrl)?default('')}" size="60" maxlength="255">
+        <input type="text" name="smallImageUrl" value="${(product.smallImageUrl)?default('')}" size="60" maxlength="255"/>
         <#if productId?has_content>
             <div>
             <span>${uiLabelMap.ProductInsertDefaultImageUrl}: </span>
@@ -94,12 +94,12 @@
         <td width="20%" align="right" valign="top">
             <div><b>${uiLabelMap.ProductMediumImage}</b></div>
             <#if (product.mediumImageUrl)?exists>
-                <a href="<@o...@ofbizContentUrl>" target="_blank"><img alt="Medium Image" src="<@o...@ofbizContentUrl>" height="40" width="40"></a>
+                <a href="<@o...@ofbizContentUrl>" target="_blank"><img alt="Medium Image" src="<@o...@ofbizContentUrl>" height="40" width="40"/></a>
             </#if>
         </td>
         <td>&nbsp;</td>
         <td width="80%" colspan="4" valign="top">
-        <input type="text" name="mediumImageUrl" value="${(product.mediumImageUrl)?default('')}" size="60" maxlength="255">
+        <input type="text" name="mediumImageUrl" value="${(product.mediumImageUrl)?default('')}" size="60" maxlength="255"/>
         <#if productId?has_content>
             <div>
             <span>${uiLabelMap.ProductInsertDefaultImageUrl}: </span>
@@ -114,12 +114,12 @@
         <td width="20%" align="right" valign="top">
             <div><b>${uiLabelMap.ProductLargeImage}</b></div>
             <#if (product.largeImageUrl)?exists>
-                <a href="<@o...@ofbizContentUrl>" target="_blank"><img alt="Large Image" src="<@o...@ofbizContentUrl>" height="40" width="40"></a>
+                <a href="<@o...@ofbizContentUrl>" target="_blank"><img alt="Large Image" src="<@o...@ofbizContentUrl>" height="40" width="40"/></a>
             </#if>
         </td>
         <td>&nbsp;</td>
         <td width="80%" colspan="4" valign="top">
-        <input type="text" name="largeImageUrl" value="${(product.largeImageUrl)?default('')}" size="60" maxlength="255">
+        <input type="text" name="largeImageUrl" value="${(product.largeImageUrl)?default('')}" size="60" maxlength="255"/>
         <#if productId?has_content>
             <div>
             <span>${uiLabelMap.ProductInsertDefaultImageUrl}: </span>
@@ -134,12 +134,12 @@
         <td width="20%" align="right" valign="top">
             <div><b>${uiLabelMap.ProductDetailImage}</b></div>
             <#if (product.detailImageUrl)?exists>
-                <a href="<@o...@ofbizContentUrl>" target="_blank"><img alt="Detail Image" src="<@o...@ofbizContentUrl>" height="40" width="40"></a>
+                <a href="<@o...@ofbizContentUrl>" target="_blank"><img alt="Detail Image" src="<@o...@ofbizContentUrl>" height="40" width="40"/></a>
             </#if>
         </td>
         <td>&nbsp;</td>
         <td width="80%" colspan="4" valign="top">
-        <input type="text" name="detailImageUrl" value="${(product.detailImageUrl)?default('')}" size="60" maxlength="255">
+        <input type="text" name="detailImageUrl" value="${(product.detailImageUrl)?default('')}" size="60" maxlength="255"/>
         <#if productId?has_content>
             <div>
             <span>${uiLabelMap.ProductInsertDefaultImageUrl}: </span>
@@ -154,12 +154,12 @@
         <td width="20%" align="right" valign="top">
             <div><b>${uiLabelMap.ProductOriginalImage}</b></div>
             <#if (product.originalImageUrl)?exists>
-                <a href="<@o...@ofbizContentUrl>" target="_blank"><img alt="Original Image" src="<@o...@ofbizContentUrl>" height="40" width="40"></a>
+                <a href="<@o...@ofbizContentUrl>" target="_blank"><img alt="Original Image" src="<@o...@ofbizContentUrl>" height="40" width="40"/></a>
             </#if>
         </td>
         <td>&nbsp;</td>
         <td width="80%" colspan="4" valign="top">
-        <input type="text" name="originalImageUrl" value="${(product.originalImageUrl)?default('')}" size="60" maxlength="255">
+        <input type="text" name="originalImageUrl" value="${(product.originalImageUrl)?default('')}" size="60" maxlength="255"/>
         <#if productId?has_content>
             <div>
             <span>${uiLabelMap.ProductInsertDefaultImageUrl}: </span>
@@ -184,19 +184,20 @@
         };
     </script>
     <h3>${uiLabelMap.ProductUploadImage}</h3>
-    <form method="post" enctype="multipart/form-data" action="<@o...@ofbizUrl>" name="imageUploadForm">
+    <form method="post" enctype="multipart/form-data" action="<@o...@ofbizUrl>" name="imageUploadForm">
         <table cellspacing="0" class="basic-table">
             <tr>
                 <td width="20%" align="right" valign="top">
-                    <input type="file" size="50" name="fname">
+                    <input type="file" size="50" name="fname"/>
+                </td>
                 <td>&nbsp;</td>
                 <td width="80%" colspan="4" valign="top">
-                    <input type="radio" name="upload_file_type_bogus" value="small" onclick='setUploadUrl("<@o...@ofbizUrl>");'>${uiLabelMap.CommonSmall}
-                    <input type="radio" name="upload_file_type_bogus" value="medium" onclick='setUploadUrl("<@o...@ofbizUrl>");'>${uiLabelMap.CommonMedium}
-                    <input type="radio" name="upload_file_type_bogus" value="large"onclick='setUploadUrl("<@o...@ofbizUrl>");'>${uiLabelMap.CommonLarge}
-                    <input type="radio" name="upload_file_type_bogus" value="detail" onclick='setUploadUrl("<@o...@ofbizUrl>");'>${uiLabelMap.CommonDetail}
-                    <input type="radio" name="upload_file_type_bogus" value="original" checked onclick='setUploadUrl("<@o...@ofbizUrl>");'>${uiLabelMap.ProductOriginal}
-                    <input type="submit" class="smallSubmit" value="${uiLabelMap.ProductUploadImage}">
+                    <input type="radio" name="upload_file_type_bogus" value="small" onclick='setUploadUrl("<@o...@ofbizUrl>");'/>${uiLabelMap.CommonSmall}
+                    <input type="radio" name="upload_file_type_bogus" value="medium" onclick='setUploadUrl("<@o...@ofbizUrl>");'/>${uiLabelMap.CommonMedium}
+                    <input type="radio" name="upload_file_type_bogus" value="large"onclick='setUploadUrl("<@o...@ofbizUrl>");'/>${uiLabelMap.CommonLarge}
+                    <input type="radio" name="upload_file_type_bogus" value="detail" onclick='setUploadUrl("<@o...@ofbizUrl>");'/>${uiLabelMap.CommonDetail}
+                    <input type="radio" name="upload_file_type_bogus" value="original" checked="checked" onclick='setUploadUrl("<@o...@ofbizUrl>");'/>${uiLabelMap.ProductOriginal}
+                    <input type="submit" class="smallSubmit" value="${uiLabelMap.ProductUploadImage}"/>
                 </td>
             </tr>
         </table>