<%@ page language="C#" autoeventwireup="true" inherits="general_ClientManage_ClientInfo, CrmCommand" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
<script language=javascript>
var menu_id=0;

function setPointer(theRow, thePointerColor,menu_id_over)
{
  if(menu_id!=menu_id_over)
  {
	if(thePointerColor == "#B3D1FF")
		theRow.className="menu_active";
	else
		theRow.className="menu_comon";
   }
}

function view_menu1()
{
 
   
  if(menu_id!=0)
    menu_main.location="ClientContactList.aspx?id="+document.form1.HidCid.value;
   menu_id=1;
   menu_1.className="menu_active";
   menu_2.className="menu_comon";
   menu_3.className="menu_comon";
   menu_4.className="menu_comon";
    menu_5.className="menu_comon";
}

function view_menu2()
{

   menu_main.location="ClientTract.aspx?id="+document.form1.HidCid.value;
   menu_id=2;
   menu_1.className="menu_comon";
   menu_2.className="menu_active";
   menu_3.className="menu_comon";
   menu_4.className="menu_comon";
     menu_5.className="menu_comon";
}

function view_menu3()
{
    menu_main.location="ClientTran.aspx?type=qz&id="+document.form1.HidCid.value;
   menu_id=3;
   menu_1.className="menu_comon";
   menu_2.className="menu_comon";
   menu_3.className="menu_active";
   menu_4.className="menu_comon";
     menu_5.className="menu_comon";
}

function view_menu4()
{
 menu_main.location="ClientTran.aspx?type=date&id="+document.form1.HidCid.value;
   menu_id=4;
   menu_1.className="menu_comon";
   menu_2.className="menu_comon";
   menu_3.className="menu_comon";
   menu_4.className="menu_active";
     menu_5.className="menu_comon";
}
function view_menu5()
{
 menu_main.location="ApplyList.aspx?id="+document.form1.HidCid.value;
   menu_id=4;
   menu_1.className="menu_comon";
   menu_2.className="menu_comon";
   menu_3.className="menu_comon";
     menu_4.className="menu_comon";
   menu_5.className="menu_active";
}
 function OpenWin(str)
   {
      var id=document.getElementById("HidCid").value;
     url = str+"?id="+id
         
              var R=  window.showModalDialog(url,"水平","dialogWidth=500px;dialogHeight=500px");
             
              if(R == "ok")
              {
                  location.reload();
              }
         return false;
  
   }
    function Open(str)
    {
         var id=document.getElementById("HidCid").value;
          url = str+"?type=qz&id="+id
         location.href=url;
    }
   function hid()
   {
      if(tr1.style.display == "none")
      {
          tr1.style.display = "";
          tr2.style.display = "";
          tr3.style.display = "";
          tr4.style.display = "";
          tr5.style.display = "";
          tr6.style.display = "";
      }
      else
      {
            tr1.style.display = "none"
            tr2.style.display = "none";
            tr3.style.display = "none";
            tr4.style.display = "none";
            tr5.style.display = "none";
            tr6.style.display = "none";
      }
   }
   
</script>

	<style type="text/css">
