[xoops-cvslog 4579] CVS update: xoops2jp/html/modules/base/templates

Back to archive index

NobuNobu nobun****@users*****
2006年 9月 23日 (土) 17:42:21 JST


Index: xoops2jp/html/modules/base/templates/legacy_xoopsform_elementtray.html
diff -u xoops2jp/html/modules/base/templates/legacy_xoopsform_elementtray.html:1.1.2.1 xoops2jp/html/modules/base/templates/legacy_xoopsform_elementtray.html:1.1.2.2
--- xoops2jp/html/modules/base/templates/legacy_xoopsform_elementtray.html:1.1.2.1	Fri Sep 22 18:18:56 2006
+++ xoops2jp/html/modules/base/templates/legacy_xoopsform_elementtray.html	Sat Sep 23 17:42:21 2006
@@ -2,11 +2,16 @@
   <{if $flag}>
     <{$tray->getDelimeter()}>
   <{/if}>
-  <{if $element->getCaption != ''}>
-    <{$element->getCaption()}>&nbsp;
-  <{/if}>
-  <{$element->render()}>
-  <{if !$element->isHidden()}>
+  <{if is_object($element) }>
+    <{if $element->getCaption != ''}>
+      <{$element->getCaption()}>&nbsp;
+    <{/if}>
+    <{$element->render()}>
+    <{if !$element->isHidden()}>
+      <{assign var=flag value=true}>
+    <{/if}>
+  <{else}>
+    <{$element}>
     <{assign var=flag value=true}>
   <{/if}>
-<{/foreach}>
\ No newline at end of file
+<{/foreach}>
Index: xoops2jp/html/modules/base/templates/legacy_xoopsform_simpleform.html
diff -u xoops2jp/html/modules/base/templates/legacy_xoopsform_simpleform.html:1.1.2.1 xoops2jp/html/modules/base/templates/legacy_xoopsform_simpleform.html:1.1.2.2
--- xoops2jp/html/modules/base/templates/legacy_xoopsform_simpleform.html:1.1.2.1	Fri Sep 22 18:18:56 2006
+++ xoops2jp/html/modules/base/templates/legacy_xoopsform_simpleform.html	Sat Sep 23 17:42:21 2006
@@ -1,11 +1,15 @@
 <{$form->getTitle()}>
 <form name='<{$form->getName()}>' id='<{$form->getName()}>' action='<{$form->getAction()}>' method='<{$form->getMethod()}>' <{$form->getExtra()}> >
   <{foreach from=$form->getElements() item=element}>
-    <{if !$element->isHidden()}>
-      <b><{$element->getCaption()}></b><br/>
-      <{$element->render()}><br/>
+    <{if is_object($element) }>
+      <{if !$element->isHidden()}>
+        <b><{$element->getCaption()}></b><br/>
+        <{$element->render()}><br/>
+      <{else}>
+        <{$element->render()}>
+      <{/if}>
     <{else}>
-      <{$element->render()}>
+      <{$element}>
     <{/if}>
   <{/foreach}>
 </form>
Index: xoops2jp/html/modules/base/templates/legacy_xoopsform_tableform.html
diff -u xoops2jp/html/modules/base/templates/legacy_xoopsform_tableform.html:1.1.2.2 xoops2jp/html/modules/base/templates/legacy_xoopsform_tableform.html:1.1.2.3
--- xoops2jp/html/modules/base/templates/legacy_xoopsform_tableform.html:1.1.2.2	Fri Sep 22 21:37:56 2006
+++ xoops2jp/html/modules/base/templates/legacy_xoopsform_tableform.html	Sat Sep 23 17:42:21 2006
@@ -2,21 +2,32 @@
 <form name='<{$form->getName()}>' id='<{$form->getName()}>' action='<{$form->getAction()}>' method='<{$form->getMethod()}>' <{$form->getExtra()}> >
   <table style="width:100%;" cellspacing="1">
     <{foreach from=$form->getElements() item=element}>
