<?php include 'header.tpl.php';?>
<div class="pMenu">
<li><a href="javascript:frmExecute('');">管理</a></li>
<?php if($get_id>0):?>
	<?php if($obj_ctl_limit->chk_act("add")){?><li><a href="javascript:frmSet('id',0);frmExecute('edit');">添加</a></li><?php }?>
	<li class="sel"><a href="javascript:frmExecute('edit');">编辑</a></li>
<?php else:?>
	<li class="sel"><a href="javascript:frmSet('id',0);frmExecute('edit');">添加</a></li>
<?php endif;?>
<li class="info"><a href="javascript:inc_show_help(207);" style="color:#ff0000">帮助</a></li>
</div>
<div>
	<table class='pEditTable'>
	<tr class='pTabTitRow'><td class='pTabTitCol' colspan="2"></td></tr>
	<tr><td class="pTabColName">企业：</td><td class="pTabColVal"><input type="hidden" name="domain_source_id" value="<?php echo $arr_domain["domain_source_id"];?>" id="id_domain_source_id"><span id="id_source_id"><?php echo $arr_domain["company_name"];?></span><span>&nbsp;&nbsp;<a href="javascript:me_company();">选择</a></span></td></tr>
	<tr><td class="pTabColName">域名：</td><td class="pTabColVal"><input type="input" name="domain_url" value="<?php echo $arr_domain["domain_url"];?>" size=50>　<span class="pBetainfo"></span></td></tr>
	<tr><td class="pTabColName">有效时间：</td><td class="pTabColVal"><input type="text" name="domain_starttime" value="<?php echo $arr_domain["domain_starttime"];?>" size=15 onfocus="javascript:setday(this);"> 至 <input type="text" name="domain_endtime" value="<?php echo $arr_domain["domain_endtime"];?>" size=15 onfocus="javascript:setday(this);"></td></tr>
	<tr><td class="pTabColName">状态：</td><td class="pTabColVal">
		<select name="domain_state">
		<?php foreach($arr_state as $item=>$key){
				$str_sel="";
				if(intval($key)==$arr_domain["domain_state"]) $str_sel=" selected";
				echo "<option value='".$key."'".$str_sel.">".$item."</option>";
			}?>
		</select></td></tr>
	<tr><td colspan=2 class="pTabSubmit">
	<?php if($obj_ctl_limit->chk_act("save")){?><input type="button" name="subok" value="保 存" class="pSubmit" onclick="frmExecute('save')"><?php }else{?>
	<font color="red">没有保存权限！</font>
	<?php }?>
	　<input type="button" name="subok" value="取　消" class="pCancel" onclick="frmExecute('')"></td></tr>
	</table>
</div>
<script>
function me_company()
{
	var obj=document.getElementById("winCompany");
	if(!obj){
		dialog_init("Company","选择企业","800px","400px");
		window.open("<?php echo WEB_DOMAIN;?>/plus/dialog/company.php?objuserid=id_domain_source_id&objusername=id_source_id&objwin=winCompany&objtype=1","frmCompany");
		div_show("winCompany");
	}else{
		div_show("winCompany");
	}
}

</script>

<?php include 'footer.tpl.php';?>		

