<!-- BEGIN DYNAMIC BLOCK: ticketlog -->
<div id="div_log_{LOG_ID}">
<input type="hidden" id="log_id" value="{LOG_ID}" />
<table width=100% border=0 cellpadding=2 cellspacing=1 style="width:660px">
  <tr class=formLabel>
      <td colspan=2></td>
  </tr>
  <tr class=inner>
    <td width=135 align=left nowrap>
      <font class='{LOG_LABELCOLOR}'>&nbsp;{LOG_OWNER}</font>
      <!-- BEGIN DYNAMIC BLOCK: viaEmail -->
      <div style="text-align:right" class="{LOG_LABELCOLOR}">([l]via E-mail[/l])</div>
      <!-- END DYNAMIC BLOCK: viaEmail -->
    </td>
    <td class=LeftPadding>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td class=LeftPadding>[l]Submitted[/l]: {LOG_SUBMITTIME}</td>
          <!-- BEGIN DYNAMIC BLOCK: log_action -->
          <td class="{LOG_ACTIONSTYLE}"><div align="right">{LOG_ACTIONTEXT}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
          <!-- END DYNAMIC BLOCK: log_action -->
        </tr>
      </table>
    </td>
  </tr>
  <tr class=formField style="height:50px;">
    <td class=LeftPadding style="padding-top:5px;" valign=top width=135 align=left>{LOG_TIMEBETWEENPOSTS}</td>
    <td class=LeftPadding style="padding-top:5px;" valign=top id="log_{LOG_ID}">{LOG_MESSAGE}<br><br></td>    
  </tr>
  <tr class=formField>
    <td class=LeftPadding>
          <!-- BEGIN DYNAMIC BLOCK: log_edit -->
          <div id="editLinks_log_{LOG_ID}"><a class='liveupdate' href="javascript:ShowEditBox('log_{LOG_ID}','support','EditTicketLog_Async','log');">[l]Edit[/l]</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class='liveupdate' href="javascript:DeleteLog('log_{LOG_ID}','support','DeleteTicketLog_Async');">[l]Delete[/l]</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
          <!-- END DYNAMIC BLOCK: log_edit -->
    </td>
    <td align=right></td>
  </tr>  
  <tr class=formLabel>
    <td align=center></td>
    <td align=right></td>
  </tr>
</table>
</div>
<!-- END DYNAMIC BLOCK: ticketlog -->

