<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="qqkefuedit.aspx.cs"
    Inherits="FangPage.Admin.qqkefuedit" %>

<%@ Register Assembly="FangPage.Control" Namespace="FangPage.Control" TagPrefix="cc1" %>
<!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>编辑客服QQ</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="styles/style.css" type="text/css" rel="stylesheet">
    <style type="text/css">
    <!--
    body {
	    background-image: url(images/main_bg.gif);
	    background-repeat: repeat-x;
	    background-color: #CEE7FC;
    }
    -->
    </style>
    <script src="js/PCASClass.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
    function SelectColor(what){
	var dEL = document.all("d_"+what);
	var sEL = document.all("s_"+what);
	var url = "dialog/selcolor.htm?color="+encodeURIComponent(dEL.value);
	var arr = showModalDialog(url,window,"dialogWidth:200px;dialogHeight:280px;help:no;scroll:no;status:no");
	if (arr) {
		dEL.value=arr;
		sEL.style.backgroundColor=arr;
	     }
    }
    
    function SelectFace(){
	var url = "qqface.aspx";
	var arr = showModalDialog(url,window,"dialogWidth:400px;dialogHeight:420px;help:no;scroll:no;status:no");
	if (arr) {
		      document.getElementById("img").src="<%=webpath%>"+arr;
		      document.getElementById("face").value=arr;
	   }
    }
    </script>

    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5">
    <form id="form1" runat="server">
    <div>
        <table class="TdBg" cellspacing="1" cellpadding="0" width="100%" height="100" border="0">
            <tbody>
                <tr valign="middle">
                    <td class="Tdimg" style="padding-left: 10px" height="28" colspan="2">
                        <img height="18" src="images/bbs_find.gif" width="18" align="absMiddle" border="0">
                        <strong>编辑客服QQ</strong>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                        显示顺序：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        &nbsp;
                        <cc1:TextBox ID="displayorder" runat="server"></cc1:TextBox>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                        客服QQ号码：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        &nbsp;
                        <cc1:TextBox ID="qq" runat="server"></cc1:TextBox>&nbsp;&nbsp;>><a href="http://imis.qq.com/webpresence/code.shtml"
                            target="_blank">申请客服QQ代码</a>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                        客服QQ名称：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        &nbsp;
                        <cc1:TextBox ID="qqname" runat="server"></cc1:TextBox>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                        名称颜色：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        &nbsp;&nbsp;<input style="width: 62px" type="text" id="d_color" size="7" name="d_color"
                            value="" runat="server" /><img border="0" src="images/rect.gif" width="18" style="cursor: hand"
                                id="s_color" onclick="SelectColor('color')" align="absmiddle" />
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                        客服QQ头像：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        &nbsp;&nbsp;<img id="img" src="images/none.gif" border="0" />&nbsp;&nbsp;<img border="0"
                            src="images/rectimg.gif" width="18" style="cursor: hand" id="Img1" onclick="SelectFace()"
                            align="absmiddle" />
                        <input type="hidden" id="face" name="face" value="" runat="server" />
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                        代码：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        &nbsp;&nbsp;<textarea id="code" name="code" runat="server" cols="40" rows="4"></textarea>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td height="35" style="width: 110px">
                        &nbsp;
                    </td>
                    <td style="padding-left: 10px">
                        &nbsp;
                        <cc1:Button ID="Button1" runat="server" OnClick="Button1_Click" />&nbsp;&nbsp;
                    <button class="ManagerButton" type="button" onclick="javascript:window.location.href='qqkefumanage.aspx';">
                                    <img src="images/arrow_undo.gif" />返 回</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>

    <script language="javascript" type="text/javascript">
       document.getElementById("img").src="<%=webpath%>"+document.getElementById("face").value;
	   document.getElementById("s_color").style.backgroundColor=document.getElementById("d_color").value;
    </script>

</body>
</html>
