FSCRPCW3 ;SLC/STAFF-NOIS RPC Web Page Solution ;7/22/98 15:11 ;;1.1;NOIS;;Sep 06, 1998 ; SOL(ID,CNT) ; from FSCRPCWP N ADDRESS,EDITBY,EDITON,ENTERBY,ENTERON,LINE,NUM,PACKNAME,ZERO S ADDRESS=$P($G(^FSC("PARAM",1,1.8)),U,2) S ZERO=$G(^FSCD("WEB",ID,0)) I '$L(ZERO) Q S PACK=+$P(ZERO,U,2),PACKNAME=$P($G(^FSC("PACK",PACK,0)),U) S EDITBY=+$P(ZERO,U,5),EDITON=+$P(ZERO,U,6),ENTERBY=+$P(ZERO,U,3),ENTERON=+$P(ZERO,U,4) D SET("{SOLUTION}",.CNT) D SET("p"_ID_".htm",.CNT) D SET("",.CNT) D SET("
",.CNT) D SET("Title: "_$G(^FSCD("WEB",ID,1))_"
",.CNT) D SET("Problem
",.CNT) D SET("",.CNT) S NUM=0 F S NUM=$O(^FSCD("WEB",ID,2,NUM)) Q:NUM<1 S LINE=^(NUM,0) D .D SET(LINE,.CNT) D SET("",.CNT) D SET("
Solution
",.CNT) D SET("",.CNT) S NUM=0 F S NUM=$O(^FSCD("WEB",ID,3,NUM)) Q:NUM<1 S LINE=^(NUM,0) D .D SET(LINE,.CNT) D SET("",.CNT) D SET("