<!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 idwork_name 			= document.getElementById('work_name');
		var idworksort_id 			= document.getElementById('worksort_id');
		var idwork_progress 	= document.getElementById('work_progress');
		
		var content= CKEDITOR.instances.work_content.getData()
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(idwork_name.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：作品标题不能为空！请输入！';
			idwork_name.focus();
			return false;
		}else if(idworksort_id.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：作品分类不能为空！请选择！';
			idworksort_id.focus();
			return false;
		}else if(idwork_progress.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：作品销售价格不能为空请输入！';
			idwork_progress.focus();
			return false;
		}else if(content=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：作品内容不能为空请输入！';
			CKEDITOR.instances.work_content.focus();
			return false;
		}

		document.formSub.action='{#$base_weburl#}/adminsys/index.php/work/editinfo';
		document.formSub.target="_self"
		document.formSub.submit();
}


	
	function upLoadFile( strkey )
	{
		if(strkey >0 ){
			document.formSub.target="hidden_frame["+strkey+"]";
			document.formSub.action='{#$base_weburl#}/adminsys/uploadfile.php?upLoadName=upfile&getUrl=work_img['+strkey+']&strkey='+strkey+'&lodingDiv=lodingdiv['+strkey+']';
			document.formSub.submit(); 
			document.getElementById("lodingdiv["+strkey+"]").style.display="";
			document.getElementById("lodingdiv["+strkey+"]").innerHTML="<img src=\"{#$webroot_url#}/uploads/sys/loading2.gif\" />文件正上传，请稍候...";
		}else{
			document.formSub.target="hidden_frame"
			document.formSub.action='{#$base_weburl#}/adminsys/uploadfile.php?upLoadName=upfile&getUrl=work_img';
			document.formSub.submit(); 
			document.getElementById("lodingdiv").style.display="";
			document.getElementById("lodingdiv").innerHTML="<img src=\"{#$webroot_url#}/uploads/sys/loading2.gif\" />文件正上传，请稍候...";
		}

	}
	
	
	function hiddenLoding(strkey)
	{
		if(strkey >0 ){
			document.getElementById("lodingdiv["+strkey+"]").style.display="none";
			document.getElementById("lodingdiv["+strkey+"]").innerHTML="";
			document.getElementById("work_img["+strkey+"]").value="";
			document.getElementById("upfile["+strkey+"]").value="";
		}else{
			document.getElementById("lodingdiv").style.display="none";
			document.getElementById("lodingdiv").innerHTML="";
			document.getElementById("work_img").value="";
			document.getElementById("upfile").value="";
		}
	}
	
</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/work/infolist/" ><img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">作品列表</a> | 作品修改</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr><td>

