// JHTML::_('behavior.tooltip'); $displayBusinessModel = $this->displayBusinessModel; $useReceipts = $this->useReceipts; function PrintModalLinkOrder(&$view, &$row) { return "id.'&controller=myaccount&tmpl=component'). "\" rel=\"{handler: 'iframe',closeWithOverlay: false,fullScreen:true, ". "onClose: function() { document.adminForm.submit(); } } \" >"; } function makePluginLink($plugin, $atId, $caption, $order, $atTy='') { $task = 'display'; $atType = ''; if ($atTy) $atType = '&atType='.$atTy; $extraOptions =''; if (LegacyHelper::getNewMode() && $order->uuid) { $orderId = $order->uuid; } else $orderId = $order->id; $linkplugin = "$caption"; return $linkplugin; } function DisplayThumb(&$thumb) { $mvcMiddlewareURL = LegacyHelper::getMiddlewareServiceURL(); if (!$mvcMiddlewareURL) { $existsL = @file_exists(LegacyHelper::getFilesRoot() . $thumb['image_left']); $existsR = @file_exists(LegacyHelper::getFilesRoot() . $thumb['image_right']); } else { if ($thumb['value']=='both') { $existsL = true; $existsR = true; } else if ($thumb['value']=='left') { $existsL = true; $existsR = false; } else if ($thumb['value']=='right') { $existsL = false; $existsR = true; } else { $existsL = false; $existsR = false; } } $icon = ''; $title=''; switch($thumb['type']) { case 'FootPrint': $title = JText::_('Footprints'); $icon = 'components/com_vxc/assets/images/fp24x16.gif'; break; case 'APD': $title = JText::_('APD'); $icon = 'components/com_vxc/assets/images/apd24x16.gif'; break; case 'FoamBox': $title = JText::_('Foambox Scan'); $icon = 'components/com_vxc/assets/images/foambox24x16.gif'; break; case 'DynamicHeightmap': $title = JText::_('Dynamic Heightmap'); $icon = 'components/com_vxc/assets/images/foambox24x16.gif'; break; case 'Textured3DData': $title = JText::_('3D Data Scan'); $icon = 'components/com_vxc/assets/images/foambox24x16.gif'; break; case 'BB1Scan': $title = JText::_('BB1 Scan'); $icon = 'components/com_vxc/assets/images/bb124x16.gif'; break; case 'InsoleCADProject': $title = JText::_('Insole'); if ($thumb['isNew']) $icon = 'components/com_vxc/assets/images/newinsole.png'; else $icon = 'components/com_vxc/assets/images/insole.png'; break; case 'InsoleCADCoverProject': $title = JText::_('Covering'); $icon = 'components/com_vxc/assets/images/insolecover.png'; break; } $imageStyle= "border:1px solid black"; if (!$thumb['isNew']) { $html ="
| ".$title." |
| ";
if ($thumb) {
$thumbLeftURL = $thumb['image_left'];
$thumbRightURL = $thumb['image_right'];
$mvcMiddlewareURL = LegacyHelper::getMiddlewareServiceURL();
if ($mvcMiddlewareURL) {
$storageService = LegacyHelper::getStorageService();
$thumbLeftURL = $mvcMiddlewareURL ."/getFile?path=".urlencode($thumbLeftURL)."&rnd=".rand();
if ($storageService)
$thumbLeftURL .= "&storageService=".urlencode($storageService);
$thumbRightURL = $mvcMiddlewareURL ."/getFile?path=".urlencode($thumbRightURL)."&rnd=".rand();
if ($storageService)
$thumbRightURL .= "&storageService=".urlencode($storageService);
}
else {
$thumbLeftURL .= "?". rand();
$thumbRightURL .= "?". rand();
}
}
if ($existsL || $existsR) {
if ($existsL && $existsR)
$html.= " |
| =$this->menu?> |