} ?> </li> <?php } ?> </ul> </div> </div> <div class="col-md-10"> <?php /* This will handle error, success and notice messages */ hesk_handle_messages(); /* Do we need or have any canned responses? */ $can_options = hesk_printCanned(); echo hesk_getAdminButtons(); ?> <div class="blankSpace"></div> <!-- BEGIN TICKET HEAD --> <div class="table-bordered"> <div class="row"> <div class="col-md-12"> <h3> <?php if ($ticket['archive']) { echo '<span class="fa fa-tag"></span> '; } if ($ticket['locked']) { echo '<span class="fa fa-lock"></span> '; }
function hesk_printTicketReplies() { global $hesklang, $hesk_settings, $result, $reply; $i = $hesk_settings['new_top'] ? 0 : 1; if ($reply === false) { return $i; } while ($reply = hesk_dbFetchAssoc($result)) { if ($i) { $color = 'class="ticketrow"'; $i = 0; } else { $color = 'class="ticketalt"'; $i = 1; } $reply['dt'] = hesk_date($reply['dt'], true); ?> <tr> <td <?php echo $color; ?> > <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td valign="top"> <table border="0" cellspacing="1"> <tr> <td><?php echo $hesklang['date']; ?> :</td> <td><?php echo $reply['dt']; ?> </td> </tr> <tr> <td><?php echo $hesklang['name']; ?> :</td> <td><?php echo $reply['name']; ?> </td> </tr> </table> </td> <td style="text-align:right; vertical-align:top;"> <?php echo hesk_getAdminButtons(1, $i); ?> </td> </tr> </table> <p><b><?php echo $hesklang['message']; ?> :</b></p> <p><?php echo $reply['message']; ?> </p> <?php /* Attachments */ hesk_listAttachments($reply['attachments'], $reply['id'], $i); /* Staff rating */ if ($hesk_settings['rating'] && $reply['staffid']) { if ($reply['rating'] == 1) { echo '<p class="rate">' . $hesklang['rnh'] . '</p>'; } elseif ($reply['rating'] == 5) { echo '<p class="rate">' . $hesklang['rh'] . '</p>'; } } /* Show "unread reply" message? */ if ($reply['staffid'] && !$reply['read']) { echo '<p class="rate">' . $hesklang['unread'] . '</p>'; } ?> </td> </tr> <?php } return $i; }
function hesk_printTicketReplies() { global $hesklang, $hesk_settings, $result, $reply; $i = $hesk_settings['new_top'] ? 0 : 1; if ($reply === false) { return $i; } while ($reply = hesk_dbFetchAssoc($result)) { /*if ($i) {$color = 'class="ticketrow"'; $i=0;} else {$color = 'class="ticketalt"'; $i=1;}*/ $reply['dt'] = hesk_date($reply['dt'], true); ?> <div> <div <?php /*echo $color;*/ ?> > <div class="table-printTicketReplies"> <div> <div id="printTicketReplies1"> <div> <div class="form-inline"> <span><?php echo $hesklang['date']; ?> :</span> <span><?php echo $reply['dt']; ?> </span> <span id="printTicketReplies2" style="float:right; vertical-align:top; margin-right: 40px;"> <?php echo hesk_getAdminButtons(1, $i); ?> </span> </div> <div class="form-inline"> <span><?php echo $hesklang['name']; ?> :</span> <span><?php echo $reply['name']; ?> </span> </div> </div> </div> </div> </div><!-- end table-printTicketReplies --> <p><b><?php echo $hesklang['message']; ?> :</b></p> <p><?php echo $reply['message']; ?> </p> <?php /* Attachments */ hesk_listAttachments($reply['attachments'], $reply['id'], $i); /* Staff rating */ if ($hesk_settings['rating'] && $reply['staffid']) { if ($reply['rating'] == 1) { echo '<p class="rate">' . $hesklang['rnh'] . '</p>'; } elseif ($reply['rating'] == 5) { echo '<p class="rate">' . $hesklang['rh'] . '</p>'; } } /* Show "unread reply" message? */ if ($reply['staffid'] && !$reply['read']) { echo '<p class="rate">' . $hesklang['unread'] . '</p>'; } ?> </div> </div> <?php } return $i; }