Здравствуйту! В общем есть код формы поиска:
<form onsubmit="document.getElementById('sfSbm').disabled=true" method="get" style="margin:0px" action="сайт/search/">
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td nowrap="nowrap"><input name="q" maxlength="30" value="" placeholder="Искать в альбоме" style="width:380px" size="30" class="queryField" type="text"> <input class="searchSbmFl" id="sfSbm" value="Найти" type="submit"></td><td style="padding:0px 0px 0px 5px;" nowrap="nowrap"><div><span class="aSchBrc1"></span><a id="button_black" href="javascript://" rel="nofollow" onclick="_uMenu.show('sFltLst');return false;" style='font: 11px "Arial" ! important;display: none;'>Фильтрация поиска</a><span class="aSchBrc2"></span><div id="sFltLst" style="padding-top:0px;display:none;position:absolute;z-index:99;"><div class="xw-tl"><div class="xw-tr"><div class="xw-tc xw-tsps"></div></div></div><div class="xw-ml"><div class="xw-mr"><div class="xw-mc" style="height:130px;overflow:auto;"><div class="myWinCont"><div style="margin:3px"><div style="padding:0 0 2px 0;margin:0;"><input style="height:16px;width:16px;" id="smdsite" name="m" value="site" checked="" type="checkbox"> <label for="smdsite">Страницы сайта</label></div><div style="padding:0 0 2px 0;margin:0;"><input style="height:16px;width:16px;" id="smdnews" name="m" value="news" checked="" type="checkbox"> <label for="smdnews">Новости</label></div><div style="padding:0 0 2px 0;margin:0;"><input style="height:16px;width:16px;" id="smdpubl" name="m" value="publ" checked="" type="checkbox"> <label for="smdpubl">Материалы</label></div><div style="padding:0 0 2px 0;margin:0;"><input style="height:16px;width:16px;" id="smdphoto" name="m" value="photo" checked="" type="checkbox"> <label for="smdphoto">Рисунки</label></div></div></div></div></div></div><div class="xw-bl"><div class="xw-br"><div class="xw-bc"><div class="xw-footer"></div></div></div></div></div></div><script type="text/javascript">new _uMenu('sFltLst');</script></td></tr></tbody></table>
<input name="t" value="1" type="hidden">
</form>
Филтрацию я скрыл как видите, она мне не нужна, но не могу переделать этот код, чтобы он искал только по модулю photo, ибо при поиске в адресной строке всегда выходит:
Сайт/search/?q=Слово&m=site&m=news&m=publ&m=photo&t=1
А мне бы вот так: Сайт/search/?q=Слово&m=photo&t=1
Когда ставишь такой код:
<div class="searchForm">
<form onsubmit="this.sfSbm.disabled=true" method="post" style="margin:0px" action="http://www.имя.ru/photo/">
<div class="schQuery">
<input name="query" maxlength="30" size="20" class="queryField" type="text"></div>
<div class="schBtn">
<input class="searchSbmFl" name="sfSbm" value="Найти" type="submit"></div>
<input name="a" value="18" type="hidden">
</form>
</div>
То он вообще не ищет а просто перекидывает на адрес http://www.имя.ru/photo/
А когда ставишь: $MODULE_SEARCH_FORM$ то при поиске вообще нет результатов. В чем может быть проблема и как правильно переделать мой код (код в начале темы), чтоб он искал только в категории photo! Спасибо!