<?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>NEW COMPANY ADDED</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/lead.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">NEW COMPANY ADDED</h1>
                                <h2 style=" font-family:tahoma;font-size:13px; padding:0 0 5px; margin:0px; color:#000; text-align:left"> </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-family:tahoma;font-size:12px; padding: 10px;">
                        <tr>
                            <td width="339">Company </td>
                            <td width="341"><?php echo $model->company_name; ?></td>
                        </tr>
                        <!--<tr>
                            <td style="background:#fff">Type</td>
                            <td><?php echo implode(',', $model->types); ?></td>
                        </tr>-->
                        <tr>
                            <td>Billing Address</td>
                            <td><?php echo $model->BillingAddress; ?></td>
                        </tr>
                        <tr>
                            <td>Shipping Address</td>
                            <td><?php echo $model->ShippingAddress; ?></td>
                        </tr>

                        <tr>
                            <td colspan="2" style="font-family:tahoma;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="font-family:tahoma;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>