Changeset 70:612a0ff96a30
- Timestamp:
- 04/30/11 10:28:24 (13 years ago)
- Branch:
- userprefs
- Location:
- admin
- Files:
-
- 8 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>'. -
admin/post_media.php
r0 r70 66 66 '<form action="post_media.php" method="post">'. 67 67 '<p>'.__('Are you sure you want to remove this attachment?').'</p>'. 68 '<p><input type="submit" value="'.__('cancel').'" /> '.69 ' <input type="submit" name="remove" value="'.__('yes').'" />'.68 '<p><input type="submit" class="reset" value="'.__('cancel').'" /> '. 69 ' <input type="submit" class="delete" name="remove" value="'.__('yes').'" />'. 70 70 form::hidden('post_id',$post_id). 71 71 form::hidden('media_id',$media_id). -
admin/posts.php
r3 r70 244 244 '<div class="three-cols">'. 245 245 '<div class="col">'. 246 '<label >'.__('Author:').246 '<label for="user_id">'.__('Author:'). 247 247 form::combo('user_id',$users_combo,$user_id).'</label> '. 248 '<label >'.__('Category:').248 '<label for="cat_id">'.__('Category:'). 249 249 form::combo('cat_id',$categories_combo,$cat_id).'</label> '. 250 '<label >'.__('Status:').250 '<label for="status">'.__('Status:'). 251 251 form::combo('status',$status_combo,$status).'</label> '. 252 252 '</div>'. 253 253 254 254 '<div class="col">'. 255 '<label >'.__('Selected:').255 '<label for="selected">'.__('Selected:'). 256 256 form::combo('selected',$selected_combo,$selected).'</label> '. 257 '<label >'.__('Month:').257 '<label for="month">'.__('Month:'). 258 258 form::combo('month',$dt_m_combo,$month).'</label> '. 259 '<label >'.__('Lang:').259 '<label for="lang">'.__('Lang:'). 260 260 form::combo('lang',$lang_combo,$lang).'</label> '. 261 261 '</div>'. 262 262 263 263 '<div class="col">'. 264 '<p><label >'.__('Order by:').264 '<p><label for="sortby">'.__('Order by:'). 265 265 form::combo('sortby',$sortby_combo,$sortby).'</label> '. 266 '<label >'.__('Sort:').266 '<label for="order">'.__('Sort:'). 267 267 form::combo('order',$order_combo,$order).'</label></p>'. 268 '<p><label class="classic">'. form::field('nb',3,3,$nb_per_page).' '.268 '<p><label for="nb" class="classic">'. form::field('nb',3,3,$nb_per_page).' '. 269 269 __('Entries per page').'</label></p> '. 270 270 '<p><input type="submit" value="'.__('Apply filters').'" /></p>'. … … 284 284 '<p class="col checkboxes-helpers"></p>'. 285 285 286 '<p class="col right"> '.__('Selected entries action:').''.286 '<p class="col right"><label for="action" class="inline">'.__('Selected entries action:').'</label> '. 287 287 form::combo('action',$combo_action). 288 288 '<input type="submit" value="'.__('ok').'" /></p>'. -
admin/posts_actions.php
r0 r70 224 224 echo 225 225 '<form action="posts_actions.php" method="post">'. 226 '<p><label class="classic">'.__('Category:').' '.226 '<p><label for="new_cat_id" class="classic">'.__('Category:').' '. 227 227 form::combo('new_cat_id',$categories_combo,''). 228 228 '</label> '; … … 241 241 echo 242 242 '<form action="posts_actions.php" method="post">'. 243 '<p><label class="classic">'.__('Author ID:').' '.243 '<p><label for="new_auth_id" class="classic">'.__('Author ID:').' '. 244 244 form::field('new_auth_id',20,255). 245 245 '</label> '; -
admin/search.php
r0 r70 76 76 '<form action="search.php" method="get">'. 77 77 '<fieldset><legend>'.__('Search options').'</legend>'. 78 '<p><label class="classic">'.__('Query:').' '.form::field('q',30,255,html::escapeHTML($q)).'</label> '.79 '<label class="classic">'.form::radio(array('qtype'),'p',$qtype == 'p').' '.__('search entries').'</label> '.80 '<label class="classic">'.form::radio(array('qtype'),'c',$qtype == 'c').' '.__('search comments').'</label> '.78 '<p><label for="q" class="classic">'.__('Query:').' '.form::field('q',30,255,html::escapeHTML($q)).'</label> '. 79 '<label for="qtype1" class="classic">'.form::radio(array('qtype','qtype1'),'p',$qtype == 'p').' '.__('search entries').'</label> '. 80 '<label for="qtype2" class="classic">'.form::radio(array('qtype','qtype2'),'c',$qtype == 'c').' '.__('search comments').'</label> '. 81 81 ' <input type="submit" value="'.__('ok').'" /></p>'. 82 82 '</fieldset>'. … … 125 125 '<p class="col checkboxes-helpers"></p>'. 126 126 127 '<p class="col right"> '.__('Selected entries action:').128 form::combo( 'action',$combo_action).127 '<p class="col right"><label for="action1" class="inline"'.__('Selected entries action:').'</label> '. 128 form::combo(array('action','action1'),$combo_action). 129 129 '<input type="submit" value="'.__('ok').'" /></p>'. 130 130 form::hidden('redir',preg_replace('/%/','%%',$redir)). … … 165 165 '<p class="col checkboxes-helpers"></p>'. 166 166 167 '<p class="col right"> '.__('Selected comments action:').''.168 form::combo( 'action',$combo_action).167 '<p class="col right"><label for="action2" class="inline">'.__('Selected comments action:').'</label> '. 168 form::combo(array('action','action2'),$combo_action). 169 169 '<input type="submit" value="'.__('ok').'" /></p>'. 170 170 form::hidden('redir',preg_replace('/%/','%%',$redir)). -
admin/trackbacks.php
r0 r70 119 119 '<h3>'.__('Ping blogs').'</h3>'. 120 120 '<form action="trackbacks.php" id="trackback-form" method="post">'. 121 '<p><label class="area">'.__('URLs to ping:').121 '<p><label for="tb_urls" class="area">'.__('URLs to ping:'). 122 122 form::textarea('tb_urls',60,5,$tb_urls). 123 123 '</label></p>'. 124 124 125 '<p><label class="area">'.__('Send excerpt:').125 '<p><label for="tb_excerpt" class="area">'.__('Send excerpt:'). 126 126 form::textarea('tb_excerpt',60,3,$tb_excerpt).'</label></p>'. 127 127 -
admin/user.php
r0 r70 190 190 '<div class="two-cols">'. 191 191 '<div class="col">'. 192 '<p><label class="required" title="'.__('Required field').'">'.__('Username:').' '.192 '<p><label for="user_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Username:').' '. 193 193 form::field('user_id',20,255,html::escapeHTML($user_id),'',2). 194 194 '</label></p>'. 195 195 '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p>'. 196 196 197 '<p><label >'.($user_id!='' ? __('New password:') : __('Password:')).' '.197 '<p><label for="new_pwd">'.($user_id!='' ? __('New password:') : __('Password:')).' '. 198 198 form::password('new_pwd',20,255,'','',3). 199 199 '</label></p>'. 200 200 201 '<p><label >'.__('Confirm password:').' '.201 '<p><label for="new_pwd_c">'.__('Confirm password:').' '. 202 202 form::password('new_pwd_c',20,255,'','',4). 203 203 '</label></p>'. 204 204 205 '<p><label >'.__('Last Name:').' '.205 '<p><label for="user_name">'.__('Last Name:').' '. 206 206 form::field('user_name',20,255,html::escapeHTML($user_name),'',5). 207 207 '</label></p>'. 208 208 209 '<p><label >'.__('First Name:').' '.209 '<p><label for="user_firstname">'.__('First Name:').' '. 210 210 form::field('user_firstname',20,255,html::escapeHTML($user_firstname),'',6). 211 211 '</label></p>'. 212 212 213 '<p><label >'.__('Display name:').' '.213 '<p><label for="user_displayname">'.__('Display name:').' '. 214 214 form::field('user_displayname',20,255,html::escapeHTML($user_displayname),'',7). 215 215 '</label></p>'. 216 216 217 '<p><label >'.__('Email:').' '.217 '<p><label for="user_email">'.__('Email:').' '. 218 218 form::field('user_email',20,255,html::escapeHTML($user_email),'',8). 219 219 '</label></p>'. … … 221 221 222 222 '<div class="col">'. 223 '<p><label >'.__('URL:').' '.223 '<p><label for="user_url">'.__('URL:').' '. 224 224 form::field('user_url',30,255,html::escapeHTML($user_url),'',9). 225 225 '</label></p>'. 226 '<p><label >'.__('Preferred format:').' '.226 '<p><label for="user_post_format">'.__('Preferred format:').' '. 227 227 form::combo('user_post_format',$formaters_combo,$user_options['post_format'],'',10). 228 228 '</label></p>'. 229 229 230 '<p><label >'.__('Default entry status:').' '.230 '<p><label for="user_post_status">'.__('Default entry status:').' '. 231 231 form::combo('user_post_status',$status_combo,$user_post_status,'',11). 232 232 '</label></p>'. … … 236 236 '</label></p>'. 237 237 238 '<p><label >'.__('User language:').' '.238 '<p><label for="user_edit_size">'.__('User language:').' '. 239 239 form::combo('user_lang',$lang_combo,$user_lang,'l10n',13). 240 240 '</label></p>'. 241 241 242 '<p><label >'.__('User timezone:').' '.242 '<p><label for="user_tz">'.__('User timezone:').' '. 243 243 form::combo('user_tz',dt::getZones(true,true),$user_tz,'',14). 244 244 '</label></p>'; … … 246 246 if ($core->auth->allowPassChange()) { 247 247 echo 248 '<p><label class="classic">'.248 '<p><label for="user_change_pwd" class="classic">'. 249 249 form::checkbox('user_change_pwd','1',$user_change_pwd,'',15).' '. 250 250 __('Password change required to connect').'</label></p>'; … … 252 252 253 253 echo 254 '<p><label class="classic">'.form::checkbox('user_super','1',$user_super,'',16).' '.254 '<p><label for="user_super" class="classic">'.form::checkbox('user_super','1',$user_super,'',16).' '. 255 255 __('Super administrator').'</label></p>'. 256 256 '</div>'. … … 263 263 echo 264 264 '<fieldset>'. 265 '<p><label >'.__('Your password:').265 '<p><label for="your_pwd">'.__('Your password:'). 266 266 form::password('your_pwd',20,255,'','',17).'</label></p>'. 267 267 '</fieldset>'. -
admin/users.php
r3 r70 130 130 131 131 '<div class="col">'. 132 '<p><label >'.__('Order by:').' '.132 '<p><label for="sortby">'.__('Order by:').' '. 133 133 form::combo('sortby',$sortby_combo,$sortby). 134 134 '</label> '. 135 '<label >'.__('Sort:').' '.135 '<label for="order">'.__('Sort:').' '. 136 136 form::combo('order',$order_combo,$order). 137 137 '</label></p>'. … … 139 139 140 140 '<div class="col">'. 141 '<p><label >'.__('Search:').' '.141 '<p><label for="q">'.__('Search:').' '. 142 142 form::field('q',20,255,html::escapeHTML($q)). 143 143 '</label></p>'. 144 '<p><label class="classic">'. form::field('nb',3,3,$nb_per_page).' '.144 '<p><label for="nb" class="classic">'. form::field('nb',3,3,$nb_per_page).' '. 145 145 __('Users per page').'</label> '. 146 146 '<input type="submit" value="'.__('Apply filters').'" /></p>'. … … 160 160 '<p class="col checkboxes-helpers"></p>'. 161 161 162 '<p class="col right"><label class="classic">'.162 '<p class="col right"><label for="dispatch_action" class="classic">'. 163 163 __('Selected users action:').' '. 164 164 form::combo('dispatch_action',$combo_action).
Note: See TracChangeset
for help on using the changeset viewer.