<!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=utf-8" />
    <meta content='dj设备,dj咨询,dj音乐,夜店,dj文化,dj视频,dj图片,dj Equipment,夜店企划' name="Keywords" />
    <meta content='A.DJ设备,专业DJ器材销售 ,A.dj Equipment ,DJ文化传播发展,夜店,夜生活,派对照片,派对信息' name="Description" />
    <title>{PE.Control.PageTitle/}-会员中心</title>
    <link href="/Skin/Mall/default.css" rel="stylesheet" type="text/css" />
    <link href="/Skin/Mall/user.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    var siteSetup = {sitePath: '/',ajaxPath: '/ajax.aspx',skinPath: '/Skin/Mall/'};
</script>
<script language="javascript" type="text/javascript" src="/js/jquery.pack.js"></script>
<script language="javascript" type="text/javascript" src="/js/jquery.peex.js"></script>
</head>
<body>
    <div id="header">
    <div class="wrapper">
        <div class="top">
            <div id="logo">
                <a href="/">
                    <img src="/Skin/mall/images/logo.gif" alt="A.dj" /></a>
            </div>
            <div class="web_tool">
                <div class="web_tip">
                    <img id="loginStatusSign" src="/Skin/Mall/Images/loading.gif" alt="正在加载数据..." align="absmiddle" />
                    <a href="javascript:void(0)" id="loginAnchor" class="reg">会员登录</a><a href="/rss/rss.aspx" class="rss">RSS</a><a href="/wap/default.aspx" class="wap">WAP</a><a href="javascript:void(0)" class="home">设为首页</a> <a href="javascript:void(0)" class="fav">加入收藏</a></div>
                <div id="loginedUserInfo" style="display: none;">
                    <ul>
                        <li class="user_out"><a href="/User/Default.aspx">会员中心</a> <span>|</span> <a id="logout" href="javascript:void(0)">退出登录</a> </li>
                        <li class="money">资金余额：{balances} 元</li>
                        <li>可用{pointName}：{point} {pointUnit}</li>
                        <li>经验积分：{experience} 分</li>
                        <li>待阅短信：{message} 条</li>
                        <li>待签文章：{signinArticle} 篇</li>
                        <li>登录次数：{loginCount} 次</li>
                    </ul>
                </div>
                <div class="full_model_search">
                    <label><input class="model_search" value="" /></label><label><input value="搜索" type="button" class="model_search_click" /></label>
                    <script type="text/javascript">$('.model_search').useKeypressSubmit($('.model_search_click'))</script>
                    <a href="javascript:void(0)" id="model_adv_search" title="高级搜索">高级搜索</a> <a href="/Search/Default.aspx" title="全文检索" class="model_search_all">全文检索</a>
                </div>
                <div class="model_project">
                    <a href="javascript:void(0)" id="change_search_model" class="cur">全部</a></div>
                <div class="model_list">
                    <ul>
                        <li><a href="javascript:void(0)">文章</a></li>
                        <li><a href="javascript:void(0)">图片</a></li>
                        <li><a href="javascript:void(0)">软件</a></li>
                        <li><a href="javascript:void(0)">全部</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="menu">
            <div id="menubox" class="main_menu">
  <ul>
    <li class="current"><a href="/Default.aspx" target="_blank"><span><em>首页</em></span></a></li>
    <li><a href="/Category_28/Index.aspx" target="_blank"><span><em>新闻</em></span></a></li>
    <li><a href="/Category_1/Index.aspx" target="_self"><span><em>评测</em></span></a></li>
    <li><a href="/Category_2/Index.aspx" target="_self"><span><em>图片</em></span></a></li>
    <li><a href="/Category_7/Index.aspx" target="_self"><span><em>留言</em></span></a></li>
    <li><a href="/Category_3/Index.aspx" target="_self"><span><em>下载</em></span></a></li>
    <li><a href="http://bbs.adj.cn/" target="_blank"><span><em>论坛</em></span></a></li>
    <li><a href="http://23608898.taobao.com" target="_blank"><span><em>淘宝</em></span></a></li>
    <li><a href="/" target="_self"><span><em>TEL-400616198</em></span></a></li>
  </ul>
</div>
<div class="sub_menu">
  <div class="sub_center">
    <ul></ul>
    <ul style="display:none">
                            <li><a href="/YD/List/List_29.html" target="_blank">特色活动</a></li>
<li><a href="/Category_43/Index.aspx" target="_self">先锋人物</a></li>
<li><a href="/Category_33/Index.aspx" target="_blank">派对生活</a></li>
<li><a href="/Category_115/Index.aspx" target="_blank">酒吧文化</a></li>
                        </ul>
    <ul style="display:none">
                            <li><a href="/Category_18/Index.aspx" target="_blank">硬件新闻</a></li>
