mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 02:20:41 +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
|
* List all registered conversion services
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function list_conversion_services($conversionmgr) { /* {{{ */
|
function list_conversion_services($allservices) { /* {{{ */
|
||||||
if(!$conversionmgr)
|
|
||||||
return;
|
|
||||||
|
|
||||||
$allservices = $conversionmgr->getServices();
|
|
||||||
|
|
||||||
echo "<table class=\"table table-condensed table-sm\">\n";
|
echo "<table class=\"table table-condensed table-sm\">\n";
|
||||||
echo "<thead>";
|
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";
|
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->globalNavigation();
|
||||||
$this->contentStart();
|
$this->contentStart();
|
||||||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
$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->contentEnd();
|
||||||
$this->htmlEndPage();
|
$this->htmlEndPage();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user