<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<!--{$page_charset}-->" />

<title>会员登录</title>
<!--{include file="<!--{$cptplpath}-->headerjs.tpl"}-->
</head>
<body>
<!--{include file="<!--{$cptplpath}-->lang_all.tpl"}-->
<!--{if $a eq "login"}-->
<div class="main-wrap" >
  <div class="path"><p>当前位置：插件中心<span>&gt;&gt;</span>会员登录</p></div>
  <div class="main-cont" style="margin-top: -20px;">
    <h3 class="title">会员登录</h3>
<div class="metappcontentbox">



<link rel="stylesheet" href="<!--{$cppath}-->css/plugin.css" />
<link rel="stylesheet" href="<!--{$cppath}-->layui/css/layui.css" />
<link rel="stylesheet" href="<!--{$cppath}-->css/bootstrap.min.css" />
<link rel="stylesheet" href="<!--{$cppath}-->layui/layui.js" />
<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
      

	<div class="metinfotop">
		
	</div>
	<div class="clear"></div>

<script>
var ownlangtxt = '';
</script>

	<div class="v52fmbx">
		<h3 class="v52fmbx_hr">登录应用市场</h3>
		<dl>
			<dt>用户名</dt>
			<dd class="ftype_input">
				<div class="fbox">
					<input type="text" name="user_name" data-required="1" value="" placeholder="请输入您的用户名">
				</div>
                           
			</dd>
		</dl>
		<dl>
			<dt>密码</dt>
			<dd class="ftype_input">
				<div class="fbox">
					<input type="password" name="user_pass" data-required="1" value="" placeholder="请输入密码">
				</div>
			</dd>
		</dl>
		<dl>
			<dd class="ftype_description">
				登录成功后您的网站将永久自动登录此帐号，除非手动退出。
			</dd>
		</dl>
		<dl class="noborder">
			<dt> </dt>
			<dd>
				<input type="submit" name="submit" value="登录" class="submits" id="login_btn">
				<a href="http://www.8cms.com/index.php?c=user&a=register" style="height: 34px;line-height: 42px;display: inline-block;  color: #23b7e5;" target="_blank">注册</a>
			</dd>
		</dl>
	</div>
    <script>
              $(function(){
                 
                    $("#login_btn").bind("click", function(){ //提交

                            $nickname=$("[name=user_name]").val();
                            if($nickname==''){
                                 alert('用户名不能为空');
                            }
                            $password=$("[name=user_pass]").val();
                           if($password==''){
                                 alert('密码不能为空');
                            }
                            $.ajax({
                                    type: "POST",
                                    url: "admincp.php?c=plugin&a=ajaxlogin",
                                    cache: false,
                                    data: {nickname:$nickname,password:$password},
                                    dataType: "json",
                                    success: function(data) {
                                            var json = eval(data);
                                            var response = json.slay;
                                            var result = json.msg;                                          
                                            if (response == "1") {
												alert('登录成功');
												window.location.href = "admincp.php?c=plugin&a=shop";
                                            }
                                            else {
                                                  alert(result);
                                            }
                                    },
                                   
                                   
                            });

                    });

            });
         </script>


		<div class="clear"></div>
	
	

  </div>
</div>
</div>
<!--{/if}-->

<!--{if $a eq "setting"}-->
<div class="main-wrap">
  <div class="path"><p>当前位置：插件中心<span>&gt;&gt;</span>插件管理<span>&gt;&gt;</span><!--{$plugin_name}--></p></div>
  <div class="main-cont">
	<!--{assign var='pluginmanage' value=XHook::doAction(<!--{$plugin_event}-->)}-->
  </div>
</div>
<!--{/if}-->
<!--{assign var='pluginevent' value=XHook::doAction('adm_footer')}-->
</body>
</html>
