<%@ Page Language="C#" AutoEventWireup="True" MasterPageFile="~/Admin/MasterPage.master" Inherits="Kesion.NET.WebSite.Course.Admin_Course_KS_CsEnterPriseZS" Codebehind="KS.CsEnterPriseZS.aspx.cs" %>
<%@ Import Namespace="Kesion.Course"%>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.APPCode" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="Kesion.Publics" %>

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="Server">
    <script type="text/javascript">
        function GetMyIds() {
            var sid = null;
            for (var i = 0; i < document.getElementsByName("ids").length; i++) {
                var KS = document.getElementsByName("ids")[i];
                if (KS.checked == true) {
                    if (sid == null)
                        sid = KS.value;
                    else
                        sid += "," + KS.value;
                }
            }
            return sid;
        }
        function doDelete() {
            var sid = GetMyIds();
            if (sid == null) {
                KesionJS.Alert("请选择要删除的机构");
            return false;
        } else {
                KesionJS.Confirm("确定删除选的机构?", 'location.href = "<%=KSCMS.GetInstallDir()+MyCache.GetCacheConfig(4)%>/EnterPrise/KS.CsEnterPriseZS.aspx?action=del&page=<%=CurrPage%>&ID=' + sid + "\";", "");
        }
    }

        function show() {
            var key = jQuery("#<%=this.RbVerify.ClientID%> :radio[checked]").val();
            if (key == 2) {
                $("#pingtai").show();
            
            } else {
                $("#pingtai").hide();
            
            }
        }
        $(document).ready(function () {
            show();
        });
        function SetDate() {
            var today = new Date();
            if ($("#showdate").is(":hidden")) {
                $("#showdate").show();
                $('#<%=TxtBeginDate.ClientID%>').val(today.getFullYear() + '-' + (today.getMonth() + 1) + '-01');
                    $('#<%=TxtEndDate.ClientID%>').val(today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate());
                }
                else {
                    $("#showdate").hide();
                    $('#<%=TxtBeginDate.ClientID%>').val('');
        $('#<%=TxtEndDate.ClientID%>').val('');
                }
            }
            function keyWordFocus() {
                if (jQuery("#<%=this.KeyWord.ClientID %>").val() == '请输入关键字！') {
        jQuery("#<%=this.KeyWord.ClientID %>").val('');
    }
}
function keyWordBlur() {
    if (jQuery("#<%=this.KeyWord.ClientID %>").val() == '') {
                jQuery("#<%=this.KeyWord.ClientID %>").val('请输入关键字！');
            }
        }

    </script>
    <asp:Panel ID="ListPanel" runat="server" Width="100%">
        <style>
            .categorynav {
                line-height: 25px;
                width: 97%;
                margin: 0 auto;
                margin-bottom: 10px;
                border: 1px solid #DEEFFA;
                background-color: #F7FBFE;
                padding: 5px 0px 5px 10px;
                height: 100%;
                overflow: hidden;
            }

            ul, li {
                padding: 0px;
                margin: 0px;
            }

            .categorynav li {
                width: 160px;
                float: left;
            }
        </style>
        <div class="listedit">
            <ul>
                
               <div class="floatLeft allCheck">
                <input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);"/><label for="chkall">全选</label>
            </div>
                    <a href="javascript:;" onclick="doDelete()" class="button">删除</a>
                    <asp:LinkButton ID="LookBtn" runat="server" OnClick="LookBtn_Click" CssClass="button">查看机构实名审核</asp:LinkButton>

            </ul>
        </div>
  <div class="content-area mt20">    
        <div class="myTitle">
            机构基本资料<!--<asp:Label ID="LabNav" runat="server"></asp:Label>-->
        </div>
		<div class="quickSearch clearfix">
            <div class="SearchBox fl">
                <asp:DropDownList ID="DropDownList1" runat="server" style="margin-right:8px;">
                    <asp:ListItem Value="" Selected>不限</asp:ListItem>
                    <asp:ListItem Value="0">免费</asp:ListItem>
                </asp:DropDownList>
    
                <asp:DropDownList ID="Condition" runat="server" style="margin-right:8px;">
                    <asp:ListItem Value="1">企业名称</asp:ListItem>
                    <asp:ListItem Value="2">申请人</asp:ListItem>
                    <asp:ListItem Value="3">申请用户</asp:ListItem>
                    <asp:ListItem Value="4">联系电话</asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox onfocus="keyWordFocus();" onblur="keyWordBlur();" Style="color: #ccc" Text="请输入关键字！" CssClass="textbox" ID="KeyWord" runat="server" Width="180px"></asp:TextBox>
    
                <b onclick="SetDate()" class="link-color">日期范围？</b>
                <span id="showdate" <%if (this.TxtBeginDate.Text == "")
                                      { %>
                    style="display: none" <%} %>>
                    <asp:TextBox ID="TxtBeginDate" placeholder="格式：YYYY-MM-DD" Width="150px" runat="server" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" CssClass="textbox Wdate"></asp:TextBox>至
                   <asp:TextBox ID="TxtEndDate" placeholder="格式：YYYY-MM-DD" Width="150px" runat="server" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" CssClass="textbox Wdate"></asp:TextBox>
                </span>
                <asp:Button ID="Button1" runat="server" Text="开始搜索" CssClass="button" OnClick="Button1_Click" />
            </div>
            <div class="property">
                <div class="name button ml15">筛选</div>
                <div class="propertyBox">
                	<ul class="tabs clearfix">
                        <span class="screen fl">审核状态：</span>
                        <li <%=KSCMS.S("verify")==""?" class='active'":string.Empty %>><a href="KS.CsEnterPriseZS.Aspx"><span>所有机构列表</span></a></li>
                        <%if (ep.GetEpConfig("Setting", 10) == "1")  //是否开启人证
                          { %>
                        <li <%=KSCMS.S("verify")=="1"?" class='active'":string.Empty %>><a href="KS.CsEnterPriseZS.Aspx?verify=1"><span>已认证</span></a></li>
                        <li <%=KSCMS.S("verify")=="0"?" class='active'":string.Empty %>><a href="KS.CsEnterPriseZS.Aspx?verify=0"><span>未认证</span></a></li>
                        <%} %>
                        <li <%=KSCMS.S("verify")=="2"?" class='active'":string.Empty %>><a href="KS.CsEnterPriseZS.Aspx?verify=2"><span>机构VIP</span></a></li>
                        <li <%=KSCMS.S("verify")=="3"?" class='active'":string.Empty %>><a href="KS.CsEnterPriseZS.Aspx?verify=3"><span>免费</span></a></li>
                        <li <%=KSCMS.S("verify")=="4"?" class='active'":string.Empty %>><a href="KS.CsEnterPriseZS.Aspx?verify=4"><span>已审核</span></a></li>
                        <li <%=KSCMS.S("verify")=="5"?" class='active'":string.Empty %>><a href="KS.CsEnterPriseZS.Aspx?verify=5"><span>未审核</span></a></li>
                        <%if (CommonJsonCache.CheckYunAPPHasAllow("plus.weixin"))
                            { %>
                        <li <%=KSCMS.S("verify") == "6" ? " class='active'" : string.Empty %>><a href="KS.CsEnterPriseZS.Aspx?verify=6"><span>已开启公众号</span></a></li>
                        <%} %>
                    </ul>
                </div>
            </div>
        </div>
        <div class="manageList">
        	<ul>
				<asp:Repeater ID="Repeater1" runat="server"  >
				<ItemTemplate>
            	<li>
                	<div class="input"><input type="checkbox" name="ids" id="ids" value="<%#Eval("ID") %>"></div>
                    <div class="listImg">
                    	<img src="<%#Eval("logo") %>" onerror="this.src='../../admin/images/nopic_200_200.png'">
                    </div>
                    <div class="listInfo">
                   		<div class="listTitle">
                        	<div class="operating">
                               <a href="#" class="yestext"><%#GetStatus(Utils.StrToInt(Eval("status").ToString())) %></a>
                               <a href="<%#EnterPrise.GetEnterUrl(Utils.StrToInt(Eval("UserId").ToString()),"index")%>" target="_blank">预览</a>
                               <a href="?action=modify&ID=<%#Eval("ID") %>">编辑</a>                              
							   
                               <a href="?action=del&ID=<%#Eval("ID") %>" onclick="return(confirm('您确定删除当前企业以及该企业相应的课程和求职信息吗？'))">删除</a>    
                                
                        	</div>
                        	<div class="title">
								<%#Eval("CompanyName") %>
                                <span>
                                    <%# Utils.StrToInt(Eval("free"))==0?"<font class=green></font>":" <a href=\""+KSCMS.GetInstallDir()+MyCache.GetCacheConfig(4)+"/EnterPrise/KS.CsVIPDetail.aspx?free="+GetPower(Utils.StrToInt(Eval("free")))+"&username="+Eval("username")+"\"><img src='/sysimg/star/"+ GetPower(Utils.StrToInt(Eval("free"))).Replace(" ","")+".png' align='texttop' height='14' style='margin:3px 0px 0px 10px;' /></a>"%>
                                </span>
                        	</div>
						</div>
                        <div class="info"> 
                            <div class="rinfo">
                                <b class="num">
                                	<a href="<%#KSCMS.GetInstallDir()+MyCache.GetCacheConfig(4) %>/EnterPrise/KS.EnterPriseScore.aspx?username=<%#Eval("username") %>" title="查看积分明细"><%#Eval("CreditScore") %></a>
                                </b>
                                <em>信誉积分</em>
                            </div>
                            <span>申请用户：<%# Eval("UserName") %></span><span>联系人：<%# Eval("ContactMan") %></span><span>申请时间：<%#Eval("adddate").ToString()==string.Empty?"":Convert.ToDateTime(Eval("adddate").ToString()).ToString("yyyy-MM-dd")%></span>
                            <span>可用短信：<%#Eval("DuanXinTiaoshu") %>条(<a href="<%# KSCMS.GetInstallDir()+MyCache.GetCacheConfig(4) %>/Course/KS.TcSmsLog.aspx?username=<%#Eval("username") %>">发送记录</a>)</span>
                            <%if (CommonJsonCache.CheckYunAPPHasAllow("plus.weixin")){ %>
                            <span><%# Eval("wxverify").ToString()=="1"?"粉丝数量("+GetFansNum( Utils.StrToInt(Eval("userid")))+")":"" %></span>
                            <%} %>
                            <div class="mt20">
                                <a class="button mr15" title="升级VIP" onclick='parent.openWin("给用户充值VIP","EnterPrise/KS.CsEpAddVip.aspx?userID=<%#Eval("userID") %>&free=<%#Utils.StrToInt(Eval("free"))%>",true,780,480);return false'>升级VIP</a>
                                <a class="button" title="充值短信" onclick='parent.openWin("给用户充值短信","Course/KS.TcSmsAdd.aspx?userID=<%#Eval("userID") %>",true,720,320);return false'>充值短信</a>
                            </div>
                          	<%if (ep.GetEpConfig("Setting", 10) == "1")  //是否需要资质认证
                             { %>
                            <span>
                            <%#GetRzInfo(Utils.StrToInt(Eval("id").ToString()),Utils.StrToInt(Eval("verify").ToString()),Utils.StrToInt(Eval("RzYearLimit").ToString()),Utils.StrToInt(Eval("RzStatus").ToString())) %>
                          	</span> <%} %>
                        </div> 
                    </div>
                </li>
	</ItemTemplate>
	<FooterTemplate>
  				<div class="empty" style="display:<%# bool.Parse((Repeater1.Items.Count==0).ToString())?"":"none"%>">没有添加任何企业</div>
   	</FooterTemplate>
    </asp:Repeater>           
         	</ul>  
         </div> 	
         <script>
		 	$(function(){
				$(".manageList li:first").addClass("noBorderTop");
			});
		 </script>
         <KS:KSGV ID="List" runat="server" AutoGenerateColumns="False" EmptyDataText="暂时没有申请记录!" PagerType="CustomNumeric" Width="99%" CssClass="CTable" GridLines="None" OnRowDataBound="List_RowDataBound" OnRowCommand="List_RowCommand" OnRowCreated="List_RowCreated">
            <Columns>
                <asp:TemplateField HeaderText="&lt;input type='checkbox' name='chkall' id='chkall' onClick='CheckAll(this.form);'/&gt;">
                    <ItemStyle HorizontalAlign="Center" Height="30px" Width="30px" />
                    <ItemTemplate>
                        <input type="checkbox" name="ids" id="ids" value="<%#Eval("id") %>" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="审核">
                    <ItemStyle Width="60px" HorizontalAlign="Center" />
                    <ItemTemplate>
                        <%#GetStatus(Utils.StrToInt(Eval("status").ToString())) %>
                        <%-- <a href="?action=status&ID=<%#Eval("ID")%>" <%# Convert.ToString(Eval("status"))=="0"?" class='no' title='未审核'":"class='ok' title='已审核'" %>></a>--%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="企业名称">
                    <ItemStyle  />
                    <ItemTemplate>
                       
                            <a href="<%#EnterPrise.GetEnterUrl(Utils.StrToInt(Eval("UserId").ToString()),"index")%>" target="_blank"><span class="doc_1"></span></a>
                            <a href="KS.CsEnterPriseAll.aspx?id=<%#Eval("ID")%>&Type=1"  title="点击查看所有资料"><%# Eval("CompanyName") %></a>
                         
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="实名认证详情">
                    <ItemStyle Width="120px" HorizontalAlign="Left" />
                    <ItemTemplate>
                        <%#GetRzInfo(Utils.StrToInt(Eval("id").ToString()),Utils.StrToInt(Eval("verify").ToString()),Utils.StrToInt(Eval("RzYearLimit").ToString()),Utils.StrToInt(Eval("RzStatus").ToString())) %>
                        
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="VIP信息">
                    <ItemStyle Width="160"  HorizontalAlign="Center"/>
                    <ItemTemplate>
                   <span>
                    <%# Utils.StrToInt(Eval("free"))==0?"<font class=green>免费</font>":" <p><a href=\""+KSCMS.GetInstallDir()+MyCache.GetCacheConfig(4)+"/EnterPrise/KS.CsVIPDetail.aspx?free="+GetPower(Utils.StrToInt(Eval("free")))+"&username="+Eval("username")+"\">VIP等级：<font color=red>"+ GetPower(Utils.StrToInt(Eval("free")))+"</font></a></p><div class=\"divnone\">到期："+Convert.ToDateTime(Eval("EPFreeEnddate").ToString()).ToString("yyyy-MM-dd")+"</p>"%>
                        </span>   
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="升级VIP">
                    <ItemStyle Width="60px" HorizontalAlign="Center" />
                    <ItemTemplate>
                           <a  class="money" title="升级VIP" onclick='parent.openWin("给用户充值VIP","EnterPrise/KS.CsEpAddVip.aspx?userID=<%#Eval("userID") %>&free=<%#Utils.StrToInt(Eval("free"))%>",true,600,300);return false'>充值VIP</a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="信誉积分">
                    <ItemStyle Width="60px" HorizontalAlign="Center" />
                    <ItemTemplate>
                        <a href="<%#KSCMS.GetInstallDir()+MyCache.GetCacheConfig(4) %>/EnterPrise/KS.EnterPriseScore.aspx?username=<%#Eval("username") %>" title="查看积分明细"><%#Eval("CreditScore") %></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="申请用户">
                    <ItemStyle Width="50px" HorizontalAlign="Center" />
                    <ItemTemplate>
                        <p><%# Eval("UserName") %></p>
                    </ItemTemplate>
                </asp:TemplateField>
				<asp:TemplateField HeaderText="设置课程vip价格">
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <ItemTemplate>
                        <div class="tips" style="text-align: center">
                           <%#Utils.StrToInt(Eval("Issetprice").ToString(),0)==0?"关闭":"开启"%>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="联系人">
                    <ItemStyle Width="50px" HorizontalAlign="Center" />
                    <ItemTemplate>
                        <p><%# Eval("ContactMan") %></p>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="申请时间">
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <ItemTemplate> 
                        <div class="tips" style="text-align: center">
                             <%#Eval("adddate").ToString()==string.Empty?"":Convert.ToDateTime(Eval("adddate").ToString()).ToString("yyyy-MM-dd")%>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField> 
                <asp:TemplateField HeaderText="编辑">
                    <ItemStyle Width="20px" HorizontalAlign="Center" />
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="edit1" CssClass="edit" CommandArgument='<%# Eval("ID") %>' CommandName="edit1" ToolTip="编辑" >编辑</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemStyle Width="20px" HorizontalAlign="Center"/>
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="delet" CssClass="delete"  CommandArgument='<%# Eval("ID") %>' CommandName="del" ToolTip="删除">删除</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="CTitle" />
            <EmptyDataRowStyle CssClass="emptycss" />
        </KS:KSGV>
        <KS:Page ID="Page1" runat="server" />
        <asp:Panel ID="Panel2" runat="server" Height="30px" Width="100%">
            <br />
            <script type="text/javascript">
                showtips('<span class="state"><strong>操作说明：</strong><br /></span><font class=redFont>审核开启并且已认证，单位可以发布课程，否则功能屏蔽。<br>职位开启并且已认证，单位可以发布招聘，否则功能屏蔽。<br>已过期用户：登录后自动变成免费用户。</font>');
            </script>
        </asp:Panel>
    </asp:Panel>
