File: AgentTicketCustomerMessage.dtl

package info (click to toggle)
otrs2 2.2.7-2lenny3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,444 kB
  • ctags: 5,808
  • sloc: perl: 129,825; xml: 16,139; sql: 11,400; sh: 1,198; makefile: 31; php: 16
file content (115 lines) | stat: -rw-r--r-- 4,623 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# --
# Kernel/Output/HTML/Standard/AgentTicketCustomerMessage.dtl - provides HTML form for customer message
# Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
# --
# $Id: AgentTicketCustomerMessage.dtl,v 1.10 2006/12/21 16:13:14 mh Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --

<!-- start form -->
<script language="JavaScript" type="text/javascript">
<!--
function submit_compose() {
    if (document.compose.Subject.value == "") {
        alert('$JSText{"A message should have a subject!"}');
        document.compose.Subject.focus();
        return false;
    }
    else if (document.compose.Body.value == "") {
        alert('$JSText{"A message should have a body!"}');
        document.compose.Body.focus();
        return false;
    }
    else {
        return true;
    }
}
//-->
</script>

<script language="JavaScript" type="text/javascript">
<!--
function SpellCheckSubmit() {
    document.spelling.Body.value = document.compose.Body.value;
    window.open('', 'spelling', 'toolbar=no,location=no,status=yes,scrollbars=yes,resizable=yes,width=700,height=550,left=100,top=100');
    document.spelling.submit()
}
// -->
</script>

<table border="0" width="100%" cellspacing="0" cellpadding="3">
  <tr>
    <td class="mainhead">
      $Env{"Box0"}$Text{"Follow up"}: $Data{"TicketNumber"}$Env{"Box1"}
    </td>
  </tr>
  <tr>
    <td class="mainbody">
      <br>
      <form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data" name="compose">
        <input type="hidden" name="Action" value="$Env{"Action"}">
        <input type="hidden" name="Subaction" value="Store">
        <input type="hidden" name="TicketID" value="$Data{"TicketID"}">
        <input type="hidden" name="FormID" value="$Data{"FormID"}">
        <table border="0" width="800" align="center" cellspacing="0" cellpadding="4">
          <tr>
            <td colspan="2" class="contenthead">$Text{"Options"}</td>
          </tr>
          <tr>
            <td class="contentbody">
              <table border="0" width="100%">
                <tr>
                  <td width="15%" class="contentkey">$Text{"Subject"}:</td>
                  <td width="85%" class="contentvalue">
                    <input type="text" name="Subject" value="" size="70">
                  </td>
                </tr>
                <tr>
                  <td class="contentkey">$Text{"Options"}:</td>
                  <td class="contentvalue">
<!-- dtl:block:SpellCheck -->
                    $Env{"Box0"}<a href="" onclick="SpellCheckSubmit(); return false;" onmouseover="window.status='$JSText{"Spell Check"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Env{"Images"}spell.png">$Text{"Spell Check"}</a>$Env{"Box1"}
<!-- dtl:block:SpellCheck -->
                    $Env{"Box0"}<a href="#attachment" onmouseover="window.status='$JsText{"Attachments"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Env{"Images"}attach.png">$Text{"Attachments"}</a>$Env{"Box1"}
                  </td>
                </tr>
                <tr>
                  <td class="contentkey">$Text{"Text"}:</td>
                  <td class="contentvalue">
                    <textarea name="Body" rows="15" cols="60" wrap="$Env{"BrowserWrap"}"></textarea>
                  </td>
                </tr>
                <tr>
                  <td class="contentkey">$Text{"Attachment"}:</td>
                  <td class="contentvalue">
                    <input name="file_upload" type="file" size="40" class="fixed">&nbsp;<a name="attachment"></a>
                  </td>
                </tr>
                <tr>
                  <td class="contentkey">$Text{"Next state"}:</td>
                  <td class="contentvalue"> $Data{"NextStatesStrg"}</td>
                </tr>
              </table>
              <br>
            </td>
          </tr>
          <tr>
            <td colspan="2" class="contentfooter">
              <input class="button" accesskey="g" type="submit" value="$Text{"Submit"}" onclick="return submit_compose();">
            </td>
          </tr>
        </table>
      </form>
      <br>
      <form action="$Env{"CGIHandle"}" method="post" name="spelling" target="spelling">
        <input type="hidden" name="Action" value="AgentSpelling">
        <input type="hidden" name="Body" value="">
        <input type="hidden" name="spell_lang" value="">
      </form>
    </td>
  </tr>
</table>
<!-- end form -->