<li><a href="/Category_116/Index.aspx" target="_self">音响技术</a></li>
<li><a href="/Category_48/Index.aspx" target="_self">音乐制作</a></li>
<li><a href="/Category_47/Index.aspx" target="_self">MIDI知识</a></li>
<li><a href="/Category_46/Index.aspx" target="_self">设备应用</a></li>
<li><a href="/Category_19/Index.aspx" target="_blank">软件新闻</a></li>
<li><a href="/Category_20/Index.aspx" target="_blank">器材测评</a></li>
<li><a href="/Category_21/Index.aspx" target="_blank">综合资讯</a></li>
<li><a href="/Category_26/Index.aspx" target="_blank">ＤＪ设备</a></li>
<li><a href="/Category_142/Index.aspx" target="_self">ＤＪ手册</a></li>
<li><a href="/Category_27/Index.aspx" target="_blank">音色新闻</a></li>
                        </ul>
    <ul></ul>
    <ul></ul>
    <ul></ul>
    <ul></ul>
    <ul></ul>
    <ul></ul>
  </div>
</div></div>
    </div>
</div>
<!--弹出登录开始-->
<div id="loginField" class="quick_login" style="display: none">
    <div class="quick_login_content">
        <h3 class="close">
            <img src="/Skin/Mall/images/close.gif" class="overlay_header_close" alt="关闭" align="absmiddle" />会员登录</h3>
        <div class="quick_login_info">
            <ul>
                <li><label>用户名：</label><input name="username" type="text" /></li>
                <li><label>密&nbsp;&nbsp;码：</label><input name="userpass" type="password" /></li>
                <li style="display: none" id="validateField"><label>验证码：</label><input name="validate" id="validateCode" type="text" /><span><img style="display:none" class="validateSign" id="validateSign" src="" title="换一个" align="absmiddle" /></span></li>
                <li class="check"><label><input name="saveinfo" type="checkbox" /><span>保持登录状态</span></label></li>
                <li class="login">
                    <img id="login" src="/Skin/Mall/images/login.gif" alt="登录" align="absmiddle" /></li>
            </ul>
        </div>
        <div class="reg_info">
            <ul>
                <li>没有帐号？<a href="/User/Register.aspx" target="_blank" title="点此注册">点此注册</a></li>
                <li><a href="/User/GetPassword.aspx" target="_blank" title="忘记密码？">忘记密码？</a></li>
            </ul>
        </div>
        <div class="clear">
        </div>
    </div>
