Changeset 1714 in ExiteCMS


Ignore:
Timestamp:
08/28/08 18:20:38 (3 years ago)
Author:
hverton
Message:

Merged trunk revisions 1706:1713 into the PLi-Fusion branch

Location:
branches/PLi-Fusion
Files:
24 edited
6 copied

Legend:

Unmodified
Added
Removed
  • branches/PLi-Fusion/administration/modules.php

    r1666 r1714  
    211211                    $mod_search['title'] = isset($mod_search['title']) ? $mod_search['title'] : ("Search: ".$mod_search['name']); 
    212212                    $mod_search['version'] = isset($mod_search['version']) ? $mod_search['version'] : $mod_version; 
     213                    // get the max searchorder 
     214                    $result = dbquery("SELECT max(search_order) as max FROM ".$db_prefix."search"); 
     215                    if ($result) { 
     216                        $data = dbarray($result); 
     217                        $max = $data['max'] + 1; 
     218                    } else { 
     219                        $max = 1; 
     220                    } 
    213221                    // add it to the search table 
    214                     $result = dbquery("INSERT INTO ".$db_prefix."search (search_mod_id, search_name, search_title, search_version, search_fulltext, search_visibility)  
    215                         VALUES ('".$id."', '".$mod_search['name']."', '".$mod_search['title']."', '".$mod_search['version']."',  '".$mod_search['fulltext']."', '".$mod_search['visibility']."')"); 
     222                    $result = dbquery("INSERT INTO ".$db_prefix."search (search_mod_id, search_name, search_title, search_version, search_fulltext, search_visibility, search_order)  
     223                        VALUES ('".$id."', '".$mod_search['name']."', '".$mod_search['title']."', '".$mod_search['version']."',  '".$mod_search['fulltext']."', '".$mod_search['visibility']."', ".$max.")"); 
    216224                } 
    217225            } 
     
    543551                    $mod_search['title'] = isset($mod_search['title']) ? $mod_search['title'] : ("Search: ".$mod_search['name']); 
    544552                    $mod_search['version'] = isset($mod_search['version']) ? $mod_search['version'] : $mod_version; 
     553                    // get the max searchorder 
     554                    $result = dbquery("SELECT max(search_order) as max FROM ".$db_prefix."search"); 
     555                    if ($result) { 
     556                        $data = dbarray($result); 
     557                        $max = $data['max'] + 1; 
     558                    } else { 
     559                        $max = 1; 
     560                    } 
    545561                    // add it to the search table 
    546                     $result = dbquery("INSERT INTO ".$db_prefix."search (search_mod_id, search_name, search_title, search_version, search_fulltext, search_visibility)  
    547                         VALUES ('".$id."', '".$mod_search['name']."', '".$mod_search['title']."', '".$mod_search['version']."',  '".$mod_search['fulltext']."', '".$mod_search['visibility']."')"); 
     562                    $result = dbquery("INSERT INTO ".$db_prefix."search (search_mod_id, search_name, search_title, search_version, search_fulltext, search_visibility, search_order)  
     563                        VALUES ('".$id."', '".$mod_search['name']."', '".$mod_search['title']."', '".$mod_search['version']."',  '".$mod_search['fulltext']."', '".$mod_search['visibility']."', ".$max.")"); 
    548564                } 
    549565            } 
  • branches/PLi-Fusion/administration/search.php

    r1666 r1714  
    9898    $variables['usergroups'] = getusergroups(false); 
    9999} 
     100 
    100101// toggle the search status 
    101102if ($action == "setstatus") { 
     
    108109} 
    109110 
     111// swap the order of two records 
     112if ($action == "swap") { 
     113    // check the parameters passed 
     114    $order1 = (isset($_GET['order1']) && isNum($_GET['order1'])) ? $_GET['order1'] : 0; 
     115    $order2 = (isset($_GET['order2']) && isNum($_GET['order2'])) ? $_GET['order2'] : 0; 
     116    if ($order1 != 0 && $order2 != 0 && $order1 != $order2) { 
     117        $result1 = dbquery("SELECT search_id FROM ".$db_prefix."search WHERE search_order = '".$order1."'"); 
     118        $result2 = dbquery("SELECT search_id FROM ".$db_prefix."search WHERE search_order = '".$order2."'"); 
     119        if ($result1 && $result2) { 
     120            // everything checks out, swap 'm! 
     121            $data = dbarray($result1); 
     122            $result = dbquery("UPDATE ".$db_prefix."search SET search_order = ".$order2." WHERE search_id = ".$data['search_id']); 
     123            $data = dbarray($result2); 
     124            $result = dbquery("UPDATE ".$db_prefix."search SET search_order = ".$order1." WHERE search_id = ".$data['search_id']); 
     125        } 
     126    } 
     127    // return to the overview screen 
     128    $action = ""; 
     129} 
     130 
    110131// no action specified: show the search overview 
    111132if ($action == "") { 
    112133    // generate the searches overview 
    113     $searches = array(); 
    114     $searchindex = array(); 
    115     $result = dbquery("SELECT s.*, m.mod_folder FROM ".$db_prefix."search s LEFT JOIN ".$db_prefix."modules m ON s.search_mod_id = m.mod_id"); 
     134    $variables['searches'] = array(); 
     135    $result = dbquery("SELECT s.*, m.mod_folder FROM ".$db_prefix."search s LEFT JOIN ".$db_prefix."modules m ON s.search_mod_id = m.mod_id ORDER BY search_order"); 
    116136    while ($data = dbarray($result)) { 
    117137        // get the title for this search 
     
    132152        $data['groupname'] = getgroupname($data['search_visibility']); 
    133153            // store the search record 
    134         $searches[$data['search_id']] = $data; 
    135         $searchindex[] = $data['search_title']."_>_".$data['search_id']; 
    136     } 
    137     //make sure the modules are properly sorted 
    138     sort($searchindex); 
    139     $variables['search'] = array(); 
    140     foreach($searchindex as $index) { 
    141         $variables['searches'][] = $searches[substr(strstr($index,"_>_"),3)]; 
     154        $variables['searches'][] = $data; 
    142155    } 
    143156    // reload the locale for this module 
    144157    locale_load("admin.search"); 
     158} 
     159 
     160// add the previous and next id's 
     161foreach($variables['searches'] as $key => $value) { 
     162    $variables['searches'][$key]['order_down'] = isset($variables['searches'][$key+1]) ? $variables['searches'][$key+1]['search_order'] : 0; 
     163    $variables['searches'][$key]['order_up'] = isset($variables['searches'][$key-1]) ? $variables['searches'][$key-1]['search_order'] : 0; 
    145164} 
    146165 
  • branches/PLi-Fusion/administration/tools/language_pack_English.php

    r1706 r1714  
    2323        $localestrings['404page'] = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" align=\"center\"> <tbody><tr><td width=\"10\"> </td><td><div align=\"center\"><font size=\"6\"><span class=\"shoutboxname\"><br />404 - Page Not Found</span><br /></font></div><br /><br /><hr width=\"90%\" size=\"2\" /><br /><br /><div align=\"center\">We are sorry, but the document you requested cannot be found on this server.<br /></div><br /><div align=\"center\">Most likely, this is a result of yet another reorganization of this Website to reflect our constant evolution and ongoing development, coupled with a transition from an old server with lots of legacy files to a shiny new server.<br /></div><br /><div align=\"center\">But then again, it might just be a completely random event and the result of too many cosmic rays. Who knows?<br /></div><br /><br /><hr width=\"90%\" size=\"2\" /><br /><br /><div align=\"center\">Your best bet for finding what you seek is to start at our home page (<a href=\"/\">click here to jump to the home page</a>), check out our menu, or use the search menu option.<br /></div><br /><div align=\"center\">If that doesn't work, and you think it's a document that should be here, please send a PM to the webmaster and let us know about it (registered users only).</div></td><td width=\"10\"> </td></tr></tbody></table><br />"; 
    2424        load_localestrings($localestrings, LP_LOCALE, "404page", $step); 
     25 
     26        $localestrings = array(); 
     27        $localestrings['mon001'] = "January"; 
     28        $localestrings['mon002'] = "February"; 
     29        $localestrings['mon003'] = "March"; 
     30        $localestrings['mon004'] = "April"; 
     31        $localestrings['mon005'] = "May"; 
     32        $localestrings['mon006'] = "June"; 
     33        $localestrings['mon007'] = "July"; 
     34        $localestrings['mon008'] = "August"; 
     35        $localestrings['mon009'] = "September"; 
     36        $localestrings['mon010'] = "October"; 
     37        $localestrings['mon011'] = "November"; 
     38        $localestrings['mon012'] = "December"; 
     39        load_localestrings($localestrings, LP_LOCALE, "months", $step); 
    2540 
    2641        $localestrings = array(); 
     
    938953        $localestrings['423'] = "Search accessable for:"; 
    939954        $localestrings['424'] = "Save"; 
     955        $localestrings['425'] = "Move up in priority"; 
     956        $localestrings['426'] = "Move down in priority"; 
     957        $localestrings['427'] = "Up"; 
     958        $localestrings['428'] = "Down"; 
     959        $localestrings['429'] = "Order"; 
     960        $localestrings['430'] = "The order in which the searches are listed here determines the default search location"; 
    940961        load_localestrings($localestrings, LP_LOCALE, "admin.search", $step); 
    941962 
     
    31843205        $localestrings['rpt404'] = "Result for the requested report"; 
    31853206        $localestrings['rpt405'] = "Report List"; 
     3207        $localestrings['rpt500'] = "Registered users per country"; 
     3208        $localestrings['rpt501'] = "Show me"; 
     3209        $localestrings['rpt502'] = "the top"; 
     3210        $localestrings['rpt503'] = "all"; 
     3211        $localestrings['rpt504'] = "results in the report, and sort it"; 
     3212        $localestrings['rpt505'] = "descending"; 
     3213        $localestrings['rpt506'] = "ascending"; 
     3214        $localestrings['rpt507'] = "Country"; 
     3215        $localestrings['rpt508'] = "User Count"; 
     3216        $localestrings['rpt509'] = "New users joined per month"; 
     3217        $localestrings['rpt510'] = "Period of registration"; 
     3218        $localestrings['rpt511'] = "Unknown"; 
     3219        $localestrings['rpt950'] = "The report could not be generated:"; 
     3220        $localestrings['rpt951'] = "The requested report does not contain any data"; 
    31863221        load_localestrings($localestrings, LP_LOCALE, "main.reports", $step); 
    31873222 
  • branches/PLi-Fusion/administration/tools/language_pack_Nederlands.php

    r1706 r1714  
    938938        $localestrings['423'] = "Zoekopdracht toegankelijk voor:"; 
    939939        $localestrings['424'] = "Opslaan"; 
     940        $localestrings['425'] = "Prioriteit verhogen"; 
     941        $localestrings['426'] = "Prioriteit verlagen"; 
     942        $localestrings['427'] = "Omhoog"; 
     943        $localestrings['428'] = "Omlaag"; 
     944        $localestrings['429'] = "Volgorde"; 
     945        $localestrings['430'] = "De volgorde waarin de zoeklocaties zijn opgelijst bepaald de standaard geselecteerde zoek locatie"; 
    940946        load_localestrings($localestrings, LP_LOCALE, "admin.search", $step); 
    941947 
     
    31843190        $localestrings['rpt404'] = "Resultaat voor het rapport"; 
    31853191        $localestrings['rpt405'] = "Rapportenlijst"; 
     3192        $localestrings['rpt500'] = "Geregistreerde gebruikers per land"; 
     3193        $localestrings['rpt501'] = "Toon mij"; 
     3194        $localestrings['rpt502'] = "de top"; 
     3195        $localestrings['rpt503'] = "alle"; 
     3196        $localestrings['rpt504'] = "resultaten in het rapport, en sorteer het"; 
     3197        $localestrings['rpt505'] = "aflopend"; 
     3198        $localestrings['rpt506'] = "oplopend"; 
     3199        $localestrings['rpt507'] = "Land"; 
     3200        $localestrings['rpt508'] = "Ledenaantal"; 
     3201        $localestrings['rpt509'] = "Aangemelde nieuwe leden per maand"; 
     3202        $localestrings['rpt510'] = "Registratie periode"; 
     3203        $localestrings['rpt511'] = "Onbekend"; 
     3204        $localestrings['rpt950'] = "Het rapport kon niet worden aangemaakt:"; 
     3205        $localestrings['rpt951'] = "Het gevraagde rapport bevat geen gegevens"; 
    31863206        load_localestrings($localestrings, LP_LOCALE, "main.reports", $step); 
     3207 
     3208        $localestrings = array(); 
     3209        $localestrings['mon001'] = "Januari"; 
     3210        $localestrings['mon002'] = "Februari"; 
     3211        $localestrings['mon003'] = "Maart"; 
     3212        $localestrings['mon004'] = "April"; 
     3213        $localestrings['mon005'] = "Mei"; 
     3214        $localestrings['mon006'] = "Juni"; 
     3215        $localestrings['mon007'] = "Juli"; 
     3216        $localestrings['mon008'] = "Augustus"; 
     3217        $localestrings['mon009'] = "September"; 
     3218        $localestrings['mon010'] = "Oktober"; 
     3219        $localestrings['mon011'] = "November"; 
     3220        $localestrings['mon012'] = "December"; 
     3221        load_localestrings($localestrings, LP_LOCALE, "months", $step); 
    31873222 
    31883223        $localestrings = array(); 
  • branches/PLi-Fusion/files/locales/en.main.global.php

    r1706 r1714  
    33// locale       : English 
    44// locale name  : main.global 
    5 // generated on : Wed Aug 27 2008, 22:45:12 CEST 
     5// generated on : Thu Aug 28 2008, 17:02:30 CEST 
     6// translators  : ExiteCMS team,WanWizard 
    67// ---------------------------------------------------------- 
    78$locale['001'] = "Navigation"; 
  • branches/PLi-Fusion/files/locales/nl.main.global.php

    r1706 r1714  
    33// locale       : Nederlands 
    44// locale name  : main.global 
    5 // generated on : Wed Aug 27 2008, 22:46:13 CEST 
     5// generated on : Thu Aug 28 2008, 14:10:34 CEST 
     6// translators  : ExiteCMS team,WanWizard 
    67// ---------------------------------------------------------- 
    78$locale['001'] = "Navigatie"; 
  • branches/PLi-Fusion/includes/core_functions.php

    r1702 r1714  
    225225        if (!iSUPERADMIN) { 
    226226            // deny all non-webmasters access to the site 
    227             redirect('maintenance.php?reason='.$settings['maintenance']); 
     227            redirect(BASEDIR.'maintenance.php?reason='.$settings['maintenance']); 
    228228        } else { 
    229229            // force webmasters to the upgrade module 
  • branches/PLi-Fusion/includes/search/search.articles.php

    r1668 r1714  
    2020    if ($action == "") { 
    2121         
     22        // add the possible  search filters ($data is defined in the calling script!) 
     23        $data['search_filters'] = "date,users"; 
     24 
    2225        // get the list of all members 
    2326        if (!isset($content_filters['users'])) { 
  • branches/PLi-Fusion/includes/search/search.downloads.php

    r1668 r1714  
    2020    if ($action == "") { 
    2121         
    22             // no pre-processing required for this search 
     22        // add the possible  search filters ($data is defined in the calling script!) 
     23        $data['search_filters' ] = "date"; 
    2324 
    2425    } else { 
  • branches/PLi-Fusion/includes/search/search.forumattachments.php

    r1668 r1714  
    2020    if ($action == "") { 
    2121     
     22        // add the possible  search filters ($data is defined in the calling script!) 
     23        $data['search_filters' ] = "date,users,forums"; 
     24 
    2225        // get the list of all members 
    2326        if (!isset($content_filters['forums'])) { 
  • branches/PLi-Fusion/includes/search/search.forumposts.php

    r1668 r1714  
    1919 
    2020    if ($action == "") { 
    21          
     21 
     22        // add the possible  search filters ($data is defined in the calling script!) 
     23        $data['search_filters' ] = "date,users,forums"; 
     24 
    2225        // get the list of all members 
    2326        if (!isset($content_filters['forums'])) { 
  • branches/PLi-Fusion/includes/search/search.members.php

    r1668 r1714  
    2020    if ($action == "") { 
    2121         
    22             // no pre-processing required for this search 
     22        // add the possible  search filters ($data is defined in the calling script!) 
     23        $data['search_filters' ] = ""; 
     24 
    2325 
    2426    } else { 
  • branches/PLi-Fusion/includes/search/search.news.php

    r1668 r1714  
    2020    if ($action == "") { 
    2121     
     22        // add the possible  search filters ($data is defined in the calling script!) 
     23        $data['search_filters' ] = "date,users"; 
     24 
    2225        // get the list of all members 
    2326        if (!isset($content_filters['users'])) { 
  • branches/PLi-Fusion/includes/search/templates/search.articles.tpl

    r1666 r1714  
    3131    {/section} 
    3232{else} 
    33     <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id}checked='checked'{/if} onclick='javascript:show_filter("date,users");' /> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
     33    <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id || $searches[id].search_order == $default_location}checked='checked'{/if}  onclick='javascript:show_filter("{$searches[id].search_filters}");'/> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
    3434{/if} 
    3535{***************************************************************************} 
  • branches/PLi-Fusion/includes/search/templates/search.downloads.tpl

    r1666 r1714  
    3333    {/section} 
    3434{else} 
    35     <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id}checked='checked'{/if} onclick='javascript:show_filter("date");' /> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
     35    <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id || $searches[id].search_order == $default_location}checked='checked'{/if}  onclick='javascript:show_filter("{$searches[id].search_filters}");'/> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
    3636{/if} 
    3737{***************************************************************************} 
  • branches/PLi-Fusion/includes/search/templates/search.forumattachments.tpl

    r1666 r1714  
    3232    {/section} 
    3333{else} 
    34     <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id}checked='checked'{/if} onclick='javascript:show_filter("date,users,forums");' /> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
     34    <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id || $searches[id].search_order == $default_location}checked='checked'{/if}  onclick='javascript:show_filter("{$searches[id].search_filters}");'/> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
    3535{/if} 
    3636{***************************************************************************} 
  • branches/PLi-Fusion/includes/search/templates/search.forumposts.tpl

    r1666 r1714  
    3131    {/section} 
    3232{else} 
    33     <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id}checked='checked'{/if}  onclick='javascript:show_filter("date,users,forums");'/> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
     33    <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id || $searches[id].search_order == $default_location}checked='checked'{/if}  onclick='javascript:show_filter("{$searches[id].search_filters}");'/> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
    3434{/if} 
    3535{***************************************************************************} 
  • branches/PLi-Fusion/includes/search/templates/search.members.tpl

    r1666 r1714  
    3131    {/section} 
    3232{else} 
    33     <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id}checked='checked'{/if} onclick='javascript:show_filter("");' /> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
     33    <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id || $searches[id].search_order == $default_location}checked='checked'{/if}  onclick='javascript:show_filter("{$searches[id].search_filters}");'/> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
    3434{/if} 
    3535{***************************************************************************} 
  • branches/PLi-Fusion/includes/search/templates/search.news.tpl

    r1666 r1714  
    3131    {/section} 
    3232{else} 
    33     <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id}checked='checked'{/if} onclick='javascript:show_filter("date,users");' /> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
     33    <input type='radio' name='search_id' value='{$searches[id].search_id}' {if $search_id == $searches[id].search_id || $searches[id].search_order == $default_location}checked='checked'{/if}  onclick='javascript:show_filter("{$searches[id].search_filters}");'/> {$searches[id].search_title} {if $searches[id].search_fulltext}<span style='color:red;'>*</span>{/if}<br /> 
    3434{/if} 
    3535{***************************************************************************} 
  • branches/PLi-Fusion/includes/templates/admin.search.tpl

    r1666 r1714  
    8686                <b>{$locale.402}</b> 
    8787            </td> 
     88            <td colspan='2' align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
     89                <b>{$locale.429}</b> 
     90            </td> 
    8891            <td align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
    8992                <b>{$locale.403}</b> 
     
    100103            <td align='center' width='1%' class='tbl1' style='white-space:nowrap'> 
    101104                {$searches[id].groupname} 
     105            </td> 
     106            <td align='center' width='1%' class='tbl1' style='white-space:nowrap'> 
     107                {$searches[id].search_order} 
     108            </td> 
     109            <td align='center' width='1%' class='tbl1' style='white-space:nowrap'> 
     110            {if $searches[id].order_up != 0} 
     111                {imagelink link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;action=swap&amp;order1="|cat:$searches[id].search_order|cat:"&amp;order2="|cat:$searches[id].order_up image="up.gif" alt="$locale.425 title=$locale.427} 
     112            {/if} 
     113            {if $searches[id].order_down != 0} 
     114                {imagelink link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;action=swap&amp;order1="|cat:$searches[id].search_order|cat:"&amp;order2="|cat:$searches[id].order_down image="down.gif" alt="$locale.426 title=$locale.428} 
     115            {/if} 
    102116            </td> 
    103117            <td align='left' width='1%' class='tbl1' style='white-space:nowrap'> 
     
    117131        {sectionelse} 
    118132        <tr> 
    119             <td align='center' colspan='3' class='tbl1'> 
     133            <td align='center' colspan='5' class='tbl1'> 
    120134                {$locale.408} 
    121135                <br /><br /> 
     
    124138        {/section} 
    125139        <tr> 
    126             <td align='center' colspan='3' class='tbl1'> 
     140            <td align='center' colspan='5' class='tbl1'> 
     141                <span class='smallalt'>{$locale.430}</span> 
     142            </td> 
     143        </tr> 
     144{*      <tr> 
     145            <td align='center' colspan='5' class='tbl1'> 
    127146                {buttonlink name=$locale.409 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;action=add"} 
    128147            </td> 
    129148        </tr> 
    130     </table> 
     149*}  </table> 
    131150{/if} 
    132151{include file="_closetable.tpl"} 
  • branches/PLi-Fusion/includes/templates/main.reports.tpl

    r1666 r1714  
    4949        <tr> 
    5050            <td align='left'> 
    51                 {$locale.rpt404}: <b>{$report_title}</b> 
     51                {$locale.rpt404}: <b>{$reports.0.report_title}</b> 
    5252            </td> 
    5353            <td align='right'> 
  • branches/PLi-Fusion/includes/templates/main.search.tpl

    r1666 r1714  
    151151        } 
    152152    } 
     153    {/literal} 
     154    show_filter("{$default_filter}"); 
    153155    </script> 
    154     {/literal} 
    155156    {include file="_closetable.tpl"} 
    156157        {include file="_opentable.tpl" name=$_name title=$locale.src428 state=$_state style=$_style} 
  • branches/PLi-Fusion/reports.php

    r1666 r1714  
    33| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     5| Copyright 2008 Harro "WanWizard" Verton, Exite BV  | 
    66| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
  • branches/PLi-Fusion/search.php

    r1666 r1714  
    103103} 
    104104 
    105 // do we have a search location? if not, get the first search item 
    106 if (!$search_id && count($variables['searches'])) { 
    107 //  $search_id = $variables['searches'][0]['search_id']; 
     105// find the id of the default selection 
     106if ($action == "") { 
     107    $variables['default_location'] = 9999999999; 
     108    $variables['default_filter'] = ""; 
     109    foreach($variables['searches'] as $key => $search) { 
     110        if ($search['search_order'] < $variables['default_location']) { 
     111            $variables['default_location'] = $search['search_order']; 
     112            $variables['default_filter'] = $search['search_filters']; 
     113            if (!isset($search['search_filters'])) _debug($search, true); 
     114        } 
     115    } 
    108116} 
     117 
    109118// store the selected search location 
    110119$variables['search_id'] = $search_id; 
Note: See TracChangeset for help on using the changeset viewer.