<div>
    <asp:Panel ID="AddPanel" runat="server" Width="100%">

        <!--<KS:TopNav ID="TopNav1" runat="server" Text="编辑企业资料" />-->
  <div class="content-area mt20"> 
        <div class="tab-page" id="CsEnterPriseZSPanel">
            <script type="text/javascript">
                var tabPane1 = new WebFXTabPane(document.getElementById("CsEnterPriseZSPanel"), 1)
            </script>
            <div class="tab-page" id="tab0">
                <h2 class="tab">基本信息</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab0"));
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><font color="red">*</font><b>公司名称：</b></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" runat="server" ID="CompanyName" size="30" MaxLength="200" />
                            <span class="msgtips">请填写你在工商局注册登记的名称。</span></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 150px"><font color="red">*</font><b>Logo地址：</b></td>
                        <td class="righttd"><asp:TextBox ID="logo" CssClass="textbox" runat="server" Width="300px"></asp:TextBox>
                            &nbsp;<input type="button" class="button" onclick="SelectFiles('<%=this.logo.ClientID %>',0);" value="选择Logo...">
                            <div class="ar_r_t" style="margin-top:10px;">
                                <div class="ar_l_t">
                                    <div class="ar_r_b">
                                        <div class="ar_l_b">
                                            <img id="show<%=logo.ClientID %>"  src="<%=avatar %>" style="height:150px;" onerror="this.src='../../sysimg/nopic.gif'"/>
                                        </div>
                                    </div>
                                </div>
                            </div> 
                        </td>
                    </tr>
                     <tr>
                        <td class="lefttd" height="30" align="right" style="width: 150px"><font color="red">*</font><b>公司副Logo地址：</b></td>
                        <td class="righttd"><asp:TextBox ID="dlogo" CssClass="textbox" runat="server" Width="300px"></asp:TextBox>
                            &nbsp;<input type="button" class="button" onclick="SelectFiles('<%=this.dlogo.ClientID%>',0);" value="选择图片" />
                            <div class="ar_r_t" style="margin-top:10px;">
                                <div class="ar_l_t">
                                    <div class="ar_r_b">
                                        <div class="ar_l_b">
                                            <img id="show<%=dlogo.ClientID%>" src="<%=davatar %>" style="height: 150px;" onerror="this.src='../../sysimg/nopic.gif'"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>营业热照：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" CssClass="textbox" ID="BusinessLicense" size="30" MaxLength="50" />
                            <span class="msgtips">填写营业执照号码。</span></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>企业法人：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="LegalPeople" size="30" MaxLength="50" />
                            <span class="msgtips">填写公司的法人或是主要负责人。</span></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>公司地址：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="Address" size="30" MaxLength="50" />
                            <span class="msgtips">填写营业执照上注册的地址</span></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>注册资金：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" ID="RegisteredCapital" class="textbox" />
                            <span class="msgtips">请选择输入贵公司的注册资金，如100万元。</span></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>经营范围：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" ID="Business" class="textbox" TextMode="MultiLine" Style="width: 80%; height: 100px" /><span class="msgtips">请填写营业执照上的经营范围</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>成立日期：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" ID="Foundation" class="textbox" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" />
                            <span class="msgtips">请填写营业执照上的成立日期</span></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>公司规模：</b></td>
                        <td class="righttd">
                            <asp:DropDownList ID="DropDownList5" runat="server">
                                <asp:ListItem Value="1-20人" Selected>1-20人</asp:ListItem>
                                <asp:ListItem Value="51-100人">51-100人</asp:ListItem>
                                <asp:ListItem Value="101-200人">101-200人</asp:ListItem>
                                <asp:ListItem Value="201-500人">201-500人</asp:ListItem>
                                <asp:ListItem Value="501-1000人">501-1000人</asp:ListItem>
                                <asp:ListItem Value="1000人以上">1000人以上</asp:ListItem>
                            </asp:DropDownList>
                            <span class="msgtips">填选择公司的员工人数</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>所在地区：</b></td>
                        <td class="righttd">
                            <script src="../../plus/area.aspx?pid=<%=Provinceid %>&cityid=<%=cityid %>&countyid=<%=CountyId %>"></script>
                            <%if (Utils.StrToInt(epa.GetEpAgentConfig("EpAgentStatus")) == 1){%>
                            <br />
                            <asp:RadioButtonList ID="RdbDirectorStatus" runat="server" RepeatDirection="Horizontal" >
                                <asp:ListItem Value="0" >无</asp:ListItem>
                                <asp:ListItem Value="1">省级指导站</asp:ListItem>
                                <asp:ListItem Value="2">市级指导站 </asp:ListItem>
                                <asp:ListItem Value="3">县级指导站 </asp:ListItem>
                            </asp:RadioButtonList>
                            <%} %>
                            <span class="msgtips">选择企业所在的省份和城市。</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>公司行业：</b></td>
                        <td class="righttd">
                            <script src="/plus/Industry.aspx?IndustryID=<%=IndustryID %>&CatetoryID=<%=CatetoryID %>&SubCatetoryID=<%=SubCatetoryID %>&Type=0"></script>
                            <span class="msgtips">填写公司所属的行业。</span>
                        </td>
                    </tr>
                    <script type="text/javascript">
                        function map() {
                            window.open("http://api.map.baidu.com/lbsapi/getpoint/index.html", "坐标获取","width=960px,height=700px;");
                        }
                    </script>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><font color="red">*</font><b>电子地图：</b></td>
                        <td class="righttd">经纬度：<asp:TextBox class="textbox" runat="server" MaxLength="255" name='mapID' ID='mapID' />
                            <a href='javascript:;' onclick="map()" class="link-color">
                                <img src='/admin/images/edit_add.gif' align='absmiddle' border='0'>添加电子地图坐标</a>
                        
                            &nbsp;&nbsp;<span class="msgtips">请选择贵公司所在的位置。</span>
                        </td>
                    </tr>

                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><font color="red">*</font><b>联 系 人：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="ContactMan" size="30" MaxLength="50" /><span class="msgtips">请正确填写业务联系人的姓名。</span></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>手机号码：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="Mobile" value="" size="30" MaxLength="50" />
                            
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><font color="red">*</font><b>联系电话：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="telephone" value="" size="30" MaxLength="50" />
                           <span class="msgtips">带区号,公司办公电话，用于业务联系！</span></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>邮政编码：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="ZipCode" value="" size="10" MaxLength="6" />
                            <span class="msgtips">请填写邮政编码。</span> </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>QQ号码：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="qq" size="10" MaxLength="50" />
                            <span class="msgtips">方便业务联系请填写联系QQ。</span></td>
                    </tr>


                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>传真号码：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="Fax" size="30" MaxLength="50" />
                            <span class="msgtips">公司的传真号码。</span></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>电子邮箱：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="Email" size="30" MaxLength="50" /></td>
                    </tr>
                    <tr style="display:none">
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>公司网站：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="WebUrl" size="30" MaxLength="50" />
                            <span class="msgtips">填写你公司的网址。</span></td>
                    </tr>
					  <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>是否开启课程VIP设置：</b></td>
                        <td class="righttd">


                            <asp:RadioButtonList ID="IsSetPrice" runat="server" RepeatDirection="Horizontal" onclick="show()">
                                <asp:ListItem Value="0" Selected>关闭</asp:ListItem>
                                <asp:ListItem Value="1">开启</asp:ListItem>
                            </asp:RadioButtonList>

                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>审核：</b></td>
                        <td class="righttd">


                            <asp:RadioButtonList ID="RbVerify" runat="server" RepeatDirection="Horizontal" onclick="show()">
                                <asp:ListItem Value="0" Selected>未审核</asp:ListItem>
                                <asp:ListItem Value="1">已审核</asp:ListItem>
                                <asp:ListItem Value="2">审核不通过</asp:ListItem>

                            </asp:RadioButtonList>

                        </td>
                    </tr>
                    <tbody id="pingtai">
                        <tr>
                            <td align="right" class="lefttd" height="30"><strong>备注：</strong></td>
                            <td class="righttd">
                                <asp:TextBox ID="TxtRemark" TextMode="MultiLine" Width="100%" Height="200px" runat="server"></asp:TextBox>

                                <% Kesion.APPCode.EditorAPI.EchoEditor("editor", this.TxtRemark.ClientID, "Basic");%>

                            </td>
                        </tr>

                    </tbody>
                </table>

            </div>

            <div class="tab-page" id="tab1">
                <h2 class="tab">机构介绍</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab1"));
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">

                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>简要介绍：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" ID="introduce" class="textbox" TextMode="MultiLine" Style="width: 80%; height:100px" />
                           </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>企业特色：</b></td>

                        <td class="righttd">
                            <asp:TextBox ID="Characteristic" class="textbox" TextMode="MultiLine"  Style="width: 80%; height:100px" runat="server"></asp:TextBox>

                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>详细介绍：</b></td>

                        <td class="righttd">
                            <asp:TextBox ID="Details" TextMode="MultiLine" Width="100%" Height="500px" runat="server"></asp:TextBox>
                            <% Kesion.APPCode.EditorAPI.EchoEditor("editor", this.Details.ClientID, "Common");%>
                        </td>
                    </tr>
                </table>
            </div>

            <div class="tab-page" id="tab3">
                <h2 class="tab">银行账户信息</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab3"));
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">

                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>开户银行：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="BankAccount" size="30" MaxLength="50" /></td>
                    </tr>

                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>开户银行支行名称：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="branch" size="30" MaxLength="50" /></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>银行账号：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="AccountNumber" size="30" MaxLength="50" />
                            <span class="msgtips">公司银行帐户，以方便放在您的联系资料中。</span></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>支付宝：</b></td>
                        <td class="righttd">
                            <asp:TextBox runat="server" class="textbox" ID="Alipay" size="30" MaxLength="50" />
                            <span class="msgtips">公司银行帐户，以方便放在您的联系资料中。</span></td>
                    </tr>
                </table>

            </div>

            <%if( Utils.IsBuyYunServer("yunvideo")=="2"){ %>
            <div class="tab-page" id="online">
                <h2 class="tab">视频接口设置的</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("online"));

                    function showonline() {

                        var checkrad = jQuery("#<%=this.RadioButtonList1.ClientID %> :radio[checked]").val();
                          if (checkrad == 1) {
                              $("#onlineinfo").show();

                          }
                          else {
                              $("#onlineinfo").hide();

                          }

                    }
                    function showlive() {

                        var checkrad = jQuery("#<%=this.RadioButtonList2.ClientID %> :radio[checked]").val();
                          if (checkrad == 1) {
                              $("#liveinfo").show();

                          }
                          else {
                              $("#liveinfo").hide();

                          }

                      }
                    jQuery(document).ready(function() {
                        showonline();
                        showlive();
                    });
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                        <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>是否开启点播的视频设置：</b></td>
                        <td class="righttd">
                            
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" onclick="showonline()" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Selected>是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">如果是开启的话，那么就是点播视频单独有机构第三方的接口信息，如果不的话，那么机构的点播视频那边只能跟你平台公用第三方接口</span>
                           </td>

                        </tr>
                    <tbody id="onlineinfo">
                     <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>点播课程的保利威视视频接口设置：</b></td>
                        <td class="righttd" style="line-height:45px;">
                            

                           保利威视账户：<asp:TextBox runat="server" class="textbox" ID="TxtOnlineUserName"  Width="150px" />
                              <br />
                           保利威视密码：<asp:TextBox runat="server" class="textbox" ID="TxtOnlinePsw"  Width="150px" />
                              <br />
                           保利威视点播API的writetoken：<asp:TextBox runat="server" class="textbox" ID="TxtOnlineWritetoken"   />
                              <br />
                           保利威视点播API的readtoken：<asp:TextBox runat="server" class="textbox" ID="TxtOnlineReadtoken"  />
                              <br />
                            WEB授权验证secretkey：<asp:TextBox runat="server" class="textbox" ID="TxtOnlineSecretkey" Width="100px"  />
                              <br />
                           保利威视点播API的userid：<asp:TextBox runat="server" class="textbox" ID="TxtOnlineUserid" Width="100px"  />
                              <br />
                        </td>
                    </tr>
                 </tbody>

                         <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>是否开启直播的视频设置：</b></td>
                        <td class="righttd">
                            
                            <asp:RadioButtonList ID="RadioButtonList2" runat="server" onclick="showlive()" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Selected>是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">如果是开启的话，那么就是直播单独有机构第三方的接口信息，如果不的话，那么机构的直播视频那边只能跟你平台公用第三方接口</span>
                           </td>

                        </tr>
                    <tbody id="liveinfo">
                     <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>直播课程的保利威视视频接口设置：</b></td>
                        <td class="righttd" style="line-height:45px;">
                            

                           保利威视账户：<asp:TextBox runat="server" class="textbox" ID="TxtLiveUserName"  Width="150px" />
                              <br />
                           保利威视密码：<asp:TextBox runat="server" class="textbox" ID="TxtLivePsw"  Width="150px" />
                              <br />
                           保利威视直播API的APPID：<asp:TextBox runat="server" class="textbox" ID="TxtLiveAppID"   />
                              <br />
                           保利威视直播API的appSecret：<asp:TextBox runat="server" class="textbox" ID="TxtLiveAppSecret"  />
                         
                           保利威视直播API的userId：<asp:TextBox runat="server" class="textbox" ID="TxtLiveUserid" Width="100px"  />
                              <br />
                        </td>
                    </tr>
                    </tbody>
                 </table>
             </div>
            <%} %>
        </div>
        <div style="clear:both;text-align:center">
        	<KS:Foot ID="Foot1" runat="server" OnSubmit="Foot1_Submit" />
        </div>
    </asp:Panel>
  </div>  
</asp:Content>