</div>
<!--弹出登录结束-->
<script type="text/javascript">
    $(function () {
        $('a[class="fav"]').addFavorite();
        $('a[class="home"]').setHomePage();

        $('#change_search_model').click(function () {
            if($('.model_list').css('display') != 'block')
            {
              $('.model_list').slideDown(500);
              try { clearTimeout(timer); } catch (e) { }
            }else{
              $('.model_list').mouseleave();
            };
        })

        $('.model_list').mouseleave(function () {
            timer = setTimeout(function () {
                $('.model_list').slideUp(100);
            }, 500);
        })

        $('.model_list a').click(function () {
            $('#change_search_model').text($(this).text())
            $('.model_list').slideUp(100);
            try { clearTimeout(timer); } catch (e) { }
        })

        $('.model_search_click').click(function () {
            var model = checkSearchModel();
            doModelSearch(model[0],model[1]);
        })

        $('#model_adv_search').click(function () {
            var model = checkSearchModel();
            doModelSearch(model[0],2);
        })
        
        var checkSearchModel = function(){
        var model = $('#change_search_model').text();
            switch (model) {
                case '文章':
                    return[1, 1];
                case '图片':
                    return[2, 1];
                case '软件':
                    return[3, 1];
                default:
                    return[0, 2];
            }
        }

        var doModelSearch = function (modelId, searchType) {
            var searchValue = $('.model_search').val();
            if (searchType != 2 && (searchValue == null || searchValue == '')) {
                alert('请输入要搜索的关键词');
                $('.model_search').focus();
                return;
            }
            if(searchType == 2 && modelId == 0){
                location.href = '/search.aspx?searchType=0&Keyword=' + searchValue;
                return;
            }
            switch (modelId) {
                case 1:
                    location.href = '/search.aspx?searchtype=1&modelId=' + modelId + '&nodeId=1&fieldOption=title&Keyword=' + searchValue;
                    break;
                case 2:
                    location.href = '/search.aspx?searchType=1&modelId=' + modelId + '&nodeId=2&fieldOption=title&Keyword=' + searchValue;
                    break;
                default:
                    location.href = '/search.aspx?searchtype=1&modelId=' + modelId + '&nodeId=3&fieldOption=title&Keyword=' + searchValue;
                    break;
            }
        }

        var checkUserLogin = function () {
            $.pe.ajax('checkUserLogin', { success: function (response) {
                var _response = $(response);
                if (_response.find('status').text() == 'ok') {
                    var _loginedUserInfo = $('#loginedUserInfo'), _loginAnchor = $('#loginAnchor');
                    _loginedUserInfo.html($.pe.replaceUserInfoVariable(_loginedUserInfo.html(), _response));
                    $('#loginedUserInfo,#loginAnchor').bind({
                        'mouseenter': function () {
                            _loginedUserInfo.slideDown(500);
                            try { clearTimeout(timer); } catch (e) { }
                        },
                        'mouseleave': function () {
                            timer = setTimeout(function () {
                                _loginedUserInfo.slideUp(500);
                            }, 500);
                        }
                    });
                    _loginAnchor.html('尊敬的<a  class="login_poping" href="/user/default.aspx"><span>' + _response.find('username').text() + "</span></a>您好！").fadeIn();
                    $('#loginStatusSign').hide();
                    $('#logout').click(function () {
                        $.pe.ajax('logout', { success: function (response) {
                            if ($(response).find('status').text() == 'ok') {
                                $('#loginField input[name="username"]').val('');
                                $('#loginField input[name="userpass"]').val('');
                                $('#loginField input[name="validate"]').val('');
                                $('#loginField input[name="saveinfo"]').attr("checked", false);
                                location.reload();
                            }
                        }
                        });
                    })
                } else {
                    $.pe.ajax('checkLoginValidate', { success: function (response) {
                        if ($(response).find('status').text() == 'yes') {
                            $('#validateSign').click(function () { $.pe.refreshValidateCode($('.validateSign')); });
                            $('#validateField').show();
                        }
                    }
                    });
                    $('#validateCode').focus(function(){$('#validateSign').click();$('#validateSign').show();})
                    $('#loginAnchor').text('会员登录').click(function () {
                        $('#loginField').overlay({ api: true, expose: true }).load(); return false;
                    }).fadeIn();
                    $('#login').click(function () {
                        var username = $('#loginField input[name="username"]');
                        var userpass = $('#loginField input[name="userpass"]');
                        var saveinfo = $('#loginField input[name="saveinfo"]');
                        var validate = $('#loginField input[name="validate"]');

                        if (username.val() == '') {
                            alert('请填写用户名！');
                            username.focus();
                            return;
                        }
                        if (userpass.val() == '') {
                            alert('请填写密码！');
                            userpass.focus();
                            return;
                        }
                        if ($('#validateField').css("display") != 'none') {
                            if (validate.val() == '') {
                                alert("请填写验证码！");
                                validate.focus();
                                return;
                            }
                        }
                        $.pe.ajax('userLogin', {
                            params: {
                                username: username.val(),
                                password: userpass.val(),
                                checkcode: validate.val(),
                                expiration: saveinfo.attr("checked") ? 'Month' : 'None'
                            }, success: function (response) {
                                var _response = $(response)
                                switch (_response.find('status').text()) {
                                    case "ok":
                                        location.reload();
                                        break;
                                    case "err":
                                        alert(_response.find('body').text());
                                        $.pe.refreshValidateCode($('.validateSign'));
                                        break;
                                }
                            }
                        })
                    })
                    $('#loginStatusSign').hide();
                    $('#loginField').keypress(function (e) {
                        if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
                            $('#login').click();
                            return false;
                        }
                        return true;
                    })
                }
            }
            })
        }
        checkUserLogin();
    })
    
</script>
    <div class="wrapper">
        <div id="main_bg">
            {PE.Control.form1/}
            <div class="clear">
            </div>
        </div>
    </div>
    <!--网站底部开始-->
<div id="footer">
    <div class="wrapper">
        <div class="service">
            <a href="javascript:void(0)" title="联系我们">联系我们</a> | <a href='/Category_7/Index.aspx' target="_blank" title="网站留言">网站留言</a> | <a href='/Category_6/Index.aspx' target="_blank" title="友情链接">友情链接</a> | <a href='/Category_8/Index.aspx' target="_blank" title="版权声明">版权声明</a> | <a href="javascript:void(0)" title="关于我们">关于我们</a> | <a href="/Admin/Index.aspx" target="_blank" title="管理登录">管理登录</a>
        </div>
        <div class="clear">
        </div>
        <div class="copyright">
            Copyright © 2001-2011 www.adj.cn All Rights Reserved   <img src="/Skin/Mall/images/tel.gif" border="0" alt="广州A.DJ网" />  免长途电话：400 6161984
        </div>
    </div>
</div>
<!--网站底部结束-->
</body>
</html>

