用排序串字段实现树状结构(例程——回复表单)

2016-01-29 18:00 2 1 收藏

用排序串字段实现树状结构(例程——回复表单),用排序串字段实现树状结构(例程——回复表单)

【 tulaoshi.com - ASP 】

  程序名称:revert.asp
程序功能:回复表单

<!-- #include file="lybcon.inc" --
<%
pageno=request("pageno")
keyid=request("keyid")
posttype=request("type")
if posttype="revert" then
  set guestconn=Server.CreateObject("ADODB.connection")
  guestconn.Open lybstr
  set guestrs=server.createobject("ADODB.recordset")
  sqlstr="SELECT * FROM guestbook where lybid="&keyid
  guestrs.open sqlstr,guestconn,1,1
  if guestrs.eof then response.redirect "index.asp"
end if
%
<html
<head<title软件使用留言薄回复</title
<style TYPE="text/css"
<!--
a {  text-decoration: none}
a:hover {color:#FF0000}
.submit {line-height:9pt;font-size:9pt;font-family:宋体}
td {font-family: 宋体; font-size: 9pt;background-color:ECF7FF}
.td1 {font-family: 宋体; font-size: 9pt;background-color:A2C8F2}
.td2 {font-family: 宋体; font-size: 9pt;background-color:E9EDE0}
.small1 {font-family: 宋体; font-size: 9pt;background-color:ffffff;line-height:9pt}
--
</style
</head
<body topmargin=16
<form name='revert' method='POST' action='savelyb.asp'
<input type=hidden name=posttype value='<% =posttype %'
<input type=hidden name=pageno value=<% =pageno %
<table width=100% align=center
<% if posttype="revert" then %
  <input type=hidden name=keyid value=<% =guestrs("lybid") %
  <tr style="color:red"
   <td align=center class='td1' width=70%留言标题</td
   <td align=center width=70 class='td1'<img src="http://img.jcwcn.com/attachment/portal/jcwcj/2005-12/10/05121001003683097.gif"作  者</td
   <td align=center width=100 class='td1'发表时间</td
   <td align=center width=60 class='td1' nowrap贴子字数</td
   <td align=center width=60 class='td1' nowrap贴子序号</td
  </tr
<tr
  <td style="color:red" align=center width=80%<% =guestrs("guestitle") %</td
  <td align=right width=70 nowrap<% =guestrs("guestname") % </td
  <td width=100 nowrap<% =guestrs("putdate")&" "&guestrs("puttime") %</td
  <td align=right width=60 nowrap<% =len(guestrs("guestcomm")) % </td
  <td align=right width=60 nowrap<% =guestrs("lybid") % </td
</tr
<tr<td colspan=5 style="background-color:f3F7FF" height=50 valign=top<% =guestrs("guestcomm") %<p
align=right[From:<% =guestrs("fromip") %]  </p</td</tr
<% end if %
<tr<td</td<td width=70</td<td width=100</td<td width=60</td<td width=60</td</tr
<tr<td height=16 colspan=5 style="background-color:ffffff"</td</tr
<tr<td    留言标题:<input type='text' name='guestitle' size='36' maxlength='100' class='small1'</td
     <td colspan=4    <input type='checkbox' name='emailflag'有回复请通知我</td</tr
<tr
  <td    网上昵名:<input type='text' name='guestname' size=36 maxlength=20 class='small1'</td
  <td colspan=4    邮箱地址:<input type='text' name='guestemail'

来源:https://www.tulaoshi.com/n/20160129/1503919.html

延伸阅读
熟悉MS-Windows和XWindowSystem事件驱动编程模型的开发人员,习惯于传递在某种事件发生时调用(即“回调”)的函数指针。Java的面向对象模型目前并不支持方法指针,这样似乎就不可能使用这种很好的机制。但我们并不是一点办法都没有! !-- frame contents -- !-- /frame contents -- Java的接口支持提供了一种获得回调的等价功...
标签: Web开发
SCRIPT type="text/javascript" function defaultSort(){ var a="zhishi,english,我lai,lai了,中国,测试,房地产"; a=a.split(","); a.sort(); alert(a); } function cusSort(){ var a="zhishi,english,我lai,lai了,中国,测试,房地产"; a=a.split(","); a.sort(function(a,b){   return a.localeCompare(b); }); alert(a); } /SCRIPT a hre...
标签: ASP
  数据库设计中order_value是用来排序的,具体实现是    **注意以下的讨论是对一个主题而言,就是对一棵树而言!    如果加一新贴那么  order_value=0    如果跟贴查比父贴  order_value大的order_value    如果有假设为next_value,那么新帖的 &nb...
冒泡排序的算法分析与改进 交换排序的基本思想是:两两比较待排序记录的关键字,发现两个记录的次序相反时即进行交换,直到没有反序的记录为止。 应用交换排序基本思想的主要排序方法有:冒泡排序和快速排序。 代码如下: public class BubbleSort implements SortUtil.Sort{ public void sort(int[] data) { int temp; for(int i=0...
在做一个project的时候,要对表实现任意的排序,说得明白点就是这样: 在存储过程中声明一个@parameter,然后在使用查询条件后的排序,要根据我的@parameter来实现,而我这个@parameter实际传进去的就是一个字段值。 网上Google了一下,发现有这样的例子,大多数都是以普提树的多字段任意分页的存储过程结合在一起,看起来好不复...

经验教程

801

收藏

22
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部