Example #1
0
</div>
    <div class="grayline1"></div>
    <div class="spacerblock_20"></div>
    <div class="mainheader">
        <div class="pad20">
            <span class="headline11"><?php 
echo _('Welcome to the ') . $do_user->company . _(' portal');
?>
</span>
        </div>
    </div>
    <div class="contentfull">
	    <div class="vpad10">
            <?php 
$contact_message = new ContactMessage();
$personalized_message = $contact_message->getPersonalizedMessage($idcontact, $iduser_for_feed);
if ($personalized_message) {
    echo $contact_message->displayPersonalizedMessage($personalized_message);
} else {
    $msg = new Message();
    $msg->setData(array("user_firstname" => $do_user->firstname, "user_lastname" => $do_user->lastname, "user_company" => $do_user->company));
    $msg->getMessage("welcome client portal");
    $msg->setCanClose("no");
    echo $msg->displayMessage();
}
?>
	    </div>
        <div class="grayline2"></div>
        <div class="headline_fuscia"><?php 
echo _('Add a Note or File');
?>
Example #2
0
                          <li><?php 
    echo $e_generate_url->getLink("Send the address link by email");
    ?>
</li> 
						  <li><?php 
    echo $e_generate_new_url->getLink(_('Generate a new address link'));
    ?>
 </li>
						  <li><?php 
    echo $e_stop_sharing_notes->getLink(_('Stop sharing'));
    ?>
</li>
						  <li>
							<?php 
    $do_contact_msg = new ContactMessage();
    $pers_msg = $do_contact_msg->getPersonalizedMessage($_SESSION['do_contact_portal']->idcontact, $_SESSION['do_User']->iduser);
    ?>
							<a href="#" onclick="showMsgBox(); return false;"><?php 
    echo _('Set a personalized message');
    ?>
</a>
							<div id="portal_msg" style="display:none;">
								<?php 
    $e_portal_msg = new Event("ContactMessage->eventSetPersonalizedMessage");
    $e_portal_msg->addParam("idcontact", $_SESSION['do_contact_portal']->idcontact);
    echo $e_portal_msg->getFormHeader();
    echo $e_portal_msg->getFormEvent();
    ?>
								<textarea name="per_msg" rows="3" cols="50"><?php 
    if ($pers_msg) {
        echo $pers_msg;