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

<%@ Register Src="../control/Left.ascx" TagName="Left" TagPrefix="uc1" %>
<!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" />
<title>ETW 国际客户之窗</title>
<link type="text/css" href="images/style.css" rel="stylesheet" />
 <script type="text/javascript" src="../fckeditor/fckeditor.js"></script>  
<link type="text/css" href="images/global.css" rel="stylesheet" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="js/translate.js"></script>
<script type="text/javascript" src="js/Function.Js" ></script>
<script type="text/javascript" src="js/showdiv.js" ></script>
<script type="text/javascript" src="js/addclass.js" ></script>
<script type="text/javascript" src="js/readajax.js" ></script>
<script type="text/javascript" src="js/idajaxall.js" ></script>
<script type="text/javascript">
function showforae(id,language,obj){
	div=document.getElementById(id);
	if(language=="ae"){
		div.className="showaeinfo";
		obj.innerHTML="其他";
		//obj.setAttribute("onclick","showforae('"+id+"','en',this);return false;");
		obj.onclick=function(){ showforae(id,'en',obj); return false; }
	}else if(language=="en"){
		div.className="showeninfo";
		obj.innerHTML="阿拉伯";
		//obj.setAttribute("onclick","showforae('"+id+"','ae',this);return false;");
		obj.onclick=function(){ showforae(id,'ae',obj); return false; }
	}
}
function upaddress(id){   
    var  xx,yy;   
         xx=window.screen.width;   
         yy=window.screen.height;   
         xx=xx/2-250;   
         yy=yy/2-200;   
         window.open("updateaddress.aspx?id="+id+""   ,"ws","width=350,height=100,resizable=no,scrollbars=no,left="+xx+",top="+yy);   
   }  
</script>
    <script type="text/javascript">    
        function $(e) {return document.getElementById(e);} 
    </script>
</head>
<body id="middle3">
<form id="Form1" runat="server">
<div class="top">
  <div class="top_b">
    <div class="top_logo"><img src="images/logo.jpg" alt="etw" /><span>{ 客户之窗 }</span></div>
         <div class="top_tips"><div id="etw_tips"></div></div>
    <div class="search"><a href="index.aspx">首页</a> | <a href="">加入收藏</a> | <a href="contact.aspx">联系我们</a> | <a href="loginout.aspx">退出系统</a></div>
    <div class="search">
          <input type="text" name="search" id="search" class="input" />
          <select id="zhanghu" <%=iszistyle %>>
             <option value="0">子账户</option>
            <asp:Repeater ID="Repeater10" runat="server" >
              <ItemTemplate>
                <option value="<%#Eval("id") %>"><%#Eval("realname")%></option>
               </ItemTemplate>
            </asp:Repeater> 
            </select>
            <select id="language">
             <option value="0">语言</option>
            <asp:Repeater ID="Repeater9" runat="server" >
              <ItemTemplate>
                <option value="<%#Eval("domain") %>"><%#Eval("language") %></option>
               </ItemTemplate>
            </asp:Repeater> 
            </select>
        <a href="#" onclick="ButtonSearch();return false;"><img src="images/btn.jpg" border="0"  class="botn"/></a>
    </div>
  </div>
