<?php if(!defined('IN_PATH')){exit('Access Denied.');}?>
{inc:home:header.htm}
{inc:left.htm}
<div class="row">
	<div class="col-sm-12">
		<div class="alert alert-success"><span class="icon-location"></span> 当前位置：修改资料</div>
	</div>
	<div class="col-sm-12">
		<div class="panel panel-default">
			<div class="panel-heading">修改资料</div>
			<div class="panel-body">
				<form class="form-horizontal" id="profileform" method="post" action="index.php?u=index-profile" style="width:80%;margin:0px auto;">
					<div class="form-group">
						<label class="control-label col-sm-4" for="email">用户名</label>
						<div class="col-sm-4">
							<input class="form-control" type="text" id="username" value="{$user[username]}" disabled="disabled"   />
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-4" for="email">邮箱</label>
						<div class="col-sm-4">
							<div class="input-group">
								<input class="form-control" type="text" id="email" name="info[email]" value="{$user[email]}" {if:$user[email_staus]}readonly="readonly"{/if}  />
								<span class="input-group-addon">{if:$user[email_staus]}<span class="icon-checkmark text-success"></span>{else}<span class="icon-notification text-warning"></span>{/if}</span>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-4" for="mobile">手机</label>
						<div class="col-sm-4">
							<div class="input-group">
								<input class="form-control" type="text" maxlength="11" name="info[mobile]" value="{$user[mobile]}" {if:$user[mobile_staus]}readonly="readonly"{/if} />
								<span class="input-group-addon">{if:$user[mobile_staus]}<span class="icon-checkmark text-success"></span>{else}<span class="icon-notification text-warning"></span>{/if}</span>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-4" for="qq">QQ</label>
						<div class="col-sm-4">
							<input class="form-control" type="text" maxlength="11" name="info[qq]" value="{$user[qq]}" />
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-4" for=""></label>
						<div class="col-sm-8">
							<input type="submit" id="submit_1" class="btn btn-info" value="确定修改" />
						</div>						
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<script>
$(document).ready(function(){
	ppAjax.submit("#profileform", function(data){
		ppAjax.alert(data);
		if(window.ppData.err==0) {
			layer.msg(window.ppData.msg, function(){});
		}else{
			layer.msg(window.ppData.msg, function(){});
		}
	});
});
</script>
{inc:footer.htm}