⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trnlist.asp

📁 财务管理系统 报账等基本功能实现 有完整的实现
💻 ASP
字号:
<!--#include file="../../Conndb.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>培训管理</title>
<link href="../../style.css" rel="stylesheet">
<script language="javascript">
function newView(url) {
  var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
  oth = oth+",width=600,height=500";
  var newView=window.open(url,"newView",oth);
  newView.focus();
  return false;
}
function newView1(url) {
  var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
  oth = oth+",width=400,height=200";
  var newView1=window.open(url,"newView1",oth);
  newView1.focus();
  return false;
}
</script>
</head>
<body link="#000080" vlink="#080080">
<form id="form1" name="form1" method="POST">

<p align="center"><font color="#000080"><b><font style="font-size: 12pt">培 训 管 理</font></b></font></p> 
<table align=center border="1" cellspacing="0" width="100%" bordercolorlight="#000080" bordercolordark="#FFFFFF">
  <tr>
   <td width="20%" align="center" bgcolor="#C1E0FF"><strong>培训主题</strong></td>
   <td width="14%" align="center" bgcolor="#C1E0FF"><strong>培训类型</strong></td>
   <td width="14%" align="center" bgcolor="#C1E0FF"><strong>主题类型</strong></td>
   <td width="12%" align="center" bgcolor="#C1E0FF"><strong>状态</strong></td>
   <td width="12%" align="center" bgcolor="#C1E0FF"><strong>开始日期</strong></td>
   <td width="12%" align="center" bgcolor="#C1E0FF"><strong>结束日期</strong></td>
   <td width="16%" align="center" bgcolor="#C1E0FF"><strong>操作</strong></td>
  </tr>
<%
  Dim rs
  Set rs = Server.CreateObject("ADODB.RecordSet")
  '读取数据到记录集rs中
  sql = "SELECT t.*,(CASE WHEN t.tTypeId=0 THEN '内部培训' ELSE '外部培训' END) AS ttype,s.TypeName" & _
       " FROM Training t,Types s WHERE t.sTypeId*=s.TypeId"
  rs.Open sql,conn,1,1
  '在表格中显示记录
  If rs.Eof Then
    Response.Write "<tr><td colspan=7 align=center>目前还没有记录。</td></tr></table>"
  Else
    Do While Not rs.EOF
 %>
  <tr>
    <td><a href="TrnView.asp?tid=<%=rs("Id")%>" onClick="return newView(this.href)"><%=rs("Subject")%></a></td>
	<td align="center"><%=rs("ttype")%>&nbsp;</td>
	<td align="center"><%=rs("TypeName")%>&nbsp;</td>
	<td align="center"><%=rs("Status")%>&nbsp;</td>
	<td align="center"><%=rs("StartDate")%>&nbsp;</td>
	<td align="center"><%=rs("EndDate")%>&nbsp;</td>
    <td align="center">
<%If rs("Status")="创建" Then%>
  <a href="TrnEdit.asp?action=edit&tid=<%=rs("Id")%>" onClick="return newView(this.href)">修改</a>&nbsp;
  <a href="TrnPublish.asp?tid=<%=rs("Id")%>" onClick="if(confirm('确定要发布培训信息吗?')){return newView1(this.href);}return false;">发布</a>
<%End If%>
    <a href="TrnDelt.asp?tid=<%=rs("Id")%>" onClick="if(confirm('确定要删除记录吗?')){return newView1(this.href);}return false;">删除</a>&nbsp;
    </td>
  </tr>
  <%
      rs.MoveNext()
    Loop
  %>
</table>
<%End If%>
		
		<p align="center">
		<input type="button" value="新建培训信息" onclick="newView('TrnEdit.asp?action=add')" name=add></p>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -