public static function getFiltersHeadersHtml($results_limit) { global $mod_strings; $returnedHtml = ' <h4> ' . $mod_strings['LBL_REPORT_FILTERS'] . ' <img title="' . $mod_strings['LBL_REPORT_FILTERS_CONFIGURATION'] . '" style="vertical-align: text-bottom; display: inline;" src="modules/asol_Reports/include_basic/images/asol_reports_configure_filters.png" class="asol_icon configure_filters_btn clickable" onclick="showFiltersConfig();"> </h4> <input type="hidden" id="filtersConfiguration" /> <table id="filters_Table" class="list view"> <thead> <tr> <th nowrap="nowrap" scope="col" class="center"> <input type="checkbox" class="massiveCheck_all" /> <input type="hidden" id="filtersGlobalIndex" value="0"> </th> <th nowrap="nowrap" scope="col"> <div align="left" width="100%" style="white-space: nowrap;"> ' . $mod_strings['LBL_REPORT_LOGICAL_OPERATORS'] . ' </div> </th> <th nowrap="nowrap" scope="col" class="aliasHeader"> <div align="left" width="100%" style="white-space: nowrap;"> ' . $mod_strings['LBL_REPORT_ALIAS'] . ' '; //***********************// //***AlineaSol Premium***// //***********************// $returnedPremiumMultiLanguageHtml = asol_ReportsUtils::managePremiumFeature("multiLanguageReport", "reportFunctions.php", "getMultiLanguageButton", array('isField' => false)); $returnedHtml .= $returnedPremiumMultiLanguageHtml !== false ? $returnedPremiumMultiLanguageHtml : ''; //***********************// //***AlineaSol Premium***// //***********************// $returnedHtml .= ' </div> </th> <th nowrap="nowrap" scope="col" class="refHeader"> <div align="left" width="100%" style="white-space: nowrap;"> ' . $mod_strings['LBL_REPORT_FILTER_REF'] . ' </div> </th> <th nowrap="nowrap" scope="col" class="behaviorHeader"> <div align="left" width="100%" style="white-space: nowrap;"> ' . $mod_strings['LBL_REPORT_BEHAVIOR'] . ' </div> </th> <th nowrap="nowrap" scope="col" class="inputOptsHeader"> <div align="left" width="100%" style="white-space: nowrap;"> ' . $mod_strings['LBL_REPORT_USER_INPUT_OPTS'] . ' </div> </th> <th nowrap="nowrap" scope="col" class="operatorHeader"> <div align="left" width="100%" style="white-space: nowrap;"> ' . $mod_strings['LBL_REPORT_OPERATOR'] . ' </div> </th> <th nowrap="nowrap" scope="col" class="firstParamHeader"> <div align="left" width="100%" style="white-space: nowrap;"> ' . $mod_strings['LBL_REPORT_FIRST_PARAMETER'] . ' </div> </th> <th nowrap="nowrap" scope="col" class="secondParamHeader"> <div align="left" width="100%" style="white-space: nowrap;"> ' . $mod_strings['LBL_REPORT_SECOND_PARAMETER'] . ' </div> </th> <th nowrap="nowrap" scope="col"> </th> </tr> </thead> <tfoot> <tr> <td colspan="10"> <input disabled type="button" class="massiveBtn_all" value="' . $mod_strings['LBL_REPORT_MULTIDELETE_FILTER'] . '" onClick="deleteRows(\'filters_Table\', \'massiveCheck\', \'massiveCheck_all\', \'massiveBtn_all\', \'LBL_REPORT_MULTIDELETE_FILTER_ALERT\');"/> </td> </tr> </tfoot> <tbody> <tr class="asolReportsFiltersResultsRow"> <td></td> <td></td> <td><b>' . $mod_strings['LBL_REPORT_RESULTS'] . '</b></td> <td colspan="3"></td> <td> <select id="results_limit_op" name="results_limit_op" onChange="if (this.value == \'all\') { document.getElementById(\'results_limit_param\').style.visibility=\'hidden\'; document.getElementById(\'results_limit_amount\').style.visibility=\'hidden\'; } else { document.getElementById(\'results_limit_param\').style.visibility=\'visible\'; document.getElementById(\'results_limit_amount\').style.visibility=\'visible\'; }">'; if ($results_limit['operator'] == "all") { $returnedHtml .= '<option value="all" selected>' . $mod_strings['LBL_REPORT_ALL'] . '</option>'; } else { $returnedHtml .= '<option value="all">' . $mod_strings['LBL_REPORT_ALL'] . '</option>'; } if ($results_limit['operator'] == "limit") { $returnedHtml .= '<option value="limit" selected>' . $mod_strings['LBL_REPORT_LIMIT'] . '</option>'; } else { $returnedHtml .= '<option value="limit">' . $mod_strings['LBL_REPORT_LIMIT'] . '</option>'; } $returnedHtml .= ' </select> </td> <td>'; if ($results_limit['operator'] == 'all') { $returnedHtml .= '<select id="results_limit_param" name="results_limit_param" style="visibility: hidden;">'; } else { $returnedHtml .= '<select id="results_limit_param" name="results_limit_param" style="visibility: visible;">'; } if ($results_limit['first_param'] == "first") { $returnedHtml .= '<option value="first" selected>' . $mod_strings['LBL_REPORT_FIRST_RESULTS'] . '</option>'; } else { $returnedHtml .= '<option value="first">' . $mod_strings['LBL_REPORT_FIRST_RESULTS'] . '</option>'; } if ($results_limit['first_param'] == "last") { $returnedHtml .= '<option value="last" selected>' . $mod_strings['LBL_REPORT_LAST_RESULTS'] . '</option>'; } else { $returnedHtml .= '<option value="last">' . $mod_strings['LBL_REPORT_LAST_RESULTS'] . '</option>'; } $returnedHtml .= ' </select> </td> <td>'; if ($results_limit['operator'] == 'all') { $returnedHtml .= '<input type="text" id="results_limit_amount" name="results_limit_amount" value="' . $results_limit['second_param'] . '" style="visibility: hidden;">'; } else { $returnedHtml .= '<input type="text" id="results_limit_amount" name="results_limit_amount" value="' . $results_limit['second_param'] . '" style="visibility: visible;">'; } $returnedHtml .= ' </td> <td> </td> </tr> </tbody> </table> <div id="filtersConfigurationDialog" class="filtersConfigurationDialog" style="display: none"> <table class="edit view edit508"> <tbody> <tr> <th colspan="2"> <h4>' . $mod_strings['LBL_REPORT_USER_INPUT'] . '</h4> </th> </tr> <tr> <td> ' . asol_ReportsManagementFunctions::getReportInitialExecutionHtml($initialExecutionFlag) . ' </td> </tr> </tbody> </table> <input type="button" onclick="saveFiltersConfig();" value="' . $mod_strings['LBL_REPORT_SAVE'] . '" /> <input type="button" onclick="discardFiltersConfig();" value="' . $mod_strings['LBL_REPORT_CANCEL'] . '" /> </div>'; return $returnedHtml; }