Changeset 1855
- Timestamp:
- Feb 25, 2007, 12:42:25 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r1852 r1855 5 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 // | branch : BSF (Best So Far)7 // | file : $Id$ 8 8 // | last update : $Date$ 9 9 // | last modifier : $Author$ … … 231 231 } 232 232 233 //234 // Pick a language, any language ...235 //236 function language_select($default, $select_name = "language")237 {238 $available_lang = get_languages();239 240 $lang_select = '<select name="' . $select_name . '">';241 foreach ($available_lang as $code => $displayname)242 {243 $selected = ( strtolower($default) == strtolower($code) ) ? ' selected="selected"' : '';244 $lang_select .= '<option value="' . $code . '"' . $selected . '>' . ucwords($displayname) . '</option>';245 }246 $lang_select .= '</select>';247 248 return $lang_select;249 }250 251 233 /** 252 234 * returns the list of categories as a HTML string -
trunk/install.php
r1726 r1855 5 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 // | branch : BSF (Best So Far) 8 // | file : $RCSfile$ 7 // | file : $Id$ 9 8 // | last update : $Date$ 10 9 // | last modifier : $Author$ … … 35 34 } 36 35 36 // 37 // Pick a language, any language ... 38 // 39 function language_select($default, $select_name = "language") 40 { 41 $available_lang = get_languages(); 42 43 $lang_select = '<select name="' . $select_name . '" onchange="document.location = \''.PHPWG_ROOT_PATH.'install.php?language=\'+this.options[this.selectedIndex].value;">'; 44 foreach ($available_lang as $code => $displayname) 45 { 46 $selected = ( strtolower($default) == strtolower($code) ) ? ' selected="selected"' : ''; 47 $lang_select .= '<option value="'.$code.'" ' . $selected . '>' . ucwords($displayname) . '</option>'; 48 } 49 $lang_select .= '</select>'; 50 51 return $lang_select; 52 } 53 37 54 /** 38 55 * loads an sql file and executes all queries … … 102 119 } 103 120 121 if( is_array($_GET) ) 122 { 123 while( list($k, $v) = each($_GET) ) 124 { 125 if( is_array($_GET[$k]) ) 126 { 127 while( list($k2, $v2) = each($_GET[$k]) ) 128 { 129 $_GET[$k][$k2] = addslashes($v2); 130 } 131 @reset($_GET[$k]); 132 } 133 else 134 { 135 $_GET[$k] = addslashes($v); 136 } 137 } 138 @reset($_GET); 139 } 140 104 141 if( is_array($_COOKIE) ) 105 142 { … … 173 210 { 174 211 $language = strip_tags($_POST['language']); 212 } 213 elseif ( isset( $_GET['language'] )) 214 { 215 $language = strip_tags($_GET['language']); 175 216 } 176 217 else -
trunk/template/yoga/install.tpl
r996 r1855 8 8 <title>PhpWebGallery {RELEASE}</title> 9 9 <style type="text/css"> 10 a, a:hover { 11 color:#006699; 12 } 13 14 body,table,input,form,select { 15 font-family:arial,verdana,sans-serif; 16 font-size:12px; 17 color:#000000; 18 text-align:left; 19 } 20 table 21 { 22 border-collapse:separate; 23 } 10 11 body, input, select { 12 background-color:#cde; 13 } 14 24 15 body { 25 background-color:#E5E5E5; 26 margin:5px; 16 margin: 5px; 17 padding: 0; 18 font-size: 0.8em; 19 font-family: Univers, Helvetica, Optima, "Bitstream Vera Sans", sans-serif; 20 } 21 22 body, table, input, form, select { 23 color:#369; 24 text-align:left; 25 } 26 27 a { 28 text-decoration: none; 29 color: #c60; 30 } 31 32 a:hover { 33 color: #f92; 34 } 35 36 table { 37 border-collapse:separate; 38 } 39 40 .title { 41 letter-spacing: 0.2em; 42 text-align : center; 43 font-size: 150%; 44 font-weight: bold; 45 padding: 0; 46 margin: 0.5em 0 1em 0; 27 47 } 28 48 29 49 .contenucellule { 30 background-color:#EEEEEE; 31 border:2px solid #006699; 50 border-color: #69c; 51 background-color:#eee; 52 margin:12px 20px; 53 border-width: 3px; 54 border-style: solid ; 55 } 56 57 .error_copy { 58 color: #900; 59 } 60 61 th, .submit { 62 text-align: center; 63 font-weight: bold; 64 background-color: #369; 32 65 } 33 66 34 67 th { 35 font-weight:bold; 36 background-color:#D3DCE3; 37 margin-bottom:10px; 38 text-align: center; 39 } 40 td.row1 { 41 background-color:#E6E4E4; 42 } 43 td.row2 44 { 45 background-color:#E8E8E8; 46 } 47 48 .info { 49 color:darkblue; 50 text-align:center; 51 } 68 font-size: 120%; 69 margin-bottom:10px; 70 color:#fff; 71 } 72 73 td.row { 74 font-size: 90%; 75 } 76 77 .submit { 78 color: #cde 79 } 80 81 .header { 82 font-weight: normal; 83 text-align: center; 84 margin: 20px; 85 } 86 87 .infos { 88 padding: 15px; 89 font-weight: normal; 90 text-align: left; 91 } 92 93 .infos_title { 94 font-size: 150%; 95 padding: 15px; 96 font-weight: bold; 97 text-align: left; 98 } 99 52 100 .errors { 53 text-align:left; 54 margin:25px; 55 background-color:#ffe1e1; 101 text-align: left; 102 margin: 25px; 103 color: #900; 104 background-color: #ffe1e1; 56 105 border:1px solid red; 57 color:black;58 }59 .grostitre {60 text-align : center;61 font-size : 20px;62 margin-bottom : 20px;63 106 } 64 107 </style> 65 108 </head> 66 109 <body> 67 68 69 70 <div class="grostitre">PhpWebGallery {RELEASE}</div>71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 110 <table style="width:100%;height:100%"> 111 <tr align="center" valign="middle"> 112 <td> 113 <div class="title">PhpWebGallery {RELEASE}</div> 114 <table class="table1"> 115 <!-- BEGIN errors --> 116 <tr> 117 <td class="contenucellule" colspan="3"> 118 <div class="errors"> 119 <ul> 120 <!-- BEGIN error --> 121 <li>{errors.error.ERROR}</li> 122 <!-- END error --> 123 </ul> 124 </div> 125 </td> 126 </tr> 127 <!-- END errors --> 128 <!-- BEGIN infos --> 129 <tr> 130 <td class="contenucellule" colspan="3"> 131 <div class="infos"> 132 <ul> 133 <!-- BEGIN info --> 134 <li>{infos.info.INFO}</li> 135 <!-- END info --> 136 </ul> 137 </div> 138 </td> 139 </tr> 140 <!-- END infos --> 141 <tr> 142 <td class="contenucellule"> 100 143 101 144 <!-- BEGIN error_copy --> 102 145 {L_ERR_COPY} : 103 146 <br />-----------------------------------------------------<br /> 104 <div style="color:blue;">{error_copy.FILE_CONTENT}</div>147 <div class="error_copy">{error_copy.FILE_CONTENT}</div> 105 148 -----------------------------------------------------<br /> 106 149 <!-- END error_copy --> 107 150 <!-- BEGIN install --> 108 151 <form method="POST" action="{F_ACTION}" name="install_form"> 109 <table width="100%">110 152 <table> 153 <tr> 111 154 <th colspan="3">{L_BASE_TITLE}</th> 112 155 </tr> … … 114 157 <td style="width:30%;">{L_LANG_TITLE}</td> 115 158 <td colspan="2" align="left"> 116 {F_LANG_SELECT} 117 </td> 159 {F_LANG_SELECT} 160 </td> 161 </tr> 162 <tr> 163 <td colspan="3"> </td> 118 164 </tr> 119 165 <tr> 120 166 <th colspan="3">{L_DB_TITLE}</th> 121 </tr>122 <tr>123 <td colspan="3"> </td>124 167 </tr> 125 168 <tr> 126 169 <td>{L_DB_HOST}</td> 127 170 <td align=center><input type="text" name="dbhost" value="{F_DB_HOST}" /></td> 128 <td class="row 2">{L_DB_HOST_INFO}</td>171 <td class="row">{L_DB_HOST_INFO}</td> 129 172 </tr> 130 173 <tr> 131 174 <td>{L_DB_USER}</td> 132 175 <td align=center><input type="text" name="dbuser" value="{F_DB_USER}" /></td> 133 <td class="row 2">{L_DB_USER_INFO}</td>176 <td class="row">{L_DB_USER_INFO}</td> 134 177 </tr> 135 178 <tr> 136 179 <td>{L_DB_PASS}</td> 137 180 <td align=center><input type="password" name="dbpasswd" value="" /></td> 138 <td class="row 2">{L_DB_PASS_INFO}</td>181 <td class="row">{L_DB_PASS_INFO}</td> 139 182 </tr> 140 183 <tr> 141 184 <td>{L_DB_NAME}</td> 142 185 <td align=center><input type="text" name="dbname" value="{F_DB_NAME}" /></td> 143 <td class="row 2">{L_DB_NAME_INFO}</td>186 <td class="row">{L_DB_NAME_INFO}</td> 144 187 </tr> 145 188 <tr> 146 189 <td>{L_DB_PREFIX}</td> 147 190 <td align=center><input type="text" name="prefix" value="{F_DB_PREFIX}" /></td> 148 <td class="row 2">{L_DB_PREFIX_INFO}</td>191 <td class="row">{L_DB_PREFIX_INFO}</td> 149 192 </tr> 150 193 <tr> … … 153 196 <tr> 154 197 <th colspan="3">{L_ADMIN_TITLE}</th> 155 </tr>156 <tr>157 <td colspan="3"> </td>158 198 </tr> 159 199 <tr> 160 200 <td>{L_ADMIN}</td> 161 201 <td align="center"><input type="text" name="admin_name" value="{F_ADMIN}" /></td> 162 <td class="row 2">{L_ADMIN_INFO}</td>202 <td class="row">{L_ADMIN_INFO}</td> 163 203 </tr> 164 204 <tr> 165 205 <td>{L_ADMIN_PASSWORD}</td> 166 206 <td align="center"><input type="password" name="admin_pass1" value="" /></td> 167 <td class="row 2">{L_ADMIN_PASSWORD_INFO}</td>207 <td class="row">{L_ADMIN_PASSWORD_INFO}</td> 168 208 </tr> 169 209 <tr> 170 210 <td>{L_ADMIN_CONFIRM_PASSWORD}</td> 171 211 <td align="center"><input type="password" name="admin_pass2" value="" /></td> 172 <td class="row 2">{L_ADMIN_CONFIRM_PASSWORD_INFO}</td>212 <td class="row">{L_ADMIN_CONFIRM_PASSWORD_INFO}</td> 173 213 </tr> 174 214 <tr> 175 215 <td>{L_ADMIN_EMAIL}</td> 176 216 <td align="center"><input type="text" name="admin_mail" value="{F_ADMIN_EMAIL}" /></td> 177 <td class="row 2">{L_ADMIN_EMAIL_INFO}</td>217 <td class="row">{L_ADMIN_EMAIL_INFO}</td> 178 218 </tr> 179 219 <tr> … … 182 222 <tr> 183 223 <td colspan="3" align="center"> 184 <input type="submit" name="install" value="{L_SUBMIT}" /> 185 </td> 224 <input class="submit" type="submit" name="install" value="{L_SUBMIT}" /> 225 </td> 226 </tr> 227 <tr> 228 <td colspan="3"> </td> 186 229 </tr> 187 230 </table> … … 190 233 191 234 <!-- BEGIN install_end --> 192 <div class="infos_title">{L_END_TITLE}</div> 193 <div style="padding:5px;">{L_END_MESSAGE}</div> 235 <div class="infos_title"> 236 {L_END_TITLE} 237 </div> 238 <div class="infos"> 239 {L_END_MESSAGE} 240 </div> 194 241 <!-- END install_end --> 195 242 … … 197 244 </tr> 198 245 </table> 199 <div style="text-align:center;margin:20px;">{L_INSTALL_HELP}</div>246 <div class="header">{L_INSTALL_HELP}</div> 200 247 </td> 201 248 </tr>
Note: See TracChangeset
for help on using the changeset viewer.