<?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>MEETING INVITATION</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">MEETING INVITATION </h1>
                                <h2 style=" font-family:tahoma;font-size:13px; padding:0 0 5px; margin:0px; color:#000; text-align:left"> <?php// echo "test"; ?> </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">Subject</td>
                            <td width="341"><?php echo $model->meeting->subject; ?></td>
                        </tr>
                        <tr>
                            <td style="background:#fff">Location</td>
                            <td><?php echo $model->meeting->location; ?></td>
                        </tr>
                        <tr>
                            <td>Date and Time</td>
                            <td><?php echo $model->meeting->start_date . ' To ' . $model->meeting->end_date; ?></td>
                        </tr>
                        <tr style="background:#fff">
                            <td>Agenda/Details</td>
                            <td><?php echo $model->notes; ?></td>
                        </tr>
                        <tr>
                            <td>                                
                                <a href="http://www.google.com/calendar/event?action=TEMPLATE&text=<?php echo $model->meeting->subject; ?>&dates=<?php echo date('Ymd', strtotime($model->meeting->start_date)); ?>/<?php echo date('Ymd', strtotime($model->meeting->end_date)); ?>&details=<?php echo $model->notes; ?>&location=<?php echo $model->meeting->location; ?>&trp=false&sprop=&sprop=name:" target="_blank">
                                    <img src="http://www.google.com/calendar/images/ext/gc_button2.gif" border=0></a>

                            </td>
                        </tr>
                        <?php /* <tr>
                          <td>Participants</td>
                          <td><?php echo $model->enq_date; ?></td>
                          </tr>
                          <tr style="background:#fff">
                          <td>Internal Participants</td>
                          <td><?php echo $model->closing_date; ?></td>
                          </tr>
                          <tr>
                          <td>Additional Participants</td>
                          <td><?php echo $model->notes; ?></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>