<?php include 'header.tpl.php';?>
<style>
.reg_company{width:500px;padding-left:10px;float:left}
.reg_company .reg_table1{width:700px;float:left;margin-top:10px;border-collapse: collapse}
.reg_company .reg_table1 td{height:20px}
.reg_company .reg_table1 .col1{width:100px;text-align:right;padding-right:5px;padding-top:5px}
.reg_company .reg_table1 .col2{text-align:left}
.reg_company .coltit{text-align:left;font-weight:bold;border-bottom:1px #cccccc solid}
.reg_company .reg_table1 input{}
.reg_company .divbtn{float:left;width:100%;margin-top:20px;margin-bottom:15px}
.btnpic{border:1px #000000 solid}
</style>
<script>
function me_change(msgval){
	obj_id_vip_time=document.getElementById("id_vip_time");
	if(msgval!="0"){
		obj_id_vip_time.style.display="";
	}else{
		obj_id_vip_time.style.display="none";
	}
}
</script>
<div class="pMenu">
<li><a href="javascript:frmExecute('');">管理</a></li>
<li class="sel"><a href="javascript:frmExecute('add');">添加</a></li>
<li class="info"><a href="javascript:inc_show_help(201);" style="color:#ff0000">帮助</a></li>
</div>
<div class="pSearchDiv" id="objSearch" style="display:none">
<table class="sTab">
<tr><td>状态：<select name="s_state">
	<option value="-101">不限</option>
	<option value="1">通过</option>
	<option value="0">待审</option>
	</select>　VIP类型：<select name="s_vip">
	<option value="-1">不限</option>
	<option value="0">非VIP</option>
	<?php
	foreach($arr_vip as $item){
		echo "<option value='".$item["vip_id"]."'>".$item["vip_name"]."</option>";
	}
	?>
	</select>　注册时间：<input type="text" name="s_addtime1" value="" onfocus="setday(this);"> 到 <input type="text" name="s_addtime2" value="" onfocus="setday(this);"></td><tr>
	<tr><td>名称或关键字：<input type="text" name="s_name" value="">　<input type="button" name="s_btnok" value="查找" class="pBtn" onclick="frmExecute('')"> 　<input type="button" name="s_btnok" value="清空" class="pBtn" onclick="meSearchClear();frmExecute('');"></td></tr>
</table>
</div>
<div class="reg_company">
<table class="reg_table1">
<tr><td colspan="5" class="coltit">企业信息</td></tr>
<tr><td class="col1">企业账号：</td><td class="col2"><input type="hidden" name="company_user_id" value="" id="company_user_id"><span id="company_user_name" style="color:blue;font-weight:bold"></span>&nbsp;&nbsp;&nbsp;[<a href="javascript:dialog_winUser('company_user_id','company_user_name','s_type=company');" style="color:#ff6600">选择</a>]</td></tr>
<tr><td class="col1"> 企业名称：</td><td class="col2"><input type="text" name="company_name" value=""></td></tr>
<tr><td class="col1">营业执照：</td><td class="col2"><input type="text" name="company_idnum" value=""></td></tr>
<tr><td class="col1">所属行业：</td><td class="col2"><select name="company_industry"><option value="">------------请选择------------</option><?php echo $arr_company["company_industry"]?></select></td></tr>
<tr><td class="col1">企业性质：</td><td class="col2"><select name="company_nature"><option value="">---请选择---</option><?php echo $arr_company["company_nature"]?></select></td></tr>
<tr><td class="col1">成立日期：</td><td class="col2"><input type="text" name="company_builddate" value=""  onfocus="setday(this);"></td></tr>
<tr><td class="col1">注册资金：</td><td class="col2"><input type="text" name="company_regcapital" value="">&nbsp;&nbsp;万&nbsp;<select name="company_currency"><?php echo $arr_company["company_currency"]?></select></td></tr>
<tr><td class="col1">员工人数：</td><td class="col2"><select name="company_scale"><option value="">---请选择---</option><?php echo $arr_company["company_scale"]?></select></td></tr>
<tr><td class="col1">企业所在地区：</td><td class="col2"><?php echo $arr_company["company_area"]?></td></tr>
<tr><td class="col1">企业简介：</td><td class="col2"><textarea name='company_intro' id="company_intro" style="width:500px;height:120px" onpropertychange='this.style.posHeight=this.scrollHeight+2'></textarea></td></tr>
</table>
<table class="reg_table1">
<tr><td colspan="2" class="coltit">联系方式</td></tr>
<tr><td class="col1"> 联系人：</td><td class="col2"><input type="text" name="company_linkname" value=""></td></tr>
<tr><td class="col1">联系电话：</td><td class="col2"><input type="text" name="company_tel" value=""></td></tr>
<tr><td class="col1">传真号码：</td><td class="col2"><input type="text" name="company_fax" value=""></td></tr>
<tr><td class="col1">电子邮件：</td><td class="col2"><input type="text" name="company_email" value=""></td></tr>
<tr><td class="col1">企业网站：</td><td class="col2"><input type="text" name="company_website" value=""></td></tr>
<tr><td class="col1">邮政编码：</td><td class="col2"><input type="text" name="company_zip" value=""></td></tr>
<tr><td class="col1">通讯地址：</td><td class="col2"><input type="text" name="company_address" value=""></td></tr>
</table>
<table class="reg_table1">
<tr><td colspan="2" class="coltit">VIP设置</td></tr>
<tr><td class="col1"> VIP类型：</td><td class="col2">	<select name="company_vip_id" onchange="me_change(this.value);">
	<option value="0"></option>
	<?php
	foreach($arr_vip as $item){
		echo "<option value='".$item["vip_id"]."'>".$item["vip_name"]."</option>";
	}
	?>
	</select>
</td></tr>
<tr id="id_vip_time" style='display:none'><td class="col1">开始时间：</td><td class="col2"><input type="text" name="company_vip_time" value="" onfocus="setday(this);"></td></tr>
</table>
<div class="divbtn"><input type="button" name="sub_ok" value="保存" class="pSubmit" onclick="frmExecute('save')"></div>
</div>
</div>
<script>
areabox_autoheight("company_intro");
</script>
<?php include 'footer.tpl.php';?>		