<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_case_manger" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="inc/admin_style.css" rel="stylesheet" type="text/css" /><link href="inc/style.css" rel="stylesheet" type="text/css" />
<title><%=AppConst.SiteName%></title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script type="Text/JavaScript" language="javascript">
function selectall(){
	for(i=0;i!=document.news.elements.length;i++){
		document.news.elements[i].checked=!document.news.elements[i].checked;
	}
}
</script>
</head>

<body><table style="background-color:#A6D7FF; width:100%" border="0" cellpadding="0" cellspacing="1">

  <tr>
    <td style="height:24" class="topbg"><div align="center"><strong>网站信息配置</strong></div></td>
  </tr>
</table>
<table style="width:100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td style="height:27; width:30" align="center"><img src="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/gojump01.gif" width="16" height="16" /></td>
    <td><a href="Admin_site_config.aspx">网站信息配置</a> | <a href="channel_manage.aspx">文章频道管理</a> | <a href="Admin_Classlist.aspx">行业类别管理</a> | <a href="Ad_hdp_add.aspx">幻灯广告管理</a> | <a href="Admin_xunjialist.aspx">留言询价管理</a><a href="Ad_hdp_add.aspx"></a> | <a href="Links_manger.aspx">友情链接管理</a> | 

 
    <a href="Ad_info_tuijian.aspx">信息推荐管理</a> </td>
  </tr>
</table>
<table style="width:100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
  <form name="form1" method="post" action="case_manger.aspx?action=save">
    <tr> 
      <td colspan="2" class="Title"><div align="center"><strong>添加成功案例</strong></div></td>
    </tr>
    <tr class="tdbg"> 
      <td style="height:-2; width:18%" align="center"><strong>案例名称:</strong></td>
      <td style="width:82%"><input name="title" type="text" id="title" style="width:300" size="20" />
      *</td>
    </tr>
    <tr class="tdbg">
      <td style="height:-1; width:18%" align="center"><strong>链接地址:</strong></td>
      <td><input name="siteurl" type="text" id="siteurl" style="width:300" size="20" />
      *</td>
    </tr>
	<tr class="tdbg">
      <td style="height:-1; width:18%" align="center"><strong>图片预览:</strong></td>
      <td><input name="upphoto" type="text" id="upphoto" style="width:300" size="20" readonly="readonly" /><input type="button" name="Submit2" value="上传图片" onclick="window.open('../../Include/load.aspx?formname=form1&editname=upphoto&uppath=/ad/case/&imagename=&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')" />
      注：请尽量将图片设置为正方形，且大小不得超过200像素X200像素</td>
    </tr>
	<tr class="tdbg">
      <td style="height:-1; width:18%" align="center"><strong>简短说明:</strong></td>
      <td><textarea name="Comment" cols="20" rows="4" id="Comment" style="width:300"></textarea>
      *</td>
    </tr>
    <tr class="tdbg">
      <td style="height:-2; width:18%" align="center"><strong>是否推荐:</strong></td>
      <td><input name="unit" type="radio" value="0" checked="checked" />
        不推荐　
          <input name="unit" type="radio" value="1" />
      推荐</td>
    </tr>
	<tr class="tdbg">
      <td style="height:-2; width:18%" align="center"><strong>是否固顶:</strong></td>
      <td><input name="ontop" type="radio" value="0" checked="checked" />
        不固顶　
          <input name="ontop" type="radio" value="1" />
      固顶</td>
    </tr>
    <tr align="center" class="tdbg">
      <td style="height:15" colspan="2"><input type="submit" name="Submit" value="添 加" class="input" /></td>
    </tr>
  </form>
</table>
<br>
<table style="height:0; width:100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
    <form name="news" id="news" method="post" action="?action=delall">
    <tr align="center" class="Title"> 
      <td style="width:20"><div align="center"><strong>ID</strong></div></td>
      <td style="width:120"><div align="center"><strong>案例名称</strong></div></td>
      <td style="width:200"><div align="center"><strong>图片预览</strong></div></td>
      <td><strong>链接地址</strong></td>
      <td style="width:80"><div align="center"><strong>案例类别</strong></div></td>
      <td style="width:70"><div align="center"><strong>操 作</strong></div></td>
  </tr>
  <%Dim num = 0 : Do While Not Rs.EOF AndAlso num < Rs.PageSize%>
    <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
      <td><div align="center"><%=rs("id").Value%></div></td>
      <td><div align="center"><%=rs("title").Value%></div></td>
      <td style="height:100"><div align="center"><div align="center">
          <%If IsNull(rs("upphoto").Value) Then%>暂无图片<%Else%>
          <a href="../Include/Url.aspx?url=<%=rs("siteurl").Value%>" target="_blank"><img src="../ad/case/<%=rs("upphoto").Value%>" width="90" height="90" border="0" /></a><%End If%>
      </div></div></td>
      <td><strong>链接地址：</strong><a href="<%=rs("siteurl").Value%>" target="_blank"><%=rs("siteurl").Value%></a><br>
	    <strong>简要说明：</strong><%=rs("Comment").Value%></td>
      <td><div align="center">
        <%If IsTrue(rs("unit").Value) Then%>
        推荐
        <%Else%>
        不荐
        <%end if : if IsTrue(rs("ontop").Value) then%>
        固顶
        <%Else%>
        不顶
        <%End If%>
      </div></td>
      <td><div align="center"><a href="case_edit.aspx?id=<%=rs("id").Value%>">修改</a>　<a href="case_manger.aspx?action=del&id=<%=rs("id").Value%>">删除</a>&nbsp;<input type="checkbox" name="id" value="<%=rs("id").Value%>" class="box1" />
      </div></td>
    </tr>
 <%num=num+1:rs.movenext():loop%>
        <tr>
          <td style="height:22" colspan="6"><div align="right"><input type="button" name="Submit22" value="反选" onclick="selectall()" />
            <input type="submit" name="Submit2" value="删除所选" /></div></td>
        </tr>
      </form>
</table>
<table style="width:100%"  border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td style="height:22"><%=Pagination(rs.pagecount,IsNull(Request("page"),1),rs.recordcount,rs.pagesize)%></td>
  </tr>
</table>
</body>
<%Page_Loaded()%>
</html>