-      <{if !$element->isHidden()}>
-        <tr>
-          <td style="text-align:left; vertical-align:top;">
-            <{$element->getCaption()}>
-            <{if $element->getDescription() != ''}>
-              <br /><br /><span style="font-weight: normal;"><{$element->getDescription()}></span>
-            <{/if}>
-          </td>
-          <td style="text-align:left; vertical-align:top;">
-            <{$element->render()}>
-          </td>
-        </tr>
+      <{if is_object($element) }>
+        <{if !$element->isHidden()}>
+          <{if !$element->isBreak()}>
+            <tr>
+              <td style="text-align:left; vertical-align:top;">
+                <{$element->getCaption()}>
+                <{if $element->getDescription() != ''}>
+                  <br /><br /><span style="font-weight: normal;"><{$element->getDescription()}></span>
+                <{/if}>
+              </td>
+              <td style="text-align:left; vertical-align:top;">
+                <{$element->render()}>
+              </td>
+            </tr>
+          <{else}>
+            <tr><td colspan='2' <{$element->getClass()}>><{$element->getExtra()}></td></tr>
+          <{/if}>
+        <{/if}>
       <{else}>
-        <{$element->render()}>
+        <{$element}>
       <{/if}>
     <{/foreach}>
   </table>
+  <{foreach from=$form->getElements() item=element}>
+    <{if $element->isHidden()}>
+      <{$element->render()}>
+    <{/if}>
+  <{/foreach}>
 </form>
Index: xoops2jp/html/modules/base/templates/legacy_xoopsform_themeform.html
diff -u xoops2jp/html/modules/base/templates/legacy_xoopsform_themeform.html:1.1.2.3 xoops2jp/html/modules/base/templates/legacy_xoopsform_themeform.html:1.1.2.4
--- xoops2jp/html/modules/base/templates/legacy_xoopsform_themeform.html:1.1.2.3	Sat Sep 23 15:57:47 2006
+++ xoops2jp/html/modules/base/templates/legacy_xoopsform_themeform.html	Sat Sep 23 17:42:21 2006
@@ -6,25 +6,32 @@
       </th>
     </tr>
     <{foreach from=$form->getElements() item=element}>
-      <{if !$element->isHidden()}>
-        <{if !$element->isBreak()}>
-          <tr valign='top' align='left'>
-            <td class='head' style="text-align:left; vertical-align:top;">
-              <{$element->getCaption()}>
-              <{if $element->getDescription() != ''}>
-                <br /><br /><span style="font-weight: normal;"><{$element->getDescription()}></span>
-              <{/if}>
-            </td>
-            <td class='even' style="text-align:left; vertical-align:top;">
-              <{$element->render()}>
-            </td>
-          </tr>
-        <{else}>
-          <tr><td colspan='2' <{$element->getClass()}>><{$element->getExtra()}></td></tr>
+      <{if is_object($element) }>
+        <{if !$element->isHidden()}>
+          <{if !$element->isBreak()}>
+            <tr valign='top' align='left'>
+              <td class='head' style="text-align:left; vertical-align:top;">
+                <{$element->getCaption()}>
+                <{if $element->getDescription() != ''}>
+                  <br /><br /><span style="font-weight: normal;"><{$element->getDescription()}></span>
+                <{/if}>
+              </td>
+              <td class='even' style="text-align:left; vertical-align:top;">
+                <{$element->render()}>
+              </td>
+            </tr>
+          <{else}>
+            <tr><td colspan='2' <{$element->getClass()}>><{$element->getExtra()}></td></tr>
+          <{/if}>
         <{/if}>
       <{else}>
-        <{$element->render()}>
+        <{$element}>
       <{/if}>
     <{/foreach}>
   </table>
+  <{foreach from=$form->getElements() item=element}>
+    <{if $element->isHidden()}>
+      <{$element->render()}>
+    <{/if}>
+  <{/foreach}>
 </form>


xoops-cvslog メーリングリストの案内
Back to archive index