<%@ Page Language="C#" AutoEventWireup="true" Inherits="MyITJob.Company_reg_Basemeans" Codebehind="reg_Basemeans.aspx.cs" %>
<%@ Register TagPrefix="ascx" TagName="PageFooter" Src="~/ascx/PageFooter.ascx" %>
<%@ Register TagPrefix="ascx" TagName="LeftPage" Src="~/Company/LeftDH.ascx" %>
<%@ Register TagPrefix="ascx" TagName="PageTop2" Src="~/ascx/PageTop2.ascx" %>
<!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 runat="server">
    <title><%=Application["PageTitle"]%> - 单位基本资料注册</title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <link href="../images/style.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="/js/getposition.js" type="text/javascript"></script>
    <script language="JavaScript" src="/js/GetProvince.js" type="text/javascript"></script>
    <script language="javascript" src="/js/searchjs.js" type="text/javascript"></script>
    <script src="../js/My97Date/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3">

    <script language="javascript" type="text/javascript">
    function CheckForm()
    {
        if(isNaN(form1.TextBox3.value))
        {
            alert('营业执照有非数字的？');
            form1.TextBox3.focus();
            return false;
        }
        if(form1.TextBox4.value == '' || form1.TextBox4.value <= '0')
        {
            alert('注册资金出现错误！');
            form1.TextBox4.focus();
            return false;
        }
		if(isNaN(form1.TextBox4.value))
		{
			alert('注册资金请输入数字！');
			form1.TextBox4.focus();
			return false;
		}
        if(form1.TextBox7.value == '')
        {
            alert('公司简介不能为空！');
            form1.TextBox7.focus();
            return false;
        }
        if(form1.TextBox8.value == '')
        {
            alert('联系部门名称不能为空！');
            form1.TextBox8.focus();
            return false;
        }
        if(form1.TextBox9.value == '')
        {
            alert('事务联系人不能为空！');
            form1.TextBox9.focus();
            return false;
        }
        if(form1.TextBox11.value == '')
        {
            alert('联系电话（手机）不能为空！');
            form1.TextBox11.focus();
            return false;
        }
        if(form1.TextBox15.value == '')
        {
            alert('单位联系地址不能为空！');
            form1.TextBox15.focus();
            return false;
        }
    }
    </script>

