Ignore:
Timestamp:
12/25/07 17:32:57 (4 years ago)
Author:
hverton
Message:

added support for multiple panels per module
updated English locale file
update dbsetup_include.php
files in the template cache now have a more logical name
after login, check if the user theme exists before selecting it. If not, fall back to the site default. If this theme doesn't exist either, terminate with an error message
new CSS tag for optgroups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/templates/admin.db_backup.tpl

    r864 r1182  
    4747    <!-- 
    4848    function tableSelectAll(){for(i=0;i<document.restoreform.elements['list_tbl[]'].length;i++){document.restoreform.elements['list_tbl[]'].options[i].selected=true;}} 
     49    function tableSelectCore(){for(i=0;i<document.restoreform.elements['list_tbl[]'].length;i++){document.restoreform.elements['list_tbl[]'].options[i].selected=(document.restoreform.elements['list_tbl[]'].options[i].text).match(/^{/literal}{$db_prefix}{literal}/);}} 
    4950    function tableSelectNone(){for(i=0;i<document.restoreform.elements['list_tbl[]'].length;i++){document.restoreform.elements['list_tbl[]'].options[i].selected=false;}} 
    5051    function populateSelectAll(){for(i=0;i<document.restoreform.elements['list_ins[]'].length;i++){document.restoreform.elements['list_ins[]'].options[i].selected=true;}} 
     52    function populateSelectCore(){for(i=0;i<document.restoreform.elements['list_ins[]'].length;i++){document.restoreform.elements['list_ins[]'].options[i].selected=(document.restoreform.elements['list_ins[]'].options[i].text).match(/^{/literal}{$db_prefix}{literal}/);}} 
    5153    function populateSelectNone(){for(i=0;i<document.restoreform.elements['list_ins[]'].length;i++){document.restoreform.elements['list_ins[]'].options[i].selected=false;}} 
    5254    //--> 
     
    5759            <tr> 
    5860                <td colspan='2' class='tbl2'> 
    59                     {$locale.430} 
     61                    <b>{$locale.430}</b> 
    6062                </td> 
    6163            </tr> 
     
    8284            </tr> 
    8385            <tr> 
    84                 <td valign='top' class='tbl'> 
     86                <td valign='top' align='center' class='tbl'> 
    8587                    {$locale.433} 
    8688                    <br /> 
    87                     <select style='width:180px;' class='textbox' id='list_tbl' name='list_tbl[]' size='{$maxrows}' multiple="multiple"> 
     89                    <select style='width:250px;' class='textbox' id='list_tbl' name='list_tbl[]' size='{$maxrows}' multiple="multiple"> 
    8890                    {foreach from=$info_tables item=table} 
    8991                        <option value='{$table}' selected="selected">{$table}</option> 
    9092                    {/foreach} 
    9193                    </select> 
    92                     <br />{$locale.435}&nbsp; 
    93                     <div style='display:inline;'> 
     94                    <br /><br />{$locale.435}&nbsp; 
     95                    <div style='display:inline;text-align:center;vertical-align:top;'> 
    9496                    <input type='button' class='button' name='{$locale.436}' value='{$locale.436}' onclick="javascript:tableSelectAll()" /> 
     97                    <input type='button' class='button' name='{$locale.458}' value='{$locale.458}' onclick="javascript:tableSelectCore()" /> 
    9598                    <input type='button' class='button' name='{$locale.437}' value='{$locale.437}' onclick="javascript:tableSelectNone()" /> 
    9699                    </div> 
    97100                </td> 
    98                 <td valign='top' class='tbl'> 
     101                <td valign='top' align='center' class='tbl'> 
    99102                    {$locale.434} 
    100103                    <br /> 
    101                     <select style='width:180px;' class='textbox' id='list_ins' name='list_ins[]' size='{$maxrows}' multiple="multiple"> 
     104                    <select style='width:250px;' class='textbox' id='list_ins' name='list_ins[]' size='{$maxrows}' multiple="multiple"> 
    102105                    {section name=id loop=$info_inserts} 
    103106                        <option value='{$info_inserts[id].id}'{if $info_inserts[id].selected} selected="selected"{/if}>{$info_inserts[id].name}</option> 
    104107                    {/section} 
    105108                    </select> 
    106                     <br />{$locale.435}&nbsp; 
    107                     <div style='display:inline;'> 
     109                    <br /><br />{$locale.435}&nbsp; 
     110                    <div style='display:inline;text-align:center;vertical-align:top;'> 
    108111                        <input type='button' class='button' name='{$locale.436}' value='{$locale.436}' onclick="javascript:populateSelectAll()" /> 
     112                        <input type='button' class='button' name='{$locale.458}' value='{$locale.458}' onclick="javascript:populateSelectCore()" /> 
    109113                        <input type='button' class='button' name='{$locale.437}' value='{$locale.437}' onclick="javascript:populateSelectNone()" /> 
    110114                    </div> 
     
    116120            </tr> 
    117121            <tr> 
    118                 <td align='left' colspan='2' class='tbl2'> 
    119                     {$locale.406} 
     122                <td align='center' colspan='2' class='tbl2'> 
     123                    <b>{$locale.406}</b> 
    120124                </td> 
    121125            </tr> 
     
    154158                    <table align='center' cellspacing='0' cellpadding='0'> 
    155159                        <tr> 
    156                             <td colspan='2' class='tbl2' align='left'> 
    157                                 {$locale.451} 
     160                            <td colspan='2' class='tbl2' align='center'> 
     161                                <b>{$locale.451}</b> 
    158162                            </td> 
    159163                        </tr> 
     
    194198                    </tr> 
    195199                    <tr> 
    196                         <td align='left' colspan='2' class='tbl2'> 
    197                             {$locale.454} 
     200                        <td colspan='2' class='tbl2' align='center'> 
     201                            <b>{$locale.454}</b> 
    198202                        </td> 
    199203                    </tr> 
     
    244248                    </tr> 
    245249                    <tr> 
    246                         <td align='left' colspan='2' class='tbl2'> 
    247                             {$locale.406} 
     250                        <td colspan='2' class='tbl2' align='center'> 
     251                            <b>{$locale.406}</b> 
    248252                        </td> 
    249253                    </tr> 
     
    262266                    <tr> 
    263267                        <td class='tbl2'> 
    264                             {$locale.457} 
     268                            <b>{$locale.457}</b> 
    265269                        </td> 
    266270                    </tr> 
     
    273277                            </select> 
    274278                            <br />{$locale.435}&nbsp; 
    275                             <div style='display:inline;text-align:center;vertical-align:middle;'> 
     279                            <div style='display:inline;text-align:center;vertical-align:top;'> 
    276280                                <input type='button' class='button' name='{$locale.458}' value='{$locale.458}' onclick="javascript:backupSelectCore()" /> 
    277281                                <input type='button' class='button' name='{$locale.436}' value='{$locale.436}' onclick="javascript:backupSelectAll()" /> 
Note: See TracChangeset for help on using the changeset viewer.