Dotclear

Changeset 68:27ebb44c5e34


Ignore:
Timestamp:
04/29/11 23:02:22 (14 years ago)
Author:
kozlika
Branch:
userprefs
Message:

Corrections formulaires, étape 3.

Location:
admin
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r0 r68  
    302302     echo 
    303303     '<form action="media.php" method="get">'. 
    304      '<p><label class="classic">'.__('Sort files:').' '. 
     304     '<p><label for="file_sort" class="classic">'.__('Sort files:').' '. 
    305305     form::combo('file_sort',$sort_combo,$file_sort).'</label>'. 
    306306     form::hidden(array('popup'),$popup). 
     
    332332     $core->formNonce().'</div>'. 
    333333     '<fieldset id="add-file-f">'. 
    334      '<p><label>'.__('Choose a file:'). 
     334     '<p><label for="upfile">'.__('Choose a file:'). 
    335335     ' ('.sprintf(__('Maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'. 
    336      '<input type="file" name="upfile" size="20" />'. 
     336     '<input type="file" id="upfile" name="upfile" size="20" />'. 
    337337     '</label></p>'. 
    338      '<p><label>'.__('Title:').form::field(array('upfiletitle'),35,255).'</label></p>'. 
    339      '<p><label class="classic">'.form::checkbox(array('upfilepriv'),1).' '. 
     338     '<p><label for="upfiletitle">'.__('Title:').form::field(array('upfiletitle'),35,255).'</label></p>'. 
     339     '<p><label for="upfilepriv" class="classic">'.form::checkbox(array('upfilepriv'),1).' '. 
    340340     __('Private').'</label></p>'. 
    341341     '<p><input type="submit" value="'.__('send').'" />'. 
     
    351351     '<fieldset id="new-dir-f">'. 
    352352     $core->formNonce(). 
    353      '<p><label>'.__('Directory Name:'). 
     353     '<p><label for="newdir">'.__('Directory Name:'). 
    354354     form::field(array('newdir'),35,255).'</label></p>'. 
    355355     '<p><input type="submit" value="'.__('save').'" />'. 
  • admin/media_item.php

    r2 r68  
    236236          '<h3>'.__('Image insertion').'</h3>'. 
    237237          '<p>'. 
    238           '<label class="classic">'.form::radio(array('insertion'),'simple',true). 
     238          '<label for="insert1" class="classic">'.form::radio(array('insertion','insert1'),'simple',true). 
    239239          __('As a single image').'</label><br />'. 
    240           '<label class="classic">'.form::radio(array('insertion'),'link',false). 
     240          '<label for="insert2" class="classic">'.form::radio(array('insertion','insert2'),'link',false). 
    241241          __('As a link to original image').'</label>'. 
    242242          '</p>'; 
     
    258258          echo '<p>'; 
    259259          foreach ($i_align as $k => $v) { 
    260                echo '<label class="classic">'. 
     260               echo '<label for="alignment" class="classic">'. 
    261261               form::radio(array('alignment'),$k,$v[1]).' '.$v[0].'</label><br /> '; 
    262262          } 
     
    276276          echo 
    277277          '<h3>'.__('Video size').'</h3>'. 
    278           '<p><label class="classic">'.__('Width:').' '. 
     278          '<p><label for="video_w" class="classic">'.__('Width:').' '. 
    279279          form::field('video_w',3,4,400).'  '. 
    280           '<label class="classic">'.__('Height:').' '. 
     280          '<label for="video_h" class="classic">'.__('Height:').' '. 
    281281          form::field('video_h',3,4,300). 
    282282          '</p>'; 
     
    293293          echo '<p>'; 
    294294          foreach ($i_align as $k => $v) { 
    295                echo '<label class="classic">'. 
     295               echo '<label for="alignment" class="classic">'. 
    296296               form::radio(array('alignment'),$k,$v[1]).' '.$v[0].'</label><br /> '; 
    297297          } 
     
    474474          __('This will extract archive in current directory and will overwrite existing files or directory.').'</li>'. 
    475475          '</ul>'. 
    476           '<p><label class="classic">'.__('Extract mode:').' '. 
     476          '<p><label for="inflate_mode" class="classic">'.__('Extract mode:').' '. 
    477477          form::combo('inflate_mode',$inflate_combo,'new').'</label> '. 
    478478          '<input type="submit" name="unzip" value="'.__('extract').'" />'. 
     
    485485     '<form class="clear" action="'.html::escapeURL($page_url).'" method="post">'. 
    486486     '<fieldset><legend>'.__('Change media properties').'</legend>'. 
    487      '<p><label>'.__('File name:'). 
     487     '<p><label for="media_file">'.__('File name:'). 
    488488     form::field('media_file',30,255,html::escapeHTML($file->basename)).'</label></p>'. 
    489      '<p><label>'.__('File title:'). 
     489     '<p><label for="media_title">'.__('File title:'). 
    490490     form::field('media_title',30,255,html::escapeHTML($file->media_title)).'</label></p>'. 
    491      '<p><label>'.__('File date:'). 
     491     '<p><label for="media_dt">'.__('File date:'). 
    492492     form::field('media_dt',16,16,html::escapeHTML($file->media_dtstr)).'</label></p>'. 
    493      '<p><label class="classic">'.form::checkbox('media_private',1,$file->media_priv).' '. 
     493     '<p><label for="media_private" class="classic">'.form::checkbox('media_private',1,$file->media_priv).' '. 
    494494     __('Private').'</label></p>'. 
    495      '<p><label>'.__('New directory:'). 
     495     '<p><label for="media_path">'.__('New directory:'). 
    496496     form::combo('media_path',$dirs_combo,dirname($file->relname)).'</label></p>'. 
    497497     '<p><input type="submit" accesskey="s" value="'.__('save').'" />'. 
     
    504504     '<fieldset><legend>'.__('Change file').'</legend>'. 
    505505     '<div>'.form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE).'</div>'. 
    506      '<p><label>'.__('Choose a file:'). 
     506     '<p><label for="upfile">'.__('Choose a file:'). 
    507507     ' ('.sprintf(__('Maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).') '. 
    508      '<input type="file" name="upfile" size="35" />'. 
     508     '<input type="file" id="upfile" name="upfile" size="35" />'. 
    509509     '</label></p>'. 
    510510     '<p><input type="submit" value="'.__('send').'" />'. 
  • admin/permissions.php

    r0 r68  
    135135                
    136136               echo 
    137                '<p><label class="classic">'. 
    138                form::checkbox(array('perm['.html::escapeHTML($b).']['.html::escapeHTML($perm_id).']'), 
     137               '<p><label for="perm'.html::escapeHTML($b).html::escapeHTML($perm_id).'" class="classic">'. 
     138               form::checkbox(array('perm['.html::escapeHTML($b).']['.html::escapeHTML($perm_id).']','perm'.html::escapeHTML($b).html::escapeHTML($perm_id)), 
    139139               1,$checked).' '. 
    140140               __($perm).'</label></p>'; 
     
    144144     echo 
    145145     '<fieldset>'. 
    146      '<p><label>'.__('Your password:'). 
     146     '<p><label for="your_pwd">'.__('Your password:'). 
    147147     form::password('your_pwd',20,255,'','',15).'</label></p>'. 
    148148     '</fieldset>'. 
  • admin/permissions_blog.php

    r3 r68  
    108108      
    109109     '<div class="col">'. 
    110      '<p><label>'.__('Order by:').' '. 
     110     '<p><label for="sortby">'.__('Order by:').' '. 
    111111     form::combo('sortby',$sortby_combo,html::escapeHTML($sortby)). 
    112112     '</label> '. 
    113      '<label>'.__('Sort:').' '. 
     113     '<label for="order">'.__('Sort:').' '. 
    114114     form::combo('order',$order_combo,html::escapeHTML($order)). 
    115115     '</label></p>'. 
     
    117117      
    118118     '<div class="col">'. 
    119      '<p><label>'.__('Search:').' '. 
     119     '<p><label for="q">'.__('Search:').' '. 
    120120     form::field('q',20,255,html::escapeHTML($q)). 
    121121     '</label></p>'. 
    122      '<p><label class="classic">'. form::field('nb',3,3,$nb_per_page).' '. 
     122     '<p><label for="nb" class="classic">'.  form::field('nb',3,3,$nb_per_page).' '. 
    123123     __('Entries per page').'</label> '. 
    124124     '<input type="submit" value="'.__('Apply filters').'" />'. 
     
    187187     '<tr class="line">'. 
    188188     '<td class="nowrap">'. 
    189      form::checkbox(array('blog_id[]'),$rs->blog_id).'</td>'. 
     189     form::checkbox(array('blog_id[]'),$rs->blog_id,'','','',false,'title="'.__('select').' '.$rs->blog_id.'"').'</td>'. 
    190190     '<td class="nowrap">'.$rs->blog_id.'</td>'. 
    191191     '<td class="maximal">'.html::escapeHTML($rs->blog_name).'</td>'. 
  • admin/plugins.php

    r3 r68  
    326326     '<fieldset>'. 
    327327     '<legend>'.__('Upload a zip file').'</legend>'. 
    328      '<p class="field"><label class="classic required" title="'.__('Required field').'">'.__('Plugin zip file:').' '. 
     328     '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Plugin zip file:').' '. 
    329329     '<input type="file" name="pkg_file" /></label></p>'. 
    330      '<p class="field"><label class="classic required" title="'.__('Required field').'">'.__('Your password:').' '. 
    331      form::password(array('your_pwd'),20,255).'</label></p>'. 
     330     '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').' '. 
     331     form::password(array('your_pwd','your_pwd1'),20,255).'</label></p>'. 
    332332     '<input type="submit" name="upload_pkg" value="'.__('Upload plugin').'" />'. 
    333333     $core->formNonce(). 
     
    340340     '<fieldset>'. 
    341341     '<legend>'.__('Download a zip file').'</legend>'. 
    342      '<p class="field"><label class=" classic required" title="'.__('Required field').'">'.__('Plugin zip file URL:').' '. 
     342     '<p class="field"><label for="pkg_url" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Plugin zip file URL:').' '. 
    343343     form::field(array('pkg_url'),40,255).'</label></p>'. 
    344      '<p class="field"><label class="classic required" title="'.__('Required field').'">'.__('Your password:').' '. 
    345      form::password(array('your_pwd'),20,255).'</label></p>'. 
     344     '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').' '. 
     345     form::password(array('your_pwd','your_pwd2'),20,255).'</label></p>'. 
    346346     '<input type="submit" name="fetch_pkg" value="'.__('Download plugin').'" />'. 
    347347     $core->formNonce(). 
  • admin/popup_link.php

    r0 r68  
    4040echo 
    4141'<form id="link-insert-form" action="#" method="get">'. 
    42 '<p><label class="required" title="'.__('Required field').'">'.__('Link URL:').' '. 
     42'<p><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Link URL:').' '. 
    4343form::field('href',35,512,html::escapeHTML($href)).'</label></p>'. 
    4444'<p><label>'.__('Link title:').' '.  
     
    5050'</form>'. 
    5151 
    52 '<p><a class="button" href="#" id="link-insert-cancel">'.__('cancel').'</a> - '. 
     52'<p><a class="button reset" href="#" id="link-insert-cancel">'.__('cancel').'</a> - '. 
    5353'<strong><a class="button" href="#" id="link-insert-ok">'.__('insert').'</a></strong></p>'."\n". 
    5454 
  • admin/popup_posts.php

    r0 r68  
    3636 
    3737echo '<form action="popup_posts.php" method="get">'. 
    38 '<p><label class="classic">'.__('Search entry:').' '.form::field('q',30,255,html::escapeHTML($q)).'</label> '. 
     38'<p><label for="q" class="classic">'.__('Search entry:').' '.form::field('q',30,255,html::escapeHTML($q)).'</label> '. 
    3939' <input type="submit" value="'.__('ok').'" /></p>'. 
    4040'</form>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map