forked from science-ation/science-ation
- Add a link to try each report before adding it, so the committee member can
see what it looks like.
This commit is contained in:
parent
3e3c28268c
commit
4cacf1b945
@ -232,14 +232,20 @@
|
||||
|
||||
echo '<hr />';
|
||||
echo '<h4>Descriptions for All Reports</h4>';
|
||||
echo i18n('Click on the report number to try the report with the default report options before you add it to your Report List');
|
||||
echo '<br /><br />';
|
||||
echo "<table>\n";
|
||||
$x=0;
|
||||
foreach(array_merge($reports, $report_custom) as $r) {
|
||||
$trclass = ($x % 2 == 0) ? "even" : "odd";
|
||||
$x++;
|
||||
echo "<tr class=\"$trclass\">";
|
||||
echo "<td>$x.</td>";
|
||||
// echo "</td>";
|
||||
if($r['custom_url'] == '') {
|
||||
$url = "admin/reports_gen.php?id={$r['id']}";
|
||||
} else {
|
||||
$url = $r['custom_url'];
|
||||
}
|
||||
echo "<td><a href=\"{$config['SFIABDIRECTORY']}/$url\">$x.</a></td>";
|
||||
echo "<td><table width=\"100%\"><tr>";
|
||||
|
||||
echo "<td><b>{$r['name']}</b></td>";
|
||||
|
Loading…
Reference in New Issue
Block a user