|
|
|
俵ÀÌ / 2001-12-01 / ¿ÀÈÄ 5:21:19 / 203.255.3.190
Á¶È¸¼ö : 131
|
[Áú¹®] ÀÚ·á½Ç ¼öÁ¤ºÎºÐÀε¥.... |
> ¾Æ¹«·± ¹ÝÀÀÀÌ ¾ø¾î¿ä.. ¼öÁ¤µµ ¸øÇϱ¸.... ¿¡·¯µµ ¾ø±¸... ¿Ö ÀÌ·¯´ÂÁö...
>
> ÀÚ·á½Ç ¼öÁ¤ºÎºÐ ¼Ò½º ÀÔ´Ï´Ù.
>
> ¿¡·¯µµ ¾ø´Âµ¥ ¹ÝÀÀµµ ¾ø³×¿ä... ±×³É ºó°ø°£¸¸ ´ú··~
>
>
>
> ÀÚ·á½Ç ¼öÁ¤ºÎºÐÀε¥.... ¼öÁ¤ÆäÀÌÁö¿¡¼ ¾Æ¹«·± ¿¡·¯¸Þ¼¼Áöµµ ¾øÀÌ ¾Ï°Íµµ ¾È³ª¿Í¿ä.. ¿Ö ÀÌ·²±î¿ä...
>
>
> elseif method="edit" then
>
> num=cint(UploadForm("num"))
> page=cint(UploadForm("page"))
>
> content_num = UploadForm("content_num")
> content_num = Replace(content_num," ","....")
> content_num = trim(Replace(content_num,"'","''"))
>
> record_date = UploadForm("record_date")
> record_date = Replace(record_date," ","....")
> record_date = trim(Replace(record_date,"'","''"))
>
> hname = UploadForm("hname")
> hname = Replace(hname," ","....")
> hname = Trim(Replace(hname,"'","''"))
>
> place = UploadForm("place")
> place = Replace(place," ","....")
> place = Trim(Replace(place,"'","''"))
>
> branch = UploadForm("branch")
> branch = Replace(branch," ","....")
> branch = Trim(Replace(branch,"'","''"))
>
> couplet_title = UploadForm("couplet_title")
> couplet_title = Replace(couplet_title," ","....")
> couplet_title = Trim(Replace(couplet_title,"'","''"))
>
>
> announcement = UploadForm("announcement")
> announcement = Replace(announcement," ","....")
> announcement = Trim(Replace(announcement,"'","''"))
>
>
> issue = UploadForm("issue")
> issue = Replace(issue," ","....")
> issue = Trim(Replace(issue,"'","''"))
>
>
> summary = UploadForm("summary")
> summary = Replace(summary," ","....")
>
> passwd=Trim(UploadForm("passwd"))
>
> sqlmStr="select passwd from uos_uis where num='"&num&"'"
> Set rsm = DbCon.Execute(sqlmStr)
> rsm_pass=rsm(0)
> rsm.close
> set rsm=nothing
>
> if rsm_pass=passwd then
> sql="UPDATE test SET content_num='"&content_num&"', record_date='"&record_date&"',
> hname='"&hname&"',place='"&place&"', writeday=now(),
> branch='"&branch& "',couplet_title='"&couplet_title&"',announcement='"&announcement&"',issue='"&issue&"',s
> ummary='"&summary&"' "
> sql = sql & " WHERE num=" & num
> DbCon.Execute(sql)
> else
> response.redirect "edit.asp?sort1="&sort1&"&sort2="&sort2&"&page="&page&"&num="&num
> end if
>
> re="couplet_list.asp?sort1="&sort1&"&sort2="&sort2&"&page="&page
> response.redirect re
> DbCon.Close
>
>
>
>
>
> ÀÚ·á½Ç ¼öÁ¤ºÎºÐ ¼Ò½º ÀÔ´Ï´Ù.
>
> ¿¡·¯µµ ¾ø´Âµ¥ ¹ÝÀÀµµ ¾ø³×¿ä... ±×³É ºó°ø°£¸¸ ´ú··~
>
>
>
> ÀÚ·á½Ç ¼öÁ¤ºÎºÐÀε¥.... ¼öÁ¤ÆäÀÌÁö¿¡¼ ¾Æ¹«·± ¿¡·¯¸Þ¼¼Áöµµ ¾øÀÌ ¾Ï°Íµµ ¾È³ª¿Í¿ä.. ¿Ö ÀÌ·²±î¿ä...
>
>
> elseif method="edit" then
>
> num=cint(UploadForm("num"))
> page=cint(UploadForm("page"))
>
> content_num = UploadForm("content_num")
> content_num = Replace(content_num," ","....")
> content_num = trim(Replace(content_num,"'","''"))
>
> record_date = UploadForm("record_date")
> record_date = Replace(record_date," ","....")
> record_date = trim(Replace(record_date,"'","''"))
>
> hname = UploadForm("hname")
> hname = Replace(hname," ","....")
> hname = Trim(Replace(hname,"'","''"))
>
> place = UploadForm("place")
> place = Replace(place," ","....")
> place = Trim(Replace(place,"'","''"))
>
> branch = UploadForm("branch")
> branch = Replace(branch," ","....")
> branch = Trim(Replace(branch,"'","''"))
>
> couplet_title = UploadForm("couplet_title")
> couplet_title = Replace(couplet_title," ","....")
> couplet_title = Trim(Replace(couplet_title,"'","''"))
>
>
> announcement = UploadForm("announcement")
> announcement = Replace(announcement," ","....")
> announcement = Trim(Replace(announcement,"'","''"))
>
>
> issue = UploadForm("issue")
> issue = Replace(issue," ","....")
> issue = Trim(Replace(issue,"'","''"))
>
>
> summary = UploadForm("summary")
> summary = Replace(summary," ","....")
>
> passwd=Trim(UploadForm("passwd"))
>
> sqlmStr="select passwd from uos_uis where num='"&num&"'"
> Set rsm = DbCon.Execute(sqlmStr)
> rsm_pass=rsm(0)
> rsm.close
> set rsm=nothing
>
> if rsm_pass=passwd then
> sql="UPDATE test SET content_num='"&content_num&"', record_date='"&record_date&"',
> hname='"&hname&"',place='"&place&"', writeday=now(),
> branch='"&branch& "',couplet_title='"&couplet_title&"',announcement='"&announcement&"',issue='"&issue&"',s
> ummary='"&summary&"' "
> sql = sql & " WHERE num=" & num
> DbCon.Execute(sql)
> else
> response.redirect "edit.asp?sort1="&sort1&"&sort2="&sort2&"&page="&page&"&num="&num
> end if
>
> re="couplet_list.asp?sort1="&sort1&"&sort2="&sort2&"&page="&page
> response.redirect re
> DbCon.Close
>
>
>
-----------------------------------------------------------
¾Æ¹«°Íµµ ¾È ³ª¿Â´Ù¸é... ¼Ò½º º¸±â¸¦ Çؼ ¼Ò½º¸¦ º¸¼¼¿ä...
Ȥ½Ã űװ¡ À߸ø ´ÝÃļ ¾È ³ª¿Ã ¼öµµ ÀÖ°Å´ø¿ä...
±×·¸Ä¡ ¾Ê´Ù¸é redirect°¡ ¾È ÀϾ´Â ¹®Á¦ÀÏ ¼öµµ ÀÖÁö¿ä...
¼öÁ¤ÈÄ¿¡ url âÀÌ À̵¿ÇÏ´ÂÁö »ìÆì º¸¼¼¿ä....
¾Æ´Ï¸é À̵¿½Ã¿¡ ³Ñ¾î°¡´Â ÆĶó¸ÞÆ®ÀÇ À߸øÀ¸·Î
³Ñ¾î°£ ÆäÀÌÁö¿¡¼ À߸øµÈ ¿¬»êÀÌ ¼öÇàµÉ ¼ö ÀÖ±¸¿ä...
¹ß»ýÇÒ ¼ö ÀÖ´Â °¡´É¼º¿¡ ´ëÇØ Â÷±ÙÂ÷±Ù ºÐ¼®ÇØ º¸¼¼¿ä..
±×·³ ÁÁÀº °á°ú°¡ ÀÖÀ»°Ì´Ï´Ù.
¼ö°íÇϼ¼¿ä...
|
|
|
|