<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>testtd</title>
<meta name="Keywords" content="test"/>
<meta name="Description" content="test"/>
<link rel="stylesheet" href="Static/css/global.css"/>
<link rel="stylesheet" href="Static/css/member.css"/>
<style>
/*add address*/
.form-table td{font-size: 14px; padding: 10px 8px 10px;}
.form-table td input{margin-right: 8px;}
.titlebox{padding: 0 8px 0 10px}
.add-a-btn{padding: 30px 0 20px 0; height: 30px;}
.to-add-address-btn{width: 130px; height: 30px; line-height: 30px; float: right; display: inline-block; background-color: #b00; text-align: center; color: #fff; font-size: 14px;}
.to-add-address-btn:hover{background-color:#ab0009; color: #fff;}
.address-list{font-size: 14px;}
.list-group-title{padding: 10px 0; background-color: #dedede; color: #888;}
.list-group-title thead th.last-boder{border-right: 0;}
.list-group-title thead th{text-align: center; border-right:1px solid #ccc;}
</style>
</head>
<body>
<!--面包屑 -->
<div class="wide">
<div class="ptb10 breadcrumb-area"><a href="/" title="首頁">首頁</a>&nbsp;&nbsp;\&nbsp;&nbsp;<a href="/member/" title="我的首頁">我的首頁</a>&nbsp;&nbsp;\&nbsp;&nbsp;<span id="pathTitle">我的首頁</span></div>
</div>
<div class="buy-module">
<div class="wide c">
<!--左邊-->
<div class="wide-l">
</div>
<!--左邊 end-->
<div class="c wide-c-r">
<div class="section-header">
<div class="fl">
<h2><span>1</span></h2>
</div>
</div>
<!--form add_address begin-->
<div class="undis form-edit-table pt30 pb20">
<form id="address_form" action="{:U('User/address_save')}" method="POST">
<table border="0" cellpadding="0" cellspacing="0" class="form-table">
<tr>
<td align="right">
<span class="required">*</span><label for="name">發貨人姓名:</label>
</td>
<td>
<input type="text" name="name" id="name" class="edit-input w150"/><span id="realnameSpan" style="color:#999999"></span>
</tr>
<span class="required">*</span><label for="shouji">手機号碼:</label>
<input type="text" name="shouji" id="shouji" class="edit-input w150"/><label class="titlebox" for="phone">或者固定電話:</label><input type="text" name="phone" id="phone" class="edit-input w150"/><span id="telmSpan" style="color:#999999"></span>
<!--<tr>-->
<!--<td align="right">-->
<!--電話号碼:-->
<!--</td>-->
<!--<td>-->
<!--<span class="numcolor">*</span><span id="telSpan" style="color:#999999">請輸入聯系電話</span>-->
<!--</tr>-->
<td align="right"><span class="required">*</span><label for="s_province">具體位址:</label></td>
<select id="s_province" class="ec_linkSelect" name="address_province">
</select>
&nbsp;&nbsp;
<select id="s_city" class="ec_linkSelect" name="address_city">
<select id="s_county" class="ec_linkSelect" name="address_district">
&nbsp;&nbsp;<span class="numcolor">*</span><span id="addressSpan" style="color:#999999"></span>
<!--<input name="address" class="edit-area w480" id="address" type="text" onfocus="address_focus()" onblur="address_blur()" class="input0" value="填寫街道位址(可為空)" size="30"/>-->
<textarea name="address" id="address" maxlength="100" class="edit-area w500"></textarea>
<td align="right"><label for="zipcode">郵編:</label></td>
<input type="text" name="zipcode" id="zipcode" class="edit-input w130"/>
<div class="pt10"><input type="submit" value="确認儲存" class="button-action-ok"/><input type="reset" value="清空" class="button-action-reset"/><a href="{:U('User/address')}" class="">傳回位址清單</a></div>
</table>
<input type="hidden" name="user_id" value="{$user['id']}">
</form>
<!--form add_address end-->
<!--form address_list begin-->
<!-- -->
<div class="add-a-btn">
<a href="{:U('User/address_add')}" class="to-add-address-btn">新增發貨位址</a>
<div class="address-list">
<div class="list-group-title">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table-list">
<thead>
<tr class="bgcolor01">
<th align="center" width="10%">
收貨人
</th>
手機
固話
<th align="center">
具體位址
<th width="8%">
預設
<th class="last-boder" align="center" width="25%">
操作
</thead>
<div class="list-group">
<tbody>
<foreach name="address_list" item="address">
<tr class="bb">
<td class="pl10" align="center">
{$address['name']}
<td align="center">
{$address['shouji']}
{$address['phone']}
{$address['address']}
<switch name="address.is_default">
<case value="0"><span class="numcolor">否</span></case>
<case value="1"><span class="numcolor">是</span></case>
</switch>
<a href="{:U('User/address_edit',array('id'=>$address['id']))}">編輯</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="{:U('User/address_del',array('id'=>$address['id']))}">删除</a>&nbsp;&nbsp;
<a class="btn-small " href="javascript:void(0)" onclick="set_default('{$address['id']}')">設為預設</a>
</foreach>
</tbody>
</table>
<!--form address_list end-->
</div>
<script type="text/javascript" src="__PUBLIC__/js/area.js"></script>
<script type="text/javascript">_init_area();</script>
<!--
http://www.w3cplus.com/css3/how-to-animate-box-shadow.html
http://tobiasahlin.com/demo/animate-box-shadow/
thinkphp:
http://www.xcsoft.cn/article/156.html
http://ht19820316.blog.163.com/blog/static/3395523320142611716910/
-->
<script>
//http://www.4008000000.com/cpbaoxian/official/pinganyhd/index.shtml
$(window.top).scroll(function() {
if ($(window.top).scrollTop() >= 570) {
if ($(window.top).scrollTop() <= 1855 + 30) {
$(".fixed_ewm").css("top", $(window.top).scrollTop() + 158);
} else {
$(".fixed_ewm").css("top", 1855 + 158 + 30);
}
$(".fixed_ewm").fadeIn();
} else {
$(".fixed_ewm").fadeOut();
}
});
</script>
</body>
</html>