aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-05-09 12:42:42 +0000
committerz0rglub <z0rglub@piwigo.org>2003-05-09 12:42:42 +0000
commit867c2379ff66ce0f2c4f872a13027fd649aa076d (patch)
treefd182bca99fc6cfe09a7821fab35ce2629fdab44 /template
parentfe51c10474152f319d08229147adbc95fcd6c219 (diff)
Initial revision
git-svn-id: http://piwigo.org/svn/trunk@2 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template')
-rw-r--r--template/default/about.vtp29
-rw-r--r--template/default/admin/admin.vtp163
-rw-r--r--template/default/admin/cat.vtp58
-rw-r--r--template/default/admin/configuration.vtp87
-rw-r--r--template/default/admin/user_list.vtp77
-rw-r--r--template/default/category.vtp111
-rw-r--r--template/default/footer.htm1
-rw-r--r--template/default/header.htm1
-rw-r--r--template/default/htmlfunctions.inc.php187
-rw-r--r--template/default/identification.vtp75
-rw-r--r--template/default/picture.vtp166
-rw-r--r--template/default/profile.vtp84
-rw-r--r--template/default/register.vtp71
-rw-r--r--template/default/search.vtp71
-rw-r--r--template/default/style.inc.php140
-rw-r--r--template/default/upload.vtp79
16 files changed, 1400 insertions, 0 deletions
diff --git a/template/default/about.vtp b/template/default/about.vtp
new file mode 100644
index 000000000..6e55751a8
--- /dev/null
+++ b/template/default/about.vtp
@@ -0,0 +1,29 @@
+<html>
+ <head>
+ {#page_style}
+ <title>{#about_page_title}</title>
+ </head>
+ <body>
+ <table style="width:100%;height:100%">
+ <tr align="center" valign="middle">
+ <td>
+ {#frame_start}1px{#frame_begin}
+ <div class="titrePage">{#about_title}</div>
+ {#frame_end}
+ <div style="margin-bottom:5px;">&nbsp;</div>
+ {#frame_start}50%{#frame_begin}
+ <div class="menu" style="white-space:normal;margin:10px;">
+ {#about_message}
+ </div>
+ {#frame_end}
+ <div style="text-align:center;margin:5px;">
+ <a onclick="history.back()" style="font-style:italic;font-family:verdana,arial,sans-serif;font-size:12px;">{#about_return}</a>
+ </div>
+ <div style="text-align:center;margin:5px;">
+ <img src="./images/php_sqreuil_artistes.gif" alt="php logo" />
+ </div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/template/default/admin/admin.vtp b/template/default/admin/admin.vtp
new file mode 100644
index 000000000..1516e6c48
--- /dev/null
+++ b/template/default/admin/admin.vtp
@@ -0,0 +1,163 @@
+<html>
+ <head>
+ <title>{#page_title}</title>
+ <style>
+ a {
+ text-decoration:none;
+ color:#006699;
+ }
+ a:hover {
+ text-decoration:underline;
+ }
+ body,table,input,form,select,textarea {
+ font-family:arial,verdana,sans-serif;
+ font-size:12px;
+ }
+ .miniature {
+ border:solid 1px black;
+ }
+ body {
+ background-color:#E5E5E5;
+ }
+ .titretable1 {
+ color:black;
+ background-color:#D3DCE3;
+ text-align:center;
+ border:2px solid #006699;
+ font-weight:bold;
+ border-bottom:0px;
+ }
+ .grostitre {
+ text-align:center;
+ margin:10px 50px 10px 50px;
+ font-size:20px;
+ width:300px;
+ }
+ .plan {
+ margin:10px 10px 10px 2px;
+ white-space:nowrap;
+ }
+ .table1 {
+ border-collapse:collapse;
+ background-color:#FFFFFF;
+ }
+ .contenucellule {
+ background-color:#EEEEEE;
+ border:2px solid #006699;
+ }
+ .style1 {
+ margin-top:20px;
+ }
+ th {
+ font-weight:bold;
+ background-color:#D3DCE3;
+ }
+ td.row1 {
+ background-color:#E6E4E4;
+ }
+ td.row2 {
+ background-color:#E8E8E8;
+ }
+ td.row3 {
+ background-color:#eeeeee;
+ }
+ td.row4 {
+ background-color:#cccccc;
+ }
+ .cat_plan {
+ font-weight:bold;
+ }
+ .retrait {
+ margin:10px;
+ margin-left:30px;
+ margin-top:2px;
+ }
+ input,textarea {
+ border-width:1;
+ border-color:#000000;
+ background:#ffffff;
+ color: #000000;
+ }
+ .erreur {
+ color:red;
+ text-align:center;
+ }
+ .errors {
+ text-align:left;
+ margin:25px;
+ background-color:red;
+ font-weight:bold;
+ border:1px solid black;
+ color:white;
+ }
+ .info {
+ color:darkblue;
+ text-align:center;
+ }
+ </style>
+ <script language="javascript">
+ function SelectAll( formulaire )
+ {
+ len = formulaire.elements.length;
+ var i=0;
+ for( i = 0; i < len; i++)
+ {
+ if ( formulaire.elements[i].type=='checkbox'
+ && formulaire.elements[i].name != 'copie')
+ {
+ formulaire.elements[i].checked = true;
+ }
+ }
+ }
+
+ function Inverser( formulaire )
+ {
+ len = formulaire.elements.length;
+ var i=0;
+ for( i=0; i<len; i++)
+ {
+ if ( formulaire.elements[i].type=='checkbox'
+ && formulaire.elements[i].name != 'copie')
+ {
+ formulaire.elements[i].checked = !formulaire.elements[i].checked;
+ }
+ }
+ }
+ </script>
+ </head>
+ <body>
+ <table>
+ <tr>
+ <td width="1%" valign="top">
+ <table class="table1">
+ <tr>
+ <td class="titretable1">{#menu_title}</td>
+ </tr>
+ <tr>
+ <td class="contenucellule">
+ <div class="plan">
+ <!--VTP_summary-->
+ {#indent}<img src="./images/puce.gif"><a href="{#link}" class="cat_plan">{#name}</a><br />
+ <!--/VTP_summary-->
+ </div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td align="center" valign="top">
+ <div class="grostitre">{#title}</div>
+ <br />
+ <center>
+ <table width="95%" class="table1">
+ <tr>
+ <td class="contenucellule">
+ {#sub}
+ </td>
+ </tr>
+ </table>
+ </center>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/template/default/admin/cat.vtp b/template/default/admin/cat.vtp
new file mode 100644
index 000000000..4c0aca7e9
--- /dev/null
+++ b/template/default/admin/cat.vtp
@@ -0,0 +1,58 @@
+<table style="width:100%;">
+<!--VTP_cat-->
+<tr>
+ <{#td} style="width:40%;text-align:left;">
+ {#indent}<img src="./images/puce.gif" alt="&gt;" />
+ &nbsp;{#name} [ dir : {#dir} ]
+ <span style="color:red;font-weight:normal;"> {#invisible}</span>
+ </{#td}>
+ <{#td} style="text-align:center;">
+ <div style="margin-left:3px;margin-right:3px;">{#nb_picture}</div>
+ </{#td}>
+ <{#td} class="{#class}"
+ style="width:10%;white-space:nowrap;text-align:center;">
+ <a href="{#edit_url}">{#cat_edit}</a>
+ </{#td}>
+ <{#td} class="{#class}"
+ style="width:10%;white-space:nowrap;text-align:center;">
+ <!--VTP_up-->
+ <a href="{#up_url}">{#cat_up}</a>
+ <!--/VTP_up-->
+ <!--VTP_no_up-->
+ <span style="color:darkgray;">{#cat_up}</span>
+ <!--/VTP_no_up-->
+ </{#td}>
+ <{#td} class="{#class}"
+ style="width:10%;white-space:nowrap;text-align:center;">
+ <!--VTP_down-->
+ <a href="{#down_url}">{#cat_down}</a>
+ <!--/VTP_down-->
+ <!--VTP_no_down-->
+ <span style="color:darkgray;">{#cat_down}</span>
+ <!--/VTP_no_down-->
+ </{#td}>
+ <{#td} class="{#class}"
+ style="width:10%;white-space:nowrap;text-align:center;">
+ <!--VTP_image_info-->
+ <a href="{#image_info_url}">{#cat_image_info}</a>
+ <!--/VTP_image_info-->
+ <!--VTP_no_image_info-->
+ <span style="color:darkgray;">{#cat_image_info}</span>
+ <!--/VTP_no_image_info-->
+ </{#td}>
+ <{#td} class="{#class}"
+ style="width:10%;white-space:nowrap;text-align:center;">
+ <a href="{#permission_url}">{#cat_permission}</a>
+ </{#td}>
+ <{#td} class="{#class}"
+ style="width:10%;white-space:nowrap;text-align:center;">
+ <!--VTP_update-->
+ <a href="{#update_url}">{#cat_update}</a>
+ <!--/VTP_update-->
+ <!--VTP_no_update-->
+ <span style="color:darkgray;">{#cat_update}</span>
+ <!--/VTP_no_update-->
+ </{#td}>
+<tr>
+<!--/VTP_cat-->
+</table> \ No newline at end of file
diff --git a/template/default/admin/configuration.vtp b/template/default/admin/configuration.vtp
new file mode 100644
index 000000000..a44c7d5be
--- /dev/null
+++ b/template/default/admin/configuration.vtp
@@ -0,0 +1,87 @@
+<!--VTP_errors-->
+<div class="errors">
+ <ul>
+ <!--VTP_li-->
+ <li>{#li}</li>
+ <!--/VTP_li-->
+ </ul>
+</div>
+<!--/VTP_errors-->
+<!--VTP_confirmation-->
+ <div class="info">{#conf_confirmation}</div>
+<!--/VTP_confirmation-->
+<form method="post" action="{#form_action}">
+ <table width="100%">
+ <!--VTP_line-->
+ <!--VTP_param_line-->
+ <tr>
+ <td>{#name}</td>
+ <td align="center">
+ <!--VTP_select-->
+ <select name="{#name}">
+ <!--VTP_option-->
+ <option{#selected}>{#option}</option>
+ <!--/VTP_option-->
+ </select>
+ <!--/VTP_select-->
+ <!--VTP_hidden-->
+ {#text}<input type="hidden" name="{#name}" value="{#value}" />
+ <!--/VTP_hidden-->
+ <!--VTP_text-->
+ <input type="text" name="{#name}" value="{#value}" />
+ <!--/VTP_text-->
+ <!--VTP_group-->
+ <!--VTP_radio-->
+ <input type="radio" name="{#name}" value="{#value}"{#checked}/>{#option}
+ <!--/VTP_radio-->
+ <!--/VTP_group-->
+ <!--VTP_check-->
+ <!--VTP_box-->
+ <input type="checkbox" name="{#name}" value="{#value}"{#checked}/>{#option}
+ <!--/VTP_box-->
+ <!--/VTP_check-->
+ </td>
+ <td width="50%" class="row2">{#def}</td>
+ </tr>
+ <!--/VTP_param_line-->
+ <!--VTP_title_line-->
+ <tr>
+ <th colspan="3" align="center">{#title}</th>
+ </tr>
+ <!--/VTP_title_line-->
+ <!--VTP_space_line-->
+ <tr>
+ <td colspan="3"><div style="margin-bottom:0px">&nbsp;</div></td>
+ </tr>
+ <!--/VTP_space_line-->
+ <!--/VTP_line-->
+ <!--VTP_remote_sites-->
+ <tr>
+ <th colspan="3" align="center">{#conf_remote_site_title}</th>
+ </tr>
+ <tr>
+ <td colspan=3><div style='margin-bottom:0px'>&nbsp;</div></td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td align="center">{#delete}</td>
+ <td>&nbsp;</td>
+ </tr>
+ <!--VTP_site-->
+ <tr>
+ <td>{#url}</td>
+ <td align="center"><input type="checkbox" name="delete_site_{#id}" value="1" /></td>
+ <!--VTP_rowspan--><td class="row2" rowspan="{#nb_sites}">{#conf_remote_site_delete_info}</td><!--/VTP_rowspan-->
+ </tr>
+ <!--/VTP_site-->
+ <tr>
+ <td colspan=3><div style='margin-bottom:0px'>&nbsp;</div></td>
+ </tr>
+ <!--/VTP_remote_sites-->
+ <tr>
+ <td colspan="3" align="center">
+ <input type="submit" value="{#submit}">
+ </td>
+ </tr>
+ </table>
+</form> \ No newline at end of file
diff --git a/template/default/admin/user_list.vtp b/template/default/admin/user_list.vtp
new file mode 100644
index 000000000..a1032aa36
--- /dev/null
+++ b/template/default/admin/user_list.vtp
@@ -0,0 +1,77 @@
+<!--VTP_deletion-->
+<table style="width:100%;">
+ <tr>
+ <th colspan="2">{#listuser_confirm} "{#login}" ?</th>
+ </tr>
+ <tr>
+ <td align="center"><a href="{#yes_url}">{#yes}</a></td>
+ <td align="center" class="row2"><a href="{#no_url}">{#no}</a></td>
+ </tr>
+</table>
+<!--/VTP_deletion-->
+<!--VTP_confirmation-->
+<div class="{#class}">{#info}</div>
+<!--/VTP_confirmation-->
+<!--VTP_users-->
+<form method="post" action="{#form_action}" name="{#form_name}">
+<table width="100%">
+ <!--VTP_category-->
+ <tr>
+ <th colspan="5">{#title}</th>
+ </tr>
+ <!--VTP_user-->
+ <tr>
+ <td style="width:0px;">
+ <div style="margin-left:2px;margin-right:2px;">
+ <!--VTP_checkbox-->
+ <input type="checkbox" name="{#name}" value="1" />
+ <!--/VTP_checkbox-->
+ </div>
+ </td>
+ <td style="width:25%;">
+ <div style="margin-left:10px;color:{#color}">{#login}</div>
+ </td>
+ <td class="row2" style="text-align:center;width:25%;">
+ <!--VTP_modify-->
+ <a href="{#url}" title="{#listuser_modify_hint} {#login}">{#listuser_modify}</a>
+ <!--/VTP_modify-->
+ <!--VTP_not_modify-->
+ <span style="color:darkgray;">{#listuser_modify}</span>
+ <!--/VTP_not_modify-->
+ </td>
+ <td class="row2" style="text-align:center;width:25%;">
+ <!--VTP_permission-->
+ <a href="{#url}" title="{#listuser_permission_hint} {#login}">{#listuser_permission}</a>
+ <!--/VTP_permission-->
+ <!--VTP_not_permission-->
+ <span style="color:darkgray;">{#listuser_permission}</span>
+ <!--/VTP_not_permission-->
+ </td>
+ <td class="row2" style="text-align:center;width:25%;">
+ <!--VTP_delete-->
+ <a href="{#url}" title="{#listuser_delete_hint} {#login}">{#listuser_delete}</a>
+ <!--/VTP_delete-->
+ <!--VTP_not_delete-->
+ <span style="color:darkgray;">{#listuser_delete}</span>
+ <!--/VTP_not_delete-->
+ </td>
+ </tr>
+ <!--/VTP_user-->
+ <!--/VTP_category-->
+ <tr>
+ <td colspan="5">&nbsp;</td>
+ </tr>
+ <tr>
+ <td colspan="5">
+ <img src="./images/arrow_up.gif" alt="&lt;" />
+ <input type="button" value="{#listuser_button_all}" onClick="SelectAll(this.form)" style="margin-left:5px;margin-right:5px;" />
+ <input type="button" value="{#listuser_button_invert}" onClick="Inverser(this.form)" style="margin-left:5px;margin-right:5px;" />
+ <input type="submit" value="{#listuser_button_create_address}" style="margin-left:5px;margin-right:5px;" />
+ <!--VTP_mail_link-->
+ <a href="mailto:{#mailto}">mailto:{#mail_address_start}...</a>
+ <!--/VTP_mail_link-->
+ </td>
+ </tr>
+</table>
+</form>
+<!--/VTP_users--> \ No newline at end of file
diff --git a/template/default/category.vtp b/template/default/category.vtp
new file mode 100644
index 000000000..2cf06e234
--- /dev/null
+++ b/template/default/category.vtp
@@ -0,0 +1,111 @@
+<html>
+ <head>
+ {#style}
+ <title>{#title}</title>
+ </head>
+ <body>
+ {#header}
+ <table style="width:100%;">
+ <tr>
+ <td valign="top" style="width:1%;padding:10px;">
+ {#frame_start}100%{#frame_begin}
+ <div class="titreMenu">{#categories}</div>
+ <div class="menu">
+ <!--VTP_category-->{#indent}<!--VTP_bullet_w_link--><a href="{#bullet_link}"><img src="{#bullet_url}" style="border:none;" alt="{#bullet_alt}" /></a><!--/VTP_bullet_w_link--><!--VTP_bullet_wo_link--><img src="{#bullet_url}" style="border:none;" alt="{#bullet_alt}" /><!--/VTP_bullet_wo_link-->&nbsp;<a href="{#link_url}"><span title="{#hint_category}" style="{#name_style}">{#link_name}</span>&nbsp;<span class="menuInfoCat">[&nbsp;<!--VTP_subcat--><span title="{#nb_subcats} {#sub-cat}">{#nb_subcats}</span>&nbsp;-&nbsp;<!--/VTP_subcat--><span title="{#total_cat} {#images_available}">{#total_cat}</span>&nbsp;]</span></a>{#cat_icon}<br />
+ <!--/VTP_category-->
+ <div class="totalImages">[&nbsp;{#nb_total_pictures}&nbsp;{#total}&nbsp;]</div>
+ <!--VTP_favorites-->
+ <br />&nbsp;<img src="{#lien_collapsed}" al="&gt;" />&nbsp;<a href="{#url}"><span title="{#favorite_cat_hint}" style="font-weight:bold;">{#favorite_cat}</span></a>&nbsp;<span class="menuInfoCat">[&nbsp;{#nb_favorites}&nbsp;]</span>
+ <!--/VTP_favorites-->
+ <br />&nbsp;<img src="{#lien_collapsed}" al="&gt;" />&nbsp;<span style="font-weight:bold;">{#stats}</span></a>
+ <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="{#lien_collapsed}" al="&gt;" />&nbsp;<a href="{#most_visited_url}"><span title="{#most_visited_cat_hint}" style="font-weight:bold;">{#top_number}&nbsp;{#most_visited_cat}</span></a>
+ <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="{#lien_collapsed}" al="&gt;" />&nbsp;<a href="{#recent_url}"><span title="{#recent_cat_hint}" style="font-weight:bold;">{#recent_cat}</span></a> {#icon_short}
+ </div>
+ {#frame_end}
+ <div style="margin-bottom:5px;">&nbsp;</div>
+ {#frame_start}100%{#frame_begin}
+ <div class="titreMenu">{#title_menu}</div>
+ <div class="menu">
+ <!--VTP_summary-->
+ &nbsp;<img src="{#lien_collapsed}" alt="&gt;"/>&nbsp;<a href="{#url}" title="{#title}">{#name}</a><br />
+ <!--/VTP_summary-->
+ </div>
+ {#frame_end}
+ </td>
+ <td style="padding:5px;width:99%;" valign="top">
+ <table style="width:100%;">
+ <tr>
+ <td align="center">
+ {#frame_start}1%{#frame_begin}
+ <div class="titrePage">{#cat_title}</div>
+ {#frame_end}
+ <div style="margin-bottom:5px;">&nbsp;</div>
+ <!--VTP_thumbnails-->
+ <table class="thumbnail">
+ <!--VTP_line-->
+ <tr>
+ <!--VTP_thumbnail-->
+ <td valign="bottom" class="thumbnail">
+ <a href="{#url}" class="back">
+ <img src="{#src}"
+ alt="{#alt}"
+ title="{#title}"
+ class="imgLink"/><br />
+ {#name}
+ </a>
+ {#icon}
+ <!--VTP_nb_comments-->
+ <br />{#nb} comments
+ <!--/VTP_nb_comments-->
+ </td>
+ <!--/VTP_thumbnail-->
+ </tr>
+ <!--/VTP_line-->
+ </table>
+ <!--/VTP_thumbnails-->
+ </td>
+ </tr>
+ <tr>
+ <td align="left">
+ <!--VTP_cat_infos-->
+ <!--VTP_navigation-->
+ <div class="navigationBar">{#navigation_bar}</div>
+ <!--/VTP_navigation-->
+ <!--VTP_comment-->
+ <div class="comments">{#cat_comment}</div>
+ <!--/VTP_comment-->
+ <div class="infoCat">
+ {#nb_image_category} "{#cat_name}" : {#cat_nb_images}
+ <!--VTP_upload-->
+ <br /><a href="{#url}" class="back">{#upload_name}</a>
+ <!--/VTP_upload-->
+ </div>
+ <!--/VTP_cat_infos-->
+ </td>
+ </tr>
+ <tr>
+ <td align="right">
+ {#frame_start}1%{#frame_begin}
+ <div class="info">
+ {#connected_user}&nbsp;{#pseudo}<br />
+ {#recent_image}&nbsp;{#short_period}&nbsp;{#days}
+ {#icon_short}<br />
+ {#recent_image}&nbsp;{#long_period}&nbsp;{#days}
+ {#icon_long}<br />
+ {#send_mail}&nbsp;<a href="mailto:{#mail_webmaster}?subject={#title_send_mail}"><span style="font-weight:bold;">{#webmaster}</span></a>
+ </div>
+ {#frame_end}
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <div class="copyright">{#generation_time} {#time}</div>
+ <!-- Please, do not remove this copyright. If you really want to,
+ contact me pierrick@z0rglub.com to find a solution on how
+ to show the origin of the script...-->
+ <div class="copyright">Powered by <a href="{#site_url}" class="back">PhpWebGallery</a> {#version}</div>
+ {#footer}
+ </body>
+</html> \ No newline at end of file
diff --git a/template/default/footer.htm b/template/default/footer.htm
new file mode 100644
index 000000000..a56ca5332
--- /dev/null
+++ b/template/default/footer.htm
@@ -0,0 +1 @@
+footer \ No newline at end of file
diff --git a/template/default/header.htm b/template/default/header.htm
new file mode 100644
index 000000000..6a6dd105c
--- /dev/null
+++ b/template/default/header.htm
@@ -0,0 +1 @@
+header \ No newline at end of file
diff --git a/template/default/htmlfunctions.inc.php b/template/default/htmlfunctions.inc.php
new file mode 100644
index 000000000..d7464610c
--- /dev/null
+++ b/template/default/htmlfunctions.inc.php
@@ -0,0 +1,187 @@
+<?php
+/***************************************************************************
+ * htmlfunctions.inc.php is a part of PhpWebGallery *
+ * ------------------- *
+ * last update : Wednesday, 25 December 2002 *
+ * email : pierrick@z0rglub.com *
+ * *
+ ***************************************************************************
+
+ ***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; *
+ * *
+ ***************************************************************************/
+
+function get_icon( $date_comparaison )
+{
+ global $user, $conf;
+ $difference = time() - $date_comparaison;
+ $jours = 24*60*60;
+ $output = '';
+ if ( $difference < $user['long_period'] * $jours )
+ {
+ $icon_url = './theme/'.$user['theme'].'/';
+ if ( $difference < $user['short_period'] * $jours )
+ {
+ $icon_url.= 'new_short.gif';
+ }
+ else
+ {
+ $icon_url.= 'new_long.gif';
+ }
+ $size = getimagesize( $icon_url );
+ $output = '<img src="'.$icon_url.'" style="border:0;';
+ $output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="" />';
+ }
+ return $output;
+}
+/*
+function affiche_icone_recent( $date_comparaison )
+{
+ global $user, $conf;
+ $difference = time() - $date_comparaison;
+ $jours = 24*60*60;
+ $output = '';
+ if ( $difference < $conf['periode_longue'] * $jours )
+ {
+ $icon_url = './theme/'.$user['theme'].'/';
+ if ( $difference < $conf['periode_courte'] * $jours )
+ {
+ $icon_url.= 'new_long.gif';
+ }
+ else
+ {
+ $icon_url.= 'new_short.gif';
+ }
+ $size = getimagesize( $icon_url );
+ $output = '<img src="'.$icon_url.'" style="border:0;height:'.$size[1].'px;width:'.$size[0].'px" alt="" />';
+ }
+ return $output;
+}
+*/
+
+function create_navigation_bar( $url, $nb_element, $start,
+ $nb_element_page, $link_class )
+{
+ global $lang;
+ $navigation_bar = "";
+ // 0. détection de la page en cours
+ if( !isset( $start )
+ || !is_numeric( $start )
+ || ( is_numeric( $start ) && $start < 0 ) )
+ {
+ $start = 0;
+ }
+ // on n'affiche la bare de navigation que si on plus de 1 page
+ if ( $nb_element > $nb_element_page )
+ {
+ // 1.une page précédente ?
+ if ( $start != 0 )
+ {
+ $previous = $start - $nb_element_page;
+ $navigation_bar.= '<a href="';
+ $navigation_bar.= add_session_id( $url.'&amp;start='.$previous );
+ $navigation_bar.= '" class="'.$link_class.'">'.$lang['previous_page'];
+ $navigation_bar.= '</a>';
+ $navigation_bar.= ' | ';
+ }
+ // 2.liste des numéros de page
+ $maximum = ceil ( $nb_element / $nb_element_page );
+ for ( $i = 1; $i <= $maximum; $i++ )
+ {
+ $temp_start = ( $i - 1 ) * $nb_element_page;
+ if ( $temp_start == $start )
+ {
+ $navigation_bar.= ' <span style="font-weight:bold;">'.$i.'</span> ';
+ }
+ else
+ {
+ $navigation_bar.= ' <a href="';
+ $navigation_bar.= add_session_id( $url.'&amp;start='.$temp_start );
+ $navigation_bar.= '" class="'.$link_class.'">'.$i.'</a> ';
+ }
+ }
+ // 3.une page suivante ?
+ if ( $nb_element > $nb_element_page
+ && $start + $nb_element_page < $nb_element )
+ {
+ $next = $start + $nb_element_page;
+ $navigation_bar.= ' | <a href="';
+ $navigation_bar.= add_session_id( $url.'&amp;start='.$next );
+ $navigation_bar.= '" class="'.$link_class.'">'.$lang['next_page'].'</a>';
+ }
+ }
+ return $navigation_bar;
+}
+
+function get_frame_start()
+{
+ return '<table style="width:';
+}
+/*
+function get_frame_begin()
+{
+ return ';">
+ <tr>
+ <td style="border:2px solid lightgreen;width:100%;padding:5px;background-color:black;">';
+}
+
+function get_frame_end()
+{
+ return '
+ </td>
+ </tr>
+ </table>';
+}
+*/
+function get_frame_begin()
+{
+ global $user;
+ $path = './theme/'.$user['theme'].'/';
+ $size_01 = getimagesize( $path.'01.gif' );
+ $size_02 = getimagesize( $path.'02.gif' );
+ $size_03 = getimagesize( $path.'03.gif' );
+ return ';">
+ <tr>
+ <td><img src="'.$path.'01.gif" style="width:'.$size_01[0].'px;display:box;" alt="" /></td>
+ <td><img src="'.$path.'02.gif" style="display:box;width:100%;height:'.$size_02[1].'px;" alt="" /></td>
+ <td><img src="'.$path.'03.gif" style="display:box;width:'.$size_03[0].'px;" alt="" /></td>
+ </tr>
+ <tr>
+ <td style="background:url('.$path.'04.gif);"></td>
+ <td style="background:url('.$path.'05.gif);width:100%;">';
+}
+
+function get_frame_end()
+{
+ global $user;
+ $path = './theme/'.$user['theme'].'/';
+ $size_08 = getimagesize( $path.'08.gif' );
+ return '
+ </td>
+ <td style="background:url('.$path.'06.gif);"></td>
+ </tr>
+ <tr>
+ <td><img src="'.$path.'07.gif" alt="" /></td>
+ <td><img src="'.$path.'08.gif" style="width:100%;height:'.$size_08[1].'px;" alt="" /></td>
+ <td><img src="'.$path.'09.gif" alt="" /></td>
+ </tr>
+ </table>';
+}
+
+function initialize_template()
+{
+ global $vtp, $handle, $user;
+
+ $vtp->setGlobalVar( $handle, 'frame_start', get_frame_start() );
+ $vtp->setGlobalVar( $handle, 'frame_begin', get_frame_begin() );
+ $vtp->setGlobalVar( $handle, 'frame_end', get_frame_end() );
+ $vtp->setVarF( $handle, 'header',
+ './template/'.$user['template'].'/header.htm' );
+ $vtp->setVarF( $handle, 'footer',
+ './template/'.$user['template'].'/footer.htm' );
+}
+?> \ No newline at end of file
diff --git a/template/default/identification.vtp b/template/default/identification.vtp
new file mode 100644
index 000000000..eb03977c1
--- /dev/null
+++ b/template/default/identification.vtp
@@ -0,0 +1,75 @@
+<html>
+ <head>
+ {#page_style}
+ <title>{#ident_page_title}</title>
+ </head>
+ <body>
+ <table style="width:100%;height:100%">
+ <tr align="center" valign="middle">
+ <td>
+ {#frame_start}1px{#frame_begin}
+ <div class="titrePage">{#ident_title}</div>
+ {#frame_end}
+ <div style="margin-bottom:5px;">&nbsp;</div>
+ {#frame_start}50%{#frame_begin}
+ <div style="margin-left:auto;margin-right:auto;text-align:center;">
+ <form method="post" action="./identification.php">
+ <table style="width:80%;margin-left:auto;margin-right:auto;">
+ <!--VTP_errors-->
+ <tr>
+ <td colspan="3">
+ <div class="errors">
+ <ul>
+ <!--VTP_li-->
+ <li>{#li}</li>
+ <!--/VTP_li-->
+ </ul>
+ </div>
+ </td>
+ </tr>
+ <!--/VTP_errors-->
+ <tr>
+ <td class="menu" align="center">{#login}</td>
+ <td class="menu" align="center">{#password}</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td align="center">
+ <!--VTP_select_field-->
+ <select name="login">
+ <!--VTP_option-->
+ <option>{#option}</option>
+ <!--/VTP_option-->
+ </select>
+ <!--/VTP_select_field-->
+ <!--VTP_text_field-->
+ <input type="text" name="login" value="" />
+ <!--/VTP_text_field-->
+ </td>
+ <td align="center"><input type="password" name="pass"/></td>
+ <td align="center"><input type="submit" name="submit" value="{#submit}" class="bouton"/></td>
+ </tr>
+ </table>
+ </form>
+ <table style="width:80%;margin-left:auto;margin-right:auto;">
+ <tr>
+ <td colspan="3" align="center">
+ <!--VTP_guest_visit-->
+ <a href="./category.php">[ {#ident_guest_visit} ]</a>
+ <!--/VTP_guest_visit-->
+ <div style="margin-top:10px;text-align:left;">
+ <!--VTP_register-->
+ <a href="register.php"><img src="./theme/{#user_theme}/register.gif" style="border:0;" alt="{#ident_register}"/>&nbsp;{#ident_register}</a><br />
+ <!--/VTP_register-->
+ <a href="mailto:{#mail_webmaster}?subject=[PhpWebGallery] {#ident_forgotten_password}"><img src="./theme/{#user_theme}/lost.gif" style="border:0;" alt=""/>&nbsp;{#ident_forgotten_password}</a>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </div>
+ {#frame_end}
+ </td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/template/default/picture.vtp b/template/default/picture.vtp
new file mode 100644
index 000000000..2e20a4949
--- /dev/null
+++ b/template/default/picture.vtp
@@ -0,0 +1,166 @@
+<html>
+ <head>
+ {#page_style}
+ <!-- Specific style to picture.php-->
+ <style type="text/css">
+ .commentsAuthor,.commentsTitle,.commentsInfos,.commentsContent,.commentsNavigationBar {
+ color:{#text_color};
+ font-family:arial,sans-Serif;
+ font-size:12px;
+ }
+ .commentsTitle,.commentsAuthor {
+ text-align:center;
+ font-weight:bold;
+ }
+ .commentsInfos {
+ margin:3px 3px 3px 10px;
+ font-size:11px;
+ }
+ .commentsContent {
+ margin:10px;
+ }
+ .commentsTitle {
+ margin-top:15px;
+ }
+ .commentsAuthor {
+ margin:5px;
+ }
+ .commentsNavigationBar {
+ margin:10px;
+ }
+ .tableComment {
+ width:90%;
+ border:2px solid {#text_color};
+ margin:10px;
+ }
+ .cellAuthor {
+ border-right:1px solid {#text_color};
+ width:100px;
+ }
+ .cellInfo {
+ border-bottom:1px solid {#text_color};
+ }
+ </style>
+ <title>{#page_title}</title>
+ </head>
+ <body>
+ <table style="width:100%;height:100%;">
+ <tr align="center" valign="middle">
+ <td>
+ <!--VTP_previous-->
+ <a href="{#url}" title="{#title}">
+ <img src="{#src}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{#alt}"/>
+ </a>
+ <!--/VTP_previous-->
+ <!--VTP_previous_empty-->
+ &nbsp;
+ <!--/VTP_previous_empty-->
+ </td>
+ <td style="width:100%;">
+ {#frame_start}1%{#frame_begin}
+ <div class="titrePage">{#title}</div>
+ {#frame_end}
+ <div style="margin-bottom:5px">&nbsp;</div>
+ {#frame_start}1%{#frame_begin}
+ <a href="{#picture_link}">
+ <img style="margin:10px;width:{#picture_width}px;height:{#picture_height}px;border:1px solid {#picture_border_color}" src="{#picture_src}" alt="{#picture_alt}"/>
+ </a>
+ <div class="commentImage">{#picture_comment}</div>
+ <table style="width:100%;">
+ <tr>
+ <td align="center">
+ <table style="margin:auto;margin-top:5px;margin-bottom:5px;">
+ <!--VTP_info_line-->
+ <tr>
+ <td class="menu" style="font-weight:bold;">{#name}</td>
+ <td class="menu" style="text-align:right;">{#content}</td>
+ </tr>
+ <!--/VTP_info_line-->
+ </table>
+ </td>
+ </tr>
+ </table>
+ <!--VTP_favorite-->
+ <div class="menu" style="text-align:center;margin:5px;">
+ <a href="{#link}" title="{#title}">
+ <img src="{#src}" style="border:none;margin-left:5px;" alt="{#alt}"/>
+ </a>
+ </div>
+ <!--/VTP_favorite-->
+ <!--VTP_modification-->
+ <div class="menu" style="text-align:center;margin:5px;">
+ [ <a href="{#link}">{#name}</a> ]
+ </div>
+ <!--/VTP_modification-->
+ {#frame_end}
+ <div style="text-align:center;">{#back}</div>
+ </td>
+ <td>
+ <!--VTP_next-->
+ <a href="{#url}" title="{#title}">
+ <img src="{#src}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{#alt}"/>
+ </a>
+ <!--/VTP_next-->
+ <!--VTP_next_empty-->
+ &nbsp;
+ <!--/VTP_next_empty-->
+ </td>
+ </tr>
+ <!--VTP_comments-->
+ <tr align="center" valign="middle">
+ <td colspan="3">
+ {#frame_start}90%{#frame_begin}
+ <table style="width:100%;">
+ <tr align="center">
+ <td>
+ <div class="commentsTitle">
+ [{#nb_comments}] {#comments_title}
+ </div>
+ <div class="commentsNavigationBar">{#navigation_bar}</div>
+ <!--VTP_comment-->
+ <table class="tableComment">
+ <tr>
+ <td rowspan="2" valign="top" class="cellAuthor">
+ <div class="commentsAuthor">{#author}</div>
+ </td>
+ <td align="right" class="cellInfo">
+ <div class="commentsInfos">
+ {#date}<!--VTP_delete--><a href="{#link}" title="{#comments_del}"><img src="./theme/{#user_theme}/delete.gif" style="border:none;margin-left:5px;" alt="[{#delete}]"/></a><!--/VTP_delete-->
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <div class="commentsContent">{#content}</div>
+ </td>
+ </tr>
+ </table>
+ <!--/VTP_comment-->
+ <div class="commentsNavigationBar">{#navigation_bar}</div>
+ </td>
+ </tr>
+ </table>
+ <form method="post" action="{#form_action}">
+ <table style="width:100%;">
+ <tr align="center">
+ <td>
+ <div class="commentsTitle">{#comments_add}</div>
+ <!--VTP_author_field-->
+ <div class="menu">{#author} : <input type="text" name="author" style="margin-top:5px;"/></div>
+ <!--/VTP_author_field-->
+ <!--VTP_author_known-->
+ <input type="hidden" name="author" value="{#value}" />
+ <!--/VTP_author_known-->
+ <textarea name="content" rows="10" cols="50" style="overflow:auto;width:450px;margin:10px;"></textarea><br />
+ <input type="submit" value="{#submit}" style="margin:10px;"/>
+ </td>
+ </tr>
+ </table>
+ </form>
+ {#frame_end}
+ </td>
+ </tr>
+ <!--/VTP_comments-->
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/template/default/profile.vtp b/template/default/profile.vtp
new file mode 100644
index 000000000..ed6a8998a
--- /dev/null
+++ b/template/default/profile.vtp
@@ -0,0 +1,84 @@
+<html>
+ <head>
+ {#page_style}
+ <title>{#customize_page_title}</title>
+ </head>
+ <body>
+ <table style="width:100%;height:100%">
+ <tr align="center" valign="middle">
+ <td>
+ {#frame_start}1px{#frame_begin}
+ <div class="titrePage">{#customize_title}</div>
+ {#frame_end}
+ <div style="margin-bottom:20px"></div>
+ {#frame_start}50%{#frame_begin}
+ <form method="post" action="{#form_action}">
+ <table style="width:100%;margin-top:10px;margin-bottom:10px;">
+ <tr align="center" valign="middle">
+ <td>
+ <table width="80%">
+ <!--VTP_errors-->
+ <tr>
+ <td colspan="2">
+ <div class="errors">
+ <ul>
+ <!--VTP_li-->
+ <li>{#li}</li>
+ <!--/VTP_li-->
+ </ul>
+ </div>
+ </td>
+ </tr>
+ <!--/VTP_errors-->
+ <!--VTP_line-->
+ <tr>
+ <td class="menu">{#name}</td>
+ <td class="menu">
+ <!--VTP_select-->
+ <select name="{#name}">
+ <!--VTP_option-->
+ <option{#selected}>{#option}</option>
+ <!--/VTP_option-->
+ </select>
+ <!--/VTP_select-->
+ <!--VTP_text-->
+ <input type="text" name="{#name}" value="{#value}" />
+ <!--/VTP_text-->
+ <!--VTP_group-->
+ <!--VTP_radio-->
+ <input type="radio" name="{#name}" value="{#value}"{#checked}/>{#option}
+ <!--/VTP_radio-->
+ <!--/VTP_group-->
+ </td>
+ </tr>
+ <!--/VTP_line-->
+ <tr>
+ <td colspan="2">&nbsp;</td>
+ </tr>
+ <tr>
+ <td class="menu">{#new} {#password}<input type="checkbox" name="use_new_pwd" value="1" /></td>
+ <td class="menu"><input type="password" name="password" value="" /></td>
+ </tr>
+ <tr>
+ <td class="menu">{#reg_confirm}</td>
+ <td class="menu"><input type="password" name="passwordConf" value="" /></td>
+ </tr>
+ <tr>
+ <td colspan="2">&nbsp;</td>
+ </tr>
+ <tr>
+ <td colspan="2" align="center">
+ <input type="submit" name="submit" value="{#submit}" style="margin:5px;"/>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </form>
+ {#frame_end}
+ </td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/template/default/register.vtp b/template/default/register.vtp
new file mode 100644
index 000000000..c687c4deb
--- /dev/null
+++ b/template/default/register.vtp
@@ -0,0 +1,71 @@
+<html>
+ <head>
+ {#page_style}
+ <title>{#register_page_title}</title>
+ </head>
+ <body>
+ <table style="width:100%;height:100%">
+ <tr align="center" valign="middle">
+ <td>
+ {#frame_start}1px{#frame_begin}
+ <div class="titrePage">{#register_title}</div>
+ {#frame_end}
+ <div style="margin-bottom:20px"></div>
+ {#frame_start}50%{#frame_begin}
+ <form method="post" action="{#form_action}">
+ <table style="width:80%;margin-top:10px;margin-bottom:10px;margin-left:auto;margin-right:auto;">
+ <!--VTP_errors-->
+ <tr>
+ <td colspan="2">
+ <div class="errors">
+ <ul>
+ <!--VTP_li-->
+ <li>{#li}</li>
+ <!--/VTP_li-->
+ </ul>
+ </div>
+ </td>
+ </tr>
+ <!--/VTP_errors-->
+ <!--VTP_line-->
+ <tr>
+ <td class="menu">{#name}</td>
+ <td class="menu">
+ <!--VTP_select-->
+ <select name="{#name}">
+ <!--VTP_option-->
+ <option{#selected}>{#option}</option>
+ <!--/VTP_option-->
+ </select>
+ <!--/VTP_select-->
+ <!--VTP_text-->
+ <input type="text" name="{#name}" value="{#value}" />
+ <!--/VTP_text-->
+ <!--VTP_password-->
+ <input type="password" name="{#name}" value="{#value}" />
+ <!--/VTP_password-->
+ </td>
+ </tr>
+ <!--/VTP_line-->
+ <tr>
+ <td colspan="2">&nbsp;</td>
+ </tr>
+ <tr>
+ <tr>
+ <td colspan="2" align="center">
+ <input type="submit" name="submit" value="{#submit}" style="margin:5px;"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" align="center">
+ <a href="./category.php">[ {#ident_guest_visit} ]</a>
+ </td>
+ </tr>
+ </table>
+ </form>
+ {#frame_end}
+ </td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/template/default/search.vtp b/template/default/search.vtp
new file mode 100644
index 000000000..3b79b6637
--- /dev/null
+++ b/template/default/search.vtp
@@ -0,0 +1,71 @@
+<html>
+ <head>
+ {#page_style}
+ <title>{#search_page_title}</title>
+ </head>
+ <body>
+ <table style="width:100%;height:100%">
+ <tr align="center" valign="middle">
+ <td>
+ {#frame_start}1px{#frame_begin}
+ <div class="titrePage">{#search_title}</div>
+ {#frame_end}
+ <div style="margin-bottom:5px;">&nbsp;</div>
+ {#frame_start}50%{#frame_begin}
+ <div style="margin-left:auto;margin-right:auto;text-align:center;">
+ <form method="post" action="{#form_action}">
+ <table style="width:80%;margin-left:auto;margin-right:auto;">
+ <!--VTP_errors-->
+ <tr>
+ <td colspan="2">
+ <div class="errors">
+ <ul>
+ <!--VTP_li-->
+ <li>{#li}</li>
+ <!--/VTP_li-->
+ </ul>
+ </div>
+ </td>
+ </tr>
+ <!--/VTP_errors-->
+ <tr>
+ <td colspan="2">
+ <div style="margin-bottom:10px;">&nbsp;</div>
+ </td>
+ </tr>
+ <!--VTP_line-->
+ <tr>
+ <td class="menu">{#name}</td>
+ <td class="menu">
+ <!--VTP_select-->
+ <select name="{#name}">
+ <!--VTP_option-->
+ <option{#selected}>{#option}</option>
+ <!--/VTP_option-->
+ </select>
+ <!--/VTP_select-->
+ <!--VTP_text-->
+ <input type="text" name="{#name}" size="{#size}" value="{#value}" />
+ <!--/VTP_text-->
+ </td>
+ </tr>
+ <!--/VTP_line-->
+ <tr>
+ <td align="center" colspan="2">
+ <input type="submit" name="submit" value="{#submit}" class="bouton" style="margin:10px;" />
+ </td>
+ </tr>
+ <tr>
+ <td align="center" colspan="2">
+ <a href="{#back_url}">[ {#search_return_main_page} ]</a>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ {#frame_end}
+ </td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/template/default/style.inc.php b/template/default/style.inc.php
new file mode 100644
index 000000000..c364367be
--- /dev/null
+++ b/template/default/style.inc.php
@@ -0,0 +1,140 @@
+<?php
+/***************************************************************************
+ * style.php is a part of PhpWebGallery *
+ * ------------------- *
+ * last update : Friday, November 1, 2002 *
+ * email : pierrick@z0rglub.com *
+ * *
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; *
+ * *
+ ***************************************************************************/
+$user['style'] = '<style type="text/css">
+ a {
+ text-decoration:none;
+ }
+ a:hover {
+ text-decoration:underline;
+ }
+ a.back, body {
+ color:'.$user['couleur_text_fond'].';
+ }
+ body,table,input {
+ font-family:arial,sans-serif;
+ font-size:12px;
+ }
+ .imgLink {
+ border:1px solid '.$user['couleur_text_fond'].';
+ }
+ .titrePage,.titreMenu,.menu,.info, a {
+ color:'.$user['couleur_text'].';
+ }
+ .titreMenu,.menu,.info {
+ margin-bottom:5px;
+ white-space:nowrap;
+ }
+ .menu,.titrePage,.info {
+ margin-left:2px;
+ margin-right:2px;
+ }
+ .menuInfoCat {
+ font-family:sans-serif;
+ font-size:11px;
+ }
+ .totalImages {
+ text-align:center;
+ margin-top:5px;
+ font-family:sans-serif;
+ font-size:11px;
+ }
+ .titreMenu {
+ font-weight:600;
+ text-align:center;
+ }
+ .info {
+ text-align:right;
+ }
+ .titrePage {
+ white-space:nowrap;
+ font-weight:500;
+ font-size:18px;
+ text-align:center;
+ }
+ .comments,.infoCat,.navigationBar {
+ margin-top:10px;
+ margin-bottom:10px;
+ }
+ .comments {
+ text-align:justify;
+ font-style:italic;
+ }
+ .navigationBar {
+ text-align:center;
+ }
+ .infoCat {
+ text-align:left;
+ }
+ .thumbnail {
+ font-size:11px;
+ text-align:center;
+ }
+ .copyright {
+ font-size:11px;
+ text-align:center;
+ font-family:sans-serif;
+ letter-spacing:0.3mm;
+ }
+ .commentImage {
+ font-weight:bold;
+ text-align:center;
+ font-size:17px;
+ }
+ .bouton {
+ background:#EEEEEE;
+ }
+ input {
+ border-width:1;
+ border-color:#000000;
+ background:#ffffff;
+ color: #000000;
+ }
+ body {';
+$image = './theme/'.$user['theme'].'/background.gif';
+if ( @is_file( $image ) )
+{
+ $user['style'].= '
+ background-image:url('.$image.');';
+}
+else
+{
+ $user['style'].= '
+ background-color:'.$user['couleur_fond'].';';
+}
+$user['style'].= '
+ margin:5px;
+ }
+ table {
+ border-collapse:collapse;
+ }
+ table.thumbnail {
+ border-collapse:separate;
+ }
+ td {
+ font-family:sans-serif;
+ padding:0;
+ }
+ .errors {
+ text-align:left;
+ margin-top:5px;
+ margin-bottom:5px;
+ background-color:red;
+ font-weight:bold;
+ border:1px solid black;
+ color:white;
+ }
+ </style>'; \ No newline at end of file
diff --git a/template/default/upload.vtp b/template/default/upload.vtp
new file mode 100644
index 000000000..4e4d4390c
--- /dev/null
+++ b/template/default/upload.vtp
@@ -0,0 +1,79 @@
+<html>
+ <head>
+ {#page_style}
+ <title>{#upload_page_title}</title>
+ </head>
+ <body>
+ <table style="width:100%;height:100%">
+ <tr align="center" valign="middle">
+ <td>
+ {#frame_start}1px{#frame_begin}
+ <div class="titrePage">{#upload_title}</div>
+ {#frame_end}
+ <div style="margin-bottom:5px;">&nbsp;</div>
+ {#frame_start}50%{#frame_begin}
+ <!--VTP_upload_not_successful-->
+ <form enctype="multipart/form-data" method="post" action="{#form_action}">
+ <table style="width:80%;margin-left:auto;margin-right:auto;">
+ <!--VTP_errors-->
+ <tr>
+ <td colspan="3">
+ <div class="errors">
+ <ul>
+ <!--VTP_li-->
+ <li>{#li}</li>
+ <!--/VTP_li-->
+ </ul>
+ </div>
+ </td>
+ </tr>
+ <!--/VTP_errors-->
+ <tr>
+ <td colspan="2" class="menu">
+ <div style="text-align:center;">{#advise_title}</div>
+ <ul>
+ <!--VTP_advise-->
+ <li>{#content}</li>
+ <!--/VTP_advise-->
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" align="center" style="padding:10px;">
+ <input name="picture" type="file" value="" />
+ </td>
+ </tr>
+ <!--VTP_fields-->
+ <tr>
+ <td class="menu">{#upload_username}</td>
+ <td align="center" style="padding:10px;">
+ <input name="username" type="text" value="{#user_login}" />
+ </td>
+ </tr>
+ <tr>
+ <td class="menu">{#reg_mail_address}</td>
+ <td align="center" style="padding:10px;">
+ <input name="mail_address" type="text" value="{#user_mail_address}" />
+ </td>
+ </tr>
+ <!--/VTP_fields-->
+ <tr>
+ <td colspan="2" align="center">
+ <input name="submit" type="submit" value="{#submit}" />
+ </td>
+ </tr>
+ </table>
+ </form>
+ <!--/VTP_upload_not_successful-->
+ <!--VTP_upload_successful-->
+ {#upload_successful}<br />
+ <!--/VTP_upload_successful-->
+ <div style="text-align:center;">
+ <a href="{#return_url}">[ {#search_return_main_page} ]</a>
+ </div>
+ {#frame_end}
+ </td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file