~vcs-imports/clansuite/trunk

« back to all changes in this revision

Viewing changes to themes/frontend/dark/modules/account/widget_login.tpl

  • Committer: paulbr
  • Date: 2011-05-17 09:43:57 UTC
  • Revision ID: paulbr-20110517094357-yzy4qzdy62rc5dwb
- smarty function.icon.php fixed
- new table for news comments (test)
- entities: user/comment fixed
- new theme dark / csfw modified

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{* {$config|var_dump} *}
 
2
 
 
3
{move_to target="pre_head_close"}
 
4
<script src="{$www_root_themes_core}javascript/webtoolkit.sha1.js" type="text/javascript"></script>
 
5
<script type="text/javascript">
 
6
function hashLoginPassword(theForm)
 
7
{
 
8
    theForm.password.value = SHA1(theForm.password.value);
 
9
}
 
10
</script>
 
11
{/move_to}
 
12
 
 
13
<div class="table table-border">
 
14
        <div class="table-header table-border-bottom"><img src="{$www_root_theme}images/icons/lock.png" />{t}Login{/t}</div>
 
15
        <div class="table-content-menu">
 
16
                <div class="formareaWidget">
 
17
 
 
18
                        <form action="{$www_root}index.php?mod=account&action=login"
 
19
                                        method="post"
 
20
                                        id="block_login_form"
 
21
                                        accept-charset="UTF-8"
 
22
                                        onsubmit="hashLoginPassword(this);">
 
23
 
 
24
                        <div class="container" style="padding:2px;">
 
25
 
 
26
                                {if isset($config.login.login_method) && $config.login.login_method == 'email'}
 
27
                                <div>
 
28
                                        <label for="email">{t}Email:{/t}</label>
 
29
                                        <input class="input_text" type="text" name="email" id="email"
 
30
                                                         onblur="if(this.value=='')this.value=this.defaultValue;"
 
31
                                                         onfocus="if(this.value==this.defaultValue)this.value='';"
 
32
                                                         value="email" 
 
33
                                                         style="width: 90px;"/>
 
34
                                </div>
 
35
                                {elseif isset($config.login.login_method) && $config.login.login_method == 'nick'}
 
36
                                <div>
 
37
                                        <label for="nickname">{t}Nickname:{/t}</label>
 
38
                                        <input class="input_text" type="text" name="nickname" id="nickname"
 
39
                                                         onblur="if(this.value=='')this.value=this.defaultValue;"
 
40
                                                         onfocus="if(this.value==this.defaultValue)this.value='';"
 
41
                                                         value="nickname" 
 
42
                                                         style="width: 90px;"/>
 
43
                                </div>
 
44
                                {/if}
 
45
 
 
46
                                <div>
 
47
                                        <label for="block_password">{t}Password:{/t}</label>
 
48
                                        <input class="input_text" type="password" name="password" id="block_password"
 
49
                                                                 onblur="if(this.value=='')this.value=this.defaultValue;"
 
50
                                                                 onfocus="if(this.value==this.defaultValue)this.value='';"
 
51
                                                                 value="******" 
 
52
                                                                 style="width: 90px;"/>
 
53
                                </div>
 
54
 
 
55
                                <div>
 
56
                                        <label></label>
 
57
                                        <label for="remember_me" class="labelsmall">
 
58
                                                <input type="checkbox" name="remember_me" id="remember_me" value="1" {if isset($smarty.post.remember_me)} checked="checked" {/if} style="margin-left:20px;"/>
 
59
                                                {t}Remember me (Cookie){/t}
 
60
                                        </label>
 
61
                                </div>
 
62
 
 
63
                                <div class="buttonsarea">
 
64
                                        <label></label>
 
65
                                        <input type="submit" name="submit" id="login_button" value="{t}Login{/t}" class="btn-red" />
 
66
                                </div>
 
67
 
 
68
                                <div align="center">
 
69
                                        <span style="font-family: Arial, Helvetica, sans-serif; font-size:11px;">
 
70
                                                <a href="{$www_root}index.php?mod=account&action=register">{t}Not yet registered?{/t}</a> <br />
 
71
                                                <a href="{$www_root}index.php?mod=account&action=forgot_password">{t}Forgot password?{/t}</a> <br />
 
72
                                                <a href="{$www_root}index.php?mod=account&action=activation_email">{t}Did not get an activation email?{/t}</a>
 
73
                                        </span>
 
74
                                </div>
 
75
 
 
76
                        </div>
 
77
                        </form>
 
78
                </div>
 
79
        </div>
 
80
</div>
 
81
<div class="tablespacer10">&nbsp;</div>