SASUnit Examples  Version 1.5.0
_reporttabshtml.sas
Go to the documentation of this file.
1 
25 %MACRO _reportTabsHTML (i_tabnames
26  ,i_pages
27  ,i_current = 1
28  );
29 
30  %let l_string=^{RAW <ul class="tabs">;
31 
32  %LOCAL i l_class l_string;
33  %LET i=1;
34  %DO %WHILE(%sysfunc(scanq(&i_tabnames, &i)) NE );
35  %LET l_class=;
36  %IF &i=&i_current %THEN %DO;
37  %let l_class=id="current";
38  %END;
39  %let l_string=&l_string. <li &l_class.><a href="%sysfunc(compress(%sysfunc(scanq(&i_pages, &i)),%str(%")))">%sysfunc(compress(%sysfunc(scanq(&i_tabnames, &i)),%str(%")))</a></li>;
40  %LET i=%eval(&i+1);
41  %END;
42 
43  %let l_string=&l_string. </ul>};
44  title2 %sysfunc(quote(&l_string.));
45 %MEND _reportTabsHTML;