- Timestamp:
- Feb 26, 2004, 7:33:45 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin.php
r364 r375 36 36 $tpl = array( 'title_default','charset','install_warning' ); 37 37 templatize_array( $tpl, 'lang', $handle ); 38 $vtp->setGlobalVar( $handle, 'style', './template/'.$user['template'].'/'.$user['template'].'-admin.css'); 38 39 //-------------------------------------------------- install.php still exists ? 39 40 if ( is_file( './install.php' ) ) -
trunk/category.php
r369 r375 49 49 check_restrictions( $page['cat'] ); 50 50 } 51 51 52 //-------------------------------------------------------------- initialization 53 function display_category( $category, $indent ) 54 { 55 global $user,$lang,$template, $handle; 56 57 $style=''; 58 $url = './category.php?cat='.$category['id']; 59 $url.= '&expand='.$category['expand_string']; 60 $name = $category['name']; 61 if ( $name == '' ) $name = str_replace( '_', ' ', $category['dir'] ); 62 if ( $category['id_uppercat'] == '' ) 63 { 64 $style = 'font-weight:bold;'; 65 } 66 67 $template->assign_block_vars('category', array( 68 'LINK_NAME' => $name, 69 'INDENT' => $indent, 70 'NB_SUBCATS'=>$category['nb_sub_categories'], 71 'TOTAL_CAT'=>$category['nb_images'], 72 'CAT_ICON'=>get_icon($category['date_last']), 73 74 'T_NAME'=>$style, 75 'U_LINK' => add_session_id($url))); 76 77 if ( $user['expand'] or $category['nb_sub_categories'] == 0 ) 78 { 79 $template->assign_block_vars('category.bulletnolink', array('BULLET_IMAGE' => $user['lien_collapsed'])); 80 } 81 else 82 { 83 $url = './category.php'; 84 if (isset($page['cat'])) 85 { 86 $url .='?cat='.$page['cat']; 87 $url.= '&expand='.$category['expand_string']; 88 } 89 else if ($category['expand_string']<>'') 90 { 91 $url.= '?expand='.$category['expand_string']; 92 } 93 94 if ( $category['expanded'] ) 95 { 96 $img=$user['lien_expanded']; 97 } 98 else 99 { 100 $img=$user['lien_collapsed']; 101 } 102 103 $template->assign_block_vars('category.bulletlink', array( 104 'BULLET_IMAGE' => $img, 105 'U_BULLET_LINK'=> add_session_id($url) 106 )); 107 } 108 109 // recursive call 110 if ( $category['expanded'] ) 111 { 112 foreach ( $category['subcats'] as $subcat ) { 113 $template->assign_block_vars('category.subcat', array()); 114 display_category( $subcat, $indent.str_repeat( ' ', 2 )); 115 } 116 } 117 } 118 52 119 // detection of the start picture to display 53 120 if ( !isset( $_GET['start'] ) … … 119 186 120 187 $template->set_filenames( array('category'=>'category.tpl') ); 121 initialize_template();122 188 123 189 //-------------------------------------------------------------- category title … … 127 193 if ( is_numeric( $page['cat'] ) ) 128 194 { 129 $cat_title = get_cat_display_name( $page['cat_name'], ' <br />',195 $cat_title = get_cat_display_name( $page['cat_name'], ' > ', 130 196 'font-style:italic;' ); 131 197 } … … 145 211 'TITLE' => $cat_title, 146 212 'USERNAME' => $user['username'], 147 148 'S_TOP'=>$conf['top_number'], 149 'S_SHORT_PERIOD'=>$user['short_period'], 150 'S_LONG_PERIOD'=>$user['long_period'], 151 'S_WEBMASTER'=>$conf['webmaster'], 152 'S_MAIL'=>$conf['mail_webmaster'], 213 'TOP_VISITED'=>$conf['top_number'], 153 214 154 215 'L_CATEGORIES' => $lang['categories'], … … 168 229 'L_COMMENT' => $lang['comments'], 169 230 'L_NB_IMG' => $lang['nb_image_category'], 170 'L_USER' => $lang['connected_user'], 171 'L_RECENT_IMAGE' => $lang['recent_image'], 172 'L_DAYS' => $lang['days'], 173 'L_SEND_MAIL' => $lang['send_mail'], 174 'L_TITLE_MAIL' => $lang['title_send_mail'], 231 'L_IDENTIFY' => $lang['ident_title'], 232 'L_SUBMIT' => $lang['menu_login'], 233 'L_USERNAME' => $lang['login'], 234 'L_PASSWORD' => $lang['password'], 235 'L_HELLO' => $lang['hello'], 236 'L_LOGOUT' => $lang['logout'], 237 'L_ADMIN' => $lang['admin'], 238 'L_ADMIN_HINT' => $lang['hint_admin'], 239 'L_PROFILE' => $lang['customize'], 240 'L_PROFILE_HINT' => $lang['hint_customize'], 241 242 'F_IDENTIFY' => add_session_id( PHPWG_ROOT_PATH.'identification.php' ), 175 243 176 244 'T_COLLAPSED' => $user['lien_collapsed'], … … 178 246 'T_LONG'=>get_icon( time() - ( $user['short_period'] * 24 * 60 * 60 + 1 ) ), 179 247 180 'U_HOME' => add_session_id( 'category.php' ), 181 'U_FAVORITE' => add_session_id( './category.php?cat=fav&expand='.$page['expand'] ), 182 'U_MOST_VISITED'=>add_session_id( './category.php?cat=most_visited&expand='.$page['expand'] ), 183 'U_RECENT'=>add_session_id( './category.php?cat=recent&expand='.$page['expand'] ) 248 'U_HOME' => add_session_id( PHPWG_ROOT_PATH.'category.php' ), 249 'U_FAVORITE' => add_session_id( PHPWG_ROOT_PATH.'category.php?cat=fav&expand='.$page['expand'] ), 250 'U_MOST_VISITED'=>add_session_id( PHPWG_ROOT_PATH.'category.php?cat=most_visited&expand='.$page['expand'] ), 251 'U_RECENT'=>add_session_id( PHPWG_ROOT_PATH.'category.php?cat=recent&expand='.$page['expand'] ), 252 'U_LOGOUT' => add_session_id( PHPWG_ROOT_PATH.'category.php?act=logout' ), 253 'U_ADMIN'=>add_session_id( PHPWG_ROOT_PATH.'admin.php' ), 254 'U_PROFILE'=>add_session_id(PHPWG_ROOT_PATH.'profile.php?'.str_replace( '&', '&', $_SERVER['QUERY_STRING'] )) 184 255 ) 185 256 ); … … 202 273 } 203 274 //--------------------------------------------------------------------- summary 204 $sum_title = ''; 205 $sum_name=''; 206 $sum_url = ''; 275 207 276 if ( !$user['is_the_guest'] ) 208 277 { 209 $sum_name=replace_space($lang['logout']); 210 $sum_url = 'category.php?act=logout'; 278 $template->assign_block_vars('logout',array()); 279 // administration link 280 if ( $user['status'] == 'admin' ) 281 { 282 $template->assign_block_vars('logout.admin', array()); 283 } 211 284 } 212 285 else 213 286 { 214 $sum_title = $lang['hint_login']; 215 $sum_name=replace_space( $lang['menu_login']); 216 $sum_url = 'identification.php'; 217 } 218 $template->assign_block_vars('summary', array( 219 'TITLE'=>$sum_title, 220 'NAME'=>$sum_name, 221 'U_SUMMARY'=>add_session_id( $sum_url ), 222 ) 223 ); 224 225 // customization link 226 if ( !$user['is_the_guest'] ) 227 { 228 $template->assign_block_vars('summary', array( 229 'TITLE'=>$lang['hint_customize'], 230 'NAME'=>$lang['customize'], 231 'U_SUMMARY'=>add_session_id('profile.php?'.str_replace( '&', '&', $_SERVER['QUERY_STRING'] )), 232 )); 287 $template->assign_block_vars('login',array()); 233 288 } 234 289 … … 253 308 'U_SUMMARY'=>add_session_id( 'about.php?'.str_replace( '&', '&', $_SERVER['QUERY_STRING'] ) ) 254 309 )); 255 256 // administration link257 if ( $user['status'] == 'admin' )258 {259 $template->assign_block_vars('summary', array(260 'TITLE'=>$lang['hint_admin'],261 'NAME'=>$lang['admin'],262 'U_SUMMARY'=>add_session_id( 'admin.php' )263 ));264 }265 310 266 311 //------------------------------------------------------------------ thumbnails -
trunk/identification.php
r369 r375 39 39 $query.= " WHERE username = '".$_POST['username']."';"; 40 40 $row = mysql_fetch_array( mysql_query( $query ) ); 41 if( $row['password'] == md5( $_POST['pass '] ) )41 if( $row['password'] == md5( $_POST['password'] ) ) 42 42 { 43 43 $session_id = session_create( $_POST['username'] ); -
trunk/include/common.inc.php
r370 r375 120 120 } 121 121 122 122 define( 'PREFIX_INCLUDE', '' );// en attendant la migration complète 123 123 include(PHPWG_ROOT_PATH . 'include/constants.php'); 124 124 include(PHPWG_ROOT_PATH . 'include/config.inc.php'); -
trunk/include/constants.php
r362 r375 26 26 // +-----------------------------------------------------------------------+ 27 27 28 define( 'PREFIX_INCLUDE', '' );29 30 28 // Debug Level 31 29 define('DEBUG', 1); // Debugging on … … 38 36 define('CRITICAL_ERROR', 204); 39 37 40 // xml tags41 define( 'ATT_REG', '\w+' );42 define( 'VAL_REG', '[^"]*' );43 44 38 // Table names 45 39 define('CATEGORIES_TABLE', $table_prefix.'categories'); -
trunk/include/functions.inc.php
r364 r375 25 25 // | USA. | 26 26 // +-----------------------------------------------------------------------+ 27 include( P REFIX_INCLUDE.'./include/functions_user.inc.php' );28 include( P REFIX_INCLUDE.'./include/functions_session.inc.php' );29 include( P REFIX_INCLUDE.'./include/functions_category.inc.php' );30 include( P REFIX_INCLUDE.'./include/functions_xml.inc.php' );31 include( P REFIX_INCLUDE.'./include/functions_group.inc.php' );27 include( PHPWG_ROOT_PATH .'include/functions_user.inc.php' ); 28 include( PHPWG_ROOT_PATH .'include/functions_session.inc.php' ); 29 include( PHPWG_ROOT_PATH .'include/functions_category.inc.php' ); 30 include( PHPWG_ROOT_PATH .'include/functions_xml.inc.php' ); 31 include( PHPWG_ROOT_PATH .'include/functions_group.inc.php' ); 32 32 33 33 //----------------------------------------------------------- generic functions -
trunk/include/functions_xml.inc.php
r362 r375 25 25 // | USA. | 26 26 // +-----------------------------------------------------------------------+ 27 // xml tags 28 define( 'ATT_REG', '\w+' ); 29 define( 'VAL_REG', '[^"]*' ); 30 27 31 //------------------------------------------------------------------- functions 28 32 // getContent returns the content of a tag -
trunk/include/page_tail.php
r362 r375 32 32 33 33 $template->assign_vars(array( 34 'L_GEN_TIME' => $lang['generation_time'], 35 'S_TIME' => $time, 36 'S_VERSION' => $conf['version'], 37 'U_SITE' => add_session_id( $conf['site_url'] ) 38 ) 39 ); 34 'TIME' => $time, 35 'VERSION' => $conf['version'], 36 'WEBMASTER'=>$conf['webmaster'], 37 'MAIL'=>$conf['mail_webmaster'], 38 39 'L_GEN_TIME' => $lang['generation_time'], 40 'L_SEND_MAIL' => $lang['send_mail'], 41 'L_TITLE_MAIL' => $lang['title_send_mail'], 42 43 'U_SITE' => add_session_id( $conf['site_url'] ) 44 )); 40 45 41 46 if (DEBUG) -
trunk/include/user.inc.php
r367 r375 130 130 $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page']; 131 131 init_userprefs($user); 132 $user['lien_expanded']='./template/'.$user['template'].'/theme/expanded. .gif';132 $user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif'; 133 133 $user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif'; 134 134 ?> -
trunk/language/en_UK.iso-8859-1/common.lang.php
r369 r375 46 46 $lang['login'] = 'login'; 47 47 $lang['hint_login'] = 'identification enables site\'s appareance customization'; 48 $lang['logout'] = ' logout';48 $lang['logout'] = 'Logout'; 49 49 $lang['customize'] = 'customize'; 50 50 $lang['hint_customize'] = 'customize the appareance of the gallery'; … … 55 55 $lang['about'] = 'about'; 56 56 $lang['hint_about'] = 'more informations on PhpWebGallery...'; 57 $lang['admin'] = ' admin';57 $lang['admin'] = 'Administration'; 58 58 $lang['hint_admin'] = 'available for administrators only'; 59 $lang['no_category'] = ' No category selected<br />please select it in the menu';59 $lang['no_category'] = 'Home'; 60 60 $lang['page_number'] = 'page number'; 61 61 $lang['previous_page'] = 'Previous'; 62 62 $lang['next_page'] = 'Next'; 63 63 $lang['nb_image_category'] = 'number of images in this category'; 64 $lang['recent_image'] = ' image within the';64 $lang['recent_image'] = 'Image within the'; 65 65 $lang['days'] = 'days'; 66 $lang['send_mail'] = ' Any comment? Send me an e-mail';66 $lang['send_mail'] = 'Contact the webmaster'; 67 67 $lang['title_send_mail'] = 'A comment on your site'; 68 68 $lang['sub-cat'] = 'subcategories'; … … 234 234 $lang['menu_login'] = 'login'; 235 235 $lang['update_wrong_dirname'] = 'The name of directories and files must be composed of letters, figures, "-", "_" or "."'; 236 236 $lang['hello'] = 'Hello'; 237 237 ?> -
trunk/picture.php
r369 r375 204 204 205 205 $title_img = $picture['current']['name']; 206 $title_nb = ''; 206 207 if (is_numeric( $page['cat'] )) 207 208 { 208 $title_img = get_cat_display_name( $page['cat_name'], " - ","font-style:italic;");209 $title_img = replace_space(get_cat_display_name( $page['cat_name'], " > ","font-style:italic;" )); 209 210 $n = $page['num'] + 1; 210 $title_ img = replace_space( $title_img." - " ).$n.'/';211 $title_ img.= $page['cat_nb_images']."<br />";212 $title_img.= $picture['current']['name'];211 $title_nb = "Photo".' '.$n.'/'; 212 $title_nb.= $page['cat_nb_images']; 213 //$title_img.= $picture['current']['name']; 213 214 } 214 215 else if ( $page['cat'] == 'search' ) … … 238 239 239 240 $template->assign_vars(array( 240 'TITLE' => $title_img, 241 'CATEGORY' => $title_img, 242 'PHOTO' => $title_nb, 243 'TITLE' => $picture['current']['name'], 241 244 'PREV_TITLE_IMG' => $picture['prev']['name'], 242 245 'NEXT_TITLE_IMG' => $picture['next']['name'], -
trunk/template/default/admin.vtp
r223 r375 1 <html> 2 <head> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset={#charset}" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 3 6 <title>{#title_default}</title> 4 <style> 5 a { 6 text-decoration:none; 7 color:#006699; 8 } 9 a:hover { 10 text-decoration:underline; 11 } 12 body,table,input,form,select,textarea { 13 font-family:arial,verdana,sans-serif; 14 font-size:12px; 15 } 16 .miniature { 17 border:solid 1px black; 18 } 19 body { 20 background-color:#E5E5E5; 21 } 22 .titretable1 { 23 color:black; 24 background-color:#D3DCE3; 25 text-align:center; 26 border:2px solid #006699; 27 font-weight:bold; 28 border-bottom:0px; 29 } 30 .grostitre { 31 text-align:center; 32 margin:10px 50px 10px 50px; 33 font-size:20px; 34 width:300px; 35 } 36 .plan { 37 margin:10px 10px 10px 2px; 38 white-space:nowrap; 39 } 40 .table1 { 41 border-collapse:collapse; 42 background-color:#FFFFFF; 43 } 44 .contenucellule { 45 background-color:#EEEEEE; 46 border:2px solid #006699; 47 } 48 .style1 { 49 margin-top:20px; 50 } 51 th { 52 font-weight:bold; 53 background-color:#D3DCE3; 54 } 55 td.row1 { 56 background-color:#E6E4E4; 57 } 58 td.row2,td.throw2 { 59 background-color:#E8E8E8; 60 } 61 td.throw2 { 62 text-align:center; 63 font-weight:bold; 64 } 65 td.row3 { 66 background-color:#eeeeee; 67 } 68 td.row4 { 69 background-color:#cccccc; 70 } 71 .summary { 72 text-align:center; 73 font-weight:bold; 74 } 75 .retrait { 76 margin:10px; 77 margin-left:30px; 78 margin-top:2px; 79 } 80 input,textarea { 81 border-width:1; 82 border-color:#000000; 83 background:#ffffff; 84 color: #000000; 85 } 86 .erreur { 87 color:red; 88 text-align:center; 89 } 90 .errors { 91 text-align:left; 92 margin:25px; 93 background-color:#ffe1e1; 94 border:1px solid red; 95 color:black; 96 } 97 .errors_title { 98 margin:5px; 99 font-weight:bold; 100 font-size:120%; 101 text-align:center; 102 color:red; 103 } 104 .info { 105 color:darkblue; 106 text-align:center; 107 } 108 div.key { 109 margin-left : 10px; 110 } 111 td.choice { 112 text-align : center; 113 } 114 div.install_warning { 115 text-align:center; 116 color:red; 117 margin:20px; 118 font-weight:bold; 119 } 120 <!-- comments CSS style --> 121 .commentsAuthor,.commentsTitle,.commentsInfos,.commentsContent,.commentsNavigationBar { 122 color:black; 123 font-family:arial,sans-Serif; 124 font-size:12px; 125 } 126 .commentsTitle,.commentsAuthor { 127 text-align:center; 128 font-weight:bold; 129 } 130 .commentsInfos { 131 text-align:right; 132 margin:3px 3px 3px 10px; 133 font-size:11px; 134 } 135 .commentsContent { 136 margin:10px; 137 } 138 .commentsTitle { 139 margin-top:15px; 140 } 141 .commentsAuthor { 142 margin:5px; 143 } 144 .commentsNavigationBar { 145 margin:10px; 146 } 147 .tableComment { 148 width:100%; 149 border:2px solid #006699; 150 margin:10px; 151 } 152 .cellAuthor { 153 border-right:1px solid #006699; 154 width:100px; 155 } 156 .cellInfo { 157 border-bottom:1px solid #006699; 158 } 159 .imgLink { 160 border:1px solid black; 161 } 162 </style> 7 <link rel="stylesheet" href="{#style}" type="text/css" /> 163 8 <script language="javascript"> 164 9 function SelectAll( formulaire ) … … 190 35 } 191 36 </script> 192 <meta http-equiv="Content-Type" content="text/html; charset={#charset}"> 37 193 38 </head> 194 39 <body> -
trunk/template/default/category.tpl
r364 r375 1 <div align="center" style="padding:10px;"><img src="template/default/images/logo.jpg" width="360" height="100"> 2 </div> 1 3 <table style="width:100%;"> 2 4 <tr> 3 <td valign="top" style=" width:1%;padding:10px;">4 {T_START}100%{T_BEGIN}5 <td valign="top" style="padding:10px;width:1%;"> 6 <div class="table1"> 5 7 <div class="titreMenu"> 6 8 <a href="{U_HOME}">{L_CATEGORIES}</a> … … 15 17 <img src="{category.bulletnolink.BULLET_IMAGE}" style="border:none;" alt="" /> 16 18 <!-- END bulletnolink --> 17 <a href="{category.U_LINK}"><span title='{L_HINT_CATEGORY}' style="{category.T_NAME}">{category.LINK_NAME}</span> 19 <a href="{category.U_LINK}"><span title='{L_HINT_CATEGORY}' style="{category.T_NAME}">{category.LINK_NAME}</span></a> 18 20 <span class="menuInfoCat">[ 19 21 <!-- BEGIN subcat --> 20 22 <span title="{category.NB_SUBCATS} {L_SUBCAT}">{category.NB_SUBCATS}</span> - 21 23 <!-- END subcat --> 22 <span title="{category.TOTAL_CAT} {L_IMG_AVAILABLE}">{category.TOTAL_CAT}</span> ]</span> </a>{category.CAT_ICON}<br />24 <span title="{category.TOTAL_CAT} {L_IMG_AVAILABLE}">{category.TOTAL_CAT}</span> ]</span>{category.CAT_ICON}<br /> 23 25 <!-- END category --> 24 26 … … 28 30 <!-- END favorites --> 29 31 <br /> <img src="{T_COLLAPSED}" alt='' /> <span style="font-weight:bold;">{L_STATS}</span> 30 <br /> <img src="{T_COLLAPSED}" alt='' /> <a href="{U_MOST_VISITED}"><span title="{L_MOST_VISITED_HINT}" style="font-weight:bold;">{ S_TOP} {L_MOST_VISITED}</span></a>32 <br /> <img src="{T_COLLAPSED}" alt='' /> <a href="{U_MOST_VISITED}"><span title="{L_MOST_VISITED_HINT}" style="font-weight:bold;">{TOP_VISITED} {L_MOST_VISITED}</span></a> 31 33 <br /> <img src="{T_COLLAPSED}" alt='' /> <a href="{U_RECENT}"><span title="{L_RECENT_HINT}" style="font-weight:bold;">{L_RECENT}</span></a> {T_SHORT} 32 34 </div> 33 {T_END}34 <div style="margin-bottom:5px;"> </div>35 {T_START}100%{T_BEGIN}36 35 <div class="titreMenu">{L_SUMMARY}</div> 37 36 <div class="menu"> … … 43 42 <!-- END upload --> 44 43 </div> 45 {T_END} 44 <div class="titreMenu">{L_IDENTIFY}</div> 45 <div class="menu"> 46 <!-- BEGIN login --> 47 <form method="post" action="{F_IDENTIFY}"> 48 <input type="hidden" name="redirect" value="{U_REDIRECT}"> 49 {L_USERNAME}<br /> 50 <input type="text" name="username" size="15" value="" /><br /> 51 {L_PASSWORD}<br /> 52 <input type="password" name="password" size="15"><br /><br /> 53 <input type="submit" name="login" value="{L_SUBMIT}" class="bouton" /> 54 </form> 55 <!-- END login --> 56 <!-- BEGIN logout --> 57 <p>{L_HELLO} {USERNAME} !</p> 58 <img src="{T_COLLAPSED}" alt=""/> <a href="{U_LOGOUT}">{L_LOGOUT}</a><br /> 59 <img src="{T_COLLAPSED}" alt=''/> <a href="{U_PROFILE}" title="{L_PROFILE_HINT}">{L_PROFILE}</a><br /> 60 <!-- BEGIN admin --> 61 <img src="{T_COLLAPSED}" alt=''/> <a href="{U_ADMIN}" title="{L_ADMIN_HINT}">{L_ADMIN}</a><br /> 62 <!-- END admin --> 63 <!-- END logout --> 64 </div> 65 </div> 46 66 </td> 47 <td style="padding:5px;width:99%;" valign="top"> 48 <table style="width:100%;"> 49 <tr> 50 <td align="center"> 51 {T_START}1%{T_BEGIN} 52 <div class="titrePage">{TITLE}</div> 53 {T_END} 54 <div style="margin-bottom:5px;"> </div> 67 <td style="padding:10px;width:99%;" valign="top"> 68 <div class="home"> 69 <div class="titrePage">{TITLE}</div> 55 70 <!-- BEGIN thumbnails --> 56 <table class="thumbnail">71 <table valign="top" align="center" class="thumbnail"> 57 72 <!-- BEGIN line --> 58 73 <tr> 59 74 <!-- BEGIN thumbnail --> 60 <td valign="bottom"class="thumbnail">75 <td class="thumbnail"> 61 76 <a href="{thumbnails.line.thumbnail.U_IMG_LINK}" class="back"> 62 77 <img src="{thumbnails.line.thumbnail.IMAGE}" … … 76 91 </table> 77 92 <!-- END thumbnails --> 78 </td> 79 </tr> 80 <tr> 81 <td align="left"> 93 <br /> 82 94 <!-- BEGIN cat_infos --> 83 95 <!-- BEGIN navigation --> … … 91 103 </div> 92 104 <!-- END cat_infos --> 93 </td> 94 </tr> 95 <tr> 96 <td align="right"> 97 {T_START}1%{T_BEGIN} 98 <div class="info"> 99 <!-- BEGIN username --> 100 {L_USER} {USERNAME}<br /> 101 <!-- END username --> 102 {L_RECENT_IMAGE} {S_SHORT_PERIOD} {L_DAYS} 103 {T_SHORT}<br /> 104 {L_RECENT_IMAGE} {S_LONG_PERIOD} {L_DAYS} 105 {T_LONG}<br /> 106 {L_SEND_MAIL} <a href="mailto:{S_MAIL}?subject={L_TITLE_MAIL}"><span style="font-weight:bold;">{S_WEBMASTER}</span></a> 107 </div> 108 {T_END} 109 </td> 110 </tr> 111 </table> 105 </div> 112 106 </td> 113 107 </tr> -
trunk/template/default/default.css
r345 r375 1 /* Main styles */ 2 3 body { 4 font-family: Verdana, Arial, Helvetica, sans-serif; 5 font-size:10px; 6 background-color:#000000; 7 color:#E0E0E0; 8 margin:5px; 9 } 10 1 11 a { 2 12 text-decoration:none; 3 color:# E0E0E0;13 color:#FFFFFF; 4 14 } 5 15 a:hover { 6 16 text-decoration:underline; 7 color:#E0E0E0; 8 } 9 10 a.back,body { 11 color:#E0E0E0; 12 } 13 body { 14 font-family:arial, sans-serif; 17 color:#FFFFAA; 18 } 19 20 /* Navigation styles */ 21 22 .titreMenu,.titrePage 23 { 24 padding-right: 10px; 25 padding-left: 10px; 26 border-bottom: 1px solid #000000; 27 border-right: 1px solid #000000; 28 height: 25px; 29 line-height: 25px; 15 30 font-size:12px; 16 background-color:#444444; 17 margin:5px; 18 } 19 table, input { 20 font-family:arial, sans-serif; 21 font-size:12px; 22 } 31 color:#E0E0E0; 32 background-image: url(theme/tableh1_bg.gif); 33 font-weight:600; 34 text-align:center; 35 } 36 37 .titrePage 38 { 39 text-align:left; 40 font-size:16px; 41 margin-bottom:5px; 42 } 43 44 .titreImg{ 45 text-align:center; 46 font-size:16px; 47 color:#FFF48E; 48 font-weight:600; 49 } 50 51 .menu 52 { 53 margin:10px 5px 10px 5px; 54 white-space:nowrap; 55 font-size:11px; 56 } 57 58 /* Image related styles */ 59 23 60 .imgLink { 24 border:1px solid #E0E0E0; 25 } 61 border-style: solid; 62 border-width:2px; 63 border-color: #A0A0A0; 64 margin: 2px; 65 } 66 26 67 .imgLink:hover { 27 68 text-decoration:none; 28 69 } 29 .titrePage,.titreMenu,.menu,.info,.commentsAuthor,.commentsTitle,.commentsInfos,.commentsContent,.commentsNavigationBar { 30 color:lightgray; 31 } 32 .titreMenu, .menu, .info { 70 71 .image { 72 border: 1px solid #000000; 73 background-color: #FFFFFF; 74 text-align:center; 75 margin-top: 10px; 76 margin-bottom: 20px; 77 white-space: nowrap; 78 padding: 0px; 79 display: table; 80 } 81 82 .commentImage { 83 font-weight:bold; 84 text-align:center; 85 font-size:17px; 86 color:#F0F0F0; 87 margin-bottom: 10px; 88 } 89 90 /* Table styles */ 91 92 .main { 93 background-color:#444444; 94 border: 1px solid #E0E0E0; 95 width:100%; 96 padding-bottom:30px; 97 } 98 99 .table1, .home 100 { 101 border: 1px solid #000000; 102 background-color:#555555; 103 } 104 105 .home 106 { 107 text-align:center; 108 width:100%; 109 } 110 111 .table2 { 112 background: #797979; 113 border: 1px solid #000000; 114 margin: 0px 10px 10px 10px; 115 } 116 117 td{ 118 padding:0px; 119 } 120 121 /* Thumbnails styles */ 122 123 .thumbnail { 124 font-size:11px; 125 text-align:center; 126 display:inline-table; 127 vertical-align: baseline; 128 } 129 130 table.thumbnail { 131 border-collapse:separate; 132 } 133 134 /* Other styles */ 135 a.back { 136 color:#E0E0E0; 137 } 138 139 input { 140 font-family: Verdana, Arial, Helvetica, sans-serif; 141 font-size:11px; 142 } 143 144 .info,.commentsAuthor,.commentsTitle,.commentsInfos,.commentsContent,.commentsNavigationBar { 145 color:#E0E0E0; 146 background-color:#444444; 147 } 148 .info { 33 149 margin-bottom:5px; 34 150 white-space:nowrap; 35 } 36 .menu, .titrePage, .info { 37 margin-left:2px; 38 margin-right:2px; 151 margin-left:5px; 152 margin-right:5px; 153 text-align:right; 39 154 } 40 155 .menuInfoCat { … … 48 163 font-size:11px; 49 164 } 50 .titreMenu { 51 font-weight:600; 52 text-align:center; 53 } 54 .info { 55 text-align:right; 56 } 57 .titrePage { 58 white-space:nowrap; 59 font-weight:500; 60 font-size:18px; 61 text-align:center; 62 } 165 63 166 .comments, .infoCat, .navigationBar { 64 167 margin-top:10px; … … 75 178 text-align:left; 76 179 } 77 .thumbnail { 78 font-size:11px; 79 text-align:center; 80 } 180 81 181 .copyright { 82 font-size:11px; 83 text-align:center; 84 font-family:sans-serif; 85 letter-spacing:0.3mm; 86 } 87 .commentImage { 88 font-weight:bold; 89 text-align:center; 90 font-size:17px; 91 } 182 font-size:10px; 183 text-align:center; 184 letter-spacing:-1px; 185 } 186 92 187 .bouton { 93 background: lightgray;188 background:#E0E0E0; 94 189 } 95 190 textarea,input { 96 191 color:black; 97 192 } 98 table { 99 border-collapse:collapse; 100 } 101 table.thumbnail { 102 border-collapse:separate; 103 } 104 td { 105 font-family:sans-serif; 106 padding:0px; 107 } 193 194 195 108 196 .errors { 109 197 text-align:left; … … 115 203 color:white; 116 204 } 205 117 206 div.information { 118 207 text-align:center; … … 207 296 color:red; 208 297 } 298 -
trunk/template/default/footer.tpl
r351 r375 1 1 <!-- BEGIN debug --> 2 <div class="copyright">{L_GEN_TIME} { S_TIME}</div>2 <div class="copyright">{L_GEN_TIME} {TIME}</div> 3 3 <!-- END debug --> 4 4 <!-- Please, do not remove this copyright. If you really want to, 5 5 contact me pierrick@z0rglub.com to find a solution on how 6 6 to show the origin of the script...--> 7 <div class="copyright">Powered by <a href="{U_SITE}" class="back">PhpWebGallery</a> {S_VERSION}</div> 7 <div class="copyright">Powered by <a href="{U_SITE}" class="back">PhpWebGallery</a> {VERSION}</div> 8 <div class="copyright">{L_SEND_MAIL} : <a href="mailto:{MAIL}?subject={L_TITLE_MAIL}"><span style="font-weight:bold;">{WEBMASTER}</span></a></div> 9 </td></tr> 10 </table> 8 11 </body> 9 12 </html> -
trunk/template/default/header.tpl
r351 r375 11 11 </head> 12 12 <body> 13 <table class="main"> 14 <tr><td> -
trunk/template/default/htmlfunctions.inc.php
r370 r375 28 28 function get_icon( $date_comparaison ) 29 29 { 30 global $user, $conf ;30 global $user, $conf, $lang; 31 31 $difference = time() - $date_comparaison; 32 32 $jours = 24*60*60; 33 33 $output = ''; 34 $title = $lang['recent_image'].' '; 34 35 if ( $difference < $user['long_period'] * $jours ) 35 36 { … … 38 39 { 39 40 $icon_url.= 'new_short.gif'; 41 $title .= $user['short_period']; 40 42 } 41 43 else 42 44 { 43 45 $icon_url.= 'new_long.gif'; 46 $title .= $user['long_period']; 44 47 } 48 $title .= ' '.$lang['days']; 45 49 $size = getimagesize( $icon_url ); 46 $output = '<img src="'.$icon_url.'" style="border:0;';50 $output = '<img title="'.$title.'" src="'.$icon_url.'" style="border:0;'; 47 51 $output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="" />'; 48 52 } … … 106 110 function get_frame_start() 107 111 { 108 return '<table style=" width:';112 return '<table style="padding:0px;border-collapse:collapse; width:'; 109 113 } 110 114 … … 118 122 return ';"> 119 123 <tr> 120 <td><img src="'.$path.'01.gif" style=" width:'.$size_01[0].'px;display:box;" alt="" /></td>121 <td><img src="'.$path.'02.gif" style=" display:box;width:100%;height:'.$size_02[1].'px;" alt="" /></td>122 <td><img src="'.$path.'03.gif" style=" display:box;width:'.$size_03[0].'px;" alt="" /></td>124 <td><img src="'.$path.'01.gif" style="margin:auto;width:'.$size_01[0].'px;display:box;" alt="" /></td> 125 <td><img src="'.$path.'02.gif" style="margin:auto;display:box;width:100%;height:'.$size_02[1].'px;" alt="" /></td> 126 <td><img src="'.$path.'03.gif" style="margin:auto;display:box;width:'.$size_03[0].'px;" alt="" /></td> 123 127 </tr> 124 128 <tr> 125 <td style=" background:url('.$path.'04.gif);"></td>126 <td style=" background:url('.$path.'05.gif);width:100%;">';129 <td style="margin:autox;background:url('.$path.'04.gif);"></td> 130 <td style="margin:auto;background:url('.$path.'05.gif);width:100%;">'; 127 131 } 128 132 … … 134 138 return ' 135 139 </td> 136 <td style=" background:url('.$path.'06.gif);"></td>140 <td style="margin:auto;background:url('.$path.'06.gif);"></td> 137 141 </tr> 138 <tr >139 <td><img src="'.$path.'07.gif" alt="" /></td>140 <td><img src="'.$path.'08.gif" style=" width:100%;height:'.$size_08[1].'px;" alt="" /></td>141 <td><img src="'.$path.'09.gif" alt="" /></td>142 <tr > 143 <td><img src="'.$path.'07.gif" style="margin:auto;" alt="" /></td> 144 <td><img src="'.$path.'08.gif" style="margin:auto;width:100%;height:'.$size_08[1].'px;" alt="" /></td> 145 <td><img src="'.$path.'09.gif" style="margin:auto;" alt="" /></td> 142 146 </tr> 143 147 </table>'; … … 154 158 ) 155 159 ); 156 157 158 global $vtp, $handle;159 if (isset($handle))160 {161 $vtp->setGlobalVar( $handle, 'frame_start', get_frame_start() );162 $vtp->setGlobalVar( $handle, 'frame_begin', get_frame_begin() );163 $vtp->setGlobalVar( $handle, 'frame_end', get_frame_end() );164 }165 }166 167 function display_category( $category, $indent )168 {169 global $user,$lang,$template, $vtp, $handle;170 171 $style='';172 $url = './category.php?cat='.$category['id'];173 $url.= '&expand='.$category['expand_string'];174 $name = $category['name'];175 if ( $name == '' ) $name = str_replace( '_', ' ', $category['dir'] );176 if ( $category['id_uppercat'] == '' )177 {178 $style = 'font-weight:bold;';179 }180 181 $template->assign_block_vars('category', array(182 'LINK_NAME' => $name,183 'INDENT' => $indent,184 'NB_SUBCATS'=>$category['nb_sub_categories'],185 'TOTAL_CAT'=>$category['nb_images'],186 'CAT_ICON'=>get_icon($category['date_last']),187 188 'T_NAME'=>$style,189 'U_LINK' => add_session_id($url)));190 191 if ( $user['expand'] or $category['nb_sub_categories'] == 0 )192 {193 $template->assign_block_vars('category.bulletnolink', array('BULLET_IMAGE' => $user['lien_collapsed']));194 }195 else196 {197 $url = './category.php';198 if (isset($page['cat']))199 {200 $url .='?cat='.$page['cat'];201 $url.= '&expand='.$category['expand_string'];202 }203 else if ($category['expand_string']<>'')204 {205 $url.= '?expand='.$category['expand_string'];206 }207 208 if ( $category['expanded'] )209 {210 $img=$user['lien_expanded'];211 }212 else213 {214 $img=$user['lien_collapsed'];215 }216 217 $template->assign_block_vars('category.bulletlink', array(218 'BULLET_IMAGE' => $img,219 'U_BULLET_LINK'=> add_session_id($url)220 ));221 }222 223 // recursive call224 if ( $category['expanded'] )225 {226 foreach ( $category['subcats'] as $subcat ) {227 $template->assign_block_vars('category.subcat', array());228 display_category( $subcat, $indent.str_repeat( ' ', 2 ));229 }230 }231 160 } 232 161 -
trunk/template/default/identification.tpl
r365 r375 35 35 <td align="right"><span class="gentbl">{L_PASSWORD}:</span></td> 36 36 <td> 37 <input class="login" type="password" name="pass " size="25" maxlength="25" />37 <input class="login" type="password" name="password" size="25" maxlength="25" /> 38 38 </td> 39 39 </tr> -
trunk/template/default/picture.tpl
r368 r375 18 18 <table style="width:100%;height:100%;"> 19 19 <tr align="center" valign="middle"> 20 <td style="width:30%;">21 <!-- BEGIN previous -->22 <a href="{U_PREV_IMG}" title="{L_PREV_IMG}{PREV_TITLE_IMG}"><img src="{PREV_IMG}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{PREV_TITLE_IMG}"/></a></td>23 <!-- END previous -->24 <td style="width:40%;">{T_START}1%{T_BEGIN}25 <div class="titrePage">{TITLE}</div>26 {T_END} </td>27 <td style="width:30%;">28 <!-- BEGIN next -->29 <a href="{U_NEXT_IMG}" title="{L_NEXT_IMG}{NEXT_TITLE_IMG}"><img src="{NEXT_IMG}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{NEXT_TITLE_IMG}"/></a></td>30 <!-- END next -->31 </td>32 </tr>33 <tr align="center" valign="middle">34 20 <td colspan="3" style="width:100%;"> 35 {T_START}1%{T_BEGIN} 21 <div class="table2"> 22 <div class="titrePage">{CATEGORY}</div> 23 <div class="titreImg">{PHOTO}</div> 24 <div class="image"> 36 25 <a href="{U_HOME}"> 37 <img class="imgLink" s tyle="margin:10px;width:{WIDTH_IMG}px;height:{HEIGHT_IMG}px;border:1px solid" src="{SRC_IMG}" alt="{ALT_IMG}"/>26 <img class="imgLink" src="{SRC_IMG}" style="width:{WIDTH_IMG}px;height:{HEIGHT_IMG}px;" alt="{ALT_IMG}"/> 38 27 </a> 28 </div> 29 <div class="commentImage">{TITLE}</div> 39 30 <div class="commentImage">{COMMENT_IMG}</div> 31 </div> 40 32 <table style="width:100%;"> 41 <tr> 42 <td align="center"> 43 <table style="margin:auto;margin-top:5px;margin-bottom:5px;"> 33 <tr align="center" valign="middle"> 34 <td style="width:30%;"> 35 <!-- BEGIN previous --> 36 <a href="{U_PREV_IMG}" title="{L_PREV_IMG}{PREV_TITLE_IMG}"> 37 <img style="border:none;" class="imgLink" width="30" height="100" src="template/default/theme/left-arrow.jpg" alt="" /> 38 <img src="{PREV_IMG}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{PREV_TITLE_IMG}"/></a> 39 <!-- END previous --> 40 </td> 41 <td style="width:40%;"> 42 <table style="margin:auto;margin-top:5px;margin-bottom:5px;"> 44 43 <!-- BEGIN info_line --> 45 44 <tr> … … 49 48 <!-- END info_line --> 50 49 </table> 51 </td> 52 </tr> 50 </td> 51 <td style="width:30%;"> 52 <!-- BEGIN next --> 53 <a href="{U_NEXT_IMG}" title="{L_NEXT_IMG}{NEXT_TITLE_IMG}"><img src="{NEXT_IMG}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{NEXT_TITLE_IMG}"/> 54 <img style="border:none;" class="imgLink" width="30" height="100" src="template/default/theme/right-arrow.jpg" alt="" /></a> 55 <!-- END next --> 56 </td> 57 </tr> 53 58 </table> 54 59 <!-- BEGIN favorite --> … … 64 69 </div> 65 70 <!-- END modification --> 66 {T_END}67 71 <div style="text-align:center;">{L_BACK}</div> 68 72 </td>
Note: See TracChangeset
for help on using the changeset viewer.