Changeset 70:612a0ff96a30 for admin/post.php
- Timestamp:
- 04/30/11 10:28:24 (14 years ago)
- Branch:
- userprefs
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/post.php
r3 r70 366 366 367 367 echo 368 '<p><label >'.__('Category:').368 '<p><label for="cat_id">'.__('Category:'). 369 369 form::combo('cat_id',$categories_combo,$cat_id,'maximal',3). 370 370 '</label></p>'. 371 371 372 '<p><label >'.__('Entry status:').372 '<p><label for="post_status">'.__('Entry status:'). 373 373 form::combo('post_status',$status_combo,$post_status,'',3,!$can_publish). 374 374 '</label></p>'. 375 375 376 '<p><label >'.__('Published on:').376 '<p><label for="post_dt">'.__('Published on:'). 377 377 form::field('post_dt',16,16,$post_dt,'',3). 378 378 '</label></p>'. 379 379 380 '<p><label >'.__('Text formating:').380 '<p><label for="post_format">'.__('Text formating:'). 381 381 form::combo('post_format',$formaters_combo,$post_format,'',3). 382 382 ($post_id && $post_format != 'xhtml' ? '<a id="convert-xhtml" href="post.php?id='.$post_id.'&xconv=1">'.__('Convert to XHTML').'</a>' : ''). 383 383 '</label></p>'. 384 384 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).' '. 386 386 __('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).' '. 388 388 __('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).' '. 390 390 __('Selected entry').'</label></p>'. 391 391 392 '<p><label >'.__('Entry lang:').392 '<p><label for="post_lang">'.__('Entry lang:'). 393 393 form::combo('post_lang',$lang_combo,$post_lang,'',5). 394 394 '</label></p>'. 395 395 396 '<p><label >'.__('Entry password:').396 '<p><label for="post_password">'.__('Entry password:'). 397 397 form::field('post_password',10,32,html::escapeHTML($post_password),'maximal',3). 398 398 '</label></p>'. 399 399 400 400 '<div class="lockable">'. 401 '<p><label >'.__('Basename:').401 '<p><label for="post_url">'.__('Basename:'). 402 402 form::field('post_url',10,255,html::escapeHTML($post_url),'maximal',3). 403 403 '</label></p>'. … … 452 452 453 453 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:'). 455 455 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal',2). 456 456 '</label></p>'. … … 460 460 '</p>'. 461 461 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> '. 464 464 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content),'',2). 465 465 '</p>'. 466 466 467 '<p class="area" id="notes-area"><label >'.__('Notes:').'</label>'.467 '<p class="area" id="notes-area"><label for="post_notes">'.__('Notes:').'</label>'. 468 468 form::textarea('post_notes',50,5,html::escapeHTML($post_notes),'',2). 469 469 '</p>'; … … 486 486 487 487 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">'. 489 489 __('Ping blogs').'</a></p>'; 490 490 } … … 538 538 539 539 if (!$trackbacks->isEmpty()) { 540 showComments($trackbacks,$has_action );540 showComments($trackbacks,$has_action,true); 541 541 } else { 542 542 echo '<p>'.__('No trackback').'</p>'; … … 555 555 '<p class="col checkboxes-helpers"></p>'. 556 556 557 '<p class="col right"> '.__('Selected comments action:').''.557 '<p class="col right"><label for="action" class="inline">'.__('Selected comments action:').'</label> '. 558 558 form::combo('action',$combo_action). 559 559 form::hidden('redir','post.php?id='.$post_id.'&co=1'). … … 577 577 '<form action="comment.php" method="post" id="comment-form">'. 578 578 '<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:'). 580 580 form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 581 581 '</label></p>'. 582 582 583 '<p><label >'.__('Email:').583 '<p><label for="comment_email">'.__('Email:'). 584 584 form::field('comment_email',30,255,html::escapeHTML($core->auth->getInfo('user_email'))). 585 585 '</label></p>'. 586 586 587 '<p><label >'.__('Web site:').587 '<p><label for="comment_site">'.__('Web site:'). 588 588 form::field('comment_site',30,255,html::escapeHTML($core->auth->getInfo('user_url'))). 589 589 '</label></p>'. 590 590 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> '. 593 593 form::textarea('comment_content',50,8,html::escapeHTML('')). 594 594 '</p>'. … … 604 604 605 605 # Show comments or trackbacks 606 function showComments($rs,$has_action )606 function showComments($rs,$has_action,$tb=false) 607 607 { 608 608 echo … … 640 640 641 641 '<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>'. 643 643 '<td class="maximal">'.html::escapeHTML($rs->comment_author).'</td>'. 644 644 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->comment_dt).'</td>'.
Note: See TracChangeset
for help on using the changeset viewer.