• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XOOPS Cube Legacy base repository


Commit MetaInfo

修訂01e19f0ffd40b9a0d5d09eab62b11c137f6747b0 (tree)
時間2011-11-16 22:12:45
作者nbuy <nbuy@704c...>
Commiternbuy

Log Message

replace more effective method use for speedup

git-svn-id: https://xoopscube.svn.sourceforge.net/svnroot/xoopscube/Package_Legacy/trunk@1054 704cf05f-ae62-4b0e-a484-234ee0250e75

Change Summary

差異

--- a/html/modules/legacy/admin/templates/blocks/legacy_admin_block_sidemenu.html
+++ b/html/modules/legacy/admin/templates/blocks/legacy_admin_block_sidemenu.html
@@ -1,12 +1,12 @@
11 <{foreach item=module from=$modules}>
22
33 <{if $module->hasAdminIndex()}>
4- <div id="t<{$module->mXoopsModule->getShow('mid')}>" class="head">
5- <a href="javascript:void(0)" onclick="ccToggle(<{$module->mXoopsModule->getShow('mid')}>)"><img src="<{"design/max.png"|theme}>" alt="" id="i<{$module->mXoopsModule->getShow('mid')}>" /></a>
6- <a href="<{$module->getAdminIndex()|xoops_escape:link}>"><{$module->mXoopsModule->getShow('name')}></a>
4+ <div id="t<{$module->mXoopsModule->getVar('mid')}>" class="head">
5+ <a href="javascript:void(0)" onclick="ccToggle(<{$module->mXoopsModule->getVar('mid')}>)"><img src="<{"design/max.png"|theme}>" alt="" id="i<{$module->mXoopsModule->getVar('mid')}>" /></a>
6+ <a href="<{$module->getAdminIndex()|xoops_escape:link}>"><{$module->mXoopsModule->getVar('name')}></a>
77 </div>
88
9- <div id="c<{$module->mXoopsModule->getShow('mid')}>" class="submenu">
9+ <div id="c<{$module->mXoopsModule->getVar('mid')}>" class="submenu">
1010 <ul>
1111 <{if $module->getAdminMenu()}>
1212 <{foreach item=menu from=$module->getAdminMenu()}>
@@ -15,26 +15,26 @@
1515 <{/if}>
1616 <{/foreach}>
1717
18- <{if $module->mXoopsModule->getInfo('blocks') && $module->mXoopsModule->getShow('dirname') != "legacy" && $module->mXoopsModule->getShow('dirname') != "altsys" && $module->mXoopsModule->getShow('dirname') != "system"}>
18+ <{if $module->mXoopsModule->getInfo('blocks') && $module->mXoopsModule->getVar('dirname', 'N') != "legacy" && $module->mXoopsModule->getVar('dirname', 'N') != "altsys" && $module->mXoopsModule->getVar('dirname', 'N') != "system"}>
1919 <li>
20- <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockList&amp;dirname=<{$module->mXoopsModule->getShow('dirname')}>">
20+ <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockList&amp;dirname=<{$module->mXoopsModule->getVar('dirname', 'N')}>">
2121 <img src="<{"icons/blocks.png"|theme}>" alt="" title="" />&nbsp;
2222 <{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}>
2323 </a>
2424 </li>
2525 <li>
26- <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockInstallList&amp;dirname=<{$module->mXoopsModule->getShow('dirname')}>">
26+ <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockInstallList&amp;dirname=<{$module->mXoopsModule->getVar('dirname', 'N')}>">
2727 <img src="<{"icons/block_add.png"|theme}>" alt="" title="" />&nbsp;
2828 <{$smarty.const._MI_LEGACY_MENU_BLOCKINSTALL}>
2929 </a>
3030 </li>
3131 <{/if}>
3232
33- <{if $module->mXoopsModule->getShow('dirname') != "legacyRender" && $module->mXoopsModule->getShow('dirname') != "altsys" && $module->mXoopsModule->getShow('dirname') != "system"}>
33+ <{if $module->mXoopsModule->getVar('dirname', 'N') != "legacyRender" && $module->mXoopsModule->getVar('dirname', 'N') != "altsys" && $module->mXoopsModule->getVar('dirname', 'N') != "system"}>
3434 <{foreach item=tplmodule from=$tplmodules}>
35- <{if $module->mXoopsModule->getShow('dirname') == $tplmodule}>
35+ <{if $module->mXoopsModule->getVar('dirname', 'N') == $tplmodule}>
3636 <li>
37- <a href="<{$xoops_url}>/modules/legacyRender/admin/index.php?action=TplfileList&amp;tpl_module=<{$module->mXoopsModule->getShow('dirname')}>&amp;sort=-9">
37+ <a href="<{$xoops_url}>/modules/legacyRender/admin/index.php?action=TplfileList&amp;tpl_module=<{$module->mXoopsModule->getVar('dirname', 'N')}>&amp;sort=-9">
3838 <img src="<{"icons/templates.png"|theme}>" alt="" title="" />&nbsp;
3939 <{$smarty.const._AD_LEGACY_LANG_TEMPLATE_INFO}>
4040 </a>
@@ -45,7 +45,7 @@
4545
4646 <{if $module->mXoopsModule->getInfo('hasComments')}>
4747 <li>
48- <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=CommentList&amp;com_modid=<{$module->mXoopsModule->getShow('mid')}>&amp;sort=-8">
48+ <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=CommentList&amp;com_modid=<{$module->mXoopsModule->getVar('mid')}>&amp;sort=-8">
4949 <img src="<{"icons/comments.png"|theme}>" alt="" title="" />&nbsp;
5050 <{$smarty.const._MI_LEGACY_MENU_COMMENT_MANAGE}>
5151 </a>
@@ -54,7 +54,7 @@
5454
5555 <{if $module->mXoopsModule->hasNeedUpdate()}>
5656 <li>
57- <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&amp;dirname=<{$module->mXoopsModule->getShow('dirname')}>">
57+ <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&amp;dirname=<{$module->mXoopsModule->getVar('dirname', 'N')}>">
5858 <img src="<{"icons/upgrade.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" />&nbsp;
5959 <{$smarty.const._AD_LEGACY_LANG_UPGRADE}>
6060 </a>
@@ -63,20 +63,20 @@
6363 <{else}>
6464
6565 <li>
66- <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&amp;dirname=<{$module->mXoopsModule->getShow('dirname')}>">
66+ <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&amp;dirname=<{$module->mXoopsModule->getVar('dirname', 'N')}>">
6767 <img src="<{"icons/update.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" />&nbsp;
6868 <{$smarty.const._AD_LEGACY_LANG_UPGRADE}>
6969 </a>
7070 </li>
7171 <{/if}>
7272
73- <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleEdit&amp;mid=<{$module->mXoopsModule->getShow('mid')}>">
73+ <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleEdit&amp;mid=<{$module->mXoopsModule->getVar('mid', 'N')}>">
7474 <img src="<{"icons/module_edit.png"|theme}>" alt="" title="" />&nbsp;
7575 <{$smarty.const._EDIT}>
7676 </a>
7777 </li>
7878 <li>
79- <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleInfo&amp;dirname=<{$module->mXoopsModule->getShow('dirname')}>">
79+ <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleInfo&amp;dirname=<{$module->mXoopsModule->getVar('dirname', 'N')}>">
8080 <img src="<{"icons/info.png"|theme}>" alt="" title="" />&nbsp;
8181 <{$smarty.const._AD_LEGACY_LANG_INFORMATION}>
8282 </a>
--- a/html/modules/legacy/admin/theme/admin_theme.html
+++ b/html/modules/legacy/admin/theme/admin_theme.html
@@ -204,7 +204,7 @@ function ccOpenCid()
204204
205205 <noscript>
206206 <div id="menunavi">
207- <h2><{$currentModule->mXoopsModule->getShow('name')}></h2>
207+ <h2><{$currentModule->mXoopsModule->getVar('name')}></h2>
208208 <{if $currentModule->getAdminMenu()}>
209209 <ul class="submenunavi">
210210 <{foreach item=menu from=$currentModule->getAdminMenu()}>
@@ -213,23 +213,23 @@ function ccOpenCid()
213213 <{/if}>
214214 <{/foreach}>
215215
216- <{if $currentModule->mXoopsModule->getInfo('blocks') && $currentModule->mXoopsModule->getShow('dirname') != "legacy" && $currentModule->mXoopsModule->getShow('dirname') != "altsys" && $currentModule->mXoopsModule->getShow('dirname') != "system"}>
217- <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockList&amp;dirname=<{$currentModule->mXoopsModule->getShow('dirname')}>"><{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}></a></li>
218- <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockInstallList&amp;dirname=<{$currentModule->mXoopsModule->getShow('dirname')}>"><{$smarty.const._MI_LEGACY_MENU_BLOCKINSTALL}></a></li>
216+ <{if $currentModule->mXoopsModule->getInfo('blocks') && $currentModule->mXoopsModule->getVar('dirname', 'N') != "legacy" && $currentModule->mXoopsModule->getVar('dirname', 'N') != "altsys" && $currentModule->mXoopsModule->getVar('dirname', 'N') != "system"}>
217+ <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockList&amp;dirname=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>"><{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}></a></li>
218+ <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockInstallList&amp;dirname=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>"><{$smarty.const._MI_LEGACY_MENU_BLOCKINSTALL}></a></li>
219219 <{/if}>
220- <{if $currentModule->mXoopsModule->getInfo('templates') && $currentModule->mXoopsModule->getShow('dirname') != "legacyRender" && $currentModule->mXoopsModule->getShow('dirname') != "altsys" && $currentModule->mXoopsModule->getShow('dirname') != "system"}>
221- <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacyRender/admin/index.php?action=TplfileList&amp;tpl_module=<{$currentModule->mXoopsModule->getShow('dirname')}>&amp;sort=-9"><{$smarty.const._AD_LEGACY_LANG_TEMPLATE_INFO}></a></li>
220+ <{if $currentModule->mXoopsModule->getInfo('templates') && $currentModule->mXoopsModule->getVar('dirname', 'N') != "legacyRender" && $currentModule->mXoopsModule->getVar('dirname', 'N') != "altsys" && $currentModule->mXoopsModule->getVar('dirname', 'N') != "system"}>
221+ <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacyRender/admin/index.php?action=TplfileList&amp;tpl_module=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>&amp;sort=-9"><{$smarty.const._AD_LEGACY_LANG_TEMPLATE_INFO}></a></li>
222222 <{/if}>
223223 <{if $currentModule->mXoopsModule->getInfo('hasComments')}>
224- <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=CommentList&amp;com_modid=<{$currentModule->mXoopsModule->getShow('mid')}>&amp;sort=-8"><{$smarty.const._MI_LEGACY_MENU_COMMENT_MANAGE}></a></li>
224+ <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=CommentList&amp;com_modid=<{$currentModule->mXoopsModule->getVar('mid')}>&amp;sort=-8"><{$smarty.const._MI_LEGACY_MENU_COMMENT_MANAGE}></a></li>
225225 <{/if}>
226226 <{if $currentModule->mXoopsModule->hasNeedUpdate()}>
227- <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&amp;dirname=<{$currentModule->mXoopsModule->getShow('dirname')}>"><{$smarty.const._AD_LEGACY_LANG_UPGRADE}>&nbsp;<img src="<{"icons/update.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" /></a></li>
227+ <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&amp;dirname=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>"><{$smarty.const._AD_LEGACY_LANG_UPGRADE}>&nbsp;<img src="<{"icons/update.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" /></a></li>
228228 <{else}>
229- <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&amp;dirname=<{$currentModule->mXoopsModule->getShow('dirname')}>"><img src="<{"icons/upgrade.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" />&nbsp;<{$smarty.const._AD_LEGACY_LANG_UPGRADE}></a></li>
229+ <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&amp;dirname=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>"><img src="<{"icons/upgrade.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" />&nbsp;<{$smarty.const._AD_LEGACY_LANG_UPGRADE}></a></li>
230230 <{/if}>
231- <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleEdit&amp;mid=<{$currentModule->mXoopsModule->getShow('mid')}>"><{$smarty.const._EDIT}></a></li>
232- <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleInfo&amp;dirname=<{$currentModule->mXoopsModule->getShow('dirname')}>"><{$smarty.const._AD_LEGACY_LANG_INFORMATION}></a></li>
231+ <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleEdit&amp;mid=<{$currentModule->mXoopsModule->getVar('mid')}>"><{$smarty.const._EDIT}></a></li>
232+ <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" />&nbsp;<a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleInfo&amp;dirname=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>"><{$smarty.const._AD_LEGACY_LANG_INFORMATION}></a></li>
233233 </ul>
234234 <{/if}>
235235 </div>