@@ -1,1 +1,1 @@ |
||
| 1 | -<?php require 'core/init.php'; $general->logged_out_protect(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <title>Helpdesk System</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="css/style.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"> <link rel="icon" href="images/favicon.ico" type="image/x-icon"> </head> <frameset name="mainfs" rows="85,*" frameborder="0" border="0" framespacing="0"> <frame src="header.php" name="topFrame" scrolling="NO" noresize /> <frameset name="contentfs" cols="200,*" frameborder="0" border="0" framespacing="0"> <frame src="navigator.php" name="leftFrame" scrolling="NO" noresize /> <frame src="content.php" name="contentFrame" /> </frameset> </frameset><noframes></noframes> <body> </body> </html> |
|
| 2 | 1 | \ No newline at end of file |
| 2 | +<?php require 'core/init.php'; $general->logged_out_protect(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <title>Helpdesk System</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="css/style.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"> <link rel="icon" href="images/favicon.ico" type="image/x-icon"> </head> <frameset name="mainfs" rows="85,*" frameborder="0" border="0" framespacing="0"> <frame src="header.php" name="topFrame" scrolling="NO" noresize /> <frameset name="contentfs" cols="200,*" frameborder="0" border="0" framespacing="0"> <frame src="navigator.php" name="leftFrame" scrolling="NO" noresize /> <frame src="content.php" name="contentFrame" /> </frameset> </frameset><noframes></noframes> <body> </body> </html> |
|
| 3 | 3 | \ No newline at end of file |
@@ -12,21 +12,21 @@ |
||
| 12 | 12 | $contractstartdate = date('d-M-Y', $project['contractstartdate']); |
| 13 | 13 | $contractenddate = date('d-M-Y', strtotime($contractstartdate.' + '.$contractperiod.' months')); |
| 14 | 14 | if ($warrantyperiod == '') { |
| 15 | - $warrantyperiod = 0; |
|
| 16 | - $warrantystartdate = 0; |
|
| 17 | - $warrantyenddate = 0; |
|
| 15 | + $warrantyperiod = 0; |
|
| 16 | + $warrantystartdate = 0; |
|
| 17 | + $warrantyenddate = 0; |
|
| 18 | 18 | } |
| 19 | 19 | if ($contractperiod == '') { |
| 20 | - $contractperiod = 0; |
|
| 21 | - $contractstartdate = 0; |
|
| 22 | - $contractenddate = 0; |
|
| 20 | + $contractperiod = 0; |
|
| 21 | + $contractstartdate = 0; |
|
| 22 | + $contractenddate = 0; |
|
| 23 | 23 | } |
| 24 | 24 | $data_customer = ['customerproduct'=> $customer['customerproduct'], |
| 25 | - 'warrantyperiod' => $warrantyperiod, |
|
| 26 | - 'warrantystartdate' => $warrantystartdate, |
|
| 27 | - 'warrantyenddate' => $warrantyenddate, |
|
| 28 | - 'contractperiod' => $contractperiod, |
|
| 29 | - 'contractstartdate' => $contractstartdate, |
|
| 30 | - 'contractenddate' => $contractenddate, |
|
| 25 | + 'warrantyperiod' => $warrantyperiod, |
|
| 26 | + 'warrantystartdate' => $warrantystartdate, |
|
| 27 | + 'warrantyenddate' => $warrantyenddate, |
|
| 28 | + 'contractperiod' => $contractperiod, |
|
| 29 | + 'contractstartdate' => $contractstartdate, |
|
| 30 | + 'contractenddate' => $contractenddate, |
|
| 31 | 31 | ]; |
| 32 | 32 | echo json_encode($data_customer); |
@@ -29,15 +29,15 @@ |
||
| 29 | 29 | </ul> |
| 30 | 30 | </div> |
| 31 | 31 | <?php |
| 32 | - if ($user['level'] == 'Manager' || $user['level'] == 'Admin') { |
|
| 33 | - echo '<div id="leftmenu"> |
|
| 32 | + if ($user['level'] == 'Manager' || $user['level'] == 'Admin') { |
|
| 33 | + echo '<div id="leftmenu"> |
|
| 34 | 34 | <div id="headleftmenu">Helpdesk Statistic</div> |
| 35 | 35 | <ul> |
| 36 | 36 | <li><a href="pivot/hdpivot.php" target="contentFrame">Pivot Table</a></li> |
| 37 | 37 | <li><a href="statistic/chart.php" target="contentFrame">SLA Chart</a></li> |
| 38 | 38 | </ul> |
| 39 | 39 | </div>'; |
| 40 | - } |
|
| 40 | + } |
|
| 41 | 41 | ?> |
| 42 | 42 | </body> |
| 43 | 43 | </html> |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | <ul> |
| 17 | 17 | <?php if ($user['level'] == 'User'):?> |
| 18 | 18 | <li><a href="myticketbyrequester.php" target="contentFrame">My Request</a></li> |
| 19 | - <?php endif;?> |
|
| 19 | + <?php endif; ?> |
|
| 20 | 20 | <li><a href="myticketbyassignee.php" target="contentFrame">My Assignment</a></li> |
| 21 | 21 | <li><a href="myticketbyresolver.php" target="contentFrame">My Resolution</a></li> |
| 22 | 22 | <li><a href="myticketwaitforclosed.php" target="contentFrame">Waiting for Close</a></li> |
@@ -3,17 +3,17 @@ discard block |
||
| 3 | 3 | $general->logged_out_protect(); |
| 4 | 4 | $user = $users->userdata($_SESSION['loginid']); |
| 5 | 5 | if ($user['level'] != 'Admin') { |
| 6 | - exit("You don't have permission to access this page!"); |
|
| 6 | + exit("You don't have permission to access this page!"); |
|
| 7 | 7 | } |
| 8 | 8 | $slaid = $_GET['id']; |
| 9 | 9 | $sla = $slas->sla_data($slaid); |
| 10 | 10 | if (isset($_POST['submit'])) { |
| 11 | - $namasla = $_POST['namasla']; |
|
| 12 | - $responsetime = $_POST['responsetime']; |
|
| 13 | - $resolutiontime = $_POST['resolutiontime']; |
|
| 14 | - $slawarning = $_POST['slawarning']; |
|
| 15 | - $slas->update_sla($slaid, $namasla, $responsetime, $resolutiontime, $slawarning); |
|
| 16 | - header('location:slalist.php'); |
|
| 11 | + $namasla = $_POST['namasla']; |
|
| 12 | + $responsetime = $_POST['responsetime']; |
|
| 13 | + $resolutiontime = $_POST['resolutiontime']; |
|
| 14 | + $slawarning = $_POST['slawarning']; |
|
| 15 | + $slas->update_sla($slaid, $namasla, $responsetime, $resolutiontime, $slawarning); |
|
| 16 | + header('location:slalist.php'); |
|
| 17 | 17 | } |
| 18 | 18 | ?> |
| 19 | 19 | <!DOCTYPE HTML> |
@@ -92,9 +92,9 @@ discard block |
||
| 92 | 92 | </fieldset> |
| 93 | 93 | </form> |
| 94 | 94 | <?php |
| 95 | - if (empty($errors) === false) { |
|
| 96 | - echo '<p class=errormsg>'.implode('</p><p class=errormsg>', $errors).'</p>'; |
|
| 97 | - } |
|
| 98 | - ?> |
|
| 95 | + if (empty($errors) === false) { |
|
| 96 | + echo '<p class=errormsg>'.implode('</p><p class=errormsg>', $errors).'</p>'; |
|
| 97 | + } |
|
| 98 | + ?> |
|
| 99 | 99 | </body> |
| 100 | 100 | </html> |
| 101 | 101 | \ No newline at end of file |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | $general->logged_out_protect(); |
| 4 | 4 | $user = $users->userdata($_SESSION['loginid']); |
| 5 | 5 | if ($user['level'] != 'Admin') { |
| 6 | - exit("You don't have permission to access this page!"); |
|
| 6 | + exit("You don't have permission to access this page!"); |
|
| 7 | 7 | } |
| 8 | 8 | $members = $users->get_users(); |
| 9 | 9 | $member_count = count($members); |
@@ -61,22 +61,22 @@ discard block |
||
| 61 | 61 | </thead> |
| 62 | 62 | <tbody> |
| 63 | 63 | <?php |
| 64 | - foreach ($members as $member) { |
|
| 65 | - if ($member['confirmed'] == '1') { |
|
| 66 | - $locked = 'No'; |
|
| 67 | - } else { |
|
| 68 | - $locked = 'Yes'; |
|
| 69 | - } |
|
| 70 | - echo '<tr><td><a href=useredit.php?id='.$member['id'].'>'.$member['username'].'</a></td>'. |
|
| 71 | - '<td>'.$member['level'].'</td>'. |
|
| 72 | - '<td>'.$member['fullname'].'</td>'. |
|
| 73 | - '<td>'.$member['email'].'</td>'. |
|
| 74 | - '<td>'.$member['Telp'].'</td>'. |
|
| 75 | - '<td>'.date('d-M-Y H:i', $member['time']).'</td>'. |
|
| 76 | - '<td>'.$locked.'</td>'. |
|
| 77 | - '<td><a href=userdel.php?id='.$member['id'].' onclick="return delete_confirm();">del</a></td></tr>'; |
|
| 78 | - } |
|
| 79 | - ?> |
|
| 64 | + foreach ($members as $member) { |
|
| 65 | + if ($member['confirmed'] == '1') { |
|
| 66 | + $locked = 'No'; |
|
| 67 | + } else { |
|
| 68 | + $locked = 'Yes'; |
|
| 69 | + } |
|
| 70 | + echo '<tr><td><a href=useredit.php?id='.$member['id'].'>'.$member['username'].'</a></td>'. |
|
| 71 | + '<td>'.$member['level'].'</td>'. |
|
| 72 | + '<td>'.$member['fullname'].'</td>'. |
|
| 73 | + '<td>'.$member['email'].'</td>'. |
|
| 74 | + '<td>'.$member['Telp'].'</td>'. |
|
| 75 | + '<td>'.date('d-M-Y H:i', $member['time']).'</td>'. |
|
| 76 | + '<td>'.$locked.'</td>'. |
|
| 77 | + '<td><a href=userdel.php?id='.$member['id'].' onclick="return delete_confirm();">del</a></td></tr>'; |
|
| 78 | + } |
|
| 79 | + ?> |
|
| 80 | 80 | </tbody> |
| 81 | 81 | </table> |
| 82 | 82 | <p> </p> |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | foreach ($members as $member) { |
| 65 | 65 | if ($member['confirmed'] == '1') { |
| 66 | 66 | $locked = 'No'; |
| 67 | - } else { |
|
| 67 | + }else { |
|
| 68 | 68 | $locked = 'Yes'; |
| 69 | 69 | } |
| 70 | 70 | echo '<tr><td><a href=useredit.php?id='.$member['id'].'>'.$member['username'].'</a></td>'. |
@@ -51,20 +51,20 @@ |
||
| 51 | 51 | </thead> |
| 52 | 52 | <tbody> |
| 53 | 53 | <?php |
| 54 | - foreach ($tickets as $ticket) { |
|
| 55 | - $sla = $slas->sla_data($ticket['sla']); |
|
| 56 | - $customer = $customers->customer_data($ticket['idcustomer']); |
|
| 57 | - $user = $users->userdata($ticket['assignee']); |
|
| 58 | - echo '<tr><td><a href=ticketedit.php?id='.$ticket['id'].'>'.$ticket['ticketnumber'].'</a></td>'. |
|
| 59 | - '<td>'.$sla['namasla'].'</td>'. |
|
| 60 | - '<td>'.$customer['namacustomer'].'</td>'. |
|
| 61 | - '<td>'.date('d-M-Y', $ticket['reporteddate']).'</td>'. |
|
| 62 | - '<td>'.$ticket['reportedby'].'</td>'. |
|
| 63 | - '<td>'.$ticket['problemsummary'].'</td>'. |
|
| 64 | - '<td>'.$ticket['ticketstatus'].'</td>'. |
|
| 65 | - '<td>'.$user['fullname'].'</td></tr>'; |
|
| 66 | - } |
|
| 67 | - ?> |
|
| 54 | + foreach ($tickets as $ticket) { |
|
| 55 | + $sla = $slas->sla_data($ticket['sla']); |
|
| 56 | + $customer = $customers->customer_data($ticket['idcustomer']); |
|
| 57 | + $user = $users->userdata($ticket['assignee']); |
|
| 58 | + echo '<tr><td><a href=ticketedit.php?id='.$ticket['id'].'>'.$ticket['ticketnumber'].'</a></td>'. |
|
| 59 | + '<td>'.$sla['namasla'].'</td>'. |
|
| 60 | + '<td>'.$customer['namacustomer'].'</td>'. |
|
| 61 | + '<td>'.date('d-M-Y', $ticket['reporteddate']).'</td>'. |
|
| 62 | + '<td>'.$ticket['reportedby'].'</td>'. |
|
| 63 | + '<td>'.$ticket['problemsummary'].'</td>'. |
|
| 64 | + '<td>'.$ticket['ticketstatus'].'</td>'. |
|
| 65 | + '<td>'.$user['fullname'].'</td></tr>'; |
|
| 66 | + } |
|
| 67 | + ?> |
|
| 68 | 68 | </tbody> |
| 69 | 69 | </table> |
| 70 | 70 | <p> </p> |
@@ -4,12 +4,12 @@ discard block |
||
| 4 | 4 | $general->logged_out_protect(); |
| 5 | 5 | $user = $users->userdata($_SESSION['loginid']); |
| 6 | 6 | if ($user['level'] == 'Admin' || $user['level'] == 'Manager') { |
| 7 | - $akses = true; |
|
| 7 | + $akses = true; |
|
| 8 | 8 | } else { |
| 9 | - $akses = false; |
|
| 9 | + $akses = false; |
|
| 10 | 10 | } |
| 11 | 11 | if ($akses = false) { |
| 12 | - exit("You don't have permission to access this page!"); |
|
| 12 | + exit("You don't have permission to access this page!"); |
|
| 13 | 13 | } |
| 14 | 14 | $tickets = $tickets->get_opened_tickets(); |
| 15 | 15 | $tickets_count = count($tickets); |
@@ -64,36 +64,36 @@ discard block |
||
| 64 | 64 | </thead> |
| 65 | 65 | <tbody> |
| 66 | 66 | <?php |
| 67 | - $currenttime = time(); |
|
| 68 | - foreach ($tickets as $ticket) { |
|
| 69 | - $sla = $slas->sla_data($ticket['sla']); |
|
| 70 | - $documenteddate = $ticket['documenteddate']; |
|
| 71 | - $resolutiontime = $sla['resolutiontime']; |
|
| 72 | - $slawarning = $sla['slawarning']; |
|
| 73 | - $slagoaltime = strtotime("+$resolutiontime hours", $documenteddate); |
|
| 74 | - $slawarningtime = strtotime("+$slawarning hours", $documenteddate); |
|
| 75 | - if ($currenttime > $slagoaltime) { |
|
| 76 | - $slabgcolor = '#FF0000'; |
|
| 77 | - $slatxtcolor = '#ffffff'; |
|
| 78 | - } elseif ($currenttime >= $slawarningtime) { |
|
| 79 | - $slabgcolor = '#FFFF00'; |
|
| 80 | - $slatxtcolor = '#000000'; |
|
| 81 | - } else { |
|
| 82 | - $slabgcolor = '#00FF00'; |
|
| 83 | - $slatxtcolor = '#000000'; |
|
| 84 | - } |
|
| 85 | - $customer = $customers->customer_data($ticket['idcustomer']); |
|
| 86 | - $user = $users->userdata($ticket['assignee']); |
|
| 87 | - echo '<tr><td><a href=ticketedituser.php?id='.$ticket['id'].'>'.$ticket['ticketnumber'].'</a></td>'. |
|
| 88 | - '<td style="background-color:'.$slabgcolor.';color:'.$slatxtcolor.';">'.$sla['namasla'].'</td>'. |
|
| 89 | - '<td>'.$customer['namacustomer'].'</td>'. |
|
| 90 | - '<td>'.date('d-M-Y H:i', $ticket['reporteddate']).'</td>'. |
|
| 91 | - '<td>'.$ticket['reportedby'].'</td>'. |
|
| 92 | - '<td>'.$ticket['problemsummary'].'</td>'. |
|
| 93 | - '<td>'.$ticket['ticketstatus'].'</td>'. |
|
| 94 | - '<td>'.$user['fullname'].'</td></tr>'; |
|
| 95 | - } |
|
| 96 | - ?> |
|
| 67 | + $currenttime = time(); |
|
| 68 | + foreach ($tickets as $ticket) { |
|
| 69 | + $sla = $slas->sla_data($ticket['sla']); |
|
| 70 | + $documenteddate = $ticket['documenteddate']; |
|
| 71 | + $resolutiontime = $sla['resolutiontime']; |
|
| 72 | + $slawarning = $sla['slawarning']; |
|
| 73 | + $slagoaltime = strtotime("+$resolutiontime hours", $documenteddate); |
|
| 74 | + $slawarningtime = strtotime("+$slawarning hours", $documenteddate); |
|
| 75 | + if ($currenttime > $slagoaltime) { |
|
| 76 | + $slabgcolor = '#FF0000'; |
|
| 77 | + $slatxtcolor = '#ffffff'; |
|
| 78 | + } elseif ($currenttime >= $slawarningtime) { |
|
| 79 | + $slabgcolor = '#FFFF00'; |
|
| 80 | + $slatxtcolor = '#000000'; |
|
| 81 | + } else { |
|
| 82 | + $slabgcolor = '#00FF00'; |
|
| 83 | + $slatxtcolor = '#000000'; |
|
| 84 | + } |
|
| 85 | + $customer = $customers->customer_data($ticket['idcustomer']); |
|
| 86 | + $user = $users->userdata($ticket['assignee']); |
|
| 87 | + echo '<tr><td><a href=ticketedituser.php?id='.$ticket['id'].'>'.$ticket['ticketnumber'].'</a></td>'. |
|
| 88 | + '<td style="background-color:'.$slabgcolor.';color:'.$slatxtcolor.';">'.$sla['namasla'].'</td>'. |
|
| 89 | + '<td>'.$customer['namacustomer'].'</td>'. |
|
| 90 | + '<td>'.date('d-M-Y H:i', $ticket['reporteddate']).'</td>'. |
|
| 91 | + '<td>'.$ticket['reportedby'].'</td>'. |
|
| 92 | + '<td>'.$ticket['problemsummary'].'</td>'. |
|
| 93 | + '<td>'.$ticket['ticketstatus'].'</td>'. |
|
| 94 | + '<td>'.$user['fullname'].'</td></tr>'; |
|
| 95 | + } |
|
| 96 | + ?> |
|
| 97 | 97 | </tbody> |
| 98 | 98 | </table> |
| 99 | 99 | </body> |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | $user = $users->userdata($_SESSION['loginid']); |
| 6 | 6 | if ($user['level'] == 'Admin' || $user['level'] == 'Manager') { |
| 7 | 7 | $akses = true; |
| 8 | -} else { |
|
| 8 | +}else { |
|
| 9 | 9 | $akses = false; |
| 10 | 10 | } |
| 11 | 11 | if ($akses = false) { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } elseif ($currenttime >= $slawarningtime) { |
| 79 | 79 | $slabgcolor = '#FFFF00'; |
| 80 | 80 | $slatxtcolor = '#000000'; |
| 81 | - } else { |
|
| 81 | + }else { |
|
| 82 | 82 | $slabgcolor = '#00FF00'; |
| 83 | 83 | $slatxtcolor = '#000000'; |
| 84 | 84 | } |
@@ -4,16 +4,16 @@ discard block |
||
| 4 | 4 | $user = $users->userdata($_SESSION['loginid']); |
| 5 | 5 | $userid = $user['id']; |
| 6 | 6 | if (isset($_POST['submit'])) { |
| 7 | - $oldpassword = sha1($_POST['oldpassword']); |
|
| 8 | - $userpassword = $user['password']; |
|
| 9 | - if ($oldpassword != $userpassword) { |
|
| 10 | - $errors[] = 'The old password does not match!'; |
|
| 11 | - } else { |
|
| 12 | - $newpassword1 = $_POST['newpassword1']; |
|
| 13 | - $users->changepwd($userid, $newpassword1); |
|
| 14 | - $users->log_users($_SESSION['loginid'], 'Change the old password'); |
|
| 15 | - header('Location: changepwd.php?success'); |
|
| 16 | - } |
|
| 7 | + $oldpassword = sha1($_POST['oldpassword']); |
|
| 8 | + $userpassword = $user['password']; |
|
| 9 | + if ($oldpassword != $userpassword) { |
|
| 10 | + $errors[] = 'The old password does not match!'; |
|
| 11 | + } else { |
|
| 12 | + $newpassword1 = $_POST['newpassword1']; |
|
| 13 | + $users->changepwd($userid, $newpassword1); |
|
| 14 | + $users->log_users($_SESSION['loginid'], 'Change the old password'); |
|
| 15 | + header('Location: changepwd.php?success'); |
|
| 16 | + } |
|
| 17 | 17 | } |
| 18 | 18 | ?> |
| 19 | 19 | <!DOCTYPE HTML> |
@@ -73,12 +73,12 @@ discard block |
||
| 73 | 73 | </form> |
| 74 | 74 | <br/> |
| 75 | 75 | <?php |
| 76 | - if (empty($errors) === false) { |
|
| 77 | - echo '<p class=errormsg>'.implode('</p><p class=errormsg>', $errors).'</p>'; |
|
| 78 | - } |
|
| 79 | - if (isset($_GET['success']) && empty($_GET['success'])) { |
|
| 80 | - echo 'Your password has been changed. Please logout and relogin with the new password.'; |
|
| 81 | - } |
|
| 82 | - ?> |
|
| 76 | + if (empty($errors) === false) { |
|
| 77 | + echo '<p class=errormsg>'.implode('</p><p class=errormsg>', $errors).'</p>'; |
|
| 78 | + } |
|
| 79 | + if (isset($_GET['success']) && empty($_GET['success'])) { |
|
| 80 | + echo 'Your password has been changed. Please logout and relogin with the new password.'; |
|
| 81 | + } |
|
| 82 | + ?> |
|
| 83 | 83 | </body> |
| 84 | 84 | </html> |
| 85 | 85 | \ No newline at end of file |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | $userpassword = $user['password']; |
| 9 | 9 | if ($oldpassword != $userpassword) { |
| 10 | 10 | $errors[] = 'The old password does not match!'; |
| 11 | - } else { |
|
| 11 | + }else { |
|
| 12 | 12 | $newpassword1 = $_POST['newpassword1']; |
| 13 | 13 | $users->changepwd($userid, $newpassword1); |
| 14 | 14 | $users->log_users($_SESSION['loginid'], 'Change the old password'); |
@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | <td width="120"> Customer </td><td> : </td> |
| 30 | 30 | <td> |
| 31 | 31 | // <?php |
| 32 | - // $customer=$customers->customer_data($ticket['idcustomer']); |
|
| 33 | - // echo $customer['namacustomer']; |
|
| 34 | - //?> </td> |
|
| 32 | + // $customer=$customers->customer_data($ticket['idcustomer']); |
|
| 33 | + // echo $customer['namacustomer']; |
|
| 34 | + //?> </td> |
|
| 35 | 35 | // </tr> |
| 36 | 36 | // <tr> |
| 37 | 37 | // <td> Customer Product</td><td> : </td> |
@@ -41,16 +41,16 @@ discard block |
||
| 41 | 41 | // <td> Warranty Period</td><td> : </td> |
| 42 | 42 | // <td> |
| 43 | 43 | // <?php |
| 44 | - // $project=$projects->get_project_customer($customer['idcustomer']); |
|
| 45 | - // echo $project['warrantyperiod'].' Year'; |
|
| 46 | - //?> </td> |
|
| 44 | + // $project=$projects->get_project_customer($customer['idcustomer']); |
|
| 45 | + // echo $project['warrantyperiod'].' Year'; |
|
| 46 | + //?> </td> |
|
| 47 | 47 | // </tr> |
| 48 | 48 | // <tr> |
| 49 | 49 | // <td> Contract Period</td><td> : </td> |
| 50 | 50 | // <td> |
| 51 | 51 | // <?php |
| 52 | - // echo $project['contractperiod'].' Month'; |
|
| 53 | - //?> |
|
| 52 | + // echo $project['contractperiod'].' Month'; |
|
| 53 | + //?> |
|
| 54 | 54 | </td> |
| 55 | 55 | </tr> |
| 56 | 56 | </table> |
@@ -74,9 +74,9 @@ discard block |
||
| 74 | 74 | <td> Urgency (SLA)</td><td> : </td> |
| 75 | 75 | <td> |
| 76 | 76 | <?php |
| 77 | - $sladata = $slas->sla_data($ticket['sla']); |
|
| 78 | - echo $sladata['namasla']; |
|
| 79 | - ?> |
|
| 77 | + $sladata = $slas->sla_data($ticket['sla']); |
|
| 78 | + echo $sladata['namasla']; |
|
| 79 | + ?> |
|
| 80 | 80 | </td> |
| 81 | 81 | </tr> |
| 82 | 82 | <tr> |
@@ -102,9 +102,9 @@ discard block |
||
| 102 | 102 | <td width="120"> Assign to </td><td> : </td> |
| 103 | 103 | <td> |
| 104 | 104 | <?php |
| 105 | - $userassignee = $users->userdata($ticket['assignee']); |
|
| 106 | - echo $userassignee['fullname']; |
|
| 107 | - ?> |
|
| 105 | + $userassignee = $users->userdata($ticket['assignee']); |
|
| 106 | + echo $userassignee['fullname']; |
|
| 107 | + ?> |
|
| 108 | 108 | </td> |
| 109 | 109 | </tr> |
| 110 | 110 | <tr> |
@@ -124,14 +124,14 @@ discard block |
||
| 124 | 124 | <table class="formtable"> |
| 125 | 125 | <tr bgcolor="#e0e0e0" ><td width="150">Updated On</td><td width="150">Updated By</td><td>Description</td></tr> |
| 126 | 126 | <?php |
| 127 | - $list_log_tickets = $tickets->get_audit_trail($id); |
|
| 128 | - foreach ($list_log_tickets as $log_ticket) { |
|
| 129 | - $changed_by = $users->userdata($log_ticket['changeby']); |
|
| 130 | - echo '<tr><td>'.date('d-M-Y H:i:s', $log_ticket['changedate']).'</td>'. |
|
| 131 | - '<td>'.$changed_by['fullname'].'</td>'. |
|
| 132 | - '<td>'.$log_ticket['changes'].'</td></tr>'; |
|
| 133 | - } |
|
| 134 | - ?> |
|
| 127 | + $list_log_tickets = $tickets->get_audit_trail($id); |
|
| 128 | + foreach ($list_log_tickets as $log_ticket) { |
|
| 129 | + $changed_by = $users->userdata($log_ticket['changeby']); |
|
| 130 | + echo '<tr><td>'.date('d-M-Y H:i:s', $log_ticket['changedate']).'</td>'. |
|
| 131 | + '<td>'.$changed_by['fullname'].'</td>'. |
|
| 132 | + '<td>'.$log_ticket['changes'].'</td></tr>'; |
|
| 133 | + } |
|
| 134 | + ?> |
|
| 135 | 135 | </table> |
| 136 | 136 | </fieldset> |
| 137 | 137 | <br/><br/> |