<!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 idaddvoi_name 		= document.getElementById('addvoi_name');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');
		if(idaddvoi_name.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：选项名称不能为空！请输入！';
			idaddvoi_name.focus();
			return false;
		}
		document.formSub.submit(); 
}

function subEditItem(keyid)
{
		/*修改选项*/
		var sidval 				= document.getElementById('editsid['+keyid+']');
		var nval 				= document.getElementById('editn['+keyid+']');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');
		if(sidval.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：分类ID不能为空！(分类0表示全部分类)请输入！';
			sidval.focus();
			return false;
		}
		if(nval.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：信息列表数量不能为空！请输入！';
			nval.focus();
			return false;
		}
		document.formSub.action="{#$base_weburl#}/adminsys/index.php?load=personal&act=edititem&key="+keyid;
		document.formSub.submit(); 
}

function subEditLeftItem()
{
		document.formSub.action="{#$base_weburl#}/adminsys/index.php?load=personal&act=editleftitem";
		document.formSub.submit(); 
}

function subaddRightItem()
{
		/*添加选项*/
		var sidval 		= document.getElementById('sid');
		var nval 		= document.getElementById('n');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');
		if(sidval.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：分类ID不能为空！(分类0表示全部)请输入！';
			sidval.focus();
			return false;
		}
		if(nval.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：信息列表数量不能为空！请输入！';
			nval.focus();
			return false;
		}
		
		document.formSub.action="{#$base_weburl#}/adminsys/index.php?load=personal&act=editadditem";
		document.formSub.submit(); 
}

function delItem(keyid)
{
	if(confirm('你确认要删除操作！'))
	{ 
		var keyid = keyid;
		document.formSub.action="{#$base_weburl#}/adminsys/index.php?load=personal&act=delitem&key="+keyid;
		document.formSub.submit(); 
		 
	 }else{ 
	 	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?load=personal&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_personalitem-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="{#$base_weburl#}/adminsys/index.php?load=personal&act=additem" 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="3">个性栏目选项修改</th>
</tr>

<input name="per_id" id="per_id" value="{#$info.per_id#}" type="hidden"  style="width:250px;" >

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>投票名称：</strong></td>
<td class="tdd">{#$info.per_name#}</td>
<td class="tdcenter"><strong>操作</strong></td>
</tr>
 

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>类型标识：</strong></td>
<td class="tdd">{#$info.per_type#}<br />访问地址：<a href="{#$base_weburl#}/?load=personal&act=index&type={#$info.per_type#}" target="_blank">{#$base_weburl#}/?load=personal&act=index&type={#$info.per_type#}</a></td>
<td class="td">&nbsp;</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>是否有效：</strong></td>
<td class="tdd">{#$_LANG.enabledArray[$info.per_enabled]#}</td>
<td class="td">&nbsp;</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="3"  class="tdcenter"> </td>
</tr>

{#foreach item=mainitem key=mainkey from=$mainArray#}
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>主栏目内容选项：</strong></td>
<td class="tdd">{#foreach item=item key=key  from=$_LANG.mainArray#}{#$item#}<input name="editcon[{#$mainkey#}]" id="editcon[{#$mainkey#}]" value="{#$key#}" type="radio" style="width:20px;" {#if $mainitem.con eq $key#} checked="checked" {#/if#} >{#/foreach#}，分类ID：<input name="editsid[{#$mainkey#}]" id="editsid[{#$mainkey#}]" value="{#$mainitem.sid#}" type="text" style="width:20px;">，数量：<input name="editn[{#$mainkey#}]" id="editn[{#$mainkey#}]" value="{#$mainitem.n#}" type="text" style="width:20px;"></td>
<td class="tdcenter"><input type="button" value="修改选sss项" name="upbutton" onclick="return subEditItem({#$mainkey#})"  />&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="delitem" value="删除该项" onclick="return delItem('{#$mainkey#}')" /></td>
</tr>
{#/foreach#}
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="3"  class="tdcenter"> </td>
</tr>
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>添加主栏目内容（中间栏目）：</strong></td>
<td class="tdd">{#foreach item=item key=key  from=$_LANG.mainArray#}{#$item#}<input name="con" id="con" value="{#$key#}" type="radio" style="width:20px;" checked="checked">{#/foreach#}，分类ID：<input name="sid" id="sid" value="" type="text" style="width:20px;">，数量：<input name="n" id="n" value="" type="text" style="width:20px;"></td>
<td class="tdcenter">&nbsp;<input name="buttonadd" id="buttonadd" type="button" value="添加选项sss"  onclick="return subaddRightItem(this)"></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="3"  class="tdcenter"> </td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>添加边栏目内容（左边栏目）：</strong></td>
<td class="tdd">{#foreach item=item key=key  from=$_LANG.columnArray#}{#$item#}<input name="per_column[{#$key#}]" id="per_column[{#$key#}]" value="{#$key#}" type="checkbox" {#if $per_column[$key] eq $key#}  checked="checked" {#/if#}><br />{#/foreach#}</td>
<td class="tdcenter">&nbsp;<input name="buttonadd" id="buttonadd" type="button" value="修改边栏"  onclick="return subEditLeftItem(this)"></td>
</tr>
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="3"  class="tdcenter"></td>
</tr>


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

</table>
</form>
</div>
</td></tr>
<tr><td></td></tr>
</table>

	
</body>
</html>