<form action="{#$base_weburl#}/adminsys/index.php/work/editinfo" method="post"   enctype="multipart/form-data" name="formSub" id="formSub" >
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th colspan="2">修改作品</th>
</tr>
<input name="work_id" id="work_id" value="{#$info.work_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="work_name" id="work_name" value="{#$info.work_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="worksort_id" id="worksort_id"  style="width:250px;" >
<option value="">请选择上级分类</option>
{#foreach key=key item=item from=$wsInfo#}
<option value="{#$item.worksort_id#}" {#if $item.worksort_id eq $info.worksort_id#} selected="selected" {#/if#}  >{#$item.worksort_name#}</option>
	{#foreach item=spitem from=$item.array#}
	<option value="{#$spitem.worksort_id#}"   {#if $spitem.worksort_id eq $info.worksort_id#} selected="selected" {#/if#}   >|__{#$spitem.worksort_name#}</option>
	{#/foreach#}
{#/foreach#}
</select>
		</td>
</tr>



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


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>作品分类3：</strong></td>
<td class="tdd">
<select   name="worksort3_id" id="worksort3_id"  style="width:250px;" >
<option value="">请选择上级分类</option>
{#foreach key=key item=item from=$wsInfo#}
<option value="{#$item.worksort_id#}"  {#if $item.worksort_id eq $info.worksort3_id#} selected="selected" {#/if#} >{#$item.worksort_name#}</option>
	{#foreach item=spitem from=$item.array#}
	<option value="{#$spitem.worksort_id#}"   {#if $spitem.worksort_id eq $info.worksort3_id#} selected="selected" {#/if#}  >|__{#$spitem.worksort_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="work_progress" id="work_progress" value="{#$info.work_progress#}" type="text"  style="width:300px;" > 100为完成！</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>测试地址：</strong></td>
<td class="tdd"><input name="work_testdomain" id="work_testdomain" value="{#$info.work_testdomain#}" 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"><input name="work_domain" id="work_domain" value="{#$info.work_domain#}" type="text" style="width:300px;"> </td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>上传主图01：</strong></td>
<td class="tdd">      
<input type="file" id="upfile[1]" name="upfile[1]" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(1)">
<iframe name='hidden_frame[1]' id="hidden_frame[1]" style="border:none; background-color:#00CCCC;"  width="0" height="0" scrolling="no"  ></iframe>{#if $info.work_img1 eq ''#}
<input type="hidden"  name="work_img[1]" id="work_img[1]" value="" /><div id="lodingdiv[1]" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>{#else#}<input type="hidden"  name="work_img[1]" id="work_img[1]" value="{#$info.work_img1#}" /><div id="lodingdiv[1]" style="width:380px;" >{#$info.work_img1#}<img src="{#$base_weburl#}/uploads/sys/cancel.png" width="16" onclick="hiddenLoding(1)"></div>{#/if#}
</td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>上传主图02：</strong></td>
<td class="tdd">      
<input type="file" id="upfile[2]" name="upfile[2]" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(2)">
<iframe name='hidden_frame[2]' id="hidden_frame[2]" style="border:none; background-color:#00CCCC;"  width="0" height="0" scrolling="no"  ></iframe>{#if $info.work_img2 eq ''#}
<input type="hidden"  name="work_img[2]" id="work_img[2]" value="" /><div id="lodingdiv[2]" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>{#else#}<input type="hidden"  name="work_img[2]" id="work_img[2]" value="{#$info.work_img2#}" /><div id="lodingdiv[2]" style="width:380px;" >{#$info.work_img2#}<img src="{#$base_weburl#}/uploads/sys/cancel.png" width="16" onclick="hiddenLoding(2)"></div>{#/if#}
</td>
</tr>




<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>上传主图03：</strong></td>
<td class="tdd">      
<input type="file" id="upfile[3]" name="upfile[3]" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(3)">
<iframe name='hidden_frame[3]' id="hidden_frame[3]" style="border:none; background-color:#00CCCC;"  width="0" height="0" scrolling="no"  ></iframe>{#if $info.work_img3 eq ''#}
<input type="hidden"  name="work_img[3]" id="work_img[3]" value="" /><div id="lodingdiv[3]" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>{#else#}<input type="hidden"  name="work_img[3]" id="work_img[3]" value="{#$info.work_img3#}" /><div id="lodingdiv[3]" style="width:380px;" >{#$info.work_img3#}<img src="{#$base_weburl#}/uploads/sys/cancel.png" width="16" onclick="hiddenLoding(3)"></div>{#/if#}
</td>
</tr>




<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>上传主图04：</strong></td>
<td class="tdd">      
<input type="file" id="upfile[4]" name="upfile[4]" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(4)">
<iframe name='hidden_frame[4]' id="hidden_frame[4]" style="border:none; background-color:#00CCCC;"  width="0" height="0" scrolling="no"  ></iframe>{#if $info.work_img4 eq ''#}
<input type="hidden"  name="work_img[4]" id="work_img[4]" value="" /><div id="lodingdiv[4]" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>{#else#}<input type="hidden"  name="work_img[4]" id="work_img[4]" value="{#$info.work_img4#}" /><div id="lodingdiv[4]" style="width:380px;" >{#$info.work_img4#}<img src="{#$base_weburl#}/uploads/sys/cancel.png" width="16" onclick="hiddenLoding(4)"></div>{#/if#}
</td>
</tr>




<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>上传主图05：</strong></td>
<td class="tdd">      
<input type="file" id="upfile[5]" name="upfile[5]" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(5)">
<iframe name='hidden_frame[5]' id="hidden_frame[5]" style="border:none; background-color:#00CCCC;"  width="0" height="0" scrolling="no"  ></iframe>{#if $info.work_img5 eq ''#}
<input type="hidden"  name="work_img[5]" id="work_img[5]" value="" /><div id="lodingdiv[5]" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>{#else#}<input type="hidden"  name="work_img[5]" id="work_img[5]" value="{#$info.work_img5#}" /><div id="lodingdiv[5]" style="width:380px;" >{#$info.work_img5#}<img src="{#$base_weburl#}/uploads/sys/cancel.png" width="16" onclick="hiddenLoding(5)"></div>{#/if#}
</td>
</tr>




<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>上传主图06：</strong></td>
<td class="tdd">      
<input type="file" id="upfile[6]" name="upfile[6]" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(6)">
<iframe name='hidden_frame[6]' id="hidden_frame[6]" style="border:none; background-color:#00CCCC;"  width="0" height="0" scrolling="no"  ></iframe>{#if $info.work_img6 eq ''#}
<input type="hidden"  name="work_img[6]" id="work_img[6]" value="" /><div id="lodingdiv[6]" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>{#else#}<input type="hidden"  name="work_img[6]" id="work_img[6]" value="{#$info.work_img4#}" /><div id="lodingdiv[6]" style="width:380px;" >{#$info.work_img6#}<img src="{#$base_weburl#}/uploads/sys/cancel.png" width="16" onclick="hiddenLoding(6)"></div>{#/if#}
</td>
</tr>







<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>上传主图07：</strong></td>
<td class="tdd">      
<input type="file" id="upfile[7]" name="upfile[7]" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(7)">
<iframe name='hidden_frame[7]' id="hidden_frame[7]" style="border:none; background-color:#00CCCC;"  width="0" height="0" scrolling="no"  ></iframe>{#if $info.work_img7 eq ''#}
<input type="hidden"  name="work_img[7]" id="work_img[7]" value="" /><div id="lodingdiv[7]" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>{#else#}<input type="hidden"  name="work_img[7]" id="work_img[7]" value="{#$info.work_img7#}" /><div id="lodingdiv[7]" style="width:380px;" >{#$info.work_img7#}<img src="{#$base_weburl#}/uploads/sys/cancel.png" width="16" onclick="hiddenLoding(7)"></div>{#/if#}
</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="buttsubmit" id="buttsubmit" type="button" value="修 改"  onclick="submitFun(this)"  ></td>
</tr>
</table>
</form>

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


</body>
</html>