.style1 {
	border-style: solid;
	border-width: 1px;
}
</style>
</head>
<body class="bodycolor">
    <form id="form1" runat="server">
      <div id="pnlMain">
    	<TABLE class="small" cellSpacing="1" cellPadding="3" width="800" align="center" border="0"  bgcolor="#000000"  style="height: 100%" >
    	<tr>
    	<td class="TableData"  width=150  align="right">客户名称:</td>
		<td class="TableData" style="width: 308px" ><font color=red>
            <asp:Label ID="LblName" runat="server" Text=""></asp:Label></font></td>
		<td class="TableData"  width=100 colspan="2" align="center"> 
		<table style="width: 359%" cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td  align="center"> <input id="Button1" type="button"  class="SmallButton" value="修改客户信息" onclick="Open('EditClient.aspx')" style="width: 100px" />
				<asp:Button
                ID="BtnTran" runat="server" Text="转为竞争对手" Visible=false  OnClientClick="return confirm('确认要将该潜在客户转为竞争对手吗?');"  CssClass ="SmallButton"   Width=16px OnClick="BtnTran_Click" />
				&nbsp;&nbsp;&nbsp;<input id="Button4" type="button" onclick="hid();"  class="SmallButton" value="隐藏客户信息" /></td>
			</tr>
		</table>
		</td>
    	</tr>
    	
    	<tr id="tr1">
    	<td class="TableData" align="right" >保护开始日期:</td>
		<td class="TableData" style="width: 308px" ><asp:Label ID="LblBeginDate" ForeColor=red  runat="server" Text=""></asp:Label></td>
		<td class="TableData" align="right" style="width: 119px">保护截止日期:</td><td class="TableData" ><asp:Label ID="LblEndDate" ForeColor=red runat="server" Text=""></asp:Label></td>
    	</tr>
    	<tr id="tr2">
    	<td class="TableData" align="right">电话:</td>
		<td class="TableData" style="width: 308px" ><asp:Label ID="LblTel" runat="server" Text=""></asp:Label></td>
		<td class="TableData" align="right" style="width: 119px">
            传真:</td><td class="TableData" ><asp:Label ID="LblFax" runat="server" Text=""></asp:Label></td>
    	</tr>
    	<tr id="tr3">
    	<td class="TableData"  align="right">所在地:</td>
		<td class="TableData" style="width: 308px" >省份:<asp:Label ID="LblProvince"   ForeColor=red  runat="server" Text=""></asp:Label>
                        地级市:<asp:Label ID="LblCity"   ForeColor=red  runat="server" Text=""></asp:Label>
                        市、县级市、县:<asp:Label ID="LblArea"   ForeColor=red  runat="server" Text=""></asp:Label></td>
		<td class="TableData" align="right" style="width: 119px">行业:</td><td class="TableData" ><asp:Label ID="LblHy" runat="server" Text=""></asp:Label></td>
    	</tr>
         <tr id="tr4">
    	<td class="TableData"  align="right">详细地址:</td><td colspan=3 class="TableData" ><asp:Label ID="LblAdr" runat="server" Text=""></asp:Label></td>
    	</tr>
    	<tr id="tr5">
    	<td class="TableData" align="right">网址:</td>
		<td class="TableData" style="width: 308px" ><asp:Label ID="LblWeb" runat="server" Text=""></asp:Label></td>
		<td class="TableData" align="right" style="width: 119px">E-Mail:</td><td class="TableData" ><asp:Label ID="LblMail" runat="server" Text=""></asp:Label></td>
    	</tr>
    	<tr id="tr6">
    	<td class="TableData" align="right" style="height: 25px" >
            客户类型:</td>
		<td class="TableData" style="width: 308px; height: 25px;" >
            <asp:Label ID="LblType" runat="server" Text=""></asp:Label></td>
		<td class="TableData" align="right" style="width: 119px; height: 25px;" >客户积分:</td><td class="TableData" style="height: 25px" ><asp:Label ID="LblPoint" runat="server" Text=""></asp:Label></td>
    	</tr>
    	
    	<tr>
    	<td class="TableData"  colspan=4 >
    <TABLE class="big" cellspacing="0" height="100%" width="100%" bgcolor="#DDDDDD" cellpadding="1" bordercolorlight="#000000" bordercolordark="#FFFFFF">
 <TR>

   <TD width="20%" title="联系人信息" id="menu_1" onclick="view_menu1()" onmouseover="setPointer(this, '#B3D1FF',1)" onmouseout="setPointer(this, '#DDDDDD',1)" style="cursor:hand">
       <img src="../images/menu/sms.gif" WIDTH="20" HEIGHT="20" align="absmiddle"><b><font color="#000000"> 联系人信息</font></b>
   </TD>

   <TD width="20%" title="客户跟踪" id="menu_2" onclick="view_menu2()" onmouseover="setPointer(this, '#B3D1FF',2)" onmouseout="setPointer(this, '#DDDDDD',2)" style="cursor:hand">
       <img src="../images/menu/sms.gif" WIDTH="20" HEIGHT="20" align="absMiddle"><b><font color="#000000"> 客户跟踪</font></b>
   </TD>
   
   <TD width="20%" title="转意向客户申请" id="menu_3" onclick="view_menu3()" onmouseover="setPointer(this, '#B3D1FF',3)" onmouseout="setPointer(this, '#DDDDDD',3)" style="cursor:hand">
       <img src="../images/menu/sms.gif" WIDTH="20" HEIGHT="20" align="absMiddle"><b><font color="#000000"> 转意向客户申请</font></b>
   </TD>

   <TD  width="20%" title="时间加权申请" id="menu_4" onclick="view_menu4()" onmouseover="setPointer(this, '#B3D1FF',4)" onmouseout="setPointer(this, '#DDDDDD',4)" style="cursor:hand">
       <img src="../images/menu/sms.gif" WIDTH="20" HEIGHT="20" align="absMiddle"><b><font color="#000000"> 时间加权申请</font></b>
   </TD>
   <TD  width="20%" title="申请记录" id="menu_5" onclick="view_menu5()" onmouseover="setPointer(this, '#B3D1FF',5)" onmouseout="setPointer(this, '#DDDDDD',5)" style="cursor:hand">
       <img src="../images/menu/sms.gif" WIDTH="20" HEIGHT="20" align="absMiddle"><b><font color="#000000"> 申请记录</font></b>
   </TD>

   </TR>
</TABLE></td>
    	</tr>
    	<tr>
    	<td class="TableData"   colspan=4><iframe name="menu_main" height="400px" width="100%"   border="0" frameborder="0" src="ClientContactList.aspx?id=<%=GetCid()%>"></iframe></td>
    	</tr>

   
       </TABLE>
          <input id="HidCid" runat=server  type="hidden" />
       </div>
    </form>
</body>
</html>
