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