<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加友情链接{#$LA_poweredby#} -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="{#$base_weburl#}/templates/adminsys/css/list.css" />

<script language="javascript">	
	function submitFun()
	{
		var idlin_name 		= document.getElementById('lin_name');
		var idlin_url 			= document.getElementById('lin_url');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(idlin_name.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：链接名称不能为空！请输入！';
			idlin_name.focus();
			return false;
		}else if(idlin_url.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：链接地址不能为空！请输入！';
			idlin_url.focus();
			return false;
		}
		document.formSub.action='{#$base_weburl#}/adminsys/index.php?load=link&act=addinfo';
		document.formSub.target="_self"
		document.formSub.submit();
		
	}
	
	function upLoadFile()
	{
		document.formSub.target="hidden_frame"
		document.formSub.action='{#$employee_weburl#}/index.php?load=uploadfile&act=upload&upLoadName=upfile&getUrl=lin_logo&isMark=0';
		document.formSub.submit(); 
		document.getElementById("lodingdiv").style.display="";
		document.getElementById("lodingdiv").innerHTML="<img src=\"{#$webroot_url#}/uploads/sys/loading2.gif\" />文件正上传，请稍候...";
	}
	
	
	function hiddenLoding()
	{
		document.getElementById("lodingdiv").style.display="none";
		document.getElementById("lodingdiv").innerHTML="";
		document.getElementById("lin_logo").value="";
		document.getElementById("upfile").value="";
	}
	
	
</script>

</head>
<body onload="hiddenLoding()">

<table  cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr><td>

<table cellpadding="0" cellspacing="0" border="0" style="width:100%; color:#000000; font-weight:normal; background-color:#3EC3EF;"  >
  <tr>
    <td>&nbsp;<a href="{#$base_weburl#}/adminsys/index.php?load=link&act=infolist"><img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">友情链接</a> |添加友情链接</td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.gv32.com/type_link-add.html" target="_blank" title="点击-在线帮助"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0" alt="点击-在线帮助"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr><td>
<div class="list">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<form action="{#$base_weburl#}/adminsys/index.php?load=link&act=addinfo" method="post"  enctype="multipart/form-data" name="formSub" target="_self">
<tr>
<th colspan="2">添加友情链接</th>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"  style="width:100px;"><strong>链接名称<font color="#FF0000">*</font>：</strong></td>
<td class="tdd"  style="width:330px;"  ><input name="lin_name" id="lin_name" value="" type="text"  style="width:250px;" ></td>

</tr>
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>链接地址<font color="#FF0000">*</font>：</strong></td>
<td class="tdd"  style="width:350px;"><input name="lin_url" id="lin_url" value="" type="text"  style="width:250px;" ></td>

</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>链接LOGO：</strong></td>
<td class="tdd">      
<input type="file" id="upfile" name="upfile" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(this)">
<iframe name='hidden_frame' id="hidden_frame" style="border:none; background-color:#00CCCC;" scrolling="no" width="0" height="0" ></iframe>
<div id="lodingdiv" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>
</td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>LOGO地址：</strong></td>
<td class="tdd" ><input name="lin_logo" id="lin_logo" value="" type="text"  style="width:250px;" >请上传大小为88X31的图片</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>是否显示：</strong></td>
<td class="tdd">{#foreach key=ek item=ei from=$_LANG.showArray#}
{#$ei#}<input type="radio"   name="lin_enabled" id="lin_enabled[{#$ek#}]"  value="{#$ek#}" {#if $ek eq 1#} checked="checked" {#/if#}>&nbsp;
{#/foreach#}
</td>
</tr>
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>显示顺序：</strong></td>
<td class="tdd"><input name="lin_list" id="lin_list" value="0" type="text" style="width:250px;"  ></td>

</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>

</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"><input type="button" name="butsubmit" id="butsubmit" value="添 加"  onclick="submitFun(this)" /></td>
</tr></form>
</table>
</div>


</td></tr>
<tr><td></td></tr>
</table>

</body>
</html>