Changeset 10299


Ignore:
Timestamp:
Apr 11, 2011, 8:14:32 PM (13 years ago)
Author:
flop25
Message:

the background code of admin page is ok

Location:
extensions/Icons_Set
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Icons_Set/admin.php

    r10297 r10299  
    4242                       
    4343                                if($ext_fichier == 'conf.php') { //On ne prend que les .conf.php
    44                                         $path = str_replace("/plugins/Icons_Set", "", $path);
     44                                        $path = str_replace("./plugins/Icons_Set/icons/", "", $path);
    4545                                        $list_iconconf_path[]=$path;
    4646                                }
     
    131131$themes->sort_fs_themes();
    132132$all_themes=array();
    133 foreach ($conf_themes as $theme_id => $iconset) // theme supprimé
     133foreach ($conf_themes as $theme_id => $iconset)
    134134{
    135135        $all_themes[$theme_id]=array(
     
    140140        );
    141141}
     142
     143$all_icons=array();
     144$values=array();
     145$output=array();
     146foreach ($conf_icons as $iconset)
     147{
     148        include_once('icons/'.$iconset);
     149        $all_icons[]=array(
     150        'path'=>$iconset,
     151  'name' => $iconsetconf['name'],
     152  'id' => $iconsetconf['id'],
     153  'icon_file' => $iconsetconf['icon_file'],
     154  'css_file' => $iconsetconf['css_file'],
     155        );
     156        $values[]=$iconset;
     157        $output[]=$iconsetconf['name'];
     158}
    142159$template->assign(array(
    143160  'all_themes' => $all_themes,
    144   'all_icons' => $conf_icons,
     161  'all_icons' => $all_icons,
     162  'values' => $values,
     163  'output' => $output,
    145164));
    146165
  • extensions/Icons_Set/template/admin.css

    r10297 r10299  
    99    overflow: hidden;
    1010    text-align: center;
     11                width:100%;
    1112}
  • extensions/Icons_Set/template/admin.tpl

    r10297 r10299  
    1515      <div>
    1616      <select name="set">
    17         <option value="NULL">{'iconset_nochange'|@translate}</option>
    1817        <option value="NULL">{'iconset_nothing'|@translate}</option>
    19         {foreach from=$list_set item=ls}
    20         <option value="{$ls.FILE}">{$ls.TEXTE}</option>
    21         {/foreach}
     18        {html_options output=$output values=$values selected=$theme.icon}
    2219      </select>
    2320      </div>
Note: See TracChangeset for help on using the changeset viewer.