Dotclear


Ignore:
Timestamp:
04/30/11 10:28:24 (14 years ago)
Author:
kozlika
Branch:
userprefs
Message:

Corrections formulaires, étape 4. Fin pour le core ! \o/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r3 r70  
    366366      
    367367     echo 
    368      '<p><label>'.__('Category:'). 
     368     '<p><label for="cat_id">'.__('Category:'). 
    369369     form::combo('cat_id',$categories_combo,$cat_id,'maximal',3). 
    370370     '</label></p>'. 
    371371      
    372      '<p><label>'.__('Entry status:'). 
     372     '<p><label for="post_status">'.__('Entry status:'). 
    373373     form::combo('post_status',$status_combo,$post_status,'',3,!$can_publish). 
    374374     '</label></p>'. 
    375375      
    376      '<p><label>'.__('Published on:'). 
     376     '<p><label for="post_dt">'.__('Published on:'). 
    377377     form::field('post_dt',16,16,$post_dt,'',3). 
    378378     '</label></p>'. 
    379379      
    380      '<p><label>'.__('Text formating:'). 
     380     '<p><label for="post_format">'.__('Text formating:'). 
    381381     form::combo('post_format',$formaters_combo,$post_format,'',3). 
    382382     ($post_id && $post_format != 'xhtml' ? '<a id="convert-xhtml" href="post.php?id='.$post_id.'&amp;xconv=1">'.__('Convert to XHTML').'</a>' : ''). 
    383383     '</label></p>'. 
    384384      
    385      '<p><label class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment,'',3).' '. 
     385     '<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment,'',3).' '. 
    386386     __('Accept comments').'</label></p>'. 
    387      '<p><label class="classic">'.form::checkbox('post_open_tb',1,$post_open_tb,'',3).' '. 
     387     '<p><label for="post_open_tb" class="classic">'.form::checkbox('post_open_tb',1,$post_open_tb,'',3).' '. 
    388388     __('Accept trackbacks').'</label></p>'. 
    389      '<p><label class="classic">'.form::checkbox('post_selected',1,$post_selected,'',3).' '. 
     389     '<p><label for="post_selected" class="classic">'.form::checkbox('post_selected',1,$post_selected,'',3).' '. 
    390390     __('Selected entry').'</label></p>'. 
    391391      
    392      '<p><label>'.__('Entry lang:'). 
     392     '<p><label for="post_lang">'.__('Entry lang:'). 
    393393     form::combo('post_lang',$lang_combo,$post_lang,'',5). 
    394394     '</label></p>'. 
    395395      
    396      '<p><label>'.__('Entry password:'). 
     396     '<p><label for="post_password">'.__('Entry password:'). 
    397397     form::field('post_password',10,32,html::escapeHTML($post_password),'maximal',3). 
    398398     '</label></p>'. 
    399399      
    400400     '<div class="lockable">'. 
    401      '<p><label>'.__('Basename:'). 
     401     '<p><label for="post_url">'.__('Basename:'). 
    402402     form::field('post_url',10,255,html::escapeHTML($post_url),'maximal',3). 
    403403     '</label></p>'. 
     
    452452      
    453453     echo 
    454      '<p class="col"><label class="required" title="'.__('Required field').'">'.__('Title:'). 
     454     '<p class="col"><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:'). 
    455455     form::field('post_title',20,255,html::escapeHTML($post_title),'maximal',2). 
    456456     '</label></p>'. 
     
    460460     '</p>'. 
    461461      
    462      '<p class="area"><label class="required" title="'.__('Required field').'" '. 
    463      'for="post_content">'.__('Content:').'</label> '. 
     462     '<p class="area"><label class="required" '. 
     463     'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 
    464464     form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content),'',2). 
    465465     '</p>'. 
    466466      
    467      '<p class="area" id="notes-area"><label>'.__('Notes:').'</label>'. 
     467     '<p class="area" id="notes-area"><label for="post_notes">'.__('Notes:').'</label>'. 
    468468     form::textarea('post_notes',50,5,html::escapeHTML($post_notes),'',2). 
    469469     '</p>'; 
     
    486486      
    487487     if ($post_id && $post->post_status == 1) { 
    488           echo '<br /><p><a href="trackbacks.php?id='.$post_id.'" class="multi-part">'. 
     488          echo '<p><a href="trackbacks.php?id='.$post_id.'" class="multi-part">'. 
    489489          __('Ping blogs').'</a></p>'; 
    490490     } 
     
    538538      
    539539     if (!$trackbacks->isEmpty()) { 
    540           showComments($trackbacks,$has_action); 
     540          showComments($trackbacks,$has_action,true); 
    541541     } else { 
    542542          echo '<p>'.__('No trackback').'</p>'; 
     
    555555          '<p class="col checkboxes-helpers"></p>'. 
    556556           
    557           '<p class="col right">'.__('Selected comments action:').' '. 
     557          '<p class="col right"><label for="action" class="inline">'.__('Selected comments action:').'</label> '. 
    558558          form::combo('action',$combo_action). 
    559559          form::hidden('redir','post.php?id='.$post_id.'&amp;co=1'). 
     
    577577     '<form action="comment.php" method="post" id="comment-form">'. 
    578578     '<fieldset class="constrained">'. 
    579      '<p><label class="required" title="'.__('Required field').'">'.__('Name:'). 
     579     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:'). 
    580580     form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 
    581581     '</label></p>'. 
    582582      
    583      '<p><label>'.__('Email:'). 
     583     '<p><label for="comment_email">'.__('Email:'). 
    584584     form::field('comment_email',30,255,html::escapeHTML($core->auth->getInfo('user_email'))). 
    585585     '</label></p>'. 
    586586      
    587      '<p><label>'.__('Web site:'). 
     587     '<p><label for="comment_site">'.__('Web site:'). 
    588588     form::field('comment_site',30,255,html::escapeHTML($core->auth->getInfo('user_url'))). 
    589589     '</label></p>'. 
    590590      
    591      '<p class="area"><label for="comment_content" class="required" title="'. 
    592      __('Required field').'">'.__('Comment:').'</label> '. 
     591     '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '. 
     592     __('Comment:').'</label> '. 
    593593     form::textarea('comment_content',50,8,html::escapeHTML('')). 
    594594     '</p>'. 
     
    604604 
    605605# Show comments or trackbacks 
    606 function showComments($rs,$has_action) 
     606function showComments($rs,$has_action,$tb=false) 
    607607{ 
    608608     echo 
     
    640640           
    641641          '<td class="nowrap">'. 
    642           ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0) : '').'</td>'. 
     642          ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.($tb ? __('select this trackback') : __('select this comment')).'"') : '').'</td>'. 
    643643          '<td class="maximal">'.html::escapeHTML($rs->comment_author).'</td>'. 
    644644          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->comment_dt).'</td>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map