<?php $baseUrl = Yii::app()->getBaseUrl(true); ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>DELIVERY NOTIFICATION</title>
    </head>
    <body style="margin: 0; padding: 0; background-color: #FAFAFA;">
        <table width="700" border="0" align="center"  style="font-family:tahoma;border:1px solid #ccc; font-size:12px; color:#333; padding:0 25px;background:#f5f5f5;" >
            <tr >
                <td><table width="700" border="0" cellspacing="5" cellpadding="5" >
                        <tr>
                            <td width="58" align="right" valign="middle">
                                <?php echo CHtml::image($baseUrl . '/images/mail/delivery.png'); ?>
                            </td>
                            <td width="306"><h1 style=" font-family:tahoma;font-size:18px; padding:5px 0; margin:0px; color:#dc032e; text-align:left; text-transform:uppercase">DELIVERY NOTE</h1>
                                <h2 style=" font-family:tahoma;font-size:13px; padding:0 0 5px; margin:0px; color:#000; text-align:left"> <?php echo $model->file->owncompany->company_name; ?> </h2>
                            </td>
                            <td width="286" align="right" valign="middle"></td>
                        </tr>
                    </table></td>
            </tr>
            <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="5" style=" font-size:12px; padding: 10px;">
                        <tr>
                            <td width="339">File</td>
                            <td width="341"><?php echo $model->file_id; ?>/<?php echo $model->id; ?></td>
                        </tr>
                        <tr style="background:#fff">
                            <td>File Title</td>
                            <td><?php echo $model->file->file_title; ?></td>
                        </tr>
                        <tr>
                            <td>Company</td>
                            <td><?php echo $model->file->company_id; ?>/<?php echo $model->file->company->company_name; ?></td>
                        </tr>
                        <tr style="background:#fff">
                            <td>Dly Date</td>
                            <td><?php echo $model->delivery_date; ?></td>
                        </tr>
                        <tr>
                            <td>Notes/Requirement</td>
                            <td><?php echo $model->notes; ?></td>
                        </tr>   
                        <tr>
                            <td colspan="2" style="text-align:right; padding:5px 0"><?php echo CHtml::link(CHtml::image($baseUrl . "/images/login/cumulus.png"), "http://cumuluscrm.us/", array('target' => '_blank', 'width' => '50', 'height' => '29')); ?></td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align:center; background:#ddd; padding:5px 0"><?php echo CHtml::link("Mail sent from Cumulus CRM at" . date('y/m/d h:m a'), "http://cumuluscrm.us/", array('target' => '_blank')); ?>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>