Ignore:
Timestamp:
12/08/07 00:04:43 (4 years ago)
Author:
hverton
Message:

update all user queries to include the user_status, to select only active user accounts
removed download bar selection from the download module (should be in the download bars module)

File:
1 edited

Legend:

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

    r1150 r1159  
    1515{*                                                                         *} 
    1616{***************************************************************************} 
    17 {include file="_opentable.tpl" name=$_name title=$_title state=$_state style=$_style} 
     17{if $step == "add"} 
     18    {include file="_opentable.tpl" name=$_name title=$_title state=$_state style=$_style} 
     19        <form name='inputform' method='post' action='{$formaction}'> 
     20            <table align='center' cellpadding='0' cellspacing='0' width='460'> 
     21                <tr> 
     22                    <td width='80' class='tbl'> 
     23                        {$locale.480} 
     24                    </td> 
     25                    <td class='tbl'> 
     26                        <input type='text' name='download_title' value='{$download_title}' class='textbox' style='width:400px;' /> 
     27                    </td> 
     28                </tr> 
     29                <tr> 
     30                    <td valign='top' width='80' class='tbl'> 
     31                        {$locale.481} 
     32                    </td> 
     33                    <td class='tbl'> 
     34                        <textarea name='download_description' rows='5' cols='80' class='textbox' style='width:400px;'>{$download_description}</textarea> 
     35                    </td> 
     36                </tr> 
     37                <tr> 
     38                    <td class='tbl'></td><td class='tbl'> 
     39                        <input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onclick="addText('download_description', '<b>', '</b>');" /> 
     40                        <input type='button' value='i' class='button' style='font-style:italic;width:25px;' onclick="addText('download_description', '<i>', '</i>');" /> 
     41                        <input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onclick="addText('download_description', '<u>', '</u>');" /> 
     42                        <input type='button' value='ul' class='button' style='width:25px;' onclick="addText('download_description', '<ul>', '</ul>');" /> 
     43                        <input type='button' value='li' class='button' style='width:25px;' onclick="addText('download_description', '<li>', '</li>');" /> 
     44                        <input type='button' value='link' class='button' style='width:35px' onclick="addText('download_description', '<a href=\'', '\' target=\'_blank\'>Link</a>');" /> 
     45                        <input type='button' value='img' class='button' style='width:35px' onclick="addText('download_description', '<img src=\'', '\' style=\'margin:5px\' align=\'left\'>');" /> 
     46                        <input type='button' value='center' class='button' style='width:45px' onclick="addText('download_description', '<center>', '</center>');" /> 
     47                        <input type='button' value='small' class='button' style='width:40px' onclick="addText('download_description', '<span class=\'small\'>', '</span>');" /> 
     48                        <input type='button' value='small2' class='button' style='width:45px' onclick="addText('download_description', '<span class=\'small2\'>', '</span>');" /> 
     49                        <input type='button' value='alt' class='button' style='width:25px' onclick="addText('download_description', '<span class=\'alt\'>', '</span>');" /> 
     50                        <br /> 
     51                    </td> 
     52                </tr> 
     53                <tr> 
     54                    <td width='80' class='tbl'> 
     55                        {$locale.482} 
     56                    </td> 
     57                    <td class='tbl'> 
     58                        <input type='text' name='download_url' value='{$download_url}' class='textbox' style='width:400px;' /> 
     59                    </td> 
     60                </tr> 
     61                <tr> 
     62                    <td width='80' class='tbl'> 
     63                        {$locale.483} 
     64                    </td> 
     65                    <td class='tbl'> 
     66                        <select name='download_cat' class='textbox'> 
     67                            <option value='0'{if $cats[id].selected} selected="selected"{/if}>{$locale.455}</option> 
     68                        {section name=id loop=$cats} 
     69                            <option value='{$cats[id].download_cat_id}'{if $cats[id].selected} selected="selected"{/if}>{$cats[id].download_cat_name}</option> 
     70                        {/section} 
     71                        </select> 
     72                        <br /> 
     73                        <span class='small2'>{$locale.455|string_format:$locale.490}</span> 
     74                    </td> 
     75                </tr> 
     76                <tr> 
     77                    <td width='80' class='tbl'> 
     78                        {$locale.484} 
     79                    </td> 
     80                    <td class='tbl'> 
     81                        <input type='text' name='download_license' value='{$download_license}' class='textbox' style='width:150px;' /> 
     82                    </td> 
     83                </tr> 
     84                <tr> 
     85                    <td width='80' class='tbl'> 
     86                        {$locale.485} 
     87                    </td> 
     88                    <td class='tbl'> 
     89                        <input type='text' name='download_os' value='{$download_os}' class='textbox' style='width:150px;' /> 
     90                    </td> 
     91                </tr> 
     92                <tr> 
     93                    <td width='80' class='tbl'> 
     94                        {$locale.486} 
     95                    </td> 
     96                    <td class='tbl'> 
     97                        <input type='text' name='download_version' value='{$download_version}' class='textbox' style='width:150px;' /> 
     98                    </td> 
     99                </tr> 
     100                <tr> 
     101                    <td width='80' class='tbl'> 
     102                        {$locale.487} 
     103                    </td> 
     104                    <td class='tbl'> 
     105                        <input type='text' name='download_filesize' value='{$download_filesize}' class='textbox' style='width:150px;' /> 
     106                    </td> 
     107                </tr> 
     108                <tr> 
     109                    <td align='center' colspan='2' class='tbl'> 
     110                        {if $step == "edit"} 
     111                            <input type='checkbox' name='update_datestamp' value='1' /> {$locale.489} 
     112                            <br /><br /> 
     113                        {/if} 
     114                        <input type='submit' name='save_download' value='{$locale.488}' class='button' /> 
     115                    </td> 
     116                </tr> 
     117            </table> 
     118        </form> 
     119    {include file="_closetable.tpl"} 
     120{/if} 
     121{if $settings.download_localisation == "multiple"} 
     122    {assign var="tabletitle" value=$locale.500|cat:" "|cat:$locale.513|cat:" '<b>"|cat:$cat_locale|cat:"</b>'"} 
     123{else} 
     124    {assign var="tabletitle" value=$locale.500} 
     125{/if} 
     126{include file="_opentable.tpl" name=$_name title=$tabletitle state=$_state style=$_style} 
     127{if $settings.download_localisation == "multiple"} 
     128    {assign var="url_locale" value="&amp;cat_locale="|cat:$cat_locale} 
     129    <br /> 
     130    <div style='text-align:center;'> 
     131        {$locale.515} {html_options name=cat_locale options=$locales selected=$cat_locale class="textbox" onchange="location = '"|cat:$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;cat_locale=' + this.options[this.selectedIndex].value;"} 
     132    </div> 
     133{else} 
     134    {assign var="cat_locale" value=""} 
     135{/if} 
     136<br /> 
     137<table align='center' cellpadding='0' cellspacing='0' width='400'> 
     138{section name=id loop=$tree} 
     139    {if $smarty.section.id.first} 
     140    <tr> 
     141        <td class='tbl2'> 
     142            {$locale.501} 
     143        </td> 
     144        <td align='right' class='tbl2'> 
     145            {$locale.502} 
     146        </td> 
     147    </tr> 
     148    <tr> 
     149        <td colspan='2' height='1'> 
     150        </td> 
     151    </tr> 
     152    {/if} 
     153    {if $tree[id].node == "P"} 
     154    {if $tree[id].id == $download_cat_id} 
     155        {assign var='open' value=true} 
     156    {else} 
     157        {assign var='open' value=false} 
     158    {/if} 
     159    <tr> 
     160        <td class='tbl2'> 
     161            {section name=nl loop=`$tree[id].nestlevel+1`} 
     162            <img src='{$smarty.const.THEME}images/bullet.gif' alt='' />&nbsp; 
     163            {/section} 
     164            {$tree[id].name} 
     165        </td> 
     166        <td class='tbl2' align='right'> 
     167            <img onclick="javascript:flipBox('{$tree[id].id}')" src='{$smarty.const.THEME}images/panel_{if $open}off{else}on{/if}.gif' name='b_{$tree[id].id}' alt='' /> 
     168        </td> 
     169    </tr> 
     170    {assign var='in_box' value=false} 
     171    {elseif $tree[id].node == "D"} 
     172    {if $tree[id].first} 
     173    <tr> 
     174        <td colspan='2'> 
     175            <div id='box_{$tree[id].cat_id}'{if !$open} style='display:none'{/if}> 
     176                <table cellpadding='0' cellspacing='0' width='100%'> 
     177    {/if} 
     178                    <tr> 
     179                        <td class='tbl'> 
     180                            <a href='{$tree[id].url}' target='_blank'>{$tree[id].name}</a> 
     181                        </td> 
     182                        <td align='right' width='100' class='tbl'> 
     183                            <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;step=edit&amp;download_cat_id={$tree[id].cat_id}&amp;download_id={$tree[id].id}{$url_locale}'><img src='{$smarty.const.THEME}/images/page_edit.gif' alt='{$locale.503}' title='{$locale.503}' /></a>&nbsp; 
     184                            <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;step=delete&amp;download_cat_id={$tree[id].cat_id}&amp;download_id={$tree[id].id}{$url_locale}' onclick='return DeleteItem()'><img src='{$smarty.const.THEME}/images/page_delete.gif' alt='{$locale.504}' title='{$locale.504}' /></a> 
     185                        </td> 
     186                    </tr> 
     187    {if $tree[id].last} 
     188                </table> 
     189            </div> 
     190        </td> 
     191    </tr> 
     192    {/if} 
     193    {elseif $tree[id].node == "E"} 
     194    <tr> 
     195        <td colspan='2'> 
     196            <div id='box_{$tree[id].id}' style='display:none'> 
     197                <table cellpadding='0' cellspacing='0' width='100%'> 
     198                    <tr> 
     199                        <td class='tbl'> 
     200                            {$locale.505} 
     201                        </td> 
     202                    </tr> 
     203                </table> 
     204            </div> 
     205        </td> 
     206    </tr> 
     207    {/if} 
     208    {if $smarty.section.id.last} 
     209    {/if} 
     210{sectionelse} 
     211    <tr> 
     212        <td align='center'> 
     213            <br /> 
     214            {$locale.506} 
     215            <br /><br /> 
     216            <a href='download_cats.php{$aidlink}'>{$locale.507} 
     217            <br /><br /> 
     218        </td> 
     219    </tr> 
     220{/section} 
     221</table> 
     222<div style='text-align:center;'> 
     223    <br /> 
     224    {buttonlink name=$locale.516 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;step=add"|cat:$url_locale} 
     225</div> 
     226{include file="_closetable.tpl"} 
     227<script type='text/javascript'> 
     228function DeleteItem() 
     229{ldelim} 
     230return confirm('{$locale.460}'); 
     231{rdelim} 
     232</script> 
     233{***************************************************************************} 
     234{* End of template                                                         *} 
     235{***************************************************************************} 
    18236{if !$cats_found} 
    19237<center> 
     
    25243</center> 
    26244{else} 
    27     <form name='inputform' method='post' action='{$formaction}'> 
    28         <table align='center' cellpadding='0' cellspacing='0' width='460'> 
    29             <tr> 
    30                 <td width='80' class='tbl'> 
    31                     {$locale.480} 
    32                 </td> 
    33                 <td class='tbl'> 
    34                     <input type='text' name='download_title' value='{$download_title}' class='textbox' style='width:400px;' /> 
    35                 </td> 
    36             </tr> 
    37             <tr> 
    38                 <td valign='top' width='80' class='tbl'> 
    39                     {$locale.481} 
    40                 </td> 
    41                 <td class='tbl'> 
    42                     <textarea name='download_description' rows='5' cols='80' class='textbox' style='width:400px;'>{$download_description}</textarea> 
    43                 </td> 
    44             </tr> 
    45             <tr> 
    46                 <td class='tbl'></td><td class='tbl'> 
    47                     <input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onclick="addText('download_description', '<b>', '</b>');" /> 
    48                     <input type='button' value='i' class='button' style='font-style:italic;width:25px;' onclick="addText('download_description', '<i>', '</i>');" /> 
    49                     <input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onclick="addText('download_description', '<u>', '</u>');" /> 
    50                     <input type='button' value='ul' class='button' style='width:25px;' onclick="addText('download_description', '<ul>', '</ul>');" /> 
    51                     <input type='button' value='li' class='button' style='width:25px;' onclick="addText('download_description', '<li>', '</li>');" /> 
    52                     <input type='button' value='link' class='button' style='width:35px' onclick="addText('download_description', '<a href=\'', '\' target=\'_blank\'>Link</a>');" /> 
    53                     <input type='button' value='img' class='button' style='width:35px' onclick="addText('download_description', '<img src=\'', '\' style=\'margin:5px\' align=\'left\'>');" /> 
    54                     <input type='button' value='center' class='button' style='width:45px' onclick="addText('download_description', '<center>', '</center>');" /> 
    55                     <input type='button' value='small' class='button' style='width:40px' onclick="addText('download_description', '<span class=\'small\'>', '</span>');" /> 
    56                     <input type='button' value='small2' class='button' style='width:45px' onclick="addText('download_description', '<span class=\'small2\'>', '</span>');" /> 
    57                     <input type='button' value='alt' class='button' style='width:25px' onclick="addText('download_description', '<span class=\'alt\'>', '</span>');" /> 
    58                     <br /> 
    59                 </td> 
    60             </tr> 
    61             <tr> 
    62                 <td width='80' class='tbl'> 
    63                     {$locale.482} 
    64                 </td> 
    65                 <td class='tbl'> 
    66                     <input type='text' name='download_url' value='{$download_url}' class='textbox' style='width:400px;' /> 
    67                 </td> 
    68             </tr> 
    69             <tr> 
    70                 <td width='80' class='tbl'> 
    71                     {$locale.483} 
    72                 </td> 
    73                 <td class='tbl'> 
    74                     <select name='download_cat' class='textbox'> 
    75                         <option value='0'{if $cats[id].selected} selected="selected"{/if}>{$locale.455}</option> 
    76                     {section name=id loop=$cats} 
    77                         <option value='{$cats[id].download_cat_id}'{if $cats[id].selected} selected="selected"{/if}>{$cats[id].download_cat_name}</option> 
    78                     {/section} 
    79                     </select> 
    80                     <br /> 
    81                     <span class='small2'>{$locale.455|string_format:$locale.490}</span> 
    82                 </td> 
    83             </tr> 
    84             <tr> 
    85                 <td width='80' class='tbl'> 
    86                     {$locale.484} 
    87                 </td> 
    88                 <td class='tbl'> 
    89                     <input type='text' name='download_license' value='{$download_license}' class='textbox' style='width:150px;' /> 
    90                 </td> 
    91             </tr> 
    92             <tr> 
    93                 <td width='80' class='tbl'> 
    94                     {$locale.485} 
    95                 </td> 
    96                 <td class='tbl'> 
    97                     <input type='text' name='download_os' value='{$download_os}' class='textbox' style='width:150px;' /> 
    98                 </td> 
    99             </tr> 
    100             <tr> 
    101                 <td width='80' class='tbl'> 
    102                     {$locale.486} 
    103                 </td> 
    104                 <td class='tbl'> 
    105                     <input type='text' name='download_version' value='{$download_version}' class='textbox' style='width:150px;' /> 
    106                 </td> 
    107             </tr> 
    108             <tr> 
    109                 <td width='80' class='tbl'> 
    110                     {$locale.487} 
    111                 </td> 
    112                 <td class='tbl'> 
    113                     <input type='text' name='download_filesize' value='{$download_filesize}' class='textbox' style='width:150px;' /> 
    114                 </td> 
    115             </tr> 
    116             <tr> 
    117                 <td align='center' colspan='2' class='tbl'> 
    118                     {if $step == "edit"} 
    119                         <input type='checkbox' name='update_datestamp' value='1' /> {$locale.489} 
    120                         <br /><br /> 
    121                     {/if} 
    122                     <input type='submit' name='save_download' value='{$locale.488}' class='button' /> 
    123                 </td> 
    124             </tr> 
    125         </table> 
    126     </form> 
    127     {include file="_closetable.tpl"} 
    128     {include file="_opentable.tpl" name=$_name title=$locale.500 state=$_state style=$_style} 
    129     <table align='center' cellpadding='0' cellspacing='0' width='400'> 
    130     {section name=id loop=$tree} 
    131         {if $smarty.section.id.first} 
    132         <tr> 
    133             <td class='tbl2'> 
    134                 {$locale.501} 
    135             </td> 
    136             <td align='right' class='tbl2'> 
    137                 {$locale.502} 
    138             </td> 
    139         </tr> 
    140         <tr> 
    141             <td colspan='2' height='1'> 
    142             </td> 
    143         </tr> 
    144         {/if} 
    145         {if $tree[id].node == "P"} 
    146         {if $tree[id].id == $download_cat_id} 
    147             {assign var='open' value=true} 
    148         {else} 
    149             {assign var='open' value=false} 
    150         {/if} 
    151         <tr> 
    152             <td class='tbl2'> 
    153                 {section name=nl loop=`$tree[id].nestlevel+1`} 
    154                 <img src='{$smarty.const.THEME}images/bullet.gif' alt='' />&nbsp; 
    155                 {/section} 
    156                 {$tree[id].name} 
    157             </td> 
    158             <td class='tbl2' align='right'> 
    159                 <img onclick="javascript:flipBox('{$tree[id].id}')" src='{$smarty.const.THEME}images/panel_{if $open}off{else}on{/if}.gif' name='b_{$tree[id].id}' alt='' /> 
    160             </td> 
    161         </tr> 
    162         {assign var='in_box' value=false} 
    163         {elseif $tree[id].node == "D"} 
    164         {if $tree[id].first} 
    165         <tr> 
    166             <td colspan='2'> 
    167                 <div id='box_{$tree[id].cat_id}'{if !$open} style='display:none'{/if}> 
    168                     <table cellpadding='0' cellspacing='0' width='100%'> 
    169         {/if} 
    170                         <tr> 
    171                             <td class='tbl'> 
    172                                 <a href='{$tree[id].url}' target='_blank'>{$tree[id].name}</a> 
    173                             </td> 
    174                             <td align='right' width='100' class='tbl'> 
    175                                 <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;step=edit&amp;download_cat_id={$tree[id].cat_id}&amp;download_id={$tree[id].id}'><img src='{$smarty.const.THEME}/images/page_edit.gif' alt='{$locale.503}' title='{$locale.503}' /></a>&nbsp; 
    176                                 <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;step=delete&amp;download_cat_id={$tree[id].cat_id}&amp;download_id={$tree[id].id}' onclick='return DeleteItem()'><img src='{$smarty.const.THEME}/images/page_delete.gif' alt='{$locale.504}' title='{$locale.504}' /></a> 
    177                             </td> 
    178                         </tr> 
    179         {if $tree[id].last} 
    180                     </table> 
    181                 </div> 
    182             </td> 
    183         </tr> 
    184         {/if} 
    185         {elseif $tree[id].node == "E"} 
    186         <tr> 
    187             <td colspan='2'> 
    188                 <div id='box_{$tree[id].id}' style='display:none'> 
    189                     <table cellpadding='0' cellspacing='0' width='100%'> 
    190                         <tr> 
    191                             <td class='tbl'> 
    192                                 {$locale.505} 
    193                             </td> 
    194                         </tr> 
    195                     </table> 
    196                 </div> 
    197             </td> 
    198         </tr> 
    199         {/if} 
    200         {if $smarty.section.id.last} 
    201         {/if} 
    202     {sectionelse} 
    203         <tr> 
    204             <td align='center'> 
    205                 <br /> 
    206                 {$locale.506} 
    207                 <br /><br /> 
    208                 <a href='download_cats.php{$aidlink}'>{$locale.507} 
    209                 <br /><br /> 
    210             </td> 
    211         </tr> 
    212     {/section} 
    213     </table> 
    214     <script type='text/javascript'> 
    215     function DeleteItem() 
    216     {ldelim} 
    217     return confirm('{$locale.460}'); 
    218     {rdelim} 
    219     </script> 
    220 {/if} 
    221 {include file="_closetable.tpl"} 
    222 {***************************************************************************} 
    223 {* End of template                                                         *} 
    224 {***************************************************************************} 
     245{/if} 
Note: See TracChangeset for help on using the changeset viewer.