<%@ page language="C#" autoeventwireup="true" inherits="ShopRealname, LebiMall" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!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 id="Head1" runat="server">
    <title>实名认证-<%=modelt.Title%></title>
    <meta name="description" content="<%=modelt.Description %>" />
    <meta name="keywords" content="<%=modelt.Keywords %>" />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="images/css/css3.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css2.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css.css" rel="stylesheet" type="text/css" /> 
    <script type="text/javascript" src="images/js/shopjs.js"></script>
    <script type="text/javascript">
        var flag=false;
        function valfile(imgFile)
        {
            if(!imgFile.value.match(/.jpg|.gif|.png|.bmp/i))
            {   
                document.getElementById("msg_file").innerHTML="<span class='msg_submit'>图片类型必须是: .jpg, .gif, .bmp or .png ！</span>";
                flag=false;
                return false;
            }else{
                flag=true;
                document.getElementById("msg_file").innerHTML="";
            }
        }
        function valfile2(imgFile)
        {
            if(!imgFile.value.match(/.jpg|.gif|.png|.bmp/i))
            {   
                alert('图片类型必须是: .jpg, .gif, .bmp or .png !');
                flag=false;
                return false;
            }else{
                flag=true;
            }
            if(imgFile.value==""){
                flag=true;
            }else{
                flag=true;
            }
        }
        function val(){
            if(document.getElementById("txt_truename").value==""){
                document.getElementById("msg_truename").innerHTML="<span class='msg_submit'>姓名不能为空！</span>";
                flag=false;
            }else{
                document.getElementById("msg_truename").innerHTML="";
                flag=true;
            }
            if(document.getElementById("txt_cardid").value==""){
                document.getElementById("msg_card").innerHTML="<span class='msg_submit'>身份证号不能为空！</span>";
                flag=false;
            }else{
                document.getElementById("msg_card").innerHTML="";
                flag=true;
            }
            var f=document.getElementById("cardidimg").value;
            if(f==""){
                document.getElementById("msg_file").innerHTML="<span class='msg_submit'>身份证上传不能为空 ！</span>";
                flag=false;
            }else{
                document.getElementById("msg_file").innerHTML="";
                flag=true;
            }
            if(flag){
                return true;
            }else{
                return false;
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server" onsubmit="return val()">
        <div id="top-menu02">
            <div id="top-menu">
                <div class="right">
                    <script type="text/javascript">indexhead();</script>
                </div>
            </div>
        </div>
        <div id="top">
            <div id="logo">
                <a href="http://<%=Request.Url.Host %><%=modelt.WebPath %>/">
                    <img src="Upload/WebAdminImages/<%=modelt.Logoimg %>" border="0" /></a></div>
        </div>
        <div id="sp-menu">
            <ul>
            <li><a href="http://<%=Request.Url.Host %><%=modelt.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (modelt.Tab == "1"){ %>
                <a href="<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
            <li><a href="http://<%=Request.Url.Host %><%=modelt.WebPath %>/News/" target="_blank">资讯</a></li>
        </ul>
            <p><span><a href="ShopCoupon.aspx">优惠券</a></span></p>
        </div>
        <div id="contenter2">
            <div id="contenter">
                <script type="text/javascript">shopLeft();</script>
                <div id="right">
                    <div class="page-title">
                        <a class="back" href="#" onclick="javascript:window.history.back();"><span>返回上一页</span></a>
                        <h2 class="shop clearfix">
                            实名认证
                        </h2>
                    </div>
                    <div class="contenter">
                        <div style="margin-left:180px;" runat=server id="msg_"></div>
                        <table cellpadding="0" cellspacing=0 width=100% >
                            <%if (renzheng == 1){ %>
                            <tr>
                                <td colspan=2 class="row4">
                                    <span style="color: red;">您的认证信息已经通过审核，如需修改请与管理员联系！</span>
                                </td>
                            </tr>
                            <%}%>
                            <tr>
                                <td class="row" width="20%"><span class="span-title">真实姓名：</span></td>
                                <td width="80%"><input type="text" id="txt_truename" runat="server" class="input-c" />&nbsp;<span id="msg_truename"></span></td>
                            </tr>
                            <tr>
                                <td  class="row"><span class="span-title" >身份证号：</span></td>
                                <td><input type="text" id="txt_cardid" runat="server" maxlength=18 class="input-c" />&nbsp;<span id="msg_card"></span></td>
                            </tr>
                            <tr>
                                <td  class="row"><span class="span-title" >身份证照片：</span></td>
                                <td><input type="file" runat="server" onchange="valfile(this)" id="cardidimg" />&nbsp;<span id="msg_file"></span></td>
                            </tr>
                            <tr>
                                <td  class="row"><span class="span-title" >公司名称：</span></td>
                                <td><input type="text" id="txt_company" runat="server"  class="input-c" />&nbsp;<em>个人可以空</em></td>
                            </tr>
                            <tr>
                                <td colspan=2 class="row2">
                                    <span class="span-title" >请上传组织机构代码证副本或企业营业执照副本：</span>
                                </td>
                            </tr>
                            <tr>
                                <td colspan=2 class="row3">
                                    <input type="file" runat="server" onchange="valfile2(this)" id="filezu" />&nbsp;<em>个人可以空</em>
                                </td>
                            </tr>
                            <%if (renzheng == 0){ %>
                            <tr>
                                <td colspan=2 class="row4">
                                    <input type="button" id="btn" runat="server" value="提交" onserverclick="btn_ServerClick" />
                                </td>
                            </tr>
                            <%}%>
                        </table>
                        <span style="color: red; line-height:23px;">
                            说明：组织机构代码证副本复印件（上面需盖有效年检章）,如果没有则上传企业营业执照副本复印件（上面需盖有效年检章）。<br />
                            提醒：请确保单位名称与组织机构代码证副本上单位名称或企业营业执照副本上公司名称一致<br />
                            注意：实名认证与提现操作有关，请务必填写真实信息
                        </span>
                    </div>
                </div>
                <div class="both">
                </div>
<div id="footer">
                <div id="copyright">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser2" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select3" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div_s2"></div>
                        </div>
                    </div>
                </div>
            </div>

                <div class="copyright" runat="server" id="copr"></div>
            </div>
        </div>
    </form>
</body>
</html>
