i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ E _ a d d U s e r ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ E _ a d d U s e r ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ C o u n t _ a d d C l i c k ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ C o u n t _ a d d C l i c k ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ C o u n t _ a d d I p C l i c k ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ C o u n t _ a d d I p C l i c k ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ C o u n t _ a d d J s C l i c k ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ C o u n t _ a d d J s C l i c k ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ C o u n t _ a d d J s I p C l i c k ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ C o u n t _ a d d J s I p C l i c k ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ C o u n t _ a d d J s N u m ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ C o u n t _ a d d J s N u m ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ C o u n t _ a d d N u m ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ C o u n t _ a d d N u m ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ F a v r i t e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ F a v r i t e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ F i n d K e y ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ F i n d K e y ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ M o v e M e n u ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ M o v e M e n u ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ S a v e O p t i o n ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ S a v e O p t i o n ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ S a v e P o w e r ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ S a v e P o w e r ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ S a v e T a b I n t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ S a v e T a b I n t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ S a v e V o t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ S a v e V o t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ S i g n F o r ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ S i g n F o r ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ T e n d e r S a v e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ T e n d e r S a v e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ U s e r D e l I n t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ U s e r D e l I n t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ a d d U s e r ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ a d d U s e r ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c h a n g e M i d K e y ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c h a n g e M i d K e y ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c h a n g e M o n e y ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c h a n g e M o n e y ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c h a n g e M y C a r t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c h a n g e M y C a r t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c h e c k I s D e l ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c h e c k I s D e l ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c h e c k U s e r ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c h e c k U s e r ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c l e a r T a b l e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c l e a r T a b l e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c l e a r l F i l e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c l e a r l F i l e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c l e a r l M e n u ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c l e a r l M e n u ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c o n t r i b u t e A d d ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c o n t r i b u t e A d d ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c r e a t e L a b e l I c o ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c r e a t e L a b e l I c o ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c r e a t e M e n u ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c r e a t e M e n u ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ c r e a t e R o o m ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ c r e a t e R o o m ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l B b s M a i n ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l B b s M a i n ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l B b s R e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l B b s R e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l E x a m i n e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l E x a m i n e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l F i l e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l F i l e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l G r o u p ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l G r o u p ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l I n t p u F i l e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l I n t p u F i l e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l M e n u ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l M e n u ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l M s g ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l M s g ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l M y C a r t I t e m ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l M y C a r t I t e m ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l R e v i e w ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l R e v i e w ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l T e n d e r ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l T e n d e r ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l U p F i l e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l U p F i l e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d e l m e n u I n t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d e l m e n u I n t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ d i s p l a y T a b S e t u p ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ d i s p l a y T a b S e t u p ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ g e t G u e s t G r o u p ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ g e t G u e s t G r o u p ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ h a s C a r t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ h a s C a r t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ i n p u t B B S ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ i n p u t B B S ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ i n t 2 a d d ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ i n t 2 a d d ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ i s T e n d e r ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ i s T e n d e r ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ l o c k e d B b s P o s t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ l o c k e d B b s P o s t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ m o d i M e n u ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ m o d i M e n u ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ m o d i T a b C l a s s ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ m o d i T a b C l a s s ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ m o d i U s e r ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ m o d i U s e r ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ o r d e r L i s t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ o r d e r L i s t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ o r d e r L i s t L o g ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ o r d e r L i s t L o g ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ r e a d D a t a _ P a g e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ r e a d D a t a _ P a g e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ r e a d D a t a _ i d P a g e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ r e a d D a t a _ i d P a g e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ r e a d M a x I D ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ r e a d M a x I D ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e B b s L o g ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e B b s L o g ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e B b s P o s t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e B b s P o s t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e B b s R e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e B b s R e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e F i l e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e F i l e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e I m g S e t u p ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e I m g S e t u p ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e I n t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e I n t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e M s g ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e M s g ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e M u l t i y G o o d s ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e M u l t i y G o o d s ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e O r d e r ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e O r d e r ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e O r d e r B y C a r t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e O r d e r B y C a r t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e R e v i e w ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e R e v i e w ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e S i g n F o r ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e S i g n F o r ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e T D a t a ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e T D a t a ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e U s e r C o n f i g ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e U s e r C o n f i g ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e U s e r M o d i C o n t e n t ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e U s e r M o d i C o n t e n t ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e W e b I n f o ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e W e b I n f o ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s a v e _ G r o u p N a m e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s a v e _ G r o u p N a m e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s e t B b s E l i t e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s e t B b s E l i t e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s e t B b s T o p ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s e t B b s T o p ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s e t D a t e N e w D a t e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s e t D a t e N e w D a t e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s e t D e f a u l t G r o u p ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s e t D e f a u l t G r o u p ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s e t G u e s t G r o u p ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s e t G u e s t G r o u p ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s e t N e w F i e l d ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s e t N e w F i e l d ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ s e t P a s s ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ s e t P a s s ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ t e n d e r P a y ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ t e n d e r P a y ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ t e n d e r _ i s O v e r ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ t e n d e r _ i s O v e r ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ u n D e l F i l e ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ u n D e l F i l e ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ u n D e l M e n u ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ u n D e l M e n u ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ u p P r x y ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ u p P r x y ] 
 
 G O 
 
 
 
 i f   e x i s t s   ( s e l e c t   *   f r o m   s y s o b j e c t s   w h e r e   i d   =   o b j e c t _ i d ( N ' [ h i w e b _ u s e r L o g i n ] ' )   a n d   O B J E C T P R O P E R T Y ( i d ,   N ' I s P r o c e d u r e ' )   =   1 ) 
 
 d r o p   p r o c e d u r e   [ h i w e b _ u s e r L o g i n ] 
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   E _ a d d U s e r 
 
     @ u s e r N a m e   n v a r c h a r ( 2 5 0 )   = n u l l , 
 
 	   @ u s e r P w d   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 	   @ E m a i l   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 	   @ M o b i l e   n v a r c h a r ( 5 0 ) = n u l l , 
 
 	   @ a U s e r   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 	   @ a i d   i n t   = n u l l , 
 
 	     @ g i d   i n t   = n u l l , 
 
 	   @ g N a m e   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 	   @ o u t   i n t   = n u l l   o u t p u t 
 
 A S 
 
 	 / *   S E T   N O C O U N T   O N   * /   
 
 	 
 
 D e c l a r e   @ i s U s e r   i n t 
 
 D e c l a r e   @ n e w i d   i n t   
 
 s e l e c t   @ i s U s e r = c o u n t ( 0 )   f r o m   [ z y d n _ U s e r _ B a s e ]   w h e r e   U s e r N a m e = @ u s e r N a m e 
 
 i f   ( @ i s U s e r = 0 ) 
 
 	 B E G I N 
 
 	 i f   ( @ g i d   i s   n u l l ) 
 
 	   s e l e c t   @ g N a m e = [ G r o u p N a m e ] , @ g i d = [ i d ]   f r o m   [ z y d n _ U s e r G r o u p ]   w h e r e   [ I s D e f a u l t ] = 1 	 
 
 	 
 
 	   I N S E R T   I N T O   [ z y d n _ U s e r _ B a s e ]   
 
 	 ( [ u s e r N a m e ] , 
 
 	 [ P a s s W o r d ] , 
 
 	 [ E m a i l ] , 
 
 	 [ P a s Q u e s t i o n ] , 
 
 	 [ P a s A n s w e r ] , 
 
 	 [ M o b i l e ] , 
 
 	 [ i d i o g r a p h ] , 
 
 	 [ R e g D a t e ] , 
 
 	 [ I s L o c k e d ] , 
 
 	 [ I s E x a m i n e ] , 
 
 	 [ E x a m i n e U s e r N a m e ] , 
 
 	 [ E x a m i n e U s e r I D ] , 
 
 	 [ E f f e c t D a t e ] , 
 
 	 [ u s e r P h o t o ] , 
 
 	 [ C o u n t _ L o g i n ] , 	 
 
 	 [ C o u n t _ R e l e a s e ] , 
 
 	 [ C o u n t _ C o m m e n t ] , 
 
 	 [ D e l e t e _ R e l e a s e ] , 
 
 	 [ D e l e t e _ C o m m e n t ] , 
 
 	 [ I n t e g r a l _ B a s e ] , 
 
 	 [ I n t e g r a l _ E x p e r t ] , 
 
 	 [ I n t e g r a l _ T o t a l ] , 
 
 	 [ L e v e l N a m e ] , 
 
 	 [ L e v e l I D ] , 
 
 	 [ M o n e y ] , 
 
 	 [ G r o u p I D ] , 
 
 	 [ G r o u p N a m e ] , 
 
 	 [ i s A d m i n ] 
 
 ) 
 
 	 v a l u e s 
 
 	 (   
 
 	 @ u s e r N a m e , 
 
 	 @ u s e r P w d , 
 
 	 @ E m a i l   , 
 
 	 n u l l , 
 
 	 n u l l , 
 
 	 @ M o b i l e , 
 
 	 ' ' , 
 
 	 g e t d a t e ( ) , 
 
 	 0 , 
 
 	 1 , 
 
 	 @ a U s e r , 
 
 	 @ a i d , 
 
 	 n u l l , 
 
 	 n u l l , 
 
 	 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 
 
 	 n u l l , 
 
 	 n u l l , 
 
 	 0 , 
 
 	 @ g i d , 
 
 	 @ g n a m e , 
 
 	 0 
 
       	 ) 
 
       	 
 
       	 s e l e c t   @ n e w i d = m a x ( i d )   f r o m   [ z y d n _ U s e r _ B a s e ] 
 
 	 i n s e r t   i n t o   [ z y d n _ U s e r _ e x t e n d ] ( U I D )   v a l u e s ( @ n e w i d ) 
 
 	 E N D 
 
 e l s e 
 
 	 B E G I N 
 
 	 	 s e t   @ o u t = @ i s U s e r 
 
 	 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ C o u n t _ a d d C l i c k ] 
 
   A S 
 
 / * XRe~,     ;`pQϑ* / 
 
 D e c l a r e     @ i s N e w   i n t   
 
 D e c l a r e   @ n e w D a t e   D a t e T i m e 
 
 s e t   @ n e w D a t e   = c o n v e r t ( c h a r ( 1 0 ) , g e t D a t e ( ) , 1 2 0 ) 
 
 s e l e c t       @ i s N e w   =   c o u n t ( * )       f r o m   [ z y d n _ C o u n t ]     w h e r e   c o u n t D a t e =   @ n e w D a t e 
 
 i f   @ i s N e w = 0     
 
 	 i n s e r t   i n t o   [ z y d n _ C o u n t ]   
 
 	 ( 
 
 	 z C l i c k , 
 
 	 c o u n t D a t e 	 
 
 	 )   
 
 	 v a l u e s ( 
 
 	 1 , 
 
 	 @ n e w D a t e 
 
 	 ) 
 
 e l s e 
 
 	 u p d a t e   [ z y d n _ C o u n t ]   s e t   z C l i c k = z C l i c k + 1   w h e r e   c o u n t D a t e = @ n e w D a t e 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ C o u n t _ a d d I p C l i c k ] 
 
 @ I P   n v a r c h a r ( 5 0 ) = n u l l 
 
   A S 
 
 / * XRe~,     I P Amϑ* / 
 
 D e c l a r e     @ i s N e w   i n t   
 
 D e c l a r e   @ n e w D a t e   D a t e T i m e 
 
 / * D e c l a r e   @ i s C l e a r   i n t   * / 
 
 D e c l a r e   @ M a x D a t e   D a t e T i m e 
 
 s e t   @ n e w D a t e   = c o n v e r t ( c h a r ( 1 0 ) , g e t D a t e ( ) , 1 2 0 ) 
 
 s e t   @ i s N e w = 0 
 
 s e t   @ M a x D a t e = n u l l 
 
 s e l e c t   t o p   1     @ M a x D a t e = i p D a t e   f r o m   [ z y d n _ C o u n t _ D a y I P ]   
 
 i f   ( @ M a x D a t e < > @ n e w D a t e       ) 
 
 	 B E G I N 
 
 	 	 d e l e t e     f r o m     [ z y d n _ C o u n t _ D a y I P ]   
 
 	 	 i n s e r t   i n t o       [ z y d n _ C o u n t _ D a y I P ]       ( i p , i p D a t e )   v a l u e s ( @ I P , @ n e w D a t e ) 
 
 	 	 s e t   @ i s N e w = 1 
 
 	 E N D 
 
 e l s e 
 
 	 B E G I N 
 
 	 	 s e l e c t   @ i s N e w = c o u n t ( 1 )   f r o m     [ z y d n _ C o u n t _ D a y I P ]     w h e r e   I P = @ I P 
 
 	 	 i f   ( @ i s N e w   = 0   ) 
 
 	 	 	 B E G I N 
 
 	 	 	 	 i n s e r t   i n t o       [ z y d n _ C o u n t _ D a y I P ]     ( i p , i p D a t e )   v a l u e s ( @ I P , @ n e w D a t e ) 
 
 	 	 	 	 s e t   @ i s N e w = 1 
 
 	 	 	 E N D 
 
 	 	 e l s e 
 
 	 	 	 B E G I N 
 
 	 	 	 	 s e t   @ i s N e w = 0 
 
 	 	 	 E N D 
 
 	 E N D 
 
 i f   ( @ i s N e w = 1 ) 
 
 	 B E G I N 
 
 	 	 s e l e c t       @ i s N e w   =   c o u n t ( 1 )       f r o m   [ z y d n _ C o u n t ]     w h e r e   c o u n t D a t e = @ n e w D a t e 
 
 	 	 
 
 	 	 i f   @ i s N e w = 0     
 
 	 	 	 i n s e r t   i n t o   [ z y d n _ C o u n t ]   ( i p N u m , c o u n t D a t e 	 )   v a l u e s ( 1 , @ n e w D a t e ) 
 
 	 	 e l s e 
 
 	 	 	 u p d a t e   [ z y d n _ C o u n t ]   s e t   i p N u m = i p N u m + 1   w h e r e   c o u n t D a t e = @ n e w D a t e 
 
 	 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ C o u n t _ a d d J s C l i c k ] 
 
   A S 
 
 / * XRe~,     J S pQϑ* / 
 
 D e c l a r e     @ i s N e w   i n t   
 
 D e c l a r e   @ n e w D a t e   D a t e T i m e 
 
 s e t   @ n e w D a t e   = c o n v e r t ( c h a r ( 1 0 ) , g e t D a t e ( ) , 1 2 0 ) 
 
 s e l e c t       @ i s N e w   =   c o u n t ( * )       f r o m   [ z y d n _ C o u n t ]     w h e r e   c o u n t D a t e = @ n e w D a t e 
 
 i f   @ i s N e w = 0     
 
 	 i n s e r t   i n t o   [ z y d n _ C o u n t ]   
 
 	 ( 
 
 	 j C l i c k , 
 
 	 c o u n t D a t e 	 
 
 	 )   
 
 	 v a l u e s ( 
 
 	 1 , 
 
 	 @ n e w D a t e 
 
 	 ) 
 
 e l s e 
 
 	 u p d a t e   [ z y d n _ C o u n t ]   s e t   j C l i c k = j C l i c k + 1   w h e r e   c o u n t D a t e = @ n e w D a t e 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E     P R O C E D U R E   [ h i w e b _ C o u n t _ a d d J s I p C l i c k ] 
 
 @ I P   n v a r c h a r ( 5 0 ) = n u l l 
 
   A S 
 
 / * XRe~,     J S   hKmv  I P Amϑ* / 
 
 D e c l a r e     @ i s N e w   i n t   
 
 D e c l a r e   @ n e w D a t e   D a t e T i m e 
 
 / * D e c l a r e   @ i s C l e a r   i n t   * / 
 
 D e c l a r e   @ M a x D a t e   D a t e T i m e 
 
 s e t   @ n e w D a t e   = c o n v e r t ( c h a r ( 1 0 ) , g e t D a t e ( ) , 1 2 0 ) 
 
 s e t   @ i s N e w = 0 
 
 s e t   @ M a x D a t e = n u l l 
 
 s e l e c t   t o p   1     @ M a x D a t e = i p D a t e   f r o m   [ z y d n _ C o u n t _ D a y J s I P ]   
 
 i f   ( @ M a x D a t e < > @ n e w D a t e       ) 
 
 	 B E G I N 
 
 	 	 d e l e t e     f r o m     [ z y d n _ C o u n t _ D a y J s I P ]   
 
 	 	 i n s e r t   i n t o       [ z y d n _ C o u n t _ D a y J s I P ]       ( i p , i p D a t e )   v a l u e s ( @ I P , @ n e w D a t e ) 
 
 	 	 s e t   @ i s N e w = 1 
 
 	 E N D 
 
 e l s e 
 
 	 B E G I N 
 
 	 	 s e l e c t   @ i s N e w = c o u n t ( 1 )   f r o m     [ z y d n _ C o u n t _ D a y J s I P ]     w h e r e   I P = @ I P 
 
 	 	 i f   ( @ i s N e w   = 0   ) 
 
 	 	 	 B E G I N 
 
 	 	 	 	 i n s e r t   i n t o       [ z y d n _ C o u n t _ D a y J s I P ]     ( i p , i p D a t e )   v a l u e s ( @ I P , @ n e w D a t e ) 
 
 	 	 	 	 s e t   @ i s N e w = 1 
 
 	 	 	 E N D 
 
 	 	 e l s e 
 
 	 	 	 B E G I N 
 
 	 	 	 	 s e t   @ i s N e w = 0 
 
 	 	 	 E N D 
 
 	 E N D 
 
 i f   ( @ i s N e w = 1 ) 
 
 	 B E G I N 
 
 	 	 s e l e c t       @ i s N e w   =   c o u n t ( 1 )       f r o m   [ z y d n _ C o u n t ]     w h e r e   c o u n t D a t e = @ n e w D a t e 
 
 	 	 
 
 	 	 i f   @ i s N e w = 0     
 
 	 	 	 i n s e r t   i n t o   [ z y d n _ C o u n t ]   ( j I p N u m , c o u n t D a t e 	 )   v a l u e s ( 1 , @ n e w D a t e ) 
 
 	 	 e l s e 
 
 	 	 	 u p d a t e   [ z y d n _ C o u n t ]   s e t   j I p N u m = j I p N u m + 1   w h e r e   c o u n t D a t e = @ n e w D a t e 
 
 	 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ C o u n t _ a d d J s N u m ] 
 
   A S 
 
 / * XRe~,     J S ;`Amϑ* / 
 
 D e c l a r e     @ i s N e w   i n t   
 
 D e c l a r e   @ n e w D a t e   D a t e T i m e 
 
 s e t   @ n e w D a t e   = c o n v e r t ( c h a r ( 1 0 ) , g e t D a t e ( ) , 1 2 0 ) 
 
 s e l e c t       @ i s N e w   =   c o u n t ( * )       f r o m   [ z y d n _ C o u n t ]     w h e r e   c o u n t D a t e = @ n e w D a t e 
 
 i f   @ i s N e w = 0     
 
 	 i n s e r t   i n t o   [ z y d n _ C o u n t ]   
 
 	 ( 
 
 	 j N u m , 
 
 	 c o u n t D a t e 	 
 
 	 )   
 
 	 v a l u e s ( 
 
 	 1 , 
 
 	 @ n e w D a t e 
 
 	 ) 
 
 e l s e 
 
 	 u p d a t e   [ z y d n _ C o u n t ]   s e t   j N u m = j N u m + 1   w h e r e   c o u n t D a t e = @ n e w D a t e 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ C o u n t _ a d d N u m ] 
 
   A S 
 
 / * XRe~,     ;`Amϑ* / 
 
 D e c l a r e     @ i s N e w   i n t   
 
 D e c l a r e   @ n e w D a t e   D a t e T i m e 
 
 s e t   @ n e w D a t e   = c o n v e r t ( c h a r ( 1 0 ) , g e t D a t e ( ) , 1 2 0 ) 
 
 s e l e c t       @ i s N e w   =   c o u n t ( * )       f r o m   [ z y d n _ C o u n t ]     w h e r e   c o u n t D a t e =   @ n e w D a t e 
 
 i f   @ i s N e w = 0     
 
 	 i n s e r t   i n t o   [ z y d n _ C o u n t ]   
 
 	 ( 
 
 	 z N u m , 
 
 	 c o u n t D a t e 	 
 
 	 )   
 
 	 v a l u e s ( 
 
 	 1 , 
 
 	 @ n e w D a t e 
 
 	 ) 
 
 e l s e 
 
 	 u p d a t e   [ z y d n _ C o u n t ]   s e t   z N u m = z N u m + 1   w h e r e   c o u n t D a t e = @ n e w D a t e 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ F a v r i t e ]   
 
 @ f T y p e   i n t   = n u l l , 
 
 @ m e n u i d   i n t   = n u l l , 
 
 @ t a b   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ t a b i d   i n t = n u l l , 
 
 @ u s e r i d   i n t   = n u l l , 
 
 @ v T e x t   n v a r c h a r ( 1 5 0 ) = n u l l , 
 
 @ u n a m e   n v a r c h a r ( 5 0 ) = n u l l 
 
 A S 
 
 i f   ( @ f T y p e = 1 )   
 
 	 B E G I N 
 
 	 	 d e l e t e     z y d n _ F a v o r i t e   w h e r e   u i d = @ u s e r i d   a n d   t a b I d = @ m e n u i d     a n d   f T y p e = @ f T y p e 
 
 	 	 i n s e r t   i n t o   z y d n _ F a v o r i t e   ( v T e x t , t a b I d , u i d , u n a m e , f T y p e , c r e a t e D a t e )   v a l u e s ( @ v T e x t , @ m e n u i d , @ u s e r i d , @ u n a m e , @ f T y p e , g e t D a t e ( ) ) 
 
 	 E N D 
 
 e l s e 
 
 	 B E G I N 
 
 	 	 d e l e t e     z y d n _ F a v o r i t e   w h e r e   u i d = @ u s e r i d   a n d   t a b I d = @ t a b i d   a n d   t a b N a m e = @ t a b   a n d   f T y p e = @ f T y p e 
 
 	 	 i n s e r t   i n t o   z y d n _ F a v o r i t e   ( v T e x t , t a b I d , u i d , u n a m e , t a b N a m e , f T y p e , c r e a t e D a t e )   v a l u e s ( @ v T e x t , @ t a b i d , @ u s e r i d , @ u n a m e , @ t a b , @ f T y p e , g e t D a t e ( ) ) 
 
 	 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ F i n d K e y ] 
 
 @ f i n d K e y     n v a r c h a r ( 2 0 0 )   = n u l l 
 
   A S 
 
 D e c l a r e     @ i s U s e     i n t   
 
 s e l e c t       @ i s U s e =   c o u n t ( 0 )   f r o m   z y d n _ F i n d K e y   w h e r e   f i n d K e y = @ f i n d K e y 
 
 i f   ( @ i s U s e = 0 ) 
 
 	 i n s e r t   i n t o   [ z y d n _ F i n d K e y ]   ( f i n d K e y , f i n d C o u n t )   v a l u e s ( @ f i n d K e y , 1 ) 
 
 e l s e 
 
 	 u p d a t e   [ z y d n _ f i n d K e y ]   s e t   f i n d C o u n t = f i n d C o u n t + 1   w h e r e   f i n d K e y = @ f i n d K e y 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ M o v e M e n u ] 
 
 @ i n I D   i n t =   n u l l , 
 
 @ o u t I D   i n t =   n u l l , 
 
 @ m e n u i d   i n t   = n u l l 
 
   A S 
 
 D e c l a r e   @ i n U P I D   n v a r c h a r ( 2 5 0 ) 
 
 D e c l a r e   @ n e w U P I D     n v a r c h a r ( 2 5 0 ) 
 
 D e c l a r e   @ i n L a y e r   i n t 
 
 D e c l a r e   @ n e w L a y e r   i n t 
 
 D e c l a r e   @ L a y e r     i n t 
 
 D e c l a r e   @ i s D o w n   i n t 
 
 D e c l a r e   @ U p L i s t   n v a r c h a r ( 2 5 0 ) 
 
 s e l e c t     @ i n U P I D =   u p L i s t I D ,   @ i n L a y e r   = l a y e r     f r o m   z y d n _ m e n u   w h e r e   m i d = @ i n I D 
 
 s e l e c t   @ n e w U P I D = u p L i s t I D , @ n e w L a y e r = l a y e r   f r o m   z y d n _ m e n u   w h e r e   m i d   = @ o u t I D 
 
 s e t   @ L a y e r = @ n e w L a y e r - @ i n L a y e r + 1 
 
 s e t   @ n e w U P I D = @ n e w U P I D + " , " + C A S T ( @ i n I D   a s   n v a r c h a r ( 5 0 ) ) 
 
 u p d a t e   z y d n _ m e n u   s e t   u p L i s t I D = @ n e w U P I D , l a y e r   =   l a y e r + @ L a y e r     w h e r e   m i d = @ i n I D 
 
 u p D a t e   z y d n _ m e n u   s e t   u p L i s t I D = r e p l a c e ( u p L i s t I D , @ i n U P I D , @ n e w U P I D )   , l a y e r   =   l a y e r + @ L a y e r       w h e r e   u p L i s t I D   l i k e   @ i n U P I D + ' , % ' 
 
 u p D a t e   z y d n _ m e n u   s e t   i s D o w n = 1     w h e r e   m i d = @ o u t I D 
 
 u p D a t e   z y d n _ m e n u   s e t   l a y e r   = 0   w h e r e   l a y e r   < 0 
 
 s e l e c t   @ U p L i s t = u p L i s t I D   f r o m   z y d n _ m e n u   w h e r e   m i d = @ m e n u i d 
 
 s e l e c t   @ i s D o w n = c o u n t ( * )   f r o m   z y d n _ m e n u   w h e r e   u p L i s t I D   l i k e     @ U p L i s t + ' , % ' 
 
 i f   ( @ i s D o w n   = 0   ) 
 
 	 B E G I N 
 
 	 	 u p d a t e   z y d n _ m e n u   s e t   i s D o w n = 0   w h e r e   m i d = @ m e n u i d 
 
 	 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ S a v e O p t i o n ] 
 
 @ s i n d e x   i n t   = n u l l , 
 
 @ n a m e   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ t e x t   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ v a l u e   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ d o w n T e x t   n v a r c h a r ( 1 0 0 0 ) = n u l l , 
 
 @ s T y p e   i n t = n u l l , 
 
 @ i s C l e a r   i n t   = n u l l , 
 
 @ o u t i n d e x   i n t   = n u l l   o u t p u t 
 
   A S 
 
 D e c l a r e   @ m a x i d   i n t 
 
 i f     ( @ i s C l e a r   =   1   a n d   @ s i n d e x   i s   n o t   n u l l ) 
 
     d e l e t e   f r o m   z y d n _ o p t i o n L i s t   w h e r e     s I n d e x = @ s i n d e x 
 
 i f   ( @ s i n d e x   i s   n u l l ) 
 
 	 s e l e c t   t o p   1   @ m a x i d =   i d + 1     f r o m   z y d n _ o p t i o n L i s t   o r d e r   b y   i d   d e s c 
 
 e l s e 
 
 	 s e t   @ m a x i d = @ s i n d e x 
 
 i f   ( @ m a x i d   i s   n u l l   o r   @ m a x i d = 0 ) 
 
 s e t   @ m a x i d = 1 
 
   I N S E R T   I N T O   [ z y d n _ o p t i o n L i s t ]   ( S N a m e , m a i n I t e m T e x t , m a i n I t e m V a l u e , d o w n I t e m , s I n d e x , i t e m T y p e , i s S y s )   
 
 	 	 v a l u e s 
 
 	 	 ( @ n a m e , @ t e x t , @ v a l u e , @ d o w n T e x t , @ m a x i d , @ s T y p e , 0 ) 
 
 s e t   @ o u t i n d e x = @ m a x i d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ S a v e P o w e r ] 
 
 @ M P N a m e   n v a r c h a r ( 5 0 )   = n u l l , 
 
 @ M P T y p e   i n t   = n u l l , 
 
 @ P _ A _ V i e w _ G   n v a r c h a r ( 6 0 0 ) = n u l l , 
 
 @ P _ A _ V i e w _ U   n v a r c h a r ( 5 0 0 ) = n u l l , 
 
 @ P _ A _ A d d _ G   n v a r c h a r ( 6 0 0 ) = n u l l , 
 
 @ P _ A _ A d d _ U   n v a r c h a r ( 5 0 0 ) = n u l l , 
 
 @ P _ A _ E d i t _ G   n v a r c h a r ( 6 0 0 ) = n u l l , 
 
 @ P _ A _ E d i t _ U   n v a r c h a r ( 6 0 0 ) = n u l l , 
 
 @ P _ A _ A r e a   n v a r c h a r ( 2 5 0 ) = n u l l , 
 
 @ P _ A _ A r e a T y p e   i n t   = n u l l , 
 
 @ P _ A _ m a n a g e   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ P _ A _ I s E x a m i n e   i n t   = n u l l , 
 
 @ P _ A _ I s P o w e r   i n t   = n u l l , 
 
 @ P _ A _ E x a m i n e _ 1   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ P _ A _ E x a m i n e _ 2   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ P _ A _ E x a m i n e _ 3   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ P _ A _ E x a m i n e _ 4   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ P _ C _ I s E x a m i n e   i n t =   n u l l , 
 
 @ P _ C _ V i e w _ G   n v a r c h a r ( 6 0 0 ) = n u l l , 
 
 @ P _ C _ V i e w _ U   n v a r c h a r ( 5 0 0 ) = n u l l , 
 
 @ P _ C _ A d d _ G   n v a r c h a r ( 6 0 0 ) = n u l l , 
 
 @ P _ C _ A d d _ U   n v a r c h a r ( 5 0 0 ) = n u l l , 
 
 @ P _ C _ m a n a g e   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ I s D e f a u l t   i n t   = n u l l , 
 
 @ p o w e r I D   i n t   = n u l l   o u t p u t 
 
   A S 
 
 D e c l a r e   @ e o f   i n t 
 
 s e l e c t       @ e o f = c o u n t ( * )     f r o m   z y d n _ C o n f i g _ M e n u P o w e r   w h e r e   M P N a m e = @ M P N a m e   a n d   M P T y p e = @ M P T y p e 
 
 i f   ( @ e o f = 0 ) 
 
 	 I N S E R T   I N T O   [ z y d n _ C o n f i g _ M e n u P o w e r ] 
 
 	 ( 
 
 	 M P N a m e   , 
 
 	 M P T y p e   , 
 
 	 P _ A _ V i e w _ G   , 
 
 	 P _ A _ V i e w _ U , 
 
 	 P _ A _ A d d _ G , 
 
 	 P _ A _ A d d _ U , 
 
 	 P _ A _ E d i t _ G   , 
 
 	 P _ A _ E d i t _ U , 
 
 	 P _ A _ A r e a   , 
 
 	 P _ A _ A r e a T y p e   , 
 
 	 P _ A _ m a n a g e   , 
 
 	 P _ A _ I s E x a m i n e , 
 
 	 P _ A _ I s P o w e r     , 
 
 	 P _ A _ E x a m i n e _ 1   , 
 
 	 P _ A _ E x a m i n e _ 2   , 
 
 	 P _ A _ E x a m i n e _ 3 , 
 
 	 P _ A _ E x a m i n e _ 4   , 
 
 	 P _ C _ I s E x a m i n e   , 
 
 	 P _ C _ V i e w _ G , 
 
 	 P _ C _ V i e w _ U   , 
 
 	 P _ C _ A d d _ G , 
 
 	 P _ C _ A d d _ U , 
 
 	 P _ C _ m a n a g e   , 
 
 	 I s D e f a u l t 
 
 	   ) 
 
 	 V A L U E S ( 
 
 	 @ M P N a m e   , 
 
 	 @ M P T y p e   , 
 
 	 @ P _ A _ V i e w _ G   , 
 
 	 @ P _ A _ V i e w _ U , 
 
 	 @ P _ A _ A d d _ G , 
 
 	 @ P _ A _ A d d _ U , 
 
 	 @ P _ A _ E d i t _ G   , 
 
 	 @ P _ A _ E d i t _ U , 
 
 	 @ P _ A _ A r e a   , 
 
 	 @ P _ A _ A r e a T y p e   , 
 
 	 @ P _ A _ m a n a g e   , 
 
 	 @ P _ A _ I s E x a m i n e , 
 
 	 @ P _ A _ I s P o w e r     , 
 
 	 @ P _ A _ E x a m i n e _ 1   , 
 
 	 @ P _ A _ E x a m i n e _ 2   , 
 
 	 @ P _ A _ E x a m i n e _ 3 , 
 
 	 @ P _ A _ E x a m i n e _ 4   , 
 
 	 @ P _ C _ I s E x a m i n e   , 
 
 	 @ P _ C _ V i e w _ G , 
 
 	 @ P _ C _ V i e w _ U   , 
 
 	 @ P _ C _ A d d _ G , 
 
 	 @ P _ C _ A d d _ U , 
 
 	 @ P _ C _ m a n a g e   , 
 
 	 @ I s D e f a u l t 
 
 	 ) 
 
 e l s e   
 
 	 U P D A T E     [ z y d n _ C o n f i g _ M e n u P o w e r ]   S E T   
 
 	 P _ A _ V i e w _ G = @ P _ A _ V i e w _ G   , 
 
 	 P _ A _ V i e w _ U = @ P _ A _ V i e w _ U , 
 
 	 P _ A _ A d d _ G = @ P _ A _ A d d _ G , 
 
 	 P _ A _ A d d _ U = @ P _ A _ A d d _ U , 
 
 	 P _ A _ E d i t _ G = @ P _ A _ E d i t _ G   , 
 
 	 P _ A _ E d i t _ U = @ P _ A _ E d i t _ U , 
 
 	 P _ A _ A r e a = @ P _ A _ A r e a   , 
 
 	 P _ A _ A r e a T y p e = @ P _ A _ A r e a T y p e   , 
 
 	 P _ A _ m a n a g e = @ P _ A _ m a n a g e   , 
 
 	 P _ A _ I s E x a m i n e = @ P _ A _ I s E x a m i n e , 
 
 	 P _ A _ I s P o w e r = @ P _ A _ I s P o w e r     , 
 
 	 P _ A _ E x a m i n e _ 1 = @ P _ A _ E x a m i n e _ 1   , 
 
 	 P _ A _ E x a m i n e _ 2 = @ P _ A _ E x a m i n e _ 2   , 
 
 	 P _ A _ E x a m i n e _ 3 = @ P _ A _ E x a m i n e _ 3 , 
 
 	 P _ A _ E x a m i n e _ 4   = @ P _ A _ E x a m i n e _ 4   , 
 
 	 P _ C _ I s E x a m i n e = @ P _ C _ I s E x a m i n e   , 
 
 	 P _ C _ V i e w _ G = @ P _ C _ V i e w _ G , 
 
 	 P _ C _ V i e w _ U = @ P _ C _ V i e w _ U   , 
 
 	 P _ C _ A d d _ G = @ P _ C _ A d d _ G , 
 
 	 P _ C _ A d d _ U = @ P _ C _ A d d _ U , 
 
 	 P _ C _ m a n a g e   = @ P _ C _ m a n a g e 
 
 	 
 
 	 W H E R E   M P N a m e   = @ M P N a m e   
 
 i f   ( @ e o f = 0 ) 
 
 	 s e l e c t   t o p   1   @ p o w e r I D = i d   f r o m     [ z y d n _ C o n f i g _ M e n u P o w e r ]     o r d e r   b y   i d   d e s c 
 
 e l s e 
 
 	 s e l e c t   @ p o w e r I D = i d     f r o m     [ z y d n _ C o n f i g _ M e n u P o w e r ]     w h e r e     M P N a m e   = @ M P N a m e 
 
 i f   ( @ I s D e f a u l t = 1 ) 
 
 	 u p d a t e       [ z y d n _ C o n f i g _ M e n u P o w e r ]       s e t     I s D e f a u l t = 0   w h e r e     i d < > @ p o w e r I D 
 
 i f   ( @ I s D e f a u l t = 1 ) 
 
 	 u p d a t e       [ z y d n _ C o n f i g _ M e n u P o w e r ]       s e t     I s D e f a u l t = 1   w h e r e     i d = @ p o w e r I D 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ S a v e T a b I n t ]     
 
 @ u s e r I D   i n t   = n u l l , 
 
 @ u s e r N a m e   n v a r c h a r ( 2 5 0 )   = n u l l , 
 
 @ d i s p I n t   i n t =   n u l l , 
 
 @ d i s p M o n e y   i n t   = n u l l , 
 
 @ A w a r d s I n t   i n t   = n u l l , 
 
 @ A w a r d s M o n e y   i n t   = n u l l , 
 
 @ t a b i d     i n t   = n u l l , 
 
 @ t a b N a m e   n v a r c h a r ( 1 0 0 )   = n u l l , 
 
 @ o u t I D   i n t   =   n u l l     o u t p u t 
 
 A S 
 
 s e t   @ o u t I D = - 1 
 
 s e l e c t   @ o u t I D = i d   f r o m   z y d n _ t a b I n t   w h e r e   t a b i d = @ t a b i d   a n d   t a b N a m e = @ t a b N a m e 
 
 i f   @ o u t I D = - 1 
 
 	 B E G I N 
 
 	 	 i n s e r t   i n t o   [ z y d n _ t a b I n t ]   ( 
 
 	 	 t a b i d , t a b N a m e , s a v e U s e r , s a v e U s e r I D , d i s p I n t , d i s p M o n e y , A w a r d s I n t , A w a r d s M o n e y 
 
 	 	 )   v a l u e s ( 
 
 	 	 @ t a b i d , @ t a b N a m e , @ u s e r N a m e , @ u s e r I D , @ d i s p I n t , @ d i s p M o n e y , @ A w a r d s I n t , @ A w a r d s M o n e y 
 
 	 	 ) 
 
 	 	 s e l e c t   @ o u t I D = m a x ( i d )   f r o m   z y d n _ t a b I n t 
 
 	 	 u p d a t e   z y d n _ U s e r _ B a s e   s e t     I n t e g r a l _ B a s e = I n t e g r a l _ B a s e - @ A w a r d s I n t , [ M o n e y ] = [ M o n e y ] - @ A w a r d s M o n e y   w h e r e   i d = @ u s e r I D 
 
 	 E N D 
 
 e l s e 
 
   	 B e g i n 
 
 / * 	 	 U P D A T E   z y d n _ t a b I n t   s e t   d i s p I n t = @ d i s p I n t , d i s p M o n e y = @ d i s p M o n e y , A w a r d s I n t = @ A w a r d s I n t , A w a r d s M o n e y = @ A w a r d s M o n e y   w h e r e   t a b i d = @ t a b i d   a n d   t a b N a m e = @ t a b N a m e   * / 
 
 	 	 U P D A T E   z y d n _ t a b I n t   s e t   d i s p I n t = @ d i s p I n t , d i s p M o n e y = @ d i s p M o n e y   w h e r e   t a b i d = @ t a b i d   a n d   t a b N a m e = @ t a b N a m e   
 
 	 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ S a v e V o t ]   
 
 @ t i t l e   n v a r c h a r ( 1 0 0 0 )   = n u l l , 
 
 @ o p t i o n N a m e   n v a r c h a r ( 1 0 0 0 )   = n u l l , 
 
 @ c o u n t N u m   n v a r c h a r ( 1 0 0 0 )   = n u l l , 
 
 @ i s V   I N T   = n u l l , 
 
 @ e n d D a t e   i n t   = n u l l , 
 
 @ i d   i n t   = n u l l , 
 
 @ t y p e   i n t   = n u l l , 
 
 @ o u t i d   i n t   = n u l l   o u t p u t 
 
   A S 
 
 s e t   @ o p t i o n N a m e = r e p l a c e ( @ o p t i o n N a m e , ' , ' , ' ' ) 
 
 i f   ( @ i d   i s   n o t   n u l l )   
 
       / * 	 d e l e t e   f r o m   z y d n _ v o t   w h e r e   i d = @ i d * / 
 
 	 u p d a t e   [ z y d n _ V o t ]   s e t   
 
 	 t i t l e = @ t i t l e , 
 
 	 o p t i o n N a m e = @ o p t i o n N a m e , 
 
 	 c o u n t N u m = @ c o u n t N u m , 
 
 	 i s V = @ i s V , 
 
 	 e n d D a t e = @ e n d D a t e , 
 
 	 t y p e = @ t y p e 
 
 	 w h e r e   i d = @ i d 
 
 e l s e 
 
 	 i n s e r t   i n t o   [ z y d n _ V o t ]   
 
 	 ( 
 
 	 t i t l e , 
 
 	 o p t i o n N a m e , 
 
 	 c o u n t N u m , 
 
 	 i s V , 
 
 	 e n d D a t e , 
 
 	 c r e a t e D a t e , 
 
 	 t y p e 
 
 	 
 
 	 ) v a l u e s ( 
 
 	 @ t i t l e , 
 
 	 @ o p t i o n N a m e , 
 
 	 @ c o u n t N u m , 
 
 	 @ i s V , 
 
 	 @ e n d D a t e , 
 
 	 g e t D a t e ( ) , 
 
 	 @ t y p e 
 
 	 
 
 ) 
 
 i f   ( @ i d   i s   n o t   n u l l )   
 
 	 s e t   @ o u t i d = @ i d 
 
 e l s e 
 
 	 s e l e c t   t o p   1     @ o u t i d = i d   f r o m   z y d n _ v o t   o r d e r   b y   i d   d e s c 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ S i g n F o r ]   
 
 @ t a b   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ t a b i d   i n t   = n u l l , 
 
 @ t o U s e r   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ t e x t   n v a r c h a r ( 2 5 0 ) = n u l l 
 
 A S 
 
 u p d a t e     [ z y d n _ s i g n F o r ]   s e t   
 
 	 s t a t e = 1 , 
 
 	 l e a v e W o r d = @ t e x t , 
 
 	 s i g n F o r D a t e = g e t D a t e ( ) 
 
   w h e r e     t a b i d = @ t a b i d     a n d     t a b = @ t a b     a n d   t o U s e r = @ t o U s e r   
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   p r o c   h i w e b _ T e n d e r S a v e 
 
 @ o u t   i n t   o u t p u t , 
 
 @ u s e r I D   i n t , 
 
 @ u s e r N a m e   n v a r c h a r ( 5 0 ) , 
 
 @ p l a n I D   i n t , 
 
 @ m a r k   n v a r c h a r ( 1 0 0 0 ) , 
 
 @ p a t h   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ t I n t   i n t , 
 
 @ t M o n e y   i n t , 
 
 @ t e n d e r I P   n v a r c h a r ( 5 0 ) , 
 
 @ t e n d e r A d d r e s s   n v a r c h a r ( 2 5 0 ) 
 
 a s 
 
 d e c l a r e   @ i s E x i s t   i n t 
 
 s e l e c t   @ i s E x i s t = c o u n t ( 0 )   f r o m   z y d n _ t e n d e r   w h e r e   u s e r I D = @ u s e r I D   a n d   p l a n I D = @ p l a n I D 
 
 i f ( @ i s E x i s t > 0 ) 
 
 	 b e g i n 
 
 	 	 s e t   @ o u t   =   0 
 
 	 e n d 
 
 e l s e 
 
 	 b e g i n 
 
 	 	 - - d e c l a r e   @ u s e r t I n t   i n t ,   @ u s e r t M o n e y   i n t 
 
 	 	 - - s e l e c t   @ u s e r t I n t = I n t e g r a l _ B a s e , @ u s e r t M o n e y = M o n e y   f r o m   z y d n _ U s e r _ B a s e   w h e r e   I D = @ u s e r I D 
 
 	 	 - - u p d a t e   z y d n _ U s e r _ B a s e   s e t   I n t e g r a l _ B a s e = @ u s e r t I n t - @ t I n t , M o n e y = @ u s e r t M o n e y - @ t M o n e y   w h e r e   I D = @ u s e r I D 
 
 	 	 i n s e r t   i n t o   z y d n _ t e n d e r ( u s e r I D , u s e r N a m e , p l a n I D , m a r k , p a t h , t e n d e r I P , t e n d e r A d d r e s s , t e n d e r T i m e )   v a l u e s ( @ u s e r I D , @ u s e r N a m e , @ p l a n I D , @ m a r k , @ p a t h , @ t e n d e r I P , @ t e n d e r A d d r e s s , g e t d a t e ( ) ) 
 
 	 	 s e t   @ o u t   =   @ @ i d e n t i t y 
 
 	 e n d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ U s e r D e l I n t ]       / * [(u7b\ORQyR  TZb'^d\O,   v^OX[0Rd\OU_* / 
 
       @ i n t N u m     i n t   = n u l l , 
 
       @ m o n e y N u m   i n t   =   n u l l , 
 
       @ u s e r I D   i n t   = n u l l , 
 
       @ t a b       n v a r c h a r ( 2 5 0 )   =   n u l l , 
 
       @ t a b i d   i n t   = n u l l , 
 
       @ u s e r N a m e   n v a r c h a r ( 1 0 0 )   = n u l l , 
 
       @ i s I n t   i n t   = n u l l   o u t p u t 
 
   A S 
 
 D e c l a r e   @ t i t l e     n v a r c h a r ( 2 5 0 ) 
 
 D e c l a r e   @ u I n t   i n t   
 
 D e c l a r e   @ u M o n e y   i n t   
 
 s e t   @ i s I n t = 1 
 
 s e l e c t     @ u I n t = I n t e g r a l _ B a s e , @ u M o n e y   = [ m o n e y ]   f r o m   [ z y d n _ U s e r _ B a s e ]   w h e r e   i d   =   @ u s e r I D 
 
 i f   ( @ u I n t   +   @ i n t N u m   <   0   o r   @ u M o n e y   +   @ m o n e y N u m < 0 )   
 
         B E G I N 
 
 	 s e t   @ i s I n t = 0 
 
         E N D   
 
 e l s e 
 
 	 B E G I N 
 
 	 	 i f   ( @ t a b   < > n u l l   a n d   @ t a b i d   < > n u l l ) 
 
 	 	 B E G I N 
 
 	 	 	 s e l e c t   @ t i t l e     = t i t l e   f r o m     z y d n _ r o o m   w h e r e     t a b n a m e = @ t a b   a n d   t a b i d   = @ t a b i d 
 
 	 	 E N D 
 
 	 	 u p d a t e     [ z y d n _ U s e r _ B a s e ]     s e t     I n t e g r a l _ B a s e = I n t e g r a l _ B a s e + @ i n t N u m ,   [ M o n e y ] = [ M o n e y ] + @ m o n e y N u m   w h e r e   i d = @ u s e r I D 
 
 	 	 i n s e r t         i n t o   [ z y d n _ u s e I n t ] ( u s e r N a m e , u s e r I D , i n t N u m , m o n e y N u m , c r e a t e D a t e , t i t l e , t a b , t a b i d ) 
 
 	 	 	 	 v a l u e s   ( @ u s e r N a m e , @ u s e r I D , @ i n t N u m , @ m o n e y N u m , g e t D a t e ( ) , @ t i t l e , @ t a b , @ t a b i d ) 
 
 	 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ a d d U s e r ]   
 
 @ u s e r N a m e   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ u s e r P a s s   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ E m a i l   n v a r c h a r ( 1 0 0 )   = n u l l , 
 
 @ M o b i l e   n v a r c h a r ( 2 0 ) = n u l l , 
 
 @ p a s s Q u e s t i o n   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ p a s s A n s w e r   n v a r c h a r ( 2 5 0 ) = n u l l , 
 
 @ i d i o g r a p h   n v a r c h a r ( 2 5 0 ) = n u l l , 
 
 @ a U s e r   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ u s e r P h o t o   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ a i d   i n t = n u l l , 
 
 @ u i d     i n t   = n u l l   o u t p u t , 
 
 @ o u t I n f o   i n t   = n u l l   o u t p u t , 
 
 @ I s E x a m i n e   i n t   = n u l l 
 
 A S 
 
 D e c l a r e   @ i s E o f   i n t 
 
 D e c l a r e   @ g i d   i n t 
 
 D e c l a r e     @ g N a m e   n v a r c h a r ( 1 0 0 ) 
 
 D e c l a r e     @ L n a m e   n v a r c h a r ( 1 0 0 ) 
 
 D e c l a r e     @ L i d   i n t 
 
 s e t     @ L n a m e = n u l l 
 
 s e t   @ L i d = n u l l   
 
 i f   ( @ I s E x a m i n e = n u l l ) 
 
 	 s e t   @ I s E x a m i n e = 1 
 
     s e l e c t   @ i s E o f = c o u n t ( i d )     f r o m   z y d n _ U s e r _ B a s e   w h e r e   [ u s e r N a m e ]   = @ u s e r N a m e 
 
     i f   ( @ i s E o f ! = 0 ) 
 
               s e t     @ o u t I n f o   = 0 
 
   e l s e 
 
           s e t   @ o u t I n f o = 1 
 
     i f   ( @ i s E o f = 0 ) 
 
         s e l e c t   @ g N a m e = [ G r o u p N a m e ] , @ g i d = [ i d ]   f r o m   [ z y d n _ U s e r G r o u p ]   w h e r e   [ I s D e f a u l t ] = 1 
 
     i f   ( @ i s E o f = 0 ) 
 
 	 S E L E C T     t o p   1   @ L n a m e = [ L e v e l N a m e ] , @ L i d = [ i d ]     F R O M   z y d n _ u s e r L e v e l   w h e r e   m i n I n t < = 0   o r d e r   b y   m i n I n t   d e s c 
 
 i f   ( @ L i d   i s   n u l l ) 
 
         S E L E C T     t o p   1     @ L n a m e = [ L e v e l N a m e ] , @ L i d = [ i d ]         F R O M   z y d n _ u s e r L e v e l       o r d e r   b y   m i n I n t   
 
     i f   ( @ i s E o f = 0 ) 
 
           I N S E R T   I N T O   [ z y d n _ U s e r _ B a s e ]   
 
 	 ( [ u s e r N a m e ] , 
 
 	 [ P a s s W o r d ] , 
 
 	 [ E m a i l ] , 
 
 	 [ P a s Q u e s t i o n ] , 
 
 	 [ P a s A n s w e r ] , 
 
 	 [ M o b i l e ] , 
 
 	 [ i d i o g r a p h ] , 
 
 	 [ R e g D a t e ] , 
 
 	 [ I s L o c k e d ] , 
 
 	 [ I s E x a m i n e ] , 
 
 	 [ E x a m i n e U s e r N a m e ] , 
 
 	 [ E x a m i n e U s e r I D ] , 
 
 	 [ E f f e c t D a t e ] , 
 
 	 [ u s e r P h o t o ] , 
 
 	 [ C o u n t _ L o g i n ] , 	 
 
 	 [ C o u n t _ R e l e a s e ] , 
 
 	 [ C o u n t _ C o m m e n t ] , 
 
 	 [ D e l e t e _ R e l e a s e ] , 
 
 	 [ D e l e t e _ C o m m e n t ] , 
 
 	 [ I n t e g r a l _ B a s e ] , 
 
 	 [ I n t e g r a l _ E x p e r t ] , 
 
 	 [ I n t e g r a l _ T o t a l ] , 
 
 	 [ L e v e l N a m e ] , 
 
 	 [ L e v e l I D ] , 
 
 	 [ M o n e y ] , 
 
 	 [ G r o u p I D ] , 
 
 	 [ G r o u p N a m e ] , 
 
 	 [ i s A d m i n ] 
 
 ) 
 
 	 v a l u e s 
 
 	 (   
 
 	 @ u s e r N a m e , 
 
 	 @ u s e r P a s s , 
 
 	 @ E m a i l   , 
 
 	 @ p a s s Q u e s t i o n , 
 
 	 @ p a s s A n s w e r , 
 
 	 @ M o b i l e , 
 
 	 @ i d i o g r a p h , 
 
 	 g e t d a t e ( ) , 
 
 	 0 , 
 
 	 @ I s E x a m i n e , 
 
 	 @ a U s e r , 
 
 	 @ a i d , 
 
 	 n u l l , 
 
 	 @ u s e r P h o t o , 
 
 	 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 
 
 	 @ L n a m e , 
 
 	 @ L i d , 
 
 	 0 , 
 
 	 @ g i d , 
 
 	 @ g n a m e , 
 
 	 0 
 
       	 ) 
 
     i f   ( @ i s E o f = 0 ) 
 
 	 s e l e c t   t o p   1   @ u i d = i d   f r o m     [ z y d n _ U s e r _ B a s e ]     o r d e r   b y   i d   d e s c 
 
 e l s e 
 
 	 s e t   @ u i d = - 1 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   h i w e b _ c h a n g e M i d K e y 
 
 @ o u t N u m   i n t   o u t p u t ,   
 
 @ p a y M i d   n v a r c h a r ( 1 0 0 ) , 
 
 @ p a y K e y   n v a r c h a r ( 1 0 0 ) 
 
 A S 
 
 d e c l a r e   @ c o u n t   i n t   
 
 s e l e c t   @ c o u n t = c o u n t ( 0 )   f r o m   z y d n _ S h o p _ M i d K e y 
 
 i f ( @ c o u n t > 0 ) 
 
 b e g i n 
 
 	 u p d a t e   z y d n _ S h o p _ M i d K e y   s e t   p a y M i d   =   @ p a y M i d , p a y K e y   =   @ p a y K e y 
 
 	 s e t   @ o u t N u m = @ @ i d e n t i t y 
 
 e n d 
 
 e l s e 
 
 	 i n s e r t   i n t o   z y d n _ S h o p _ M i d K e y ( p a y M i d , p a y K e y )   v a l u e s ( @ p a y M i d , @ p a y K e y ) 
 
 	 s e t   @ o u t N u m = @ @ i d e n t i t y 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   p r o c   h i w e b _ c h a n g e M o n e y 
 
 @ t i d   i n t , 
 
 @ t I n t   i n t , 
 
 @ t M o n e y   i n t 
 
 a s 
 
 d e c l a r e   @ u s e r t I n t   i n t ,   @ u s e r t M o n e y   i n t , @ u i d   i n t 
 
 s e l e c t   @ u i d = u s e r I D   f r o m   z y d n _ t e n d e r   w h e r e   i d = @ t i d 
 
 s e l e c t   @ u s e r t I n t = I n t e g r a l _ B a s e , @ u s e r t M o n e y = M o n e y   f r o m   z y d n _ U s e r _ B a s e   w h e r e   I D = @ u i d 
 
 u p d a t e   z y d n _ U s e r _ B a s e   s e t   I n t e g r a l _ B a s e = @ u s e r t I n t + @ t I n t , M o n e y = @ u s e r t M o n e y + @ t M o n e y   w h e r e   I D = @ u i d 
 
 u p d a t e   z y d n _ t e n d e r   s e t   i s P a y = 1   w h e r e   i d = @ t i d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 c r e a t e   p r o c   h i w e b _ c h a n g e M y C a r t 
 
 @ a l l T o t a l   n u m e r i c ( 1 0 , 2 )   o u t p u t , 
 
 @ n e w N u m   i n t , 
 
 @ p r i c e   n u m e r i c ( 1 0 , 2 ) , 
 
 @ I D   i n t , 
 
 @ U s e r I D   i n t   
 
 a s 
 
 	 u p d a t e   z y d n _ O r d e r L i s t   s e t   C o m m o d i t y N u m = @ n e w N u m , T o t a l = @ n e w N u m * @ p r i c e   w h e r e   I D = @ I D 
 
 	 s e l e c t   @ a l l T o t a l = s u m ( T o t a l )   f r o m   z y d n _ O r d e r L i s t   w h e r e   u s e r I D = @ U s e r I D   a n d   i s C a r t = 1 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 c r e a t e   p r o c   h i w e b _ c h e c k I s D e l 
 
 @ p l a n I D   i n t , 
 
 @ o u t N u m   i n t   o u t p u t 
 
 a s 
 
 d e c l a r e   @ c o u n t   i n t 
 
 s e l e c t   @ c o u n t = c o u n t ( 0 )   f r o m   z y d n _ s e t P l a n   w h e r e   m i d = @ p l a n I D 
 
 i f ( @ c o u n t > 0 ) 
 
 b e g i n 
 
 	 s e t   @ o u t N u m   =   0 
 
 e n d 
 
 e l s e 
 
 b e g i n 
 
 	 s e t   @ o u t N u m   =   1 
 
 e n d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 c r e a t e   p r o c   h i w e b _ c h e c k U s e r 
 
 @ p l a n I D   i n t , 
 
 @ u s e r I D   i n t , 
 
 @ o u t N u m   i n t   o u t p u t 
 
 a s 
 
 d e c l a r e   @ f l a g   i n t 
 
 s e l e c t   @ f l a g = c o u n t ( 0 )   f r o m   z y d n _ s e t P l a n   w h e r e   m i d = @ p l a n I D   a n d   u s e r I D = @ u s e r I D 
 
 i f ( @ f l a g > 0 ) 
 
 b e g i n 
 
 	 s e t   @ o u t N u m   =   0 
 
 e n d 
 
 e l s e 
 
 b e g i n 
 
 	 s e t   @ o u t N u m   =   1 
 
 e n d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ c l e a r T a b l e ] 
 
 @ t a b n a m e   n v a r c h a r ( 5 0 ) = n u l l 
 
   A S 
 
 D e c l a r e   @ s q l   n v a r c h a r ( 1 5 0 0 ) 
 
 s e t   @ s q l = ' d e l e t e         ' + @ t a b n a m e 
 
 e x e c u t e   ( @ s q l ) 
 
 d e l e t e   z y d n _ r o o m   w h e r e   t a b n a m e = @ t a b n a m e 
 
 d e l e t e   z y d n _ r e v i e w   w h e r e   A T a b = @ t a b n a m e 
 
 d e l e t e     [ z y d n _ c o n t r i b u t e ]   w h e r e   t a b N a m e = @ t a b n a m e 
 
 d e l e t e     [ z y d n _ t a b I n t ]   w h e r e   t a b N a m e = @ t a b n a m e 
 
 d e l e t e     [ z y d n _ u s e I n t ]   w h e r e   t a b = @ t a b n a m e 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ c l e a r l F i l e ] 
 
 @ i d   i n t   = n u l l 
 
   A S 
 
 D e c l a r e   @ f i l e i d     i n t 
 
 D e c l a r e   @ t a b l e   n v a r c h a r ( 1 0 0 )   
 
 D e c l a r e   @ c o u n t   i n t 
 
 D e c l a r e   @ s q l   n v a r c h a r ( 1 0 0 0 ) 
 
 D e c l a r e   @ u s e r N a m e   n v a r c h a r ( 1 0 0 0 ) 
 
 s e l e c t   @ f i l e i d = t a b i d , @ t a b l e = t a b N a m e , @ u s e r N a m e = s a v e U s e r   f r o m   z y d n _ r o o m   w h e r e   i d = @ i d 
 
 d e l e t e   f r o m   z y d n _ r o o m   w h e r e   i d = @ i d 
 
 u p d a t e     z y d n _ U s e r _ B a s e   s e t     D e l e t e _ C o m m e n t   = D e l e t e _ C o m m e n t + 1   w h e r e   U s e r N a m e   = @ u s e r N a m e 
 
 s e l e c t   @ c o u n t   =   c o u n t ( * )       f r o m   z y d n _ r o o m   w h e r e   t a b i d = @ f i l e i d   a n d   t a b N a m e = @ t a b l e 
 
 i f   ( @ c o u n t = 0 ) 
 
 	 B E G I N 
 
 	 	       s e t   @ s q l = '       d e l e t e   f r o m     ' + @ t a b l e + '   w h e r e   i d = ' + C A S T ( @ f i l e i d   a s   n v a r c h a r ( 5 0 ) ) + '   ' 
 
 	 	       e x e c u t e   ( @ s q l ) 
 
 	 	 d e l e t e   z y d n _ r e v i e w   w h e r e   A T a b = @ t a b l e     a n d   A I D   = @ f i l e i d 
 
 	 	 d e l e t e     [ z y d n _ c o n t r i b u t e ]   w h e r e   t a b N a m e = @ t a b l e   a n d   t a b I d = @ f i l e i d 
 
 	 	 d e l e t e     [ z y d n _ t a b I n t ]   w h e r e   t a b N a m e = @ t a b l e   a n d   t a b I d = @ f i l e i d 
 
 	 	 d e l e t e     [ z y d n _ u s e I n t ]   w h e r e   t a b = @ t a b l e 
 
 	 e n d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ c l e a r l M e n u ]   
 
 @ m i d   i n t   = n u l l 
 
 A S 
 
 D e c l a r e     @ i d L i s t   n v a r c h a r ( 2 5 0 ) 
 
 s e l e c t   @ i d L i s t = U p L i s t I D   f r o m   z y d n _ m e n u   w h e r e   m i d = @ m i d 
 
 u p d a t e   z y d n _ r o o m   s e t   i s d e l = 1     w h e r e   m i d   i n   ( s e l e c t   m i d   f r o m   z y d n _ m e n u     w h e r e     m i d = @ m i d   o r   U p L i s t I D   l i k e   @ i d L i s t + ' , % '   ) 
 
 d e l e t e       z y d n _ m e n u       w h e r e     m i d = @ m i d   o r   U p L i s t I D   l i k e   @ i d L i s t + ' , % ' 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ c o n t r i b u t e A d d ] 
 
 @ t i t l e     n v a r c h a r ( 1 0 0 )   = n u l l , 
 
 @ m i d     i n t   = n u l l , 
 
 @ m N a m e   n v a r c h a r ( 1 0 0 )   = n u l l , 
 
 @ u I D 	 i n t 	 = n u l l , 
 
 @ u N a m e 	 n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ u G r o u p 	 n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ u G r o u p I D 	 n v a r c h a r ( 1 0 ) = n u l l , 
 
 @ E x a m i n e 	 i n t   = n u l l , 
 
 @ t a b N a m e   n v a r c h a r ( 5 0 ) = n u l l   , 
 
 @ t a b I d   i n t   = n u l l 
 
   A S 
 
 d e l e t e       [ z y d n _ c o n t r i b u t e ]   w h e r e   t a b N a m e = @ t a b N a m e   a n d   t a b I d   = @ t a b I d   
 
 i n s e r t   i n t o   [ z y d n _ c o n t r i b u t e ] 
 
 ( 
 
 	 t i t l e , m i d , m N a m e , u I D , u N a m e , u G r o u p , u G r o u p I D , E x a m i n e , t a b N a m e , t a b I d , c r e a t e D a t e 
 
 ) 
 
   v a l u e s 
 
 ( 
 
 	 @ t i t l e , @ m i d , @ m N a m e , @ u I D , @ u N a m e , @ u G r o u p , @ u G r o u p I D , @ E x a m i n e , @ t a b N a m e , @ t a b I d , g e t d a t e ( ) 
 
 ) 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E       P R O C E D U R E   [ h i w e b _ c r e a t e L a b e l I c o ] 
 
 @ u r l   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ p N a m e   n v a r c h a r ( 1 0 0 )   = n u l l , 
 
 @ l N a m e   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ u s e r i d   i n t   = n u l l , 
 
 @ u s e r N a m e   n v a r c h a r ( 1 0 0 )   = n u l l , 
 
 @ i s C r e a t e   i n t = n u l l   o u t p u t 
 
   A S 
 
 D e c l a r e     @ c o u n t   i n t   
 
 D e c l a r e     @ x   i n t 
 
 D e c l a r e     @ y   i n t 
 
 s e t   @ c o u n t = 0 
 
 s e l e c t   @ c o u n t = c o u n t ( 0 )   f r o m   [ z y d n _ P r o g r a m ]   w h e r e   p N a m e = @ p N a m e 
 
 i f   @ c o u n t = 0 
 
 	 B E G I N 
 
 	 	 s e t     @ i s C r e a t e = 1 
 
 	 	 i n s e r t   i n t o   [ z y d n _ P r o g r a m ]   ( p N a m e , i s P o p , p A s N a m e , w i n d o w T y p e , W i d t h , H e i g h t , I C O , P a t h , i s S y s , i s D e s k T o p ) 
 
 	 	 	 	       v a l u e s     ( @ p N a m e , 1 , @ l N a m e , 0 , 6 5 0 , 4 6 0 , ' i c o / m o d i L a b e l . g i f ' , @ u r l , 0 , 1 ) 
 
 	 	 s e l e c t   @ x = m a x ( x )   f r o m   [ z y d n _ D e s k t o p ] 
 
 	 	 s e l e c t   @ y = m a x ( y )   f r o m   [ z y d n _ D e s k t o p ] 
 
 	 	 s e t   @ y = @ y - 5 0 
 
 	 	 s e t   @ x = @ x + 5 0 
 
 	 	 
 
 	                 i n s e r t   i n t o   [ z y d n _ D e s k t o p ] ( p N a m e , x , y , u s e r I D , u s e r N a m e ) v a l u e s ( @ p N a m e , @ x , @ y , @ u s e r i d , @ u s e r N a m e ) 
 
 	 E N D 
 
 e l s e 
 
 	 B E G I N 
 
 	 	 s e t   @ i s C r e a t e = - 1 
 
 	 	 
 
 	 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ c r e a t e M e n u ]   
 
 @ m e n u N a m e   n v a r c h a r   ( 2 5 5 )   = n u l l , 
 
 @ r i d   n v a r c h a r ( 2 5 5 )   = n u l l     o u t p u t   , 
 
 @ m e n u i d   i n t   = n u l l , 
 
 @ i d L i s t   n v a r c h a r ( 2 5 5 )   = n u l l     , 
 
 @ l a y e r   i n t = n u l l , 
 
 @ i s T o p   i n t   = n u l l , 
 
 @ m e n u T e x t   n v a r c h a r ( 5 0 0 ) = n u l l , 
 
 @ m e n u I n d e x   i n t = n u l l , 
 
 @ m e n u A f f i c h e   n v a r c h a r ( 2 8 0 0 ) = n u l l , 
 
 @ m e n u K e y   n v a r c h a r ( 2 5 5 )   = n u l l , 
 
 @ a s T a b   n v a r c h a r ( 2 5 5 )   = n u l l , 
 
 @ m e n u I n t r o   n v a r c h a r ( 2 5 5 ) = n u l l , 
 
 @ p o w e r i d   i n t   = n u l l , 
 
 @ u s e r I n t   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ i s N a v i g a t i o n   i n t   = n u l l , 
 
 @ i s M e n u   i n t   = n u l l ,   
 
 @ i s H i d d e n   i n t   = n u l l , 
 
 @ i s R e v i e w   i n t   = n u l l ,   
 
 @ i s H T M L   i n t   = n u l l , 
 
 @ m e n u T y p e   i n t   = n u l l   , 
 
 @ P a g e U r l   n v a r c h a r ( 2 5 5 ) = n u l l ,   
 
 @ t e m p l e t   n v a r c h a r ( 2 5 5 ) = n u l l , 
 
 @ p a g e S i z e   i n t   = n u l l , 
 
 @ i s H o m e P a g e   i n t   = n u l l , 
 
 @ i s L i s t F i l e   i n t   = n u l l , 
 
 @ T i t l e I m g   n v a r c h a r ( 2 5 5 )   = n u l l , 
 
 @ i s f i n d   i n t   = n u l l 
 
   A S 
 
 / *   
 
   ^zhvvX[PǏz    eQR^vhv
T,   TR^vhvvI D   hvv g\I D   1 0 0 0 
 
 O:   e x e c   c r e a t e M e n u   ' a a b b ' , 0 , 1 0 2 1 , ' ' 
 
 ^z}YT,   ԏV  e^zvhvvM I D W[k
 
 * / 
 
     i f   ( @ p a g e S i z e < = 0 ) 
 
 	 s e t   @ p a g e S i z e = 1 
 
     s e t   @ r i d = n u l l 
 
     s e t   @ i d L i s t   = n u l l 
 
     s e t   @ l a y e r = 0 
 
       s e l e c t   t o p   1   @ r i d = m i d     f r o m   z y d n _ m e n u     o r d e r   b y   m i d   d e s c   
 
       i f     ( @ r i d   i s   n u l l ) 
 
 	 s e l e c t   @ r i d = 1 0 0 0 
 
     e l s e 
 
                 s e l e c t   @ r i d = @ r i d + 1 
 
         i f   ( @ m e n u i d   = 0 ) 
 
 	 s e t   @ i d L i s t = n u l l 
 
       e l s e 
 
 	 s e l e c t   t o p   1   @ i d L i s t = U p L i s t I D , @ l a y e r = l a y e r   f r o m   z y d n _ m e n u   w h e r e   m i d = @ m e n u i d 
 
       i f   ( @ i d L i s t   i s   n u l l ) 
 
                 I N S E R T   I N T O   z y d n _ m e n u 
 
 	 ( 
 
 	 m i d , 
 
 	 m n a m e , 
 
 	 u p l i s t i d , 
 
 	 I n d e x N u m , 
 
 	 m e n u T e x t , 
 
 	 A f f i c h e , 
 
 	 m e n u K e y , 
 
 	 I n t r o , 
 
 	 l a y e r , 
 
 	 a s T a b , 
 
 	 U s e P o w e r , 
 
 	 i s N a v i g a t i o n , 
 
 	 i s M e n u , 
 
 	 i s H i d d e n ,   
 
 	 i s R e v i e w ,   
 
 	 i s H T M L ,   
 
 	 m e n u T y p e , 
 
 	 P a g e U r l ,   
 
 	 t e m p l e t , 
 
 	 u s e r I n t , 
 
 	 p a g e S i z e , 
 
 	 i s L i s t F i l e , 
 
 	 i s H o m e P a g e , 
 
 	 T i t l e I m g , 
 
 	 i s T o p , 
 
 	 i s F i n d 
 
 	 )   v a l u e s ( 
 
 	 @ r i d , 
 
 	 @ m e n u N a m e , 
 
 	 @ r i d , 
 
 	 @ m e n u I n d e x , 
 
 	 @ m e n u T e x t , 
 
 	 @ m e n u A f f i c h e , 
 
 	 @ m e n u K e y , 
 
 	 @ m e n u I n t r o , 
 
 	 @ l a y e r , 
 
 	 @ a s T a b , 
 
 	 @ p o w e r i d , 
 
 	 @ i s N a v i g a t i o n , 
 
 	 @ i s M e n u ,   
 
 	 @ i s H i d d e n , 
 
 	 @ i s R e v i e w ,   
 
 	 @ i s H T M L ,   
 
 	 @ m e n u T y p e ,   
 
 	 @ P a g e U r l ,   
 
 	 @ t e m p l e t , 
 
 	 @ u s e r I n t , 
 
 	 @ p a g e S i z e , 
 
 	 @ i s L i s t F i l e , 
 
 	 @ i s H o m e P a g e , 
 
 	 @ T i t l e I m g , 
 
 	 @ i s T o p , 
 
 	 @ i s f i n d 
 
 	 ) 
 
       e l s e 
 
                 I N S E R T   I N T O   z y d n _ m e n u   
 
 	 ( 
 
 	 m i d , 
 
 	 m n a m e , 
 
 	 u p l i s t i d , 
 
 	 I n d e x N u m , 
 
 	 m e n u T e x t , 
 
 	 A f f i c h e , 
 
 	 m e n u K e y , 
 
 	 I n t r o , 
 
 	 l a y e r , 
 
 	 a s T a b , 
 
 	 U s e P o w e r , 
 
 	 i s N a v i g a t i o n , 
 
 	 i s M e n u , 
 
 	 i s H i d d e n ,   
 
 	 i s R e v i e w ,   
 
 	 i s H T M L ,   
 
 	 m e n u T y p e , 
 
 	 P a g e U r l ,   
 
 	 t e m p l e t , 
 
 	 u s e r I n t , 
 
 	 p a g e S i z e , 
 
 	 i s L i s t F i l e , 
 
 	 i s H o m e P a g e , 
 
 	 T i t l e I m g , 
 
 	   b b s N e w C o u n t , 
 
 	   b b s T i t l e C o u n t , 
 
 	   b b s R e C o u n t , 
 
 	 i s T o p 
 
 	 )   v a l u e s ( 
 
 	 @ r i d , 
 
 	 @ m e n u N a m e , 
 
 	 @ i d L i s t + ' , ' + @ r i d , 
 
 	 @ m e n u I n d e x , 
 
 	 @ m e n u T e x t , 
 
 	 @ m e n u A f f i c h e , 
 
 	 @ m e n u K e y , 
 
 	 @ m e n u I n t r o , 
 
 	 @ l a y e r + 1 , 
 
 	 @ a s T a b , 
 
 	 @ p o w e r i d , 
 
 	 @ i s N a v i g a t i o n , 
 
 	 @ i s M e n u ,   
 
 	 @ i s H i d d e n , 
 
 	 @ i s R e v i e w ,   
 
 	 @ i s H T M L ,   
 
 	 @ m e n u T y p e ,   
 
 	 @ P a g e U r l ,   
 
 	 @ t e m p l e t , 
 
 	 @ u s e r I n t , 
 
 	 @ p a g e S i z e , 
 
 	 @ i s L i s t F i l e , 
 
 	 @ i s H o m e P a g e , 
 
 	 @ T i t l e I m g , 
 
 	 0 , 
 
 	 0 , 
 
 	 0 , 
 
 	 @ i s T o p 
 
 	 ) 
 
       i f   ( @ i d L i s t     i s   n o t   n u l l ) 
 
               u p d a t e   z y d n _ m e n u   s e t   i s D o w n   = 1   w h e r e   m i d   =   @ m e n u i d 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ c r e a t e R o o m ]     
 
 @ m e n u i d   i n t   =   n u l l , 
 
 @ t a b i d   i n t   =   n u l l , 
 
 @ t a b l e   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ i s c l e a r   i n t   = n u l l , 
 
 @ t i t l e   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ s a v e U s e r   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ c b s   n v a r c h a r ( 5 0 0 ) = n u l l 
 
 A S 
 
     i f   ( @ i s c l e a r   = 1 ) 
 
                       d e l e t e     f r o m   z y d n _ r o o m   w h e r e   t a b i d   = @ t a b i d   a n d   t a b n a m e = @ t a b l e   a n d   i s d e l = 0 
 
       I N S E R T   I N T O   [ z y d n _ r o o m ]   ( [ m i d ] , [ t a b i d ] , [ t a b n a m e ] , [ t i t l e ] , [ c b s ] , [ s a v e U s e r ] , [ c r e a t e D a t e ] , [ i s H T M L ] )   v a l u e s   ( @ m e n u i d , @ t a b i d , @ t a b l e , @ t i t l e , @ c b s , @ s a v e U s e r , g e t d a t e ( ) , 0 ) 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d e l B b s M a i n ] 
 
 / *  Rd[W;N* / 
 
 @ m i d   i n t   = n u l l , 
 
 @ m e n u i d   i n t = n u l l     o u t p u t , 
 
 @ u s e r i d   i n t   = n u l l   o u t p u t 
 
   A S 
 
 
 
 	 s e l e c t     @ m e n u i d = m e n u i d ,   @ u s e r i d = s a v e U s e r I D   f r o m       [ z y d n _ B B S M a i n ]       w h e r e   i d = @ m i d 
 
 	 u p d a t e       [ z y d n _ B B S M a i n ]   s e t     i s d e l = 1   w h e r e   i d = @ m i d 
 
 	 u p d a t e   [ z y d n _ B B S R e ]   s e t   i s d e l = 1   w h e r e   m a i n I D = @ m i d 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d e l B b s R e ] 
 
 @ i d   i n t   = n u l l , 
 
 @ m e n u i d   i n t = n u l l     o u t p u t , 
 
 @ u s e r i d   i n t   = n u l l   o u t p u t 
 
   A S 
 
 / *  RdV
Yv4P[* / 
 
 
 
 
 
 s e l e c t     @ m e n u i d = m e n u i d ,   @ u s e r i d = s a v e U s e r I D   f r o m       [ z y d n _ B B S R e ]       w h e r e   i d = @ i d 
 
 
 
 u p d a t e   [ z y d n _ B B S R e ]   s e t   i s D e l = 1   w h e r e   i d = @ i d 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d e l E x a m i n e ] 
 
 @ t a b   n v a r c h a r ( 2 0 0 )   = n u l l , 
 
 @ t a b i d   n v a r c h a r ( 1 0 0 0 ) = n u l l 
 
   A S 
 
 D e c l a r e   @ s q l   n v a r c h a r ( 1 5 0 0 ) 
 
 s e t   @ s q l = ' d e l e t e         ' + @ t a b + '     w h e r e   i d   i n   ( ' + @ t a b i d + ' )   ' 
 
 e x e c u t e   ( @ s q l ) 
 
 s e t   @ s q l   =   '   d e l e t e       z y d n _ r o o m     w h e r e   t a b i d   i n   ( ' + @ t a b i d + ' )   a n d   t a b n a m e   =   ' ' ' + @ t a b + ' ' ' ' 
 
 e x e c u t e   ( @ s q l ) 
 
 s e t   @ s q l   =   '   d e l e t e       z y d n _ c o n t r i b u t e     w h e r e   t a b i d   i n   ( ' + @ t a b i d + ' )   a n d   t a b n a m e   =   ' ' ' + @ t a b + ' ' ' ' 
 
 e x e c u t e   ( @ s q l ) 
 
 / * 
 
 d e l e t e   z y d n _ r o o m   w h e r e   t a b i d   i n   ( @ t a b i d )   a n d   t a b n a m e = @ t a b 
 
 * / 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d e l F i l e ]   
 
 @ f i l e i d L i s t   n v a r c h a r ( 1 0 0 0 ) = n u l l , 
 
 @ t a b l e   n v a r c h a r ( 5 0 )   = n u l l , 
 
 @ m e n u i d   i n t   = n u l l 
 
 A S 
 
 / * (uN RdeN* / 
 
 D e c l a r e   @ s q l     n v a r c h a r ( 2 0 0 0 )   
 
 s e t   @ s q l = ' u p d a t e         z y d n _ r o o m   s e t   i s D e l = 1 , d e l D a t e = g e t D a t e ( )   w h e r e   t a b n a m e = ' ' ' + @ t a b l e + ' ' '   a n d   m i d = ' + C A S T ( @ m e n u i d   a s   n v a r c h a r ( 5 0 ) )   + '   a n d   t a b i d   i n   ( ' + @ f i l e i d L i s t + ' )     ' 
 
 e x e c u t e   ( @ s q l ) 
 
 s e t   @ s q l = ' u p d a t e         [ ' + @ t a b l e + ' ]   s e t   i s D e l = 1     w h e r e     i d   i n   ( ' + @ f i l e i d L i s t + ' )     ' 
 
 e x e c u t e   ( @ s q l ) 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 / * 
 
  Rd(u7b~, bRԏV0 ,   ?S
T~
N RdԏV1   ؞~
N RdԏV2 
 
 * / 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d e l G r o u p ] 
 
 @ g r o u p i d     i n t   = n u l l , 
 
 @ o u t T y p e   i n t   = n u l l   o u t p u t 
 
   A S 
 
 s e t   @ o u t T y p e = 0 
 
 D e c l a r e   @ g u e s t i d     i n t 
 
 D e c l a r e   @ d e f i d     i n t 
 
 s e l e c t   @ g u e s t i d = i d   f r o m   z y d n _ U s e r G r o u p   w h e r e   I s G u e s t = 1 
 
 s e l e c t     @ d e f i d     = i d     f r o m   z y d n _ U s e r G r o u p   w h e r e   I s D e f a u l t = 1 
 
 i f   ( @ g r o u p i d =   @ g u e s t i d ) 
 
 	 s e t   @ o u t T y p e = 1 
 
 i f   ( @ d e f i d   = @ g r o u p i d   ) 
 
 	 s e t   @ o u t T y p e = 2 
 
 i f   ( @ o u t T y p e = 0 ) 
 
 	 d e l e t e     f r o m   z y d n _ U s e r G r o u p   w h e r e   i d = @ g r o u p i d 
 
 i f   ( @ o u t T y p e = 0 ) 
 
 	 u p d a t e   z y d n _ U s e r _ B a s e   s e t   G r o u p I D = r e p l a c e ( G r o u p I D , C A S T ( @ g r o u p i d   a s   n v a r c h a r ( 5 0 ) ) + ' , ' ,       C A S T ( @ d e f i d     a s     n v a r c h a r ( 5 0 ) ) + ' , '       )   w h e r e   G r o u p I D   l i k e   ' % ' + C A S T ( @ g r o u p i d   a s   n v a r c h a r ( 5 0 ) ) + ' , % ' 
 
 i f   ( @ o u t T y p e = 0 ) 
 
 	 s e t   @ o u t T y p e = @ g r o u p i d + 1 0 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d e l I n t p u F i l e ] 
 
 @ m e n u i d     i n t   = n u l l , 
 
 @ t a b l e   v a r c h a r ( 2 5 0 )   = n u l l , 
 
 @ t i t l e   n v a r c h a r ( 8 0 0 ) = n u l l 
 
 
 
   A S 
 
 D e c l a r e   @ t a b i d       i n t 
 
 D e c l a r e   @ i d     i n t 
 
 D e c l a r e   @ s q l   n v a r c h a r ( 8 0 0 ) 
 
 
 
 
 
 
 
 s e l e c t       @ t a b i d = t a b i d   ,   @ i d = i d       f r o m   z y d n _ r o o m   w h e r e     [ m i d ] = @ m e n u i d     a n d   [ t a b n a m e ] = @ t a b l e     a n d   [ t i t l e ] = @ t i t l e 
 
 
 
 d e l e t e   z y d n _ r o o m   w h e r e   i d = @ i d 
 
 
 
 s e t   @ s q l = '       d e l e t e   f r o m     ' + @ t a b l e + '   w h e r e   i d = ' + C A S T ( @ t a b i d   a s   n v a r c h a r ( 5 0 ) ) + '   ' 
 
 e x e c u t e   ( @ s q l ) 
 
 
 
 d e l e t e   z y d n _ r e v i e w   w h e r e   A T a b = @ t a b l e     a n d   A I D   = @ t a b i d 
 
 d e l e t e     [ z y d n _ c o n t r i b u t e ]   w h e r e   t a b N a m e = @ t a b l e   a n d   t a b I d = @ t a b i d 
 
 d e l e t e     [ z y d n _ t a b I n t ]   w h e r e   t a b N a m e = @ t a b l e   a n d   t a b I d = @ t a b i d 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d e l M e n u ]   
 
 @ m e n u i d     i n t   = n u l l , 
 
 @ a s T a b   n v a r c h a r ( 5 0 )   = n u l l   , 
 
 @ u p i d L i s t   n v a r c h a r ( 1 0 0 )   = n u l l   , 
 
 @ i d L i s t   n v a r c h a r ( 5 0 ) = n u l l     o u t p u t   , 
 
 @ c o u n t   i n t   = n u l l   o u t p u t 
 
 A S 
 
 / *    RdhvvX[PǏz  * / 
 
   s e t     @ c o u n t = 0 
 
 s e l e c t   @ i d L i s t = U p L i s t I D , @ a s T a b = a s T a b       f r o m   z y d n _ m e n u   w h e r e   m i d = @ m e n u i d 
 
 u p d a t e       z y d n _ m e n u   s e t   i s d e l = 1     w h e r e     m i d = @ m e n u i d   o r   U p L i s t I D   l i k e   @ i d L i s t + ' , % ' 
 
 s e l e c t   @ c o u n t = c o u n t ( * )   f r o m   z y d n _ m e n u   w h e r e   i s d e l = 0   a n d     U p L i s t I D   l i k e   @ u p i d L i s t + ' , % ' 
 
 i f   ( @ c o u n t = 0 ) 
 
 u p d a t e   z y d n _ m e n u   s e t   i s d o w n = 0   w h e r e   U p L i s t I D = @ u p i d L i s t 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d e l M s g ] 
 
 @ i d     i n t   = n u l l , 
 
 @ d e l T y p e   n v a r c h a r ( 1 0 ) = n u l l 
 
   A S 
 
 i f   ( @ d e l T y p e = ' t o U s e r ' ) 
 
 	 u p d a t e   [ z y d n _ m s g ]   s e t   t o D e l = 1   w h e r e   i d = @ i d 
 
 e l s e 
 
 	 u p d a t e   [ z y d n _ m s g ]   s e t   f r o m D e l = 1   w h e r e   i d = @ i d 
 
 d e l e t e     f r o m     [ z y d n _ m s g ]     w h e r e     t o D e l = 1   a n d   f r o m D e l = 1   a n d   i d = @ i d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 c r e a t e   p r o c   h i w e b _ d e l M y C a r t I t e m 
 
 @ a l l T o t a l   n u m e r i c ( 1 0 , 2 )   o u t p u t , 
 
 @ I D   i n t , 
 
 @ U s e r I D   i n t   
 
 a s 
 
 	 d e l e t e   z y d n _ O r d e r L i s t   w h e r e   I D = @ I D 
 
 	 s e l e c t   @ a l l T o t a l = s u m ( T o t a l )   f r o m   z y d n _ O r d e r L i s t   w h e r e   u s e r I D = @ U s e r I D   a n d   i s C a r t = 1 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d e l R e v i e w ] 
 
 / * (u7bvV
Y Rd* / 
 
 @ i d L i s t   n v a r c h a r ( 1 0 0 0 ) = n u l l 
 
   A S 
 
 D e c l a r e   @ s q l   n v a r c h a r ( 1 0 0 0 ) 
 
     s e t   @ s q l = '   u p d a t e     z y d n _ U s e r _ B a s e   s e t     D e l e t e _ R e l e a s e = D e l e t e _ R e l e a s e + ( s e l e c t   c o u n t ( 0 )   a s   N u m   f r o m     [ z y d n _ r e v i e w ]   w h e r e   i d   i n   ( ' + @ i d L i s t + ' ) )   w h e r e   i d   i n   (     s e l e c t       S a v e U s e r I D     f r o m     [ z y d n _ r e v i e w ]   w h e r e   i d   i n   ( ' + @ i d L i s t + ' )         ) ' 
 
       e x e c u t e   ( @ s q l ) 
 
     s e t   @ s q l = '     d e l e t e   [ z y d n _ r e v i e w ]   w h e r e   i d   i n   ( ' + @ i d L i s t + ' )   ' 
 
       e x e c u t e   ( @ s q l ) 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   p r o c   h i w e b _ d e l T e n d e r 
 
 @ i s T e n d e r   i n t , 
 
 @ u s e r I D   i n t , 
 
 @ p l a n I D   i n t , 
 
 @ t I n t   i n t , 
 
 @ t M o n e y   i n t 
 
 a s 
 
 	 d e l e t e   z y d n _ t e n d e r   w h e r e   p l a n I D = @ p l a n I D 
 
 	 d e l e t e   z y d n _ s e t P l a n   w h e r e   m i d = @ p l a n I D 
 
 	 d e l e t e   z y d n _ t a b I n t   w h e r e   i d = @ i s T e n d e r 
 
 	 u p d a t e   t a b _ N e w s   s e t   A r t _ V i e w _ I n t _ I D = - 1   w h e r e   A r t _ V i e w _ I n t _ I D = @ i s T e n d e r 
 
 	 u p d a t e     [ z y d n _ U s e r _ B a s e ]   s e t   I n t e g r a l _ B a s e = I n t e g r a l _ B a s e + @ t I n t ,   [ M o n e y ] = [ M o n e y ] + @ t M o n e y   w h e r e   I D = @ u s e r I D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d e l U p F i l e ] 
 
 @ f i l e i d   i n t         = n u l l , 
 
 @ f i l e N a m e   n v a r c h a r ( 5 0 ) = n u l l   o u t p u t , 
 
 @ f i l e P a t h   n v a r c h a r ( 2 5 0 ) = n u l l   o u t p u t 
 
   A S 
 
 s e l e c t   @ f i l e N a m e = [ F i l e N a m e ] , @ f i l e P a t h = [ F i l e P a t h ]     f r o m   z y d n _ u p f i l e   w h e r e   i d = @ f i l e i d 
 
 d e l e t e   f r o m   z y d n _ u p f i l e   w h e r e   i d = @ f i l e i d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d e l m e n u I n t ]   
 
 @ n a m e   n v a r c h a r ( 1 0 0 )   = n u l l 
 
 A S 
 
 d e l e t e   f r o m   [ z y d n _ C o n f i g _ M e n u I n t ]     w h e r e   M I N a m e = @ n a m e 
 
 u p d a t e   [ z y d n _ M e n u ]   s e t   [ U s e r I n t ] = ' '   w h e r e   [ U s e r I n t ] = @ n a m e 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ d i s p l a y T a b S e t u p ] 
 
 @ t y p e   i n t   = n u l l 
 
   A S 
 
 i f   ( @ t y p e = 1 ) 
 
 	 B E G I N 
 
 	 	 S E L E C T   
 
 	 	 z y d n _ C o n f i g _ T a b . t a b N a m e ,   
 
 	 	 z y d n _ C o n f i g _ T a b . t a b A s N a m e ,   
 
 	 	   z y d n _ C o n f i g _ T a b . D i s p l a y T y p e , 
 
 	 	   z y d n _ C o n f i g _ F i e l d . f N a m e ,   
 
 	 	 z y d n _ C o n f i g _ F i e l d . f A s N a m e ,   
 
 	 	 z y d n _ C o n f i g _ F i e l d . f T y p e ,   
 
 	 	 z y d n _ C o n f i g _ F i e l d . f O r d e r ,   
 
 	 	 z y d n _ C o n f i g _ F i e l d . p o w e r ,   
 
 	 	 z y d n _ C o n f i g _ F i e l d . p o s t f i x , 
 
 	 	   z y d n _ C o n f i g _ T a b . C o n t e n t P a g e , 
 
 	 	 z y d n _ C o n f i g _ F i e l d . f E d i t T y p e , 
 
 	 	 z y d n _ C o n f i g _ F i e l d . i s L i s t   
 
 
 
 	 	 F R O M   z y d n _ C o n f i g _ F i e l d   I N N E R   J O I N 
 
 	 	             z y d n _ C o n f i g _ T a b   O N   z y d n _ C o n f i g _ F i e l d . T I D   =   z y d n _ C o n f i g _ T a b . I D 
 
 	 
 
 	 	 W H E R E   ( z y d n _ C o n f i g _ F i e l d . i s L i s t   =   1 )   O R             ( z y d n _ C o n f i g _ F i e l d . f N a m e   =   ' t i t l e ' )   
 
 	 	 O R D E R   B Y   z y d n _ C o n f i g _ F i e l d . T I D ,   z y d n _ C o n f i g _ F i e l d . I D 
 
 	 e n d   
 
 i f   ( @ t y p e = 2 ) 
 
 B E G I N 
 
 	 S E L E C T   
 
 	 z y d n _ C o n f i g _ T a b . t a b N a m e ,   
 
 	 z y d n _ C o n f i g _ T a b . t a b A s N a m e ,   
 
 	   z y d n _ C o n f i g _ T a b . D i s p l a y T y p e , 
 
 	   z y d n _ C o n f i g _ F i e l d . f N a m e ,   
 
 	 z y d n _ C o n f i g _ F i e l d . f A s N a m e ,   
 
 	 z y d n _ C o n f i g _ F i e l d . f T y p e ,   
 
 	 z y d n _ C o n f i g _ F i e l d . f O r d e r ,   
 
 	 z y d n _ C o n f i g _ F i e l d . p o w e r ,   
 
 	 z y d n _ C o n f i g _ F i e l d . p o s t f i x ,   
 
 	 z y d n _ C o n f i g _ T a b . C o n t e n t P a g e , z y d n _ C o n f i g _ F i e l d . f E d i t T y p e 
 
 	 F R O M   z y d n _ C o n f i g _ F i e l d   I N N E R   J O I N 
 
 	             z y d n _ C o n f i g _ T a b   O N   z y d n _ C o n f i g _ F i e l d . T I D   =   z y d n _ C o n f i g _ T a b . I D 
 
 	 W H E R E   ( z y d n _ C o n f i g _ F i e l d . i s W i n d o w   =   1 )   O R             ( z y d n _ C o n f i g _ F i e l d . f N a m e   =   ' t i t l e ' ) 
 
 	 O R D E R   B Y   z y d n _ C o n f i g _ F i e l d . T I D ,   z y d n _ C o n f i g _ F i e l d . I D 
 
 E N D 
 
 i f   ( @ t y p e = 3 ) 
 
 B E G I N 
 
 S E L E C T   
 
 	 z y d n _ C o n f i g _ T a b . t a b N a m e ,   
 
 	 z y d n _ C o n f i g _ T a b . t a b A s N a m e ,   
 
 	   z y d n _ C o n f i g _ T a b . D i s p l a y T y p e , 
 
 	   z y d n _ C o n f i g _ F i e l d . f N a m e ,   
 
 	 z y d n _ C o n f i g _ F i e l d . f A s N a m e ,   
 
 	 z y d n _ C o n f i g _ F i e l d . f T y p e ,   
 
 	 z y d n _ C o n f i g _ F i e l d . f O r d e r ,   
 
 	 z y d n _ C o n f i g _ F i e l d . p o w e r ,   
 
 	 z y d n _ C o n f i g _ F i e l d . p o s t f i x ,   
 
 	 z y d n _ C o n f i g _ T a b . C o n t e n t P a g e , 
 
 	 z y d n _ C o n f i g _ F i e l d . f E d i t T y p e , 
 
 	 z y d n _ C o n f i g _ F i e l d . i s F i n d   
 
 	 F R O M   z y d n _ C o n f i g _ F i e l d   I N N E R   J O I N 
 
 	             z y d n _ C o n f i g _ T a b   O N   z y d n _ C o n f i g _ F i e l d . T I D   =   z y d n _ C o n f i g _ T a b . I D 
 
 	 W H E R E   ( z y d n _ C o n f i g _ F i e l d . i s F i n d   =   1 )   O R             ( z y d n _ C o n f i g _ F i e l d . f N a m e   =   ' t i t l e ' ) 
 
 	 O R D E R   B Y   z y d n _ C o n f i g _ F i e l d . T I D ,   z y d n _ C o n f i g _ F i e l d . I D 
 
 E N D 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ g e t G u e s t G r o u p ]   
 
 @ g r o u p i d   i n t   = n u l l   o u t p u t , 
 
 @ g r o u p N a m e   n v a r c h a r ( 2 5 0 ) = n u l l   o u t p u t 
 
 A S 
 
         s e l e c t   t o p   1   
 
 	 @ g r o u p i d = [ i d ] , 
 
 	 @ g r o u p N a m e = [ G r o u p N a m e ]   
 
 	   f r o m   z y d n _ U s e r G r o u p   w h e r e   I s G u e s t   = 1 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 c r e a t e   p r o c   h i w e b _ h a s C a r t 
 
 @ o r d e r I D   n v a r c h a r ( 5 0 )   o u t p u t , 
 
 @ u s e r I D   i n t 
 
 a s 
 
 s e l e c t   @ o r d e r I D = O r d e r I D   f r o m   z y d n _ o r d e r L i s t   w h e r e   u s e r I D = @ u s e r I D   a n d   i s C a r t = 1 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 C R E A T E   p r o c   h i w e b _ i n p u t B B S 
 
 ( 
 
     @ t i t l e   n v a r c h a r ( 1 0 0 ) , - - - - - - - - - - - - / S^h
 
     @ c o n t e n t   n t e x t , 
 
     @ s a v e U s e r   n v a r c h a r ( 5 0 ) , - - - - - - - / S^N
Ty
 
     @ s a v e D a t e   d a t e t i m e , - - - / S^e
 
     @ s a v e U s e r I D   i n t , - - - - - - - / S^NvI D                               
 
     @ r e U s e r   n v a r c h a r ( 5 0 ) , - - - - - - - - - / V^N
Ty
 
     @ r e D a t e   d a t e t i m e , - - - - - - - - - / V^ve
 
     @ r e U s e r I D   i n t , - - - - - - - - - / V^NvI D                               
 
     @ i s T o p   t i n y i n t , - - - - - - - - - / /f&Tnv                            
 
     @ l o c k e d   t i n y i n t , - - - - - - - - - / [r`                            
 
     @ c l i c k C o u n t   i n t , - - - - - - - - - / pQ!kpe
 
     @ m e n u i d   i n t , - - - - - - - - - / hvS  
 
     @ i s D e l   t i n y i n t , - - - - - - - - - / /f&T Rd
 
     @ i d   i n t   o u t p u t 
 
 ) 
 
 a s 
 
 b e g i n 
 
   i n s e r t   i n t o   z y d n _ B B S M a i n ( t i t l e , c o n t e n t , s a v e U s e r , s a v e D a t e , s a v e U s e r I D , r e U s e r , r e D a t e , r e U s e r I D , i s T o p , l o c k e d , c l i c k C o u n t , m e n u i d , i s D e l , p o s t T y p e , r e I D , o u t I n t , i n I n t , i s R e D i s p l a y , i s E l i t e , r e C o u n t , v o t e ) 
 
 	 v a l u e s ( @ t i t l e , @ c o n t e n t , @ s a v e U s e r , @ s a v e D a t e , @ s a v e U s e r I D , @ r e U s e r , @ r e D a t e , @ r e U s e r I D , @ i s T o p , @ l o c k e d , @ c l i c k C o u n t , @ m e n u i d , @ i s D e l , ' 0 ' , 0 , 0 , 0 , ' 0 ' , ' 0 ' , 0 , 0 ) 
 
   s e l e c t   @ i d = @ @ i d e n t i t y 
 
 e n d 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ i n t 2 a d d ] 
 
 @ i n t s t r     n u m e r i c   = n u l l , 
 
 @ a d d   n v a r c h a r ( 5 0 ) = n u l l   o u t p u t 
 
   A S 
 
 s e l e c t   t o p   1   @ a d d = c o u n t r y   f r o m   z y d n _ i p   w h e r e   s t a r t i n t < = @ i n t s t r   a n d   e n d i n t   > = @ i n t s t r 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   p r o c   h i w e b _ i s T e n d e r 
 
 @ p l a n I D   i n t , 
 
 @ o u t N u m   i n t   o u t p u t 
 
 a s 
 
 d e c l a r e   @ f l a g   i n t 
 
 s e l e c t   @ f l a g = c o u n t ( 0 )   f r o m   z y d n _ t e n d e r   w h e r e   i s O K = 1   a n d   p l a n I D = @ p l a n I D 
 
 i f ( @ f l a g > 0 ) 
 
 b e g i n 
 
 	 s e t   @ o u t N u m   =   1 
 
 e n d 
 
 e l s e 
 
 b e g i n 
 
 	 s e t   @ o u t N u m   =   0 
 
 e n d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ l o c k e d B b s P o s t ]   
 
 / * [4P[* / 
 
 @ i d   i n t   = n u l l , 
 
 @ m e n u i d   i n t   = n u l l   o u t p u t , 
 
 @ u s e r i d   i n t = n u l l   o u t p u t 
 
 A S 
 
 
 
     s e l e c t   @ m e n u i d = m e n u i d ,   @ u s e r i d = s a v e U s e r I D   f r o m     z y d n _ B B S M a i n     w h e r e   i d = @ i d 
 
     u p d a t e   z y d n _ B B S M a i n   s e t   l o c k e d = 1   w h e r e   i d = @ i d 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 / *   
 
 O9e N*Nhvv^\'`
 
 * / 
 
 C R E A T E     P R O C E D U R E   [ h i w e b _ m o d i M e n u ]   
 
 @ m e n u N a m e   n v a r c h a r   ( 2 5 5 )   = n u l l , 
 
 @ m e n u i d   i n t   = n u l l , 
 
 @ m e n u T e x t   n v a r c h a r ( 5 0 0 ) = n u l l , 
 
 @ m e n u I n d e x   i n t = n u l l , 
 
 @ m e n u A f f i c h e   n v a r c h a r ( 2 8 0 0 ) = n u l l , 
 
 @ m e n u K e y   n v a r c h a r ( 2 5 5 )   = n u l l , 
 
 @ a s T a b   n v a r c h a r ( 2 5 5 )   = n u l l , 
 
 @ p o w e r i d   i n t   = n u l l , 
 
 @ u s e r I n t   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ s e t D o w n M e n u   i n t   = n u l l , 
 
 @ m e n u I n t r o     n v a r c h a r ( 2 5 5 ) = n u l l , 
 
 @ i s N a v i g a t i o n   i n t   = n u l l , 
 
 @ i s M e n u   i n t   = n u l l ,   
 
 @ i s H i d d e n   i n t   = n u l l , 
 
 @ i s R e v i e w   i n t   = n u l l ,   
 
 @ i s H T M L   i n t   = n u l l , 
 
 @ m e n u T y p e   i n t   = n u l l   , 
 
 @ P a g e U r l   n v a r c h a r ( 2 5 5 ) = n u l l ,   
 
 @ t e m p l e t   n v a r c h a r ( 2 5 5 ) = n u l l , 
 
 @ s e t D o w n M e n u I n t   i n t   = n u l l , 
 
 @ p a g e S i z e   i n t   = n u l l , 
 
 @ i s H o m e P a g e   i n t   = n u l l , 
 
 @ i s L i s t F i l e   i n t   = n u l l , 
 
 @ T i t l e I m g   n v a r c h a r ( 2 5 5 )   =   n u l l , 
 
 @ i s T o p   i n t   = n u l l , 
 
 @ i s F i n d   i n t   = n u l l 
 
   A S 
 
 	 i f   ( @ p a g e S i z e   < = 0 )   
 
 	 B E G I N 
 
 	 	 s e t   @ p a g e S i z e = 1 
 
 	 E N D 
 
 	 D e c l a r e   @ u p P o w e r     n v a r c h a r ( 2 5 0 ) 
 
 	 D e c l a r e   @ u p L i s t       n v a r c h a r ( 2 5 0 ) 
 
 	 D e c l a r e   @ l a y e r     i n t   
 
 	 D e c l a r e   @ i s D o w n   i n t 
 
 	 D e c l a r e   @ s q l   n v a r c h a r ( 1 0 0 0 ) 
 
 	 
 
 	 s e l e c t   @ u p L i s t   =   U p L i s t I D ,   @ l a y e r = l a y e r , @ u p P o w e r = U s e P o w e r , @ i s D o w n   = i s D o w n         f r o m   z y d n _ m e n u   w h e r e   m i d   = @ m e n u i d 
 
             u p d a t e     z y d n _ m e n u   s e t   
 
 	 
 
 	 m n a m e = @ m e n u N a m e , 
 
 	 I n d e x N u m = @ m e n u I n d e x , 
 
 	 m e n u T e x t = @ m e n u T e x t , 
 
 	 A f f i c h e = @ m e n u A f f i c h e , 
 
 	 m e n u K e y = @ m e n u K e y , 
 
 	 I n t r o = @ m e n u I n t r o , 
 
 	 a s T a b = @ a s T a b , 
 
 	 u s e P o w e r = @ p o w e r i d   , 
 
 	 i s N a v i g a t i o n = @ i s N a v i g a t i o n , 
 
 	 i s M e n u = @ i s M e n u , 
 
 	 i s H i d d e n = @ i s H i d d e n ,   
 
 	 i s R e v i e w = @ i s R e v i e w ,   
 
 	 i s H T M L = @ i s H T M L ,   
 
 	 m e n u T y p e = @ m e n u T y p e , 
 
 	 P a g e U r l = @ P a g e U r l ,   
 
 	 t e m p l e t = @ t e m p l e t , 
 
 	 u s e r I n t = @ u s e r I n t , 
 
 	 p a g e S i z e = @ p a g e S i z e , 
 
 	 i s L i s t F i l e = @ i s L i s t F i l e , 
 
 	 i s H o m e P a g e = @ i s H o m e P a g e , 
 
 	 T i t l e I m g = @ T i t l e I m g , 
 
 	 i s T o p = @ i s T o p , 
 
 	 i s F i n d = @ i s F i n d 
 
 	   w h e r e   m i d = @ m e n u i d 
 
 i f   ( @ i s D o w n   =   1 ) 
 
 	 B E G I N 
 
 	                           i f   ( @ s e t D o w n M e n u = 1 ) 
 
 	 	 B E G I N 
 
 	 	 	 u p d a t e   z y d n _ m e n u     s e t   u s e P o w e r = @ p o w e r i d       w h e r e     U p L i s t I D   l i k e     @ u p L i s t   + ' , % ' 
 
 	 	 E N D   
 
 	 e l s e 
 
 	 	 B E G I N 
 
 	 	 	 i f   ( @ l a y e r > 0 ) 
 
 	 	 	 B E G I N 
 
 	 	 	 	 s e t   @ s q l = ' s e l e c t     t o p   1   @ u p P o w e r = U s e P o w e r   f r o m   z y d n _ m e n u   w h e r e   m i d     i n   ( ' + @ u p L i s t + ' )   a n d   l a y e r < ' +   c a s t ( @ l a y e r   a s   n v a r c h a r ( 5 0 ) )   + '     o r d e r   b y   m i d   d e s c ' 
 
 	 	 	 	 
 
 	 	 	 	 e x e c   s p _ e x e c u t e s q l       @ s q l , N ' @ u p P o w e r       n v a r c h a r ( 2 5 0 )       o u t '   , @ u p P o w e r       o u t       
 
 	 	 	 E N D 
 
 	 	 	 
 
 	 	 	 u p d a t e   z y d n _ m e n u     s e t   u s e P o w e r = @ p o w e r i d       w h e r e       U p L i s t I D   l i k e     @ u p L i s t   + ' , % '   a n d   	 U s e P o w e r = @ u p P o w e r 
 
 	 
 
 	 	 E N D 
 
 	 E N D 
 
 i f   ( @ s e t D o w n M e n u I n t = 1 ) 
 
 	 B E G I N 
 
 	 	 u p d a t e   z y d n _ m e n u     s e t   u s e r I n t   =   @ u s e r I n t       w h e r e     U p L i s t I D   l i k e   ( s e l e c t   U p L i s t I D   f r o m   z y d n _ m e n u   w h e r e   m i d = @ m e n u i d ) + ' , % ' 
 
 	 	 
 
 	 E N D 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ m o d i T a b C l a s s ]   
 
 @ t a b N a m e   n v a r c h a r   ( 5 0 )   = n u l l , 
 
 @ t a b A s N a m e   n v a r c h a r ( 5 0 )   = n u l l     , 
 
 @ d i s p l a y T y p e   n v a r c h a r ( 5 0 )   = n u l l     , 
 
 @ a d d F i e l d   n v a r c h a r ( 2 5 5 )   = n u l l     , 
 
 @ C o n t e n t P a g e   n v a r c h a r ( 2 5 5 ) = n u l l , 
 
 @ E d i t P a g e   n v a r c h a r ( 2 5 5 ) = n u l l , 
 
 @ t a b i d   i n t   = n u l l   o u t p u t   , 
 
 @ n e w i d   i n t   = n u l l   o u t p u t   
 
 A S 
 
 / *   
 
   R^bO9e N*Nhv>f:y<h_hvX[PǏz
 
 * / 
 
       s e t   @ n e w i d = 0 
 
       s e t   @ t a b i d = n u l l 
 
       s e l e c t   t o p   1   @ t a b i d = i d     f r o m   z y d n _ C o n f i g _ T a b   w h e r e   t a b N a m e = @ t a b N a m e   
 
       i f     ( @ t a b i d   i s   n u l l ) 
 
                 I N S E R T   I N T O   z y d n _ C o n f i g _ T a b ( t a b N a m e , t a b A s N a m e , d i s p l a y T y p e , C o n t e n t P a g e , E d i t P a g e )   v a l u e s ( @ t a b N a m e , @ t a b A s N a m e , @ d i s p l a y T y p e , @ C o n t e n t P a g e , @ E d i t P a g e ) 
 
     e l s e 
 
             u p d a t e   z y d n _ C o n f i g _ t a b   s e t   t a b N a m e = @ t a b N a m e , t a b A s N a m e = @ t a b A s N a m e , d i s p l a y T y p e = @ d i s p l a y T y p e , C o n t e n t P a g e = @ C o n t e n t P a g e , E d i t P a g e = @ E d i t P a g e   w h e r e   t a b N a m e = @ t a b N a m e 
 
     i f   ( @ t a b i d   i s   n u l l ) 
 
         s e l e c t   @ n e w i d = 1 
 
     i f   ( @ t a b i d   i s   n u l l ) 
 
               s e l e c t   t o p   1   @ t a b i d = i d   f r o m   z y d n _ C o n f i g _ T a b   o r d e r   b y   i d   d e s c 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ m o d i U s e r ]   
 
 @ E m a i l   n v a r c h a r ( 1 0 0 )   = n u l l , 
 
 @ M o b i l e   n v a r c h a r ( 2 0 ) = n u l l , 
 
 @ p a s s Q u e s t i o n   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ p a s s A n s w e r   n v a r c h a r ( 2 5 0 ) = n u l l , 
 
 @ i d i o g r a p h   n v a r c h a r ( 2 5 0 ) = n u l l , 
 
 @ u s e r P h o t o   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ u i d     i n t   = n u l l   
 
 A S 
 
     u p d a t e   [ z y d n _ u s e r _ b a s e ]   s e t   
 
 	 [ E m a i l ] = @ E m a i l , 
 
 	 [ M o b i l e ] = @ M o b i l e ,   
 
 	 [ P a s Q u e s t i o n ] = @ p a s s Q u e s t i o n ,   
 
 	 [ P a s A n s w e r ] = @ p a s s A n s w e r   , 
 
 	 [ i d i o g r a p h ] = @ i d i o g r a p h , 
 
 	 [ u s e r P h o t o ] = @ u s e r P h o t o   
 
 	 w h e r e   i d = @ u i d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   p r o c   h i w e b _ o r d e r L i s t 
 
 @ u s e r I D   i n t   =   n u l l 
 
 a s 
 
 s e l e c t   [ O r d e r I D ] , [ U s e r N a m e ] , [ C o m m o d i t y N a m e ] , [ P r i c e ] , [ C o m m o d i t y N u m ] , [ T o t a l ] , [ C r e a t e T i m e ] , [ O r d e r S t a t e ] 
 
 f r o m   z y d n _ o r d e r 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   p r o c   h i w e b _ o r d e r L i s t L o g 
 
 @ m i d   i n t , 
 
 @ u s e r N a m e   n v a r c h a r ( 5 0 ) , 
 
 @ u s e r I D   i n t , 
 
 @ u G r o u p N a m e   n v a r c h a r ( 5 0 ) , 
 
 @ u G r o u p I D   v a r c h a r ( 5 0 ) , 
 
 @ I P   v a r c h a r ( 5 0 ) , 
 
 @ o l d P r i c e   n u m e r i c ( 1 8 , 0 ) , 
 
 @ n e w P r i c e   n u m e r i c ( 1 8 , 0 ) , 
 
 @ C o m m o d i t y N a m e   n v a r c h a r ( 5 0 ) , 
 
 @ o r d e r I D   n v a r c h a r ( 5 0 ) 
 
 A S 
 
 I N S E R T   I N T O   [ n e w _ n e t ] . [ z y d n _ o r d e r L i s t L o g ] ( [ m i d ] ,   [ u s e r N a m e ] ,   [ u s e r I D ] ,   [ u G r o u p N a m e ] ,   [ u G r o u p I D ] ,   [ I P ] ,   [ o l d P r i c e ] ,   [ n e w P r i c e ] , C o m m o d i t y N a m e , o r d e r I D ) 
 
 V A L U E S ( @ m i d , @ u s e r N a m e , @ u s e r I D , @ u G r o u p N a m e , @ u G r o u p I D , @ I P , @ o l d P r i c e , @ n e w P r i c e , @ C o m m o d i t y N a m e , @ o r d e r I D ) 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   p r o c e d u r e     [ h i w e b _ r e a d D a t a _ P a g e ] 
 
 @ t a b l e   n v a r c h a r ( 5 0 )   = n u l l , 
 
 @ f i e l d   n v a r c h a r ( 1 0 0 0 ) = n u l l , 
 
 @ o r d e r   n v a r c h a r ( 1 0 0 )   = n u l l , 
 
 @ w h e r e   n v a r c h a r ( 2 5 0 )   = n u l l , 
 
 @ p a g e s i z e   i n t   = n u l l , 
 
 @ p a g e   i n t   = n u l l , 
 
 @ p a g e C o u n t   i n t = 0   o u t , 	 - - ;`upe
 
 @ r e c o r d C o u n t   i n t = 0   o u t 	 - - ;`U_pe
 
 a s 
 
 s e t   n o c o u n t   o n 
 
 d e c l a r e   @ p 1   i n t 
 
 d e c l a r e   @ s q l   n v a r c h a r ( 1 0 0 0 ) 
 
 i f   ( @ w h e r e   i s   n o t     n u l l     a n d   @ w h e r e   < > ' ' ) 
 
         s e t   @ w h e r e   = '   w h e r e   '   + @ w h e r e 
 
 i f   ( @ o r d e r   ! = ' '   a n d   @ o r d e r   i s   n o t   n u l l ) 
 
       s e t   @ o r d e r   = '   o r d e r   b y   '   + @ o r d e r 
 
 s e t   @ s q l = ' s e l e c t   ' + @ f i e l d + '       f r o m   [ ' + @ t a b l e + ' ]     ' + @ w h e r e   + '     ' + @ o r d e r 
 
 e x e c   s p _ c u r s o r o p e n   @ p 1   o u t p u t , @ s q l , @ s c r o l l o p t = 1 , @ c c o p t = 1 , @ r o w c o u n t = @ p a g e c o u n t   o u t p u t 
 
 s e t   @ r e c o r d C o u n t   =   @ p a g e C o u n t 
 
 s e l e c t   @ p a g e c o u n t = c e i l i n g ( 1 . 0 * @ p a g e c o u n t / @ p a g e s i z e ) 
 
 	 , @ p a g e = ( @ p a g e - 1 ) * @ p a g e s i z e + 1 
 
 e x e c   s p _ c u r s o r f e t c h   @ p 1 , 1 6 , @ p a g e , @ p a g e s i z e   
 
 e x e c   s p _ c u r s o r c l o s e   @ p 1 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ r e a d D a t a _ i d P a g e ] 
 
 @ t a b l e   n v a r c h a r ( 5 0 )   = n u l l , 
 
 @ f i e l d   n v a r c h a r ( 1 0 0 0 ) = n u l l , 
 
 @ o r d e r   i n t   = n u l l , 
 
 @ w h e r e   n v a r c h a r ( 2 5 0 )   = n u l l , 
 
 @ p a g e s i z e   i n t   = n u l l , 
 
 @ p a g e   i n t   = n u l l 
 
   A S 
 
 / * 
 
 ُ/f N*N	cI D RuvX[PǏz    	g_ؚvHes
 
 @ o r d e r   = 0   GS^    ^0   M^
 
 * / 
 
 D e c l a r e   @ s q l     n v a r c h a r ( 2 0 0 0 )   
 
 D e c l a r e   @ p a g e s t r   i n t   
 
 D e c l a r e   @ w h e r e 1   n v a r c h a r ( 1 0 0 0 ) 
 
 s e t   @ p a g e s t r = @ p a g e s i z e * ( @ p a g e - 1 ) 
 
 i f   ( @ p a g e s t r = 0 )   
 
       s e t   @ p a g e s t r = 1 
 
 i f   ( @ w h e r e   i s   n o t   n u l l   a n d   @ w h e r e   < > ' ' ) 
 
 	 s e t   @ w h e r e 1 = '   a n d   ' + @ w h e r e 
 
 e l s e 
 
 	 s e t   @ w h e r e 1 = ' ' 
 
 i f   ( @ w h e r e   i s   n o t   n u l l   a n d   @ w h e r e   < > ' ' ) 
 
 	 s e t   @ w h e r e = '   w h e r e   ' + @ w h e r e 
 
 e l s e 
 
   	 s e t   @ w h e r e = ' ' 
 
 s e t     @ s q l = '       S E L E C T   T O P   ' + C A S T ( @ p a g e s i z e   a s   n v a r c h a r   ( 5 0 ) ) + '     ' + @ f i e l d + '     F R O M     ' + @ t a b l e 
 
 s e t   @ s q l = @ s q l + '   W H E R E   ( I D   >   =         ( S E L E C T   M a x ( i d )     f r o m   (   ' 
 
 s e t   @ s q l = @ s q l +   ' S E L E C T   T O P   ' + C A S T ( @ p a g e s t r   a s   n v a r c h a r ( 5 0 ) ) + '     i d     F R O M   ' + @ t a b l e + '     ' + @ w h e r e + '     O R D E R   B Y   i d   )   A S   T ' 
 
 s e t   @ s q l = @ s q l + ' )   ' + @ w h e r e 1 + '   ) o r d e r   b y   i d ' 
 
 D e c l a r e   @ s q l 1     n v a r c h a r ( 2 0 0 0 )   
 
 s e t     @ s q l 1 = '       S E L E C T   T O P   ' + C A S T ( @ p a g e s i z e   a s   n v a r c h a r   ( 5 0 ) ) + '     ' + @ f i e l d + '     F R O M     ' + @ t a b l e 
 
 s e t   @ s q l 1 = @ s q l 1 + '   W H E R E   ( I D   <     =       ( S E L E C T   M i n ( i d )     f r o m   (   ' 
 
 s e t   @ s q l 1 = @ s q l 1 +   ' S E L E C T   T O P   ' + C A S T ( @ p a g e s t r     a s   n v a r c h a r ( 5 0 ) ) + '     i d     F R O M   ' + @ t a b l e + '     ' + @ w h e r e + '       O R D E R   B Y   i d   d e s c   )   A S   T ' 
 
 s e t   @ s q l 1 = @ s q l 1 + ' )   ' + @ w h e r e 1 + '   ) o r d e r   b y   i d   d e s c   ' 
 
 / * 
 
 s e l e c t   @ s q l 
 
 s e l e c t   @ s q l 1 * / 
 
 i f   ( @ p a g e = 1 ) 
 
 	 s e t   @ s q l = '     s e l e c t   t o p     ' + C A S T ( @ p a g e s i z e   a s   n v a r c h a r   ( 5 0 ) ) + '     ' + @ f i e l d + '     F R O M     ' + @ t a b l e +   '   ' +   @ w h e r e + '       O R D E R   B Y   i d   ' 
 
 	 / * s e t   @ s q l = '     s e l e c t   t o p     ' + C A S T ( @ p a g e s i z e   a s   n v a r c h a r   ( 5 0 ) ) + '     ' + @ f i e l d + '     F R O M     ' + @ t a b l e +   '   ' + '       O R D E R   B Y   i d   ' * / 
 
 i f   ( @ p a g e = 1 ) 
 
 	 s e t   @ s q l 1 = '     s e l e c t   t o p     ' + C A S T ( @ p a g e s i z e   a s   n v a r c h a r   ( 5 0 ) ) + '     ' + @ f i e l d + '     F R O M     ' + @ t a b l e +   '   ' +   @ w h e r e   + '       O R D E R   B Y   i d     d e s c ' 
 
 i f   ( @ o r d e r   = 0 ) 
 
 	 e x e c u t e   ( @ s q l ) 
 
 e l s e   
 
 	 e x e c u t e   ( @ s q l 1 ) 
 
 / *   e x e c u t e   ( @ s q l   ) * / 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ r e a d M a x I D ]   @ r i d   i n t   =   n u l l   o u t p u t     A S 
 
                 s e l e c t   t o p   1   @ r i d = m i d     f r o m   z y d n _ m e n u   o r d e r   b y   m i d   d e s c 
 
               i f   ( @ r i d   i s   n u l l ) 
 
 	 s e l e c t   @ r i d = - 1 
 
             e l s e 
 
                         s e l e c t   @ r i d = @ r i d + 1 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E       P R O C E D U R E   [ h i w e b _ s a v e B b s L o g ] 
 
 @ m a i n i d   i n t   = n u l l , 
 
 @ r e i d   i n t   = n u l l , 
 
 @ i n t   i n t   = n u l l , 
 
 @ a d d O r D e l   i n t   =   n u l l , 
 
 @ s a v e T y p e   i n t   = n u l l , 
 
 @ t e x t   n v a r c h a r ( 2 5 0 ) = n u l l , 
 
 @ s a v e U s e r   n v a r c h a r ( 1 5 0 ) = n u l l , 
 
 @ s a v e U s e r I D   i n t   = n u l l 
 
 
 
   A S 
 
 
 
 D e c l a r e   @ t i t l e     n v a r c h a r ( 2 0 0 )   
 
 D e c l a r e   @ u s e r N a m e     n v a r c h a r ( 2 0 0 )   
 
 D e c l a r e   @ u s e r I D   i n t   
 
 
 
 
 
 
 
 
 
 i f   ( @ m a i n i d   i s   n u l l ) 
 
 B E G I N 
 
 	 s e l e c t     @ m a i n i d = m a i n I D , @ u s e r N a m e = s a v e U s e r , @ u s e r I D = s a v e U s e r I D     f r o m   z y d n _ B B S R e   w h e r e   i d   = @ r e i d 
 
 	 s e l e c t     @ t i t l e = t i t l e     f r o m   z y d n _ B B S M a i n   w h e r e   i d   =   @ m a i n i d 
 
 E N D 
 
 e l s e 
 
 B E G I N 
 
 	 s e l e c t     @ t i t l e = t i t l e , @ u s e r N a m e = s a v e U s e r , @ u s e r I D = s a v e U s e r I D     f r o m   z y d n _ B B S M a i n   w h e r e   i d   = @ m a i n i d 
 
 E N D 
 
 
 
 i n s e r t   i n t o   [ z y d n _ B b s L o g ] 
 
 	 ( m a i n I D , r e I D , u s e r N a m e , u s e r I D , s a v e U s e r N a m e , s a v e U s e r I D , s a v e D a t e , s a v e T y p e , m a i n T i t l e , m I n t , m T y p e , m T e x t 	 
 
 	 ) 
 
 	 v a l u e s 
 
 	 ( 
 
 	 @ m a i n i d , @ r e i d , @ u s e r N a m e , @ u s e r I D , @ s a v e U s e r , @ s a v e U s e r I D , g e t D a t e ( ) , @ s a v e T y p e , @ t i t l e , @ i n t , @ a d d O r D e l , @ t e x t 
 
 	 
 
 	 ) 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E     P R O C E D U R E   [ h i w e b _ s a v e B b s P o s t ] 
 
 @ b b s i d   i n t   = n u l l , 
 
 @ p o s t T y p e   i n t   = n u l l , 
 
 @ b b s T i t l e   n v a r c h a r ( 1 0 0 )     = n u l l , 
 
 @ c o n t e n t   n t e x t   = n u l l , 
 
 @ o u t I n t   i n t   = n u l l , 
 
 @ i n I n t   i n t   = n u l l , 
 
 @ p r e f i x   n v a r c h a r ( 2 0 ) = n u l l , 
 
 @ m e n u i d   i n t   = n u l l , 
 
 @ s a v e A d d r e s s   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ s a v e I P       n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ v o t e       i n t   = n u l l , 
 
 @ s a v e U s e r I D   i n t   = n u l l , 
 
 @ s a v e U s e r     n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ n D a t e   d a t e t i m e   =   n u l l , 
 
 @ n e w P o s t I D   i n t   = n u l l   o u t p u t 
 
   A S 
 
     i f   ( @ b b s i d   i s   n u l l   ) 
 
 	 B E G I N 
 
 	 	 i n s e r t   i n t o   [ z y d n _ B B S M a i n ] 
 
 	 	 ( 
 
 	 	 t i t l e , 
 
 	 	 c o n t e n t , 
 
 	 	 s a v e U s e r , 
 
 	 	 s a v e D a t e , 
 
 	 	 s a v e U s e r I D , 
 
 	 	 r e I D , 
 
 	 	 r e U s e r , 
 
 	 	 r e D a t e , 
 
 	 	 r e U s e r I D , 
 
 	 	 v o t e , 
 
 	 	 i s T o p , 
 
 	 	 i s E l i t e , 
 
 	 	 p r e f i x , 
 
 	 	 r e C o u n t , 
 
 	 	 c l i c k C o u n t , 
 
 	 	 o u t I n t , 
 
 	 	 i n I n t , 
 
 	 	 i s R e D i s p l a y , 
 
 	 	 r e U s e r I D L i s t , 
 
 	 	 t i t l e I c o , 
 
 	 	 m e n u i d , 
 
 	 	 s a v e A d d r e s s , 
 
 	 	 s a v e I P , 
 
 	 	 p o s t T y p e , 
 
 	 	 l o c k e d , 
 
 	 	 e n d T i m e , 
 
 	 	 i s D e l 
 
 	 	 )   v a l u e s   ( 
 
 	 	 @ b b s T i t l e   , 
 
 	 	 @ c o n t e n t   , 
 
 	 	 @ s a v e U s e r , 
 
 	 	 g e t D a t e ( ) , 
 
 	 	 @ s a v e U s e r I D , 
 
 	 	 0 , 
 
 	 	 @ s a v e U s e r , 
 
 	 	 g e t D a t e ( ) , 
 
 	 	 @ s a v e U s e r I D , 
 
 	 	 @ v o t e , 
 
 	 	 0 , 
 
 	 	 0 , 
 
 	 	 @ p r e f i x , 
 
 	 	 0 , 
 
 	 	 0 , 
 
 	 	 0 , 
 
 	 	 0 , 
 
 	 	 0 , 
 
 	 	 ' ' , 
 
 	 	 ' ' , 
 
 	 	 @ m e n u i d , 
 
 	 	 @ s a v e A d d r e s s , 
 
 	 	 @ s a v e I P , 
 
 	 	 @ p o s t T y p e , 
 
 	 	 0 , 
 
 	 	 g e t D a t e ( ) , 
 
 	 	 0 
 
 	 	 ) 
 
 	 	 
 
 	 	   u p d a t e     z y d n _ U s e r _ B a s e   s e t     C o u n t _ C o m m e n t = C o u n t _ C o m m e n t + 1   w h e r e   i d =   @ s a v e U s e r I D 
 
 	 	 D e c l a r e     @ o D a t e   d a t e t i m e 
 
 	 	 D e c l a r e     @ n e w I D   i n t   
 
 	 	 s e l e c t     @ n e w I D   =   m a x ( i d )     f r o m   [ z y d n _ B B S M a i n ] 
 
 	 	 s e t   @ n e w P o s t I D = @ n e w I D   
 
 	 	 s e l e c t     @ o D a t e   = b b s N e w D a t e   f r o m   [ z y d n _ m e n u ]   w h e r e   m i d = @ m e n u i d 
 
 	 	 i f     ( @ o D a t e   =   @ n D a t e   )   
 
 	 	 	 B E G I N 
 
 	 	 	                             u p d a t e   [ z y d n _ m e n u ]   s e t   b b s N e w C o u n t = b b s N e w C o u n t + 1 , b b s N e w D a t e = @ n D a t e ,   b b s N e w T i t l e = @ b b s T i t l e , b b s N e w I D = @ n e w I D , b b s N e w U s e r = @ s a v e U s e r , b b s T i t l e C o u n t = b b s T i t l e C o u n t + 1     w h e r e     m i d = @ m e n u i d 
 
 	 	 	 E N D 
 
 	 	 e l s e 
 
 	 	 	 B E G I N 
 
 	 	 	                             u p d a t e   [ z y d n _ m e n u ]   s e t   b b s N e w C o u n t = 1 , b b s N e w D a t e = @ n D a t e ,   b b s N e w T i t l e = @ b b s T i t l e , b b s N e w I D = @ n e w I D , b b s N e w U s e r = @ s a v e U s e r , b b s T i t l e C o u n t = b b s T i t l e C o u n t + 1     w h e r e     m i d = @ m e n u i d 
 
 	 	 	 E N D 
 
 	 	 
 
 	 E N D 
 
 e l s e   
 
 	 B E G I N 
 
 	 	 u p d a t e   [ z y d n _ B B S M a i n ]   s e t   
 
 	 	 t i t l e = @ b b s T i t l e   , 
 
 	 	 c o n t e n t = @ c o n t e n t , 
 
 	 	 p r e f i x = @ p r e f i x 
 
 	 	 w h e r e   i d = @ b b s i d 
 
 	 	 s e t   @ n e w P o s t I D = @ b b s i d   
 
 	 	 
 
 	 E N D 
 
 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E       P R O C E D U R E   [ h i w e b _ s a v e B b s R e ]   
 
 @ c o n t e n t   n t e x t   = n u l l , 
 
 @ m a i n I D   i n t   = n u l l , 
 
 @ s a v e U s e r   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ s a v e U s e r I D   i n t = n u l l , 
 
 @ s a v e I P   n v a r c h a r ( 5 0 )   = n u l l , 
 
 @ s a v e A d d r e s s   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ m e n u i d   i n t   = n u l l , 
 
 @ n e w D a t e   d a t e T i m e   = n u l l , 
 
 @ n e w P o s t I D   i n t   = n u l l   o u t p u t 
 
 A S 
 
 
 
 
 
 D e c l a r e   @ m a x L a y e r   i n t 
 
 D e c l a r e   @ b b s N e w T i t l e     n v a r c h a r ( 5 0 )   
 
 
 
 s e l e c t   @ m a x l a y e r   =   m a x ( l a y e r I n t )       f r o m   z y d n _ B B S R e   w h e r e   m a i n I D = @ m a i n I D 
 
 
 
 i f   ( @ m a x l a y e r   i s   n u l l )   
 
 s e t   @ m a x l a y e r = 0 
 
 
 
 s e t   @ m a x l a y e r = @ m a x l a y e r + 1 
 
 
 
 s e l e c t   @ b b s N e w T i t l e = t i t l e   f r o m   z y d n _ B B S M a i n   w h e r e     i d = @ m a i n I D 
 
 s e t   @ b b s N e w T i t l e = l e f t ( @ b b s N e w T i t l e , 4 0 ) 
 
 u p d a t e   z y d n _ B B S M a i n     s e t   r e C o u n t = r e C o u n t + 1 , e n d T i m e = g e t D a t e ( ) , r e U s e r = @ s a v e U s e r , r e D a t e = g e t D a t e ( )   w h e r e   i d = @ m a i n I D 
 
 u p d a t e     [ z y d n _ m e n u ]       s e t   b b s R e C o u n t = b b s R e C o u n t + 1 , b b s N e w C o u n t = b b s N e w C o u n t + 1 , b b s N e w D a t e = g e t D a t e ( ) , b b s N e w U s e r = @ s a v e U s e r , b b s N e w T i t l e = ' r e : ' + @ b b s N e w T i t l e , b b s N e w I D = @ m a i n I D     w h e r e   m i d = @ m e n u i d 
 
 i n s e r t   i n t o   z y d n _ B B S R e ( c o n t e n t ,   m a i n I D ,     s a v e U s e r , s a v e U s e r I D ,   s a v e D a t e ,   s a v e I P ,   s a v e A d d r e s s , l a y e r I n t , m e n u i d , i s D e l ) 
 
 	 	   v a l u e s ( @ c o n t e n t , @ m a i n I D , @ s a v e U s e r , @ s a v e U s e r I D , g e t D a t e ( ) , @ s a v e I P , @ s a v e A d d r e s s , @ m a x l a y e r , @ m e n u i d , 0 ) 
 
 
 
 s e l e c t   @ n e w P o s t I D = m a x ( i d )   f r o m   [ z y d n _ B B S R e ] 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 / * 
 
 OX[
N OeNvSpe
 
 * / 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s a v e F i l e ] 
 
 @ s N a m e   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ f N a m e   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ f P a t h   n v a r c h a r ( 2 5 5 ) = n u l l , 
 
 @ f T y p e   i n t   = n u l l , 
 
 @ u N a m e   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ u I D   i n t   = n u l l , 
 
 @ f S i z e   i n t   = n u l l , 
 
 @ s e x N a m e   n v a r c h a r ( 1 0 ) = n u l l , 
 
 @ n E x N a m e   n v a r c h a r ( 1 0 ) = n u l l , 
 
 @ u I P   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ E X I F   n v a r c h a r ( 2 5 5 ) = n u l l , 
 
 @ n e w i d   i n t   = n u l l   o u t p u t 
 
   A S 
 
 I N S E R T   I N T O       [ z y d n _ U p F i l e ] 
 
 	 ( [ S o u r c e N a m e ] , [ F i l e N a m e ] , [ F i l e P a t h ] , [ F i l e T y p e ] , [ U p D a t e T i m e ] , [ U p U s e r ] , [ U p U s e r I D ] , [ F i l e S i z e ] , [ s E x N a m e ] , [ u s e r C o u n t ] , [ u I P ] , [ n E x N a m e ] , [ E X I F ] ) 
 
 	 V A L U E S 
 
 	 ( @ s N a m e , @ f N a m e , @ f P a t h , @ f T y p e , g e t D a t e ( ) , @ u N a m e , @ u I D , @ f S i z e , @ s e x N a m e , 0 , @ u I P , @ n E x N a m e , @ E X I F ) 
 
 s e l e c t   t o p   1     @ n e w i d = i d     f r o m   z y d n _ u p f i l e   o r d e r   b y   i d   d e s c 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s a v e I m g S e t u p ] 
 
 @ n a m e   n v a r c h a r ( 5 0 )   = n u l l , 
 
 @ v a l u e   n v a r c h a r ( 3 0 0 ) = n u l l , 
 
 @ t y p e   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ u i d   i n t   = n u l l , 
 
 @ u n a m e   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ c i d   i n t   = n u l l , 
 
 @ i s S y s   i n t   = 1 
 
   A S 
 
 D e c l a r e   @ i s E o f   i n t 
 
 s e l e c t     @ i s E o f   =   c o u n t   ( * )   f r o m   z y d n _ c o n f i g   w h e r e   [ t y p e ] = @ t y p e   a n d   c i d = @ c i d 
 
 i f   ( @ i s E o f < > 0 ) 
 
           u p d a t e   [ z y d n _ C o n f i g ]   s e t   
 
 	 [ n a m e ] = @ n a m e , 
 
 	 [ v a l u e ] = @ v a l u e , 
 
 	 [ u s e r i d ] = @ u i d , 
 
 	 [ u s e r n a m e ] = @ u n a m e , 
 
 	 [ i s S y s ] = @ i s S y s 
 
 	 	 w h e r e     [ t y p e ] = @ t y p e   a n d   c i d = @ c i d 
 
 e l s e 
 
 	 I N S E R T     I N T O   [ z y d n _ C o n f i g ] 
 
 	 ( 
 
 	 [ n a m e ] , 	 [ v a l u e ] , 	 [ t y p e ] , [ u s e r i d ] , [ u s e r n a m e ] , [ c i d ] , [ i s S y s ] 
 
 	 ) 
 
 	 v a l u e s 
 
 	 ( @ n a m e , @ v a l u e , @ t y p e , @ u i d , @ u n a m e , @ c i d , @ i s S y s ) 
 
 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s a v e I n t ] 
 
 @ M I N a m e   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ g r o u p i d   i n t   = n u l l , 
 
 @ A r t _ V i e w _ I n t   i n t   = n u l l , 
 
 @ A r t _ A d d _ I n t   i n t   = n u l l , 
 
 @ C m t _ A d d _ I n t   i n t   = n u l l , 
 
 @ A r t _ E s e _ I n t   i n t   = n u l l , 
 
 @ A r t _ T o p _ I n t   i n t   = n u l l , 
 
 @ A r t _ D e l _ I n t   i n t   = n u l l , 
 
 @ C m t _ D e l _ I n t   i n t   = n u l l , 
 
 @ A r t _ N o n _ I n t   i n t   = n u l l , 
 
 @ A r t _ V i e w _ M o n e y   i n t   = n u l l , 
 
 @ a r t _ A d d _ M o n e y   i n t   = n u l l , 
 
 @ C m t _ a d d _ M o n e y   i n t   = n u l l , 
 
 @ i s C l e a r   i n t   = n u l l , 
 
 @ o u t I D   i n t   o u t p u t 
 
   A S 
 
 i f   ( @ i s C l e a r = 1 ) 
 
 	 d e l e t e     f r o m     [ z y d n _ C o n f i g _ M e n u I n t ]   w h e r e     M I N a m e = @ M I N a m e 
 
 I N S E R T   I N T O     [ z y d n _ C o n f i g _ M e n u I n t ]   ( 
 
 	 A r t _ V i e w _ I n t , 
 
 	 A r t _ A d d _ I n t , 
 
 	 C m t _ A d d _ I n t , 
 
 	 A r t _ E s e _ I n t , 
 
 	 A r t _ T o p _ I n t , 
 
 	 A r t _ D e l _ I n t , 
 
 	 C m t _ D e l _ I n t , 
 
 	 A r t _ N o n _ I n t , 
 
 	 A r t _ V i e w _ M o n e y , 
 
 	 a r t _ A d d _ M o n e y , 
 
 	 C m t _ a d d _ M o n e y , 
 
 	 M I N a m e , 
 
 	 g r o u p i d 
 
 	 ) 
 
 	 V A L U E S 
 
 	 ( 
 
 	 @ A r t _ V i e w _ I n t , 
 
 	 @ A r t _ A d d _ I n t , 
 
 	 @ C m t _ A d d _ I n t , 
 
 	 @ A r t _ E s e _ I n t , 
 
 	 @ A r t _ T o p _ I n t , 	 
 
 	 @ A r t _ D e l _ I n t , 
 
 	 @ C m t _ D e l _ I n t , 
 
 	 @ A r t _ N o n _ I n t , 
 
 	 @ A r t _ V i e w _ M o n e y , 
 
 	 @ a r t _ A d d _ M o n e y , 
 
 	 @ C m t _ a d d _ M o n e y , 
 
 	 @ M I N a m e , 
 
 	 @ g r o u p i d 
 
 	 ) 
 
 s e l e c t   t o p   1     @ o u t I D   = i d     f r o m     [ z y d n _ C o n f i g _ M e n u I n t ]     o r d e r   b y   i d   d e s c 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s a v e M s g ] 
 
 @ t i t l e   n v a r c h a r ( 2 5 0 ) = n u l l , 
 
 @ c o n t e n t   n t e x t   = n u l l , 
 
 @ f r o m U s e r   n v a r c h a r ( 2 5 0 ) , 
 
 @ t o U s e r   n v a r c h a r ( 2 5 0 ) , 
 
 @ e r U s e r   n v a r c h a r ( 2 5 0 )   o u t p u t 
 
   A S 
 
 D e c l a r e   @ i s U s e r   i n t 
 
 s e t   @ i s U s e r = 0 
 
 s e t   @ e r U s e r = ' ' 
 
 s e l e c t       @ i s U s e r =   c o u n t ( * )       f r o m     [ z y d n _ U s e r _ B a s e ]   w h e r e   U s e r N a m e = @ t o U s e r 
 
 i f   ( @ i s U s e r = 1 ) 
 
 	 i n s e r t   i n t o   [ z y d n _ m s g ] 
 
 	 ( 
 
 	 t i t l e , 
 
 	 c o n t e n t , 
 
 	 s a v e d a t e , 
 
 	 f r o m U s e r , 
 
 	 t o U s e r , 
 
 	 i s S h o w , 
 
 	 t o D e l , 
 
 	 f r o m D e l 
 
 	 ) 
 
 	 v a l u e s ( 
 
 	 @ t i t l e , 
 
 	 @ c o n t e n t , 
 
 	 g e t D a t e ( ) , 
 
 	 @ f r o m U s e r , 
 
 	 @ t o U s e r , 
 
 	 0 , 
 
 	 0 , 
 
 	 0 
 
 	 ) 
 
 e l s e 
 
 	 s e t   @ e r U s e r = @ t o U s e r 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   p r o c   h i w e b _ s a v e M u l t i y G o o d s 
 
 @ t a b N a m e   n v a r c h a r ( 5 0 ) , 
 
 @ t a b I D   i n t , 
 
 @ p r i c e s   n v a r c h a r ( 5 0 ) , 
 
 @ m e n u N a m e   n v a r c h a r ( 5 0 ) , 
 
 @ m e n u I D   i n t , 
 
 @ t y p e I D   i n t , 
 
 @ u s e r I D   i n t , 
 
 @ u s e r N a m e   n v a r c h a r ( 5 0 ) , 
 
 @ o r d e r I D   n v a r c h a r ( 5 0 ) , 
 
 @ I P   n v a r c h a r ( 5 0 ) , 
 
 @ A d d r e s s   n v a r c h a r ( 2 5 0 ) 
 
 a s 
 
 d e c l a r e   @ t y p e N a m e   n v a r c h a r ( 5 0 ) , @ t y p e P r i c e   n v a r c h a r ( 2 0 ) , @ s a v e U s e r I D   i n t , @ s a v e U s e r   n v a r c h a r ( 5 0 ) , @ t i t l e   n v a r c h a r ( 5 0 ) , @ c o n t e n t   n v a r c h a r ( 2 5 0 ) , @ P r i c e   n u m e r i c ( 1 0 , 2 ) 
 
 s e l e c t   @ t y p e N a m e = T y p e N a m e , @ t y p e P r i c e = T y p e P r i c e   f r o m   z y d n _ O r d e r T y p e   w h e r e   I D   =   @ t y p e I D 
 
 d e c l a r e   @ t e m p s q l   n v a r c h a r ( 2 5 0 ) 
 
 s e t   @ t e m p s q l   =   ' s e l e c t   @ s a v e U s e r I D = S a v e U s e r I D , @ s a v e U s e r = S a v e U s e r , @ t i t l e = t i t l e , @ c o n t e n t = c o n t e n t , @ P r i c e = ' + @ p r i c e s + '   f r o m   ' + @ t a b N a m e + '   w h e r e   I D   =   @ t a b I D s ' 
 
 e x e c   s p _ e x e c u t e s q l   @ t e m p s q l , N ' @ s a v e U s e r I D   i n t   o u t p u t , @ s a v e U s e r   n v a r c h a r ( 5 0 )   o u t p u t , @ t i t l e   n v a r c h a r ( 5 0 )   o u t p u t , @ c o n t e n t   n v a r c h a r ( 2 5 0 )   o u t p u t , @ P r i c e   n u m e r i c ( 1 0 , 2 )   o u t p u t , @ t a b I D s   i n t ' , 
 
 @ s a v e U s e r I D   o u t p u t , @ s a v e U s e r   o u t p u t , @ t i t l e   o u t p u t , @ c o n t e n t   o u t p u t , @ P r i c e   o u t p u t , @ t a b I D s = @ t a b I D 
 
 d e c l a r e   @ o i d   n v a r c h a r ( 5 0 ) , @ c o u n t   i n t , @ o l d N u m   i n t 
 
 s e l e c t   @ o i d = O r d e r I D   f r o m   z y d n _ o r d e r L i s t   w h e r e   u s e r I D = @ u s e r I D   a n d   i s C a r t = 1 
 
 i f ( @ o i d ! = ' ' ) 
 
 b e g i n 
 
 	 s e l e c t   @ c o u n t = c o u n t ( 0 )   f r o m   z y d n _ O r d e r L i s t   w h e r e   O r d e r I D = @ o i d   a n d   T a b I D = @ t a b I D   a n d   u s e r I D = @ u s e r I D   a n d   i s C a r t = 1 
 
 	 i f ( @ c o u n t > 0 ) 
 
 	 b e g i n 
 
 	 	 s e l e c t   @ o l d N u m = C o m m o d i t y N u m   f r o m   z y d n _ O r d e r L i s t   w h e r e   O r d e r I D = @ o i d   a n d   T a b I D = @ t a b I D   a n d   u s e r I D = @ U s e r I D   a n d   i s C a r t = 1 
 
 	 	 u p d a t e   z y d n _ O r d e r L i s t   s e t   C o m m o d i t y N u m = @ o l d N u m + 1 , T o t a l = ( @ o l d N u m + 1 ) * @ P r i c e   w h e r e   O r d e r I D = @ o i d   a n d   T a b I D = @ t a b I D   a n d   u s e r I D = @ U s e r I D   a n d   i s C a r t = 1 
 
 	 e n d 
 
 	 e l s e 
 
 	 b e g i n 
 
 	 	 
 
 	 	 i n s e r t   i n t o   z y d n _ O r d e r L i s t ( U s e r I D , O r d e r I D , U s e r N a m e , C o m m o d i t y N a m e , T y p e I D , P r i c e , C o m m o d i t y N u m , T o t a l , M a r k , T a b N a m e , I P , A d d r e s s , O r d e r S t a t e , C o l u m N a m e , C o l u m I D , C r e a t e T i m e , S e l l e r I D , S e l l e r N a m e , T a b I D , T y p e N a m e , i s C a r t )   
 
 	 	 v a l u e s ( @ U s e r I D , @ o i d , @ U s e r N a m e , @ t i t l e , @ T y p e I D , @ P r i c e , 1 , @ P r i c e , ' ' , @ T a b N a m e , @ I P , @ A d d r e s s , 0 , @ m e n u N a m e , @ m e n u I D , g e t D a t e ( ) , @ s a v e U s e r I D , @ s a v e U s e r , @ T a b I D , @ t y p e N a m e , 1 ) 
 
 	 e n d 
 
 e n d 
 
 e l s e 
 
 b e g i n 
 
 	 s e l e c t   @ c o u n t = c o u n t ( 0 )   f r o m   z y d n _ O r d e r L i s t   w h e r e   O r d e r I D = @ o r d e r I D   a n d   T a b I D = @ t a b I D   a n d   u s e r I D = @ u s e r I D   a n d   i s C a r t = 1 
 
 	 i f ( @ c o u n t > 0 ) 
 
 	 b e g i n 
 
 	 	 s e l e c t   @ o l d N u m = C o m m o d i t y N u m   f r o m   z y d n _ O r d e r L i s t   w h e r e   O r d e r I D = @ o r d e r I D   a n d   T a b I D = @ t a b I D   a n d   u s e r I D = @ U s e r I D   a n d   i s C a r t = 1 
 
 	 	 u p d a t e   z y d n _ O r d e r L i s t   s e t   C o m m o d i t y N u m = @ o l d N u m + 1 , T o t a l = ( @ o l d N u m + 1 ) * @ P r i c e   w h e r e   O r d e r I D = @ o r d e r I D   a n d   T a b I D = @ t a b I D   a n d   u s e r I D = @ U s e r I D   a n d   i s C a r t = 1 
 
 	 e n d 
 
 	 e l s e 
 
 	 b e g i n 
 
 	 	 
 
 	 	 i n s e r t   i n t o   z y d n _ O r d e r L i s t ( U s e r I D , O r d e r I D , U s e r N a m e , C o m m o d i t y N a m e , T y p e I D , P r i c e , C o m m o d i t y N u m , T o t a l , M a r k , T a b N a m e , I P , A d d r e s s , O r d e r S t a t e , C o l u m N a m e , C o l u m I D , C r e a t e T i m e , S e l l e r I D , S e l l e r N a m e , T a b I D , T y p e N a m e , i s C a r t )   
 
 	 	 v a l u e s ( @ U s e r I D , @ o r d e r I D , @ U s e r N a m e , @ t i t l e , @ T y p e I D , @ P r i c e , 1 , @ P r i c e , ' ' , @ T a b N a m e , @ I P , @ A d d r e s s , 0 , @ m e n u N a m e , @ m e n u I D , g e t D a t e ( ) , @ s a v e U s e r I D , @ s a v e U s e r , @ T a b I D , @ t y p e N a m e , 1 ) 
 
 	 e n d 
 
 e n d 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   p r o c   h i w e b _ s a v e O r d e r 
 
 @ U s e r I D   i n t   =   n u l l , 
 
 @ O r d e r I D   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ U s e r N a m e   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ C o m m o d i t y N a m e   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ T y p e I D   i n t   =   n u l l , 
 
 @ P r i c e   n u m e r i c ( 1 0 , 2 )   =   n u l l , 
 
 @ C o m m o d i t y N u m   i n t   =   n u l l , 
 
 @ T o t a l   n u m e r i c ( 1 0 , 2 )   =   n u l l , 
 
 @ M a r k   n v a r c h a r ( 1 0 0 )   =   n u l l , 
 
 @ T a b N a m e   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ I P   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ A d d r e s s   n v a r c h a r ( 1 0 0 )   =   n u l l , 
 
 @ O r d e r S t a t e   t i n y i n t   =   n u l l , 
 
 @ C o l u m N a m e   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ C o l u m I D   i n t   =   n u l l , 
 
 @ T i m e S t a r   d a t e t i m e = n u l l , 
 
 @ T i m e E n d   d a t e t i m e = n u l l , 
 
 @ S e l l e r I D   i n t   =   n u l l , 
 
 @ S e l l e r N a m e   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ T a b I D   i n t   =   n u l l , 
 
 @ T y p e N a m e   n v a r c h a r ( 5 0 )   =   n u l l 
 
 a s 
 
 i f ( ( @ T i m e S t a r = n u l l   o r   @ T i m e S t a r = ' ' )     a n d   ( @ T i m e E n d = n u l l   o r   @ T i m e E n d = ' ' ) ) 
 
 b e g i n 
 
 	 i n s e r t   i n t o   z y d n _ O r d e r L i s t ( U s e r I D , O r d e r I D , U s e r N a m e , C o m m o d i t y N a m e , T y p e I D , P r i c e , C o m m o d i t y N u m , T o t a l , M a r k , T a b N a m e , I P , A d d r e s s , O r d e r S t a t e , C o l u m N a m e , C o l u m I D , C r e a t e T i m e , S e l l e r I D , S e l l e r N a m e , T a b I D , T y p e N a m e , i s C a r t )   
 
 v a l u e s ( @ U s e r I D , @ O r d e r I D , @ U s e r N a m e , @ C o m m o d i t y N a m e , @ T y p e I D , @ P r i c e , @ C o m m o d i t y N u m , @ T o t a l , @ M a r k , @ T a b N a m e , @ I P , @ A d d r e s s , @ O r d e r S t a t e , @ C o l u m N a m e , @ C o l u m I D , g e t D a t e ( ) , @ S e l l e r I D , @ S e l l e r N a m e , @ T a b I D , @ T y p e N a m e , 0 ) 
 
 e n d 
 
 e l s e   i f ( @ T i m e S t a r = n u l l   o r   @ T i m e S t a r = ' ' ) 
 
 b e g i n 
 
 	 i n s e r t   i n t o   z y d n _ O r d e r L i s t ( U s e r I D , O r d e r I D , U s e r N a m e , C o m m o d i t y N a m e , T y p e I D , P r i c e , C o m m o d i t y N u m , T o t a l , M a r k , T a b N a m e , I P , A d d r e s s , O r d e r S t a t e , C o l u m N a m e , C o l u m I D , C r e a t e T i m e , T i m e E n d , S e l l e r I D , S e l l e r N a m e , T a b I D , T y p e N a m e , i s C a r t   )   
 
 v a l u e s ( @ U s e r I D , @ O r d e r I D , @ U s e r N a m e , @ C o m m o d i t y N a m e , @ T y p e I D , @ P r i c e , @ C o m m o d i t y N u m , @ T o t a l , @ M a r k , @ T a b N a m e , @ I P , @ A d d r e s s , @ O r d e r S t a t e , @ C o l u m N a m e , @ C o l u m I D , g e t D a t e ( ) , @ T i m e E n d , @ S e l l e r I D , @ S e l l e r N a m e , @ T a b I D , @ T y p e N a m e , 0 ) 
 
 e n d 
 
 e l s e   i f ( @ T i m e E n d = n u l l   o r   @ T i m e E n d = ' ' ) 
 
 b e g i n 
 
 	 i n s e r t   i n t o   z y d n _ O r d e r L i s t ( U s e r I D , O r d e r I D , U s e r N a m e , C o m m o d i t y N a m e , T y p e I D , P r i c e , C o m m o d i t y N u m , T o t a l , M a r k , T a b N a m e , I P , A d d r e s s , O r d e r S t a t e , C o l u m N a m e , C o l u m I D , C r e a t e T i m e , T i m e S t a r , S e l l e r I D , S e l l e r N a m e , T a b I D , T y p e N a m e , i s C a r t )   
 
 v a l u e s ( @ U s e r I D , @ O r d e r I D , @ U s e r N a m e , @ C o m m o d i t y N a m e , @ T y p e I D , @ P r i c e , @ C o m m o d i t y N u m , @ T o t a l , @ M a r k , @ T a b N a m e , @ I P , @ A d d r e s s , @ O r d e r S t a t e , @ C o l u m N a m e , @ C o l u m I D , g e t D a t e ( ) , @ T i m e S t a r , @ S e l l e r I D , @ S e l l e r N a m e , @ T a b I D , @ T y p e N a m e , 0 ) 
 
 e n d 
 
 e l s e 
 
 b e g i n 
 
 i n s e r t   i n t o   z y d n _ O r d e r L i s t ( U s e r I D , O r d e r I D , U s e r N a m e , C o m m o d i t y N a m e , T y p e I D , P r i c e , C o m m o d i t y N u m , T o t a l , M a r k , T a b N a m e , I P , A d d r e s s , O r d e r S t a t e , C o l u m N a m e , C o l u m I D , C r e a t e T i m e , T i m e S t a r , T i m e E n d , S e l l e r I D , S e l l e r N a m e , T a b I D , T y p e N a m e , i s C a r t   )   
 
 v a l u e s ( @ U s e r I D , @ O r d e r I D , @ U s e r N a m e , @ C o m m o d i t y N a m e , @ T y p e I D , @ P r i c e , @ C o m m o d i t y N u m , @ T o t a l , @ M a r k , @ T a b N a m e , @ I P , @ A d d r e s s , @ O r d e r S t a t e , @ C o l u m N a m e , @ C o l u m I D , g e t D a t e ( ) , @ T i m e S t a r , @ T i m e E n d , @ S e l l e r I D , @ S e l l e r N a m e , @ T a b I D , @ T y p e N a m e , 0 ) 
 
 e n d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   h i w e b _ s a v e O r d e r B y C a r t 
 
 @ o u t N u m   i n t   o u t p u t , 
 
 @ U s e r I D   i n t   =   n u l l , 
 
 @ O r d e r I D   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ U s e r N a m e   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ C o m m o d i t y N a m e   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ T y p e I D   i n t   =   n u l l , 
 
 @ P r i c e   n u m e r i c ( 1 0 , 2 )   =   n u l l , 
 
 @ C o m m o d i t y N u m   i n t   =   n u l l , 
 
 @ T o t a l   n u m e r i c ( 1 0 , 2 )   =   n u l l , 
 
 @ M a r k   n v a r c h a r ( 1 0 0 )   =   n u l l , 
 
 @ T a b N a m e   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ I P   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ A d d r e s s   n v a r c h a r ( 1 0 0 )   =   n u l l , 
 
 @ O r d e r S t a t e   t i n y i n t   =   n u l l , 
 
 @ C o l u m N a m e   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ C o l u m I D   i n t   =   n u l l , 
 
 @ T i m e S t a r   d a t e t i m e = n u l l , 
 
 @ T i m e E n d   d a t e t i m e = n u l l , 
 
 @ S e l l e r I D   i n t   =   n u l l , 
 
 @ S e l l e r N a m e   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ T a b I D   i n t   =   n u l l , 
 
 @ T y p e N a m e   n v a r c h a r ( 5 0 )   =   n u l l , 
 
 @ i s C a r t   t i n y i n t 
 
 a s 
 
 d e c l a r e   @ c o u n t   i n t 
 
 s e l e c t   @ c o u n t = c o u n t ( 0 )   f r o m   z y d n _ O r d e r L i s t   w h e r e   O r d e r I D = @ O r d e r I D   a n d   T a b I D = @ T a b I D   a n d   u s e r I D = @ U s e r I D   a n d   i s C a r t = 1 
 
 i f ( @ c o u n t > 0 ) 
 
 b e g i n 
 
 	 d e c l a r e   @ o l d N u m   i n t 
 
 	 d e c l a r e   @ o l d T o t a l   n u m e r i c ( 1 0 , 2 ) 
 
 	 s e l e c t   @ o l d N u m = C o m m o d i t y N u m , @ o l d T o t a l = T o t a l   f r o m   z y d n _ O r d e r L i s t   w h e r e   O r d e r I D = @ O r d e r I D   a n d   T a b I D = @ T a b I D   a n d   u s e r I D = @ U s e r I D   a n d   i s C a r t = 1 
 
 	 u p d a t e   z y d n _ O r d e r L i s t   s e t   C o m m o d i t y N u m = @ o l d N u m + @ C o m m o d i t y N u m , T o t a l = @ o l d T o t a l + @ T o t a l   w h e r e   O r d e r I D = @ O r d e r I D   a n d   T a b I D = @ T a b I D   a n d   u s e r I D = @ U s e r I D   a n d   i s C a r t = 1 
 
 e n d 
 
 e l s e 
 
 b e g i n 
 
 	 i f ( ( @ T i m e S t a r = n u l l   o r   @ T i m e S t a r = ' ' )     a n d   ( @ T i m e E n d = n u l l   o r   @ T i m e E n d = ' ' ) ) 
 
 	 b e g i n 
 
 	 	 i n s e r t   i n t o   z y d n _ O r d e r L i s t ( U s e r I D , O r d e r I D , U s e r N a m e , C o m m o d i t y N a m e , T y p e I D , P r i c e , C o m m o d i t y N u m , T o t a l , M a r k , T a b N a m e , I P , A d d r e s s , O r d e r S t a t e , C o l u m N a m e , C o l u m I D , C r e a t e T i m e , S e l l e r I D , S e l l e r N a m e , T a b I D , T y p e N a m e , i s C a r t )   
 
 	 	 v a l u e s ( @ U s e r I D , @ O r d e r I D , @ U s e r N a m e , @ C o m m o d i t y N a m e , @ T y p e I D , @ P r i c e , @ C o m m o d i t y N u m , @ T o t a l , @ M a r k , @ T a b N a m e , @ I P , @ A d d r e s s , @ O r d e r S t a t e , @ C o l u m N a m e , @ C o l u m I D , g e t D a t e ( ) , @ S e l l e r I D , @ S e l l e r N a m e , @ T a b I D , @ T y p e N a m e , @ i s C a r t ) 
 
 	 e n d 
 
 	 e l s e   i f ( @ T i m e S t a r = n u l l   o r   @ T i m e S t a r = ' ' ) 
 
 	 b e g i n 
 
 	 	 i n s e r t   i n t o   z y d n _ O r d e r L i s t ( U s e r I D , O r d e r I D , U s e r N a m e , C o m m o d i t y N a m e , T y p e I D , P r i c e , C o m m o d i t y N u m , T o t a l , M a r k , T a b N a m e , I P , A d d r e s s , O r d e r S t a t e , C o l u m N a m e , C o l u m I D , C r e a t e T i m e , T i m e E n d , S e l l e r I D , S e l l e r N a m e , T a b I D , T y p e N a m e , i s C a r t   )   
 
 	 	 v a l u e s ( @ U s e r I D , @ O r d e r I D , @ U s e r N a m e , @ C o m m o d i t y N a m e , @ T y p e I D , @ P r i c e , @ C o m m o d i t y N u m , @ T o t a l , @ M a r k , @ T a b N a m e , @ I P , @ A d d r e s s , @ O r d e r S t a t e , @ C o l u m N a m e , @ C o l u m I D , g e t D a t e ( ) , @ T i m e E n d , @ S e l l e r I D , @ S e l l e r N a m e , @ T a b I D , @ T y p e N a m e , @ i s C a r t ) 
 
 	 e n d 
 
 	 e l s e   i f ( @ T i m e E n d = n u l l   o r   @ T i m e E n d = ' ' ) 
 
 	 b e g i n 
 
 	 	 i n s e r t   i n t o   z y d n _ O r d e r L i s t ( U s e r I D , O r d e r I D , U s e r N a m e , C o m m o d i t y N a m e , T y p e I D , P r i c e , C o m m o d i t y N u m , T o t a l , M a r k , T a b N a m e , I P , A d d r e s s , O r d e r S t a t e , C o l u m N a m e , C o l u m I D , C r e a t e T i m e , T i m e S t a r , S e l l e r I D , S e l l e r N a m e , T a b I D , T y p e N a m e , i s C a r t   )   
 
 	 	 v a l u e s ( @ U s e r I D , @ O r d e r I D , @ U s e r N a m e , @ C o m m o d i t y N a m e , @ T y p e I D , @ P r i c e , @ C o m m o d i t y N u m , @ T o t a l , @ M a r k , @ T a b N a m e , @ I P , @ A d d r e s s , @ O r d e r S t a t e , @ C o l u m N a m e , @ C o l u m I D , g e t D a t e ( ) , @ T i m e S t a r , @ S e l l e r I D , @ S e l l e r N a m e , @ T a b I D , @ T y p e N a m e , @ i s C a r t ) 
 
 	 e n d 
 
 	 e l s e 
 
 	 b e g i n 
 
 	 	 i n s e r t   i n t o   z y d n _ O r d e r L i s t ( U s e r I D , O r d e r I D , U s e r N a m e , C o m m o d i t y N a m e , T y p e I D , P r i c e , C o m m o d i t y N u m , T o t a l , M a r k , T a b N a m e , I P , A d d r e s s , O r d e r S t a t e , C o l u m N a m e , C o l u m I D , C r e a t e T i m e , T i m e S t a r , T i m e E n d , S e l l e r I D , S e l l e r N a m e , T a b I D , T y p e N a m e , i s C a r t   )   
 
 	 	 v a l u e s ( @ U s e r I D , @ O r d e r I D , @ U s e r N a m e , @ C o m m o d i t y N a m e , @ T y p e I D , @ P r i c e , @ C o m m o d i t y N u m , @ T o t a l , @ M a r k , @ T a b N a m e , @ I P , @ A d d r e s s , @ O r d e r S t a t e , @ C o l u m N a m e , @ C o l u m I D , g e t D a t e ( ) , @ T i m e S t a r , @ T i m e E n d , @ S e l l e r I D , @ S e l l e r N a m e , @ T a b I D , @ T y p e N a m e , @ i s C a r t ) 
 
 	 e n d 
 
 e n d 
 
 s e l e c t   @ o u t N u m = c o u n t ( 0 )   f r o m   z y d n _ O r d e r L i s t   w h e r e   O r d e r I D = @ O r d e r I D   a n d   u s e r I D = @ U s e r I D   a n d   i s C a r t = 1 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s a v e R e v i e w ]   
 
 @ t a b i d   i n t   = n u l l , 
 
 @ t a b     n v a r c h a r ( 2 5 5 )   = n u l l , 
 
 @ t i t l e   n v a r c h a r ( 1 0 0 )   = n u l l , 
 
 @ m i d   i n t   = n u l l , 
 
 @ i s E x a m i n e   i n t   = n u l l , 
 
 @ s a v e U s e r   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ s a v e U s e r I D   i n t = n u l l , 
 
 @ s a v e U s e r I P   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ s a v e A d d r e s s   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ C o m m e n t   n t e x t   = n u l l , 
 
 @ r e i d   i n t   = n u l l 
 
 A S 
 
 D e c l a r e   @ L   i n t 
 
 s e l e c t   t o p   1     @ L = L e v e l C o u n t   f r o m     [ z y d n _ r e v i e w ]     w h e r e   A T a b = @ t a b   a n d   A I D = @ t a b i d   a n d   m i d = @ m i d   o r d e r   b y   i d   d e s c 
 
 i f   @ L   i s   n u l l   o r   @ L = 0   
 
     s e t   @ L = 1 
 
 e l s e   
 
     s e t     @ L   = @ L + 1 
 
 I N S E R T     I N T O   [ z y d n _ r e v i e w ]   
 
 	 ( 
 
 	 A T a b , 
 
 	 A I D , 
 
 	 M I D , 
 
 	 I s E x a m i n e , 
 
 	 S a v e U s e r , 
 
 	 S a v e U s e r I D , 
 
 	 S a v e U s e r I P , 
 
 	 S a v e D a t e , 
 
 	 S a v e A d d r e s s , 
 
 	 I s H i d e , 
 
 	 T i t l e , 
 
 	 C o m m e n t , 
 
 	 g o o d , 
 
 	 b a d , 
 
 	 r e v i e w , 
 
 	 L e v e l C o u n t 
 
 	 ) 
 
 	 v a l u e s ( 
 
 	 @ t a b   , 
 
 	 @ t a b i d , 
 
 	 @ m i d   , 
 
 	 @ i s E x a m i n e , 
 
 	 @ s a v e U s e r   , 
 
 	 @ s a v e U s e r I D , 
 
 	 @ s a v e U s e r I P , 
 
 	 g e t D a t e ( ) , 
 
 	 @ s a v e A d d r e s s , 
 
 	 0 , 
 
 	 @ t i t l e , 
 
 	 @ C o m m e n t   , 
 
 	 0 , 
 
 	 0 , 
 
 	 0 , 
 
 	 @ L 
 
 	 ) 
 
 i f   ( @ r e i d < > - 1 ) 
 
 B E G I N 
 
 	 u p d a t e   [ z y d n _ r e v i e w ]     s e t   r e v i e w = r e v i e w + 1   w h e r e   i d = @ r e i d 
 
 	 
 
 e n d   
 
 u p d a t e   [ z y d n _ U s e r _ B a s e ]   s e t   C o u n t _ R e l e a s e = C o u n t _ R e l e a s e + 1   w h e r e   i d = @ s a v e U s e r I D 
 
 D e c l a r e   @ s q l   n v a r c h a r ( 1 0 0 0 ) 
 
 s e t   @ s q l = ' u p d a t e     [ ' + @ t a b + ' ]       s e t   C o u n t _ R e v e r t = C o u n t _ R e v e r t + 1   w h e r e   i d = ' + C A S T ( @ t a b i d   a s   n v a r c h a r ( 1 0 0 ) ) 
 
 e x e c u t e   ( @ s q l ) 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s a v e S i g n F o r ]   
 
 @ t a b   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ t a b i d   i n t   = n u l l , 
 
 @ m i d   i n t   = n u l l , 
 
 @ t o U s e r   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ e n d D a t e   d a t e t i m e   = n u l l , 
 
 @ t i t l e   n v a r c h a r ( 2 0 0 ) = n u l l 
 
 A S 
 
 D e c l a r e   @ i s O l d   i n t   
 
 s e t   @ i s O l d = 0 
 
 s e l e c t   @ i s O l d = c o u n t ( * )   f r o m   [ z y d n _ s i g n F o r ]   w h e r e   t a b i d = @ t a b i d   a n d     t a b = @ t a b   a n d   t o U s e r = @ t o U s e r 
 
 D e c l a r e   @ i s U s e r   i n t 
 
 s e t   @ i s U s e r = 0 
 
 i f   ( @ i s O l d = 0 )   
 
 	 B E G I N 
 
 	 s e l e c t       @ i s U s e r =   c o u n t ( * )       f r o m     [ z y d n _ U s e r _ B a s e ]   w h e r e   U s e r N a m e = @ t o U s e r 
 
 	 i f   ( @ i s U s e r = 1 ) 
 
 	 	 i n s e r t   i n t o     [ z y d n _ s i g n F o r ]   
 
 	 	   ( 
 
 	 	 t a b i d , t a b , m i d , t o U s e r , s t a t e , t o D a t e , s i g n F o r D a t e , e n d D a t e , f i l e T i t l e 
 
 	 	 ) 
 
 	 	 v a l u e s 
 
 	 	 ( 
 
 	 	 @ t a b i d , @ t a b , @ m i d , @ t o U s e r , 0 , g e t D a t e ( ) , n u l l , @ e n d D a t e , @ t i t l e 
 
 	 	 ) 
 
 	 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 c r e a t e   p r o c   h i w e b _ s a v e T D a t a 
 
 @ m i d   i n t , 
 
 @ u s e r I D   i n t , 
 
 @ u s e r N a m e   n v a r c h a r ( 5 0 ) , 
 
 @ p A w a r d s I n t   i n t , 
 
 @ p A w a r d s M o n e y   i n t 
 
 a s 
 
 d e c l a r e   @ c o u n t   i n t 
 
 s e l e c t   @ c o u n t = c o u n t ( 0 )   f r o m   z y d n _ s e t P l a n   w h e r e   m i d = @ m i d 
 
 i f ( @ c o u n t < 1 ) 
 
 i n s e r t   i n t o   z y d n _ s e t P l a n ( m i d , u s e r I D , u s e r N a m e , p A w a r d s I n t , p A w a r d s M o n e y )   v a l u e s ( @ m i d , @ u s e r I D , @ u s e r N a m e , @ p A w a r d s I n t , @ p A w a r d s M o n e y ) 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s a v e U s e r C o n f i g ] 
 
 @ f i e l d N a m e   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ f i e l d A s n a m e   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ i s F i n d   i n t   = n u l l , 
 
 @ i s N u l l   i n t   = n u l l , 
 
 @ e d i t M o d e   i n t   = n u l l , 
 
 @ i s R o w   i n t   = n u l l , 
 
 @ i s E d i t   i n t   = n u l l , 
 
 @ i s C l e a r   i n t   = n u l l 
 
   A S 
 
 D e c l a r e   @ m a x i d     i n t 
 
 i f   ( @ i s C l e a r = 1 ) 
 
 	 d e l e t e   f r o m   [ z y d n _ C o n f i g U s e r ] 
 
 I N S E R T   I N T O     [ z y d n _ C o n f i g U s e r ]   
 
 	 ( 
 
 	 [ f i e l d N a m e ] , 
 
 	 [ f i e l d A s N a m e ] , 
 
 	 [ i s F i n d ] , 
 
 	 [ i s N u l l ] , 
 
 	 [ i s R o w ] , 
 
 	 [ e d i t M o d e ] , 
 
 	 [ i s E d i t ] 
 
 	 ) 
 
 	 v a l u e s 
 
 	 ( 
 
 	 @ f i e l d N a m e , 
 
 	 @ f i e l d A s n a m e , 
 
 	 @ i s F i n d , 
 
 	 @ i s N u l l , 
 
 	 @ i s R o w , 
 
 	 @ e d i t M o d e , 
 
 	 @ i s E d i t 
 
 	 ) 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s a v e U s e r M o d i C o n t e n t ] 
 
 @ t a b N a m e   n v a r c h a r ( 1 0 0 ) = n u l l , 
 
 @ t a b I D   i n t = n u l l , 
 
 @ m e n u I D   i n t = n u l l , 
 
 @ m e n u N a m e   n v a r c h a r ( 1 0 0 )   = n u l l , 
 
 @ C o n t e n t   n t e x t = n u l l , 
 
 @ t a b T i t l e   n v a r c h a r ( 1 0 0 )   = n u l l , 
 
 @ u s e r I D   i n t   = n u l l , 
 
 @ u s e r N a m e   n v a r c h a r ( 5 0 )   = n u l l , 
 
 @ u s e r I P   n v a r c h a r ( 3 0 ) = n u l l 
 
   A S 
 
 i n s e r t   i n t o     z y d n _ u M o d i C o n t e n t   
 
 ( 
 
 m e n u i d , 
 
 m e n u N a m e , 
 
 t a b i d , 
 
 t a b , 
 
 t a b T i t l e , 
 
 C o n t e n t , 
 
 u s e r I P , 
 
 c r e a t e T i m e , 
 
 u s e r I D , 
 
 u s e r N a m e , 
 
 s e t T y p e 
 
 )   
 
 v a l u e s 
 
 ( 
 
 @ m e n u I D , 
 
 @ m e n u N a m e , 
 
 @ t a b I D , 
 
 @ t a b N a m e , 
 
 @ t a b T i t l e   , 
 
 @ C o n t e n t   , 
 
 @ u s e r I P   , 
 
 g e t D a t e ( ) , 
 
 @ u s e r I D   , 
 
 @ u s e r N a m e , 
 
 0 
 
 ) 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s a v e W e b I n f o ]   
 
 @ s T i m e   n v a r c h a r ( 5 0 0 )   = n u l l , 
 
 @ i n C o u n t   n v a r c h a r ( 5 0 0 )   = n u l l , 
 
 @ e T i m e   n v a r c h a r ( 5 0 0 )   = n u l l , 
 
 @ i s E n d   n v a r c h a r ( 5 0 0 )   = n u l l , 
 
 @ i s W e b   n v a r c h a r ( 5 0 0 )   = n u l l , 
 
 @ t T i m e   n v a r c h a r ( 5 0 0 )   = n u l l , 
 
 @ w e b C o d e   n v a r c h a r ( 5 0 0 )   = n u l l 
 
 A S 
 
 	 i n s e r t   i n t o   [ z y d n _ w e b ] 
 
 	 	 ( 
 
 	 	 	 s T i m e , i n C o u n t , e T i m e , i s E n d , i s W e b , t T i m e , w e b C o d e 
 
 	 	 )   
 
 	 	 v a l u e s 
 
 	 	 ( 
 
 	 	 	 @ s T i m e , @ i n C o u n t , @ e T i m e , @ i s E n d , @ i s W e b , @ t T i m e , @ w e b C o d e 
 
 	 	 ) 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s a v e _ G r o u p N a m e ] 
 
 @ g r o u p N a m e   n v a r c h a r ( 5 0 )   = n u l l , 
 
 @ g r o u p i d   i n t   = n u l l 
 
   A S 
 
 i f   ( @ g r o u p i d   i s   n u l l ) 
 
 	 i n s e r t   i n t o   [ z y d n _ u s e r G r o u p ]   
 
 	 ( 
 
 	 G r o u p N a m e , 
 
 	 I s D e f a u l t , 
 
 	 i s G u e s t 
 
 	 ) 
 
 	 v a l u e s 
 
 	 ( 
 
 	 @ g r o u p N a m e , 
 
 	 0 , 
 
 	 0 
 
 	 ) 
 
 e l s e 
 
 	 u p d a t e   [ z y d n _ u s e r G r o u p ]   s e t   [ G r o u p N a m e ] = @ g r o u p N a m e   w h e r e   i d = @ g r o u p i d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s e t B b s E l i t e ]   
 
 / * [4P[* / 
 
 @ i d   i n t   = n u l l , 
 
 @ m e n u i d   i n t   = n u l l   o u t p u t , 
 
 @ u s e r i d   i n t   = n u l l   o u t p u t 
 
 A S 
 
     s e l e c t   @ m e n u i d = m e n u i d , @ u s e r i d = s a v e U s e r I D   f r o m     z y d n _ B B S M a i n     w h e r e   i d = @ i d 
 
     u p d a t e   z y d n _ B B S M a i n   s e t   i s E l i t e = 1   w h e r e   i d = @ i d 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s e t B b s T o p ]   
 
 / * [4P[* / 
 
 @ i d   i n t   = n u l l , 
 
 @ t o p T y p e   i n t   = n u l l , 
 
 @ m e n u i d   i n t   = n u l l   o u t p u t , 
 
 @ u s e r i d   i n t   = n u l l   o u t p u t 
 
 A S 
 
 
 
     s e l e c t   @ m e n u i d = m e n u i d , @ u s e r i d = s a v e U s e r I D   f r o m     z y d n _ B B S M a i n     w h e r e   i d = @ i d 
 
     u p d a t e   z y d n _ B B S M a i n   s e t   i s T o p = @ t o p T y p e   w h e r e   i d = @ i d 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s e t D a t e N e w D a t e ]   
 
 @ n e w D a t e   d a t e T i m e   = n u l l , 
 
 @ m i d   i n t   = n u l l 
 
 A S 
 
 D e c l a r e   @ o l d D a t e   d a t e t i m e 
 
 s e l e c t       @ o l d D a t e = b b s N e w D a t e   f r o m   [ z y d n _ m e n u ]   w h e r e   m i d = @ m i d 
 
 i f   ( @ o l d D a t e + 1   <   g e t D a t e ( )   o r   @ o l d D a t e   i s   n u l l ) 
 
 B E G I N 
 
 	 u p d a t e   [ z y d n _ m e n u ]   s e t   b b s N e w C o u n t = 0   
 
 	 u p d a t e   [ z y d n _ m e n u ]   s e t   b b s N e w D a t e = @ n e w D a t e   w h e r e   m i d = @ m i d 
 
 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s e t D e f a u l t G r o u p ] 
 
 @ g r o u p i d   i n t   = n u l l 
 
   A S 
 
 u p d a t e   z y d n _ U s e r G r o u p   s e t   I s D e f a u l t   = 0 
 
 u p d a t e   z y d n _ U s e r G r o u p   s e t   I s D e f a u l t   = 1   w h e r e   i d = @ g r o u p i d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s e t G u e s t G r o u p ] 
 
 @ g r o u p i d   i n t   = n u l l 
 
   A S 
 
 u p d a t e   z y d n _ U s e r G r o u p   s e t   I s G u e s t   = 0 
 
 u p d a t e   z y d n _ U s e r G r o u p   s e t   I s G u e s t   = 1   w h e r e   i d = @ g r o u p i d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s e t N e w F i e l d ]   A S 
 
 / *   ُ*NX[PǏz,   (uegRYS(WGS~Ǐz-NeXvhbW[kvpenc.   * / 
 
 u p d a t e   z y d n _ m e n u   s e t   m e n u C l i c k C o u n t = 0   w h e r e   m e n u C l i c k C o u n t   i s   N u l l 
 
 u p d a t e     z y d n _ u p F i l e   s e t       E X I F = ' '     ,   f i l e T i t l e = ' ' ,   f i l e C B S = ' '   w h e r e   E X I F   i s   n u l l 
 
 u p d a t e     z y d n _ m e n u   s e t     i s T o p = 1 0 0   w h e r e   i s T o p   i s   n u l l 
 
 d e l e t e   z y d n _ O r d e r T y p e   w h e r e   T y p e N a m e   i s   n u l l 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ s e t P a s s ] 
 
 @ u s e r N a m e   n v a r c h a r ( 2 0 0 ) = n u l l , 
 
 @ u s e r E m a i l   n v a r c h a r ( 3 0 ) = n u l l , 
 
 @ u s e r A   n v a r c h a r   ( 2 0 0 ) = n u l l , 
 
 @ n e w P a s s   n v a r c h a r ( 3 2 ) = n u l l 
 
   A S 
 
 D e c l a r e     @ i s U     i n t   
 
 s e l e c t   @ i s U = c o u n t ( 0 )     f r o m     [ z y d n _ U s e r _ B a s e ]   w h e r e   P a s A n s w e r = @ u s e r A   a n d     U s e r N a m e = @ u s e r N a m e     a n d   E m a i l   = @ u s e r E m a i l 
 
 i f   ( @ i s U = 1 ) 
 
 	 B E G I N 
 
 	                 u p d a t e       [ z y d n _ U s e r _ B a s e ]   s e t   P a s s W o r d = @ n e w P a s s     w h e r e   P a s A n s w e r = @ u s e r A   a n d     U s e r N a m e = @ u s e r N a m e     a n d   E m a i l   = @ u s e r E m a i l 
 
 	 
 
 	 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   p r o c   h i w e b _ t e n d e r P a y 
 
 @ o u t N u m   i n t   o u t p u t , 
 
 @ u i d   i n t , 
 
 @ t I n t   i n t , 
 
 @ t M o n e y   i n t 
 
 a s 
 
 d e c l a r e   @ u s e r t I n t   i n t ,   @ u s e r t M o n e y   i n t 
 
 s e l e c t   @ u s e r t I n t = I n t e g r a l _ B a s e , @ u s e r t M o n e y = M o n e y   f r o m   z y d n _ U s e r _ B a s e   w h e r e   I D = @ u i d 
 
 i f ( @ u s e r t I n t < @ t I n t   o r   @ u s e r t M o n e y < @ t M o n e y ) 
 
 b e g i n 
 
 	 s e t   @ o u t N u m = 0 
 
 e n d 
 
 e l s e 
 
 b e g i n 
 
 	 s e t   @ o u t N u m = 1 
 
 e n d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   h i w e b _ t e n d e r _ i s O v e r 
 
 @ i s O K   i n t   o u t p u t , 
 
 @ i d   i n t 
 
   A S 
 
 d e c l a r e   @ n u m   i n t 
 
 d e c l a r e   @ p i d   i n t 
 
 s e l e c t   @ p i d = p l a n I D   f r o m   z y d n _ t e n d e r   w h e r e   i d = @ i d 
 
 s e l e c t   @ n u m = i s O K     f r o m   z y d n _ s e t P l a n   w h e r e   m i d = @ p i d 
 
 i f ( @ n u m = 1 ) 
 
 b e g i n 
 
 	 s e t   @ i s O K = @ n u m 
 
 e n d 
 
 e l s e 
 
 b e g i n 
 
 	 u p d a t e   z y d n _ s e t P l a n   s e t   i s O K = 1   w h e r e   m i d = @ p i d 
 
 	 u p d a t e   z y d n _ t e n d e r   s e t   i s O K = 1   w h e r e   i d = @ i d 
 
 	 s e t   @ i s O K = 0 
 
 e n d 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ u n D e l F i l e ] 
 
 @ i d   i n t   = n u l l , 
 
 @ t y p e   i n t   = n u l l   o u t p u t 
 
   A S 
 
 D e c l a r e   @ m i d     i n t 
 
 s e t   @ m i d = n u l l 
 
 D e c l a r e   @ s q l   n v a r c h a r ( 1 0 0 0 ) 
 
 D e c l a r e   @ t a b l e   n v a r c h a r ( 1 0 0 ) 
 
 D e c l a r e   @ t a b i d   n v a r c h a r ( 1 5 ) 
 
 s e l e c t   @ m i d = m i d     f r o m   z y d n _ m e n u   w h e r e   i s d e l = 0   a n d     m i d = ( s e l e c t   m i d     f r o m   z y d n _ r o o m   w h e r e   i d = @ i d ) 
 
 s e l e c t   @ t a b l e = t a b n a m e , @ t a b i d = t a b i d     f r o m   z y d n _ r o o m     w h e r e     i d = @ i d 
 
 i f   ( @ m i d   i s   n o t   n u l l ) 
 
 	 B E G I N 
 
 	 	 u p d a t e   z y d n _ r o o m     s e t   i s d e l = 0     w h e r e   i d = @ i d 
 
 	 	 s e t   @ s q l = ' u p d a t e         [ ' + @ t a b l e + ' ]   s e t   i s D e l = 0     w h e r e     i d   =   ' + @ t a b i d + '     ' 
 
 	 	 e x e c u t e   ( @ s q l ) 
 
 	 E N D 
 
 i f   ( @ m i d   i s   n o t   n u l l ) 
 
       s e t     @ t y p e = 1 
 
 e l s e 
 
     s e t   @ t y p e = 0 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ u n D e l M e n u ] 
 
 @ m i d   i n t   = n u l l 
 
   A S 
 
 D e c l a r e     @ i d L i s t   n v a r c h a r ( 2 5 0 ) 
 
 s e l e c t   @ i d L i s t = U p L i s t I D   f r o m   z y d n _ m e n u   w h e r e   m i d = @ m i d 
 
 u p d a t e     z y d n _ m e n u     s e t   i s d e l = 0       w h e r e     m i d = @ m i d   o r   U p L i s t I D   l i k e   @ i d L i s t + ' , % ' 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O N   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E     [ h i w e b _ u p P r x y ]   @ p N a m e   n v a r c h a r ( 5 0 ) = n u l l   , @ x   i n t = n u l l ,   @ y   i n t   = n u l l   A S 
 
 u p d a t e   z y d n _ d e s k t o p   s e t   x = @ x , y = @ y   w h e r e   p N a m e = @ p N a m e 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O F F   
 
 G O 
 
 
 
 
 
 
 
 
 
 
 
 C R E A T E   P R O C E D U R E   [ h i w e b _ u s e r L o g i n ] 
 
 @ u s e r N a m e   n v a r c h a r   ( 5 0 )   = n u l l   , 
 
 @ u s e r P a s s   n v a r c h a r ( 5 0 ) = n u l l , 
 
 @ L a s t _ I P   n v a r c h a r ( 5 0 )   = n u l l , 
 
 @ a d d I n t   i n t   = n u l l , 
 
 @ p a s 1   n v a r c h a r ( 5 0 ) = n u l l   o u t p u t , 
 
 @ G r o u p I D   n v a r c h a r ( 1 0 0 )   = n u l l   o u t p u t , 
 
 @ G r o u p N a m e   n v a r c h a r ( 2 5 0 ) = n u l l   o u t p u t , 
 
 @ M o n e y   i n t   = n u l l   o u t p u t , 
 
 @ L e v e l I D   i n t   = n u l l   o u t p u t , 
 
 @ I n t e g r a l _ B a s e   i n t   = n u l l   o u t p u t , 
 
 @ C o u n t _ L o g i n   i n t   = n u l l   o u t p u t , 
 
 @ E m a i l   n v a r c h a r ( 5 0 )   = n u l l   o u t p u t , 
 
 @ t y p e   i n t   = n u l l   o u t p u t , 
 
 @ u i d   i n t   = n u l l   o u t p u t , 
 
 @ i s A d m i n   i n t =   n u l l   o u t p u t 
 
   A S 
 
 s e t   @ t y p e = 0 
 
 D e c l a r e   @ e f f D a t e   d a t e T i m e 
 
 s e l e c t   t o p   1 
 
 	 @ p a s 1 = [ P a s s W o r d ] , 
 
 	 @ u i d = [ I D ] , 
 
 	 @ G r o u p I D = [ G r o u p I D ] , 
 
 	 @ G r o u p N a m e = [ G r o u p N a m e ] , 
 
 	 @ M o n e y = [ M o n e y   ] , 
 
 	 @ L e v e l I D = [ L e v e l I D ] , 
 
 	 @ I n t e g r a l _ B a s e = [ I n t e g r a l _ B a s e ]   , 
 
 	 @ E m a i l = [ E m a i l ] , 
 
 	 @ e f f D a t e   = [ E f f e c t D a t e ] , 
 
 	 @ i s A d m i n = i s A d m i n , 
 
 	 @ C o u n t _ L o g i n = C o u n t _ L o g i n 
 
 	 f r o m   z y d n _ u s e r _ b a s e   
 
 	 	   w h e r e   u s e r N a m e = @ u s e r N a m e   a n d   i s L o c k e d = 0   a n d   I s E x a m i n e = 1   
 
 i f   ( @ u i d   i s   n u l l ) 
 
 s e t   @ t y p e = 1 
 
 i f     ( @ p a s 1   < > @ u s e r P a s s   a n d     @ t y p e = 0 ) 
 
   s e t     @ t y p e = 2 
 
 i f   ( @ e f f D a t e     i s   n o t     n u l l     a n d     @ e f f D a t e < g e t D a t e ( ) ) 
 
 	 s e t   @ t y p e = 3 
 
 i f   ( @ t y p e = 0   o r   @ a d d I n t > 0 ) 
 
 	 B E G I N 
 
 	 	 u p d a t e   z y d n _ u s e r _ b a s e   s e t   
 
 	 	 	 I n t e g r a l _ B a s e = I n t e g r a l _ B a s e + @ a d d I n t   , 
 
 	 	 	 C o u n t _ L o g i n = C o u n t _ L o g i n + 1 , D a t e _ L o g i n = g e t D a t e ( )   
 
 	 	 w h e r e   i d = @ u i d 
 
 	 	 s e t   @ C o u n t _ L o g i n = @ C o u n t _ L o g i n + 1 
 
 	 E N D 
 
 
 
 
 
 
 
 G O 
 
 S E T   Q U O T E D _ I D E N T I F I E R   O F F   
 
 G O 
 
 S E T   A N S I _ N U L L S   O N   
 
 G O 
 
 
 
 