コード例 #1
0
    <div class="contentfull">
        
<?php 
echo '<div class="dottedline"></div>
                    <div class="section20">';
$do_billing_proj = new Project();
$do_adm_task = new Task();
$do_billing_proj_discuss = new ProjectDiscuss();
$do_billing_proj_discuss->report_month = $_SESSION['adm_project_report_discuss']->report_month;
$do_billing_proj_discuss->report_year = $_SESSION['adm_project_report_discuss']->report_year;
$do_billing_proj_discuss->week_start_date = $_SESSION['adm_project_report_discuss']->week_start_date;
$do_billing_proj_discuss->week_end_date = $_SESSION['adm_project_report_discuss']->week_end_date;
$project_name = $do_billing_proj->getProjectName($idproject);
if ($do_billing_proj->isProjectOwner($idproject) || $do_billing_proj->isProjectCoWorker($idproject)) {
    echo '<b><span class="headline_fuscia">Project Name : ' . $project_name . '</span></b>&nbsp;&nbsp;&nbsp;<a href="timesheet.php">back</a><br />';
    $do_billing_proj_discuss->getDistinctTaskForProjectWithDiscussion($idproject, $_SESSION['adm_project_report_discuss']->report_month);
    while ($do_billing_proj_discuss->next()) {
        echo '<div class="contacts" >';
        echo '<div>';
        echo '<b>Task Name :' . $do_adm_task->getTaskDetail($do_billing_proj_discuss->idtask) . '</b>';
        echo '<br />';
        echo '<br />';
        $_SESSION['adm_project_report_discuss']->getMonthlyBillableHoursWithDiscussion($idproject, $do_billing_proj_discuss->idtask);
        $_SESSION['adm_project_report_discuss']->query($_SESSION['adm_project_report_discuss']->getSqlQuery());
        while ($_SESSION['adm_project_report_discuss']->next()) {
            echo '<i>Added By  ' . $_SESSION['do_User']->getFullName($_SESSION['adm_project_report_discuss']->iduser) . ' on :<b> ' . $_SESSION['adm_project_report_discuss']->date_added . '</b> </i>';
            echo '<br />';
            echo '<b><i>Time Worked : ' . $_SESSION['adm_project_report_discuss']->hours_work . ' hrs</i></b>';
            echo '<br />';
            echo nl2br($_SESSION['adm_project_report_discuss']->discuss);
            if ($_SESSION['adm_project_report_discuss']->document != '') {