Changeset 457:e2c2754452b1 for plugins
- Timestamp:
- 06/30/11 19:38:28 (14 years ago)
- Branch:
- formfilters
- Location:
- plugins
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/aboutConfig/index.php
r220 r457 77 77 '<tr>'. 78 78 '<td><label for="s_'.$id.'">'.sprintf($slabel,html::escapeHTML($id)).'</label></td>'. 79 '<t d>'.$field.'</td>'.79 '<th scope="row">'.$field.'</th>'. 80 80 '<td>'.$s['type'].'</td>'. 81 81 '<td>'.html::escapeHTML($s['label']).'</td>'. … … 107 107 <form action="plugin.php" method="post"> 108 108 <table> 109 <caption><?php echo __('Local blog settings list'); ?></caption> 110 <thead> 109 111 <tr> 110 <th class="nowrap">Setting ID</th>111 <th ><?php echo __('Value'); ?></th>112 <th ><?php echo __('Type'); ?></th>113 <th class="maximal"><?php echo __('Description'); ?></th>112 <th scope="col" class="nowrap">Setting ID</th> 113 <th scope="col"><?php echo __('Value'); ?></th> 114 <th scope="col"><?php echo __('Type'); ?></th> 115 <th scope="col" class="maximal"><?php echo __('Description'); ?></th> 114 116 </tr> 117 </thead> 118 <tbody> 115 119 <?php 116 120 $settings = array(); … … 127 131 { 128 132 ksort($s); 129 echo '<tr><t d colspan="4" class="ns-name">namespace: <strong>'.$ns.'</strong></td></tr>';133 echo '<tr><th scope="row" colspan="4" class="ns-name">namespace: <strong>'.$ns.'</strong></th></tr>'; 130 134 131 135 foreach ($s as $k => $v) … … 135 139 } 136 140 ?> 141 </tbody> 137 142 </table> 138 143 <p><input type="submit" value="<?php echo __('Save'); ?>" /> … … 145 150 <form action="plugin.php" method="post"> 146 151 <table> 152 <caption><?php echo __('Global blog settings list'); ?></caption> 153 <thead> 147 154 <tr> 148 <th class="nowrap">Setting ID</th>149 <th ><?php echo __('Value'); ?></th>150 <th ><?php echo __('Type'); ?></th>151 <th class="maximal"><?php echo __('Description'); ?></th>155 <th scope="col" class="nowrap">Setting ID</th> 156 <th scope="col"><?php echo __('Value'); ?></th> 157 <th scope="col"><?php echo __('Type'); ?></th> 158 <th scope="col" class="maximal"><?php echo __('Description'); ?></th> 152 159 </tr> 160 </thead> 161 <tbody> 153 162 <?php 154 163 $settings = array(); … … 165 174 { 166 175 ksort($s); 167 echo '<tr><t d colspan="4" class="ns-name">namespace: <strong>'.$ns.'</strong></td></tr>';176 echo '<tr><th scope="row" colspan="4" class="ns-name">namespace: <strong>'.$ns.'</strong></th></tr>'; 168 177 169 178 foreach ($s as $k => $v) … … 173 182 } 174 183 ?> 184 </tbody> 175 185 </table> 176 186 <p><input type="submit" value="<?php echo __('Save'); ?>" /> -
plugins/antispam/index.php
r223 r457 166 166 echo 167 167 '<table class="dragable">'. 168 '<caption>'.__('Antispan filters list').'</caption>'. 168 169 '<thead><tr>'. 169 '<th >'.__('Order').'</th>'.170 '<th >'.__('Active').'</th>'.171 '<th >'.__('Auto Del.').'</th>'.172 '<th class="nowrap">'.__('Filter name').'</th>'.173 '<th colspan="2">'.__('Description').'</th>'.170 '<th scope="col">'.__('Order').'</th>'. 171 '<th scope="col">'.__('Active').'</th>'. 172 '<th scope="col">'.__('Auto Del.').'</th>'. 173 '<th scope="col" class="nowrap">'.__('Filter name').'</th>'. 174 '<th scope="col" colspan="2">'.__('Description').'</th>'. 174 175 '</tr></thead>'. 175 176 '<tbody id="filters-list" >'; … … 191 192 '<td class="nowrap">'.form::checkbox(array('filters_active[]'),$fid,$f->active, '', '', false, 'title="'.__('Active').'"').'</td>'. 192 193 '<td class="nowrap">'.form::checkbox(array('filters_auto_del[]'),$fid,$f->auto_delete, '', '', false, 'title="'.__('Auto Del.').'"').'</td>'. 193 '<t d class="nowrap">'.$f->name.'</td>'.194 '<th scope="row" class="nowrap">'.$f->name.'</th>'. 194 195 '<td class="maximal">'.$f->description.'</td>'. 195 196 '<td class="status">'.$gui_link.'</td>'. -
plugins/blogroll/index.php
r218 r457 242 242 <form action="plugin.php" method="post" id="links-form"> 243 243 <table class="maximal dragable"> 244 <caption><?php echo __('Links list'); ?></caption> 244 245 <thead> 245 246 <tr> 246 <th colspan="3"><?php echo __('Title'); ?></th>247 <th ><?php echo __('Description'); ?></th>248 <th ><?php echo __('URL'); ?></th>249 <th ><?php echo __('Lang'); ?></th>247 <th scope="col" colspan="3"><?php echo __('Title'); ?></th> 248 <th scope="col"><?php echo __('Description'); ?></th> 249 <th scope="col"><?php echo __('URL'); ?></th> 250 <th scope="col"><?php echo __('Lang'); ?></th> 250 251 </tr> 251 252 </thead> … … 265 266 { 266 267 echo 267 '<t dcolspan="5"><strong><a href="'.$p_url.'&edit=1&id='.$rs->link_id.'">'.268 html::escapeHTML($rs->link_desc).'</a></strong></t d>';268 '<th scope="row" colspan="5"><strong><a href="'.$p_url.'&edit=1&id='.$rs->link_id.'">'. 269 html::escapeHTML($rs->link_desc).'</a></strong></th>'; 269 270 } 270 271 else 271 272 { 272 273 echo 273 '<t d><a href="'.$p_url.'&edit=1&id='.$rs->link_id.'">'.274 html::escapeHTML($rs->link_title).'</a></t d>'.274 '<th scope="row"><a href="'.$p_url.'&edit=1&id='.$rs->link_id.'">'. 275 html::escapeHTML($rs->link_title).'</a></th>'. 275 276 '<td>'.html::escapeHTML($rs->link_desc).'</td>'. 276 277 '<td>'.html::escapeHTML($rs->link_href).'</td>'. -
plugins/pages/list.php
r198 r457 15 15 /* Pager class 16 16 -------------------------------------------------------- */ 17 class adminPageList extends admin GenericList17 class adminPageList extends adminPostList 18 18 { 19 public function display($page,$nb_per_page,$enclose_block='')19 public function setColumns() 20 20 { 21 if ($this->rs->isEmpty()) 22 { 23 echo '<p><strong>'.__('No page').'</strong></p>'; 24 } 25 else 26 { 27 $pager = new pager($page,$this->rs_count,$nb_per_page,10); 28 $pager->html_prev = $this->html_prev; 29 $pager->html_next = $this->html_next; 30 $pager->var_page = 'page'; 31 32 $html_block = 33 '<table class="clear"><tr>'. 34 '<th colspan="2">'.__('Title').'</th>'. 35 '<th>'.__('Date').'</th>'. 36 '<th>'.__('Author').'</th>'. 37 '<th>'.__('Comments').'</th>'. 38 '<th>'.__('Trackbacks').'</th>'. 39 '<th>'.__('Status').'</th>'. 40 '</tr>%s</table>'; 41 42 if ($enclose_block) { 43 $html_block = sprintf($enclose_block,$html_block); 44 } 45 46 echo '<p>'.__('Page(s)').' : '.$pager->getLinks().'</p>'; 47 48 $blocks = explode('%s',$html_block); 49 50 echo $blocks[0]; 51 52 while ($this->rs->fetch()) 53 { 54 echo $this->postLine(); 55 } 56 57 echo $blocks[1]; 58 59 echo '<p>'.__('Page(s)').' : '.$pager->getLinks().'</p>'; 60 } 21 $this->addColumn('title',__('Title'),array('adminPostList','getTitle'),' class="maximal"',false); 22 $this->addColumn('date',__('Date'),array('adminPostList','getDate')); 23 $this->addColumn('author',__('Author'),array('adminPostList','getAuthor')); 24 $this->addColumn('comment',__('Comments'),array('adminPostList','getComments')); 25 $this->addColumn('trackback',__('Trackbacks'),array('adminPostList','getTrackbacks')); 26 $this->addColumn('status',__('Status'),array('adminPostList','getStatus')); 61 27 } 62 28 63 pr ivate function postLine()29 protected function getDefaultCaption() 64 30 { 65 $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 66 switch ($this->rs->post_status) { 67 case 1: 68 $img_status = sprintf($img,__('published'),'check-on.png'); 69 break; 70 case 0: 71 $img_status = sprintf($img,__('unpublished'),'check-off.png'); 72 break; 73 case -1: 74 $img_status = sprintf($img,__('scheduled'),'scheduled.png'); 75 break; 76 case -2: 77 $img_status = sprintf($img,__('pending'),'check-wrn.png'); 78 break; 79 } 80 81 $protected = ''; 82 if ($this->rs->post_password) { 83 $protected = sprintf($img,__('protected'),'locker.png'); 84 } 85 86 $selected = ''; 87 if ($this->rs->post_selected) { 88 $selected = sprintf($img,__('selected'),'selected.png'); 89 } 90 91 $attach = ''; 92 $nb_media = $this->rs->countMedia(); 93 if ($nb_media > 0) { 94 $attach_str = $nb_media == 1 ? __('%d attachment') : __('%d attachments'); 95 $attach = sprintf($img,sprintf($attach_str,$nb_media),'attach.png'); 96 } 97 98 $res = '<tr class="line'.($this->rs->post_status != 1 ? ' offline' : '').'"'. 99 ' id="p'.$this->rs->post_id.'">'; 100 101 $res .= 102 '<td class="nowrap">'. 103 form::checkbox(array('entries[]'),$this->rs->post_id,'','','',!$this->rs->isEditable(),'title="'.__('select this page').'"').'</td>'. 104 '<td class="maximal"><a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'">'. 105 html::escapeHTML($this->rs->post_title).'</a></td>'. 106 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. 107 108 '<td class="nowrap">'.$this->rs->user_id.'</td>'. 109 '<td class="nowrap">'.$this->rs->nb_comment.'</td>'. 110 '<td class="nowrap">'.$this->rs->nb_trackback.'</td>'. 111 '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.' '.$attach.'</td>'. 112 '</tr>'; 113 114 return $res; 31 return __('Pages list'); 115 32 } 116 33 } -
plugins/tags/tags.php
r0 r457 43 43 $col = 1; 44 44 } 45 $cols[$col] .= '<tr class="tagLetter"><t d colspan="2"><span>'.$letter.'</span></td></tr>';45 $cols[$col] .= '<tr class="tagLetter"><th scope="row" colspan="2"><span>'.$letter.'</span></th></tr>'; 46 46 } 47 47 48 48 $cols[$col] .= 49 49 '<tr class="line">'. 50 '<t dclass="maximal"><a href="'.$p_url.51 '&m=tag_posts&tag='.rawurlencode($tags->meta_id).'">'.$tags->meta_id.'</a></t d>'.50 '<th scope="row" class="maximal"><a href="'.$p_url. 51 '&m=tag_posts&tag='.rawurlencode($tags->meta_id).'">'.$tags->meta_id.'</a></th>'. 52 52 '<td class="nowrap"><strong>'.$tags->count.'</strong> '. 53 53 (($tags->count==1) ? __('entry') : __('entries')).'</td>'. … … 57 57 } 58 58 59 $table = '<div class="col"><table class="tags">%s</table></div>'; 59 $table = 60 '<div class="col"><table class="tags"><caption>'. 61 __('Tags list'). 62 '</caption><tbody>%s</tbody></table></div>'; 60 63 61 64 if ($cols[0]) -
plugins/userPref/index.php
r220 r457 72 72 return 73 73 '<tr>'. 74 '<t d><label for="s_'.$id.'">'.sprintf($slabel,html::escapeHTML($id)).'</label></td>'.74 '<th scope="row"><label for="s_'.$id.'">'.sprintf($slabel,html::escapeHTML($id)).'</label></th>'. 75 75 '<td>'.$field.'</td>'. 76 76 '<td>'.$s['type'].'</td>'. … … 84 84 <?php echo dcPage::jsPageTabs($part); ?> 85 85 <style type="text/css"> 86 . ns-name { background: #ccc; color: #000; padding-top: 0.3em; padding-bottom: 0.3em; font-size: 1.1em; }86 .ws-name { background: #ccc; color: #000; padding-top: 0.3em; padding-bottom: 0.3em; font-size: 1.1em; } 87 87 </style> 88 88 </head> … … 103 103 <form action="plugin.php" method="post"> 104 104 <table> 105 <caption><?php echo __('Local user preferences list'); ?></caption> 106 <thead> 105 107 <tr> 106 <th class="nowrap">Pref ID</th>107 <th ><?php echo __('Value'); ?></th>108 <th ><?php echo __('Type'); ?></th>109 <th class="maximal"><?php echo __('Description'); ?></th>108 <th scope="col" class="nowrap">Pref ID</th> 109 <th scope="col"><?php echo __('Value'); ?></th> 110 <th scope="col"><?php echo __('Type'); ?></th> 111 <th scope="col" class="maximal"><?php echo __('Description'); ?></th> 110 112 </tr> 113 </thead> 114 <tbody> 111 115 <?php 112 116 $prefs = array(); … … 123 127 { 124 128 ksort($s); 125 echo '<tr><t d colspan="4" class="ws-name">workspace: <strong>'.$ws.'</strong></td></tr>';129 echo '<tr><th scope="row" colspan="4" class="ws-name">workspace: <strong>'.$ws.'</strong></th></tr>'; 126 130 127 131 foreach ($s as $k => $v) … … 131 135 } 132 136 ?> 137 </tbody> 133 138 </table> 134 139 <p><input type="submit" value="<?php echo __('Save'); ?>" /> … … 141 146 <form action="plugin.php" method="post"> 142 147 <table> 148 <caption><?php echo __('Global user preferences list'); ?></caption> 149 <thead> 143 150 <tr> 144 <th class="nowrap">Pref ID</th>145 <th ><?php echo __('Value'); ?></th>146 <th ><?php echo __('Type'); ?></th>147 <th class="maximal"><?php echo __('Description'); ?></th>151 <th scope="col" class="nowrap">Pref ID</th> 152 <th scope="col"><?php echo __('Value'); ?></th> 153 <th scope="col"><?php echo __('Type'); ?></th> 154 <th scope="col" class="maximal"><?php echo __('Description'); ?></th> 148 155 </tr> 156 </thead> 157 <tbody> 149 158 <?php 150 159 $prefs = array(); … … 161 170 { 162 171 ksort($s); 163 echo '<tr><t d colspan="4" class="ws-name">workspace: <strong>'.$ws.'</strong></td></tr>';172 echo '<tr><th scope="row" colspan="4" class="ws-name">workspace: <strong>'.$ws.'</strong></th></tr>'; 164 173 165 174 foreach ($s as $k => $v) … … 169 178 } 170 179 ?> 180 </tbody> 171 181 </table> 172 182 <p><input type="submit" value="<?php echo __('Save'); ?>" />
Note: See TracChangeset
for help on using the changeset viewer.