//--No direct access
defined('_JEXEC') or die('=;)');
$maps = array();
$mapQueraL =array();
$mapQueraL['var'] = 'PatronHiperqueratosis';
$mapQueraL['name'] = 'Foot';
$mapQueraL['foot'] = 'L';
$mapQueraL['imageHeight'] = 188;
$mapQueraL['imageWidth'] = 103;
$mapQueraL['image'] = JRoute::_('components/com_vxc/assets/images/footL.jpg');
$areas = array();
$areas[] = array('type'=>'circle', 'coords' => '66,25,9');
$areas[] = array('type'=>'circle', 'coords' => '24,78,7');
$areas[] = array('type'=>'circle', 'coords' => '35,71,8');
$areas[] = array('type'=>'circle', 'coords' => '45,61,7');
$areas[] = array('type'=>'circle', 'coords' => '71,51,10');
$areas[] = array('type'=>'circle', 'coords' => '56,56,7');
$areas[] = array('type'=>'circle', 'coords' => '41,163,14');
$areas[] = array('type'=>'circle', 'coords' => '79,161,14');
$mapQueraL['areas'] = $areas;
$maps['FootL'] = $mapQueraL;
$mapQueraR =array();
$mapQueraR['var'] = 'PatronHiperqueratosis';
$mapQueraR['name'] = 'Foot';
$mapQueraR['foot'] = 'R';
$mapQueraR['imageHeight'] = 188;
$mapQueraR['imageWidth'] = 103;
$mapQueraR['image'] = JRoute::_('components/com_vxc/assets/images/footR.jpg');
$areas = array();
$areas[] = array('type'=>'circle', 'coords' => '37,25,9');
$areas[] = array('type'=>'circle', 'coords' => '79,78,7');
$areas[] = array('type'=>'circle', 'coords' => '68,71,8');
$areas[] = array('type'=>'circle', 'coords' => '58,61,7');
$areas[] = array('type'=>'circle', 'coords' => '32,51,10');
$areas[] = array('type'=>'circle', 'coords' => '47,56,7');
$areas[] = array('type'=>'circle', 'coords' => '62,163,14');
$areas[] = array('type'=>'circle', 'coords' => '24,161,14');
$mapQueraR['areas'] = $areas;
$maps['FootR'] = $mapQueraR;
$this->loadHelper('AtAreaMaphelper');
$helperMapArea = new AtAreaMaphelper();
$helperMapArea->setMaps($maps);
$iconsAlturas = array(
array('src'=>'components/com_vxc/assets/images/smallequal.gif','srcsel'=>'components/com_vxc/assets/images/smallequalsel.gif','value' => 1),
array('src'=>'components/com_vxc/assets/images/smalluparrow.gif','srcsel'=>'components/com_vxc/assets/images/smalluparrowsel.gif','value' => 2),
array('src'=>'components/com_vxc/assets/images/smalldownarrow.gif','srcsel'=>'components/com_vxc/assets/images/smalldownarrowsel.gif','value' => 3));
function PrintAlturasBox(&$iconsAlturas,&$view,$varname,$foot)
{
$positions=array(
'AlturaHombrosL' => array('top'=>48,'left'=>50),
'AlturaHombrosR' => array('top'=>48,'left'=>210),
'AlturaEspinasIliacasL' => array('top'=>127,'left'=>50),
'AlturaEspinasIliacasR' => array('top'=>127,'left'=>210),
'AlturaHuecosPopliteosL' => array('top'=>206,'left'=>50),
'AlturaHuecosPopliteosR' => array('top'=>206,'left'=>210),
'AlturaMaleolosL' => array('top'=>273,'left'=>50),
'AlturaMaleolosR' => array('top'=>273,'left'=>210));
$position =& $positions[$varname.$foot];
$html = "
\n";
foreach($iconsAlturas as $icon)
{
if (((int)$view->exploration[$varname][$foot])==$icon['value'])
$src = $icon['srcsel'];
else
$src = $icon['src'];
$html .="
\n";
}
$html .="\n";
$html .= "
\n";
return $html;
}
function PrintCheck2FMultipleTable(&$view,$atname)
{
$checksLeft ='';
$checksRight = '';
$html="
| ".JText::_('PIE IZQUIERDO')." |
".JText::_('PIE DERECHO')." |
| $checksLeft |
$checksRight |
";
return $html;
}
function PrintRadio2FSmallTable(&$view,$atname)
{
$atts= "style='text-align:center'";
$inputs = array();
$images = array();
foreach($view->types[$atname]->values as $key=>$value)
{
$image_left = $value['image_left'];
$inputs[] = "exploration[$atname]['L'])?('checked'):('')) ." name='{$atname}[L]' value=\"{$key}\"/>". JText::_($value['name']) ." ";
if ($image_left)
$images[] = "
escape($image_left)."\" />";
else
$images[] = '';
}
$radiosLeft = "";
foreach($inputs as $input)
$radiosLeft .= "| $input | ";
$radiosLeft .="
";
foreach($images as $image)
$radiosLeft .= "| $image | ";
$radiosLeft .="
";
$inputs = array();
$images = array();
foreach($view->types[$atname]->values as $key=>$value)
{
$image_right = $value['image_right'];
if (!$image_right)
$image_right = $value['image_left'];
$inputs[] ="exploration[$atname]['R'])?('checked'):('')) ." name='{$atname}[R]' value=\"{$key}\"/>". JText::_($value['name']) ." ";
if ($image_right)
$images[] = "
escape($image_right)."\" />";
else
$images[] = "";
}
$radiosRight = "";
foreach($inputs as $input)
$radiosRight .= "| $input | ";
$radiosRight .="
";
foreach($images as $image)
$radiosRight .= "| $image | ";
$radiosRight .="
";
$html= "
| ".JText::_('PIE IZQUIERDO')." |
$radiosLeft |
| ".JText::_('PIE DERECHO')." |
$radiosRight |
";
return $html;
}
function PrintRadiosNAD(&$view,$atname)
{
$left ='';
$right = '';
$atts =" style='text-align:center' ";
for ($i=0;$i<2;$i++)
{
$foot = ($i==0)?'L':'R';
$a ='';
$n ='';
$d ='';
foreach($view->types[$atname]->values as $key=>$value)
{
$field="exploration[$atname][$foot]==$key)?('checked'):(''))." value=\"$key\" name=\"${atname}[{$foot}]\" /> | ";
switch($value['name'])
{
case 'Normal': $n = $field; break;
case 'Aumentada': $a = $field; break;
case 'Disminuida': $d = $field; break;
}
}
if ($i==0)
$left = $n . $a . $d;
else
$right = $n . $a . $d;
}
return $left . $right;
}
function PrintRadiosValMus(&$view,$atname)
{
$left ='';
$right = '';
$atts =" style='text-align:center' ";
for ($i=0;$i<2;$i++)
{
$foot = ($i==0)?'L':'R';
$field ='';
for ($j=1;$j<=6;$j++)
{
$checked = (($view->exploration[$atname][$foot]==$j)?('checked'):(''));
$field .= " | ";
}
if ($i==0)
$left .= $field;
else
$right .= $field;
}
return $left . $right;
}
?>
=$helperMapArea->GetJS()?>