';
$html .= $param['label'];
$html .= '';
$html .= '
';
$html .= $param['value'];
$html .= '
';
return $html;
}
function textLink($param) {
if(empty($param['value']))
return;
$html = '';
$html .= '';
$html .= $param['label'];
$html .= '
';
$html .= '';
return $html;
}
function radio($param) {
if(empty($param['value']) && empty($param['other']))
return;
$html = '';
$html .= '';
$html .= $param['label'];
$html .= '
';
$html .= '';
$html .= $param['value'];
$html .= ' ';
$html .= $param['other'];
$html .= '
';
return $html;
}
function checkbox($param) {
$options = '';
$show = false;
foreach($param['options'] as $option)
{
if($option['check']) {
$options .= ''.$option['label'].'';
$show = true;
}
}
$html = '';
$html .= '';
$html .= $param['label'];
$html .= '
';
$html .= '';
$html .= '
';
$html .= $options;
$html .= '
';
$html .= '
';
if($show)
return $html;
}
function image($param) {
if(empty($param['value']))
return;
$html = '';
$html .= '';
$html .= $param['label'];
$html .= '
';
$html .= '';
return $html;
}
function table($param) {
$show = false;
$table = '';
$table .= '';
$table .= '';
$table .= ' | ';
foreach($param['options'] as $opt)
{
$table .= '';
$table .= $opt['label'];
$table .= ' | ';
}
$table .= '
';
foreach($param['statements'] as $stat)
{
$table .= '';
$table .= '';
$table .= $stat['label'];
$table .= ' | ';
foreach($param['options'] as $key => $opt)
{
if($opt['id'] == $param['value'][$stat['id']]) {
$table .= 'x | ';
$show = true;
}
else {
$table .= '- | ';
}
}
$table .= '
';
}
$table .= '
';
$html = '';
$html .= '';
$html .= $param['label'];
$html .= '
';
$html .= $table;
$html .= '';
if($show)
return $html;
}
?>
partial('module/zdjecia', array('zdjecia' => array($foto), 'powieksz_zdjecie' => $lang['powieksz_zdjecie'])) ?>