Changeset 1307
- Timestamp:
- May 15, 2006, 10:46:43 PM (18 years ago)
- Location:
- branches/branch-1_6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_6/admin/element_set_global.php
r1121 r1307 206 206 'L_SUBMIT'=>$lang['submit'], 207 207 208 'U_COLS'=>$base_url.get_query_string_diff(array('cols')),209 208 'U_DISPLAY'=>$base_url.get_query_string_diff(array('display')), 210 209 … … 340 339 // +-----------------------------------------------------------------------+ 341 340 342 $page['cols'] = !empty($_GET['cols']) ? intval($_GET['cols']) : 5;343 344 341 // how many items to display on this page 345 342 if (!empty($_GET['display'])) … … 383 380 { 384 381 $template->assign_block_vars('thumbnails', array()); 385 // first line386 $template->assign_block_vars('thumbnails.line', array());387 // current row displayed388 $row_number = 0;389 382 } 390 383 … … 394 387 395 388 $template->assign_block_vars( 396 'thumbnails. line.thumbnail',389 'thumbnails.thumbnail', 397 390 array( 398 391 'ID' => $row['id'], … … 402 395 ) 403 396 ); 404 405 // create a new line ?406 if (++$row_number == $page['cols'])407 {408 $template->assign_block_vars('thumbnails.line', array());409 $row_number = 0;410 }411 397 } 412 398 } -
branches/branch-1_6/template/yoga/admin/element_set_global.tpl
r1280 r1307 9 9 </p> 10 10 11 <form action="{F_ACTION}" method="post">12 13 <fieldset>14 15 <legend>{lang:Caddie management}</legend>16 17 <ul style="list-style-type:none;">18 19 <!-- BEGIN in_caddie -->20 <li><label><input type="radio" name="caddie_action" value="empty_all" /> {lang:Empty caddie}</label></li>21 <li><label><input type="radio" name="caddie_action" value="empty_selected" /> {lang:Take selected elements out of caddie}</label></li>22 <!-- END in_caddie -->23 24 <!-- BEGIN not_in_caddie -->25 <li><input type="radio" name="caddie_action" value="add_selected" /> {lang:Add selected elements to caddie}</li>26 <!-- END not_in_caddie -->27 28 </ul>29 30 <p style="text-align:center;"><input type="submit" value="{L_SUBMIT}" name="submit_caddie" {TAG_INPUT_ENABLED}/></p>31 32 </fieldset>33 34 </form>35 36 <form action="{F_ACTION}" method="post">37 38 11 <fieldset> 39 12 40 13 <legend>{lang:Display options}</legend> 41 42 <p>{lang:elements per line}:43 <a href="{U_COLS}&cols=4">4</a>44 | <a href="{U_COLS}&cols=5">5</a>45 | <a href="{U_COLS}&cols=6">6</a>46 | <a href="{U_COLS}&cols=7">7</a>47 | <a href="{U_COLS}&cols=8">8</a>48 | <a href="{U_COLS}&cols=9">9</a>49 | <a href="{U_COLS}&cols=10">10</a>50 </p>51 14 52 15 <p>{lang:elements per page}: … … 56 19 | <a href="{U_DISPLAY}&display=all">{lang:all}</a> 57 20 </p> 21 22 </fieldset> 23 24 <form action="{F_ACTION}" method="post"> 25 26 <fieldset> 27 28 <legend>{lang:Elements}</legend> 29 30 <div class="navigationBar">{NAV_BAR}</div> 31 32 <!-- BEGIN thumbnails --> 33 <ul class="thumbnails"> 34 <!-- BEGIN thumbnail --> 35 <li><span class="wrap1"><span class="wrap2"> 36 <label> 37 <img src="{thumbnails.thumbnail.SRC}" 38 alt="{thumbnails.thumbnail.ALT}" 39 title="{thumbnails.thumbnail.TITLE}" 40 class="thumbLink" /> 41 <input type="checkbox" name="selection[]" value="{thumbnails.thumbnail.ID}" /> 42 </label> 43 </li> 44 <!-- END thumbnail --> 45 </ul> 46 <!-- END thumbnails --> 58 47 59 48 </fieldset> … … 157 146 <fieldset> 158 147 159 <legend>{lang: Elements}</legend>148 <legend>{lang:Caddie management}</legend> 160 149 161 < div class="navigationBar">{NAV_BAR}</div>150 <ul style="list-style-type:none;"> 162 151 163 <!-- BEGIN thumbnails --> 164 <!--table valign="top" align="center" class="thumbnail"--> 165 <table class="thumbnail"> 166 <!-- BEGIN line --> 167 <tr> 168 <!-- BEGIN thumbnail --> 169 <td class="thumbnail"> 170 <label> 171 <img src="{thumbnails.line.thumbnail.SRC}" 172 alt="{thumbnails.line.thumbnail.ALT}" 173 title="{thumbnails.line.thumbnail.TITLE}" 174 class="thumbLink" /> 175 <input type="checkbox" name="selection[]" value="{thumbnails.line.thumbnail.ID}" /> 176 </label> 177 </td> 178 <!-- END thumbnail --> 179 </tr> 180 <!-- END line --> 181 </table> 182 <!-- END thumbnails --> 152 <!-- BEGIN in_caddie --> 153 <li><label><input type="radio" name="caddie_action" value="empty_all" /> {lang:Empty caddie}</label></li> 154 <li><label><input type="radio" name="caddie_action" value="empty_selected" /> {lang:Take selected elements out of caddie}</label></li> 155 <!-- END in_caddie --> 156 157 <!-- BEGIN not_in_caddie --> 158 <li><label><input type="radio" name="caddie_action" value="add_selected" /> {lang:Add selected elements to caddie}</label></li> 159 <!-- END not_in_caddie --> 160 161 </ul> 162 163 <p><input type="submit" value="{L_SUBMIT}" name="submit_caddie" {TAG_INPUT_ENABLED}/></p> 183 164 184 165 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.