Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions app/views/layout/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="description" content="<?php echo $meta_description; ?>">
<?php endif; ?>
<?php if (isset($meta_author)): ?>
<meta name="author" content="<?php echo $meta_author; ?>">
<meta name="author" content="root">
<?php endif; ?>
<link href="<?php echo ASSET_CSS; ?>/css/bootstrap.min.css" rel="stylesheet">
<style> body { padding-top: 60px; } </style>
Expand Down Expand Up @@ -52,12 +52,25 @@
<time>服务器时间:<?php echo new fTimestamp(); ?></time>
</div>
<?php else: ?>
<form action="<?php echo SITE_BASE; ?>/login" method="POST" class="form-inline pull-right" style="margin: 0">
<input type="text" class="input-small" placeholder="用户名" name="username" maxlength="80">
<input type="password" class="input-small" placeholder="密码" name="password" maxlength="80">
<input type="submit" class="btn btn-primary" name="action" value="登录"><?php
?><a class="btn btn-success" href="<?php echo SITE_BASE; ?>/login">注册</a>
<div class="btn-group nav pull-right">
<a href="<?php echo SITE_BASE; ?>/login" class="btn btn-large" name="action" value="注册"><i class="icon-plus"></i>注册</button>
<a class="btn dropdown-toggle btn-middle" data-toggle="dropdown" href="#"><i class="icon-user"></i>
登录
</a>
<ul class="dropdown-menu">
<form action="<?php echo SITE_BASE; ?>/login" method="POST" class="form-inline " style="margin: 0">
<fieldset class='textbox' style="padding:10px">
<p>用户名</p>
<input style="margin-top: 8px" type="text" class="input-small" placeholder="用户名" name="username" maxlength="80">
<p>密码</p>
<input style="margin-top: 8px" type="password" class="input-small" placeholder="密码" name="password" maxlength="80">
<hr>
<button type="submit" class="btn btn-middle btn-primary" name="action" value="登录"><i class="icon-user icon-white"></i>登录</button><?php
?>
</fieldset>
</form>
</ul>
</div>
<?php endif; ?>
<div class="nav-collapse">
<ul class="nav">
Expand Down