Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
5f95e506
Commit
5f95e506
authored
13 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
Remove - replaced with ticket-edit.inc.php
parent
33c1936f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/staff/editticket.inc.php
+0
-142
0 additions, 142 deletions
include/staff/editticket.inc.php
with
0 additions
and
142 deletions
include/staff/editticket.inc.php
deleted
100644 → 0
+
0
−
142
View file @
33c1936f
<?php
if
(
!
defined
(
'OSTSCPINC'
)
||
!
is_object
(
$ticket
)
||
!
is_object
(
$thisstaff
)
||
!
$thisstaff
->
isStaff
())
die
(
'Access Denied'
);
if
(
!
(
$thisstaff
->
canEditTickets
()
||
(
$thisstaff
->
isManager
()
&&
$ticket
->
getDeptId
()
==
$thisstaff
->
getDeptId
())))
die
(
'Access Denied. Perm error.'
);
if
(
$_POST
&&
$errors
){
$info
=
Format
::
input
(
$_POST
);
}
else
{
$info
=
array
(
'email'
=>
$ticket
->
getEmail
(),
'name'
=>
$ticket
->
getName
(),
'phone'
=>
$ticket
->
getPhone
(),
'phone_ext'
=>
$ticket
->
getPhoneExt
(),
'pri'
=>
$ticket
->
getPriorityId
(),
'topicId'
=>
$ticket
->
getTopicId
(),
'topic'
=>
$ticket
->
getHelpTopic
(),
'subject'
=>
$ticket
->
getSubject
(),
'duedate'
=>
$ticket
->
getDueDate
()
?
(
Format
::
userdate
(
'm/d/Y'
,
Misc
::
db2gmtime
(
$ticket
->
getDueDate
())))
:
''
,
'time'
=>
$ticket
->
getDueDate
()
?
(
Format
::
userdate
(
'G:i'
,
Misc
::
db2gmtime
(
$ticket
->
getDueDate
())))
:
''
,
);
/*Note: Please don't make me explain how dates work - it is torture. Trust me! */
}
?>
<div
width=
"100%"
>
<?php
if
(
$errors
[
'err'
])
{
?>
<p
align=
"center"
id=
"errormessage"
>
<?php
echo
$errors
[
'err'
];
?>
</p>
<?php
}
elseif
(
$msg
)
{
?>
<p
align=
"center"
class=
"infomessage"
>
<?php
echo
$msg
;
?>
</p>
<?php
}
elseif
(
$warn
)
{
?>
<p
class=
"warnmessage"
>
<?php
echo
$warn
;
?>
</p>
<?php
}
?>
</div>
<table
width=
"100%"
border=
"0"
cellspacing=
1
cellpadding=
2
>
<form
action=
"tickets.php?id=
<?php
echo
$ticket
->
getId
();
?>
"
method=
"post"
>
<input
type=
'hidden'
name=
'id'
value=
'
<?php
echo
$ticket
->
getId
();
?>
'
>
<input
type=
'hidden'
name=
'a'
value=
'update'
>
<tr><td
align=
"left"
colspan=
2
class=
"msg"
>
Update Ticket #
<?php
echo
$ticket
->
getExtId
();
?>
(
<a
href=
"tickets.php?id=
<?php
echo
$ticket
->
getId
();
?>
"
style=
"color:black;"
>
View Ticket
</a>
)
<br></td></tr>
<tr>
<td
align=
"left"
nowrap
width=
"120"
><b>
Email Address:
</b></td>
<td>
<input
type=
"text"
id=
"email"
name=
"email"
size=
"25"
value=
"
<?php
echo
$info
[
'email'
];
?>
"
>
<font
class=
"error"
><b>
*
</b>
<?php
echo
$errors
[
'email'
];
?>
</font>
</td>
</tr>
<tr>
<td
align=
"left"
><b>
Full Name:
</b></td>
<td>
<input
type=
"text"
id=
"name"
name=
"name"
size=
"25"
value=
"
<?php
echo
$info
[
'name'
];
?>
"
>
<font
class=
"error"
><b>
*
</b>
<?php
echo
$errors
[
'name'
];
?>
</font>
</td>
</tr>
<tr>
<td
align=
"left"
><b>
Subject:
</b></td>
<td>
<input
type=
"text"
name=
"subject"
size=
"35"
value=
"
<?php
echo
$info
[
'subject'
];
?>
"
>
<font
class=
"error"
>
*
<?php
echo
$errors
[
'subject'
];
?>
</font>
</td>
</tr>
<tr>
<td
align=
"left"
>
Telephone:
</td>
<td><input
type=
"text"
name=
"phone"
size=
"25"
value=
"
<?php
echo
$info
[
'phone'
];
?>
"
>
Ext
<input
type=
"text"
name=
"phone_ext"
size=
"6"
value=
"
<?php
echo
$info
[
'phone_ext'
];
?>
"
>
<font
class=
"error"
>
<?php
echo
$errors
[
'phone'
];
?>
</font></td>
</tr>
<tr
height=
1px
><td
align=
"left"
colspan=
2
>
</td></tr>
<tr>
<td
align=
"left"
valign=
"top"
>
Due Date:
</td>
<td>
<i>
Time is based on your time zone (GM
<?php
echo
$thisstaff
->
getTZoffset
();
?>
)
</i>
<font
class=
"error"
>
<?php
echo
$errors
[
'time'
];
?>
</font><br>
<input
id=
"duedate"
name=
"duedate"
value=
"
<?php
echo
Format
::
htmlchars
(
$info
[
'duedate'
]);
?>
"
onclick=
"event.cancelBubble=true;calendar(this);"
autocomplete=
OFF
>
<a
href=
"#"
onclick=
"event.cancelBubble=true;calendar(getObj('duedate')); return false;"
><img
src=
'images/cal.png'
border=
0
alt=
""
></a>
<?php
$min
=
$hr
=
null
;
if
(
$info
[
'time'
])
list
(
$hr
,
$min
)
=
explode
(
':'
,
$info
[
'time'
]);
echo
Misc
::
timeDropdown
(
$hr
,
$min
,
'time'
);
?>
<font
class=
"error"
>
<?php
echo
$errors
[
'duedate'
];
?>
</font>
</td>
</tr>
<?php
$sql
=
'SELECT priority_id,priority_desc FROM '
.
TICKET_PRIORITY_TABLE
.
' ORDER BY priority_urgency DESC'
;
if
((
$priorities
=
db_query
(
$sql
))
&&
db_num_rows
(
$priorities
)){
?>
<tr>
<td
align=
"left"
>
Priority:
</td>
<td>
<select
name=
"pri"
>
<?php
while
(
$row
=
db_fetch_array
(
$priorities
)){
?>
<option
value=
"
<?php
echo
$row
[
'priority_id'
];
?>
"
<?php
echo
$info
[
'pri'
]
==
$row
[
'priority_id'
]
?
'selected'
:
''
;
?>
>
<?php
echo
$row
[
'priority_desc'
];
?>
</option>
<?php
}
?>
</select>
</td>
</tr>
<?php
}
?>
<?php
$services
=
db_query
(
'SELECT topic_id,topic,isactive FROM '
.
TOPIC_TABLE
.
' ORDER BY topic'
);
if
(
$services
&&
db_num_rows
(
$services
)){
?>
<tr>
<td
align=
"left"
valign=
"top"
>
Help Topic:
</td>
<td>
<select
name=
"topicId"
>
<option
value=
"0"
selected
>
None
</option>
<?php
if
(
!
$info
[
'topicId'
]
&&
$info
[
'topic'
]){
//old helptopic ?>
<
option
value
=
"0"
selected
><?
php
echo
$info
[
'topic'
];
?>
(deleted)
</option>
<?php
}
while
(
list
(
$topicId
,
$topic
,
$active
)
=
db_fetch_row
(
$services
)){
$selected
=
(
$info
[
'topicId'
]
==
$topicId
)
?
'selected'
:
''
;
$status
=
$active
?
'Active'
:
'Inactive'
;
?>
<option
value=
"
<?php
echo
$topicId
;
?>
"
<?php
echo
$selected
;
?>
>
<?php
echo
$topic
;
?>
(
<?php
echo
$status
;
?>
)
</option>
<?php
}
?>
</select>
(optional)
<font
class=
"error"
>
<?php
echo
$errors
[
'topicId'
];
?>
</font>
</td>
</tr>
<?php
}
?>
<tr>
<td
align=
"left"
valign=
"top"
><b>
Internal Note:
</b></td>
<td>
<i>
Reasons for the edit.
</i><font
class=
"error"
><b>
*
<?php
echo
$errors
[
'note'
];
?>
</b></font><br/>
<textarea
name=
"note"
cols=
"45"
rows=
"5"
wrap=
"soft"
>
<?php
echo
$info
[
'note'
];
?>
</textarea></td>
</tr>
<tr
height=
2px
><td
align=
"left"
colspan=
2
>
</td></tr>
<tr>
<td></td>
<td>
<input
class=
"button"
type=
"submit"
name=
"submit_x"
value=
"Update Ticket"
>
<input
class=
"button"
type=
"reset"
value=
"Reset"
>
<input
class=
"button"
type=
"button"
name=
"cancel"
value=
"Cancel"
onClick=
'window.location.href="tickets.php?id=
<?php
echo
$ticket
->
getId
();
?>
"'
>
</td>
</tr>
</form>
</table>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment