Further edited admin panel for reports

This commit is contained in:
Andre Lorbach 2009-08-27 16:38:32 +02:00
parent 4ed4be3459
commit b889714ddb
6 changed files with 25 additions and 2 deletions

View File

@ -358,7 +358,7 @@ function InitReportModules()
{
// --- Create SQL Query
$sqlquery = " SELECT " .
DB_SAVEDREPORTS . ".ID, " .
DB_SAVEDREPORTS . ".ID as SavedReportID, " .
DB_SAVEDREPORTS . ".sourceid, " .
DB_SAVEDREPORTS . ".customTitle, " .
DB_SAVEDREPORTS . ".customComment, " .
@ -376,13 +376,16 @@ function InitReportModules()
$myrows = DB_GetAllRows($result, true);
if ( isset($myrows) && count($myrows) > 0 )
{
// Set to true!
$content['REPORTS'][$myReportID]['HASSAVEDREPORTS'] = true;
// Add all savedreports
foreach ($myrows as &$mySavedReport)
{
// TODO: Perform whatever needs to be performed
// Add saved report into global array
$content['REPORTS'][$myReportID]['SAVEDREPORTS'][ $mySavedReport['ID'] ] = $mySavedReport;
$content['REPORTS'][$myReportID]['SAVEDREPORTS'][ $mySavedReport['SavedReportID'] ] = $mySavedReport;
}
}

View File

@ -392,6 +392,7 @@ $content['LN_REPORTS_ERROR_HASBEENREMOVED'] = "All settings for the report '%1'
$content['LN_REPORTS_ERROR_HASBEENADDED'] = "All required settings for the report '%1' have been added.";
$content['LN_REPORTS_ERROR_NOFIELDS'] = "The report '%1' does not have any custom settings which can be added.";
$content['LN_REPORTS_ERROR_REPORTDOESNTNEEDTOBEREMOVED'] = "The report '%1' does not need to be removed or initialized.";
$content['LN_REPORTS_ADDSAVEDREPORT'] = "Add Savedreport";
$content['LN_REPORTS_'] = "";
?>

View File

@ -405,6 +405,7 @@ $content['LN_REPORTS_ERROR_HASBEENREMOVED'] = "All settings for the report '%1'
$content['LN_REPORTS_ERROR_HASBEENADDED'] = "All required settings for the report '%1' have been added.";
$content['LN_REPORTS_ERROR_NOFIELDS'] = "The report '%1' does not have any custom settings which can be added.";
$content['LN_REPORTS_ERROR_REPORTDOESNTNEEDTOBEREMOVED'] = "The report '%1' does not need to be removed or initialized.";
$content['LN_REPORTS_ADDSAVEDREPORT'] = "Add Savedreport";
$content['LN_REPORTS_'] = "";

View File

@ -405,6 +405,7 @@ $content['LN_REPORTS_ERROR_HASBEENREMOVED'] = "All settings for the report '%1'
$content['LN_REPORTS_ERROR_HASBEENADDED'] = "All required settings for the report '%1' have been added.";
$content['LN_REPORTS_ERROR_NOFIELDS'] = "The report '%1' does not have any custom settings which can be added.";
$content['LN_REPORTS_ERROR_REPORTDOESNTNEEDTOBEREMOVED'] = "The report '%1' does not need to be removed or initialized.";
$content['LN_REPORTS_ADDSAVEDREPORT'] = "Add Savedreport";
$content['LN_REPORTS_'] = "";
?>

View File

@ -392,6 +392,7 @@ $content['LN_REPORTS_ERROR_HASBEENREMOVED'] = "All settings for the report '%1'
$content['LN_REPORTS_ERROR_HASBEENADDED'] = "All required settings for the report '%1' have been added.";
$content['LN_REPORTS_ERROR_NOFIELDS'] = "The report '%1' does not have any custom settings which can be added.";
$content['LN_REPORTS_ERROR_REPORTDOESNTNEEDTOBEREMOVED'] = "The report '%1' does not need to be removed or initialized.";
$content['LN_REPORTS_ADDSAVEDREPORT'] = "Add Savedreport";
$content['LN_REPORTS_'] = "";
?>

View File

@ -35,6 +35,8 @@
<td align="left" class="{cssclass}" valign="top"><a href="{BASEPATH}admin/reports.php?op=details&id={ID}">{DisplayName}</a></td>
<td align="left" class="{cssclass}" valign="top">{Description}</td>
<td align="center" class="{cssclass}">
<a href="{BASEPATH}admin/reports.php?op=addsavedreport&id={ID}"><img src="{MENU_ADD}" width="16" title="{LN_REPORTS_ADDSAVEDREPORT}"></a>&nbsp;
<!-- IF ReportHelpEnabled="true" -->
<a href="{ReportHelpArticle}" target="_blank"><img src="{MENU_HELP}" width="16" title="{LN_REPORTS_HELP}"></a>&nbsp;&nbsp;
<!-- ENDIF ReportHelpEnabled="true" -->
@ -49,6 +51,20 @@
<!-- ENDIF EnableNeedsInit="true" -->
</td>
</tr>
<!-- IF GROUPMEMBERS="true" -->
<tr>
<td align="center" colspan="2" class="cellmenu2_naked">{LN_REPORTS_SAVEDREPORTS}</td>
<td align="left" colspan="2" class="line0">
<!-- BEGIN SAVEDREPORTS -->
<img src="{MENU_REPORTS}" width="16">
<a href="{BASEPATH}admin/reports.php?op=editsavedreport&id={SavedReportID}">{customTitle}</a>
<!-- END SAVEDREPORTS -->
</td>
</tr>
<!-- ENDIF GROUPMEMBERS="true" -->
<!-- END REPORTS -->
</table>
<!-- ENDIF LISTREPORTS="true" -->