Changeset 8310


Ignore:
Timestamp:
12/27/10 00:02:37 (9 years ago)
Author:
plg
Message:

feature 2086 added: switch installation screen to a clear background theme

Location:
trunk
Files:
1 added
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/install.tpl

    r8162 r8310  
    88<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico"> 
    99 
     10{get_combined_css} 
    1011{foreach from=$themes item=theme} 
    11 {if isset($theme.local_head)}{include file=$theme.local_head}{/if} 
    12 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/themes/{$theme.id}/theme.css"> 
     12{if $theme.load_css} 
     13{combine_css path="admin/themes/`$theme.id`/theme.css" order=-10} 
     14{/if} 
    1315{/foreach} 
    1416 
     
    5355<style type="text/css"> 
    5456body { 
    55   background:url("admin/themes/roma/images/bottom-left-bg.jpg") no-repeat fixed left bottom #111111; 
     57  font-size:12px; 
    5658} 
    5759 
    5860.content { 
    59  background:url("admin/themes/roma/images/fillet.png") repeat-x scroll left top #222222; 
    6061 width: 800px; 
    6162 margin: auto; 
    6263 text-align: center; 
    63  padding: 5px; 
    64 } 
    65  
    66 #headbranch  { 
    67   background:url("admin/themes/roma/images/top-left-bg.jpg") no-repeat scroll left top transparent; 
     64 padding:0; 
     65 background-color:transparent !important; 
     66 border:none; 
    6867} 
    6968 
    7069#theHeader { 
    7170  display: block; 
    72   background:url("admin/themes/roma/images/piwigo_logo_sombre_214x100.png") no-repeat scroll 245px top transparent; 
     71  background:url("admin/themes/clear/images/piwigo_logo_big.png") no-repeat scroll center 20px transparent; 
     72  height:100px; 
     73} 
     74 
     75fieldset { 
     76  margin-top:20px; 
     77  background-color:#f1f1f1; 
     78} 
     79 
     80legend { 
     81  font-weight:bold; 
     82  letter-spacing:2px; 
    7383} 
    7484 
    7585.content h2 { 
    7686  display:block; 
    77   font-size:28px; 
    78   height:104px; 
    79   width:54%; 
    80   color:#666666; 
    81   letter-spacing:-1px; 
    82   margin:0 30px 3px 20px; 
    83   overflow:hidden; 
    84   position:absolute; 
    85   right:0; 
    86   text-align:right; 
    87   top:0; 
    88   width:770px; 
    89   text-align:right; 
    90   text-transform:none;  
     87  font-size:20px; 
     88  text-align:center; 
     89  /* margin-top:5px; */ 
    9190} 
    9291 
    9392table.table2 { 
    9493  width: 100%; 
    95   margin-bottom: 1em !important; 
    9694  border:0; 
    9795} 
    9896 
    99 TD { 
     97table.table2 td { 
    10098  text-align: left; 
    101   padding: 0.1em 0.5em; 
    102   height: 2.5em; 
    103 } 
    104  
    105 .infos { 
    106   background-color:transparent; 
     99  padding: 5px 2px; 
     100} 
     101 
     102table.table2 td.fieldname { 
     103  font-weight:normal; 
     104} 
     105 
     106table.table2 td.fielddesc { 
     107  padding-left:10px; 
     108  font-style:italic; 
     109} 
     110 
     111input[type="submit"], input[type="button"] { 
     112  font-size:14px; 
     113  font-weight:bold; 
     114  letter-spacing:2px; 
    107115  border:none; 
    108   color:#999; 
     116  background-color:#666666; 
     117  color:#fff; 
     118  padding:5px; 
     119  -moz-border-radius:5px; 
     120} 
     121 
     122input[type="submit"]:hover, input[type="button"]:hover { 
     123  background-color:#ff7700; 
     124  color:white; 
     125} 
     126 
     127input[type="text"], input[type="password"], select { 
     128  background-color:#ddd; 
     129  border:2px solid #ccc; 
     130  -moz-border-radius:5px; 
     131  padding:2px; 
     132} 
     133 
     134input[type="text"]:focus, input[type="password"]:focus, select:focus { 
     135  background-color:#fff; 
     136  border:2px solid #ff7700; 
    109137} 
    110138 
     
    113141} 
    114142 
    115 .config_creation_failed { 
    116   text-align:left; 
    117   border:3px solid #F20D00; 
    118   color:#999; 
    119   margin:20px; 
    120   padding:0px 20px 5px 20px; 
    121   background-image:url(admin/themes/default/icon/errors.png); 
    122   background-repeat:no-repeat; 
    123 } 
    124  
    125 #experimentalDbEngines TD {border:2px solid #666;background-color:#444; color:#ccc;} 
     143.errors { 
     144  padding-bottom:5px; 
     145} 
     146 
    126147</style> 
    127148{/literal} 
     
    130151 
    131152<body> 
    132 <div id="headbranch"></div> {* Dummy block for double background management *} 
    133153<div id="the_page"> 
    134154<div id="theHeader"></div> 
    135155<div id="content" class="content"> 
    136156 
    137 <h2>Piwigo {$RELEASE} - {'Installation'|@translate}</h2> 
     157<h2>{'Version'|@translate} {$RELEASE} - {'Installation'|@translate}</h2> 
    138158 
    139159{if isset($config_creation_failed)} 
    140 <div class="config_creation_failed"> 
     160<div class="errors"> 
    141161  <p style="margin-left:30px;"> 
    142162    <strong>{'Creation of config file local/config/database.inc.php failed.'|@translate}</strong> 
     
    180200<form method="POST" action="{$F_ACTION}" name="install_form"> 
    181201 
     202<fieldset> 
     203  <legend>{'Basic configuration'|@translate}</legend> 
     204 
    182205  <table class="table2"> 
    183     <tr class="throw"> 
    184       <th colspan="2">{'Basic configuration'|@translate}</th> 
    185     </tr> 
    186206    <tr> 
    187207      <td style="width: 30%">{'Default gallery language'|@translate}</td> 
     
    193213    </tr> 
    194214  </table> 
     215</fieldset> 
     216 
     217<fieldset> 
     218  <legend>{'Database configuration'|@translate}</legend> 
     219 
    195220  <table class="table2"> 
    196     <tr class="throw"> 
    197       <th colspan="3">{'Database configuration'|@translate}</th> 
    198     </tr> 
    199221    {if count($F_DB_ENGINES)>1} 
    200222    <tr> 
    201       <td style="width: 30%;">{'Database type'|@translate}</td> 
     223      <td style="width: 30%;" class="fieldname">{'Database type'|@translate}</td> 
    202224      <td> 
    203225        <select name="dblayer" id="dblayer"> 
     
    210232        </select>     
    211233      </td> 
    212       <td>{'The type of database your piwigo data will be store in'|@translate}</td> 
     234      <td class="fielddesc">{'The type of database your piwigo data will be store in'|@translate}</td> 
    213235    {else} 
    214236    <td colspan="3"> 
     
    219241    <tr id="experimentalDbEngines"> 
    220242      <td colspan="3"> 
     243<div class="warnings"> 
    221244      {'SQLite and PostgreSQL are currently in experimental state.'|@translate} 
    222245      <a href="http://piwigo.org/forum/viewtopic.php?id=15927" class="externalLink">{'Learn more'|@translate}</a> 
     246</div> 
    223247      </td> 
    224248    </tr> 
    225249    <tr> 
    226       <td style="width: 30%;">{'Host'|@translate}</td> 
    227       <td align=center><input type="text" name="dbhost" value="{$F_DB_HOST}"></td> 
    228       <td>{'localhost, sql.multimania.com, toto.freesurf.fr'|@translate}</td> 
    229     </tr> 
    230     <tr> 
    231       <td>{'User'|@translate}</td> 
    232       <td align=center><input type="text" name="dbuser" value="{$F_DB_USER}"></td> 
    233       <td>{'user login given by your host provider'|@translate}</td> 
    234     </tr> 
    235     <tr> 
    236       <td>{'Password'|@translate}</td> 
    237       <td align=center><input type="password" name="dbpasswd" value=""></td> 
    238       <td>{'user password given by your host provider'|@translate}</td> 
    239     </tr> 
    240     <tr> 
    241       <td>{'Database name'|@translate}</td> 
    242       <td align=center><input type="text" name="dbname" value="{$F_DB_NAME}"></td> 
    243       <td>{'also given by your host provider'|@translate}</td> 
    244     </tr> 
    245     <tr> 
    246       <td>{'Database table prefix'|@translate}</td> 
    247       <td align=center><input type="text" name="prefix" value="{$F_DB_PREFIX}"></td> 
    248       <td>{'database tables names will be prefixed with it (enables you to manage better your tables)'|@translate}</td> 
     250      <td style="width: 30%;" class="fieldname">{'Host'|@translate}</td> 
     251      <td><input type="text" name="dbhost" value="{$F_DB_HOST}"></td> 
     252      <td class="fielddesc">{'localhost, sql.multimania.com, toto.freesurf.fr'|@translate}</td> 
     253    </tr> 
     254    <tr> 
     255      <td class="fieldname">{'User'|@translate}</td> 
     256      <td><input type="text" name="dbuser" value="{$F_DB_USER}"></td> 
     257      <td class="fielddesc">{'user login given by your host provider'|@translate}</td> 
     258    </tr> 
     259    <tr> 
     260      <td class="fieldname">{'Password'|@translate}</td> 
     261      <td><input type="password" name="dbpasswd" value=""></td> 
     262      <td class="fielddesc">{'user password given by your host provider'|@translate}</td> 
     263    </tr> 
     264    <tr> 
     265      <td class="fieldname">{'Database name'|@translate}</td> 
     266      <td><input type="text" name="dbname" value="{$F_DB_NAME}"></td> 
     267      <td class="fielddesc">{'also given by your host provider'|@translate}</td> 
     268    </tr> 
     269    <tr> 
     270      <td class="fieldname">{'Database table prefix'|@translate}</td> 
     271      <td><input type="text" name="prefix" value="{$F_DB_PREFIX}"></td> 
     272      <td class="fielddesc">{'database tables names will be prefixed with it (enables you to manage better your tables)'|@translate}</td> 
    249273    </tr> 
    250274  </table> 
    251275 
     276</fieldset> 
     277<fieldset> 
     278  <legend>{'Admin configuration'|@translate}</legend> 
     279 
    252280  <table class="table2"> 
    253     <tr class="throw"> 
    254       <th colspan="3">{'Admin configuration'|@translate}</th> 
    255     </tr> 
    256     <tr> 
    257       <td style="width: 30%;">{'Webmaster login'|@translate}</td> 
    258       <td align="center"><input type="text" name="admin_name" value="{$F_ADMIN}"></td> 
    259       <td>{'It will be shown to the visitors. It is necessary for website administration'|@translate}</td> 
    260     </tr> 
    261     <tr> 
    262       <td>{'Webmaster password'|@translate}</td> 
    263       <td align="center"><input type="password" name="admin_pass1" value=""></td> 
    264       <td>{'Keep it confidential, it enables you to access administration panel'|@translate}</td> 
    265     </tr> 
    266     <tr> 
    267       <td>{'Password [confirm]'|@translate}</td> 
    268       <td align="center"><input type="password" name="admin_pass2" value=""></td> 
    269       <td>{'verification'|@translate}</td> 
    270     </tr> 
    271     <tr> 
    272       <td>{'Webmaster mail address'|@translate}</td> 
    273       <td align="center"><input type="text" name="admin_mail" value="{$F_ADMIN_EMAIL}"></td> 
    274       <td>{'Visitors will be able to contact site administrator with this mail'|@translate}</td> 
     281    <tr> 
     282      <td style="width: 30%;" class="fieldname">{'Webmaster login'|@translate}</td> 
     283      <td><input type="text" name="admin_name" value="{$F_ADMIN}"></td> 
     284      <td class="fielddesc">{'It will be shown to the visitors. It is necessary for website administration'|@translate}</td> 
     285    </tr> 
     286    <tr> 
     287      <td class="fieldname">{'Webmaster password'|@translate}</td> 
     288      <td><input type="password" name="admin_pass1" value=""></td> 
     289      <td class="fielddesc">{'Keep it confidential, it enables you to access administration panel'|@translate}</td> 
     290    </tr> 
     291    <tr> 
     292      <td class="fieldname">{'Password [confirm]'|@translate}</td> 
     293      <td><input type="password" name="admin_pass2" value=""></td> 
     294      <td class="fielddesc">{'verification'|@translate}</td> 
     295    </tr> 
     296    <tr> 
     297      <td class="fieldname">{'Webmaster mail address'|@translate}</td> 
     298      <td><input type="text" name="admin_mail" value="{$F_ADMIN_EMAIL}"></td> 
     299      <td class="fielddesc">{'Visitors will be able to contact site administrator with this mail'|@translate}</td> 
    275300    </tr> 
    276301  </table> 
    277302 
    278   <table> 
    279     <tr> 
    280       <td style="text-align: center;"> 
    281         <input class="submit" type="submit" name="install" value="{'Start Install'|@translate}"> 
    282       </td> 
    283     </tr> 
    284   </table> 
     303</fieldset> 
     304 
     305  <div style="text-align:center; margin:20px 0 10px 0"> 
     306    <input class="submit" type="submit" name="install" value="{'Start Install'|@translate}"> 
     307  </div> 
    285308</form> 
    286309{else} 
  • trunk/install.php

    r6363 r8310  
    228228//----------------------------------------------------- template initialization 
    229229include( PHPWG_ROOT_PATH .'include/template.class.php'); 
    230 $template = new Template(PHPWG_ROOT_PATH.'admin/themes', 'roma'); 
     230$template = new Template(PHPWG_ROOT_PATH.'admin/themes', 'clear'); 
    231231$template->set_filenames( array('install' => 'install.tpl') ); 
    232232if (!isset($step)) 
Note: See TracChangeset for help on using the changeset viewer.