
<!-- include 'header' -->
<script type="text/javascript"
	src="<?= WEB_SITE_GLOBAL ?>/js/swfobject.js"></script>
<script type="text/javascript"
	src="<?= WEB_SITE_GLOBAL ?>/js/fullAvatarEditor.js"></script>
	
	<link rel=stylesheet href="<?= WEB_SITE_GLOBAL ?>css/jquery.validator.css"> 
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/jquery.validator.min.js"></script>
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/zh-CN.js"></script>
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/user.validator.js"></script>

	
<body>
<div class="mainLayout">
<div class="mainMenu">
<div class="menuItem"><a href="/" class="mLogo">CLD</a>
<ul>
	<!-- include 'menuReceipt' -->
</ul>
</div>
</div>
<div class="warpContent">
<div class="subMenu fL">
<div class="menuItem">
<ul>
	<!-- include 'admin_menu' -->
</ul>
</div>
</div>
<div class="adminContent autoHeight">
<form name="myinfo" action="/updateMyinfo" method="post"><legend>个人信息</legend>
<div class="control-group"><label for="inputEmail"
	class="control-label">头像</label>
<div class="controls"><img src="{{staff.0.avatar}}_2.jpg" />
<div>

<div>
<p id="swfContainer">本组件需要安装Flash Player后才可使用，请从<a
	href="http://www.adobe.com/go/getflashplayer">这里</a>下载安装。</p>
</div>

</div>
<script type="text/javascript">
	swfobject.addDomLoadEvent(function() {
		var swf = new fullAvatarEditor("swfContainer", {
			id : 'swf',
			upload_url : 'avatar',
			avatar_sizes : "100*100|48*48|32*32",
			avatar_sizes_desc : "100*100像素|48*48像素|32*32像素",
			checkbox_visible : false,
			src_upload : 2
		}, function(msg) {
			switch (msg.code) {
			//case 1 : alert("页面成功加载了组件！");break;
			//case 2 : alert("已成功加载默认指定的图片到编辑面板。");break;
			case 3:
				if (msg.type == 0) {
					console.log("摄像头已准备就绪且用户已允许使用。");
				} else if (msg.type == 1) {
					console.log("摄像头已准备就绪但用户未允许使用！");
				} else {
					console.log("摄像头被占用！");
				}
				break;
			case 5:
				if (msg.type == 0) {
					if (msg.content.sourceUrl) {

						//alert("头像已成功保存至服务器，url为：\n" +　msg.content.sourceUrl);
					}
					location.reload();
					console.log("头像已成功保存至服务器");
				}
				break;
			}
		});
		document.getElementById("upload").onclick = function() {
			swf.call("upload");
		};
	});
</script></div>
</div>
<div class="control-group"><label for="inputEmail"
	class="control-label">手机</label>
<div class="controls"><input type="text" name="telephone"
	value="{{staff.0.telephone}}"></div>
</div>
<div class="control-group"><label for="inputEmail"
	class="control-label">电话</label>
<div class="controls"><input type="text" name="phone"
	value="{{staff.0.phone}}"></div>
</div>

<div class="control-group"><label for="inputEmail"
	class="control-label">职位</label>
<div class="controls"><input type="text" name="position"
	value="{{staff.0.position}}"></div>
</div>

<div class="control-group"><label for="inputEmail"
	class="control-label">性别</label>
<div class="controls">
男<input type="radio" name="gender" <!-- if {{staff.0.gender}}=='男' --> checked <!-- endif -->  value="男">女<input type="radio" <!-- if {{staff.0.gender}}=='女' --> checked <!-- endif --> name="gender"  value="女">
</div>
</div>

<div class="control-group"><label for="inputEmail"
	class="control-label">生日</label>
	
<div class="controls">年<select name="year">
	{{yearHtml}}
</select> 月<select name="month">
	<option value="01" <!-- if {{month}}=='01' --> selected <!-- endif -->>01</option>
	<option value="02" <!-- if {{month}}=='02' --> selected <!-- endif -->>02</option>
	<option value="03" <!-- if {{month}}=='03' --> selected <!-- endif -->>03</option>
	<option value="04" <!-- if {{month}}=='04' --> selected <!-- endif -->>04</option>
	<option value="05" <!-- if {{month}}=='05' --> selected <!-- endif -->>05</option>
	<option value="06" <!-- if {{month}}=='06' --> selected <!-- endif -->>06</option>
	<option value="07" <!-- if {{month}}=='07' --> selected <!-- endif -->>07</option>
	<option value="08" <!-- if {{month}}=='08' --> selected <!-- endif -->>08</option>
	<option value="09" <!-- if {{month}}=='09' --> selected <!-- endif -->>09</option>
	<option value="10" <!-- if {{month}}==10 --> selected <!-- endif -->>10</option>
	<option value="11" <!-- if {{month}}==11 --> selected <!-- endif -->>11</option>
	<option value="12" <!-- if {{month}}==12 --> selected <!-- endif -->>12</option>
