<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php echo $web_name; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Loading Bootstrap -->
<link href="<?php echo base_url('public/css/bootstrap.css'); ?>" rel="stylesheet">
<link href="<?php echo base_url('public/css/responsive.css'); ?>" rel="stylesheet">
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="<?php echo base_url('public/css/bootstrap-ie6.css'); ?>">
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" href="<?php echo base_url('public/css/ie.css'); ?>">
<![endif]-->
<link href="<?php echo base_url('public/css/system.css'); ?>" rel="stylesheet">
<!--<link rel="shortcut icon" href="images/favicon.ico">-->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
<script src="<?php echo base_url('public/js/html5shiv.js'); ?>"></script>
<![endif]-->
<script src="<?php echo base_url('public/js/jquery-1.8.2.min.js'); ?>"></script>
<script src="<?php echo base_url('public/js/bootstrap-alert.js'); ?>"></script>
</head>
<body>
	
	<div class="container">
    	<div class="span12">
        <form method="post" action="<?php echo base_url('index.php/admin/login_pro'); ?>" class="form-horizontal">
        <div class="modal">
			<?php
				if(isset($status) and $status==-1){
			?>
	        	<div class="alert fade in">
	            <button data-dismiss="alert" class="close" type="button">×</button>
	            <strong><?php echo $msg; ?></strong>
	            </div>
            <?php
            	}
            ?>
          <div class="modal-header">
            <h3>登录系统</h3>
          </div>
          <div class="modal-body">
              <div class="control-group">
                <label for="inputLogin" class="control-label">用户名</label>
                <div class="controls">
                  <input type="text" placeholder="你的用户名" value="" name="user" id="inputLogin">
                </div>
              </div>
              <div class="control-group">
                <label for="inputPassword" class="control-label">密码</label>
                <div class="controls">
                  <input type="password" placeholder="你的密码" value="" name="pass" id="inputPassword">
                </div>
              </div>
              <div class="control-group">
                <label for="inputCode" class="control-label">验证码</label>
                <div class="controls">
                  <img src="<?php echo base_url('index.php/admin/code'); ?>" id="showCode" style="cursor:pointer;"/>
                  <input type="text" placeholder="请输入正确的验证码" value="" name="code" id="inputCode">
                </div>
              </div>
              
          </div>
          <div class="modal-footer">
             <button class="btn  btn-primary" type="submit">登录</button>
          </div>
        </div>
       </form>
        </div>
    </div>
    <script>
    	$('#showCode').click(function(){
    		$(this).attr('src',"<?php echo base_url('index.php/admin/code'); ?>?cid="+Math.random());
    	});
    </script>
</body>
</html>



