<!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>修改文章 -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="{#$base_weburl#}/templates/adminsys/css/list.css" />
<script language="javascript" src="{#$base_weburl#}/js/pinyin.js"></script>
<script language="javascript">
var webroot_url = '{#$base_weburl#}';
function submitFun()
{
	var idart_title 		= document.getElementById('art_title');
	var idars_id 			= document.getElementById('ars_id');
	var idart_detail 		= document.getElementById('art_detail');
	var idsuggestionInfo 	= document.getElementById('suggestionInfo');

	if(idart_title.value=='')
	{
		idsuggestionInfo.innerHTML = ' 提 示：文章标题不能为空！请输入！';
		idart_title.focus();
		return false;
	}else if(idars_id.value=='')
	{
		idsuggestionInfo.innerHTML = ' 提 示：文章分类不能为空！请选择！';
		idars_id.focus();
		return false;
	}
	
	document.formSub.action='{#$employee_weburl#}/index.php?load=artlice&act=editinfo';
	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=art_pic';
		document.formSub.submit(); 
		document.getElementById("lodingdiv").style.display="";
		document.getElementById("lodingdiv").innerHTML="<img src=\"{#$webroot_url#}/uploads/sys/loading2.gif\" />文件正上传，请稍候...";

	}
	
	function upLoadSmall()
	{
		document.formSub.target="smallhidden_frame"
		document.formSub.action='{#$employee_weburl#}/index.php?load=uploadfile&act=upload&upLoadName=smallupfile&getUrl=art_file&lodingDiv=lodingdivsmall';
		document.formSub.submit(); 
		document.getElementById("lodingdivsmall").style.display="";
		document.getElementById("lodingdivsmall").innerHTML="<img src=\"{#$webroot_url#}/uploads/sys/loading2.gif\" />文件正上传，请稍候...";

	}

	
	function hiddenLoding()
	{
		document.getElementById("lodingdiv").style.display="none";
		document.getElementById("lodingdiv").innerHTML="";
		document.getElementById("art_pic").value="";
		document.getElementById("upfile").value="";
	}
	
	function hiddenLodingsmall()
	{
		document.getElementById("lodingdivsmall").style.display="none";
		document.getElementById("lodingdivsmall").innerHTML="";
		document.getElementById("art_file").value="";
		document.getElementById("smallupfile").value="";
	}



	function codechange()
	{
		if(document.getElementById("art_pinyin").value=='')
		{
			getPinYinValue('art_title','art_pinyin');
		}
	}
</script>

</head>
<body>


<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=artlice&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_artlice-edit.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">
<form action="{#$actUrl#}" method="post" onsubmit="return submitFun(this)" enctype="multipart/form-data" name="formSub">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th colspan="2">修改文章</th>
</tr>
<input name="art_id" id="art_id" value="{#$info.art_id#}" type="hidden">
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td" width="120"><strong>文章标题：</strong></td>
<td class="tdd"><input name="art_title" id="art_title" value="{#$info.art_title#}" type="text"  style="width:250px;" onblur="codechange()" ><input name="art_pinyin" id="art_pinyin"  value="{#$info.art_pinyin#}" type="hidden"  style="width:250px;"  ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>文章分类：</strong></td>
<td class="tdd"><select   name="ars_id" id="ars_id"  style="width:250px;" >
<option value="">请选择上级分类</option>
{#foreach key=key item=item from=$asInfo#}
<option value="{#$item.ars_id#}" {#if $info.ars_id eq  $item.ars_id#} selected="selected" {#/if#}>{#$item.ars_name#}</option>
	{#foreach item=spitem from=$item.array#}
	<option value="{#$spitem.ars_id#}" {#if $info.ars_id  eq  $spitem.ars_id#} selected="selected" {#/if#}>|__{#$spitem.ars_name#}</option>
	{#/foreach#}
{#/foreach#}
</select>
</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>关&nbsp;键&nbsp;字：</strong></td>
<td class="tdd"><input name="art_keyword" id="art_keyword" value="{#$info.art_keyword#}" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>摘要描述：</strong></td>
<td class="tdd"><textarea rows="4" cols="56" name="art_description" id="art_description">{#$info.art_description#}</textarea></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>文章内容：</strong></td>
<td class="tdd">{#$ckeditorLoad#}
</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>文章作者：</strong></td>
<td class="tdd"><input name="art_author" id="art_author" value="{#$info.art_author#}" type="text"  style="width:150px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>主推图片：</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>{#if $info.art_pic eq ''#}
<input type="hidden"  name="art_pic" id="art_pic" value="" /><div id="lodingdiv" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>{#else#}<input type="hidden"  name="art_pic" id="art_pic" value="{#$info.art_pic#}" /><div id="lodingdiv" style="width:380px;" >{#$info.art_pic#}<img src="{#$base_weburl#}/uploads/sys/cancel.png" width="16" onclick="hiddenLoding()"></div>{#/if#}

</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>相关文件：</strong></td>
<td class="tdd">

<input type="file" id="smallupfile" name="smallupfile" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadSmall(this)">
<iframe name='smallhidden_frame' id="smallhidden_frame" style="border:none; background-color:#00CCCC;" scrolling="no" width="0" height="0" ></iframe>
{#if $info.art_pic eq ''#}
<input type="hidden"  name="art_file" id="art_file" value="" /><div id="lodingdivsmall" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>{#else#}<input type="hidden"  name="art_file" id="art_file" value="{#$info.art_pic#}" /><div id="lodingdivsmall" style="width:380px;" >{#$info.art_file#}<img src="{#$base_weburl#}/uploads/sys/cancel.png" width="16" onclick="hiddenLodingsmall()"></div>{#/if#}

</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.bd_enabledArray#}
{#$ei#}<input type="radio"   name="art_enabled" id="art_enabled[{#$ek#}]"  value="{#$ek#}" {#if $info.art_enabled  eq $ek#} checked="checked" {#/if#}>
{#/foreach#}</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>排&nbsp;&nbsp;&nbsp;&nbsp;序：</strong></td>
<td class="tdd"><input name="art_list" id="art_list" value="{#$info.art_list#}" type="text"  style="width:150px;"></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 name="buttsubmit" id="buttsubmit" type="button" value="修 改" onclick="submitFun()"  ></td>
</tr>
</table>
</form>
</div>

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



</body>
</html>