
<html>
<head>
<style class="text/css">

body { margin:0; font-family: Arial, Helvetica, sans-serif; font-size:10px;	background-color:#fff; color:#9d9d9d;}
.txt { font-size:11px; color:#B0280D; font-weight:bold; padding: 0 20px 0 0;}
.txt2 { font-size:11px; border-bottom:1px solid #9d9d9d; border-bottom-style:dashed; padding-bottom:5px; margin-bottom:20px;}
.txt3 label { font-size:14px; color:#ff6600; font-weight:bold; text-transform:uppercase; margin-bottom:15px;}
.txt3 { margin-bottom:10px; border-bottom:1px solid #ff6600;}
a:link, a:visited { font-size:11px; padding-bottom:10px; color:#9d9d9d; text-decoration:underline;}
a:hover { font-size:11px; color:#ff6600; padding-bottom:10px; text-decoration:underline;}
</style>
</head>
<body>
<table border="0" align="left" width="100%" cellpadding="0" cellspacing="3">
	<tr>
    	<td width="100%"><img src="<?=$serverName . $baseUrl ?>/media/images/logo.png" /></td>
    </tr>
    <tr>
    	<td style="padding-left:87px; padding-top:40px;"> 
        	<table cellpadding="0" cellspacing="0" border="0" width="300"> 
               <?php foreach ($form->getElementsNames() as $element): ?>
               <?php if ($form->{$element}->getType() == 'separator') : ?>
                   <tr>
                      <td class="txt3"><?php echo $form->{$element}->label; ?><br /><?php echo $form->{$element}->input; ?></td>
                   </tr>
               <?php else : ?>
                   <tr>
                      <td class="txt">
                         <strong><?php echo $form->{$element}->label; ?>:</strong>
                      </td>
                   </tr>
                   <tr>
                      <td class="txt2">
                         <?php if ($model->colExists($element) && $form->{$element}->type == 'file' && $model->{$element}): ?>
                             <a href="<?php echo $serverName.$baseUrl?>/uploads/form/<?php echo $model->{$element}; ?>"><?php echo $model->{$element}; ?></a>
                         <?php elseif (is_array($form->{$element}->value)): ?>
                             <?php if (!isset($form->{$element}->value['tmp_name'])) : ?>
                             <?php $values = array(); ?>
                             <?php foreach ($form->{$element}->value as $value): ?>
                             <?php $values[] = $value; ?>
                             <?php endforeach; ?>         
                             <?php echo implode(', ', $values); ?>
                             <?php elseif (($form->{$element}->getType() == 'radio' || $form->{$element}->getType() == 'checkbox' || $form->{$element}->getType() == 'checkbox') && strlen($form->{$element}->value)): ?>
                             <?php echo $form->{$element}->options[$form->{$element}->value]; ?>
                             <?php endif; ?>
                         <?php else: ?> 
                            <?php echo $form->{$element}->value; ?>        
                         <?php endif; ?>          
                      </td>
                   </tr>
               <?php endif; ?>
               <?php endforeach; ?>
              </table>
             </td>
            </tr>
	<tr>
		<td height="50px;">&nbsp;</td>
	</tr>
</table>
</body>
</html>

<?/*
<table border="0" align="center" cellpadding="3" cellspacing="0">
   <?php foreach ($form->getElementsNames() as $element): ?>
   <?php if ($form->{$element}->getType() == 'separator') : ?>
       <tr>
          <td><?php echo $form->{$element}->label; ?><br /><?php echo $form->{$element}->input; ?></td>
       </tr>
   <?php else : ?>
       <tr>
          <td>
             <strong><?php echo $form->{$element}->label; ?>:</strong>
          </td>
          <td>
             <?php if (is_array($form->{$element}->value)): ?>
                 <?php if (!isset($form->{$element}->value['tmp_name'])) : ?>
                 <?php $values = array(); ?>
                 <?php foreach ($form->{$element}->value as $value): ?>
                 <?php $values[] = $value; ?>
                 <?php endforeach; ?>         
                 <?php echo implode(', ', $values); ?>
                 <?php elseif (($form->{$element}->getType() == 'radio' || $form->{$element}->getType() == 'checkbox' || $form->{$element}->getType() == 'checkbox') && strlen($form->{$element}->value)): ?>
                 <?php echo $form->{$element}->options[$form->{$element}->value]; ?>
                 <?php else: ?>
                 <a href="<?php echo $url_base?>/uploads/form/<?php echo $model->{$element}; ?>"><?php echo $model->{$element}; ?></a>
                 <?php endif; ?>
             <?php else: ?> 
                <?php echo $form->{$element}->value; ?>        
             <?php endif; ?>          
          </td>
       </tr>
   <?php endif; ?>
   <?php endforeach; ?>
</table>
*/?>