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

Back to archive index

Minahito minah****@users*****
2006年 5月 27日 (土) 22:08:54 JST


Index: xoops2jp/html/modules/base/templates/legacy_search_form.html
diff -u xoops2jp/html/modules/base/templates/legacy_search_form.html:1.1.2.2 xoops2jp/html/modules/base/templates/legacy_search_form.html:1.1.2.3
--- xoops2jp/html/modules/base/templates/legacy_search_form.html:1.1.2.2	Thu Feb  2 17:40:48 2006
+++ xoops2jp/html/modules/base/templates/legacy_search_form.html	Sat May 27 22:08:54 2006
@@ -1,26 +1,27 @@
-<form action="search.php" method="get">
+<form action="<{$smarty.const.XOOPS_URL}>/search.php" method="get">
+  <{xoops_input type=hidden name=action value=results}>
 	<table class="outer" cellspacing="1" width="100%">
 		<tr>
 			<td class="head"><{$smarty.const._SR_KEYWORDS}></td>
 			<td class="<{cycle values="odd,even"}>">
-				<{xoops_input type=text name=query size=30 maxlength=255 value=$actionform->get('query')}>
+				<{xoops_input type=text name=query size=30 maxlength=255 value=$actionForm->get('query')}>
 			</td>
 		</tr>
 		<tr>
 			<td class="head"><{$smarty.const._SR_TYPE}></td>
 			<td class="<{cycle values="odd,even"}>">
 				<select name="andor">
-					<option value="0" <{if $actionform->get('andor')==0}>selected<{/if}>><{$smarty.const._SR_ALL}></option>
-					<option value="1" <{if $actionform->get('andor')==1}>selected<{/if}>><{$smarty.const._SR_ANY}></option>
-					<option value="2" <{if $actionform->get('andor')==2}>selected<{/if}>><{$smarty.const._SR_EXACT}></option>
+					<option value="AND" <{if $actionForm->get('andor') == 'AND'}>selected<{/if}>><{$smarty.const._SR_ALL}></option>
+					<option value="OR" <{if $actionForm->get('andor') == 'OR'}>selected<{/if}>><{$smarty.const._SR_ANY}></option>
+					<option value="exact" <{if $actionForm->get('andor') == 'exact'}>selected<{/if}>><{$smarty.const._SR_EXACT}></option>
 				</select>
 			</td>
 		</tr>
 		<tr>
 			<td class="head"><{$smarty.const._SR_SEARCHIN}></td>
 			<td class="<{cycle values="odd,even"}>">
-				<{foreach item=module from=$moduleList}>
-					<input type="checkbox" name="mids[]" value="<{$module->getVar('mid')}>" <{if in_array($module->getVar('mid'),$actionform->get('mids'))}>checked<{/if}>><{$module->getVar('name')|escape}></a>
+				<{foreach item=module from=$moduleArr}>
+					<input type="checkbox" name="mids[]" value="<{$module->getVar('mid')}>" <{if in_array($module->getVar('mid'), $selectedMidArr)}>checked<{/if}>><{$module->getVar('name')}></a>
 				<{/foreach}>
 			</td>
 		</tr>


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