diff options
author | patdenice <patdenice@piwigo.org> | 2008-10-15 17:50:12 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2008-10-15 17:50:12 +0000 |
commit | 682220bded5b06a15943d2c0b65978fbcf3c43f1 (patch) | |
tree | 77f0fd0148158bd1e03c9f9fba058f5fbf72c174 /admin/template/goto/install.tpl | |
parent | 847a842e8d4ed1855838f5d8ab514fbf22cb164b (diff) |
- Install process now looks like goto/roma.
- Move install.tpl to goto template.
- add charset utf8 to fatal error function.
- Check php version on install and upgrade, and die if < 5.
git-svn-id: http://piwigo.org/svn/trunk@2747 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/template/goto/install.tpl | 152 |
1 files changed, 152 insertions, 0 deletions
diff --git a/admin/template/goto/install.tpl b/admin/template/goto/install.tpl new file mode 100644 index 000000000..0fdf9b709 --- /dev/null +++ b/admin/template/goto/install.tpl @@ -0,0 +1,152 @@ +{* $Id$ *} +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" +"http://www.w3.org/TR/html4/strict.dtd"> +<html lang="fr"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset={$T_CONTENT_ENCODING}"> +<meta http-equiv="Content-script-type" content="text/javascript"> +<meta http-equiv="Content-Style-Type" content="text/css"> +<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico"> +<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/layout.css"> +<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/default-colors.css"> +<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css"> +{literal} +<style type="text/css"> +.content { + width: 800px; + margin: auto; + text-align: center; +} + +.table2 { + width: 100%; + margin-bottom: 1em !important; +} + +TD { + text-align: left; + padding: 0.1em 0.5em; + height: 2.5em; +} + +.sql_content { + color: #ff3363; +} +</style> +{/literal} +<title>Piwigo {$RELEASE} - {'Installation'|@translate}</title> +</head> + +<body> +<div id="headbranch"></div> {* Dummy block for double background management *} +<div id="theHeader"></div> +<div id="content" class="content"> + +<h2>Piwigo {$RELEASE} - {'Installation'|@translate}</h2> + +{if isset($errors)} +<div class="errors"> + <ul> + {foreach from=$errors item=error} + <li>{$error}</li> + {/foreach} + </ul> +</div> +{/if} + +{if isset($infos)} +<div class="infos"> + <ul> + {foreach from=$infos item=info} + <li>{$info}</li> + {/foreach} + </ul> +</div> +{/if} + +{if isset($install)} +<form method="POST" action="{$F_ACTION}" name="install_form"> + + <table class="table2"> + <tr class="throw"> + <th colspan="2">{'Initial_config'|@translate}</th> + </tr> + <tr> + <td style="width: 30%">{'Default_lang'|@translate}</td> + <td> + <select name="language" onchange="document.location = 'install.php?language='+this.options[this.selectedIndex].value;"> + {html_options options=$language_options selected=$language_selection} + </select> + </td> + </tr> + </table> + <table class="table2"> + <tr class="throw"> + <th colspan="3">{'step1_title'|@translate}</th> + </tr> + <tr> + <td style="width: 30%;">{'step1_host'|@translate}</td> + <td align=center><input type="text" name="dbhost" value="{$F_DB_HOST}" /></td> + <td>{'step1_host_info'|@translate}</td> + </tr> + <tr> + <td>{'step1_user'|@translate}</td> + <td align=center><input type="text" name="dbuser" value="{$F_DB_USER}" /></td> + <td>{'step1_user_info'|@translate}</td> + </tr> + <tr> + <td>{'step1_pass'|@translate}</td> + <td align=center><input type="password" name="dbpasswd" value="" /></td> + <td>{'step1_pass_info'|@translate}</td> + </tr> + <tr> + <td>{'step1_database'|@translate}</td> + <td align=center><input type="text" name="dbname" value="{$F_DB_NAME}" /></td> + <td>{'step1_database_info'|@translate}</td> + </tr> + <tr> + <td>{'step1_prefix'|@translate}</td> + <td align=center><input type="text" name="prefix" value="{$F_DB_PREFIX}" /></td> + <td>{'step1_prefix_info'|@translate}</td> + </tr> + </table> + + <table class="table2"> + <tr class="throw"> + <th colspan="3">{'step2_title'|@translate}</th> + </tr> + <tr> + <td style="width: 30%;">{'install_webmaster'|@translate}</td> + <td align="center"><input type="text" name="admin_name" value="{$F_ADMIN}" /></td> + <td>{'install_webmaster_info'|@translate}</td> + </tr> + <tr> + <td>{'step2_pwd'|@translate}</td> + <td align="center"><input type="password" name="admin_pass1" value="" /></td> + <td>{'step2_pwd_info'|@translate}</td> + </tr> + <tr> + <td>{'step2_pwd_conf'|@translate}</td> + <td align="center"><input type="password" name="admin_pass2" value="" /></td> + <td>{'step2_pwd_conf_info'|@translate}</td> + </tr> + <tr> + <td>{'conf_mail_webmaster'|@translate}</td> + <td align="center"><input type="text" name="admin_mail" value="{$F_ADMIN_EMAIL}" /></td> + <td>{'conf_mail_webmaster_info'|@translate}</td> + </tr> + </table> + + <table> + <tr> + <td style="text-align: center;"> + <input class="submit" type="submit" name="install" value="{'Start_Install'|@translate}" /> + </td> + </tr> + </table> +</form> +{/if} +</div> {* content *} +<div style="text-align: center">{$L_INSTALL_HELP}</div> +</body> +</html> |