</div>
<div class="mainbody">
  <div class="left">
    <div class="left_top">
      <div class="ll"><a href="noread_news.aspx">未读询盘</a></div>
      <div class="rr"><a href="update.aspx">更新询盘</a></div>
    </div>
     <uc1:Left ID="Left1" runat="server" />
  </div>
  <div class="right">
    <div class="mainn">
      <div class="main">
        <div class="main_dh"> <span class="float_l"><img src="images/top14.gif" alt="" />询盘中心&gt;&gt;所有询盘>>询盘详细信息</span></div>
        <div class="g-toolbar" >
    <div class="btngrp">
     <ul id="navmenu">
             <li ><a href="javascript:history.go(-1);"><img src="images/fh.gif" alt="" /></a></li>
              <li ><a href="#" onclick="delajax(<%=id %>,<%=page %>,<%=number %>)"><img src="images/del.gif" alt="" /></a></li>
              <li><a href="#"><img src="images/ydd.gif" alt="" /></a>
                    <ul>
                      <li><a href="#">意向客户</a>
                        <ul>
                          <asp:Repeater ID="Repeater6" runat="server" >
                            <ItemTemplate>
                              <li><a href="#" onclick="Intention(<%=id %>,<%=page %>,<%#Eval("id") %>)"><%#Cutname(Eval("id").ToString(), Eval("name").ToString())%></a></li>
                            </ItemTemplate>
                          </asp:Repeater>
                        </ul>
                      </li>
                      <li><%=Customizestr %>
                        <ul >
                          <asp:Repeater ID="Repeater7" runat="server" >
                            <ItemTemplate>
                              <li><a href="#" onclick="Customize(<%=id %>,<%=page %>,<%#Eval("id") %>)"><%#Eval("name") %></a></li>
                            </ItemTemplate>
                          </asp:Repeater>
                        </ul>
                      </li>
                      <li <%=iszistyle %>><a href="#">子账户</a>
                        <ul>
                          <asp:Repeater ID="Repeater8" runat="server" >
                            <ItemTemplate>
                              <li><a href="#" onclick="account(<%=id %>,<%=page %>,<%#Eval("id") %>)"><%#Eval("realname") %></a></li>
                            </ItemTemplate>
                          </asp:Repeater>
                        </ul>
                      </li>
                    </ul>
                  </li>
            </ul> 
    </div>
     <div class="btngrp btngrp-ext" <%=isback %>> 
        <a>当前位置: 第<%=page %>页 第<%=number %>封</a><%=CutUP() %><%=CutNext() %>
     </div>
  </div>
        <div class="xunpan_con">
         <input type="hidden" name="chatid" value="<%=id %>" id="chatid" />
          <%=Cuttitle(lead.definesubject.ToString()) %>
          <ul>
            <li class="xun_tit">主题:</li>
            <li class="xun_con"><span id="titles"><%=lead.title %>  <input type="button" name="btm" value="自定义" onclick="changeinputbox('titles')" /></span></li>
          </ul>
          <ul>
            <li class="xun_tit">EMAIL:</li>
            <li class="xun_con"><%=lead.email %><span><%= Cutren(lead.childuserid.ToString())%> </span></li>
          </ul>
          <ul>
            <li class="xun_tit">联系人:</li>
            <li class="xun_con"><%=lead.contacter%></li>
          </ul>
          <ul>
            <li class="xun_tit">地址:</li>
            <li class="xun_con"><%=CutAddress(lead.address.ToString())%><input id="Button3" type="button" onclick="upaddress(<%=id %>)" value="修改" /></li>
          </ul>
          <ul>
            <li class="xun_tit">时间:</li>
            <li class="xun_con"><%=lead.senddate%></li>
          </ul>
          <ul>
            <li class="xun_tit">来源地址:</li>
            <li class="xun_con">来源IP <%=lead.ip%></li>
          </ul>
          <ul>
            <li class="xun_tit">语言:</li>
            <li class="xun_con"><%=lead.language%></li>
          </ul>
          <ul>
            <li class="xun_tit">询盘内容:</li>
            <li class="xun_con" id="trancon" style="overflow-x:scroll"><%=lead.content%></li>
            <input type="hidden" id="sourcelang" value="<%=Cutkuo(lead.language.ToString()) %>" /> 
          </ul>
          <ul>
             <li class="xun_tit"></li>
             <li class="xun_con">  <a href="#" class="LinkETW" onclick="checktranslate(event);return false;"  >软件翻译</a> 
             <asp:LinkButton ID="LinkButton2" runat="server" CssClass="LinkETW" OnClick="LinkButton2_Click">转ETW翻译</asp:LinkButton>
             <%=CutAE() %>
     </li>
          </ul>
          <ul>
           <li class="xun_tit"></li>
           <li class="xun_con"> <span id="resulttrans"></span><br /></li>
          </ul>
        </div>
        <table class="table1">
         <asp:Repeater ID="Repeater1" runat="server" >
              <ItemTemplate>
              <tr>
                <td rowspan="2" class="wsp"><%#Container.ItemIndex + 1 %>楼</td>
                <td class="wsp">原文：</td>
                <td>&nbsp;<%# Fun.Decode(Eval("source_content").ToString())%><br /><%#CutFUjian(Eval("fujian").ToString(),"原附件")%><span >转ETW:<%#Fun.GetUnixTime(Eval("receivetime").ToString())%></span></td>
             </tr>
             <tr>
                <td class="wsp" >译文：</td>
                <td>&nbsp;<%# Fun.Decode(Eval("trans_content").ToString())%><br /><%#CutFUjian(Eval("trans_fujian").ToString(), "翻译附件")%><span ><%#Cuttips(Eval("achivetime").ToString())%><%#Fun.GetUnixTime(Eval("achivetime").ToString())%></span></td>
             </tr>
           </ItemTemplate>
          </asp:Repeater> 
        </table>
        <table width="100%">
          <tr>
           <td rowspan="2">翻译内容：</td>
           <td>
           <script type="text/javascript" language="JavaScript">
			window.onload = function()
				{
				var sBasePath = "../fckeditor/"
                var oFCKeditor = new FCKeditor('contentstr') ;
                oFCKeditor.BasePath	= sBasePath ;
                oFCKeditor.ToolbarSet="Basic";
                oFCKeditor.Width = '90%' ;
                oFCKeditor.Height = '220' ;	
                oFCKeditor.ReplaceTextarea() ;
               }
           </script>
            <textarea name="contentstr" rows="1" cols="1" style="display: none" id="contentstr" runat="server"></textarea>
             </td>
         </tr>
         <tr>
            <td>添加附件: <INPUT type="file" class="tex" size="30" NAME="filelogo" id="FileUpload1" runat="server"  > (上传多个文件时请压缩上传,文件不超过5M)</td>    
         </tr>
         <tr><td></td><td>
             <asp:Button ID="Button1" runat="server" Text="转ETW国际翻译" OnClick="Button1_Click" /><asp:Button ID="Button2"
                 runat="server" Text="取消" OnClick="Button2_Click" /></td></tr>
        </table>
        <div class="main_xp"></div>
        <div class="copyright"> Copy Rright © 2008-2010 ETW International </div>
      </div>
    </div>
  </div>
</div>
</form>
<script type="text/javascript" src="js/tab.js"></script>
</body>
</html>
