Changeset 1576:5638c7934641 for admin/categories.php
- Timestamp:
- 08/25/13 15:18:38 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/categories.php
r1571 r1576 82 82 } 83 83 84 # Actions combo box85 $combo_action = array();86 if ($core->auth->check('categories',$core->blog->id)) {87 $combo_action[__('Delete')] = 'delete';88 }89 90 84 91 85 /* Display … … 181 175 '</div>'; 182 176 183 if (count($combo_action)>0) { 184 echo 185 '<div class="two-cols">'. 186 '<p class="col checkboxes-helpers"></p>'. 187 '<p class="col right" id="mov-cat">'. 188 '<label for="mov_cat" class="classic">'.__('Category which will receive entries of deleted categories:').'</label> '. 189 form::combo('mov_cat',array_merge(array(__('(No cat)') => ''),$categories_combo),'',''). 190 '</p>'. 191 '<p class="right">'. 192 $core->formNonce(). 193 '<input type="submit" value="'.__('Delete selected categories').'"/>'. 194 '</p>'. 195 '</div>'. 196 '</form>'; 197 } 177 echo 178 '<div class="two-cols">'. 179 '<p class="col checkboxes-helpers"></p>'. 180 '<p class="col right" id="mov-cat">'. 181 '<label for="mov_cat" class="classic">'.__('Category which will receive entries of deleted categories:').'</label> '. 182 form::combo('mov_cat',array_merge(array(__('(No cat)') => ''),$categories_combo),'',''). 183 '</p>'. 184 '<p class="right">'. 185 $core->formNonce(). 186 '<input type="submit" value="'.__('Delete selected categories').'"/>'. 187 '</p>'. 188 '</div>'. 189 '</form>'; 198 190 199 191 echo '<h3 class="clear">'.__('Categories order').'</h3>'; 200 192 201 if (!$core->auth->user_prefs->accessibility->nodragdrop 202 && $core->auth->check('categories',$core->blog->id) 203 && $rs->count()>1) { 193 if ($core->auth->check('categories',$core->blog->id) && $rs->count()>1) { 204 194 echo 205 '<form action="categories.php" method="post">'. 206 '<p>'.__('To rearrange categories order, move items by drag and drop, then click on “Save categories order” button.').'</p>'. 195 '<form action="categories.php" method="post">'; 196 if (!$core->auth->user_prefs->accessibility->nodragdrop) { 197 echo '<p class="no-js-hidden">'.__('To rearrange categories order, move items by drag and drop, then click on “Save categories order” button.').'</p>'; 198 } 199 echo 200 '<p class="js-hidden">'.__('To rearrange categories order, change position number and click on “Save categories order” button.').'</p>'. 207 201 '<p>'. 208 202 '<input type="hidden" id="categories_order" name="categories_order" value=""/>'. … … 210 204 $core->formNonce().'</p>'. 211 205 '</form>'; 212 213 // Pour le cas de js désactivé, phrase du formulaire ci-dessus : 214 // "To rearrange categories order, change position number and click on “Save categories order” button." 206 } 215 207 216 208 echo … … 220 212 $core->formNonce().'</p>'. 221 213 '</form>'; 222 }223 214 } 224 215
Note: See TracChangeset
for help on using the changeset viewer.