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.= "   "; else if ($existsL) $html.=""; else $html.=""; } else $html.="Id: ".$thumb['id']; $html.="
"; } else $html = JText::_('New'); if ($icon) $htmlIcon = ""; else $htmlIcon = ""; return JHTML::_('tooltip',$html,'',null,$htmlIcon); } ?>
menu?>
:lists['customers']?> :
'DataUploader2Plugin', 'APD' => 'DataUploader2Plugin', 'FoamBox' => 'InsoleScannerPlugin', 'BB1Scan' => 'BB1v2Plugin', 'InsoleCADProject' => 'InsoleCAD2Plugin', 'InsoleCADCoverProject' => 'InsoleCAD2Plugin'); if ($this->canUseExperimentalCAD) { $pluginForType['InsoleCADProject'] = 'InsoleCAD3Plugin'; $pluginForType['InsoleCADCoverProject'] = 'InsoleCAD3Plugin'; } $k = 0; $i=0; foreach ($this->orders as $order) { $row = &$order; $checked = JHTML::_('grid.id', $i, $row->id ); $alreadyPredesigned = ($row->last_save_user !==null); $style = ''; $rowClass = ''; if ($alreadyPredesigned) { $rowColor = $this->userColors[$row->last_save_user]; if ($rowColor) $rowClass = 'predesign'.$row->last_save_user; else $rowClass = 'predesigned'; } else $rowClass = "row$k"; $intakeIcons = array(); $insoleIcon = ''; $insoleCoverIcon =''; $interviewIcon =''; $businessModel = ''; $htmlIntake = ""; if (count($row->attributes)) { foreach($row->attributes as $attribute) { switch($attribute->name) { case 'insoleOptions.businessModel': $businessModel = $attribute->value; break; case 'cad.insoleCADProject': $attribute->tyname = 'InsoleCADProject'; break; case 'intake.dynHeightmap': $attribute->tyname = "DynamicHeightmap"; break; case 'intake.apd': $attribute->tyname = "APD"; break; case 'intake.foambox': $attribute->tyname = "FoamBox"; break; case 'intake.textured3DData': $attribute->tyname= "Textured3DData"; break; case 'intake.brandsole': $attribute->tyname = "FootPrint"; break; case 'intake.blueprint': $attribute->tyname = "FootPrint"; break; case 'intake.bb1data': $attribute->tyname = "BB1Scan"; break; } switch($attribute->tyname) { case 'FootPrint': case 'APD': case 'FoamBox': case 'BB1Scan': case 'InsoleCADProject': case 'InsoleCADCoverProject': case 'DynamicHeightmap': case 'Textured3DData': $thumb=array(); $thumb['id'] = $attribute->id; $linkplugins = array(); $thumb['type'] = $attribute->tyname; $this->att->GetRelativeThumbs($attribute->id,$thumb['image_left'],$thumb['image_right']); if (LegacyHelper::getNewMode() && $row->uuid && $attribute->name) { $thumb['value'] = $attribute->value; $pluginAtId = $attribute->name . '~' . $row->uuid; } else $pluginAtId = $attribute->id; switch($attribute->tyname) { case 'InsoleCADProject': $insoleIcon = makePluginLink($pluginForType[$attribute->tyname],$pluginAtId, DisplayThumb($thumb),$row,'InsoleCADProject'); break; case 'InsoleCADCoverProject': $insoleCoverIcon = makePluginLink($pluginForType[$attribute->tyname],$pluginAtId, DisplayThumb($thumb),$row,'InsoleCADCoverProject'); break; default: $intakeIcons[] = makePluginLink($pluginForType[$attribute->tyname],$pluginAtId, DisplayThumb($thumb),$row); } break; } } } $icons =array(); foreach($intakeIcons as $icon) $icons[] = $icon; if ($insoleIcon) $icons[] = $insoleIcon; else { $thumb['type'] = 'InsoleCADProject'; $thumb['isNew'] = true; if (LegacyHelper::getNewMode() && $row->uuid) $pluginAtId = 'cad.insoleCADProject_'.$row->uuid; else $pluginAtId = ''; $icons[] = makePluginLink($pluginForType['InsoleCADProject'],$pluginAtId, DisplayThumb($thumb),$row,'InsoleCADProject'); } if ($insoleCoverIcon) $icons[] = $insoleCoverIcon; ?>
lists['order_Dir'], $this->lists['order']);?> lists['order_Dir'], $this->lists['order']);?> lists['order_Dir'], $this->lists['order']);?> lists['order_Dir'], $this->lists['order']);?> lists['order_Dir'], $this->lists['order']);?> lists['order_Dir'], $this->lists['order']);?> lists['order_Dir'], $this->lists['order']);?> lists['order_Dir'], $this->lists['order']);?> lists['order_Dir'], $this->lists['order']);?> lists['order_Dir'], $this->lists['order']);?>
pagination->getRowOffset($i); ?> id; ?> batch?> creationdate) { $date = new JDate($row->creationdate); $date->setOffset(date('Z')/3600.0); echo $date->toFormat('%d/%m/%Y %H:%M'); } else echo " " ?> username?> customerfullname; ?> reference; ?> receiptid) echo ($row->receiptpaid)?(JText::_('Yes')):(JText::_('No')); else echo JText::_('N/A'); ?> predesign)?(JText::_('Yes')):(JText::_('No')); ?> ',explode(',',$row->reviewers))?> id,$row->currentOrder,$row->uuid)?> '; echo $icons[$j]; } ?>
: :