Ignore:
Timestamp:
10/02/07 22:23:07 (5 years ago)
Author:
hverton
Message:

moved more templates to the template include directory
download panel had problems displaying an odd number of categories
make more modules xhtml compliant

File:
1 edited

Legend:

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

    r843 r861  
    4040                </td> 
    4141                <td class='tbl'> 
    42                     <textarea name='download_description' rows='5' class='textbox' style='width:400px;'>{$download_description}</textarea> 
     42                    <textarea name='download_description' rows='5' cols='80' class='textbox' style='width:400px;'>{$download_description}</textarea> 
    4343                </td> 
    4444            </tr> 
    4545            <tr> 
    4646                <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>');"><br> 
     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 /> 
    5859                </td> 
    5960            </tr> 
     
    7273                <td class='tbl'> 
    7374                    <select name='download_cat' class='textbox'> 
     75                        <option value='0'{if $cats[id].selected} selected="selected"{/if}>{$locale.455}</option> 
    7476                    {section name=id loop=$cats} 
    75                         <option value='{$cats[id].download_cat_id}'{if $cats[id].selected} selected{/if}>{$cats[id].download_cat_name}</option> 
     77                        <option value='{$cats[id].download_cat_id}'{if $cats[id].selected} selected="selected"{/if}>{$cats[id].download_cat_name}</option> 
    7678                    {/section} 
    7779                    </select> 
     80                    <br /> 
     81                    <span class='small2'>{$locale.490}</span> 
    7882                </td> 
    7983            </tr> 
     
    113117                <td align='center' colspan='2' class='tbl'> 
    114118                    {if $step == "edit"} 
    115                         <input type='checkbox' name='update_datestamp' value='1'> {$locale.489} 
     119                        <input type='checkbox' name='update_datestamp' value='1' /> {$locale.489} 
    116120                        <br /><br /> 
    117121                    {/if} 
    118                     <input type='submit' name='save_download' value='{$locale.488}' class='button'> 
     122                    <input type='submit' name='save_download' value='{$locale.488}' class='button' /> 
    119123                </td> 
    120124            </tr> 
     
    147151        <tr> 
    148152            <td class='tbl2'> 
    149                 {section name=nl loop=$tree[id].nestlevel} 
     153                {section name=nl loop=`$tree[id].nestlevel+1`} 
    150154                <img src='{$smarty.const.THEME}images/bullet.gif' alt='' />&nbsp; 
    151155                {/section} 
     
    153157            </td> 
    154158            <td class='tbl2' align='right'> 
    155                 <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}'> 
     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='' /> 
    156160            </td> 
    157161        </tr> 
     
    170174                            <td align='right' width='100' class='tbl'> 
    171175                                <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; 
    172                                 <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> 
     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> 
    173177                            </td> 
    174178                        </tr> 
     
    219223        <center><b>{$barmsg}</b></center><br /> 
    220224    {/if} 
    221     <form name='barform' method='post' action='{$smarty.const.FUSION_SELF}{$aidlink}&step=bar'> 
     225    <form name='barform' method='post' action='{$smarty.const.FUSION_SELF}{$aidlink}&amp;step=bar'> 
    222226        <table align='center' cellpadding='0' cellspacing='0' width='400'> 
    223227            <tr> 
     
    233237                    {$locale.521} {$smarty.section.bar.index}:<br /> 
    234238                    <select name='download_bar[{$smarty.section.bar.index}]' class='textbox' style='width:400px;'> 
    235                         <option value='0'></option> 
     239                        <option value='0'>&nbsp;</option> 
    236240                    {section name=id loop=$barfiles} 
    237                         <option value='{$barfiles[id].download_id}'{if $barfiles[id].download_bar == $smarty.section.bar.index} selected{/if}>{$barfiles[id].download_cat_name} » {$barfiles[id].download_title}</option> 
     241                        <option value='{$barfiles[id].download_id}'{if $barfiles[id].download_bar == $smarty.section.bar.index} selected="selected"{/if}>{$barfiles[id].download_cat_name} » {$barfiles[id].download_title}</option> 
    238242                    {/section} 
    239243                    </select> 
Note: See TracChangeset for help on using the changeset viewer.