From c78c9760cadcabeb6b7d9ba44a7fad9521e707fc Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 11 Sep 2012 02:47:32 +0000 Subject: fix batch manager unit photo titles with quotes (+ send all photo data to template) fix batch manager global fix tiptip selector for thumbs git-svn-id: http://piwigo.org/svn/trunk@17856 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/batch_manager_unit.php | 12 ++++---- .../default/template/batch_manager_global.tpl | 2 +- .../themes/default/template/batch_manager_unit.tpl | 32 +++++++++++----------- 3 files changed, 23 insertions(+), 23 deletions(-) (limited to 'admin') diff --git a/admin/batch_manager_unit.php b/admin/batch_manager_unit.php index d6702db21..42046481c 100644 --- a/admin/batch_manager_unit.php +++ b/admin/batch_manager_unit.php @@ -198,7 +198,7 @@ if (count($page['cat_elements_id']) > 0) $query = ' -SELECT id,path,representative_ext,name,date_creation,comment,author,level,file +SELECT * FROM '.IMAGES_TABLE; if ($is_category) @@ -263,23 +263,23 @@ SELECT } $template->append( - 'elements', + 'elements', array_merge($row, array( 'ID' => $row['id'], 'TN_SRC' => DerivativeImage::url(IMG_THUMB, $src_image), 'FILE_SRC' => DerivativeImage::url(IMG_LARGE, $src_image), 'LEGEND' => $legend, 'U_EDIT' => get_root_url().'admin.php?page=photo-'.$row['id'], - 'NAME' => !empty($row['name'])?$row['name']:'', - 'AUTHOR' => !empty($row['author'])?htmlspecialchars($row['author']):'', + 'NAME' => htmlspecialchars(@$row['name']), + 'AUTHOR' => htmlspecialchars(@$row['author']), 'LEVEL' => !empty($row['level'])?$row['level']:'0', - 'DESCRIPTION' => !empty($row['comment'])?$row['comment']:'', + 'DESCRIPTION' => htmlspecialchars(@$row['comment']), 'DATE_CREATION_YEAR' => $year, 'DATE_CREATION_MONTH' => (int)$month, 'DATE_CREATION_DAY' => (int)$day, 'TAGS' => $tag_selection, ) - ); + )); } $template->assign('ELEMENT_IDS', implode(',', $element_ids)); diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index d314f0c46..ac6e84623 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -238,7 +238,7 @@ $(document).ready(function() { } } - $('img.thumbnail').tipTip({ + $('.thumbnails img').tipTip({ 'delay' : 0, 'fadeIn' : 200, 'fadeOut' : 200 diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index 969a71e21..c78ac26dc 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -11,7 +11,7 @@ var prefix = ""; {else} prefix = ", "; {/if} - tag_boxes_selector = tag_boxes_selector + prefix + "#tags-" + {$element.ID}; + tag_boxes_selector = tag_boxes_selector + prefix + "#tags-" + {$element.id}; {/foreach} jQuery(document).ready(function() {ldelim} @@ -55,54 +55,54 @@ jQuery(document).ready(function() {ldelim} {$element.LEGEND} - +
- {'Informations'|@translate} + {'Edit'|@translate}
- + - + @@ -112,7 +112,7 @@ jQuery(document).ready(function() {ldelim} - +
{'Title'|@translate}
{'Author'|@translate}
{'Creation date'|@translate} - - + + - {section name=day start=1 loop=32} {/section} - {html_options options=$month_list selected=$element.DATE_CREATION_MONTH} - - + {footer_script} - pwg_initialization_datepicker("#date_creation_day-{$element.ID}", "#date_creation_month-{$element.ID}", "#date_creation_year-{$element.ID}", "#date_creation_linked_date-{$element.ID}", "#date_creation_action_set-{$element.ID}"); + pwg_initialization_datepicker("#date_creation_day-{$element.id}", "#date_creation_month-{$element.id}", "#date_creation_year-{$element.id}", "#date_creation_linked_date-{$element.id}", "#date_creation_action_set-{$element.id}"); {/footer_script}
{'Who can see this photo?'|@translate} - {html_options options=$level_options selected=$element.LEVEL} {'Tags'|@translate} - {foreach from=$element.TAGS item=tag} {/foreach} @@ -123,7 +123,7 @@ jQuery(document).ready(function() {ldelim}
{'Description'|@translate}
-- cgit v1.2.3