Changeset 453:94caff73676e for inc/admin
- Timestamp:
- 06/30/11 11:28:32 (14 years ago)
- Branch:
- formfilters
- Location:
- inc/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/class.dc.filter.php
r438 r453 156 156 $ret .= 157 157 '<div class="two-cols">'. 158 '<form id="filters" action="'.$this->action.'" method="'.$method.'" id="filters-form"'.$formclass.'>'.158 '<form id="filters" action="'.$this->action.'" method="'.$method.'"'.$formclass.'>'. 159 159 '<div class="col70">'. 160 160 '<h3>'.__('Entries filters').'</h3>'; … … 175 175 } 176 176 $ret .= 177 '<p class="clear"><input class="delete" type="submit" value="'.__('Delete all filters').'" name="clear_filters" ></p>'.177 '<p class="clear"><input class="delete" type="submit" value="'.__('Delete all filters').'" name="clear_filters" /></p>'. 178 178 '<h3 class="margintop">'.__('Add a filter').'</h3>'. 179 179 '<p id="available_filters">'. 180 180 form::combo("add_filter",$form_combo). 181 '<input type="submit" value=" + " title="'.__('Add this filter').'" name="apply" >'.181 '<input type="submit" value=" + " title="'.__('Add this filter').'" name="apply" />'. 182 182 '</p>'. 183 183 '</div>'. … … 185 185 $this->columns_form. 186 186 '</div>'. 187 '<p class="clear margintop"><input type="submit" value="'.__('Apply filters and display options').'" name="apply" ></p>'.187 '<p class="clear margintop"><input type="submit" value="'.__('Apply filters and display options').'" name="apply" /></p>'. 188 188 189 189 '</form></div>'; -
inc/admin/lib.pager.php
r452 r453 34 34 35 35 # Page text 36 $htmlText = sprintf(__('Page %s over %s'),$this->env,$this->nb_pages).' ';36 $htmlText = '<span>'.sprintf(__('Page %s over %s'),$this->env,$this->nb_pages).'</span>'; 37 37 38 38 # Previous page 39 39 if($this->env != 1) { 40 40 $htmlPrev = '<a href="'.sprintf($this->page_url,$this->env-1).'" class="prev">'. 41 $htmlPrev .= $this->html_prev.'</a> ';41 $htmlPrev .= $this->html_prev.'</a>'; 42 42 } 43 43 44 44 # Next page 45 45 if($this->env != $this->nb_pages) { 46 $htmlNext = ' <a href="'.sprintf($this->page_url,$this->env+1).'" class="next">';46 $htmlNext = '<a href="'.sprintf($this->page_url,$this->env+1).'" class="next">'; 47 47 $htmlNext .= $this->html_next.'</a>'; 48 48 } … … 51 51 if($this->env != 1) { 52 52 $htmlStart = '<a href="'.sprintf($this->page_url,1).'" class="start">'. 53 $htmlStart .= $this->html_start.'</a> ';53 $htmlStart .= $this->html_start.'</a>'; 54 54 } 55 55 56 56 # End 57 57 if($this->env != $this->nb_pages) { 58 $htmlEnd = ' <a href="'.sprintf($this->page_url,$this->nb_elements).'" class="end">'.59 $htmlEnd .= $this->html_end.'</a> ';58 $htmlEnd = '<a href="'.sprintf($this->page_url,$this->nb_elements).'" class="end">'. 59 $htmlEnd .= $this->html_end.'</a>'; 60 60 } 61 61 … … 63 63 $htmlDirectAccess = 64 64 '<span>'.__('Direct access to page').' '. 65 form::field( 'page',3,3,$this->env).' '.65 form::field(array('page'),3,3,$this->env).' '. 66 66 '<input type="submit" value="'.__('ok').'" />'. 67 '< span>';67 '</span>'; 68 68 69 69 # Hidden fields … … 75 75 76 76 $res = 77 '<form method="get" action="'.$this->base_url.'"> '.77 '<form method="get" action="'.$this->base_url.'"><p>'. 78 78 $htmlStart. 79 79 $htmlPrev. … … 83 83 $htmlDirectAccess. 84 84 $htmlHidden. 85 '</ form>';85 '</p></form>'; 86 86 87 87 return $this->nb_elements > 0 ? $res : ''; … … 274 274 $nb_per_page = isset($_GET['nb']) ? $_GET['nb'] : 10; 275 275 276 array_push($list,'<label for="nb" class="classic">'.__('Items per page:').'</label> '.form::field('nb',3,3,$nb_per_page)); 277 278 return sprintf($block,implode('',$list)); 276 return 277 sprintf($block,implode('',$list)). 278 '<p><label for="nb">'.__('Items per page:'). 279 '</label> '.form::field('nb',3,3,$nb_per_page). 280 '</p>'; 279 281 } 280 282
Note: See TracChangeset
for help on using the changeset viewer.