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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
|
# --
# AgentTicketClose.dtl - provides HTML form for close mask
# Copyright (C) 2001-2005 Martin Edenhofer <martin+code@otrs.org>
# --
# $Id: AgentTicketClose.dtl,v 1.5 2005/08/05 08:11:45 rk 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('$Text{"A message should have a subject!"}');
document.compose.Subject.focus();
return false;
}
else if (document.compose.Body.value == "") {
alert('$Text{"A message should have a body!"}');
document.compose.Body.focus();
return false;
}
<!-- dtl:block:TimeUnitsJs -->
else if (document.compose.TimeUnits.value != "") {
var reg = /^-{0,1}\d+?((\.|,){0,1}\d+?){0,1}$/;
if (reg.test(document.compose.TimeUnits.value) == false) {
alert('$Text{"Invalid time!"}');
document.compose.TimeUnits.focus();
return false;
}
}
else if (document.compose.TimeUnits.value == "" && $Config{"Ticket::Frontend::NeedAccountedTime"}) {
alert('$Text{"You need to account time!"}');
document.compose.TimeUnits.focus();
return false;
}
<!-- dtl:block:TimeUnitsJs -->
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="mainhead2">
$Env{"Box0"}$Text{"Close ticket"}: $Data{"TicketNumber"}$Env{"Box1"}
</td>
</tr>
$Include{"AgentTicketLocked"}
<tr>
<td align="left" valign="top" colspan="2" 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"}">
<table border="0" width="700" 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 class="contentkey" width="20%">$Text{"Subject"}:</td>
<td class="contentvalue" width="80%"><input type="text" name="Subject" value="$Text{"$Config{"Ticket::Frontend::CloseSubject"}"}" 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='$Text{"Spell Check"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Env{"Images"}spell.png">$Text{"Spell Check"}</a>$Env{"Box1"}
<!-- dtl:block:SpellCheck -->
</td>
</tr>
<tr>
<td class="contentkey">$Text{"Note Text"}:</td>
<td class="contentvalue">
<textarea name="Body" rows="16" cols="$Config{"Ticket::Frontend::TextAreaNote"}" wrap="$Env{"BrowserWrap"}">$Text{"$Config{"Ticket::Frontend::CloseText"}"}</textarea>
</td>
</tr>
<tr>
<td class="contentkey">$Text{"Note type"}:</td>
<td class="contentvalue">$Data{"NoteTypesStrg"}</td>
</tr>
<tr>
<td class="contentkey">$Text{"Close type"}:</td>
<td class="contentvalue">$Data{"NextStatesStrg"}</td>
</tr>
# <tr>
# <td class="contentkey">$Text{"Next Queue"}:</td>
# <td class="contentvalue">$Data{"MoveQueuesStrg"}</td>
# </tr>
# <tr>
# <td class="contentkey">$Data{"TicketFreeKeyField1"}:</td>
# <td class="contentvalue">$Data{"TicketFreeTextField1"}</td>
# </tr>
# <tr>
# <td class="contentkey">$Data{"TicketFreeKeyField2"}:</td>
# <td class="contentvalue">$Data{"TicketFreeTextField2"}</td>
# </tr>
# <tr>
# <td class="contentkey">$Data{"TicketFreeKeyField3"}:</td>
# <td class="contentvalue">$Data{"TicketFreeTextField3"}</td>
# </tr>
# <tr>
# <td class="contentkey">$Data{"TicketFreeKeyField4"}:</td>
# <td class="contentvalue">$Data{"TicketFreeTextField4"}</td>
# </tr>
# <tr>
# <td class="contentkey">$Data{"TicketFreeKeyField5"}:</td>
# <td class="contentvalue">$Data{"TicketFreeTextField5"}</td>
# </tr>
# <tr>
# <td class="contentkey">$Data{"TicketFreeKeyField6"}:</td>
# <td class="contentvalue">$Data{"TicketFreeTextField6"}</td>
# </tr>
# <tr>
# <td class="contentkey">$Data{"TicketFreeKeyField7"}:</td>
# <td class="contentvalue">$Data{"TicketFreeTextField7"}</td>
# </tr>
# <tr>
# <td class="contentkey">$Data{"TicketFreeKeyField8"}:</td>
# <td class="contentvalue">$Data{"TicketFreeTextField8"}</td>
# </tr>
<!-- dtl:block:TimeUnits -->
<tr>
<td class="contentkey">$Text{"Time units"}$Text{"$Config{"Ticket::Frontend::TimeUnits"}"}:</td>
<td class="contentvalue"><input type="text" name="TimeUnits" value="" size="3"></td>
</tr>
<!-- dtl:block:TimeUnits -->
</table>
</td>
</tr>
<tr>
<td 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 -->
|