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
|
# --
# AgentTicketMove.dtl - provides HTML form for move mask
# Copyright (C) 2001-2007 OTRS GmbH, http://otrs.org/
# --
# $Id: AgentTicketMove.dtl,v 1.9 2007/01/09 03:24:16 martin 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 change_selected(sel) {
start_elements = (sel + 5);
if (document.compose.elements[0].name == "$Config{"SessionName"}") {
start_elements = start_elements + 1;
}
if (!document.compose.elements[start_elements].checked) {
document.compose.elements[start_elements].checked = true;
}
}
function submit_compose() {
if (document.compose.DestQueueID.value == "") {
alert('$JSText{"Queue"}');
document.compose.DestQueueID.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('$JSText{"Invalid time!"}');
document.compose.TimeUnits.focus();
return false;
}
}
else if (document.compose.TimeUnits.value == "" && $Config{"Ticket::Frontend::NeedAccountedTime"}) {
alert('$JSText{"You need to account time!"}');
document.compose.TimeUnits.focus();
return false;
}
<!-- dtl:block:TimeUnitsJs -->
}
//-->
</script>
<table border="0" width="100%" cellspacing="0" cellpadding="3">
<tr>
<td class="contenthead">
$Env{"Box0"}$Text{"Move Ticket"}: $Data{"TicketNumber"}$Env{"Box1"}
</td>
</tr>
<tr>
<td class="menu">
<!-- dtl:block:TicketBack -->
<a href="$Env{"Baselink"}$Env{"LastScreenView"}" onmouseover="window.status='$JSText{"Back"}'; return true;" onmouseout="window.status='';" class="menuitem">$Text{"Back"}</a>
<!-- dtl:block:TicketBack -->
<!-- dtl:block:PropertiesLock -->
<img border="0" src="$Env{"Images"}warning.png" alt="$Text{"Info"}">: <font color="red">$Text{"Ticket locked!"}</font> (<a href="$Env{"Baselink"}Action=AgentTicketLock&Subaction=Unlock&TicketID=$Data{"TicketID"}" onmouseover="window.status='$JSText{"Ticket unlock!"}'; return true;" onmouseout="window.status=''; ">$Text{"Ticket unlock!"}</a>)
<!-- dtl:block:PropertiesLock -->
</td>
</tr>
<tr>
<td class="mainbody">
<br>
<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">
#$Data{"TicketUnlock"}
<form action="$Env{"CGIHandle"}" method="post" name="compose">
<input type="hidden" name="Action" value="$Env{"Action"}">
<input type="hidden" name="TicketID" value="$Data{"TicketID"}">
<input type="hidden" name="TicketUnlock" value="$Data{"TicketUnlock"}">
# <input type="hidden" name="DestQueueID" value="">
<input type="hidden" name="ExpandQueueUsers" value="">
<input type="hidden" name="AllUsers" value="0">
<table border="0" width="100%">
<tr>
<td class="contentkey">$Text{"New Queue"}:</td>
<td class="contentvalue"></td>
<td class="contentvalue">$Data{"MoveQueuesStrg"} $Data{"LatestQueue"}</td>
</tr>
<tr>
<td width="18%" class="contentkey">$Text{"New Owner"}:</td>
<td width="2%" class="contentvalue">
<input type="radio" name="UserSelection" value="New" checked="checked">
</td>
<td width="80%" class="contentvalue">
$Data{"OwnerStrg"} $Env{"Box0"}<a href="" onclick="document.compose.ExpandQueueUsers.value='3'; document.compose.AllUsers.value='1'; document.compose.submit(); return false;" onmouseout="window.status='';" onmouseover="window.status='$JSText{"All Agents"}'; return true;">$Text{"All"}</a>$Env{"Box1"}
</td>
</tr>
<tr>
<td class="contentkey">$Text{"Previous Owner"}:</td>
<td class="contentvalue"><input type="radio" name="UserSelection" value="Old"></td>
<td class="contentvalue">$Data{"OldUserStrg"}</td>
</tr>
<tr>
<td class="contentkey">$Text{"Note"}:</td>
<td class="contentvalue"></td>
<td class="contentvalue">
<textarea name="Comment" rows="8" cols="$Config{"Ticket::Frontend::TextAreaNote"}" wrap="$Env{"BrowserWrap"}">$Data{"Comment"}</textarea>
</td>
</tr>
# --
# use ticket is move
# --
<!-- dtl:block:State -->
<tr>
<td width="20%" class="contentkey">$Text{"Next ticket state"}:</td>
<td class="contentvalue"></td>
<td width="80%">$Data{"NextStatesStrg"}</td>
</tr>
<!-- dtl:block:State -->
<!-- dtl:block:TimeUnits -->
<tr>
<td class="contentkey">$Text{"Time units"}$Text{"$Config{"Ticket::Frontend::TimeUnits"}"}:</td>
<td class="contentvalue"></td>
<td class="contentvalue"><input type="text" name="TimeUnits" value="$QData{"TimeUnits"}" size="3"></td>
</tr>
<!-- dtl:block:TimeUnits -->
</table>
<tr>
<td class="contentfooter">
<input class="button" accesskey="g" type="submit" value="$Text{"Submit"}" onclick="return submit_compose();">
</td>
</tr>
</form>
</td>
</tr>
</table>
<br>
</td>
</tr>
</table>
<!-- end form -->
|