<!-- BEGIN DYNAMIC BLOCK: ticketreply -->
<form id="SupportForm" action=index.php?fuse={SUPPORT_FUSE}&action={ADDLOG_ACTION}{IS_PUBLIC} method=post enctype="multipart/form-data">
  <input type=hidden name=troubleticketid value="{TICKET_ID}">
  <input type="hidden" name="email" value="{GUEST_EMAIL}">
  <input type="hidden" name="accesscode" value="{ACCESS_CODE}">
  <input type=hidden name=userid value="{MYUSERID}">
  <input type=hidden name=usertype value="{MYUSERTYPE}">
  <input type="hidden" name="ticketSummary" value="" />
  <table width=100% border=0 cellpadding=2 cellspacing=1>
    <tr class=formLabel>
      <td colspan=2></td>
    </tr>
    <tr>
      <td class=formField>
        <textarea class="textbox" name="message" id="message" WRAP="virtual" rows=10 cols=70>{ADMINSIG}</TEXTAREA><br>
        <!-- BEGIN DYNAMIC BLOCK: attachfile -->
        <b>[l]Attach File[/l]:</b> [l]Max file size[/l]: {ADDLOG_FILEUPLOADSIZE}
        <div id="fileFieldsContainer"> 
            <div id="fileFields_0" style="margin:2px 0 2px 0">
                <input type="file" value="" name="file" id="file"/> 
                <a style="visibility:hidden" href="#" onclick="javascript:remove(this);">[l]Delete[/l]</a> 
            </div> 
        </div>
        
        <a class='liveupdate' href="javascript:Clon('fileFields_0');">[l]Add a New File[/l]</a>
        
        <!-- END DYNAMIC BLOCK: attachfile -->  
        <!-- BEGIN DYNAMIC BLOCK: ticketreply_cannot_attach -->
        <span style="color:red">[l]Directory 'uploads/support' is not writable[/l]</span>
        <!-- END DYNAMIC BLOCK: ticketreply_cannot_attach -->
        <div align=right>
          <input type=submit onclick="return submitTicketLog(this.form, {SKIPSUMMARYFORM});" class=button_large value='[l]Submit Entry[/l]' />
        </div>
      </td>
      <td width=100% class=formFieldPaddLeft valign=top>
      <table width="80%"><tr  align="center"><td>
        <!-- BEGIN DYNAMIC BLOCK: ticketreply_settings_admin -->
            <!-- BEGIN DYNAMIC BLOCK: ticket_private -->
            <table class="table-round-corner" width="100%" cellspacing="0" cellpadding="0" align="left">
                <tr>
                    <td width="11" valign="top" align=left><img src="templates/Raleigh/images/round_corner_left_top.png" width=11 height=11></td>
                    <td rowspan=2><br/>
                        <input type="checkbox" name="private" id="private"value="1" onclick="ToggleSecondOptionsPanel(this.checked);" />
                        [l]Staff-only[/l]
	                   <br/><br/>
                    </td>
                    <td width=11 valign="top" align=right><img src="templates/Raleigh/images/round_corner_right_top.png" width=11 height=11></td>
                </tr>
                <tr>
                    <td width=11 align=left valign=bottom><img src="templates/Raleigh/images/round_corner_left_bottom.png" width=11 height=11></td>
                    <td width=11 align=right valign=bottom><img src="templates/Raleigh/images/round_corner_right_bottom.png" width=11 height=11></td>
                    </tr>
            </table>
	        </td></tr><tr  align="left"><td>
            <!-- END DYNAMIC BLOCK: ticket_private -->
            <table id="secondOptionsPanel" class="table-round-corner" width="100%" cellspacing="0" cellpadding="0" align="left">
                <tr>
                    <td width=11 valign="top" align=left><img src="templates/Raleigh/images/round_corner_left_top.png" width=11 height=11></td>
                    <td rowspan=2><br/>
                    [l]Set ticket status to[/l]:<br>
                    <select name="ticketstatus">
                        <option value=3 Selected>[l]Waiting on customer[/l]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
                        <option value=1>[l]Open[/l]</option>
                      <!-- BEGIN DYNAMIC BLOCK: closeTicketOption -->
                        <option value=-1>[l]Closed[/l]</option>
                      <!-- END DYNAMIC BLOCK: closeTicketOption -->
                    </select><br /><br />
                    <input type="checkbox" name="notify" id="notify" value="1" checked="true" style="display:inline"/>
                    [l]Notify User[/l]<br />
                    <!-- BEGIN DYNAMIC BLOCK: ticket_assigntome1 -->
                        <input type="checkbox" name="assigntome" id="assigntome" value="1" checked="true" />
                        [l]Assign Ticket to Me[/l]<br>
                    <!-- END DYNAMIC BLOCK: ticket_assigntome1 -->
                    <br/>
                    </td>
                    <td width=11 valign="top" align=right><img src="templates/Raleigh/images/round_corner_right_top.png" width=11 height=11></td>
                </tr>
                <tr>
                    <td width=11 align=left valign=bottom><img src="templates/Raleigh/images/round_corner_left_bottom.png" width=11 height=11></td>
                    <td width=11 align=right valign=bottom><img src="templates/Raleigh/images/round_corner_right_bottom.png" width=11 height=11></td>
                    </tr>
            </table>
            </td></tr></table>
        <!-- END DYNAMIC BLOCK: ticketreply_settings_admin -->
        <!-- BEGIN DYNAMIC BLOCK: ticketreply_settings_customer -->
            [l]Set ticket status to[/l]:<br>
            <select name=ticketstatus>
              <option value=2 Selected>[l]Waiting on tech[/l]</option>
              <!-- BEGIN DYNAMIC BLOCK: closeTicketOptionCustomer -->
              <option value=-1>[l]Closed[/l]</option>
              <!-- END DYNAMIC BLOCK: closeTicketOptionCustomer -->
            </select><br /><br />

        <!-- END DYNAMIC BLOCK: ticketreply_settings_customer -->
      </td>
    </tr>
  </table>
</form>
<!-- END DYNAMIC BLOCK: ticketreply -->

<div id="divTicketSummary" style="display:none">
    <form>
        <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="pop_topleft"></td>
                <td class="pop_border"></td>
                <td class="pop_topright"></td>
            </tr>
            <tr>
                <td class="pop_border"></td>
                <td class="pop_content">
                    <h2><span>[l]Resolution summary for this ticket[/l]:</span></h2>
                </td>
                <td class="pop_border"></td>
            </tr>
            <tr>
                <td class="pop_border"></td>
                <td class="dialog_body">
                    <table>
                        <tr>
                            <td>
                                <textarea name="textareaTicketSummary" id="textareaTicketSummary" rows=10 cols=72></textarea><br />
                            </td>
                        </tr>
                    </table>
                </td>
                <td class="pop_border"></td>
            </tr>
            <tr>
                <td class="pop_border"></td>
                <td>
                    <div style="background:#f2f2f2; padding:10px">
                        <input type="button" class="button_medium" value="[l]Save[/l]" onclick="submitClosedTicket(this.form, true)" />
                        <input type="button" class="button_medium" value="[l]Skip[/l]" onclick="submitClosedTicket(this.form, false)" />
                    </div>
                </td>
                <td class="pop_border"></td>
            </tr>
            <tr>
                <td class="pop_bottomleft"></td>
                <td class="pop_border"></td>
                <td class="pop_bottomright"></td>
            </tr>
        </table>
    </form>
</div>
