mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
add checkmark for each conversion service
This commit is contained in:
parent
1dad0081f9
commit
32f2cffa9f
|
@ -54,39 +54,45 @@ class SeedDMS_View_ConversionServices extends SeedDMS_Theme_Style {
|
||||||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||||
|
|
||||||
if($conversionmgr) {
|
if($conversionmgr) {
|
||||||
$allservices = $conversionmgr->getServices();
|
$allservices = $conversionmgr->getServices();
|
||||||
if($data = $dms->getStatisticalData('docspermimetype')) {
|
if($data = $dms->getStatisticalData('docspermimetype')) {
|
||||||
$this->contentHeading(getMLText("list_conversion_overview"));
|
$this->contentHeading(getMLText("list_conversion_overview"));
|
||||||
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('mimetype')."</th><th>".getMLText('preview')."</th><th>".getMLText('fullsearch')."</th><th>".getMLText('preview_pdf')."</th></tr>\n";
|
echo "<tr><th>".getMLText('mimetype')."</th><th>".getMLText('preview')."</th><th>".getMLText('fullsearch')."</th><th>".getMLText('preview_pdf')."</th></tr>\n";
|
||||||
echo "</thead>";
|
echo "</thead>";
|
||||||
echo "<tbody>";
|
echo "<tbody>";
|
||||||
foreach($data as $d) {
|
foreach($data as $d) {
|
||||||
$key = $d['key'];
|
$key = $d['key'];
|
||||||
$t = explode('/', $key);
|
$t = explode('/', $key);
|
||||||
if(isset($allservices[$key]) || isset($allservices[$t[0].'/*'])) {
|
if(isset($allservices[$key]) || isset($allservices[$t[0].'/*'])) {
|
||||||
echo "<tr><td>".$key."</td>";
|
echo "<tr><td>".$key." (".$d['total'].")</td>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
if(!empty($allservices[$key]['image/png']))
|
if(!empty($allservices[$key]['image/png'])) {
|
||||||
echo '<i class="fa fa-check"></i>';
|
foreach($allservices[$key]['image/png'] as $object)
|
||||||
echo "</td>";
|
echo '<i class="fa fa-check" title="'.get_class($object).'"></i> ';
|
||||||
echo "<td>";
|
}
|
||||||
if(!empty($allservices[$key]['text/plain']))
|
echo "</td>";
|
||||||
echo '<i class="fa fa-check"></i>';
|
echo "<td>";
|
||||||
echo "</td>";
|
if(!empty($allservices[$key]['text/plain'])) {
|
||||||
echo "<td>";
|
foreach($allservices[$key]['text/plain'] as $object)
|
||||||
if(!empty($allservices[$key]['application/pdf']))
|
echo '<i class="fa fa-check" title="'.get_class($object).'"></i> ';
|
||||||
echo '<i class="fa fa-check"></i>';
|
}
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "</tr>";
|
echo "<td>";
|
||||||
|
if(!empty($allservices[$key]['application/pdf'])) {
|
||||||
|
foreach($allservices[$key]['application/pdf'] as $object)
|
||||||
|
echo '<i class="fa fa-check" title="'.get_class($object).'"></i> ';
|
||||||
|
}
|
||||||
|
echo "</td>";
|
||||||
|
echo "</tr>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
echo "</tbody></table>";
|
||||||
}
|
}
|
||||||
echo "</tbody></table>";
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->contentHeading(getMLText("list_conversion_services"));
|
$this->contentHeading(getMLText("list_conversion_services"));
|
||||||
self::list_conversion_services($allservices);
|
self::list_conversion_services($allservices);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->contentEnd();
|
$this->contentEnd();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user