154 |
echo "<HEAD> |
echo "<HEAD> |
155 |
<TITLE> Gnu Accountancy</TITLE> |
<TITLE> Gnu Accountancy</TITLE> |
156 |
<META http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"> |
<META http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"> |
157 |
<LINK REL=\"stylesheet\" type=\"text/css\" href=\"$style\"> |
<LINK REL=\"stylesheet\" type=\"text/css\" href=\"$style\" media=\"screen\"> |
158 |
|
<link rel=\"stylesheet\" type=\"text/css\" href=\"style-print.css\" media=\"print\"> |
159 |
</HEAD><script src=\"scripts.js\" type=\"text/javascript\"></script>"; |
</HEAD><script src=\"scripts.js\" type=\"text/javascript\"></script>"; |
160 |
echo "<BODY $p_script>"; |
echo "<BODY $p_script>"; |
161 |
} |
} |
261 |
// direction Vertical |
// direction Vertical |
262 |
if ( $p_dir == 'V') { |
if ( $p_dir == 'V') { |
263 |
foreach ($p_array as $all=>$href){ |
foreach ($p_array as $all=>$href){ |
264 |
$ret.='<TR><TD CLASS="'.$class.'"><A class="'.$class_ref.'" HREF="'.$href[0].'">'.$href[1].'</A></TD></TR>'; |
$title=""; |
265 |
|
if ( isset ($href[2] )) |
266 |
|
$title=$href[2]; |
267 |
|
$ret.='<TR><TD CLASS="'.$class.'"><A class="'.$class_ref.'" HREF="'.$href[0].'" title="'.$title.'">'.$href[1].'</A></TD></TR>'; |
268 |
} |
} |
269 |
} |
} |
270 |
//direction Horizontal |
//direction Horizontal |
271 |
else if ( $p_dir == 'H' ) { |
else if ( $p_dir == 'H' ) { |
272 |
$ret.="<TR>"; |
$ret.="<TR>"; |
273 |
foreach ($p_array as $all=>$href){ |
foreach ($p_array as $all=>$href){ |
274 |
|
$title=""; |
275 |
|
if ( isset ($href[2] )) |
276 |
|
$title=$href[2]; |
277 |
if ( $default== $href[0]) { |
if ( $default== $href[0]) { |
278 |
$ret.='<TD CLASS="selectedcell">'.$href[1].'</TD>'; |
$ret.='<TD CLASS="selectedcell">'.$href[1].'</TD>'; |
279 |
|
|
280 |
} else { |
} else { |
281 |
$ret.='<TD CLASS="'.$class.'"><A class="'.$class_ref.'" HREF="'.$href[0].'">'.$href[1].'</A></TD>'; |
$ret.='<TD CLASS="'.$class.'"><A class="'.$class_ref.'" HREF="'.$href[0].'" title="'.$title.'">'.$href[1].'</A></TD>'; |
282 |
} |
} |
283 |
} |
} |
284 |
$ret.="</TR>"; |
$ret.="</TR>"; |