; ^9 H0 O: h3 p6 ~ if isnul(id) or not isnum(id) then alertMsgAndGo "请选择产品!","-1" + ` I% Y7 c- @& e z
) c. t4 J) l$ y p' Z9 d. n
) V% l# \8 w+ m8 u # G8 C8 }3 S2 o dim templateobj,channelTemplatePath : set templateobj = mainClassobj.createObject("MainClass.template")' h& U) V0 e& k
7 m, k8 }% q6 k/ \& _ dim typeIds,rsObj,rsObjtid,Tid,rsObjSmalltype,rsObjBigtype,selectproduct # z. O# M6 L, a; I+ m/ f / d4 R. g% S I0 @# U Dim templatePath,tempStr/ x" [& G, p5 ^# m, K+ ?: m
" \; @: _ G ]( ] ^ set rsObj=conn.Exec("select title from aspcms_news where newsID="&id,"r1") O& D* E9 R5 @7 u
7 G# W3 s9 j2 e5 R4 ]0 d5 @
selectproduct=rsObj(0) % u0 ]- D$ j5 K* o * K% z* a; E" l , E6 @! ~8 }# G" ?5 }2 o( V
- Z4 p' E% Z j: [- c
Dim linkman,gender,phone,mobile,email,qq,address,postcode- \) V& j! {) {1 E
# Y8 P! u! P: y# Q0 p
if isnul(rCookie("loginstatus")) then wCookie"loginstatus",0 4 A0 a. B i! R' t7 \9 K u ( ` d# ^% Z9 W3 h2 B. [ if rCookie("loginstatus")=1 then 1 J, e0 T. A9 S! A0 u' n7 e: Q( D1 ]5 ?! m3 m
set rsObj=conn.Exec("select * from aspcms_Users where UserID="&trim(rCookie("userID")),"r1") # n+ S$ x9 h* h0 j . L ~; ^1 i9 ]0 z) t$ U/ `3 g linkman=rsObj("truename")! P- F0 q+ {) o$ v: ~% C; R
+ Y6 C) d& a) @; w: c2 |1 c gender=rsObj("gender") 2 p# [* C C& K ! q" `% J. B/ }) N/ ?5 ] phone=rsObj("phone") $ q# g; p5 [" y" l: Y7 r9 P; x, E 2 I" \5 I8 ~' p" r8 L& K( ? mobile=rsObj("mobile") * C: v8 x7 s5 g0 L2 d* U8 s/ v8 _2 |' n ~( d- w5 k. T
email=rsObj("email") 5 b5 L) ~0 W; `: @5 u# v% G) Y0 `) P" O" H, ]
qq=rsObj("qq") ; v4 R+ x$ [ [9 ]0 G- G" E- ]3 l , ^" W, {4 C! w( G address=rsObj("address")0 l }- A; }. r- C! d! _% h
2 m( g' z0 I5 ] postcode=rsObj("postcode"). r* ^& D1 b4 |3 I: C+ c
. @6 w1 E( r7 V- I, p% v" L
else 8 \' S- v* [; A% N8 Q4 x& ^( t
' F, K& X6 G% ?/ O: k- |( p
gender=1, O; I5 B1 y. d4 e+ F
. Q$ S4 J7 E+ Q' n0 N$ R, U
end if& S! j4 o v9 ?: }$ }& t
) Y4 z5 v; y m2 g2 q# [
rsObj.close() 1 V) V( Q! ^: p G: k, Z! I2 L; @3 K6 x- r, f/ v2 U: A/ c
' Z2 ~/ Y1 U `& M/ t" H' q: G; w; m5 d0 t
with templateObj 3 Q- V f+ R/ ~. j+ O# T$ U5 ` ) X z" H: e+ c. f+ R, M$ f% `* Q .content=loadFile(templatePath) . a/ I; _( O, m
8 o8 Q9 [) z. p, r
.parseHtml() : s% i/ Q. ^) B* V. v0 }: v- W- l& D . z3 p! P/ p7 j1 |8 T- o .content=replaceStr(.content,"{aspcms:selectproduct}",selectproduct), Q1 ^5 _1 `, o
( O* d2 Z1 j) o7 w3 S .content=replaceStr(.content,"[aspcms:linkman]",linkman) ! p/ O% K' p, A3 ^' A) p& b2 q
5 u( M; T# O; O( k# y, T& P) ` .content=replaceStr(.content,"[aspcms:gender]",gender) 4 L5 S( r0 p3 q2 U 7 D }8 Y; M: @! m8 l .content=replaceStr(.content,"[aspcms:phone]",phone) : s7 ~4 F+ r9 M! Z- D6 f