6 i+ g* |1 r% j dim id - S2 q" X( b* p A& F+ u1 T- K 2 v' P3 l7 A5 G4 ~ id=getForm("id","get")! T L8 Y) d% ?" M
+ \, l- S0 }$ n& Y 7 ?/ F' A# v# Y6 A* a" d; E; |
6 Y1 @$ J8 V# `" C. u0 I/ w+ a- I
if isnul(id) or not isnum(id) then alertMsgAndGo "请选择产品!","-1" " m, g# s4 w; J% T2 S# D+ H
9 E H2 W5 r5 y6 [ 4 f1 t( n9 G" J1 n4 H/ J
# E1 g+ z$ i0 P6 B- T0 {
dim templateobj,channelTemplatePath : set templateobj = mainClassobj.createObject("MainClass.template"): u9 R0 u/ d( F. y6 ?6 |- q
( U3 c, g: g0 h- M! Y* i+ X; Q . D+ m& k& U* m# W: s1 F# @) F Dim linkman,gender,phone,mobile,email,qq,address,postcode / g. Y9 X: A7 G7 h, V5 V: S! L" ~2 {+ j w6 T. }( c5 ^
if isnul(rCookie("loginstatus")) then wCookie"loginstatus",0% P5 Q% S3 {0 j V
9 e9 T2 }4 y. k5 y if rCookie("loginstatus")=1 then 4 f) _7 e; \, @' t2 u% f ; i. b) |) \2 J2 e) y# s- W+ o& F) { set rsObj=conn.Exec("select * from aspcms_Users where UserID="&trim(rCookie("userID")),"r1")* M5 A6 w2 c& G; t1 X
: z3 D. J( t5 t* \- e! s$ w# a2 c
linkman=rsObj("truename")+ n3 @7 S- p( l4 p+ R' P
9 q8 G% P# @# u J' R gender=rsObj("gender") 4 v- E( G6 Q0 J& c2 ]$ ?. u! N 9 z% i3 v) H. \; Q2 R phone=rsObj("phone"). m% l8 I& @' U. q: Q' ?8 M7 y5 Y
' y; j/ S1 H4 r. Y4 n! o9 I% W
mobile=rsObj("mobile")6 S7 Y5 @1 M f
) o2 _4 B# l6 N3 f6 V email=rsObj("email"); n2 h* C2 i; m6 P
$ `' M' ^) k1 _
qq=rsObj("qq") : B7 Y! }2 F. v 7 G, S: z8 R# `/ b address=rsObj("address")2 a. D8 S' t) m: W1 E
2 o- V% |( T& R
postcode=rsObj("postcode")2 f5 m, P$ v, J" o1 Q6 v9 b
3 N5 R$ M8 l/ n' f2 K5 J else 7 c- ?6 ` m4 b% |
& y2 p2 R3 m1 T+ S) _. N
gender=1; W# e! Q/ Z4 c
; c$ B4 {8 y9 g
end if 5 J; }2 p0 j9 G: u/ Y ~ . }: O2 o0 |0 @- C* X' c+ m" F rsObj.close() 3 u& M3 u" c4 J" H( o1 u 9 s' q# |; J" t+ X5 Q5 Y - n$ I& t0 v0 w- F; Q* ^
' }% g5 q2 P5 X0 V+ I+ ?) M
with templateObj * M/ c( p6 {( ] L+ z1 V# x2 p3 X! H% r 3 _% B S- \6 ~5 d, N .content=loadFile(templatePath) ) n) u' e4 |1 H V' B
. j& D2 e" p$ Z5 R0 _7 h8 F" j( J
.parseHtml() % r5 M, t q' q3 ` ; n# x4 m' Y* g+ T2 m3 M+ N .content=replaceStr(.content,"{aspcms:selectproduct}",selectproduct)( l/ V2 a; l* ?1 f: r1 N
4 o% B' B' A% K4 E7 G .content=replaceStr(.content,"[aspcms:linkman]",linkman) , d! d8 w2 M/ E( b4 |& z7 N1 I. b* }+ z8 _* Q( N- _: f1 V2 _1 Q
.content=replaceStr(.content,"[aspcms:gender]",gender) 6 ?& S" w' Y) R( p [
4 G c# _" S3 ^) K
.content=replaceStr(.content,"[aspcms:phone]",phone) . y& ~( H* q6 ^' {3 W/ H/ t