mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
output list of existing mimetypes and its conversion services
This commit is contained in:
parent
eb6b93715f
commit
8e1e146515
|
@ -26,12 +26,7 @@ class SeedDMS_View_ConversionServices extends SeedDMS_Theme_Style {
|
|||
* List all registered conversion services
|
||||
*
|
||||
*/
|
||||
function list_conversion_services($conversionmgr) { /* {{{ */
|
||||
if(!$conversionmgr)
|
||||
return;
|
||||
|
||||
$allservices = $conversionmgr->getServices();
|
||||
|
||||
function list_conversion_services($allservices) { /* {{{ */
|
||||
echo "<table class=\"table table-condensed table-sm\">\n";
|
||||
echo "<thead>";
|
||||
echo "<tr><th>".getMLText('service_list_from')."</th><th>".getMLText('service_list_to')."</th><th>".getMLText('class_name')."</th><th>".getMLText('service_list_info')."</th></tr>\n";
|
||||
|
@ -57,9 +52,42 @@ class SeedDMS_View_ConversionServices extends SeedDMS_Theme_Style {
|
|||
$this->globalNavigation();
|
||||
$this->contentStart();
|
||||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||
$this->contentHeading(getMLText("list_conversion_services"));
|
||||
|
||||
self::list_conversion_services($conversionmgr);
|
||||
if($conversionmgr) {
|
||||
$allservices = $conversionmgr->getServices();
|
||||
if($data = $dms->getStatisticalData('docspermimetype')) {
|
||||
$this->contentHeading(getMLText("list_conversion_overview"));
|
||||
echo "<table class=\"table table-condensed table-sm\">\n";
|
||||
echo "<thead>";
|
||||
echo "<tr><th>".getMLText('mimetype')."</th><th>".getMLText('preview')."</th><th>".getMLText('fullsearch')."</th><th>".getMLText('preview_pdf')."</th></tr>\n";
|
||||
echo "</thead>";
|
||||
echo "<tbody>";
|
||||
foreach($data as $d) {
|
||||
$key = $d['key'];
|
||||
$t = explode('/', $key);
|
||||
if(isset($allservices[$key]) || isset($allservices[$t[0].'/*'])) {
|
||||
echo "<tr><td>".$key."</td>";
|
||||
echo "<td>";
|
||||
if($allservices[$key]['image/png'])
|
||||
echo '<i class="fa fa-check"></i>';
|
||||
echo "</td>";
|
||||
echo "<td>";
|
||||
if($allservices[$key]['text/plain'])
|
||||
echo '<i class="fa fa-check"></i>';
|
||||
echo "</td>";
|
||||
echo "<td>";
|
||||
if($allservices[$key]['application/pdf'])
|
||||
echo '<i class="fa fa-check"></i>';
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
echo "</tbody></table>";
|
||||
}
|
||||
|
||||
$this->contentHeading(getMLText("list_conversion_services"));
|
||||
self::list_conversion_services($allservices);
|
||||
}
|
||||
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
|
|
Loading…
Reference in New Issue
Block a user