$result = $client->call('get_details', $params, $Server_Path, $Server_Path); // Check for Authorization if (count($result) == 1 && $result[0] == "#NOT AUTHORIZED#") { echo '<aside class="right-side">'; echo '<section class="content-header" style="box-shadow:none;"><div class="alert"><b>' . getTranslatedString('LBL_NOT_AUTHORISED') . '</b></div></section></aside>'; die; } $projectinfo = $result[0][$block]; echo '<aside class="right-side">'; echo '<section class="content-header" style="box-shadow:none;"><div class="row-pad"> <div class="col-sm-10"> <input class="btn btn-primary btn-flat" type="button" value="' . getTranslatedString('LBL_BACK_BUTTON') . '" onclick="window.history.back();"/></div> <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"> </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>';
* ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. * ********************************************************************************/ global $result; global $client; global $Server_Path; $customerid = $_SESSION['customer_id']; $sessionid = $_SESSION['customer_sessionid']; if ($serviceid != '') { $params = array('id' => "{$serviceid}", 'block' => "{$block}", 'contactid' => $customerid, 'sessionid' => "{$sessionid}"); $result = $client->call('get_details', $params, $Server_Path, $Server_Path); // Check for Authorization if (count($result) == 1 && $result[0] == "#NOT AUTHORIZED#") { echo '<tr> <td colspan="6" align="center"><b>' . getTranslatedString('LBL_NOT_AUTHORISED') . '</b></td> </tr></table></td></tr></table></td></tr></table>'; die; } $serviceinfo = $result[0][$block]; echo '<table><tr><td><input class="crmbutton small cancel" type="button" value="' . getTranslatedString('LBL_BACK_BUTTON') . '" onclick="window.history.back();"/></td></tr></table>'; echo getblock_fieldlist($serviceinfo); echo '</table></td></tr>'; echo '</table></td></tr></table></td></tr></table>'; echo '<!-- --End-- -->'; } else { print_r("no quote"); }
* The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. * ********************************************************************************/ global $result; global $client; global $Server_Path; $customerid = $_SESSION['customer_id']; $sessionid = $_SESSION['customer_sessionid']; if ($accountid != '') { $params = array('id' => "{$accountid}", 'block' => "{$block}", 'contactid' => $customerid, 'sessionid' => "{$sessionid}"); $result = $client->call('get_details', $params, $Server_Path, $Server_Path); // Check for Authorization if (count($result) == 1 && $result[0] == "#NOT AUTHORIZED#") { echo '<aside class="right-side">'; echo '<section class="content-header" style="box-shadow:none;"><div class="alert"><b>' . getTranslatedString('LBL_NOT_AUTHORISED') . '</b></div></section></aside>'; include "footer.html"; die; } $noteinfo = $result[0][$block]; echo '<aside class="right-side">'; echo '<section class="content-header" style="box-shadow:none;"> <div class="row-pad"><div class="col-sm-10"> <input class="btn btn-primary btn-flat" type="button" value="' . getTranslatedString('LBL_BACK_BUTTON') . '" onclick="window.history.back();"/> </div></div></section>'; echo getblock_fieldlist($noteinfo); echo '</table></td></tr>'; echo '</table></td></tr></table></td></tr></table>'; echo '<!-- --End-- -->'; }
* The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. * ********************************************************************************/ global $result; global $client; global $Server_Path; $customerid = $_SESSION['customer_id']; $sessionid = $_SESSION['customer_sessionid']; if ($assetid != '') { $params = array('id' => "{$assetid}", 'block' => "{$block}", 'contactid' => $customerid, 'sessionid' => "{$sessionid}"); $result = $client->call('get_details', $params, $Server_Path, $Server_Path); // Check for Authorization if (count($result) == 1 && $result[0] == "#NOT AUTHORIZED#") { echo '<aside class="right-side">'; echo '<section class="content-header" style="box-shadow:none;"><div class="alert"><b>' . getTranslatedString('LBL_NOT_AUTHORISED') . '</b></div></section></aside>'; include "footer.html"; die; } $assetinfo = $result[0][$block]; echo '<aside class="right-side">'; echo '<section class="content-header" style="box-shadow:none;"> <div class="row-pad"><div class="col-sm-10"> <input class="btn btn-primary btn-flat" type="button" value="' . getTranslatedString('LBL_BACK_BUTTON') . '" onclick="window.history.back();"/> </div></div></section>'; echo getblock_fieldlist($assetinfo); echo '</table></td></tr>'; echo '</table></td></tr></table></td></tr></table>'; echo '<!-- --End-- -->'; }
foreach ($ticketinfo as $key => $value) { $fieldlabel = $value['fieldlabel']; $fieldvalue = $value['fieldvalue']; if ($fieldlabel == 'Status') { $ticket_status = $fieldvalue; break; } } //If the ticket is created by this customer and status is not Closed then allow him to Close this ticket otherwise not if ($ticket_status != 'Closed' && $ticket_status != '') { $ticket_close_link = '<a href=index.php?module=HelpDesk&action=index&fun=close_ticket&ticketid=' . $ticketid . '><b>' . getTranslatedString('LBL_CLOSE_TICKET') . '</b></a> '; } else { $ticket_close_link = ''; } echo getblock_header('Ticket Information', '4', $ticket_close_link); echo getblock_fieldlist($ticketinfo); if ($commentscount >= 1 && is_array($commentresult)) { $list .= ' <tr><td colspan="5" class="detailedViewHeader"><b>' . getTranslatedString('LBL_TICKET_COMMENTS') . '</b></td></tr> <tr> <td colspan="4" class="dvtCellInfo"> <div id="scrollTab2"> <table width="100%" border="0" cellspacing="5" cellpadding="5">'; //Form the comments in between tr tags for ($j = 0; $j < $commentscount; $j++) { $list .= ' <tr> <td width="5%" valign="top">' . ($commentscount - $j) . '</td> <td width="95%">' . $commentresult[$j]['comments'] . '<br><span class="hdr">' . getTranslatedString('LBL_COMMENT_BY') . ' : ' . $commentresult[$j]['owner'] . ' ' . getTranslatedString('LBL_ON') . ' ' . $commentresult[$j]['createdtime'] . '</span></td> </tr>'; }
global $result; global $client; global $Server_Path; echo '<!--Get Invoice Details Information -->'; $customerid = $_SESSION['customer_id']; $sessionid = $_SESSION['customer_sessionid']; if ($id != '') { //Get the Basic Information $block = "Invoice"; $params = array('id' => "{$id}", 'block' => "{$block}", 'contactid' => "{$customerid}", 'sessionid' => "{$sessionid}"); $result = $client->call('get_invoice_detail', $params, $Server_Path, $Server_Path); // Check for Authorization if (count($result) == 1 && $result[0] == "#NOT AUTHORIZED#") { echo '<aside class="right-side">'; echo '<section class="content-header" style="box-shadow:none;"><div class="alert"><b>' . getTranslatedString('LBL_NOT_AUTHORISED') . '</b></div></section></aside>'; include "footer.html"; die; } $invinfo = $result[0][$block]; echo '<aside class="right-side">'; echo '<section class="content-header" style="box-shadow:none;"> <div class="row-pad"><div class="col-sm-10"> <input class="btn btn-primary btn-flat" type="button" value="' . getTranslatedString('LBL_BACK_BUTTON') . '" onclick="window.history.back();"/> </div></div> </section>'; echo getblock_fieldlist($invinfo); echo '<tr><td colspan ="4"><table width="100%">'; echo '</table></td></tr>'; echo '</table></td></tr></table></td></tr></table>'; echo '<!-- --End-- -->'; }