Location: PHPKode > projects > Maian Support > maian_support/templates/view-ticket.tpl.php
<div id="wrapper">
<script type="text/javascript">
<!--
function checkform() {
  var message = '';
  if (document.getElementById('comments').value=='') {
    message +='- <?php echo $this->JS[0]; ?>';
  }
  if (message) {
    alert(message);
    return false;
  }
}
-->
</script>
  <div id="viewBoxes">
  
    <div id="viewLeft">
     <h2><?php echo $this->MESSAGE[0]; ?></h2>
     
     <p><?php echo $this->TICKET_TEXT; ?></p>
     
     <?php
     // Only show ticket attachments if there are any..
     if ($this->IS_ATTACHMENTS=='yes') {
     ?>
     <p class="attachments">
      <span class="files">
      <?php 
      // Displays attached files for original ticket..
      // templates/html/ticket-attachment.htm
      echo $this->TICKET_ATTACHMENTS; 
      ?>
      </span>
      <?php echo $this->TEXT[9]; ?>
      <br class="clear" />
     </p>
     <?php
     }
     ?>
     
    <br class="clear" /> 
    </div>
    
    <div id="viewRight">
     
     <h2><?php echo $this->MESSAGE[1]; ?></h2>
    
     <div class="detailWrapper">
     
     <label><?php echo $this->TEXT[0]; ?></label>
     <p class="data"><?php echo $this->TEXT_DATA[0]; ?></p>
     
     <label><?php echo $this->TEXT[1]; ?></label>
     <p class="data"><?php echo $this->TEXT_DATA[1]; ?></p>
     
     <label><?php echo $this->TEXT[2]; ?></label>
     <p class="data"><?php echo $this->TEXT_DATA[2]; ?></p>
     
     <label><?php echo $this->TEXT[3]; ?></label>
     <p class="data"><?php echo $this->TEXT_DATA[3]; ?></p>
     
     <label><?php echo $this->TEXT[4]; ?></label>
     <p class="data"><?php echo $this->TEXT_DATA[4]; ?></p>
     
     <label><?php echo $this->TEXT[5]; ?></label>
     <p class="data"><?php echo $this->TEXT_DATA[5]; ?></p>
     
     <label><?php echo $this->TEXT[6]; ?></label>
     <p class="data"><?php echo $this->TEXT_DATA[6]; ?></p>
     
     <label><?php echo $this->TEXT[7]; ?></label>
     <p class="data"><?php echo $this->TEXT_DATA[7]; ?></p>
      
     </div> 
    
    <br class="clear" /> 
    </div>
  
  <br class="clear" /> 
  </div>
  
  <div id="ticketReplies">
    <?php echo 
    // Displays all ticket replies..
    // templates/html/ticket-reply.htm
    // templates/html/no-replies-table.htm
    // templates/html/reply-admin-signature.htm
    // templates/html/ticket-attachment.htm
    $this->REPLY_DATA; 
    ?>
  </div>
  
  <div id="replyBoxWrapper">
   
     <h2><?php echo $this->MESSAGE[2]; ?></h2>
     
     <div class="replyBox">
       
       <form method="post" id="form" action="?t=<?php echo $_GET['t']; ?>"<?php echo $this->MULTIPART; ?> onsubmit="return checkform()">
       <p>
         <textarea name="comments" rows="15" id="comments" cols="40"><?php echo $this->COMMENTS; ?></textarea>
       </p>
       <?php
       // Loads attachment boxes if enabled..
       // templates/html/attachments.htm
       // templates/html/attachments-box.htm
       echo $this->ATTACHMENTS;
       ?>
       <p class="closeButton"> 
        <input type="checkbox" name="close" value="1"<?php echo ($this->IS_CHECKED=='yes' ? ' checked="checked"' : ''); ?> /> <?php echo $this->TEXT[8]; ?>
       </p>
       <p class="buttonWrapper">
         <?php
         // Loads hidden fields..DO NOT remove this..
         echo $this->HIDDEN_FIELDS; 
         ?>
         <input type="hidden" name="process" value="1" />
         <input class="button" type="submit" value="<?php echo $this->MESSAGE[2]; ?> &raquo;" title="<?php echo $this->MESSAGE[2]; ?>" />
       </p>
       </form>
       
     </div>
   
   </div>

</div>
Return current item: Maian Support