Changeset 17290
- Timestamp:
- Aug 1, 2012, 7:00:07 PM (12 years ago)
- Location:
- branches/2.4/admin
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/admin/batch_manager.php
r16929 r17290 51 51 { 52 52 // echo '<pre>'; print_r($_POST); echo '</pre>'; 53 53 unset($_REQUEST['start']); // new photo set must reset the page 54 54 $_SESSION['bulk_manager_filter'] = array(); 55 55 … … 336 336 // and $page['nb_images'] next elements 337 337 338 if (!isset($_ GET['start'])339 or !is_numeric($_ GET['start'])340 or $_ GET['start'] < 0341 or (isset($_ GET['display']) and 'all' == $_GET['display']))338 if (!isset($_REQUEST['start']) 339 or !is_numeric($_REQUEST['start']) 340 or $_REQUEST['start'] < 0 341 or (isset($_REQUEST['display']) and 'all' == $_REQUEST['display'])) 342 342 { 343 343 $page['start'] = 0; … … 345 345 else 346 346 { 347 $page['start'] = $_ GET['start'];347 $page['start'] = $_REQUEST['start']; 348 348 } 349 349 -
branches/2.4/admin/batch_manager_global.php
r14143 r17290 473 473 'selection' => $collection, 474 474 'all_elements' => $page['cat_elements_id'], 475 'START' => $page['start'], 475 476 'U_DISPLAY'=>$base_url.get_query_string_diff(array('display')), 476 'F_ACTION'=>$base_url.get_query_string_diff(array('cat' )),477 'F_ACTION'=>$base_url.get_query_string_diff(array('cat','start')), 477 478 ) 478 479 ); … … 733 734 } 734 735 735 736 736 $query = ' 737 737 SELECT id,path,representative_ext,file,filesize,level,name,width,height,rotation … … 767 767 $result = pwg_query($query); 768 768 769 $thumb_params = ImageStdParams::get_by_type(IMG_THUMB); 769 770 // template thumbnail initialization 770 771 while ($row = pwg_db_fetch_assoc($result)) … … 773 774 $src_image = new SrcImage($row); 774 775 775 $t itle = render_element_name($row);776 if ($t itle != get_name_from_file($row['file']))777 { 778 $t itle.= ' ('.$row['file'].')';776 $ttitle = render_element_name($row); 777 if ($ttitle != get_name_from_file($row['file'])) 778 { 779 $ttitle.= ' ('.$row['file'].')'; 779 780 } 780 781 781 782 $template->append( 782 'thumbnails', 783 'thumbnails', array_merge($row, 783 784 array( 784 'ID' => $row['id'], 785 'TN_SRC' => DerivativeImage::url(IMG_THUMB, $src_image), 786 'FILE' => $row['file'], 787 'TITLE' => $title, 788 'LEVEL' => $row['level'], 785 'thumb' => new DerivativeImage($thumb_params, $src_image), 786 'TITLE' => $ttitle, 789 787 'FILE_SRC' => DerivativeImage::url(IMG_LARGE, $src_image), 790 788 'U_EDIT' => get_root_url().'admin.php?page=photo-'.$row['id'], 791 789 ) 792 ); 793 } 790 )); 791 } 792 $template->assign('thumb_params', $thumb_params); 794 793 } 795 794 -
branches/2.4/admin/element_set_ranks.php
r14205 r17290 240 240 $sort_fields = array( 241 241 '' => '', 242 'file' => l10n(' file name, A → Z'),243 'file DESC' => l10n(' file name, Z → A'),244 'name' => l10n(' photo title, A → Z'),245 'name DESC' => l10n(' photo title, Z → A'),246 'date_creation DESC' => l10n(' date created, new → old'),247 'date_creation' => l10n(' date created, old → new'),248 'date_available DESC' => l10n(' date posted, new → old'),249 'date_available' => l10n(' date posted, old → new'),250 'rating_score DESC' => l10n(' rating score, high → low'),251 'rating_score' => l10n(' rating score, low → high'),252 'hit DESC' => l10n(' visits, high → low'),253 'hit' => l10n(' visits, low → high'),254 'id' => l10n(' numeric identifier, 1 → 9'),255 'id DESC' => l10n(' numeric identifier, 9 → 1'),256 'rank' => l10n(' manual sort order'),242 'file' => l10n('File name, A → Z'), 243 'file DESC' => l10n('File name, Z → A'), 244 'name' => l10n('Photo title, A → Z'), 245 'name DESC' => l10n('Photo title, Z → A'), 246 'date_creation DESC' => l10n('Date created, new → old'), 247 'date_creation' => l10n('Date created, old → new'), 248 'date_available DESC' => l10n('Date posted, new → old'), 249 'date_available' => l10n('Date posted, old → new'), 250 'rating_score DESC' => l10n('Rating score, high → low'), 251 'rating_score' => l10n('Rating score, low → high'), 252 'hit DESC' => l10n('Visits, high → low'), 253 'hit' => l10n('Visits, low → high'), 254 'id' => l10n('Numeric identifier, 1 → 9'), 255 'id DESC' => l10n('Numeric identifier, 9 → 1'), 256 'rank' => l10n('Manual sort order'), 257 257 ); 258 258 -
branches/2.4/admin/themes/clear/theme.css
r16391 r17290 98 98 UL.thumbnails span.wrap2:hover { background-color:#7CBA0F; color:#999; } 99 99 UL.thumbnails span.wrap2 { 100 padding: 4px;101 border-radius: 4px;102 100 background-color:#ddd; 103 101 } … … 112 110 113 111 .content ul.categoryActions a img { margin-left: 10px; } 114 ul.thumbnails input { border:3px double #666;color:#666; font-size:10px; margin:0; background-color:#bbb; text-align: center;}112 ul.thumbnails input { color:#666; font-size:10px; margin:0; background-color:#bbb; text-align: center;} 115 113 INPUT.bigbutton:hover { background-color: #ddd; color:#0cc; border: 0; } 116 114 .throw { font-size: 120%; line-height: 26px; padding-top: 10px; font-weight: bold; } -
branches/2.4/admin/themes/default/template/batch_manager_global.tpl
r13646 r17290 51 51 }); 52 52 } 53 $('ul.thumbnails').enableShiftClick(); 53 54 }); 54 55 {/literal}{/footer_script} … … 482 483 }); 483 484 484 jQuery(window).load(function() { 485 var max_w=0, max_h=0; 486 $(".thumbnails img").each(function () { 487 max_w = Math.max(max_w, $(this).width() ); 488 max_h = Math.max(max_h, $(this).height() ); 489 }); 490 max_w += 10; 491 max_h += 35; 492 $("ul.thumbnails span, ul.thumbnails label").css('width', max_w+'px').css('height', max_h+'px'); 493 $('ul.thumbnails').enableShiftClick(); 494 }); 485 495 486 {/literal}{/footer_script} 496 487 … … 500 491 501 492 <form action="{$F_ACTION}" method="post"> 493 <input type="hidden" name="start" value="{$START}"> 502 494 503 495 <fieldset> … … 511 503 <select name="filter_prefilter"> 512 504 {foreach from=$prefilters item=prefilter} 513 <option value="{$prefilter.ID}" {if $filter.prefilter eq $prefilter.ID}selected="selected"{/if}>{$prefilter.NAME}</option>505 <option value="{$prefilter.ID}" {if isset($filter.prefilter) && $filter.prefilter eq $prefilter.ID}selected="selected"{/if}>{$prefilter.NAME}</option> 514 506 {/foreach} 515 507 </select> … … 529 521 {'Tags'|@translate} 530 522 <select id="tagsFilter" name="filter_tags"> 531 { foreach from=$filter_tags item=tag}523 {if isset($filter_tags)}{foreach from=$filter_tags item=tag} 532 524 <option value="{$tag.id}">{$tag.name}</option> 533 {/foreach} 525 {/foreach}{/if} 534 526 </select> 535 527 <label><span><input type="radio" name="tag_mode" value="AND" {if !isset($filter.tag_mode) or $filter.tag_mode eq 'AND'}checked="checked"{/if}> {'All tags'|@translate}</span></label> … … 547 539 </ul> 548 540 549 <p class="actionButtons" style="">541 <p class="actionButtons"> 550 542 <select id="addFilter"> 551 543 <option value="-1">{'Add a filter'|@translate}</option> … … 587 579 </p> 588 580 589 <ul class="thumbnails"> 590 {foreach from=$thumbnails item=thumbnail} 591 {if in_array($thumbnail.ID, $selection)} 592 {assign var='isSelected' value=true} 593 {else} 594 {assign var='isSelected' value=false} 595 {/if} 596 <li> 597 <span class="wrap1"> 598 <label> 599 <span class="wrap2{if $isSelected} thumbSelected{/if}"> 600 <div class="actions"><a href="{$thumbnail.FILE_SRC}" class="preview-box">{'Zoom'|@translate}</a> · <a href="{$thumbnail.U_EDIT}" target="_blank">{'Edit'|@translate}</a></div> 601 {if $thumbnail.LEVEL > 0} 602 <em class="levelIndicatorB">{$pwg->l10n($pwg->sprintf('Level %d',$thumbnail.LEVEL))}</em> 603 <em class="levelIndicatorF" title="{'Who can see these photos?'|@translate} : ">{$pwg->l10n($pwg->sprintf('Level %d',$thumbnail.LEVEL))}</em> 604 {/if} 605 <span> 606 <img src="{$thumbnail.TN_SRC}" alt="{$thumbnail.FILE}" title="{$thumbnail.TITLE|@escape:'html'}" class="thumbnail"> 607 </span> 608 </span> 609 <input type="checkbox" name="selection[]" value="{$thumbnail.ID}" {if $isSelected}checked="checked"{/if}> 610 </label> 611 </span> 612 </li> 613 {/foreach} 614 </ul> 581 <ul class="thumbnails"> 582 {html_style} 583 UL.thumbnails SPAN.wrap2{ldelim} 584 width: {$thumb_params->max_width()+2}px; 585 } 586 UL.thumbnails SPAN.wrap2 {ldelim} 587 height: {$thumb_params->max_height()+25}px; 588 } 589 {/html_style} 590 {foreach from=$thumbnails item=thumbnail} 591 {assign var='isSelected' value=$thumbnail.id|@in_array:$selection} 592 <li> 593 <span class="wrap1"> 594 <label> 595 <input type="checkbox" name="selection[]" value="{$thumbnail.id}" {if $isSelected}checked="checked"{/if}> 596 <span class="wrap2{if $isSelected} thumbSelected{/if}"> 597 <div class="actions"><a href="{$thumbnail.FILE_SRC}" class="preview-box">{'Zoom'|@translate}</a> · <a href="{$thumbnail.U_EDIT}" target="_blank">{'Edit'|@translate}</a></div> 598 {if $thumbnail.level > 0} 599 <em class="levelIndicatorB">{$pwg->l10n($pwg->sprintf('Level %d',$thumbnail.level))}</em> 600 <em class="levelIndicatorF" title="{'Who can see these photos?'|@translate} : ">{$pwg->l10n($pwg->sprintf('Level %d',$thumbnail.level))}</em> 601 {/if} 602 <img src="{$thumbnail.thumb->get_url()}" alt="{$thumbnail.file}" title="{$thumbnail.TITLE|@escape:'html'}" {$thumbnail.thumb->get_size_htm()}> 603 </span> 604 </label> 605 </span> 606 </li> 607 {/foreach} 608 </ul> 615 609 616 610 {if !empty($navbar) } … … 714 708 <!-- del_tags --> 715 709 <div id="action_del_tags" class="bulkAction"> 716 { $DEL_TAG_SELECTION}710 {if !empty($DEL_TAG_SELECTION)}{$DEL_TAG_SELECTION}{/if} 717 711 </div> 718 712 -
branches/2.4/admin/themes/default/theme.css
r17008 r17290 43 43 background-color: #333; 44 44 color: #666; 45 -moz-border-radius: 5px;45 border-radius: 5px; 46 46 display: block; 47 width: 1 04px;48 height: 1 04px;47 width: 120px; 48 height: 120px; 49 49 cursor: move; 50 margin: 10px; 50 margin: 4px; 51 overflow: hidden; 51 52 } 52 53 .clipwrapper { … … 59 60 position:absolute; 60 61 } 61 UL.thumbnails li.rank-of-image input { 62 } 62 63 63 UL.thumbnails SPAN.wrap1 { 64 64 margin: 5px; … … 72 72 display: table-cell; /* block prevents vertical-align here */ 73 73 vertical-align: middle; /* Ok with Opera and Geko not IE6 */ 74 } 75 UL.thumbnails LABEL { display: block; border-bottom: none; } 74 border-radius: 4px; 75 } 76 UL.thumbnails LABEL { 77 position: relative; 78 display: block; 79 border-bottom: none; 80 } 81 76 82 UL.thumbnails IMG { 77 margin-bottom: -4px; /* why ??? something wrong with Geko and Opera ignored by IE6*/ 78 } 79 UL.thumbnails LABEL { position: relative; } 83 vertical-align: middle; 84 margin-top: 12px; 85 } 86 80 87 UL.thumbnails INPUT { 81 position: relative; /* <= Opera can handle relative here */ 82 top: -20px; 83 } 84 :root UL.thumbnails INPUT { /* hide from Opera */ 85 position: absolute; /* <= Opera hide 1 checkbox over 2 !!! */ 88 position: absolute; 86 89 left: 2px; top: 2px; 87 90 } 88 91 UL.thumbnails .levelIndicatorB { 89 display:block; position:absolute; z-index:100; padding:0px 0 0 14px; color:black; font-weight:bold; font-size:120%;92 display:block; position:absolute; z-index:100; padding:7px 0 0 2px; color:black; font-weight:bold; font-size:120%; 90 93 } 91 94 UL.thumbnails .levelIndicatorF { 92 display:block; position:absolute; z-index:101; padding:1px 0 0 15px; color:white; font-weight:bold; font-size:120%;95 display:block; position:absolute; z-index:101; padding:8px 0 0 3px; color:white; font-weight:bold; font-size:120%; 93 96 } 94 97 … … 298 301 font-weight: normal; 299 302 font-style:italic; 300 padding: 8px 0 0 10px;303 padding: 2px 0 0 10px; 301 304 margin: 0; 302 305 float:left; … … 307 310 #pwgHead A:hover {color:#fff;border-bottom:1px solid #fff} 308 311 309 #headActions {float:right; height: 46px; line-height:46px; margin-right:10px;}312 #headActions {float:right; height:36px; line-height:36px; margin-right:10px;} 310 313 311 314 A { … … 590 593 #pwgHead { 591 594 background-color:#464646; 592 height:46px;595 height: 36px; 593 596 } 594 597 … … 604 607 bottom:0; 605 608 width:100%; 606 height:46px; 607 background: url(images/logo.png) no-repeat 7px 8px; 608 background-color:#464646; 609 height: 34px; 610 line-height: 34px; 611 background-repeat: no-repeat; 612 background-position: 7px 2px; 613 background-color:#464646; 609 614 color:#aaa; 610 line-height:46px;611 615 } 612 616 … … 768 772 #thePopuphelpPage #pwgHead {display:none} 769 773 #thePopuphelpPage #footer {display:none} 770 771 /* Set some sizes according to your maximum thumbnail width and height */772 UL.thumbnails SPAN,773 UL.thumbnails SPAN.wrap2 A,774 UL.thumbnails LABEL {775 width: 140px; /* max thumbnail width + 2px */776 }777 UL.thumbnails SPAN.wrap2 {778 height: 140px; /* max thumbnail height + 2px */779 }780 781 774 782 775 .themeBox {display:inline-table; text-align:center; height:192px; background-color:#eee; margin:5px; -moz-border-radius:5px; overflow:hidden; } … … 979 972 #batchManagerGlobal ul.thumbnails div.actions a:hover {border-color:#fff;} 980 973 #batchManagerGlobal ul.thumbnails span.wrap1:hover div.actions {display:block;} 981 #batchManagerGlobal #selectedMessage {padding:5px; -moz-border-radius:5px;-webkit-border-radius:5px;}974 #batchManagerGlobal #selectedMessage {padding:5px; border-radius:5px;} 982 975 #batchManagerGlobal #selectSet a {border-bottom:1px dotted;} 983 976 #batchManagerGlobal #applyOnDetails {font-style:italic;} -
branches/2.4/admin/themes/roma/theme.css
r16391 r17290 65 65 UL.thumbnails span.wrap2:hover { background-color#7CBA0F; color:#666; } 66 66 UL.thumbnails span.wrap2 { 67 padding: 4px;68 border-radius: 4px;69 67 background-color:#333; 70 68 } … … 81 79 .tagSelected LABEL {color:#000;} 82 80 .content ul.categoryActions a img { margin-left: 10px; } 83 ul.thumbnails input { border:3px double #999;color:#999; font-size:10px; margin:0; background-color:#444; text-align: center;}81 ul.thumbnails input { color:#999; font-size:10px; margin:0; background-color:#444; text-align: center;} 84 82 INPUT[type="submit"]:hover , INPUT[type="reset"]:hover { cursor: pointer; } 85 83 INPUT.bigbutton:hover { background-color: #222; color:#f33; border: 0; }
Note: See TracChangeset
for help on using the changeset viewer.