Changeset 456:f55f02550402 for admin
- Timestamp:
- 06/30/11 14:58:00 (14 years ago)
- Branch:
- formfilters
- Location:
- admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blogs.php
r158 r456 118 118 119 119 # Show blogs 120 if ($nb_blog == 0) 121 { 122 echo '<p><strong>'.__('No blog').'</strong></p>'; 123 } 124 else 125 { 126 $pager = new pager($page,$nb_blog,$nb_per_page,10); 127 $pager->var_page = 'page'; 128 129 echo '<p>'.__('Page(s)').' : '.$pager->getLinks().'</p>'; 130 131 echo 132 '<table class="clear"><tr>'. 133 '<th>'.__('Blog name').'</th>'. 134 '<th class="nowrap">'.__('Last update').'</th>'. 135 '<th class="nowrap">'.__('Entries').'</th>'. 136 '<th class="nowrap">'.__('Blog ID').'</th>'. 137 '<th> </th>'. 138 '<th class="nowrap">'.__('Status').'</th>'. 139 '</tr>'; 140 141 while ($rs->fetch()) { 142 echo blogLine($rs); 143 } 144 145 echo '</table>'; 146 147 echo '<p>'.__('Page(s)').' : '.$pager->getLinks().'</p>'; 148 } 120 $blogs_list = new adminBlogList($core,$rs,$nb_blog); 121 $blogs_list->display($page,$nb_per_page); 149 122 } 150 123 151 124 dcPage::close(); 152 125 153 function blogLine($rs)154 {155 global $core;156 157 $blog_id = html::escapeHTML($rs->blog_id);158 $edit_link = '';159 160 if ($GLOBALS['core']->auth->isSuperAdmin()) {161 $edit_link =162 '<a href="blog.php?id='.$blog_id.'" '.163 'title="'.sprintf(__('Edit blog %s'),$blog_id).'">'.164 __('edit').'</a>';165 }166 167 $img_status = $rs->blog_status == 1 ? 'check-on' : 'check-off';168 $txt_status = $GLOBALS['core']->getBlogStatus($rs->blog_status);169 $img_status = sprintf('<img src="images/%1$s.png" alt="%2$s" title="%2$s" />',$img_status,$txt_status);170 $offset = dt::getTimeOffset($core->auth->getInfo('user_tz'));171 $blog_upddt = dt::str(__('%Y-%m-%d %H:%M'),strtotime($rs->blog_upddt) + $offset);172 173 return174 '<tr class="line">'.175 '<td class="maximal"><a href="index.php?switchblog='.$rs->blog_id.'" '.176 'title="'.sprintf(__('Switch to blog %s'),$rs->blog_id).'">'.177 html::escapeHTML($rs->blog_name).'</a></td>'.178 '<td class="nowrap">'.$blog_upddt.'</td>'.179 '<td class="nowrap">'.$core->countBlogPosts($rs->blog_id).'</td>'.180 '<td class="nowrap">'.$blog_id.'</td>'.181 '<td>'.$edit_link.'</td>'.182 '<td class="status">'.$img_status.'</td>'.183 '</tr>';184 }185 126 ?> -
admin/langs.php
r66 r456 173 173 { 174 174 echo 175 '<table class="clear plugins"><tr>'. 176 '<th>'.__('Language').'</th>'. 177 '<th class="nowrap">'.__('Action').'</th>'. 178 '</tr>'; 175 '<table class="clear plugins">'. 176 '<thead><tr>'. 177 '<th scope="col">'.__('Language').'</th>'. 178 '<th scope="col" class="nowrap">'.__('Action').'</th>'. 179 '</tr></thead>'. 180 '<tbody>'; 179 181 180 182 foreach ($locales_content as $k => $v) … … 184 186 echo 185 187 '<tr class="line wide">'. 186 '<t dclass="maximal nowrap">('.$k.') '.187 '<strong>'.html::escapeHTML($iso_codes[$k]).'</strong></t d>'.188 '<th scope="row" class="maximal nowrap">('.$k.') '. 189 '<strong>'.html::escapeHTML($iso_codes[$k]).'</strong></th>'. 188 190 '<td class="nowrap action">'; 189 191 … … 202 204 echo '</td></tr>'; 203 205 } 204 echo '</table>'; 206 echo 207 '</tbody>'. 208 '</table>'; 205 209 } 206 210 … … 228 232 'Proposed languages are based on your version: %s.'),'<strong>'.DC_VERSION.'</strong>').'</p>'. 229 233 '<p class="field"><label for="pkg_url" class="classic">'.__('Language:').' '. 230 form::combo( array('pkg_url'),$dc_langs_combo).'</label></p>'.234 form::combo('pkg_url',$dc_langs_combo).'</label></p>'. 231 235 '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').' '. 232 236 form::password(array('your_pwd','your_pwd1'),20,255).'</label></p>'. -
admin/permissions_blog.php
r68 r456 136 136 137 137 # Show blogs 138 if ($nb_blog == 0) 139 { 140 echo '<p><strong>'.__('No blog').'</strong></p>'; 141 } 142 else 143 { 144 $pager = new pager($page,$nb_blog,$nb_per_page,10); 145 $pager->var_page = 'page'; 146 147 echo '<p>'.__('Page(s)').' : '.$pager->getLinks().'</p>'; 148 149 echo 150 '<form action="permissions.php" method="post" id="form-blogs">'. 151 '<table class="clear"><tr>'. 152 '<th colspan="2">'.__('Blog ID').'</th>'. 153 '<th>'.__('Blog name').'</th>'. 154 '<th class="nowrap">'.__('Entries').'</th>'. 155 '<th class="nowrap">'.__('Status').'</th>'. 156 '</tr>'; 157 158 while ($rs->fetch()) { 159 echo blogLine($rs); 160 } 161 162 echo 163 '</table>'. 164 138 $blogs_list = new adminBlogPermissionsList($core,$rs,$nb_blog); 139 $blogs_list->display($page,$nb_per_page,'<form action="permissions.php" method="post" id="form-blogs">'. 140 '%s'. 165 141 '<p class="checkboxes-helpers"></p>'. 166 167 142 '<p><input type="submit" value="'.__('set permissions').'" />'. 168 143 $hidden_fields. 169 144 $core->formNonce().'</p>'. 170 '</form>'; 171 172 echo '<p>'.__('Page(s)').' : '.$pager->getLinks().'</p>'; 173 } 145 '</form>' 146 ); 174 147 } 175 148 176 149 dcPage::close(); 177 150 178 function blogLine($rs)179 {180 global $core;181 182 $img_status = $rs->blog_status == 1 ? 'check-on' : 'check-off';183 $txt_status = $GLOBALS['core']->getBlogStatus($rs->blog_status);184 $img_status = sprintf('<img src="images/%1$s.png" alt="%2$s" title="%2$s" />',$img_status,$txt_status);185 186 return187 '<tr class="line">'.188 '<td class="nowrap">'.189 form::checkbox(array('blog_id[]'),$rs->blog_id,'','','',false,'title="'.__('select').' '.$rs->blog_id.'"').'</td>'.190 '<td class="nowrap">'.$rs->blog_id.'</td>'.191 '<td class="maximal">'.html::escapeHTML($rs->blog_name).'</td>'.192 '<td class="nowrap">'.$core->countBlogPosts($rs->blog_id).'</td>'.193 '<td class="status">'.$img_status.'</td>'.194 '</tr>';195 }196 151 ?> -
admin/plugins.php
r211 r456 227 227 echo 228 228 '<h3>'.__('Activated plugins').'</h3>'. 229 '<table class="clear plugins"><tr>'. 230 '<th>'.__('Plugin').'</th>'. 231 '<th class="nowrap">'.__('Version').'</th>'. 232 '<th class="nowrap">'.__('Details').'</th>'. 233 '<th class="nowrap">'.__('Action').'</th>'. 234 '</tr>'; 229 '<table class="clear plugins">'. 230 '<caption>'.__('Activated plugin list').'</caption>'. 231 '<thead><tr>'. 232 '<th scope="col">'.__('Plugin').'</th>'. 233 '<th scope="col" class="nowrap">'.__('Version').'</th>'. 234 '<th scope="col" class="nowrap">'.__('Details').'</th>'. 235 '<th scope="col" class="nowrap">'.__('Action').'</th>'. 236 '</tr></thead>'. 237 '<tbody>'; 235 238 236 239 foreach ($p_available as $k => $v) … … 241 244 echo 242 245 '<tr class="line wide">'. 243 '<t d class="minimal nowrap"><strong>'.html::escapeHTML($k).'</strong></td>'.246 '<th scope="row" class="minimal nowrap"><strong>'.html::escapeHTML($k).'</strong></th>'. 244 247 '<td class="minimal">'.html::escapeHTML($v['version']).'</td>'. 245 248 '<td class="maximal"><strong>'.html::escapeHTML($v['name']).'</strong> '. … … 265 268 } 266 269 echo 270 '</tbody>'. 267 271 '</table>'; 268 272 } … … 274 278 echo 275 279 '<h3>'.__('Deactivated plugins').'</h3>'. 276 '<table class="clear plugins"><tr>'. 277 '<th>'.__('Plugin').'</th>'. 278 '<th class="nowrap">'.__('Action').'</th>'. 279 '</tr>'; 280 '<table class="clear plugins">'. 281 '<caption>'.__('Deactivated plugin list').'</caption>'. 282 '<thead><tr>'. 283 '<th scope="col">'.__('Plugin').'</th>'. 284 '<th scope="col" class="nowrap">'.__('Action').'</th>'. 285 '</tr></thead>'. 286 '<tbody>'; 280 287 281 288 foreach ($p_disabled as $k => $v) … … 286 293 echo 287 294 '<tr class="line wide">'. 288 '<t d class="maximal nowrap"><strong>'.html::escapeHTML($k).'</strong></td>'.295 '<th scope="row" class="maximal nowrap"><strong>'.html::escapeHTML($k).'</strong></th>'. 289 296 '<td class="nowrap action">'; 290 297 … … 308 315 } 309 316 echo 317 '</tbody>'. 310 318 '</table>'; 311 319 } -
admin/post.php
r219 r456 608 608 { 609 609 echo 610 '<table class="comments-list"><tr>'. 611 '<th colspan="2">'.__('Author').'</th>'. 612 '<th>'.__('Date').'</th>'. 613 '<th class="nowrap">'.__('IP address').'</th>'. 614 '<th>'.__('Status').'</th>'. 615 '<th> </th>'. 616 '</tr>'; 610 '<table class="comments-list">'. 611 '<caption>'.__('Post comments and trackbacks').'</caption>'. 612 '<thead><tr>'. 613 '<th scope="col" colspan="2">'.__('Author').'</th>'. 614 '<th scope="col">'.__('Date').'</th>'. 615 '<th scope="col" class="nowrap">'.__('IP address').'</th>'. 616 '<th scope="col">'.__('Status').'</th>'. 617 '<th scope="col"> </th>'. 618 '</tr></thead>'. 619 '<tbody>'; 617 620 618 621 while($rs->fetch()) … … 642 645 '<td class="nowrap">'. 643 646 ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.($tb ? __('select this trackback') : __('select this comment')).'"') : '').'</td>'. 644 '<t d class="maximal">'.html::escapeHTML($rs->comment_author).'</td>'.647 '<th scope="row" class="maximal">'.html::escapeHTML($rs->comment_author).'</th>'. 645 648 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->comment_dt).'</td>'. 646 649 '<td class="nowrap"><a href="comments.php?ip='.$rs->comment_ip.'">'.$rs->comment_ip.'</a></td>'. … … 652 655 } 653 656 654 echo '</table>'; 657 echo 658 '</tbody>'. 659 '</table>'; 655 660 } 656 661
Note: See TracChangeset
for help on using the changeset viewer.