Ignore:
Timestamp:
Feb 18, 2011, 5:34:50 PM (13 years ago)
Author:
mistic100
Message:

[extensions] PHP Optimisateur

  • fix many path bugs
  • debug some plugins
  • add ratio detection for ConvertPan
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PHP_Optimisateur/include/setup.php

    r9201 r9276  
    5050                                                <td>'.l10n('silentORNOT').' :</td>
    5151                                                <td>
    52                                                         <label><input type="radio" name="silentORNOT" value="erase" '.(($CONF['silentORNOT']=='erase')?'checked="checked"':'').'/> '.l10n('erase').'</label>
    53                                                         <label><input type="radio" name="silentORNOT" value="block" '.(($CONF['silentORNOT']=='block')?'checked="checked"':'').'/> '.l10n('block').'</label>
    54                                                         <label><input type="radio" name="silentORNOT" value="pass" '.(($CONF['silentORNOT']=='pass')?'checked="checked"':'').'/> '.l10n('pass').'</label>
     52                                                        <input type="radio" id="silentORNOT1" name="silentORNOT" value="erase" '.(($CONF['silentORNOT']=='erase')?'checked="checked"':'').'/>
     53                                                        <label for="silentORNOT1">'.l10n('erase').'</label>
     54                                                        <input type="radio" id="silentORNOT2" name="silentORNOT" value="block" '.(($CONF['silentORNOT']=='block')?'checked="checked"':'').'/>
     55                                                        <label for="silentORNOT2">'.l10n('block').'</label>
     56                                                        <input type="radio" id="silentORNOT3" name="silentORNOT" value="pass" '.(($CONF['silentORNOT']=='pass')?'checked="checked"':'').'/>
     57                                                        <label for="silentORNOT3">'.l10n('pass').'</label>
    5558                                                </td>
    5659                                        </tr>
     
    5861                                                <td>'.l10n('DIRhighORNOT').' :</td>
    5962                                                <td>
    60                                                         <label><input type="radio" name="DIRhighORNOT" value="true" '.(($CONF['DIRhighORNOT'])?'checked="checked"':'').'/> '.l10n('yes').'</label>
    61                                                         <label><input type="radio" name="DIRhighORNOT" value="false" '.((!$CONF['DIRhighORNOT'])?'checked="checked"':'').'/> '.l10n('no').'</label>
     63                                                        <input type="radio" id="DIRhighORNOT1" name="DIRhighORNOT" value="true" '.(($CONF['DIRhighORNOT'])?'checked="checked"':'').'/>
     64                                                        <label for="DIRhighORNOT1">'.l10n('yes').'</label>
     65                                                        <input type="radio" id="DIRhighORNOT2" name="DIRhighORNOT" value="false" '.((!$CONF['DIRhighORNOT'])?'checked="checked"':'').'/>
     66                                                        <label for="DIRhighORNOT2">'.l10n('no').'</label>
    6267                                                </td>
    6368                                        </tr>
     
    6570                                                <td>'.l10n('DIMhdORNOT').' :</td>
    6671                                                <td>
    67                                                         <label><input type="radio" name="DIMhdORNOT" value="true" '.(($CONF['DIMhdORNOT'])?'checked="checked"':'').'/> '.l10n('yes').'</label>
    68                                                         <label><input type="radio" name="DIMhdORNOT" value="false" '.((!$CONF['DIMhdORNOT'])?'checked="checked"':'').'/> '.l10n('no').'</label>
     72                                                        <input type="radio" id="DIMhdORNOT1" name="DIMhdORNOT" value="true" '.(($CONF['DIMhdORNOT'])?'checked="checked"':'').'/>
     73                                                        <label for="DIMhdORNOT1">'.l10n('yes').'</label>
     74                                                        <input type="radio" id="DIMhdORNOT" name="DIMhdORNOT" value="false" '.((!$CONF['DIMhdORNOT'])?'checked="checked"':'').'/>
     75                                                        <label for="DIMhdORNOT2">'.l10n('no').'</label>
    6976                                                </td>
    7077                                        </tr>
     
    7279                                                <td>'.l10n('renameORNOT').' :</td>
    7380                                                <td>
    74                                                         <label><input type="radio" name="renameORNOT" value="true" '.(($CONF['renameORNOT'])?'checked="checked"':'').'/> '.l10n('yes').'</label>
    75                                                         <label><input type="radio" name="renameORNOT" value="false" '.((!$CONF['renameORNOT'])?'checked="checked"':'').'/> '.l10n('no').'</label>
     81                                                        <input type="radio" id="renameORNOT1" name="renameORNOT" value="true" '.(($CONF['renameORNOT'])?'checked="checked"':'').'/>
     82                                                        <label for="renameORNOT1">'.l10n('yes').'</label>
     83                                                        <input type="radio" id="renameORNOT2" name="renameORNOT" value="false" '.((!$CONF['renameORNOT'])?'checked="checked"':'').'/>
     84                                                        <label for="renameORNOT2">'.l10n('no').'</label>
    7685                                                </td>
    7786                                        </tr>
     
    7988                                                <td>'.l10n('indexORNOT').' :</td>
    8089                                                <td>
    81                                                         <label><input type="radio" name="indexORNOT" value="true" '.(($CONF['indexORNOT'])?'checked="checked"':'').'/> '.l10n('yes').'</label>
    82                                                         <label><input type="radio" name="indexORNOT" value="false" '.((!$CONF['indexORNOT'])?'checked="checked"':'').'/> '.l10n('no').'</label>
     90                                                        <input type="radio" id="indexORNOT1" name="indexORNOT" value="true" '.(($CONF['indexORNOT'])?'checked="checked"':'').'/>
     91                                                        <label for="indexORNOT1">'.l10n('yes').'</label>
     92                                                        <input type="radio" id="indexORNOT2" name="indexORNOT" value="false" '.((!$CONF['indexORNOT'])?'checked="checked"':'').'/>
     93                                                        <label for="indexORNOT2">'.l10n('no').'</label>
    8394                                                </td>
    8495                                        </tr>
     
    132143                                                <td>'.l10n('copyONhd').' :</td>
    133144                                                <td>
    134                                                         <label><input type="radio" name="copyONhd" value="true" '.(($CONF['copyONhd'])?'checked="checked"':'').'/> '.l10n('yes').'</label>
    135                                                         <label><input type="radio" name="copyONhd" value="false" '.((!$CONF['copyONhd'])?'checked="checked"':'').'/> '.l10n('no').'</label>
     145                                                        <input type="radio" id="copyONhd1" name="copyONhd" value="true" '.(($CONF['copyONhd'])?'checked="checked"':'').'/>
     146                                                        <label for="copyONhd1">'.l10n('yes').'</label>
     147                                                        <input type="radio" id="copyONhd2" name="copyONhd" value="false" '.((!$CONF['copyONhd'])?'checked="checked"':'').'/>
     148                                                        <label for="copyONhd2">'.l10n('no').'</label>
    136149                                                </td>
    137150                                        </tr>
     
    139152                                                <td>'.l10n('copyONnormal').' :</td>
    140153                                                <td>
    141                                                         <label><input type="radio" name="copyONnormal" value="true" '.(($CONF['copyONnormal'])?'checked="checked"':'').'/> '.l10n('yes').'</label>
    142                                                         <label><input type="radio" name="copyONnormal" value="false" '.((!$CONF['copyONnormal'])?'checked="checked"':'').'/> '.l10n('no').'</label>
     154                                                        <input type="radio" id="copyONnormal1" name="copyONnormal" value="true" '.(($CONF['copyONnormal'])?'checked="checked"':'').'/>
     155                                                        <label for="copyONnormal1">'.l10n('yes').'</label>
     156                                                        <input type="radio" id="copyONnormal2" name="copyONnormal" value="false" '.((!$CONF['copyONnormal'])?'checked="checked"':'').'/>
     157                                                        <label for="copyONnormal2">'.l10n('no').'</label>
    143158                                                </td>
    144159                                        </tr>
     
    146161                                                <td>'.l10n('copyPOS%s', l10n('copyPOSv')).' :</td>
    147162                                                <td>
    148                                                         <label><input type="radio" name="copyPOS[0]" value="top" '.(($CONF['copyPOS'][0]=='top')?'checked="checked"':'').'/> '.l10n('top').'</label>
    149                                                         <label><input type="radio" name="copyPOS[0]" value="center" '.(($CONF['copyPOS'][0]=='center')?'checked="checked"':'').'/> '.l10n('center').'</label>
    150                                                         <label><input type="radio" name="copyPOS[0]" value="bottom" '.(($CONF['copyPOS'][0]=='bottom')?'checked="checked"':'').'/> '.l10n('bottom').'</label>
     163                                                        <input type="radio" id="copyPOS01" name="copyPOS[0]" value="top" '.(($CONF['copyPOS'][0]=='top')?'checked="checked"':'').'/>
     164                                                        <label for="copyPOS01">'.l10n('top').'</label>
     165                                                        <input type="radio" id="copyPOS02" name="copyPOS[0]" value="center" '.(($CONF['copyPOS'][0]=='center')?'checked="checked"':'').'/>
     166                                                        <label for="copyPOS02">'.l10n('center').'</label>
     167                                                        <input type="radio" id="copyPOS03" name="copyPOS[0]" value="bottom" '.(($CONF['copyPOS'][0]=='bottom')?'checked="checked"':'').'/>
     168                                                        <label for="copyPOS03">'.l10n('bottom').'</label>
    151169                                                </td>
    152170                                        </tr>
     
    154172                                                <td>'.l10n('copyPOS%s', l10n('copyPOSh')).' :</td>
    155173                                                <td>
    156                                                         <label><input type="radio" name="copyPOS[1]" value="left" '.(($CONF['copyPOS'][1]=='left')?'checked="checked"':'').'/> '.l10n('left').'</label>
    157                                                         <label><input type="radio" name="copyPOS[1]" value="center" '.(($CONF['copyPOS'][1]=='center')?'checked="checked"':'').'/> '.l10n('center').'</label>
    158                                                         <label><input type="radio" name="copyPOS[1]" value="right" '.(($CONF['copyPOS'][1]=='right')?'checked="checked"':'').'/> '.l10n('right').'</label>
     174                                                        <input type="radio" id="copyPOS11" name="copyPOS[1]" value="left" '.(($CONF['copyPOS'][1]=='left')?'checked="checked"':'').'/>
     175                                                        <label for="copyPOS11">'.l10n('left').'</label>
     176                                                        <input type="radio" id="copyPOS12" name="copyPOS[1]" value="center" '.(($CONF['copyPOS'][1]=='center')?'checked="checked"':'').'/>
     177                                                        <label for="copyPOS12">'.l10n('center').'</label>
     178                                                        <input type="radio" id="copyPOS13" name="copyPOS[1]" value="right" '.(($CONF['copyPOS'][1]=='right')?'checked="checked"':'').'/>
     179                                                        <label for="copyPOS13">'.l10n('right').'</label>
    159180                                                </td>
    160181                                        </tr>
     
    165186                                        <tr>
    166187                                                <td>'.l10n('copyCOLOR').' :</td>
    167                                                 <td><input type="text" name="copyCOLOR" value="'.$CONF['copyCOLOR'].'" size="6" id="colorpicker"/></td>
     188                                                <td><input type="text" id="colorpicker" name="copyCOLOR" value="'.$CONF['copyCOLOR'].'" size="6"/></td>
    168189                                                <script type="text/javascript">
    169190                                                        $("#colorpicker").ColorPicker({
     
    209230                                                                $PAGE_CONTENT[0] .= '<label><input type="checkbox" name="Plugins['.$plugin_id.'][delete]" value="true" checked="checked"/> '.l10n('erase').'</label>';
    210231                                                        } else {
    211                                                                 $PAGE_CONTENT[0] .= '<label><input type="radio" name="Plugins['.$plugin_id.'][active]" value="true" '.(($plugin_config['active'])?'checked="checked"':'').'/> '.l10n('Active').'</label>
    212                                                                 <label><input type="radio" name="Plugins['.$plugin_id.'][active]" value="false" '.((!$plugin_config['active'])?'checked="checked"':'').'/> '.l10n('Inactive').'</label>';
     232                                                                $PAGE_CONTENT[0] .= '<input type="radio" id="" id="active-'.$plugin_id.'" name="Plugins['.$plugin_id.'][active]" value="true" '.(($plugin_config['active'])?'checked="checked"':'').'/>
     233                                                                <label for="active-'.$plugin_id.'">'.l10n('Active').'</label>
     234                                                                <input type="radio" id="" id="inactive-'.$plugin_id.'"name="Plugins['.$plugin_id.'][active]" value="false" '.((!$plugin_config['active'])?'checked="checked"':'').'/>
     235                                                                <label for="inactive-'.$plugin_id.'">'.l10n('Inactive').'</label>';
    213236                                                        }
    214237                                                $PAGE_CONTENT[0] .= '</span>
     
    230253        $PAGE_CONTENT[2] .= '<div class="generic link">
    231254                <input type="submit" value="'.l10n('Valid').'"/>
    232                 <input type="reset" value="'.l10n('Reset').'"/>
    233255                <input type="reset" onclick="location.href=\'index.php\'" value="'.l10n('Back').'"/>
    234256        </div>
Note: See TracChangeset for help on using the changeset viewer.