<!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">
var webroot_url = '{#$base_weburl#}';
function submitFun()
{
		var idimage_name 		= document.getElementById('image_name');
		var idimagesort_id 		= document.getElementById('imagesort_id');
		var idimage_num 		= document.getElementById('image_num');
		
		var content= CKEDITOR.instances.image_content.getData()
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(idimage_name.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：图片组标题不能为空！请输入！';
			idimage_name.focus();
			return false;
		}else if(idimagesort_id.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：图片分类不能为空！请选择！';
			idimagesort_id.focus();
			return false;
		}else if(idimage_num.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：图片数量不能为空请输入！';
			idimage_num.focus();
			return false;
		}else if(content=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：简介内容不能为空请输入！';
			CKEDITOR.instances.image_content.focus();
			return false;
		}
 
}
</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/image/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_image-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>

<form action="{#$base_weburl#}/adminsys/index.php/image/editinfo" method="post" name="formSub" id="formSub"  onsubmit="return submitFun()">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th colspan="2">修改图片</th>
</tr>
<input name="image_id" id="image_id" value="{#$info.image_id#}" type="hidden"  >
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td" align="right"><strong>图片标题：</strong></td>
<td class="tdd"><input name="image_name" id="image_name" value="{#$info.image_name#}" type="text"  style="width:300px;" ></td>
</tr>

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



<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>图片数量：</strong></td>
<td class="tdd"><input name="image_num" id="image_num" value="{#$info.image_num#}" type="text"  style="width:300px;" > </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 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="submit" id="submit" type="submit" value="修 改"   ></td>
</tr>
</table>
</form>

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


</body>
</html>