<?php /* Smarty version Smarty-3.0.6, created on 2013-10-17 05:46:41
         compiled from "C:/AppServ/www/www/templates/adminsys\artliceedit_tpl.html" */ ?>
<?php /*%%SmartyHeaderCode:28378525f79c176d7f4-56304260%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'de5582c0cb1a196fb3a1352ae51ffaf655328261' => 
    array (
      0 => 'C:/AppServ/www/www/templates/adminsys\\artliceedit_tpl.html',
      1 => 1381140420,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '28378525f79c176d7f4-56304260',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!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="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/templates/adminsys/css/list.css" />
<script language="javascript" src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/js/pinyin.js"></script>
<script language="javascript">
var webroot_url = '<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
';
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='<?php echo $_smarty_tpl->getVariable('employee_weburl')->value;?>
/index.php?load=artlice&act=editinfo';
	document.formSub.target="_self"
	document.formSub.submit();
	
}

	
	function upLoadFile()
	{
		document.formSub.target="hidden_frame"
		document.formSub.action='<?php echo $_smarty_tpl->getVariable('employee_weburl')->value;?>
/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=\"<?php echo $_smarty_tpl->getVariable('webroot_url')->value;?>
/uploads/sys/loading2.gif\" />文件正上传，请稍候...";

	}
	
	function upLoadSmall()
	{
		document.formSub.target="smallhidden_frame"
		document.formSub.action='<?php echo $_smarty_tpl->getVariable('employee_weburl')->value;?>
/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=\"<?php echo $_smarty_tpl->getVariable('webroot_url')->value;?>
/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="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/adminsys/index.php?load=artlice&act=infolist" ><img src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/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="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/images/sys/adminhelp.png"  width="21" border="0" alt="点击-在线帮助"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>
<tr><td>
<div class="list">
<form action="<?php echo $_smarty_tpl->getVariable('actUrl')->value;?>
" 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="<?php echo $_smarty_tpl->getVariable('info')->value['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="<?php echo $_smarty_tpl->getVariable('info')->value['art_title'];?>
" type="text"  style="width:250px;" onblur="codechange()" ><input name="art_pinyin" id="art_pinyin"  value="<?php echo $_smarty_tpl->getVariable('info')->value['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>
<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('asInfo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['ars_id'];?>
" <?php if ($_smarty_tpl->getVariable('info')->value['ars_id']==$_smarty_tpl->tpl_vars['item']->value['ars_id']){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->tpl_vars['item']->value['ars_name'];?>
</option>
	<?php  $_smarty_tpl->tpl_vars['spitem'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['item']->value['array']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['spitem']->key => $_smarty_tpl->tpl_vars['spitem']->value){
?>
	<option value="<?php echo $_smarty_tpl->tpl_vars['spitem']->value['ars_id'];?>
" <?php if ($_smarty_tpl->getVariable('info')->value['ars_id']==$_smarty_tpl->tpl_vars['spitem']->value['ars_id']){?> selected="selected" <?php }?>>|__<?php echo $_smarty_tpl->tpl_vars['spitem']->value['ars_name'];?>
</option>
	<?php }} ?>
<?php }} ?>
</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="<?php echo $_smarty_tpl->getVariable('info')->value['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"><?php echo $_smarty_tpl->getVariable('info')->value['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"><?php echo $_smarty_tpl->getVariable('ckeditorLoad')->value;?>

</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="<?php echo $_smarty_tpl->getVariable('info')->value['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><?php if ($_smarty_tpl->getVariable('info')->value['art_pic']==''){?>
<input type="hidden"  name="art_pic" id="art_pic" value="" /><div id="lodingdiv" style=" display:none;width:380px;" ><img src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div><?php }else{ ?><input type="hidden"  name="art_pic" id="art_pic" value="<?php echo $_smarty_tpl->getVariable('info')->value['art_pic'];?>
" /><div id="lodingdiv" style="width:380px;" ><?php echo $_smarty_tpl->getVariable('info')->value['art_pic'];?>
<img src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/uploads/sys/cancel.png" width="16" onclick="hiddenLoding()"></div><?php }?>

</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>
<?php if ($_smarty_tpl->getVariable('info')->value['art_pic']==''){?>
<input type="hidden"  name="art_file" id="art_file" value="" /><div id="lodingdivsmall" style=" display:none;width:380px;" ><img src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div><?php }else{ ?><input type="hidden"  name="art_file" id="art_file" value="<?php echo $_smarty_tpl->getVariable('info')->value['art_pic'];?>
" /><div id="lodingdivsmall" style="width:380px;" ><?php echo $_smarty_tpl->getVariable('info')->value['art_file'];?>
<img src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/uploads/sys/cancel.png" width="16" onclick="hiddenLodingsmall()"></div><?php }?>

</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>是否显示：</strong></td>
<td class="tdd"><?php  $_smarty_tpl->tpl_vars['ei'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['ek'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('_LANG')->value['bd_enabledArray']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['ei']->key => $_smarty_tpl->tpl_vars['ei']->value){
 $_smarty_tpl->tpl_vars['ek']->value = $_smarty_tpl->tpl_vars['ei']->key;
?>
<?php echo $_smarty_tpl->tpl_vars['ei']->value;?>
<input type="radio"   name="art_enabled" id="art_enabled[<?php echo $_smarty_tpl->tpl_vars['ek']->value;?>
]"  value="<?php echo $_smarty_tpl->tpl_vars['ek']->value;?>
" <?php if ($_smarty_tpl->getVariable('info')->value['art_enabled']==$_smarty_tpl->tpl_vars['ek']->value){?> checked="checked" <?php }?>>
<?php }} ?></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="<?php echo $_smarty_tpl->getVariable('info')->value['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>