Location: PHPKode > projects > Sphider Plus > sphider-plus_v.2.9/templates/html/020_search-form.html
<?php //   This will present the Search-form. First the query-field and submit-button ?>
<!--    Search-form     -->
    <div style="text-align:center;">
        <form action="<?php echo $search_string ;?>" method="get">
            <input type="hidden" name="media_only" value="0" />
            <table class="searchBox">
                <tr>
                    <td>
                        <input type="text" name="query" id="query" placeholder="<?php echo $sph_messages['query'];?>" size="40" value="<?php echo $query ;?>" />
                    </td>
                    <td>
                        <input type="hidden" name="search" value="1" />
                        <input type="submit" class="sbmt" value="<?php echo $sph_messages['Search'];?>" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                </tr>
            </table>
<?php if ($show_media =='1'){    //  Show part of the Search-form : search only for text or media results?>
            <table class="searchBox">
                <tr>
                    <td>
                        <input type="submit" name="submit" class="sbmt" value="<?php echo $sph_messages['t_search'];?>" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="submit" name="submit" class="sbmt" value="<?php echo $sph_messages['m_search'];?>" />
                    </td>
                </tr>
            </table>
<?php } ?>
            <div id="auto_suggest"  class="suggest">
            </div>
            <script type="text/javascript">
              new Ajax.Autocompleter("query", "auto_suggest", "include/suggest.php", { parameters: "media_only=<?php echo"$media_only"?>&amp;type=<?php echo"$type"?>&amp;catid=<?php echo"$catid"?>&amp;category=<?php echo"$category"?>&amp;db=<?php echo"$db"?>&amp;prefix=<?php echo"$prefix"?>" } );
            </script>

<?php   if ($show_categories<>0){   //  Show part of the Search-form :  Cat-search
            if ($has_categories && $show_categories){ ?>
            <table class="searchBox">
                <tr>
                    <td><?php echo $sph_messages['Search']?>: <input type="radio" name="category" value="<?php echo $catid?>" <?php echo $checked_cat?> /><?php echo $sph_messages['Only in category']?> &quot;<?php echo $tpl_['category'][0]['category']?>&quot; <input type="radio" name="category" value="-1" <?php echo $checked_all?> /><?php echo $sph_messages['All sites']?><input type="hidden" name="catid" value="<?php echo $catid?>" /></td>
                </tr>
                <tr>
                    <td><a href="<?php echo $search_string ;?>?search=''"><?php echo $sph_messages['Categories']?></a></td>
                </tr>
            </table>
<?php       }     
        } ?>            
<?php
    if (($adv==1 || $advanced_search==1 || $adv_search == 2) && $adv_search != 1) {    //  if Advanced-search should be shown enter here ?>
            <table class="searchBox">
                <tr>
                    <td><input type="radio" name="type" value="and"     <?php echo $type=='and'?'checked="checked"':''?> />     <?php echo $sph_messages['andSearch']?></td>
                    <td><input type="radio" name="type" value="or"      <?php echo $type=='or'?'checked="checked"':''?> />      <?php echo $sph_messages['orSearch']?></td>
                </tr>
                <tr>
                    <td><input type="radio" name="type" value="phrase"  <?php echo $type=='phrase'?'checked="checked"':''?> />  <?php echo $sph_messages['phraseSearch']?></td>
                    <td><input type="radio" name="type" value="tol"     <?php echo $type=='tol'?'checked="checked"':''?> />     <?php echo $sph_messages['tolSearch']?></td>
                </tr>
            </table>
<?php  if ($media_only != '1') { //      Show method of highlighting ?>
            <table class="searchBox">
                <tr>
                    <td><?php echo "".$sph_messages['mark']."\r\n"?>
                        <select name="mark">
                            <option <?php  if ($mark=='markbold') echo "selected='selected'";?>><?php echo $sph_messages['markbold']?></option>
                            <option <?php  if ($mark=='markyellow') echo "selected='selected'";?>><?php echo $sph_messages['markyellow']?></option>
                            <option <?php  if ($mark=='markgreen') echo "selected='selected'";?>><?php echo $sph_messages['markgreen']?></option>
                            <option <?php  if ($mark=='markblue') echo "selected='selected'";?>><?php echo $sph_messages['markblue']?></option>
                            <option <?php  if ($mark=='markred') echo "selected='selected'";?>><?php echo $sph_messages['markred']?></option>
                        </select>
                    </td>
                </tr>
            </table>
<?php   }
        //      Show results per page ?>
            <table class="searchBox">
                <tr>
                    <td><?php echo "".$sph_messages['show']."\r\n"?>
                        <select name="results">
                            <option <?php  if ($results_per_page==5) echo "selected='selected'";?>>5</option>
                            <option <?php  if ($results_per_page==10) echo "selected='selected'";?>>10</option>
                            <option <?php  if ($results_per_page==20) echo "selected='selected'";?>>20</option>
                            <option <?php  if ($results_per_page==30) echo "selected='selected'";?>>30</option>
                            <option <?php  if ($results_per_page==50) echo "selected='selected'";?>>50</option>
                            </select>
                        <?php echo "".$sph_messages['resultsPerPage']."\r\n"?>
                    </td>
                </tr>
            </table>
            <br />
            <input type="hidden" name="db" value="<?php echo $user_db?>" />
            <input type="hidden" name="prefix" value="<?php echo $user_prefix?>" />
<?php
    }   //  End of advanced Search-form
?>
        </form>
    </div>
<?php   //  End of Search-form?>
Return current item: Sphider Plus