Dotclear

Changeset 1399:cdf556efc5ea


Ignore:
Timestamp:
08/16/13 14:16:11 (10 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Semantic xhtml and a11y. Let labels to be labels. Step One: admin. Plugins and Themes will come later.

Location:
admin
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • admin/blog.php

    r1358 r1399  
    7777      
    7878     echo 
    79      '<form action="blog.php" method="post" id="blog-form" class="fieldset">'. 
     79     '<form action="blog.php" method="post" id="blog-form">'. 
    8080      
    8181     $core->formNonce(). 
    82      '<p><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').' '. 
    83      form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</label></p>'. 
     82     '<p><label class="required" for="blog_id"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').'</label> '. 
     83     form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</p>'. 
    8484     '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p> '. 
    8585     '<p class="form-note warn">'.__('Please note that changing your blog ID may require changes in your public index.php file.').'</p>'. 
    8686      
    87      '<p><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').' '. 
    88      form::field('blog_name',30,255,html::escapeHTML($blog_name)).'</label></p>'. 
     87     '<p><label class="required" for="blog_name"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').'</label> '. 
     88     form::field('blog_name',30,255,html::escapeHTML($blog_name)).'</p>'. 
    8989      
    90      '<p><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:').' '. 
    91      form::field('blog_url',30,255,html::escapeHTML($blog_url)).'</label></p>'. 
     90     '<p><label class="required" for="blog_url"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:').'</label> '. 
     91     form::field('blog_url',30,255,html::escapeHTML($blog_url)).'</p>'. 
    9292      
    9393     '<p class="area"><label for="blog_desc">'.__('Blog description:').'</label> '. 
  • admin/blog_del.php

    r1358 r1399  
    6969     '<form action="blog_del.php" method="post">'. 
    7070     '<div>'.$core->formNonce().'</div>'. 
    71      '<p><label for="pwd">'.__('Your password:').' '. 
    72      form::password('pwd',20,255).'</label></p>'. 
     71     '<p><label for="pwd">'.__('Your password:').'</label> '. 
     72     form::password('pwd',20,255).'</p>'. 
    7373     '<p><input type="submit" class="delete" name="del" value="'.__('Delete this blog').'" />'. 
    7474     form::hidden('blog_id',$blog_id).'</p>'. 
  • admin/blog_pref.php

    r1358 r1399  
    309309     { 
    310310          echo 
    311           '<p><label for="blog_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:'). 
    312           form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</label></p>'. 
     311          '<p><label for="blog_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').'</label>'. 
     312          form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</p>'. 
    313313          '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p> '. 
    314314          '<p class="form-note warn">'.__('Please note that changing your blog ID may require changes in your public index.php file.').'</p>'; 
     
    316316      
    317317     echo 
    318      '<p><label for="blog_name" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:'). 
    319      form::field('blog_name',30,255,html::escapeHTML($blog_name)).'</label></p>'; 
     318     '<p><label for="blog_name" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').'</label>'. 
     319     form::field('blog_name',30,255,html::escapeHTML($blog_name)).'</p>'; 
    320320      
    321321     if ($core->auth->isSuperAdmin()) 
    322322     { 
    323323          echo 
    324           '<p><label for="blog_url" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:'). 
    325           form::field('blog_url',30,255,html::escapeHTML($blog_url)).'</label></p>'. 
    326            
    327           '<p><label for="url_scan">'.__('URL scan method:'). 
    328           form::combo('url_scan',$url_scan_combo,$blog_settings->system->url_scan).'</label></p>'. 
    329            
    330           '<p><label for="blog_status">'.__('Blog status:'). 
    331           form::combo('blog_status',$status_combo,$blog_status).'</label></p>'; 
     324          '<p><label for="blog_url" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:').'</label>'. 
     325          form::field('blog_url',30,255,html::escapeHTML($blog_url)).'</p>'. 
     326           
     327          '<p><label for="url_scan">'.__('URL scan method:').'</label>'. 
     328          form::combo('url_scan',$url_scan_combo,$blog_settings->system->url_scan).'</p>'. 
     329           
     330          '<p><label for="blog_status">'.__('Blog status:').'</label>'. 
     331          form::combo('blog_status',$status_combo,$blog_status).'</p>'; 
    332332     } 
    333333      
     
    342342     '<div class="two-cols">'. 
    343343     '<div class="col">'. 
    344      '<p><label for="editor">'.__('Blog editor name:'). 
     344     '<p><label for="editor">'.__('Blog editor name:').'</label>'. 
    345345     form::field('editor',30,255,html::escapeHTML($blog_settings->system->editor)). 
    346      '</label></p>'. 
    347       
    348      '<p><label for="lang">'.__('Default language:'). 
     346     '</p>'. 
     347      
     348     '<p><label for="lang">'.__('Default language:').'</label>'. 
    349349     form::combo('lang',$lang_combo,$blog_settings->system->lang,'l10n'). 
    350      '</label></p>'. 
    351       
    352      '<p><label for="blog_timezone">'.__('Blog timezone:'). 
     350     '</p>'. 
     351      
     352     '<p><label for="blog_timezone">'.__('Blog timezone:').'</label>'. 
    353353     form::combo('blog_timezone',dt::getZones(true,true),html::escapeHTML($blog_settings->system->blog_timezone)). 
    354      '</label></p>'. 
    355  
    356      '<p><label for="copyright_notice">'.__('Copyright notice:'). 
     354     '</p>'. 
     355 
     356     '<p><label for="copyright_notice">'.__('Copyright notice:').'</label>'. 
    357357     form::field('copyright_notice',30,255,html::escapeHTML($blog_settings->system->copyright_notice)). 
    358      '</label></p>'. 
    359      '</div>'. 
    360       
    361      '<div class="col">'. 
    362      '<p><label for="post_url_format">'.__('New post URL format:'). 
     358     '</p>'. 
     359     '</div>'. 
     360      
     361     '<div class="col">'. 
     362     '<p><label for="post_url_format">'.__('New post URL format:').'</label>'. 
    363363     form::combo('post_url_format',$post_url_combo,html::escapeHTML($blog_settings->system->post_url_format)). 
    364      '</label></p>'. 
    365  
    366      '<p><label for="note_title_tag">'.__('Note title HTML tag:'). 
     364     '</p>'. 
     365 
     366     '<p><label for="note_title_tag">'.__('Note title HTML tag:').'</label>'. 
    367367     form::combo('note_title_tag',$note_title_tag_combo,$blog_settings->system->note_title_tag). 
    368      '</label></p>'. 
    369            
    370      '<p><label for="enable_xmlrpc" class="classic">'. 
     368     '</p>'. 
     369           
     370     '<p><label for="enable_xmlrpc" class="classic">'.'</label>'. 
    371371     form::checkbox('enable_xmlrpc','1',$blog_settings->system->enable_xmlrpc). 
    372      __('Enable XML/RPC interface').'</label></p>'; 
     372     __('Enable XML/RPC interface').'</p>'; 
    373373 
    374374     echo 
     
    442442     '<div class="two-cols">'. 
    443443     '<div class="col">'. 
    444      '<p><label for="date_format">'.__('Date format:'). 
     444     '<p><label for="date_format">'.__('Date format:').'</label>'. 
    445445     form::field('date_format',30,255,html::escapeHTML($blog_settings->system->date_format)). 
    446      '</label></p>'. 
    447       
    448      '<p><label for="time_format">'.__('Time format:'). 
     446     '</p>'. 
     447      
     448     '<p><label for="time_format">'.__('Time format:').'</label>'. 
    449449     form::field('time_format',30,255,html::escapeHTML($blog_settings->system->time_format)). 
    450      '</label></p>'. 
     450     '</p>'. 
    451451      
    452452     '<p><label for="use_smilies" class="classic">'. 
     
    500500 
    501501     '<h4>'.__('Default image insertion attributes').'</h4>'. 
    502      '<p><label for="media_img_default_size">'.__('Image size:'). 
     502     '<p><label for="media_img_default_size">'.__('Image size:').'</label>'. 
    503503     form::combo('media_img_default_size',$img_default_size_combo, 
    504504          (html::escapeHTML($blog_settings->system->media_img_default_size) != '' ? html::escapeHTML($blog_settings->system->media_img_default_size) : 'm')). 
    505      '</label></p>'. 
    506      '<p><label for="media_img_default_alignment">'.__('Image alignment'). 
     505     '</p>'. 
     506     '<p><label for="media_img_default_alignment">'.__('Image alignment').'</label>'. 
    507507     form::combo('media_img_default_alignment',$img_default_alignment_combo,html::escapeHTML($blog_settings->system->media_img_default_alignment)). 
    508      '</label></p>'. 
     508     '</p>'. 
    509509     '<p><label for="media_img_default_link" class="classic">'. 
    510510     form::checkbox('media_img_default_link','1',$blog_settings->system->media_img_default_link). 
  • admin/blog_theme.php

    r1358 r1399  
    307307               '<fieldset>'. 
    308308               '<legend>'.__('Upload a zip file').'</legend>'. 
    309                '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Theme zip file:').' '. 
    310                '<input type="file" name="pkg_file" id="pkg_file" /></label></p>'. 
    311                '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').' '. 
    312                form::password(array('your_pwd','your_pwd1'),20,255).'</label></p>'. 
     309               '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Theme zip file:').'</label> '. 
     310               '<input type="file" name="pkg_file" id="pkg_file" /></p>'. 
     311               '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
     312               form::password(array('your_pwd','your_pwd1'),20,255).'</p>'. 
    313313               '<input type="submit" name="upload_pkg" value="'.__('Upload theme').'" />'. 
    314314               $core->formNonce(). 
     
    321321               '<fieldset>'. 
    322322               '<legend>'.__('Download a zip file').'</legend>'. 
    323                '<p class="field"><label for="pkg_url" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Theme zip file URL:').' '. 
    324                form::field(array('pkg_url','pkg_url'),40,255).'</label></p>'. 
    325                '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').' '. 
    326                form::password(array('your_pwd','your_pwd2'),20,255).'</label></p>'. 
     323               '<p class="field"><label for="pkg_url" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Theme zip file URL:').'</label> '. 
     324               form::field(array('pkg_url','pkg_url'),40,255).'</p>'. 
     325               '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
     326               form::password(array('your_pwd','your_pwd2'),20,255).'</p>'. 
    327327               '<input type="submit" name="fetch_pkg" value="'.__('Download theme').'" />'. 
    328328               $core->formNonce(). 
  • admin/categories.php

    r1358 r1399  
    147147 
    148148'<form action="category.php" method="post">'. 
    149 '<fieldset><legend>'.__('Add a new category').'</legend>'. 
    150 '<p><label class="required" for="cat_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '. 
    151 form::field('cat_title',30,255).'</label></p>'. 
    152 '<p><label for="new_cat_parent">'.__('Parent:').' '. 
     149'<h3>'.__('Add a new category').'</h3>'. 
     150'<p><label class="required" for="cat_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
     151form::field('cat_title',30,255).'</p>'. 
     152'<p><label for="new_cat_parent">'.__('Parent:').'</label> '. 
    153153'<select id="new_cat_parent" name="new_cat_parent">'. 
    154154'<option value="0">'.__('Top level').'</option>'; 
     
    159159} 
    160160echo 
    161 '</select></label></p>'. 
    162 '<p><input type="submit" value="'.__('Create').'" /></p>'. 
    163 $core->formNonce(). 
    164 '</fieldset>'. 
     161'</select></p>'. 
     162'<p><input type="submit" value="'.__('Create').'" />'. 
     163$core->formNonce().'</p>'. 
    165164'</form>'; 
    166165 
     
    187186      
    188187     echo 
    189      '<form action="categories.php" method="post" id="delete-category">'. 
    190      '<fieldset><legend>'.__('Remove a category').'</legend>'. 
    191      '<p><label for="del_cat">'.__('Choose a category to remove:').' '. 
    192      form::combo('del_cat',$cats).'</label></p> '. 
    193      '<p><label for="mov_cat">'.__('And choose the category which will receive its entries:').' '. 
    194      form::combo('mov_cat',$dest).'</label></p> '. 
    195      '<p><input type="submit" value="'.__('Delete').'" class="delete" /></p>'. 
    196      $core->formNonce(). 
    197      '</fieldset>'. 
     188     '<form action="categories.php" method="post" id="delete-category" class="border-top">'. 
     189     '<h3>'.__('Remove a category').'</h3>'. 
     190     '<p><label for="del_cat">'.__('Choose a category to remove:').'</label> '. 
     191     form::combo('del_cat',$cats).'</p> '. 
     192     '<p><label for="mov_cat">'.__('And choose the category which will receive its entries:').'</label> '. 
     193     form::combo('mov_cat',$dest).'</p> '. 
     194     '<p><input type="submit" value="'.__('Delete').'" class="delete" />'. 
     195     $core->formNonce().'</p>'. 
    198196     '</form>'; 
    199197      
    200198     echo 
    201      '<form action="categories.php" method="post" id="reset-order">'. 
    202      '<fieldset><legend>'.__('Reorder categories').'</legend>'. 
     199     '<form action="categories.php" method="post" id="reset-order" class="border-top">'. 
     200     '<h3>'.__('Reorder categories').'</h3>'. 
    203201     '<p>'.__('This will relocate all categories on the top level').'</p> '. 
    204      '<p><input type="submit" value="'.__('Reorder').'" /></p>'. 
     202     '<p><input type="submit" value="'.__('Reorder').'" />'. 
    205203     form::hidden(array('reset'),1). 
    206      $core->formNonce(). 
    207      '</fieldset>'. 
     204     $core->formNonce().'</p>'. 
    208205     '</form>'; 
    209206} 
  • admin/category.php

    r1358 r1399  
    181181echo 
    182182'<form action="category.php" method="post" id="category-form">'. 
    183 '<fieldset><legend>'.__('Category information').'</legend>'. 
    184 '<p><label class="required" for="cat_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '. 
     183'<h3>'.__('Category information').'</h3>'. 
     184'<p><label class="required" for="cat_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
    185185form::field('cat_title',40,255,html::escapeHTML($cat_title)). 
    186 '</label></p>'; 
     186'</p>'; 
    187187if (!$cat_id) 
    188188{ 
     
    202202echo 
    203203'<div class="lockable">'. 
    204 '<p><label for="cat_url">'.__('URL:').' '.form::field('cat_url',40,255,html::escapeHTML($cat_url)). 
    205 '</label></p>'. 
     204'<p><label for="cat_url">'.__('URL:').'</label> ' 
     205.form::field('cat_url',40,255,html::escapeHTML($cat_url)). 
     206'</p>'. 
    206207'<p class="form-note warn" id="note-cat-url">'. 
    207208__('Warning: If you set the URL manually, it may conflict with another category.').'</p>'. 
     
    216217$core->formNonce(). 
    217218'</p>'. 
    218 '</fieldset>'. 
    219219'</form>'; 
    220220 
     
    222222{ 
    223223     echo 
    224      '<h3>'.__('Move this category').'</h3>'. 
     224     '<h3 class="border-top">'.__('Move this category').'</h3>'. 
    225225     '<div class="two-cols">'. 
    226226     '<div class="col">'. 
     
    228228     '<form action="category.php" method="post">'. 
    229229     '<fieldset><legend>'.__('Category parent').'</legend>'. 
    230      '<p><label for="cat_parent" class="classic">'.__('Parent:').' '. 
    231      form::combo('cat_parent',$allowed_parents,$cat_parent).'</label></p>'. 
     230     '<p><label for="cat_parent" class="classic">'.__('Parent:').'</label> '. 
     231     form::combo('cat_parent',$allowed_parents,$cat_parent).'</p>'. 
    232232     '<p><input type="submit" accesskey="s" value="'.__('Save').'" />'. 
    233233     form::hidden(array('id'),$cat_id).$core->formNonce().'</p>'. 
  • admin/comment.php

    r1358 r1399  
    203203     echo 
    204204     '<form action="comment.php" method="post" id="comment-form">'. 
    205      '<p>'.__('IP address:').'<br /> '. 
     205     '<div class="fieldset">'. 
     206     '<h3>'.__('Information collected').'</h3>'. 
     207     '<p>'.__('IP address:').' '. 
    206208     '<a href="comments.php?ip='.$comment_ip.'">'.$comment_ip.'</a></p>'. 
    207209      
    208      '<p>'.__('Date:').'<br /> '. 
     210     '<p>'.__('Date:').' '. 
    209211     dt::dt2str(__('%Y-%m-%d %H:%M'),$comment_dt).'</p>'. 
    210       
    211      '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr>'.__('Author:'). 
     212     '</div>'. 
     213 
     214     '<h3>'.__('Comment submitted').'</h3>'.  
     215     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr>'.__('Author:').'</label>'. 
    212216     form::field('comment_author',30,255,html::escapeHTML($comment_author)). 
    213      '</label></p>'. 
    214       
    215      '<p><label for="comment_email">'.__('Email:'). 
     217     '</p>'. 
     218      
     219     '<p><label for="comment_email">'.__('Email:').'</label>'. 
    216220     form::field('comment_email',30,255,html::escapeHTML($comment_email)). 
    217      $comment_mailto. 
    218      '</label></p>'. 
    219       
    220      '<p><label for="comment_site">'.__('Web site:'). 
     221     '<span>'.$comment_mailto.'</span>'. 
     222     '</p>'. 
     223      
     224     '<p><label for="comment_site">'.__('Web site:').'</label>'. 
    221225     form::field('comment_site',30,255,html::escapeHTML($comment_site)). 
    222      '</label></p>'. 
    223       
    224      '<p><label for="comment_status">'.__('Status:'). 
     226     '</p>'. 
     227      
     228     '<p><label for="comment_status">'.__('Status:').'</label>'. 
    225229     form::combo('comment_status',$status_combo,$comment_status,'','',!$can_publish). 
    226      '</label></p>'. 
     230     '</p>'. 
    227231      
    228232     # --BEHAVIOR-- adminAfterCommentDesc 
  • admin/index.php

    r1379 r1399  
    325325          '<form id="quick-entry" action="post.php" method="post">'. 
    326326          '<fieldset><legend>'.__('New entry').'</legend>'. 
    327           '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:'). 
     327          '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 
    328328          form::field('post_title',20,255,'','maximal'). 
    329           '</label></p>'. 
     329          '</p>'. 
    330330          '<p class="area"><label class="required" '. 
    331331          'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 
    332332          form::textarea('post_content',50,7). 
    333333          '</p>'. 
    334           '<p><label for="cat_id" class="classic">'.__('Category:').' '. 
    335           form::combo('cat_id',$categories_combo).'</label></p>'. 
     334          '<p><label for="cat_id" class="classic">'.__('Category:').'</label> '. 
     335          form::combo('cat_id',$categories_combo).'</p>'. 
    336336          '<p><input type="submit" value="'.__('Save').'" name="save" /> '. 
    337337          ($core->auth->check('publish',$core->blog->id) 
  • admin/install/index.php

    r1280 r1399  
    320320     '<form action="index.php" method="post">'. 
    321321     '<fieldset><legend>'.__('User information').'</legend>'. 
    322      '<p><label for="u_firstname">'.__('First Name:').' '. 
    323      form::field('u_firstname',30,255,html::escapeHTML($u_firstname)).'</label></p>'. 
    324      '<p><label for="u_name">'.__('Last Name:').' '. 
    325      form::field('u_name',30,255,html::escapeHTML($u_name)).'</label></p>'. 
    326      '<p><label for="u_email">'.__('Email:').' '. 
    327      form::field('u_email',30,255,html::escapeHTML($u_email)).'</label></p>'. 
     322     '<p><label for="u_firstname">'.__('First Name:').'</label> '. 
     323     form::field('u_firstname',30,255,html::escapeHTML($u_firstname)).'</p>'. 
     324     '<p><label for="u_name">'.__('Last Name:').'</label> '. 
     325     form::field('u_name',30,255,html::escapeHTML($u_name)).'</p>'. 
     326     '<p><label for="u_email">'.__('Email:').'</label> '. 
     327     form::field('u_email',30,255,html::escapeHTML($u_email)).'</p>'. 
    328328     '</fieldset>'. 
    329329      
    330330     '<fieldset><legend>'.__('Username and password').'</legend>'. 
    331      '<p><label for="u_login" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Username:').' '. 
    332      form::field('u_login',30,32,html::escapeHTML($u_login)).'</label></p>'. 
    333      '<p><label for="u_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Password:').' '. 
    334      form::password('u_pwd',30,255).'</label></p>'. 
    335      '<p><label for="u_pwd2" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Confirm password:').' '. 
    336      form::password('u_pwd2',30,255).'</label></p>'. 
     331     '<p><label for="u_login" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Username:').'</label> '. 
     332     form::field('u_login',30,32,html::escapeHTML($u_login)).'</p>'. 
     333     '<p><label for="u_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Password:').'</label> '. 
     334     form::password('u_pwd',30,255).'</p>'. 
     335     '<p><label for="u_pwd2" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Confirm password:').'</label> '. 
     336     form::password('u_pwd2',30,255).'</p>'. 
    337337     '</fieldset>'. 
    338338      
  • admin/install/wizard.php

    r1179 r1399  
    178178 
    179179'<form action="wizard.php" method="post">'. 
    180 '<p><label class="required" for="DBDRIVER"><abbr title="'.__('Required field').'">*</abbr> '.__('Database type:').' '. 
    181 form::combo('DBDRIVER',array('MySQL'=>'mysql','PostgreSQL'=>'pgsql'),$DBDRIVER).'</label></p>'. 
    182 '<p><label for="DBHOST">'.__('Database Host Name:').' '. 
    183 form::field('DBHOST',30,255,html::escapeHTML($DBHOST)).'</label></p>'. 
    184 '<p><label for="DBNAME">'.__('Database Name:').' '. 
    185 form::field('DBNAME',30,255,html::escapeHTML($DBNAME)).'</label></p>'. 
    186 '<p><label for="DBUSER">'.__('Database User Name:').' '. 
    187 form::field('DBUSER',30,255,html::escapeHTML($DBUSER)).'</label></p>'. 
    188 '<p><label for="DBPASSWORD">'.__('Database Password:').' '. 
    189 form::password('DBPASSWORD',30,255).'</label></p>'. 
    190 '<p><label for="DBPREFIX" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Database Tables Prefix:').' '. 
    191 form::field('DBPREFIX',30,255,html::escapeHTML($DBPREFIX)).'</label></p>'. 
     180'<p><label class="required" for="DBDRIVER"><abbr title="'.__('Required field').'">*</abbr> '.__('Database type:').'</label> '. 
     181form::combo('DBDRIVER',array('MySQL'=>'mysql','PostgreSQL'=>'pgsql'),$DBDRIVER).'</p>'. 
     182'<p><label for="DBHOST">'.__('Database Host Name:').'</label> '. 
     183form::field('DBHOST',30,255,html::escapeHTML($DBHOST)).'</p>'. 
     184'<p><label for="DBNAME">'.__('Database Name:').'</label> '. 
     185form::field('DBNAME',30,255,html::escapeHTML($DBNAME)).'</p>'. 
     186'<p><label for="DBUSER">'.__('Database User Name:').'</label> '. 
     187form::field('DBUSER',30,255,html::escapeHTML($DBUSER)).'</p>'. 
     188'<p><label for="DBPASSWORD">'.__('Database Password:').'</label> '. 
     189form::password('DBPASSWORD',30,255).'</p>'. 
     190'<p><label for="DBPREFIX" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Database Tables Prefix:').'</label> '. 
     191form::field('DBPREFIX',30,255,html::escapeHTML($DBPREFIX)).'</p>'. 
    192192 
    193193'<p><input type="submit" value="'.__('Continue').'" /></p>'. 
  • admin/langs.php

    r1358 r1399  
    227227     '<p>'.sprintf(__('You can download and install a additional language directly from Dotclear.net. '. 
    228228     'Proposed languages are based on your version: %s.'),'<strong>'.DC_VERSION.'</strong>').'</p>'. 
    229      '<p class="field"><label for="pkg_url" class="classic">'.__('Language:').' '. 
    230      form::combo(array('pkg_url'),$dc_langs_combo).'</label></p>'. 
    231      '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').' '. 
    232      form::password(array('your_pwd','your_pwd1'),20,255).'</label></p>'. 
    233      '<input type="submit" value="'.__('Install language').'" />'. 
     229     '<p class="field"><label for="pkg_url" class="classic">'.__('Language:').'</label> '. 
     230     form::combo(array('pkg_url'),$dc_langs_combo).'</p>'. 
     231     '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
     232     form::password(array('your_pwd','your_pwd1'),20,255).'</p>'. 
     233     '<p><input type="submit" value="'.__('Install language').'" />'. 
    234234     $core->formNonce(). 
    235      '</fieldset>'. 
     235     '</p></fieldset>'. 
    236236     '</form>'; 
    237237} 
     
    245245     '<legend>'.__('Upload a zip file').'</legend>'. 
    246246     '<p>'.__('You can install languages by uploading zip files.').'</p>'. 
    247      '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Language zip file:').' '. 
    248      '<input type="file" id="pkg_file" name="pkg_file" /></label></p>'. 
    249      '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').' '. 
    250      form::password(array('your_pwd','your_pwd2'),20,255).'</label></p>'. 
    251      '<input type="submit" name="upload_pkg" value="'.__('Upload language').'" />'. 
     247     '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Language zip file:').'</label> '. 
     248     '<input type="file" id="pkg_file" name="pkg_file" /></p>'. 
     249     '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
     250     form::password(array('your_pwd','your_pwd2'),20,255).'</p>'. 
     251     '<p><input type="submit" name="upload_pkg" value="'.__('Upload language').'" />'. 
    252252     $core->formNonce(). 
    253      '</fieldset>'. 
     253     '</p></fieldset>'. 
    254254     '</form>'; 
    255255} 
  • admin/media.php

    r1358 r1399  
    317317     echo 
    318318     '<form action="media.php" method="get">'. 
    319      '<p><label for="file_sort" class="classic">'.__('Sort files:').' '. 
    320      form::combo('file_sort',$sort_combo,$file_sort).'</label>'. 
     319     '<p><label for="file_sort" class="classic">'.__('Sort files:').'</label> '. 
     320     form::combo('file_sort',$sort_combo,$file_sort). 
    321321     form::hidden(array('popup'),$popup). 
    322322     form::hidden(array('post_id'),$post_id). 
     
    399399     '<legend>'.__('New directory').'</legend>'. 
    400400     $core->formNonce(). 
    401      '<p><label for="newdir">'.__('Directory Name:'). 
    402      form::field(array('newdir','newdir'),35,255).'</label></p>'. 
     401     '<p><label for="newdir">'.__('Directory Name:').'</label>'. 
     402     form::field(array('newdir','newdir'),35,255).'</p>'. 
    403403     '<p><input type="submit" value="'.__('Create').'" />'. 
    404404     form::hidden(array('d'),html::escapeHTML($d)).'</p>'. 
  • admin/media_item.php

    r1358 r1399  
    516516          __('This will extract archive in current directory and will overwrite existing files or directory.').'</li>'. 
    517517          '</ul>'. 
    518           '<p><label for="inflate_mode" class="classic">'.__('Extract mode:').' '. 
    519           form::combo('inflate_mode',$inflate_combo,'new').'</label> '. 
     518          '<p><label for="inflate_mode" class="classic">'.__('Extract mode:').'</label> '. 
     519          form::combo('inflate_mode',$inflate_combo,'new'). 
    520520          '<input type="submit" name="unzip" value="'.__('Extract').'" />'. 
    521521          form::hidden(array('id'),$id). 
     
    527527     '<form class="clear" action="'.html::escapeURL($page_url).'" method="post">'. 
    528528     '<fieldset><legend>'.__('Change media properties').'</legend>'. 
    529      '<p><label for="media_file">'.__('File name:'). 
    530      form::field('media_file',30,255,html::escapeHTML($file->basename)).'</label></p>'. 
    531      '<p><label for="media_title">'.__('File title:'). 
    532      form::field('media_title',30,255,html::escapeHTML($file->media_title)).'</label></p>'. 
    533      '<p><label for="media_dt">'.__('File date:'). 
    534      form::field('media_dt',16,16,html::escapeHTML($file->media_dtstr)).'</label></p>'. 
     529     '<p><label for="media_file">'.__('File name:').'</label>'. 
     530     form::field('media_file',30,255,html::escapeHTML($file->basename)).'</p>'. 
     531     '<p><label for="media_title">'.__('File title:').'</label>'. 
     532     form::field('media_title',30,255,html::escapeHTML($file->media_title)).'</p>'. 
     533     '<p><label for="media_dt">'.__('File date:').'</label>'. 
     534     form::field('media_dt',16,16,html::escapeHTML($file->media_dtstr)).'</p>'. 
    535535     '<p><label for="media_private" class="classic">'.form::checkbox('media_private',1,$file->media_priv).' '. 
    536536     __('Private').'</label></p>'. 
    537      '<p><label for="media_path">'.__('New directory:'). 
    538      form::combo('media_path',$dirs_combo,dirname($file->relname)).'</label></p>'. 
     537     '<p><label for="media_path">'.__('New directory:').'</label>'. 
     538     form::combo('media_path',$dirs_combo,dirname($file->relname)).'</p>'. 
    539539     '<p><input type="submit" accesskey="s" value="'.__('Save').'" />'. 
    540540     form::hidden(array('id'),$id). 
  • admin/plugins.php

    r1358 r1399  
    357357     '<fieldset>'. 
    358358     '<legend>'.__('Upload a zip file').'</legend>'. 
    359      '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Plugin zip file:').' '. 
    360      '<input type="file" id="pkg_file" name="pkg_file" /></label></p>'. 
    361      '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').' '. 
    362      form::password(array('your_pwd','your_pwd1'),20,255).'</label></p>'. 
    363      '<input type="submit" name="upload_pkg" value="'.__('Upload plugin').'" />'. 
     359     '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Plugin zip file:').'</label> '. 
     360     '<input type="file" id="pkg_file" name="pkg_file" /></p>'. 
     361     '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
     362     form::password(array('your_pwd','your_pwd1'),20,255).'</p>'. 
     363     '<p><input type="submit" name="upload_pkg" value="'.__('Upload plugin').'" />'. 
    364364     $core->formNonce(). 
    365      '</fieldset>'. 
     365     '</p></fieldset>'. 
    366366     '</form>'; 
    367367      
     
    371371     '<fieldset>'. 
    372372     '<legend>'.__('Download a zip file').'</legend>'. 
    373      '<p class="field"><label for="pkg_url" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Plugin zip file URL:').' '. 
    374      form::field(array('pkg_url','pkg_url'),40,255).'</label></p>'. 
    375      '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').' '. 
    376      form::password(array('your_pwd','your_pwd2'),20,255).'</label></p>'. 
     373     '<p class="field"><label for="pkg_url" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Plugin zip file URL:').'</label> '. 
     374     form::field(array('pkg_url','pkg_url'),40,255).'</p>'. 
     375     '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
     376     form::password(array('your_pwd','your_pwd2'),20,255).'</p>'. 
    377377     '<input type="submit" name="fetch_pkg" value="'.__('Download plugin').'" />'. 
    378378     $core->formNonce(). 
  • admin/popup_link.php

    r1179 r1399  
    4040echo 
    4141'<form id="link-insert-form" action="#" method="get">'. 
    42 '<p><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Link URL:').' '. 
    43 form::field('href',35,512,html::escapeHTML($href)).'</label></p>'. 
    44 '<p><label>'.__('Link title:').' '.  
    45 form::field('title',35,512,html::escapeHTML($title)).'</label></p>'.  
    46 '<p><label>'.__('Link language:').' '. 
     42'<p><label class="required" for="href"><abbr title="'.__('Required field').'">*</abbr> '.__('Link URL:').'</label> '. 
     43form::field('href',35,512,html::escapeHTML($href)).'</p>'. 
     44'<p><label for="title">'.__('Link title:').'</label> '.  
     45form::field('title',35,512,html::escapeHTML($title)).'</p>'.  
     46'<p><label for="hreflang">'.__('Link language:').'</label> '. 
    4747form::combo('hreflang',$lang_combo,$hreflang). 
    48 '</label></p>'. 
     48'</p>'. 
    4949 
    5050'</form>'. 
  • admin/popup_posts.php

    r1179 r1399  
    5353 
    5454echo '<form action="popup_posts.php" method="post">'. 
    55      '<p><label for"type" class="classic">'.__('Entry type:').' '.form::combo('type',$type_combo,$type).'</label></p>'. 
    56      $core->formNonce(). 
     55     '<p><label for"type" class="classic">'.__('Entry type:').'</label> '.form::combo('type',$type_combo,$type).''. 
     56     $core->formNonce().'</p>'. 
    5757     '<noscript><div><input type="submit" value="'.__('Ok').'" /></div></noscript>'. 
    5858     '</form>'; 
    5959 
    6060echo '<form action="popup_posts.php" method="get">'. 
    61      '<p><label for="q" class="classic">'.__('Search entry:').' '.form::field('q',30,255,html::escapeHTML($q)).'</label> '. 
    62      ' <input type="submit" value="'.__('Search').'" /></p>'. 
     61     '<p><label for="q" class="classic">'.__('Search entry:').'</label> '.form::field('q',30,255,html::escapeHTML($q)). 
     62     ' <input type="submit" value="'.__('Search').'" />'. 
    6363     form::hidden('type',html::escapeHTML($type)). 
    64      '</form>'; 
     64     '</p></form>'; 
    6565 
    6666try { 
  • admin/posts_actions.php

    r1179 r1399  
    262262     echo 
    263263     '<form action="posts_actions.php" method="post">'. 
    264      '<p><label for="new_cat_id" class="classic">'.__('Category:').' '. 
    265      form::combo('new_cat_id',$categories_combo,''). 
    266      '</label> '; 
     264     '<p><label for="new_cat_id" class="classic">'.__('Category:').'</label> '. 
     265     form::combo('new_cat_id',$categories_combo,''); 
    267266      
    268267     echo 
     
    295294     echo 
    296295     '<form action="posts_actions.php" method="post">'. 
    297      '<p><label for="new_lang" class="classic">'.__('Entry lang:').' '. 
    298      form::combo('new_lang',$lang_combo,''). 
    299      '</label> '; 
     296     '<p><label for="new_lang" class="classic">'.__('Entry lang:').'</label> '. 
     297     form::combo('new_lang',$lang_combo,''); 
    300298      
    301299     echo 
     
    313311     echo 
    314312     '<form action="posts_actions.php" method="post">'. 
    315      '<p><label for="new_auth_id" class="classic">'.__('Author ID:').' '. 
    316      form::field('new_auth_id',20,255). 
    317      '</label> '; 
     313     '<p><label for="new_auth_id" class="classic">'.__('Author ID:').'</label> '. 
     314     form::field('new_auth_id',20,255); 
    318315      
    319316     echo 
  • admin/preferences.php

    r1358 r1399  
    384384'<div class="two-cols">'. 
    385385'<div class="col">'. 
    386 '<p><label for="user_name">'.__('Last Name:'). 
    387 form::field('user_name',20,255,html::escapeHTML($user_name)).'</label></p>'. 
    388  
    389 '<p><label for="user_firstname">'.__('First Name:'). 
    390 form::field('user_firstname',20,255,html::escapeHTML($user_firstname)).'</label></p>'. 
    391  
    392 '<p><label for="user_displayname">'.__('Display name:'). 
    393 form::field('user_displayname',20,255,html::escapeHTML($user_displayname)).'</label></p>'. 
    394  
    395 '<p><label for="user_email">'.__('Email:'). 
    396 form::field('user_email',20,255,html::escapeHTML($user_email)).'</label></p>'. 
    397  
    398 '<p><label for="user_url">'.__('URL:'). 
    399 form::field('user_url',30,255,html::escapeHTML($user_url)).'</label></p>'. 
     386'<p><label for="user_name">'.__('Last Name:').'</label>'. 
     387form::field('user_name',20,255,html::escapeHTML($user_name)).'</p>'. 
     388 
     389'<p><label for="user_firstname">'.__('First Name:').'</label>'. 
     390form::field('user_firstname',20,255,html::escapeHTML($user_firstname)).'</p>'. 
     391 
     392'<p><label for="user_displayname">'.__('Display name:').'</label>'. 
     393form::field('user_displayname',20,255,html::escapeHTML($user_displayname)).'</p>'. 
     394 
     395'<p><label for="user_email">'.__('Email:').'</label>'. 
     396form::field('user_email',20,255,html::escapeHTML($user_email)).'</p>'. 
     397 
     398'<p><label for="user_url">'.__('URL:').'</label>'. 
     399form::field('user_url',30,255,html::escapeHTML($user_url)).'</p>'. 
    400400 
    401401'</div>'. 
     
    403403'<div class="col">'. 
    404404 
    405 '<p><label for="user_lang">'.__('User language:'). 
    406 form::combo('user_lang',$lang_combo,$user_lang,'l10n').'</label></p>'. 
    407  
    408 '<p><label for="user_tz">'.__('User timezone:'). 
    409 form::combo('user_tz',dt::getZones(true,true),$user_tz).'</label></p>'. 
     405'<p><label for="user_lang">'.__('User language:').'</label>'. 
     406form::combo('user_lang',$lang_combo,$user_lang,'l10n').'</p>'. 
     407 
     408'<p><label for="user_tz">'.__('User timezone:').'</label>'. 
     409form::combo('user_tz',dt::getZones(true,true),$user_tz).'</p>'. 
    410410 
    411411'</div>'. 
     
    420420     '<legend>'.__('Change your password').'</legend>'. 
    421421      
    422      '<p><label for="new_pwd">'.__('New password:'). 
    423      form::password('new_pwd',20,255).'</label></p>'. 
     422     '<p><label for="new_pwd">'.__('New password:').'</label>'. 
     423     form::password('new_pwd',20,255).'</p>'. 
    424424      
    425      '<p><label for="new_pwd_c">'.__('Confirm password:'). 
    426      form::password('new_pwd_c',20,255).'</label></p>'. 
     425     '<p><label for="new_pwd_c">'.__('Confirm password:').'</label>'. 
     426     form::password('new_pwd_c',20,255).'</p>'. 
    427427     '</fieldset>'. 
    428428      
    429429     '<p>'.__('If you have changed this user email or password you must provide your current password to save these modifications.').'</p>'. 
    430      '<p><label for="cur_pwd">'.__('Your password:'). 
    431      form::password('cur_pwd',20,255).'</label></p>'; 
     430     '<p><label for="cur_pwd">'.__('Your password:').'</label>'. 
     431     form::password('cur_pwd',20,255).'</p>'; 
    432432} 
    433433 
     
    447447'<fieldset><legend>'.__('My options').'</legend>'. 
    448448 
    449 '<p><label for="user_post_format">'.__('Preferred format:'). 
    450 form::combo('user_post_format',$formaters_combo,$user_options['post_format']).'</label></p>'. 
    451  
    452 '<p><label for="user_post_status">'.__('Default entry status:'). 
    453 form::combo('user_post_status',$status_combo,$user_post_status).'</label></p>'. 
    454  
    455 '<p><label for="user_edit_size">'.__('Entry edit field height:'). 
    456 form::field('user_edit_size',5,4,(integer) $user_options['edit_size']).'</label></p>'. 
     449'<p><label for="user_post_format">'.__('Preferred format:').'</label>'. 
     450form::combo('user_post_format',$formaters_combo,$user_options['post_format']).'</p>'. 
     451 
     452'<p><label for="user_post_status">'.__('Default entry status:').'</label>'. 
     453form::combo('user_post_status',$status_combo,$user_post_status).'</p>'. 
     454 
     455'<p><label for="user_edit_size">'.__('Entry edit field height:').'</label>'. 
     456form::field('user_edit_size',5,4,(integer) $user_options['edit_size']).'</p>'. 
    457457 
    458458'<p><label for="user_wysiwyg" class="classic">'. 
     
    470470if (count($iconsets_combo) > 1) { 
    471471     echo  
    472           '<p><label for="user_ui_iconset">'.__('Iconset:'). 
    473           form::combo('user_ui_iconset',$iconsets_combo,$user_ui_iconset).'</label></p>'; 
     472          '<p><label for="user_ui_iconset">'.__('Iconset:').'</label>'. 
     473          form::combo('user_ui_iconset',$iconsets_combo,$user_ui_iconset).'</p>'; 
    474474} else { 
    475475     form::hidden('user_ui_iconset',''); 
  • admin/style/default.css

    r1396 r1399  
    260260/* -------------------------------------------------------------- layout - onglets */ 
    261261.part-tabs ul { 
    262      padding: .5em 0 .3em 0; 
    263      margin-left: 1em; 
     262     padding: .5em 0 .3em 1.2rem; 
    264263     border-bottom: 1px solid #ddd; 
    265264} 
     
    276275     text-decoration: none; 
    277276     color: #333; 
    278      background-color:#ededed; 
     277     background-color:#eef; 
    279278} 
    280279.part-tabs li a:hover, .part-tabs li a:focus { 
     
    539538#entry-content { 
    540539     margin-right: 19em; 
    541      margin-left: 1.2rem; 
     540     margin-left: 0; 
     541} 
     542.multi-part { 
     543     padding-left: 1.2rem; 
    542544} 
    543545#entry-content label { 
     
    980982} 
    981983.nav_prevnext a, a.back { 
    982      border: 1px solid #eee; 
     984     border: 1px solid #ddd; 
    983985     padding: .2rem 2rem; 
    984986     border-radius: 1rem; 
    985      background-color: #eef; 
     987     background-color: #eee; 
    986988} 
    987989a.back:before { 
     
    14391441input[type=submit].delete { 
    14401442     color: #c00; 
    1441      padding-bottom: .1em; 
     1443     padding-bottom: .2rem; 
    14421444} 
    14431445#entry-content .delete { 
  • admin/style/jsToolBar/jsToolBar.css

    r1394 r1399  
    1212.jstEditor textarea { 
    1313  width: 99%; 
    14   padding: 1rem 0 1rem 1%; 
     14  padding: 1rem 0 0 1%; 
    1515} 
    1616.jstHandle { 
  • admin/trackbacks.php

    r1358 r1399  
    127127'<h3>'.__('Ping blogs').'</h3>'. 
    128128'<form action="trackbacks.php" id="trackback-form" method="post">'. 
    129 '<p><label for="tb_urls" class="area">'.__('URLs to ping:'). 
     129'<p><label for="tb_urls" class="area">'.__('URLs to ping:').'</label>'. 
    130130form::textarea('tb_urls',60,5,$tb_urls). 
    131 '</label></p>'. 
     131'</p>'. 
    132132 
    133 '<p><label for="tb_excerpt" class="area">'.__('Send excerpt:'). 
    134 form::textarea('tb_excerpt',60,3,$tb_excerpt).'</label></p>'. 
     133'<p><label for="tb_excerpt" class="area">'.__('Send excerpt:').'</label>'. 
     134form::textarea('tb_excerpt',60,3,$tb_excerpt).'</p>'. 
    135135 
    136136'<p>'.form::hidden('id',$id). 
  • admin/user.php

    r1358 r1399  
    203203'<div class="two-cols">'. 
    204204'<div class="col">'. 
    205 '<p><label for="user_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Username:').' '. 
     205'<p><label for="user_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Username:').'</label> '. 
    206206form::field('user_id',20,255,html::escapeHTML($user_id)). 
    207 '</label></p>'. 
     207'</p>'. 
    208208'<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p>'. 
    209209 
    210210'<p><label for="new_pwd" '.($user_id != '' ? '' : 'class="required"').'>'. 
    211211($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> '). 
    212 ($user_id != '' ? __('New password:') : __('Password:')).' '. 
     212($user_id != '' ? __('New password:') : __('Password:')).'</label> '. 
    213213form::password('new_pwd',20,255). 
    214 '</label></p>'. 
     214'</p>'. 
    215215'<p class="form-note">'.__('Password must contain at least 6 characters.').'</p>'. 
    216216 
    217217'<p><label for="new_pwd_c" '.($user_id != '' ? '' : 'class="required"').'>'. 
    218 ($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> ').__('Confirm password:').' '. 
     218($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> ').__('Confirm password:').'</label> '. 
    219219form::password('new_pwd_c',20,255). 
    220 '</label></p>'. 
    221  
    222 '<p><label for="user_name">'.__('Last Name:').' '. 
     220'</p>'. 
     221 
     222'<p><label for="user_name">'.__('Last Name:').'</label> '. 
    223223form::field('user_name',20,255,html::escapeHTML($user_name)). 
    224 '</label></p>'. 
    225  
    226 '<p><label for="user_firstname">'.__('First Name:').' '. 
     224'</p>'. 
     225 
     226'<p><label for="user_firstname">'.__('First Name:').'</label> '. 
    227227form::field('user_firstname',20,255,html::escapeHTML($user_firstname)). 
    228228'</label></p>'. 
     
    230230'<p><label for="user_displayname">'.__('Display name:').' '. 
    231231form::field('user_displayname',20,255,html::escapeHTML($user_displayname)). 
    232 '</label></p>'. 
    233  
    234 '<p><label for="user_email">'.__('Email:').' '. 
     232'</p>'. 
     233 
     234'<p><label for="user_email">'.__('Email:').'</label> '. 
    235235form::field('user_email',20,255,html::escapeHTML($user_email)). 
    236 '</label></p>'. 
     236'</p>'. 
    237237'<p class="form-note">'.__('Mandatory for password recovering procedure.').'</p>'. 
    238238'</div>'. 
    239239 
    240240'<div class="col">'. 
    241 '<p><label for="user_url">'.__('URL:').' '. 
     241'<p><label for="user_url">'.__('URL:').'</label> '. 
    242242form::field('user_url',30,255,html::escapeHTML($user_url)). 
    243 '</label></p>'. 
    244 '<p><label for="user_post_format">'.__('Preferred format:').' '. 
     243'</p>'. 
     244'<p><label for="user_post_format">'.__('Preferred format:').'</label> '. 
    245245form::combo('user_post_format',$formaters_combo,$user_options['post_format']). 
    246 '</label></p>'. 
    247  
    248 '<p><label for="user_post_status">'.__('Default entry status:').' '. 
     246'</p>'. 
     247 
     248'<p><label for="user_post_status">'.__('Default entry status:').'</label> '. 
    249249form::combo('user_post_status',$status_combo,$user_post_status). 
    250 '</label></p>'. 
    251  
    252 '<p><label for="user_edit_size">'.__('Entry edit field height:').' '. 
     250'</p>'. 
     251 
     252'<p><label for="user_edit_size">'.__('Entry edit field height:').'</label> '. 
    253253form::field('user_edit_size',5,4,(integer) $user_options['edit_size']). 
    254 '</label></p>'. 
    255  
    256 '<p><label for="user_lang">'.__('User language:').' '. 
     254'</p>'. 
     255 
     256'<p><label for="user_lang">'.__('User language:').'</label> '. 
    257257form::combo('user_lang',$lang_combo,$user_lang,'l10n'). 
    258 '</label></p>'. 
    259  
    260 '<p><label for="user_tz">'.__('User timezone:').' '. 
     258'</p>'. 
     259 
     260'<p><label for="user_tz">'.__('User timezone:').'</label> '. 
    261261form::combo('user_tz',dt::getZones(true,true),$user_tz). 
    262 '</label></p>'; 
     262'</p>'; 
    263263 
    264264if ($core->auth->allowPassChange()) { 
     
    283283echo 
    284284'<p><label for="your_pwd" '.($user_id != '' ? '' : 'class="required"').'>'. 
    285 ($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> ').__('Your password:'). 
    286 form::password('your_pwd',20,255).'</label></p>'. 
     285($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> ').__('Your password:').'</label>'. 
     286form::password('your_pwd',20,255).'</p>'. 
    287287'<p class="clear"><input type="submit" name="save" accesskey="s" value="'.__('Save').'" />'. 
    288288($user_id != '' ? '' : ' <input type="submit" name="saveplus" value="'.__('Save and create another').'" />'). 
  • admin/users_actions.php

    r1358 r1399  
    285285     echo 
    286286     '<fieldset><legend>'.__('Validate permissions').'</legend>'. 
    287      '<p><label for="your_pwd">'.__('Your password:'). 
    288      form::password('your_pwd',20,255).'</label></p>'. 
     287     '<p><label for="your_pwd">'.__('Your password:').'</label>'. 
     288     form::password('your_pwd',20,255).'</p>'. 
    289289     '</fieldset>'. 
    290290     '<p><input type="submit" accesskey="s" value="'.__('Save').'" />'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map