<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!-- #include file="inc/Session.asp" -->
<!-- #include file="inc/util.asp" -->
<!-- #include file="inc/checkrole.asp" -->
<HTML>
<HEAD>
<TITLE>查看计划</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<style>
body,td,input,textarea {font-size:9pt}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	color: #FFFFFF;
	font-weight: bold;
	font-size: 12pt;
}
</style>
<script language="JavaScript" type="text/JavaScript">

function ConfirmDel()
{
   if(confirm("确认删除？，并且不能恢复！确定要删除此信息吗？"))
     return true;
   else
     return false;
	 
}
</script>
</HEAD>
<BODY>
<%
'''''''''''''''''''''''''''''''''''''''''''''''
'call checkPrevilege(Session("Name"),"p0000")
'''''''''''''''''''''''''''''''''''''''''''''''
%>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><iframe src="right_top.htm" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" height="30" width="100%"></iframe></td>
  </tr>
</table>
<%
dim id,task_name,task_content,task_date
if not isempty(request("id")) then
	id=Clng(request.QueryString("id"))
else
	response.Write("<script>alert(""没有记录"");history.back();</script>")
	response.End()
end if
'库
	set rs=server.createobject("adodb.recordset")
	sql="select top 1 * from t_task where admin_name='"&UserName&"' and id="&id&" order by id desc "
	rs.open sql,conn,3,1
	if not rs.eof and not rs.bof then
		task_name=rs("task_name")
		task_content=rs("task_content")
		task_date=rs("task_date")
	else
		response.Write("<script>alert(""该任务不存在或已删除!"");location.href=""calender.asp"";</script>")
		response.End()
	end if
	rs.close
	set rs=nothing
%>
  <TABLE width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#666666">
<TR bgcolor="#FF9900">
  <TD height="24" colspan="2"><div align="center" class="style1">查看计划</div></TD>
  </TR>
<TR bgcolor="#F5F5F5">
  <TD width="32%"><div align="right">计划名称：</div></TD>
  <TD width="68%"><%=task_name%></TD>
</TR>
<TR bgcolor="#F5F5F5">
  <TD><div align="right">计划内容：</div></TD>
  <TD height="60" valign="top" bgcolor="#FFFFFF"><div align="left">
    <%=task_content%>
</div></TD>
</TR>
<TR bgcolor="#F5F5F5">
  <TD><div align="right">计划日期：</div></TD>
  <TD><%=task_date%></TD>
</TR>
<TR bgcolor="#F5F5F5">
	<TD height="50" colspan="2" align=right bgcolor="#F5F5F5">	  <div align="center"><a href="task_mod.asp?id=<%=id%>">编辑</a> &nbsp;&nbsp;<a href="dele.asp?id=<%=id%>&table=t_task" onClick="return ConfirmDel()">删除</a>&nbsp;&nbsp; <a href="#" onClick="history.back();">返回</a></div></TD>
    </TR>
</TABLE>
</BODY>
</HTML>
<%
call connclose()
%>