</head>
<body>
    <form id="form1" runat="server" onsubmit='return CheckForm();'>
        <ascx:PageTop2 ID="PageTop2" runat="server" />
        <table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="13%" valign="top">
                    <ascx:LeftPage ID="LeftPage" runat="server" />
                </td>
                <td width="6%" valign="top">
                </td>
                <td width="79%" valign="top">
                    <div id="bodyly">
                    </div>
                    <div id="SearchDivhire" onmousedown="MDown(this)" onmouseup="MUp(this)" onmousemove="MMove(this)">
                        <div class="memmenul">
                            <div class="leftmenutit">
                                <span class="uns" onclick="unSearchLayers();">[关闭]</span><span id="wintit"></span>
                            </div>
                            <div style="width: 100%">
                                <div id="hiretypes">
                                    请登陆后台生成JS数据</div>
                                <div style="width: 540px; display: none; margin-left: 20px" id="city">
                                    请登陆后台生成JS数据</div>
                                <div id="hiretype">
                                    请登陆后台生成JS数据</div>
                            </div>
                        </div>
                    </div>
                    <div>
                        <table width='99%' border='0' align='center' cellpadding='2' cellspacing='1' class='border' id="tb">
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td colspan="2" class="topbg2">
                                    <div align="center" class="Glow">
                                        <strong>单 位 基 本 资 料 注 册</strong></div>
                                </td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td width="23%">
                                    <div align="right">
                                        <div align="right">
                                            <span style="color: #ff0000">*</span>单位名称(中文)：</div>
                                    </div>
                                </td>
                                <td style="width: 482px">
                                    <asp:TextBox ID="TextBox1" runat="server" MaxLength="30" class="input_text"></asp:TextBox>
                                    <span style="color: #ff0000">*输入单位正式全称</span></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <div align="right">
                                            单位名称(英文)：</div>
                                    </div>
                                </td>
                                <td style="width: 482px">
                                    <asp:TextBox ID="TextBox2" runat="server" MaxLength="30" class="input_text"></asp:TextBox></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <span style="color: #ff0000">*</span>单位性质：</div>
                                </td>
                                <td style="width: 482px">
                                    <asp:DropDownList ID="DropDownList1" runat="server">
                                        <asp:ListItem Value="请选择">请选择</asp:ListItem>
                                        <asp:ListItem>国有企业 </asp:ListItem>
                                        <asp:ListItem>私营企业</asp:ListItem>
                                        <asp:ListItem>外资企业</asp:ListItem>
                                        <asp:ListItem>合资企业</asp:ListItem>
                                        <asp:ListItem>股份制企业</asp:ListItem>
                                        <asp:ListItem>集体企业</asp:ListItem>
                                        <asp:ListItem>事业单位</asp:ListItem>
                                        <asp:ListItem>社会团体</asp:ListItem>
                                        <asp:ListItem>行政机关</asp:ListItem>
                                        <asp:ListItem>乡镇企业</asp:ListItem>
                                        <asp:ListItem>跨国公司</asp:ListItem>
                                        <asp:ListItem>高等院校</asp:ListItem>
                                        <asp:ListItem>其他</asp:ListItem>
                                    </asp:DropDownList></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <div align="right">
                                            <span style="color: #ff0000">*</span>所属行业：</div>
                                    </div>
                                </td>
                                <td style="width: 482px">
                                    <asp:DropDownList ID="DropDownList2" runat="server">
                                    </asp:DropDownList> 直接决定您是否显示在主页相关行业列表内</td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <div align="right">
                                            <span style="color: #ff0000">*</span>所在区域：</div>
                                    </div>
                                </td>
                                <td style="width: 482px">
                                    <input type="hidden" name="workadd" id="workadd" value="<%=s_from%>" runat="server" />
                                    <input class="input_text" onclick="JumpSearchLayers(0,0,2,'form1','workadds','workadd');" readonly="readonly"
                                        value="选择公司地点" name="workadds" />
                                    <span style="color: #ff0000"> 修改资料时不填，即表示默认</span>
                                </td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <div align="right">
                                            <span style="color: #ff0000">*</span>注册资金：</div>
                                    </div>
                                </td>
                                <td style="width: 482px">
                                    <asp:TextBox ID="TextBox4" runat="server" MaxLength="5" Width="50px" class="input_text"></asp:TextBox>万元</td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <a name="logo"></a><div align="right">
                                        企业Logo：</div>
                                </td>
                                <td style="width: 482px">
                                    <input class="input_text" name="file" type="file" id="File1" style="width: 344px" runat="server" /><asp:Label
                                        ID="Label1" runat="server" ForeColor="Red"></asp:Label><br />
                                    <span style="color: #ff0000"> 图片不要超过50KB。只支持gif jpg图片格式。</span>
                                </td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td colspan="2">
                                    <a name="map"></a>
                                    <span style="color: #ff0000">右键选择“添加地图标注”，即可成功定位企业地图坐标。</span> <input id="selCityInput" type="text" value="快速查找城市名" class="selCityInputT" style="color:#8C8C8C"/><input id="selCityButton" value=" 搜索 " type="button" onclick="goCity('button')">
                                    <input class="input_text" id="mapkey_Text" runat="server" style="display:none" type="text" readonly="readonly" />
                                    <div style="height:340px;border:1px solid gray" id="container"></div>
                                </td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <div align="right">
                                            法人代表：</div>
                                    </div>
                                </td>
                                <td style="width: 482px">
                                    <asp:TextBox ID="TextBox5" runat="server" MaxLength="10" class="input_text"></asp:TextBox></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <div align="right">
                                            <span style="color: #ff0000">*</span>员工总数：</div>
                                    </div>
                                </td>
                                <td style="width: 482px">
                                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
                                        RepeatLayout="Flow">
                                        <asp:ListItem Selected="True">少于50人</asp:ListItem>
                                        <asp:ListItem>50-100人</asp:ListItem>
                                        <asp:ListItem>100-200人</asp:ListItem>
                                        <asp:ListItem>200-500</asp:ListItem>
                                        <asp:ListItem>500-1000</asp:ListItem>
                                        <asp:ListItem>1000以上</asp:ListItem>
                                    </asp:RadioButtonList></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <div align="right">
                                            <span style="color: #ff0000">*</span>成立日期：</div>
                                    </div>
                                </td>
                                <td style="width: 482px">
                                    <input id="TextBox6" runat="server" type="text" onClick="WdatePicker()" readonly class="input_text"/>
                                </td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <div align="right">
                                            <span style="color: #ff0000">*</span>保障体系：</div>
                                    </div>
                                </td>
                                <td>
                                    <asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatLayout="Table" 
                                        CellPadding="4" RepeatColumns="2" RepeatDirection="Vertical">
                                    <asp:ListItem Value="高薪" Text="<img src='../images/12S/bicon1.png' width='30' height='30' />薪资高于同行业平均水平"></asp:ListItem>
                                    <asp:ListItem Value="双休" Text="<img src='../images/12S/bicon2.png' width='30' height='30'  />每周有两天休息时间"></asp:ListItem>
                                    <asp:ListItem Value="公积金" Text="<img src='../images/12S/bicon3.png' width='30' height='30'  />企业给缴纳住房公积金"></asp:ListItem>
                                    <asp:ListItem Value="年假" Text="<img src='../images/12S/bicon4.png' width='30' height='30'  />有带薪年休假"></asp:ListItem>
                                    <asp:ListItem Value="年终奖" Text="<img src='../images/12S/bicon5.png' width='30' height='30'  />年底有奖金或13/14月薪"></asp:ListItem>
                                    <asp:ListItem Value="工作餐" Text="<img src='../images/12S/bicon6.png' width='30' height='30'  />提供免费工作餐或餐补"></asp:ListItem>
                                    <asp:ListItem Value="公费旅游" Text="<img src='../images/12S/bicon7.png' width='30' height='30'  />有计划组织员工集体旅游"></asp:ListItem>
                                    <asp:ListItem Value="公费培训" Text="<img src='../images/12S/bicon8.png' width='30' height='30'  />企业公费组织员工培训"></asp:ListItem>
                                    <asp:ListItem Value="8小时工作" Text="<img src='../images/12S/bicon9.png' width='30' height='30'  />每天工作时间不超过8小时"></asp:ListItem>
                                    <asp:ListItem Value="保险" Text="<img src='../images/12S/bicon10.png' width='30' height='30'  />企业给缴纳保险"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <a name="qyjj"></a><div align="right">
                                        <div align="right">
                                            <span style="color: #ff0000">*</span>单位简单介绍
                                            <br />
                                            及业务简介：<br />
                                            (10--1000个字)</div>
                                    </div>
                                </td>
                                <td style="width: 482px">
                                    <asp:TextBox ID="TextBox7" runat="server" Height="223px" Width="398px" TextMode="MultiLine"
                                        MaxLength="2000" class="input_text"></asp:TextBox></td>
                            </tr>
                        </table>
                        <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border' id="tb">
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td colspan="2" class="topbg2">
                                    <div align="center" class="Glow">
                                        <strong>单 位 联 系 方 式</strong></div>
                                </td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td width="23%">
                                    <div align="right">
                                        <div align="right">
                                            <span style="color: #ff0000">*</span>联系部门名称：</div>
                                    </div>
                                </td>
                                <td width="77%">
                                    <asp:TextBox ID="TextBox8" runat="server" MaxLength="10" class="input_text">人力部</asp:TextBox></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <div align="right">
                                            <span style="color: #ff0000">*</span>事务联系人：</div>
                                    </div>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox9" runat="server" MaxLength="10" class="input_text"></asp:TextBox></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <div align="right">
                                            联系人职务：</div>
                                    </div>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox10" runat="server" MaxLength="10" class="input_text"></asp:TextBox></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <a name="mobile"></a><div align="right">
                                        <div align="right">
                                            <span style="color: #ff0000">*</span>联系电话：</div>
                                    </div>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox11" runat="server" MaxLength="20" class="input_text"></asp:TextBox>
                                    <input id="yc_lxdh" runat="server" type="checkbox" />隐藏电话</td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        QQ号码：</div>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox12" runat="server" MaxLength="20" class="input_text"></asp:TextBox></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <a name="email"></a><div align="right">
                                        <span style="color: #ff0000">*</span>电子邮箱：</div>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox13" runat="server" class="input_text"></asp:TextBox>
                                    <input id="yc_email" runat="server" type="checkbox" />隐藏邮箱<asp:RequiredFieldValidator
                                        ID="RequiredFieldValidator1" runat="server" ErrorMessage="电子邮箱不能为空" ControlToValidate="TextBox13"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox13"
                                        ErrorMessage="邮箱格式不符" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        传真号码：</div>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox14" runat="server" MaxLength="20" class="input_text"></asp:TextBox></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        <span style="color: #ff0000">*</span>单位联系地址：</div>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox15" runat="server" MaxLength="100" class="input_text"></asp:TextBox></td>
                            </tr>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td>
                                    <div align="right">
                                        单位网址：</div>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox16" runat="server" MaxLength="40" class="input_text"></asp:TextBox></td>
                            </tr>
                        </table>
                        <table width="100%" border="0">
                            <tr>
                                <td>
                                    <div align="center">
                                        <asp:Button ID="Button2" runat="server" Text="提交" OnClick="Button2_Click" />
                                        <label>
                                            &nbsp;<input type="reset" name="Submit2" value="重置" />
                                            <br />
                                            <asp:Label ID="Label2" runat="server" ForeColor="Red"></asp:Label></label></div>
                                </td>
                            </tr>
                        </table>
                </td>
            </tr>
        </table>
        <ascx:PageFooter ID="PageFooter" runat="server" />
    </form>
