<%@ Page Language="C#" AutoEventWireup="true" CodeFile="customstr.aspx.cs" Inherits="customstr" ValidateRequest="false" %>

<!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">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题页</title>
<script type="text/javascript" src="js/webtrade.js"></script>
<script type="text/javascript" src="js/webnews.js"></script>
    <link rel="stylesheet" type="text/css" href="css.css" />
</head>
<body>
<form id="Form1" runat="server" >
<div id="right">
  <div id="title"> &nbsp; 客户管理 &gt;&gt;客户基本信息管理</div>
  <div id="con">
    <table class="cinfo" style="font-size: 13px;" border="1" bordercolor="#ffffff" cellpadding="0" cellspacing="0" width="748">
        <tbody><tr>
          <td height="34" width="90">公司名称：</td>
          <td width="234">
              <asp:TextBox ID="company" runat="server" Width="204px"></asp:TextBox></td>
          <td width="104">用户名(ID号) ：</td>
          <td colspan="2">&nbsp;<%=website %>            
              <asp:TextBox ID="userid" runat="server" Width="50px"></asp:TextBox></td>
          <td width="63">
              &nbsp;<asp:Button ID="Button1" runat="server" Text="查看ID" OnClick="Button1_Click" /></td>  
        </tr>
        <tr>
          <td style="height: 26px">手机：</td>
          <td style="height: 26px">
              <asp:TextBox ID="tel" runat="server"></asp:TextBox></td>

          <td width="104" style="height: 26px">密码: </td>
          <td colspan="2" style="height: 26px">&nbsp;
              <asp:TextBox ID="password" runat="server" Width="104px"></asp:TextBox>
            </td>
          <td style="height: 26px">&nbsp;</td>
        </tr>

        <tr>
          <td width="90">E-mail： </td>
          <td>
              <asp:TextBox ID="mail" runat="server"></asp:TextBox></td>
          <td width="104">行 业：</td>
          <td colspan="" width="194">&nbsp;&nbsp;<asp:DropDownList ID="DropDownList1" runat="server">
              </asp:DropDownList>

          </td>
          <td colspan="2">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>主要产品：</td>
          <td colspan="5">
              <asp:TextBox ID="mainproduct" runat="server" Height="102px" TextMode="MultiLine" Width="500px"></asp:TextBox></td>
        </tr>

        <tr>
          <td>备注：</td>
          <td>
              <asp:TextBox ID="beizhu" runat="server"></asp:TextBox></td>
          <td></td>
          <td></td>
        </tr>

        <tr>
          <td style="height: 50px">翻译提醒：</td>
          <td style="height: 50px">
              &nbsp;<asp:TextBox ID="t_email" runat="server"></asp:TextBox></td>
          <td style="height: 50px">网站贸易政策：</td>
          <td style="height: 50px">
              &nbsp;<asp:CheckBox ID="checktrade" runat="server" />
            添加TradeInfo</td>

        </tr>
        <tr>
          <td>资料管理：</td>
          <td>
          <asp:RadioButtonList id="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
          <asp:ListItem Value="0">开启</asp:ListItem>
          <asp:ListItem Value="1">关闭</asp:ListItem>
      </asp:RadioButtonList>
            <td>网站新闻增加：</td><td>
                <asp:CheckBox ID="checknews" runat="server" />添加News</td>
        </tr>
        <tr>
          <td style="height: 32px">网站联系<br>
            方式：</td>
          <td colspan="5" style="height: 32px">
              <asp:TextBox ID="webcontract" runat="server" Width="507px" Height="120"></asp:TextBox></td>
        </tr>
        <tr>
          <td>合作平台</td>
          <td colspan="5"><table id="showweb" style="text-align: center; font-size: 13px; border: medium none;" border="1" cellpadding="0" cellspacing="0" width="592">
              <tbody><tr>
                <td width="65">语言</td>

                <td width="189">域 名 </td>
                <td width="117">计数器ID号</td>
                <td width="146">统计时间 </td>
                <td width="53">贸易 </td>
                <td width="53">新闻 </td>
                 <td width="89">操作</td>
              </tr>
              <asp:Repeater ID="Repeater1" runat="server" >
                <ItemTemplate>
                  <tr>
                   <td><%#CutLang(Eval("langId").ToString())%></td>
                   <td><%#Eval("website")%></td>
                   <td><%#Eval("jsqid")%></td>
                   <td><iframe src="http://jsq.etwun.com:8080/visite_data.php?userid=<%#Eval("jsqid")%>" frameborder="0" height="15" width="60" scrolling="no"></iframe></td>
                   <td><input name="trade<%#Eval("webid")%>" onclick="changestate(<%#Eval("webid")%>)" <%#Cuttrue(Eval("webid").ToString(),"trade")%> style="border: medium none;" type="checkbox"></td>
                   <td><input name="news<%#Eval("webid")%>" onclick="changes(<%#Eval("webid")%>)"  <%#Cuttrue(Eval("webid").ToString(),"news")%> style="border: medium none;" type="checkbox"></td>
                   <td><a href="website.aspx?webid=<%#Eval("webid")%>&userid=<%#Eval("usernameid")%>">修改</a>/<a href="webdel.aspx?webid=<%#Eval("webid")%>&userid=<%#Eval("usernameid")%>" onclick="return confirm('真的要删除吗？');">删除</a></td>
                 </tr>
                </ItemTemplate>
              </asp:Repeater>
              </tbody></table></td>
        </tr>
        <tr>
          <td colspan="6">            <div style="margin: 5px;" align="center">
              &nbsp;<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="修改基本信息" /></div>

            </td>
        </tr>
      
            <script type="text/javascript">
function disshow(obj,table){
	values=obj.value;
	trs=document.getElementById(table).getElementsByTagName("tr");
	if(values=="-"){
		for(i=0;i<17;i++){
			trs[i].style.cssText="display:none";
			obj.value='+'
		}
	}else if(values=="+"){
		for(i=0;i<17;i++){
			trs[i].style.cssText="width:100%";
			obj.value='-'
		}
	}
}
</script>
    </tbody></table>
    <input name="bt" value="+" onclick="disshow(this,'thet')" class="butt" style="width: 25px;" type="button">
    添加合作平台
    <table id="thet" style="font-size: 13px;" border="0" width="100%">
      <tbody><tr style="display: none;">
        <td width="9%" rowspan="2">合作平台</td>

        <td colspan="5"><table id="showweb1" style="border: medium none; text-align: center; font-size: 13px; line-height: 25px;" border="0" cellpadding="0" cellspacing="0" width="100%">
            <tbody><tr style="display: none;">
              <td style="width: 43px">语 言 </td>
              <td style="width: 94px">域 名 </td>
              <td style="width: 43px">计数器ID</td>
              <td width="89">操作</td>

            </tr>
                      </tbody></table>
          </td>
      </tr>
      <tr style="display: none;">
      <td style="width: 146px">
          <asp:DropDownList ID="langlist" runat="server">
          </asp:DropDownList></td>
        <td align="center" style="width: 327px">
            <asp:TextBox ID="websitestr" runat="server" Width="176px">www.</asp:TextBox></td>
        <td style="width: 45px" >
            <asp:TextBox ID="jsqid" runat="server" Width="118px"></asp:TextBox></td>
        <td >
            <asp:Button ID="Button3" runat="server" Text="添加" OnClick="Button3_Click" /></td>
      </tr>
    </tbody></table>
    <br>

    <br>
    <br>
    <br>
  </div>
</div>
</form>
</body>
</html>