</select>日 <select  name="day">
	
	<option value="01" <!-- if {{day}}=='01' --> selected <!-- endif -->>01</option>
	<option value="02" <!-- if {{day}}=='02' --> selected <!-- endif -->>02</option>
	<option value="03" <!-- if {{day}}=='03' --> selected <!-- endif -->>03</option>
	<option value="04" <!-- if {{day}}=='04' --> selected <!-- endif -->>04</option>
	<option value="05" <!-- if {{day}}=='05' --> selected <!-- endif -->>05</option>
	<option value="06" <!-- if {{day}}=='06' --> selected <!-- endif -->>06</option>
	<option value="07" <!-- if {{day}}=='07' --> selected <!-- endif -->>07</option>
	<option value="08" <!-- if {{day}}=='08' --> selected <!-- endif -->>08</option>
	<option value="09" <!-- if {{day}}=='09' --> selected <!-- endif -->>09</option>
	<option value="10" <!-- if {{day}}==10 --> selected <!-- endif -->>10</option>
	<option value="11" <!-- if {{day}}==11 --> selected <!-- endif -->>11</option>
	<option value="12" <!-- if {{day}}==12 --> selected <!-- endif -->>12</option>
	<option value="13" <!-- if {{day}}==13 --> selected <!-- endif -->>13</option>
	<option value="14" <!-- if {{day}}==14 --> selected <!-- endif -->>14</option>
	<option value="15" <!-- if {{day}}==15 --> selected <!-- endif -->>15</option>
	<option value="16" <!-- if {{day}}==16 --> selected <!-- endif -->>16</option>
	<option value="17" <!-- if {{day}}==17 --> selected <!-- endif -->>17</option>
	<option value="18" <!-- if {{day}}==18 --> selected <!-- endif -->>18</option>
	<option value="19" <!-- if {{day}}==19 --> selected <!-- endif -->>19</option>
	<option value="20" <!-- if {{day}}==20 --> selected <!-- endif -->>20</option>
	<option value="21" <!-- if {{day}}==21 --> selected <!-- endif -->>21</option>
	<option value="22" <!-- if {{day}}==22 --> selected <!-- endif -->>22</option>
	<option value="23" <!-- if {{day}}==23 --> selected <!-- endif -->>23</option>
	<option value="24" <!-- if {{day}}==24 --> selected <!-- endif -->>24</option>
	<option value="25" <!-- if {{day}}==25 --> selected <!-- endif -->>25</option>
	<option value="26" <!-- if {{day}}==26 --> selected <!-- endif -->>26</option>
	<option value="27" <!-- if {{day}}==27 --> selected <!-- endif -->>27</option>
	<option value="28" <!-- if {{day}}==28 --> selected <!-- endif -->>28</option>
	<option value="29" <!-- if {{day}}==29 --> selected <!-- endif -->>29</option>
	<option value="30" <!-- if {{day}}==30 --> selected <!-- endif -->>30</option>
	<option value="31" <!-- if {{day}}==31 --> selected <!-- endif -->>31</option>
</select></div>
</div>
<div class="control-group"><label for="inputEmail"
	class="control-label">邮箱</label>
<div class="controls"><input type="text" name="email"
	value="{{staff.0.email}}"></div>
</div>
<div class="control-group"><label for="inputEmail"
	class="control-label">QQ</label>
<div class="controls"><input type="text" name="qq"
	value="{{staff.0.qq}}"></div>
</div>



<legend>收款信息</legend>
					<div class="control-group">
						<label class="control-label">收款人户名</label>
						<div class="controls">
							<input type="text" name="remittanceName" value="{{staff.0.remittanceName}}">
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">收款开户银行名称</label>
						<div class="controls">
							<input type="text" name="bankName" value="{{staff.0.bankName}}">
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">收款账号</label>
						<div class="controls">
							<input type="text" name="bankNumber" value="{{staff.0.bankNumber}}">
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">联行号&nbsp;&nbsp;<span class="colRed">（如果不是广发银行，务必填上银行联行号）</span></label>
						<div class="controls">
							<input type="text" name="coupletNumber" value="{{staff.0.coupletNumber}}">
						</div>
					</div>


<legend>修改密码</legend>
<div class="control-group"><label for="inputEmail"
	class="control-label">旧密码</label>
<div class="controls"><input type="password" name="oldpassword" id="oldpassword">
</div>
</div>
<div class="control-group"><label for="inputEmail"
	class="control-label">新密码</label>
<div class="controls"><input type="password" name="newpassword" id="newpassword">
</div>
</div>
<div class="control-group"><label for="inputEmail"
	class="control-label">确认新密码</label>
<div class="controls"><input type="password" name="rnewpassword" id="rnewpassword">
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="button">确认修改</button>
<span>{{msg}}</span></div>
</div>
</form>
</div>
</div>
</div>
<script type="text/javascript">
	autoFlashHeight();
</script>
</body>