</body>
</html>
<script type="text/javascript">
    var map = new BMap.Map("container"); //初始化地图
    // http://dev.baidu.com/wiki/static/map/API/tool/getPoint 坐标拾取工具
    var point = new BMap.Point(<%= string.IsNullOrEmpty(_mapkey) ? "112.932354,28.227098" : _mapkey %>);  //定义标注初始的中心点
    map.centerAndZoom(point, 11); //定义地图等级，就是放大倍数
    map.enableScrollWheelZoom(); //启用地图滚轮放大缩小    
    map.addControl(new BMap.OverviewMapControl({ isOpen: 4, anchor: BMAP_ANCHOR_TOP_RIGHT })); //为地图添加鹰眼
    map.addControl(new BMap.NavigationControl());   //为地图添加鱼骨
    <%=ss() %>
    var txtMenuItem = [
	  {
		  text: '放大',
		  callback: function () { map.zoomIn() }
	  },
	  {
		  text: '缩小',
		  callback: function () { map.zoomOut() }
	  },
	  {
		  text: '放置到最大级',
		  callback: function () { map.setZoom(18) }
	  },
	  {
		  text: '查看全国',
		  callback: function () { map.setZoom(4) }
	  },
	  {
      text: '添加地图标注',
      callback: function (p) {
          var mkrs = map.getOverlays();
          if (mkrs.length >= 1) { alert('不可添加多个标注，请删除标准后再添加。'); return; }
          var marker = new BMap.Marker(p), px = map.pointToPixel(p);
          var label = new BMap.Label("拖动我到贵司地理位置即可",{offset:new BMap.Size(20,-10)});
          marker.setLabel(label);
          map.addOverlay(marker);
          marker.enableDragging(true); // 标注可拖拽
          document.getElementById("mapkey_Text").value = (marker.point.lng + "," + marker.point.lat);
          // 开启事件监听
          marker.addEventListener("dragend", function (e) {
              document.getElementById("mapkey_Text").value = e.point.lng + "," + e.point.lat;
          });
      }
  },
  {
      text:'删除标注',
      callback: function() { map.clearOverlays() }
  }
  ];
    for (var i = 0; i < txtMenuItem.length; i++) {
        // 将按钮添加到contextMenu
        contextMenu.addItem(new BMap.MenuItem(txtMenuItem[i].text, txtMenuItem[i].callback, 100));
        if (i == 1 || i == 3) {
            contextMenu.addSeparator(); // 添加分隔符
        }
    }
    map.addContextMenu(contextMenu); // 将contextMenu添加到地图上

    var local = new BMap.LocalSearch(map, {
        renderOptions: { map: map }
    });
    function goCity(o) {
        if (o == 'button') {
            local.search(document.getElementById('selCityInput').value);
        } else {
            local.search(o.innerHTML);
        }        
    }
</script>