<?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>ASSIGN TEAM</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">ASSIGN TEAM NOTIFICATION </h1>
                            </td>
                            <td width="286" align="right" valign="middle"></td>
                        </tr>
                    </table></td>
            </tr>
                         <tr>
                            <td colspan="2"> Dear <?php echo $model->fullname;?>, You are assigned to Tender No: <?php echo $tenderDetails->tender_no; ?> </td>
                        </tr><br>
            <tr>
                            <tr>
                                <td><strong>Tender Details</strong></td>
                            </tr>
                <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="2" style="font-family:tahoma;font-size:12px; padding: 10px;">
                       <tr>
                            <td width="339">Tender No.</td>
                            <td width="341"><?php echo $tenderDetails->tender_no; ?></td>
                        </tr>
                        <tr>
                            <td width="339">Customer/Vendor</td>
                            <td width="341"><?php echo $tenderDetails->company->company_name; ?></td>
                        </tr>
                        <tr>
                            <td>Location</td>
                            <td><?php echo $tenderDetails->location; ?></td>
                        </tr>
                        <tr>
                            <td>Closing Date</td>
                            <td><?php echo $tenderDetails->closing_date; ?></td>
                        </tr>
                       <?php if($userAssigned != null){ ?> <tr>
                            <td width="339">Other Members</td>
                            <td width="341"><?php 
                            foreach($userAssigned as $eachMembers){
                                echo $eachMembers->fullname.",";
                            }
                            ?></td>
                        </tr>
                       <?php } ?>
                         </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 ERP at " . date('Y/m/d h:m A'), "http://cumuluscrm.us/", array('target' => '_blank')); ?>
                            </td>
                        </tr>
        </table>
    </body>
</html>