if ($onlymine == 'true') {
    $mine_selected = 'selected';
    $all_selected = '';
} else {
    $mine_selected = '';
    $all_selected = 'selected';
}
echo '<aside class="right-side">';
echo '<section class="content-header" style="box-shadow:none;"><div class="row-pad">';
echo '<div class="col-sm-11"><b style="font-size:20px;">' . getTranslatedString("LBL_NOTES_INFORMATION") . '</b></div>';
$allow_all = $client->call('show_all', array('Documents'), $Server_Path, $Server_Path);
if ($allow_all == 'true') {
    echo '<div class="col-sm-1 search-form"><div class="btn-group">
      			<button type="button" class="btn btn-default dropdown-toggle document_owner_btn" data-toggle="dropdown">
	 				' . getTranslatedString('SHOW') . '<span class="caret"></span>
	 			</button>
	 			<ul class="dropdown-menu document_owner">
 				<li><a href="#">' . getTranslatedString('MINE') . '</a></li>
				<li><a href="#">' . getTranslatedString('ALL') . '</a></li>
				</ul>
			</div></div></div><section>';
}
echo '<section class="content"><div class="row">';
echo '<div class="col-xs-12">';
echo '<div class="box-body table-responsive no-padding"><table class="table table-hover">';
if ($customerid != '') {
    $block = "Documents";
    $params = array('id' => "{$customerid}", 'block' => "{$block}", 'sessionid' => $sessionid, 'onlymine' => $onlymine);
    $result = $client->call('get_list_values', $params, $Server_Path, $Server_Path);
    echo getblock_fieldlistview($result, $block);
}
Exemple #2
0
    echo '<tr><td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="5">';
    echo getblock_fieldlistview($result, "{$projecttaskblock}");
    echo '</table></td></tr>';
    echo '<tr><td colspan="4">&nbsp;</td></tr>';
    $projectmilestoneblock = 'ProjectMilestone';
    $params = array('id' => "{$projectid}", 'block' => "{$projectmilestoneblock}", 'contactid' => $customerid, 'sessionid' => "{$sessionid}");
    $result = $client->call('get_project_components', $params, $Server_Path, $Server_Path);
    echo '<tr><td class="detailedViewHeader" colspan="4"><b>' . getTranslatedString('LBL_PROJECT_MILESTONES') . '</b></td></tr>';
    echo '<tr><td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="5">';
    echo getblock_fieldlistview($result, "{$projectmilestoneblock}");
    echo '</table></td></tr>';
    echo '<tr><td colspan="4">&nbsp;</td></tr>';
    $projectticketsblock = 'HelpDesk';
    $params = array('id' => "{$projectid}", 'block' => "{$projectticketsblock}", 'contactid' => $customerid, 'sessionid' => "{$sessionid}");
    $result = $client->call('get_project_tickets', $params, $Server_Path, $Server_Path);
    echo '<tr><td class="detailedViewHeader" colspan="4"><b>' . getTranslatedString('LBL_PROJECT_TICKETS') . '</b></td></tr>';
    echo '<tr><td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="5">';
    echo getblock_fieldlistview($result, "{$projectticketsblock}");
    echo '</table></td></tr>';
    echo '<tr><td colspan="4">&nbsp;</td></tr>';
    $projectdocumentsblock = 'Documents';
    $params = array('id' => "{$projectid}", 'block' => "{$projectdocumentsblock}", 'contactid' => $customerid, 'sessionid' => "{$sessionid}");
    $result = $client->call('get_documents', $params, $Server_Path, $Server_Path);
    echo '<tr><td class="detailedViewHeader" colspan="4"><b>' . getTranslatedString('LBL_PROJECT_DOCUMENTS') . '</b></td></tr>';
    echo '<tr><td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="5">';
    echo getblock_fieldlistview($result, "{$projectdocumentsblock}");
    echo '</table></td></tr>';
    echo '</table></td></tr>';
    echo '</table></td></tr></table></td></tr></table>';
    echo '<!-- --End--  -->';
}
			<div class="col-sm-2 search-form"><div class="input-group-btn">
			<input class="btn btn-primary btn-flat" type="button" value="' . getTranslatedString('LBL_RAISE_TICKET_BUTTON') . '" onclick="location.href=\'index.php?module=HelpDesk&action=index&fun=newticket&projectid=' . $projectid . '\'"/></td>
			</div></div></div></section>';
    echo getblock_fieldlist($projectinfo);
    $projecttaskblock = 'ProjectTask';
    $params = array('id' => "{$projectid}", 'block' => "{$projecttaskblock}", 'contactid' => $customerid, 'sessionid' => "{$sessionid}");
    $result = $client->call('get_project_components', $params, $Server_Path, $Server_Path);
    echo '<tr><td class="detailedViewHeader" colspan="4"><b>' . getTranslatedString('LBL_PROJECT_TASKS') . '</b></td></tr>';
    echo '<tr><td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="5">';
    echo getblock_fieldlistview($result, "{$projecttaskblock}");
    echo '</table></td></tr>';
    echo '<tr><td colspan="4">&nbsp;</td></tr>';
    $projectmilestoneblock = 'ProjectMilestone';
    $params = array('id' => "{$projectid}", 'block' => "{$projectmilestoneblock}", 'contactid' => $customerid, 'sessionid' => "{$sessionid}");
    $result = $client->call('get_project_components', $params, $Server_Path, $Server_Path);
    echo '<tr><td class="detailedViewHeader" colspan="4"><b>' . getTranslatedString('LBL_PROJECT_MILESTONES') . '</b></td></tr>';
    echo '<tr><td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="5">';
    echo getblock_fieldlistview($result, "{$projectmilestoneblock}");
    echo '</table></td></tr>';
    echo '<tr><td colspan="4">&nbsp;</td></tr>';
    $projectticketsblock = 'HelpDesk';
    $params = array('id' => "{$projectid}", 'block' => "{$projectticketsblock}", 'contactid' => $customerid, 'sessionid' => "{$sessionid}");
    $result = $client->call('get_project_tickets', $params, $Server_Path, $Server_Path);
    echo '<tr><td class="detailedViewHeader" colspan="4"><b>' . getTranslatedString('LBL_PROJECT_TICKETS') . '</b></td></tr>';
    echo '<tr><td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="5">';
    echo getblock_fieldlistview($result, "{$projectticketsblock}");
    echo '</table></td></tr>';
    echo '</table></td></tr>';
    echo '</table></td></tr></table></td></tr></table>';
    echo '<!-- --End--  -->';
}
Exemple #4
0
							' . $comments_array[$j];
            if ($createdtime_array[$j] != "0000-00-00 00:00:00") {
                $list .= '<br><span class="hdr">' . getTranslatedString('LBL_ADDED_ON') . $createdtime_array[$j] . '</span>';
            }
            $list .= '</div></div></div>';
        }
        $list .= '</div></div></div></div>';
        $list .= '<div class = "widget-box">';
        $list .= '<div class = "widget-header"><h5 class = "widget-title">' . getTranslatedString('LBL_DOCUMENTS') . '</h5></div>';
        $list .= '<div class = "widget-body">
					<div class="widget-main no-padding single-entity-view">
						<div style="width:auto;padding:12px;display:block;" id="tblLeadInformation">';
        $module = 'Documents';
        $params = array('id' => "{$faqid}", 'module' => "{$module}", 'contactid' => "{$customerid}", 'sessionid' => "{$sessionid}");
        $result = $client->call('get_documents', $params, $Server_Path, $Server_Path);
        $list .= getblock_fieldlistview($result, $module);
        $list .= '</div></div></div></div>';
        $list .= '<form name="comments" method="POST" action="index.php">
				<input type="hidden" name="module">
				<input type="hidden" name="action">
				<input type="hidden" name="fun">
				<input type=hidden name=faqid value="' . $faqid . '">
			   	<div class = "widget-box">';
        $list .= '<div class = "widget-header"><h5 class = "widget-title">' . getTranslatedString('LBL_ADD_COMMENT') . '</h5></div>
				<div class = "widget-body">
					<div class="widget-main no-padding single-entity-view">
						<div style="width:auto;padding:12px;display:block;" id="tblLeadInformation">
							<div class="row">
								<div class="form-group col-sm-12">
									<textarea name="comments" style = "width:100%;">&nbsp;</textarea>
								</div>