<!--#include file="Include/checklogin.asp"-->
<!--#include file="Include/connect.asp"-->
<!--#include file="Inc/char.asp"-->
<!--#include file="top.asp"-->
<link href="CSS/right.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
<!--

function ask(msg) {
	
	if( msg=='' ) {
		msg='真的要这样做吗？';
	}

	if (confirm(msg)) {
		return true;
	} else {
		return false;
	}
}
//-->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function winOpen(Url,width,height,scrollbar,resize)
{

ow = width;
oh = height;
os = scrollbar;
or = resize;
var xposition=0; 
var yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
  {
    xposition = (screen.width - width) / 2;
    yposition = (screen.height - height-25) / 2;
  }
  window.open (Url,"","width ="+ow+",height="+oh+",scrollbars = "+os+",resizable="+or+",left="+xposition+",top="+yposition );
}
//-->
</script>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tablecolor">
  <tr> 
    <td height="25" align="left" class="banner" style="PADDING-LEFT:15px">当前位置 &gt; 用户模板管理</td>
<%
set rs = server.CreateObject("adodb.recordset")
sql="select Top 1 * from Show5_UserTheme Order By ThemeID DESC"
rs.open sql,cn,1,1
LastThemeID=rs("ThemeID")
rs.close
set rs=nothing
%>
    <td align="left" class="banner" style="PADDING-LEFT:15px"><a href="javascript:;" onClick="javascript:winOpen('addusertheme.asp?filename=<%=LastThemeID+1%>', 360, 110, 'no','no')">添加模板</a></td>
  </tr>
</table>
<table border="0" align="center" cellpadding="0" cellspacing="1"  class="tablecolor">
  <tr > 
    <td height="25" align="center" class="tablebody">编号</td>
	<td height="25" align="center" class="tablebody">预览图</td>
    <td align="center" class="tablebody">添加时间</td>
    <td align="center" class="tablebody">操作</td>
  </tr><form name="form2" method="post" action="?action=edit" onSubmit="return checkf(form2)">
<%
strFileName="m_usertheme.asp"
pageno=15
set rs = server.CreateObject("adodb.recordset")
sql="select * from Show5_UserTheme Order By ThemeID DESC"
rs.Open sql,cn,1,1
rscount=rs.recordcount
if rs.eof or rs.bof then
response.write "暂无模板！"
else
call showsql(pageno)
rs.move(rsno)
for p_i=1 to loopno
%>
  <tr > 
    <td height="25" align="center" class="tablebody"><%=rs("ThemeID")%></td>
	<td height="25" align="center" class="tablebody" style="PADDING-TOP:5PX;PADDING-BOTTOM:5PX"><a href="../Theme/<%=rs("ThemeFilename")%>.gif" target="_blank"><img src="../Theme/<%=rs("ThemeFilename")%>.gif" width="133" height="100" border="0" align="absmiddle"></a></td>
    <td align="center" class="tablebody"><%=rs("Addtime")%></td>
    <td align="center" class="tablebody"><a class="orange" href="javascript:if(ask('真的要删除吗？')) location.href='deltheme.asp?themeid=<%=rs("ThemeID")%>';"><font color="#ff6600"> 
        删除</font></a></td>
    </tr>
<%
rs.movenext
next
end if
rs.close
set rs=nothing
%>
<tr>
    <td height="25" colspan="10" align="center" class="tablebody"><%call showpage(strFileName,rscount,pageno,false,true,"个模板")%></td>
  </tr></form>
  <tr> 
      <td colspan="10" align="right"  class="tablebody">&nbsp;</td>
  </tr>
</table>
<!--#include file="end.asp"-->