aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-08-31 23:05:19 +0000
committergweltas <gweltas@piwigo.org>2004-08-31 23:05:19 +0000
commitf13b345dcfcab905a091d419073e0550d7e7cb1b (patch)
tree94741cdffdf42062341762d3e856e7ae5c77d48e
parenta8cb550b92ff3230b5b062d85bebccdca75580de (diff)
Template migration : picture_modify.php
git-svn-id: http://piwigo.org/svn/trunk@509 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/infos_images.php7
-rw-r--r--admin/picture_modify.php273
-rw-r--r--language/en_UK.iso-8859-1/common.lang.php23
-rw-r--r--template/default/admin/picture_modify.tpl92
-rw-r--r--template/default/admin/picture_modify.vtp107
5 files changed, 197 insertions, 305 deletions
diff --git a/admin/infos_images.php b/admin/infos_images.php
index ad620286f..fdd298318 100644
--- a/admin/infos_images.php
+++ b/admin/infos_images.php
@@ -290,11 +290,7 @@ if ( sizeof( $errors ) != 0 )
//------------------------------------------------------------------------ form
$array_cat_directories = array();
-
- $infos = array( 'id','file','comment','author','tn_ext','name'
- ,'date_creation','keywords','storage_category_id'
- ,'category_id' );
-
+
$query = 'SELECT * FROM '.IMAGES_TABLE;
$query.= ' INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id = image_id';
$query.= ' WHERE category_id = '.$page['cat'];
@@ -304,7 +300,6 @@ if ( sizeof( $errors ) != 0 )
$result = mysql_query( $query );
while ( $row = mysql_fetch_array( $result ) )
{
- foreach ($infos as $info) { if (!isset($row[$info])) $row[$info] = ''; }
if ( !isset( $array_cat_directories[$row['storage_category_id']] ) )
{
$array_cat_directories[$row['storage_category_id']] =
diff --git a/admin/picture_modify.php b/admin/picture_modify.php
index 2ff5e042f..5f5900727 100644
--- a/admin/picture_modify.php
+++ b/admin/picture_modify.php
@@ -25,20 +25,23 @@
// | USA. |
// +-----------------------------------------------------------------------+
-include_once( './admin/include/isadmin.inc.php' );
+if( !defined("PHPWG_ROOT_PATH") )
+{
+ die ("Hacking attempt!");
+}
+include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
+
//--------------------------------------------------------- update informations
$errors = array();
// first, we verify whether there is a mistake on the given creation date
-if ( isset( $_POST['creation_date'] ) and $_POST['creation_date'] != '' )
+if ( isset( $_POST['date_creation'] ) and !empty($_POST['date_creation']))
{
- if ( !check_date_format( $_POST['creation_date'] ) )
+ if ( !check_date_format( $_POST['date_creation'] ) )
array_push( $errors, $lang['err_date'] );
}
if ( isset( $_POST['submit'] ) )
{
- $query = 'UPDATE '.PREFIX_TABLE.'images';
-
- $query.= ' SET name = ';
+ $query = 'UPDATE '.IMAGES_TABLE.' SET name = ';
if ( $_POST['name'] == '' )
$query.= 'NULL';
else
@@ -57,9 +60,9 @@ if ( isset( $_POST['submit'] ) )
$query.= "'".htmlentities($_POST['comment'],ENT_QUOTES)."'";
$query.= ', date_creation = ';
- if ( check_date_format( $_POST['creation_date'] ) )
- $query.= "'".date_convert( $_POST['creation_date'] )."'";
- else if ( $_POST['creation_date'] == '' )
+ if ( check_date_format( $_POST['date_creation'] ) )
+ $query.= "'".date_convert( $_POST['date_creation'] )."'";
+ else if ( $_POST['date_creation'] == '' )
$query.= 'NULL';
$query.= ', keywords = ';
@@ -82,8 +85,8 @@ if ( isset( $_POST['submit'] ) )
// make the picture representative of a category ?
$query = 'SELECT DISTINCT(category_id) as category_id';
$query.= ',representative_picture_id';
- $query.= ' FROM '.PREFIX_TABLE.'image_category AS ic';
- $query.= ', '.PREFIX_TABLE.'categories AS c';
+ $query.= ' FROM '.IMAGE_CATEGORY_TABLE.' AS ic';
+ $query.= ', '.CATEGORIES_TABLE.' AS c';
$query.= ' WHERE c.id = ic.category_id';
$query.= ' AND image_id = '.$_GET['image_id'];
$query.= ';';
@@ -95,7 +98,7 @@ if ( isset( $_POST['submit'] ) )
// if this picture was already the representative one)
if ( isset($_POST['representative-'.$row['category_id']]) )
{
- $query = 'UPDATE '.PREFIX_TABLE.'categories';
+ $query = 'UPDATE '.CATEGORIES_TABLE;
$query.= ' SET representative_picture_id = '.$_GET['image_id'];
$query.= ' WHERE id = '.$row['category_id'];
$query.= ';';
@@ -106,7 +109,7 @@ if ( isset( $_POST['submit'] ) )
else if ( isset( $row['representative_picture_id'] )
and $row['representative_picture_id'] == $_GET['image_id'] )
{
- $query = 'UPDATE '.PREFIX_TABLE.'categories';
+ $query = 'UPDATE '.CATEGORIES_TABLE;
$query.= ' SET representative_picture_id = NULL';
$query.= ' WHERE id = '.$row['category_id'];
$query.= ';';
@@ -124,8 +127,7 @@ if ( isset( $_POST['submit'] ) )
}
else
{
- $query = 'SELECT id';
- $query.= ' FROM '.PREFIX_TABLE.'categories';
+ $query = 'SELECT id FROM '.CATEGORIES_TABLE;
$query.= ' WHERE id = '.$_POST['associate'];
$query.= ';';
if ( mysql_num_rows( mysql_query( $query ) ) == 0 )
@@ -136,7 +138,7 @@ if ( isset( $_POST['submit'] ) )
and $_POST['associate'] != ''
and count( $errors ) == 0 )
{
- $query = 'INSERT INTO '.PREFIX_TABLE.'image_category';
+ $query = 'INSERT INTO '.IMAGE_CATEGORY_TABLE;
$query.= ' (category_id,image_id) VALUES ';
$query.= '('.$_POST['associate'].','.$_GET['image_id'].')';
$query.= ';';
@@ -146,8 +148,7 @@ if ( isset( $_POST['submit'] ) )
}
// dissociate any category ?
// retrieving all the linked categories
- $query = 'SELECT DISTINCT(category_id) as category_id';
- $query.= ' FROM '.PREFIX_TABLE.'image_category';
+ $query = 'SELECT DISTINCT(category_id) as category_id FROM '.IMAGE_CATEGORY_TABLE;
$query.= ' WHERE image_id = '.$_GET['image_id'];
$query.= ';';
$result = mysql_query( $query );
@@ -155,7 +156,7 @@ if ( isset( $_POST['submit'] ) )
{
if ( isset($_POST['dissociate-'.$row['category_id']]) )
{
- $query = 'DELETE FROM '.PREFIX_TABLE.'image_category';
+ $query = 'DELETE FROM '.IMAGE_CATEGORY_TABLE;
$query.= ' WHERE image_id = '.$_GET['image_id'];
$query.= ' AND category_id = '.$row['category_id'];
$query.= ';';
@@ -169,194 +170,110 @@ if ( isset( $_POST['submit'] ) )
synchronize_all_users();
}
}
-//----------------------------------------------------- template initialization
-$sub = $vtp->Open(
- './template/'.$user['template'].'/admin/picture_modify.vtp' );
-$tpl = array( 'submit','errors_title','picmod_update','picmod_back',
- 'default','file','size','filesize','registration_date',
- 'author','creation_date','keywords','comment', 'upload_name',
- 'dissociate','categories','infoimage_associate',
- 'cat_image_info','category_representative' );
-templatize_array( $tpl, 'lang', $sub );
-$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
-//-------------------------------------------------------------- errors display
-if ( count( $errors ) != 0 )
-{
- $vtp->addSession( $sub, 'errors' );
- foreach ( $errors as $error ) {
- $vtp->addSession( $sub, 'li' );
- $vtp->setVar( $sub, 'li.content', $error );
- $vtp->closeSession( $sub, 'li' );
- }
- $vtp->closeSession( $sub, 'errors' );
-}
-//-------------------------------------------- displaying informations and form
-$action = './admin.php?'.$_SERVER['QUERY_STRING'];
-$vtp->setVar( $sub, 'form_action', $action );
// retrieving direct information about picture
-$infos = array( 'file','date_available','date_creation','tn_ext','name'
- ,'filesize','width','height','author','comment','keywords'
- ,'storage_category_id' );
-$query = 'SELECT '. implode( ',', $infos );
-$query.= ' FROM '.PREFIX_TABLE.'images';
+$query = 'SELECT * FROM '.IMAGES_TABLE;
$query.= ' WHERE id = '.$_GET['image_id'];
$query.= ';';
$row = mysql_fetch_array( mysql_query( $query ) );
-foreach ( $infos as $info ) {
- if ( !isset( $row[$info] ) ) $row[$info] = '';
-}
+$title = empty($row['name'])?str_replace( '_',' ',get_filename_wo_extension($row['file']) ):$row['name'];
+// Navigation path
+$current_category = get_cat_info($row['storage_category_id']);
+$dir_path = get_cat_display_name($current_category['name'], '-&gt;', '');
-// picture title
-if ( $row['name'] == '' )
-{
- $title = str_replace( '_',' ',get_filename_wo_extension($row['file']) );
-}
-else
-{
- $title = $row['name'];
-}
-$vtp->setVar( $sub, 'title', $title );
-$vtp->setVar( $sub, 'f_file', $row['file'] );
-$vtp->setVar( $sub, 'f_size', $row['width'].' * '.$row['height'] );
-$vtp->setVar( $sub, 'f_filesize', $row['filesize'].' KB' );
-$vtp->setVar( $sub, 'f_registration_date',format_date($row['date_available']));
-$default_name = str_replace( '_',' ',get_filename_wo_extension($row['file']) );
-$vtp->setVar( $sub, 'default_name', $default_name );
-// if this form is displayed after an unsucceeded submit, we have to display
-// the values filled by the user (wright or wrong).
-if ( count( $errors ) > 0 )
-{
- $name = $_POST['name'];
- $author = $_POST['author'];
- $creation_date = $_POST['creation_date'];
- $keywords = $_POST['keywords'];
- $comment = $_POST['comment'];
-}
-else
-{
- $name = $row['name'];
- $author = $row['author'];
- $creation_date = date_convert_back( $row['date_creation'] );
- $keywords = $row['keywords'];
- $comment = $row['comment'];
-}
-$vtp->setVar( $sub, 'f_name', $name );
-$vtp->setVar( $sub, 'f_author', $author );
-$vtp->setVar( $sub, 'f_creation_date', $creation_date );
-$vtp->setVar( $sub, 'f_keywords', $keywords );
-$vtp->setVar( $sub, 'f_comment', $comment );
-// retrieving directory where picture is stored (for displaying the
-// thumbnail)
$thumbnail_url = get_complete_dir( $row['storage_category_id'] );
-$result = get_cat_info( $row['storage_category_id'] );
-$cat_name = get_cat_display_name( $result['name'], ' &gt; ', '' );
-$vtp->setVar( $sub, 'dir', $cat_name );
-if ( $result['site_id'] == 1 ) $thumbnail_url = '.'.$thumbnail_url;
$file_wo_ext = get_filename_wo_extension( $row['file'] );
$thumbnail_url.= '/thumbnail/';
$thumbnail_url.= $conf['prefix_thumbnail'].$file_wo_ext.'.'.$row['tn_ext'];
-$vtp->setVar( $sub, 'thumbnail_url', $thumbnail_url );
-// storage category is linked by default
-$vtp->addSession( $sub, 'linked_category' );
-$vtp->setVar( $sub, 'linked_category.name', $cat_name );
-$url = '../picture.php?image_id='.$_GET['image_id'];
-$url.= '&amp;cat='.$row['storage_category_id'];
-$vtp->setVar( $sub, 'linked_category.url',add_session_id( $url));
-$url = './admin.php?page=infos_images&amp;cat_id='.$row['storage_category_id'];
-$vtp->setVar( $sub, 'linked_category.infos_images_link',add_session_id( $url));
-if ( $result['status'] == 'private' )
-{
- $private_string = '<span style="color:red;font-weight:bold;">';
- $private_string.= $lang['private'].'</span>';
- $vtp->setVar( $sub, 'linked_category.private', $private_string );
-}
-if ( !$result['visible'] )
-{
- $invisible_string = '<span style="color:red;">';
- $invisible_string.= $lang['cat_invisible'].'</span>';
- $vtp->setVar( $sub, 'linked_category.invisible', $invisible_string );
-}
-$vtp->setVar( $sub, 'linked_category.id', $row['storage_category_id'] );
-if ( $result['representative_picture_id'] == $_GET['image_id'] )
-{
- $vtp->setVar( $sub, 'linked_category.representative_checked',
- ' checked="checked"' );
-}
-$vtp->closeSession( $sub, 'linked_category' );
+$url_img = PHPWG_ROOT_PATH.'picture.php?image_id='.$_GET['image_id'];
+$url_img .= '&amp;cat='.$row['storage_category_id'];
+$date = isset($_POST['date_creation']) && empty($errors)
+ ?$_POST['date_creation']:date_convert_back($row['date_creation']);
+
// retrieving all the linked categories
$query = 'SELECT DISTINCT(category_id) as category_id,status,visible';
$query.= ',representative_picture_id';
-$query.= ' FROM '.PREFIX_TABLE.'image_category';
-$query.= ','.PREFIX_TABLE.'categories';
+$query.= ' FROM '.IMAGE_CATEGORY_TABLE.','.CATEGORIES_TABLE;
$query.= ' WHERE image_id = '.$_GET['image_id'];
-$query.= ' AND category_id != '.$row['storage_category_id'];
-$query.= ' AND category_id = id';
-$query.= ';';
+$query.= ' AND category_id = id;';
$result = mysql_query( $query );
-while ( $row = mysql_fetch_array( $result ) )
+$categories = '';
+while ( $cat_row = mysql_fetch_array( $result ) )
{
- $vtp->addSession( $sub, 'linked_category' );
- $vtp->setVar( $sub, 'linked_category.id', $row['category_id'] );
-
- $vtp->addSession( $sub, 'checkbox' );
- $vtp->setVar( $sub, 'checkbox.id', $row['category_id'] );
- $vtp->closeSession( $sub, 'checkbox' );
-
- $cat_infos = get_cat_info( $row['category_id'] );
+ $cat_infos = get_cat_info( $cat_row['category_id'] );
$cat_name = get_cat_display_name( $cat_infos['name'], ' &gt; ', '' );
- $vtp->setVar( $sub, 'linked_category.name', $cat_name );
-
- $url = '../picture.php?image_id='.$_GET['image_id'];
- $url.= '&amp;cat='.$row['category_id'];
- $vtp->setVar( $sub, 'linked_category.url',add_session_id( $url));
-
- $url = './admin.php?page=infos_images&amp;cat_id='.$row['category_id'];
- $vtp->setVar( $sub, 'linked_category.infos_images_link',
- add_session_id( $url));
-
- if ( $row['status'] == 'private' )
- {
- $private_string = '<span style="color:red;font-weight:bold;">';
- $private_string.= $lang['private'].'</span>';
- $vtp->setVar( $sub, 'linked_category.private', $private_string );
- }
-
- if ( !get_boolean( $row['visible'] ) )
- {
- $invisible_string = '<span style="color:red;">';
- $invisible_string.= $lang['cat_invisible'].'</span>';
- $vtp->setVar( $sub, 'linked_category.invisible', $invisible_string );
- }
+ $categories.='<option value="'.$cat_row['category_id'].'">'.$cat_name.'</option>';
+}
- if ( isset( $row['representative_picture_id'] )
- and $row['representative_picture_id'] == $_GET['image_id'] )
+//----------------------------------------------------- template initialization
+$template->set_filenames( array('picture_modify'=>'admin/picture_modify.tpl') );
+$template->assign_vars(array(
+ 'TITLE_IMG'=>$title,
+ 'DIR_IMG'=>$dir_path,
+ 'FILE_IMG'=>$row['file'],
+ 'TN_URL_IMG'=>$thumbnail_url,
+ 'URL_IMG'=>add_session_id( $url_img ),
+ 'NAME_IMG'=>isset($_POST['name'])?$_POST['name']:$row['name'],
+ 'DEFAULT_NAME_IMG'=>str_replace( '_',' ',get_filename_wo_extension($row['file']) ),
+ 'FILE_IMG'=>$row['file'],
+ 'SIZE_IMG'=>$row['width'].' * '.$row['height'],
+ 'FILESIZE_IMG'=>$row['filesize'].' KB',
+ 'REGISTRATION_DATE_IMG'=> format_date($row['date_available']),
+ 'AUTHOR_IMG'=>isset($_POST['author'])?$_POST['author']:$row['author'],
+ 'CREATION_DATE_IMG'=>$date,
+ 'KEYWORDS_IMG'=>isset($_POST['keywords'])?$_POST['keywords']:$row['keywords'],
+ 'COMMENT_IMG'=>isset($_POST['comment'])?$_POST['comment']:$row['comment'],
+ 'ASSOCIATED_CATEGORIES'=>$categories,
+
+ 'L_UPLOAD_NAME'=>$lang['upload_name'],
+ 'L_DEFAULT'=>$lang['default'],
+ 'L_FILE'=>$lang['file'],
+ 'L_SIZE'=>$lang['size'],
+ 'L_FILESIZE'=>$lang['filesize'],
+ 'L_REGISTRATION_DATE'=>$lang['registration_date'],
+ 'L_AUTHOR'=>$lang['author'],
+ 'L_CREATION_DATE'=>$lang['creation_date'],
+ 'L_KEYWORDS'=>$lang['keywords'],
+ 'L_COMMENT'=>$lang['comment'],
+ 'L_CATEGORIES'=>$lang['categories'],
+ 'L_DISSOCIATE'=>$lang['dissociate'],
+ 'L_INFOIMAGE_ASSOCIATE'=>$lang['infoimage_associate'],
+ 'L_SUBMIT'=>$lang['submit'],
+
+ 'F_ACTION'=>add_session_id(PHPWG_ROOT_PATH.'admin.php?'.$_SERVER['QUERY_STRING'])
+ ));
+
+//-------------------------------------------------------------- errors display
+if ( sizeof( $errors ) != 0 )
+{
+ $template->assign_block_vars('errors',array());
+ for ( $i = 0; $i < sizeof( $errors ); $i++ )
{
- $vtp->setVar( $sub, 'linked_category.representative_checked',
- ' checked="checked"' );
+ $template->assign_block_vars('errors.error',array('ERROR'=>$errors[$i]));
}
-
- $vtp->closeSession( $sub, 'linked_category' );
}
+
// if there are linked category other than the storage category, we show
// propose the dissociate text
if ( mysql_num_rows( $result ) > 0 )
{
- $vtp->addSession( $sub, 'dissociate' );
- $vtp->closeSession( $sub, 'dissociate' );
+ //$vtp->addSession( $sub, 'dissociate' );
+ //$vtp->closeSession( $sub, 'dissociate' );
}
// associate to another category ?
//
// We only show a List Of Values if the number of categories is less than
// $conf['max_LOV_categories']
$query = 'SELECT COUNT(id) AS nb_total_categories';
-$query.= ' FROM '.PREFIX_TABLE.'categories';
-$query.= ';';
+$query.= ' FROM '.CATEGORIES_TABLE.';';
$row = mysql_fetch_array( mysql_query( $query ) );
if ( $row['nb_total_categories'] < $conf['max_LOV_categories'] )
{
- $vtp->addSession( $sub, 'associate_LOV' );
+ $template->assign_block_vars('associate_LOV',array());
+ $template->assign_block_vars('associate_LOV.associate_cat',array(
+ ));
+ /*$vtp->addSession( $sub, 'associate_LOV' );
$vtp->addSession( $sub, 'associate_cat' );
$vtp->setVar( $sub, 'associate_cat.value', '-1' );
$vtp->setVar( $sub, 'associate_cat.content', '' );
@@ -364,15 +281,9 @@ if ( $row['nb_total_categories'] < $conf['max_LOV_categories'] )
$page['plain_structure'] = get_plain_structure( true );
$structure = create_structure( '', array() );
display_categories( $structure, '&nbsp;' );
- $vtp->closeSession( $sub, 'associate_LOV' );
-}
-// else, we only display a small text field, we suppose the administrator
-// knows the id of its category
-else
-{
- $vtp->addSession( $sub, 'associate_text' );
- $vtp->closeSession( $sub, 'associate_text' );
+ $vtp->closeSession( $sub, 'associate_LOV' );*/
}
+
//----------------------------------------------------------- sending html code
-$vtp->Parse( $handle , 'sub', $sub );
+$template->assign_var_from_handle('ADMIN_CONTENT', 'picture_modify');
?>
diff --git a/language/en_UK.iso-8859-1/common.lang.php b/language/en_UK.iso-8859-1/common.lang.php
index 45a611710..98184474e 100644
--- a/language/en_UK.iso-8859-1/common.lang.php
+++ b/language/en_UK.iso-8859-1/common.lang.php
@@ -33,7 +33,6 @@ $lang_info['direction'] = 'ltr';
$lang_info['code'] = 'en';
// Main words
-
$lang['gallery_index'] = 'Gallery index';
$lang['category'] = 'Category';
$lang['categories'] = 'Categories';
@@ -48,6 +47,16 @@ $lang['no'] = 'No';
$lang['yes'] = 'Yes';
$lang['date'] = 'Date';
$lang['description'] = 'Description';
+$lang['author'] = 'Author';
+$lang['size'] = 'Size';
+$lang['filesize'] = 'Filesize';
+$lang['file'] = 'File';
+$lang['keywords'] = 'Keywords';
+$lang['default'] = 'Default';
+
+//Properties
+$lang['registration_date'] = 'Registered on';
+$lang['creation_date'] = 'Created on';
// Form words
$lang['submit'] = 'Submit';
@@ -110,7 +119,7 @@ $lang['search_mode_or'] = 'at least one word';
$lang['search_mode_and'] = 'all the words';
$lang['search_comments'] = 'separate different words with spaces';
$lang['invalid_search'] = 'search must be done on 3 caracters or more';
-$lang['Search_author_explain'] = 'Use * comme un joker pour des recherches partielles';
+$lang['Search_author_explain'] = 'Use * as a wildcard for partial matches';
$lang['only_members'] = 'Only members can access this page';
$lang['invalid_pwd'] = 'Invalid password!';
@@ -141,12 +150,6 @@ $lang['sub-cat'] = 'subcategories';
$lang['images_available'] = 'images in this category';
$lang['total'] = 'images';
$lang['upload_picture'] = 'Upload a picture';
-$lang['registration_date'] = 'registered on';
-$lang['creation_date'] = 'created on';
-$lang['author'] = 'author';
-$lang['size'] = 'size';
-$lang['filesize'] = 'filesize';
-$lang['file'] = 'file';
$lang['generation_time'] = 'Page generated in';
$lang['favorites'] = 'Favorites';
$lang['search_result'] = 'Search results';
@@ -219,14 +222,12 @@ $lang['add'] = 'add';
$lang['dissociate'] = 'dissociate';
$lang['mandatory'] = 'obligatory';
$lang['err_date'] = 'wrong date';
-$lang['picture'] = 'picture';
$lang['IP'] = 'IP';
$lang['close'] = 'close';
$lang['open'] = 'open';
-$lang['keywords'] = 'keywords';
+
$lang['errors_title'] = 'Errors';
$lang['infos_title'] = 'Informations';
-$lang['default'] = 'default';
$lang['category_representative'] = 'representative';
$lang['special_categories'] = 'specials';
$lang['most_visited_cat_hint'] = 'displays most visited pictures';
diff --git a/template/default/admin/picture_modify.tpl b/template/default/admin/picture_modify.tpl
new file mode 100644
index 000000000..41ee6630f
--- /dev/null
+++ b/template/default/admin/picture_modify.tpl
@@ -0,0 +1,92 @@
+<!-- BEGIN errors -->
+<div class="errors">
+<ul>
+ <!-- BEGIN error -->
+ <li>{errors.error.ERROR}</li>
+ <!-- END error -->
+</ul>
+</div>
+<!-- END errors -->
+<div class="admin">{TITLE_IMG} [ {DIR_IMG} &gt; {FILE_IMG} ]</div>
+<form method="post" action="{F_ACTION}">
+ <table style="width:100%;">
+ <tr valign="top">
+ <td style="width:1px;">
+ <a href="{URL_IMG}" class="thumbnail"><img src="{TN_URL_IMG}" alt="" class="miniature" /></a>
+ </td>
+ <td>
+ <table>
+ <tr>
+ <td>{L_UPLOAD_NAME} :</td>
+ <td><input type="text" name="name" value="{NAME_IMG}" /> [ {L_DEFAULT} : {DEFAULT_NAME_IMG} ]</td>
+ </tr>
+ <tr>
+ <td>{L_FILE} :</td>
+ <td>{FILE_IMG}</td>
+ </tr>
+ <tr>
+ <td>{L_SIZE} :</td>
+ <td>{SIZE_IMG}</td>
+ </tr>
+ <tr>
+ <td>{L_FILESIZE} :</td>
+ <td>{FILESIZE_IMG}</td>
+ </tr>
+ <tr>
+ <td>{L_REGISTRATION_DATE} :</td>
+ <td>{REGISTRATION_DATE_IMG}</td>
+ </tr>
+ <tr>
+ <td>{L_AUTHOR} :</td>
+ <td><input type="text" name="author" value="{AUTHOR_IMG}" /></td>
+ </tr>
+ <tr>
+ <td>{L_CREATION_DATE} :</td>
+ <td><input type="text" name="date_creation" value="{CREATION_DATE_IMG}" /></td>
+ </tr>
+ <tr>
+ <td>{L_KEYWORDS} :</td>
+ <td><input type="text" name="keywords" value="{KEYWORDS_IMG}" size="50" /></td>
+ </tr>
+ <tr>
+ <td>{L_COMMENT} :</td>
+ <td><textarea name="comment" rows="5" cols="50" style="overflow:auto">{COMMENT_IMG}</textarea></td>
+ </tr>
+ <tr>
+ <td valign="top">{L_CATEGORIES} :</td>
+ <td>
+ <select style="width:280px" name="cat_data[]" multiple="multiple" size="5">
+ {ASSOCIATED_CATEGORIES}
+ </select>
+ </td>
+ </tr>
+ <tr><td colspan="2">&nbsp;</td></tr>
+ <tr>
+ <td>{L_INFOIMAGE_ASSOCIATE}</td>
+ <td>
+ <!-- BEGIN associate_LOV -->
+ <select name="associate">
+ <!-- BEGIN associate_cat -->
+ <option value="{associate_LOV.associate_cat.VALUE_CAT}">{associate_LOV.associate_cat.VALUE_CONTENT}</option>
+ <!-- END associate_cat -->
+ </select>
+ <!-- END associate_LOV -->
+ <!-- BEGIN associate_text -->
+ <input type="text" name="associate" />
+ <!-- END associate_text -->
+ </select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"><div style="margin-bottom:0px">&nbsp;</div></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="center">
+ <input type="submit" name="submit" value="{L_SUBMIT}" class="bouton" />
+ </td>
+ </tr>
+ </table>
+</form>
diff --git a/template/default/admin/picture_modify.vtp b/template/default/admin/picture_modify.vtp
deleted file mode 100644
index c68021091..000000000
--- a/template/default/admin/picture_modify.vtp
+++ /dev/null
@@ -1,107 +0,0 @@
-<!--VTP_errors-->
-<div class="errors">
- <div class="errors_title">{#errors_title}</div>
- <ul>
- <!--VTP_li-->
- <li>{#content}</li>
- <!--/VTP_li-->
- </ul>
-</div>
-<!--/VTP_errors-->
-<!--VTP_confirmation-->
-<div class="info">
- {#picmod_update} [ <a href="{#url}">{#picmod_back}</a> ]
-</div>
-<!--/VTP_confirmation-->
-<form method="post" action="{#form_action}">
- <table style="width:100%;">
- <tr><th colspan="2">{#title} [ {#dir} &gt; {#f_file} ]</th></tr>
- <tr>
- <td colspan="2"><div style="margin-bottom:0px">&nbsp;</div></td>
- </tr>
- <tr valign="top">
- <td style="width:1px;"><img src="{#thumbnail_url}" alt="" class="miniature" /></td>
- <td>
- <table>
- <tr>
- <td>{#upload_name} :</td>
- <td><input type="text" name="name" value="{#f_name}" /> [ {#default} : {#default_name} ]</td>
- </tr>
- <tr>
- <td>{#file} :</td>
- <td>{#f_file}</td>
- </tr>
- <tr>
- <td>{#size} :</td>
- <td>{#f_size}</td>
- </tr>
- <tr>
- <td>{#filesize} :</td>
- <td>{#f_filesize}</td>
- </tr>
- <tr>
- <td>{#registration_date} :</td>
- <td>{#f_registration_date}</td>
- </tr>
- <tr>
- <td>{#author} :</td>
- <td><input type="text" name="author" value="{#f_author}" /></td>
- </tr>
- <tr>
- <td>{#creation_date} :</td>
- <td><input type="text" name="creation_date" value="{#f_creation_date}" /></td>
- </tr>
- <tr>
- <td>{#keywords} :</td>
- <td><input type="text" name="keywords" value="{#f_keywords}" size="50" /></td>
- </tr>
- <tr>
- <td>{#comment} :</td>
- <td><textarea name="comment" rows="5" cols="50" style="overflow:auto">{#f_comment}</textarea></td>
- </tr>
- <tr>
- <td valign="top">{#categories} :</td>
- <td>
- <table>
- <!--VTP_linked_category-->
- <tr>
- <td><!--VTP_checkbox--><input type="checkbox" name="dissociate-{#id}" value="1" /><!--/VTP_checkbox--><a href="{#url}">{#name}</a> [ <a href="{#infos_images_link}">{#cat_image_info}</a> ] {#private} {#invisible} [ <input type="checkbox" name="representative-{#id}" value="1"{#representative_checked} /> {#category_representative} ]
- </tr>
- <!--/VTP_linked_category-->
- <!--VTP_dissociate-->
- <tr>
- <td colspan="2"><img src="./template/{#user_template}/admin/images/arrow_select.gif" alt="&lt;" /> {#dissociate}</td>
- </tr>
- <!--/VTP_dissociate-->
- <tr><td colspan="2">&nbsp;</td></tr>
- <tr>
- <td>{#infoimage_associate}
- <!--VTP_associate_LOV-->
- <select name="associate">
- <!--VTP_associate_cat-->
- <option value="{#value}">{#content}</option>
- <!--/VTP_associate_cat-->
- </select>
- <!--/VTP_associate_LOV-->
- <!--VTP_associate_text-->
- <input type="text" name="associate" />
- <!--/VTP_associate_text-->
- </select>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2"><div style="margin-bottom:0px">&nbsp;</div></td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" name="submit" value="{#submit}">
- </td>
- </tr>
- </table>
-</form>