Changeset 2566:9bf417837888 for admin/search.php
- Timestamp:
- 11/17/13 20:25:53 (12 years ago)
- Branch:
- 2.6
- Children:
- 2567:6c11245cbf04, 2568:61c67a7d17fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/search.php
r2314 r2566 30 30 { 31 31 $params = array(); 32 32 33 33 # Get posts 34 34 if ($qtype == 'p') 35 35 { 36 36 $starting_scripts .= dcPage::jsLoad('js/_posts_list.js'); 37 37 38 38 $params['search'] = $q; 39 39 $params['limit'] = array((($page-1)*$nb_per_page),$nb_per_page); 40 40 $params['no_content'] = true; 41 41 $params['order'] = 'post_dt DESC'; 42 42 43 43 try { 44 44 $posts = $core->blog->getPosts($params); … … 53 53 { 54 54 $starting_scripts .= dcPage::jsLoad('js/_comments.js'); 55 55 56 56 $params['search'] = $q; 57 57 $params['limit'] = array((($page-1)*$nb_per_page),$nb_per_page); 58 58 $params['no_content'] = true; 59 59 $params['order'] = 'comment_dt DESC'; 60 60 61 61 try { 62 62 $comments = $core->blog->getComments($params); … … 104 104 { 105 105 $redir = html::escapeHTML($_SERVER['REQUEST_URI']); 106 106 107 107 # Show posts 108 108 if ($qtype == 'p') 109 109 { 110 110 111 111 if ($counter->f(0) > 0) { 112 112 printf('<h3>'. … … 114 114 '</h3>',$counter->f(0)); 115 115 } 116 116 117 117 $post_list->display($page,$nb_per_page, 118 118 '<form action="search.php" method="post" id="form-entries">'. 119 119 120 120 '%s'. 121 121 122 122 '<div class="two-cols">'. 123 123 '<p class="col checkboxes-helpers"></p>'. 124 124 125 125 '<p class="col right"><label for="action1" class="classic">'.__('Selected entries action:').'</label> '. 126 126 form::combo(array('action','action1'),$posts_actions_page->getCombo()). … … 136 136 { 137 137 # Actions combo box 138 138 139 139 if ($counter->f(0) > 0) { 140 140 printf('<h3>'. … … 142 142 '</h3>',$counter->f(0)); 143 143 } 144 144 145 145 $comment_list->display($page,$nb_per_page, 146 146 '<form action="search.php" method="post" id="form-comments">'. 147 147 148 148 '%s'. 149 149 150 150 '<div class="two-cols">'. 151 151 '<p class="col checkboxes-helpers"></p>'. 152 152 153 153 '<p class="col right"><label for="action2" class="classic">'.__('Selected comments action:').'</label> '. 154 154 form::combo(array('action','action2'),$comments_actions_page->getCombo()). … … 164 164 dcPage::helpBlock('core_search'); 165 165 dcPage::close(); 166 ?>
Note: See TracChangeset
for help on using the changeset viewer.