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

Back to archive index

Minahito minah****@users*****
2006年 4月 7日 (金) 17:45:46 JST


Index: xoops2jp/html/modules/base/admin/templates/block_list.html
diff -u xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.3 xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.4
--- xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.3	Thu Apr  6 16:54:38 2006
+++ xoops2jp/html/modules/base/admin/templates/block_list.html	Fri Apr  7 17:45:46 2006
@@ -7,68 +7,95 @@
   [ <a href="index.php?action=CustomBlockEdit"><{$smarty.const._AD_BASE_LANG_ADD_CUSTOM_BLOCK}></a> ]
 </div>
 <br/>
-<table class="outer" cellspacing="1">
-  <tr>
-    <th><{$smarty.const._AD_BASE_LANG_BID}><br />
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_BID}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_BID}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
-    <th><{$smarty.const._AD_BASE_LANG_MID}><br />
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_MID}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_MID}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
-    <th><{$smarty.const._AD_BASE_LANG_NAME}><br />
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_NAME}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_NAME}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
-    <th><{$smarty.const._AD_BASE_LANG_TITLE}><br />
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_TITLE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_TITLE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
-    <th><{$smarty.const._AD_BASE_LANG_SIDE}><br />
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_SIDE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_SIDE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
-    <th><{$smarty.const._AD_BASE_LANG_WEIGHT}><br />
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_WEIGHT}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_WEIGHT}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
-    <th><{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}><br />
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_BLOCK_TYPE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_BLOCK_TYPE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
-    <th><{$smarty.const._AD_BASE_LANG_C_TYPE}><br />
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_C_TYPE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_C_TYPE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
-    <th><{$smarty.const._AD_BASE_LANG_BCACHETIME}><br />
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_BCACHETIME}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_BCACHETIME}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
-    <th><{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}><br />
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_LAST_MODIFIED}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
-      <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_LAST_MODIFIED}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
-    <th><{$smarty.const._AD_BASE_LANG_CONTROL}></th>
-  </tr>
-  <{foreach item=obj from=$objects}>
-    <tr class="<{cycle values='odd,even'}>">
-      <td><{$obj->getVar('bid')}></td>
-      <td>
-        <{if $obj->mModule}>
-          <{$obj->mModule->getVar('name')}>
-        <{else}>
-          &nbsp;
-        <{/if}>
-      </td>
-      <td><{$obj->getVar('name')}></td>
-      <td><{$obj->getVar('title')}></td>
-      <td><{if $obj->mColumn}><{$obj->mColumn->getVar('name')}><{/if}></td>
-      <td><{$obj->getVar('weight')}></td>
-      <td><{$obj->getVar('block_type')}></td>
-      <td><{$obj->getVar('c_type')}></td>
-      <td><{if $obj->mCachetime}><{$obj->mCachetime->getVar('label')}><{/if}></td>
-      <td><{$obj->getVar('last_modified')|xoops_formattimestamp:l}></td>
+<{if $actionForm->hasError()}>
+  <ul>
+    <{foreach item=message from=$actionForm->getErrorMessages()}>
+      <li><{$message|escape}></li>
+    <{/foreach}>
+  </ul>
+<{/if}>
+<form method="POST" action="./index.php?action=BlockList">
+  <{xoops_token form=$actionForm}>
+  <table class="outer" cellspacing="1">
+    <tr>
+      <th><{$smarty.const._AD_BASE_LANG_BID}><br />
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_BID}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_BID}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
+      <th><{$smarty.const._AD_BASE_LANG_MID}><br />
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_MID}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_MID}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
+      <th><{$smarty.const._AD_BASE_LANG_NAME}><br />
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_NAME}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_NAME}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
+      <th><{$smarty.const._AD_BASE_LANG_TITLE}><br />
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_TITLE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_TITLE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
+      <th><{$smarty.const._AD_BASE_LANG_SIDE}><br />
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_SIDE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_SIDE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
+      <th><{$smarty.const._AD_BASE_LANG_WEIGHT}><br />
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_WEIGHT}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_WEIGHT}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
+      <th><{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}><br />
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_BLOCK_TYPE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_BLOCK_TYPE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
+      <th><{$smarty.const._AD_BASE_LANG_C_TYPE}><br />
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_C_TYPE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_C_TYPE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
+      <th><{$smarty.const._AD_BASE_LANG_BCACHETIME}><br />
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_BCACHETIME}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_BCACHETIME}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
+      <th><{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}><br />
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=<{$smarty.const.NEWBLOCKS_SORT_KEY_LAST_MODIFIED}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" /></a>
+        <a href="<{$pageNavi->renderSortUrl()}>&amp;sort=-<{$smarty.const.NEWBLOCKS_SORT_KEY_LAST_MODIFIED}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" /></a></th>
+      <th><{$smarty.const._AD_BASE_LANG_CONTROL}></th>
+    </tr>
+    <{foreach item=obj from=$objects}>
+      <tr class="<{cycle values='odd,even'}>">
+        <td><{$obj->getVar('bid')}></td>
+        <td>
+          <{if $obj->mModule}>
+            <{$obj->mModule->getVar('name')}>
+          <{else}>
+            &nbsp;
+          <{/if}>
+        </td>
+        <td><{$obj->getVar('name')}></td>
+        <td><{$obj->getVar('title')}></td>
+        <td>
+          <{xoops_input type=radio name=side key=$obj->get('bid') value=0 default=$obj->get('side')}>-
+          <{xoops_input type=radio name=side key=$obj->get('bid') value=1 default=$obj->get('side')}>
+          <{xoops_input type=radio name=side key=$obj->get('bid') value=3 default=$obj->get('side')}>
+          <{xoops_input type=radio name=side key=$obj->get('bid') value=4 default=$obj->get('side')}>-
+          <{xoops_input type=radio name=side key=$obj->get('bid') value=5 default=$obj->get('side')}>
+        </td>
+        <td>
+          <{xoops_input type=text name=weight size=4 key=$obj->get('bid') value=$obj->get('weight')}>
+        </td>
+        <td><{$obj->getVar('block_type')}></td>
+        <td><{$obj->getVar('c_type')}></td>
+        <td>
+          <select name="bcachetime[<{$obj->getVar('bid')}>]">
+            <{xoops_optionsArray from=$cachetimeArr value=cachetime label=label default=$obj->get('bcachetime')}>
+          </select>
+        </td>
+        <td><{$obj->getVar('last_modified')|xoops_formattimestamp:l}></td>
+        <td>
+          <{if $obj->get('block_type') == 'C'}>
+            <a href="./index.php?action=CustomBlockEdit&amp;bid=<{$obj->getVar('bid')}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" /></a>
+          <{else}>
+            <a href="./index.php?action=BlockEdit&amp;bid=<{$obj->getVar('bid')}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" /></a>
+          <{/if}>
+          <a href="./index.php?action=BlockUninstall&amp;bid=<{$obj->getVar('bid')}>"><img src="<{"icons/uninstall.gif"|theme}>" alt="<{$smarty.const._DELETE}>" /></a>
+        </td>
+      </tr>
+    <{/foreach}>
+    <tr class="foot">
       <td>
-        <{if $obj->get('block_type') == 'C'}>
-          <a href="./index.php?action=CustomBlockEdit&amp;bid=<{$obj->getVar('bid')}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" /></a>
-        <{else}>
-          <a href="./index.php?action=BlockEdit&amp;bid=<{$obj->getVar('bid')}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" /></a>
-        <{/if}>
-        <a href="./index.php?action=BlockUninstall&amp;bid=<{$obj->getVar('bid')}>"><img src="<{"icons/uninstall.gif"|theme}>" alt="<{$smarty.const._DELETE}>" /></a>
+        <input type="submit" />
       </td>
     </tr>
-  <{/foreach}>
-</table>
+  </table>
+</form>
 <br />
 <div style="text-align:center;"><{xoops_pagenavi pagenavi=$pageNavi}></div>


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