Changeset 25
- Timestamp:
- Jul 21, 2003, 9:38:38 PM (21 years ago)
- Location:
- trunk/template/default
- Files:
-
- 37 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/template/default/about.vtp
r19 r25 3 3 {#style} 4 4 <title>{#about_page_title}</title> 5 <meta http-equiv="Content-Type" content="text/html; {#charset}"> 5 6 </head> 6 7 <body> -
trunk/template/default/admin/admin.vtp
r2 r25 1 1 <html> 2 2 <head> 3 <title>{# page_title}</title>3 <title>{#title_default}</title> 4 4 <style> 5 5 a { … … 56 56 background-color:#E6E4E4; 57 57 } 58 td.row2 {58 td.row2,td.throw2 { 59 59 background-color:#E8E8E8; 60 } 61 td.throw2 { 62 text-align:center; 63 font-weight:bold; 60 64 } 61 65 td.row3 { … … 95 99 text-align:center; 96 100 } 101 div.key { 102 margin-left : 10px; 103 } 104 td.choice { 105 text-align : center; 106 } 97 107 </style> 98 108 <script language="javascript"> … … 125 135 } 126 136 </script> 137 <meta http-equiv="Content-Type" content="text/html; {#charset}"> 127 138 </head> 128 139 <body> -
trunk/template/default/admin/infos_image.vtp
r15 r25 43 43 <!--VTP_picture--> 44 44 <tr> 45 <td style="text-align:center;"><a name="{#link}" ><img src="{#thumbnail_url}" alt="" class="miniature" title="{#filename}" /></td>45 <td style="text-align:center;"><a name="{#link}" href="{#url}"><img src="{#thumbnail_url}" alt="" class="miniature" title="{#filename}" /></td> 46 46 <td style="text-align:center;">{#default_name}<br /><input type="text" name="name-{#id}" value="{#name}" maxlength="255"/></td> 47 47 <td style="text-align:center;"><input type="text" name="author-{#id}" value="{#author}" maxlength="255"/></td> -
trunk/template/default/category.vtp
r9 r25 1 1 <html> 2 2 <head> 3 <meta http-equiv="Content-Type" content="text/html; charset={#charset}" /> 3 4 {#style} 4 5 <title>{#title}</title> … … 12 13 <div class="titreMenu">{#categories}</div> 13 14 <div class="menu"> 14 <!--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--> <a href="{#link_url}"><span title="{#hint_category}" style="{#name_style}">{#link_name}</span> <span class="menuInfoCat">[ <!--VTP_subcat--><span title="{#nb_subcats} {#sub-cat}">{#nb_subcats}</span> - <!--/VTP_subcat--><span title="{#total_cat} {#images_available}">{#total_cat}</span> ]</span></a>{#cat_icon}<br />15 <!--VTP_category-->{#indent}<!--VTP_bullet_w_link--><a href="{#bullet_link}"><img src="{#bullet_url}" style="border:none;" alt=">" /></a><!--/VTP_bullet_w_link--><!--VTP_bullet_wo_link--><img src="{#bullet_url}" style="border:none;" alt=">" /><!--/VTP_bullet_wo_link--> <a href="{#link_url}"><span title="{#hint_category}" style="{#name_style}">{#link_name}</span> <span class="menuInfoCat">[ <!--VTP_subcat--><span title="{#nb_subcats} {#sub-cat}">{#nb_subcats}</span> - <!--/VTP_subcat--><span title="{#total_cat} {#images_available}">{#total_cat}</span> ]</span></a>{#cat_icon}<br /> 15 16 <!--/VTP_category--> 16 17 <div class="totalImages">[ {#nb_total_pictures} {#total} ]</div> … … 78 79 {#nb_image_category} "{#cat_name}" : {#cat_nb_images} 79 80 <!--VTP_upload--> 80 <br /><a href="{#url}" class="back">{#upload_ name}</a>81 <br /><a href="{#url}" class="back">{#upload_picture}</a> 81 82 <!--/VTP_upload--> 82 83 </div> -
trunk/template/default/htmlfunctions.inc.php
r14 r25 1 1 <?php 2 2 /*************************************************************************** 3 * htmlfunctions.inc.php is a part of PhpWebGallery*3 * htmlfunctions.inc.php * 4 4 * ------------------- * 5 * last update : Wednesday, 25 December 2002*6 * email : pierrick@z0rglub.com*5 * application : PhpWebGallery 1.3 * 6 * author : Pierrick LE GALL <pierrick@z0rglub.com> * 7 7 * * 8 8 *************************************************************************** … … 16 16 ***************************************************************************/ 17 17 18 include( PREFIX_INCLUDE.'./template/'.$user['template'].'/theme/conf.php' ); 19 $user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif'; 20 $user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif'; 21 include_once( PREFIX_INCLUDE.'./template/'.$user['template'].'/style.inc.php'); 22 18 23 function get_icon( $date_comparaison ) 19 24 { … … 24 29 if ( $difference < $user['long_period'] * $jours ) 25 30 { 26 $icon_url = './t heme/'.$user['theme'].'/';31 $icon_url = './template/'.$user['template'].'/theme/'; 27 32 if ( $difference < $user['short_period'] * $jours ) 28 33 { … … 98 103 return '<table style="width:'; 99 104 } 100 105 /* 101 106 function get_frame_begin() 102 107 { … … 113 118 </table>'; 114 119 } 115 /* 120 */ 121 116 122 function get_frame_begin() 117 123 { 118 124 global $user; 119 $path = './t heme/'.$user['theme'].'/';125 $path = './template/'.$user['template'].'/theme/'; 120 126 $size_01 = getimagesize( $path.'01.gif' ); 121 127 $size_02 = getimagesize( $path.'02.gif' ); … … 135 141 { 136 142 global $user; 137 $path = './t heme/'.$user['theme'].'/';143 $path = './template/'.$user['template'].'/theme/'; 138 144 $size_08 = getimagesize( $path.'08.gif' ); 139 145 return ' … … 148 154 </table>'; 149 155 } 150 */ 156 151 157 function initialize_template() 152 158 { 153 global $vtp, $handle, $user; 154 159 global $vtp, $handle, $user, $lang; 160 161 $vtp->setGlobalVar( $handle, 'charset', $lang['charset'] ); 155 162 $vtp->setGlobalVar( $handle, 'style', $user['style'] ); 156 163 $vtp->setGlobalVar( $handle, 'frame_start', get_frame_start() ); … … 162 169 './template/'.$user['template'].'/footer.htm' ); 163 170 } 171 172 function display_category( $category, $indent, $handle ) 173 { 174 global $user,$lang,$vtp; 175 176 $vtp->addSession( $handle, 'category' ); 177 $vtp->setVar( $handle, 'category.indent', $indent ); 178 179 if ( $user['expand'] or count( $category['subcats'] ) == 0 ) 180 { 181 $vtp->addSession( $handle, 'bullet_wo_link' ); 182 $vtp->setVar( $handle, 'bullet_wo_link.bullet_url', 183 $user['lien_collapsed'] ); 184 $vtp->closeSession( $handle, 'bullet_wo_link' ); 185 } 186 else 187 { 188 $vtp->addSession( $handle, 'bullet_w_link' ); 189 $url = './category.php?cat='.$page['cat']; 190 $url.= '&expand='.$category['expand_string']; 191 if ( $page['cat'] == 'search' ) 192 { 193 $url.= '&search='.$_GET['search'].'&mode='.$_GET['mode']; 194 } 195 $vtp->setVar( $handle, 'bullet_w_link.bullet_link', add_session_id($url) ); 196 if ( $category['expanded'] ) 197 { 198 $vtp->setVar( $handle, 'bullet_w_link.bullet_url', 199 $user['lien_expanded'] ); 200 } 201 else 202 { 203 $vtp->setVar( $handle, 'bullet_w_link.bullet_url', 204 $user['lien_collapsed'] ); 205 } 206 $vtp->closeSession( $handle, 'bullet_w_link' ); 207 } 208 209 $url = './category.php?cat='.$category['id']; 210 $url.= '&expand='.$category['expand_string']; 211 $vtp->setVar( $handle, 'category.link_url', add_session_id( $url ) ); 212 213 $name = $category['name']; 214 if ( $name == '' ) $name = str_replace( '_', ' ', $category['dir'] ); 215 $vtp->setVar( $handle, 'category.link_name', $name ); 216 217 if ( $category['id_uppercat'] == '' ) 218 { 219 $vtp->setVar( $handle, 'category.name_style', 'font-weight:bold;' ); 220 } 221 if ( count( $category['subcats'] ) > 0 ) 222 { 223 $vtp->addSession( $handle, 'subcat' ); 224 $vtp->setVar( $handle, 'subcat.nb_subcats', count($category['subcats']) ); 225 $vtp->closeSession( $handle, 'subcat' ); 226 } 227 $vtp->setVar( $handle, 'category.total_cat', $category['nb_images'] ); 228 $vtp->setVar( $handle, 'category.cat_icon',get_icon($category['date_last'])); 229 $vtp->closeSession( $handle, 'category' ); 230 231 // recursive call 232 if ( $category['expanded'] ) 233 { 234 foreach ( $category['subcats'] as $subcat ) { 235 display_category( $subcat, $indent.str_repeat( ' ', 2 ), $handle ); 236 } 237 } 238 } 164 239 ?> -
trunk/template/default/identification.vtp
r2 r25 1 1 <html> 2 2 <head> 3 {# page_style}3 {#style} 4 4 <title>{#ident_page_title}</title> 5 <meta http-equiv="Content-Type" content="text/html; charset={#charset}" /> 5 6 </head> 6 7 <body> 8 {#header} 7 9 <table style="width:100%;height:100%"> 8 10 <tr align="center" valign="middle"> … … 60 62 <div style="margin-top:10px;text-align:left;"> 61 63 <!--VTP_register--> 62 <a href="register.php"><img src="./t heme/{#user_theme}/register.gif" style="border:0;" alt="{#ident_register}"/> {#ident_register}</a><br />64 <a href="register.php"><img src="./template/{#user_template}/theme/register.gif" style="border:0;" alt="{#ident_register}"/> {#ident_register}</a><br /> 63 65 <!--/VTP_register--> 64 <a href="mailto:{#mail_webmaster}?subject=[PhpWebGallery] {#ident_forgotten_password}"><img src="./t heme/{#user_theme}/lost.gif" style="border:0;" alt=""/> {#ident_forgotten_password}</a>66 <a href="mailto:{#mail_webmaster}?subject=[PhpWebGallery] {#ident_forgotten_password}"><img src="./template/{#user_template}/theme/lost.gif" style="border:0;" alt=""/> {#ident_forgotten_password}</a> 65 67 </div> 66 68 </td> … … 72 74 </tr> 73 75 </table> 76 {#footer} 74 77 </body> 75 78 </html> -
trunk/template/default/picture.vtp
r21 r25 1 1 <html> 2 2 <head> 3 <!--VTP_refresh--> 4 <meta http-equiv="refresh" content="{#time};url={#url}"> 5 <!--/VTP_refresh--> 6 <meta http-equiv="Content-Type" content="text/html;charset={#charset}"> 3 7 {#style} 4 8 <!-- Specific style to picture.php--> … … 42 46 } 43 47 </style> 44 <title>{#page_title}</title> 48 <title>{#page_title}</title> 45 49 </head> 46 50 <body> 47 51 {#header} 52 <!--VTP_information--> 53 <div class="information">{#content}</div> 54 <!--/VTP_information--> 55 <!--VTP_start_slideshow--> 56 <div style="text-align:center;margin-bottom:5px;"> 57 [ {#slideshow} : 58 <!--VTP_second--> 59 <a href="{#url}" class="back" style="font-weight:bold;">{#option}</a> 60 <!--/VTP_second--> 61 {#period_seconds} ] 62 </div> 63 <!--/VTP_start_slideshow--> 64 <!--VTP_stop_slideshow--> 65 <div style="text-align:center;margin-bottom:5px;"> 66 [ <a href="{#url}" class="back" style="font-weight:bold;">{#slideshow_stop}</a> ] 67 </div> 68 <!--/VTP_stop_slideshow--> 48 69 <table style="width:100%;height:100%;"> 49 70 <tr align="center" valign="middle"> … … 127 148 <td align="right" class="cellInfo"> 128 149 <div class="commentsInfos"> 129 {#date}<!--VTP_delete--><a href="{#link}" title="{#comments_del}"><img src="./t heme/{#user_theme}/delete.gif" style="border:none;margin-left:5px;" alt="[{#delete}]"/></a><!--/VTP_delete-->150 {#date}<!--VTP_delete--><a href="{#link}" title="{#comments_del}"><img src="./template/{#user_template}/theme/delete.gif" style="border:none;margin-left:5px;" alt="[{#delete}]"/></a><!--/VTP_delete--> 130 151 </div> 131 152 </td> -
trunk/template/default/profile.vtp
r14 r25 3 3 {#style} 4 4 <title>{#customize_page_title}</title> 5 <meta http-equiv="Content-Type" content="text/html; {#charset}"> 5 6 </head> 6 7 <body> -
trunk/template/default/register.vtp
r2 r25 1 1 <html> 2 2 <head> 3 {# page_style}3 {#style} 4 4 <title>{#register_page_title}</title> 5 </head> 5 <meta http-equiv="Content-Type" content="text/html; {#charset}"> 6 </head> 6 7 <body> 7 8 <table style="width:100%;height:100%"> -
trunk/template/default/search.vtp
r19 r25 3 3 {#style} 4 4 <title>{#search_title}</title> 5 <meta http-equiv="Content-Type" content="text/html; {#charset}"> 5 6 </head> 6 7 <body> -
trunk/template/default/style.inc.php
r2 r25 138 138 color:white; 139 139 } 140 div.information { 141 text-align:center; 142 border:2px solid '.$user['couleur_text_fond'].'; 143 margin:10px;padding:5px; 144 } 140 145 </style>'; -
trunk/template/default/upload.vtp
r13 r25 5 5 </head> 6 6 <body> 7 {#header} 7 8 <table style="width:100%;height:100%"> 8 9 <tr align="center" valign="middle"> … … 45 46 </tr> 46 47 <!--VTP_fields--> 48 <!-- username --> 47 49 <tr> 48 <td class="menu">{#upload_username} </td>50 <td class="menu">{#upload_username} <span style="color:red;">*</span></td> 49 51 <td align="center" style="padding:10px;"> 50 <input name="username" type="text" value="{#user _login}" />52 <input name="username" type="text" value="{#username}" /> 51 53 </td> 52 54 </tr> 55 <!-- mail address --> 53 56 <tr> 54 <td class="menu">{#mail_address} </td>57 <td class="menu">{#mail_address} <span style="color:red;">*</span></td> 55 58 <td align="center" style="padding:10px;"> 56 59 <input name="mail_address" type="text" value="{#user_mail_address}" /> 60 </td> 61 </tr> 62 <!-- name of the picture --> 63 <tr> 64 <td class="menu">{#upload_name}</td> 65 <td align="center" style="padding:10px;"> 66 <input name="name" type="text" value="{#name}" /> 67 </td> 68 </tr> 69 <!-- author --> 70 <tr> 71 <td class="menu">{#upload_author}</td> 72 <td align="center" style="padding:10px;"> 73 <input name="author" type="text" value="{#author}" /> 74 </td> 75 </tr> 76 <!-- date of creation --> 77 <tr> 78 <td class="menu">{#upload_creation_date}</td> 79 <td align="center" style="padding:10px;"> 80 <input name="date_creation" type="text" value="{#date_creation}" /> 81 </td> 82 </tr> 83 <!-- comment --> 84 <tr> 85 <td class="menu">{#upload_comment}</td> 86 <td align="center" style="padding:10px;"> 87 <textarea name="comment" rows="3" cols="40" style="overflow:auto">{#comment}</textarea> 57 88 </td> 58 89 </tr> … … 72 103 <a href="{#return_url}">[ {#search_return_main_page} ]</a> 73 104 </div> 105 <!--VTP_note--> 106 <div style="text-align:left;"><span style="color:red;">*</span> : {#mandatory}</div> 107 <!--/VTP_note--> 74 108 {#frame_end} 75 109 </td> 76 110 </tr> 77 111 </table> 112 {#footer} 78 113 </body> 79 114 </html>
Note: See TracChangeset
for help on using the changeset viewer.