<?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('edit');">编辑</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" <?php if($get_s_state==1) echo "selected";?>>通过</option>
	<option value="0" <?php if($get_s_state==0) echo "selected";?>>待审</option>
	</select>　VIP类型：<select name="s_vip">
	<option value="-1">不限</option>
	<option value="0" <?php if($get_s_vip==0) echo "selected";?>>非VIP</option>
	<?php
	foreach($arr_vip as $item){
		$str_sel="";
		if($item["vip_id"]==$get_s_vip) $str_sel=" selected";
		echo "<option value='".$item["vip_id"]."'".$str_sel.">".$item["vip_name"]."</option>";
	}
	?>
	</select>　注册时间：<input type="text" name="s_addtime1" value="<?php echo $get_s_addtime1;?>" onfocus="setday(this);"> 到 <input type="text" name="s_addtime2" value="<?php echo $get_s_addtime2;?>" onfocus="setday(this);"></td><tr>
	<tr><td>名称或关键字：<input type="text" name="s_name" value="<?php echo $get_s_name?>">　<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="text" name="company_name" value="<?php echo $arr_company["company_name"]?>"></td></tr>
<tr><td class="col1">营业执照：</td><td class="col2"><input type="text" name="company_idnum" value="<?php echo $arr_company["company_idnum"]?>"></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="<?php echo $arr_company["company_builddate"]?>"  onfocus="setday(this);"></td></tr>
<tr><td class="col1">注册资金：</td><td class="col2"><input type="text" name="company_regcapital" value="<?php echo $arr_company["company_regcapital"]?>">　<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'><?php echo $arr_company["company_intro"]?></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="<?php echo $arr_company["company_linkname"]?>"></td></tr>
<tr><td class="col1">联系电话：</td><td class="col2"><input type="text" name="company_tel" value="<?php echo $arr_company["company_tel"]?>"></td></tr>
<tr><td class="col1">传真号码：</td><td class="col2"><input type="text" name="company_fax" value="<?php echo $arr_company["company_fax"]?>"></td></tr>
<tr><td class="col1">电子邮件：</td><td class="col2"><input type="text" name="company_email" value="<?php echo $arr_company["company_email"]?>"></td></tr>
<tr><td class="col1">企业网站：</td><td class="col2"><input type="text" name="company_website" value="<?php echo $arr_company["company_website"]?>"></td></tr>
<tr><td class="col1">邮政编码：</td><td class="col2"><input type="text" name="company_zip" value="<?php echo $arr_company["company_zip"]?>"></td></tr>
<tr><td class="col1">通讯地址：</td><td class="col2"><input type="text" name="company_address" value="<?php echo $arr_company["company_address"]?>"></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){
		$str_sel="";
		if($item["vip_id"]==$arr_company["company_vip_id"]) $str_sel=" selected";
		echo "<option value='".$item["vip_id"]."'".$str_sel.">".$item["vip_name"]."</option>";
	}
	?>
	</select>
</td></tr>
<tr id="id_vip_time"<?php if($arr_company["company_vip_id"]<1) echo " style='display:none'";?>><td class="col1">开始时间：</td><td class="col2"><input type="text" name="company_vip_time" value="<?php echo format_date($arr_company["company_vip_time"],'Y-m-d');?>" 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';?>