Beispiel #1
0
                <tr>
                    <td colspan="3" class="hilite">
                    <?php 
    foreach ($depts as $dept_id => $dept_info) {
        echo '<div>' . $dept_info['dept_name'];
        if ($dept_info['dept_phone'] != '') {
            echo '( ' . $dept_info['dept_phone'] . ' )';
        }
        echo '</div>';
    }
    ?>
                    </td>
                </tr>
                <?php 
}
$contacts = $obj->getContacts(null, $task_id);
if (count($contacts)) {
    echo '<tr><td colspan="3"><strong>' . $AppUI->_('Task Contacts') . '</strong></td></tr>';
    echo '<tr><td colspan="3" class="hilite">';
    echo $htmlHelper->renderContactTable('tasks', $contacts);
    echo '</td></tr>';
}
$project = new CProject();
$project->project_id = $obj->task_project;
$contacts = $project->getContactList();
if (count($contacts)) {
    echo '<tr><td colspan="3"><strong>' . $AppUI->_('Project Contacts') . '</strong></td></tr>';
    echo '<tr><td colspan="3" class="hilite">';
    echo $htmlHelper->renderContactTable('projects', $contacts);
    echo '</td></tr>';
}
Beispiel #2
0
                <tr>
                    <td colspan="3" class="hilite">
                        <?php 
    foreach ($depts as $dept_id => $dept_info) {
        echo '<div>' . $dept_info['dept_name'];
        if ($dept_info['dept_phone'] != '') {
            echo '( ' . $dept_info['dept_phone'] . ' )';
        }
        echo '</div>';
    }
    ?>
                    </td>
                </tr>
                <?php 
}
$contacts = $obj->getContacts($AppUI, $task_id);
if (count($contacts)) {
    echo '<tr><td><strong>' . $AppUI->_('Task Contacts') . '</strong></td></tr>';
    echo '<tr><td colspan="3" class="hilite">';
    echo w2p_Output_HTMLHelper::renderContactList($AppUI, $contacts);
    echo '</td></tr>';
}
$contacts = CProject::getContacts($AppUI, $obj->task_project);
if (count($contacts)) {
    echo '<tr><td><strong>' . $AppUI->_('Project Contacts') . '</strong></td></tr>';
    echo '<tr><td colspan="3" class="hilite">';
    echo w2p_Output_HTMLHelper::renderContactList($AppUI, $contacts);
    echo '</td></tr>';
}
?>
                <tr>