{include file="page_header.htm"}
{insert_scripts files="../js/utils.js,../js/DatePicker/WdatePicker.js"}

<div id="tabbody-div">
	<form enctype="multipart/form-data" name="theForm" action="information.php" method="post" onsubmit="return validate()">
	{foreach from=$information_info item=list name=information}
	<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="table_form1" {if $smarty.foreach.information.index>0} style="display:none" {/if} id="language_{$list.language_id}-table">	
		
		<tr>
		<td class="label" width="110">公司名:</td>
		<td>
			<input name="name_{$list.language_id}" type="text" value="{$list.name|escape}" class="FormSmall" style="width:250px;"  />
		</td>
		</tr>
		
		<tr>
		<td class="label" width="110">联系人:</td>
		<td><input name="ext_field_{$list.language_id}[contact_person]" type="text" value="{$list.ext_field.contact_person}" style="width:250px;" class="FormSmall" />  <span class="required">&nbsp;</span></td>
		</tr>			
		
		
		<tr>
		<td class="label" width="120">地址:</td>
		<td><input name="ext_field_{$list.language_id}[address]" type="text" value="{$list.ext_field.address}" style="width:250px;" class="FormSmall" /> </td>
		</tr>
		
		<tr>
		<td class="label" width="110">电话:</td>
		<td><input name="ext_field_{$list.language_id}[tel]" type="text" value="{$list.ext_field.tel}" style="width:250px;" class="FormSmall" /> </td>
		</tr>		
		
		<tr>
		<td class="label" width="110">手机:</td>
		<td><input name="ext_field_{$list.language_id}[mobile]" type="text" value="{$list.ext_field.mobile}" style="width:250px;" class="FormSmall" /> </td>
		</tr>		
		
		<tr>
		<td class="label" width="110">邮箱:</td>
		<td><input name="ext_field_{$list.language_id}[email]" type="text" value="{$list.ext_field.email}" style="width:250px;" class="FormSmall" /> </td>
		</tr>		
		
		<tr>
		<td class="label" width="110">传真:</td>
		<td><input name="ext_field_{$list.language_id}[fax]" type="text" value="{$list.ext_field.fax}" style="width:250px;" class="FormSmall" /> </td>
		</tr>	
			
		<tr>
		<td class="label" width="110">网址:</td>
		<td><input name="ext_field_{$list.language_id}[website]" type="text" value="{$list.ext_field.website}" style="width:250px;" class="FormSmall" /> </td>
		</tr>
			
		<tr>
		<td class="label" width="110">邮编:</td>
		<td><input name="ext_field_{$list.language_id}[zip]" type="text" value="{$list.ext_field.zip}" style="width:250px;" class="FormSmall" /> </td>
		</tr>
			
		<tr>
		<td class="label">排序:</td>
		<td><input name="sort_order" type="text" value="{$information.sort_order}" class="FormSmall" style="width:100px;" /></td>
		</tr>		
	</table>
	{/foreach}
	
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_form">
		<tr>
			<td style="border:none;" class="label">&nbsp;</td>
			<td style="border:none;">
				<input type="hidden" name="channel_id" value="{$channel_id}" />
				<input type="hidden" name="information_id" value="{$information.information_id}" />
				<input type="hidden" name="act" value="{$form_act}" />
				<input name="submit" type="submit" value=" 确定 " class="bginput" />
				<input name="reset" type="reset" value=" 重置 " class="bginput" />
			</td>
		</tr>
	</table>
	</form>
</div>
<script language="JavaScript">
var informationId = '{$information.information_id}';
{literal}
function validate(){
	var validator = new Validator('theForm');
	validator.required('ext_field_{/literal}{$language[0].language_id}{literal}[contact_person]', '联系人姓名不能为空.');
	return validator.passed();
}
{/literal}
</script>
{insert_scripts files="tab.js,validator.js"}
{include file="page_footer.htm"}