Changeset 666 for ccr/trunk/p/C0CRNF.m
- Timestamp:
- Jan 10, 2010, 1:13:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CRNF.m
r662 r666 340 340 ; ZOUT IS NOT INITIALIZED, SO THE TABLE WILL GO AT THE END 341 341 ; THE TABLE WILL BE IN NV FORMAT, ROWS ARE NAMES COLUMNS ARE VALUES 342 D PUSH^C0CXPATH(ZOUT,"<table >")342 D PUSH^C0CXPATH(ZOUT,"<table border=""1"">") 343 343 N ZI,ZJ,ZV,ZN S ZI="" S ZJ=0 344 344 D PUSH^C0CXPATH(ZOUT,"<tr><td></td>") ;begin row and leave a blank col 345 345 F S ZJ=$O(@ZIN@("V",ZJ)) Q:+ZJ=0 D ; FOR EACH OCCURANCE 346 346 . S ZV="<td>"_ZJ_"</td>" ; OCCURANCE AS COLUMNS HEADER 347 . D PUSH^C0CXPATH(ZOUT,ZV) 347 348 D PUSH^C0CXPATH(ZOUT,"</tr>") ;end of first row 349 S ZI="" 348 350 F S ZI=$O(@ZIN@("F",ZI)) Q:ZI="" D ; FOR EACH VARIABLE 349 351 . S ZN="<tr><td>"_ZI_"</td>" ; VARIABLE NAME IN FIRST COLUMN 352 . D PUSH^C0CXPATH(ZOUT,ZN) 350 353 . S ZJ=0 ;RESET TO DO IT AGAIN 351 354 . F S ZJ=$O(@ZIN@("V",ZJ)) Q:+ZJ=0 D ; FOR EACH OCCURANCE … … 360 363 ; ZOUT IS NOT INITIALIZED, SO THE TABLE WILL GO AT THE END 361 364 ; THE TABLE WILL BE IN VN FORMAT, ROWS ARE VALUES COLUMNS ARE NAMES 362 D PUSH^C0CXPATH(ZOUT,"<table >")365 D PUSH^C0CXPATH(ZOUT,"<table border=""1"">") 363 366 N ZI,ZJ S ZI="" S ZJ=0 364 367 D PUSH^C0CXPATH(ZOUT,"<tr>") ;new row for column headers
Note:
See TracChangeset
for help on using the changeset viewer.