Merge branch 'issue-444-theserapher' of github.com:TheSerapher/php-mmcfe-ng into issue-444-theserapher

This commit is contained in:
Sebastian Grewe 2013-09-18 15:52:11 +02:00
commit 0f8df566f3
3 changed files with 66 additions and 14 deletions

View File

@ -867,10 +867,58 @@ span.unconfirmed {
border-radius: 4px;
}
div.login_small {
float: right;
background: #E0E0E3;
position: absolute;
padding: 5px;
top: 10px;
right: 10px;
float: right;
background: #E0E0E3;
background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(241, 241, 241) 50%, rgb(225, 225, 225) 51%, rgb(246, 246, 246) 100%) repeat scroll 0% 0%;
border-radius: 5px 5px 5px 5px;
position: absolute;
padding: 5px;
top: 10px;
right: 10px;
}
fieldset2 {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background: #F6F6F6;
padding: 1% 0%;
margin: 10px 0;
}
fieldset2 label {
display: block;
float: left;
height: 25px;
line-height: 25px;
text-shadow: 0 1px 0 #fff;
font-weight: bold;
padding-left: 10px;
text-transform: uppercase;
}
fieldset2 input[type=text], fieldset2 input[type=password] {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #BBBBBB;
height: 20px;
color: #666666;
-webkit-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
-moz-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
padding-left: 10px;
background-position: 10px 6px;
margin: 0;
display: block;
float: left;
margin: 0 10px;
}
fieldset2 input[type=text]:focus, fieldset2 input[type=password]:focus, fieldset2 input[type=checkbox] {
outline: none;
border: 1px solid #77BACE;
-webkit-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
-moz-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
}

View File

@ -2,6 +2,4 @@
<h1 class="site_title">{$GLOBAL.website.name}</h1>
<h2 class="section_title">{if $smarty.request.action|default:""}{$smarty.request.action|capitalize}{else}{$smarty.request.page|default:"home"|capitalize}{/if}</h2>
</hgroup>
<div class="login_small">
{include file="login/small.tpl"}
</div>
{include file="login/small.tpl"}

View File

@ -1,11 +1,17 @@
{if $smarty.session.AUTHENTICATED|default:"0" == 0}
<div class="login_small">
<form action="{$smarty.server.PHP_SELF}" method="post" id="loginForm">
<input type="hidden" name="page" value="login" />
<input type="hidden" name="to" value="{$smarty.server.PHP_SELF}?page=dashboard"}" />
<label>Username</label>
<input type="text" name="username" size="22" maxlength="20" required />
<label>Password</label>
<input type="password" name="password" size="22" maxlength="20" required />
<input type="hidden" name="to" value="{$smarty.server.PHP_SELF}?page=dashboard" />
<fieldset2 class="small">
<label>Username</label>
<input type="text" name="username" size="22" maxlength="20" required />
<fieldset2 class="small">
<label>Password</label>
<input type="password" name="password" size="22" maxlength="20" required />
</fieldset2>
</fieldset2>
<input type="submit" value="Login" class="alt_btn" />
</form>
</div>
{/if}