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
b20cb62a
Commit
b20cb62a
authored
12 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused file
parent
005218fa
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/staff/topic.inc.php
+0
-80
0 additions, 80 deletions
include/staff/topic.inc.php
with
0 additions
and
80 deletions
include/staff/topic.inc.php
deleted
100644 → 0
+
0
−
80
View file @
005218fa
<?php
if
(
!
defined
(
'OSTADMININC'
)
||
!
$thisstaff
->
isAdmin
())
die
(
'Access Denied'
);
$info
=
(
$_POST
&&
$errors
)
?
Format
::
input
(
$_POST
)
:
array
();
//Re-use the post info on error...savekeyboards.org
if
(
$topic
&&
$_REQUEST
[
'a'
]
!=
'new'
){
$title
=
'Edit Topic'
;
$action
=
'update'
;
$info
=
$info
?
$info
:
$topic
->
getInfo
();
}
else
{
$title
=
'New Help Topic'
;
$action
=
'create'
;
$info
[
'isactive'
]
=
isset
(
$info
[
'isactive'
])
?
$info
[
'isactive'
]
:
1
;
}
//get the goodies.
$depts
=
db_query
(
'SELECT dept_id,dept_name FROM '
.
DEPT_TABLE
);
$priorities
=
db_query
(
'SELECT priority_id,priority_desc FROM '
.
TICKET_PRIORITY_TABLE
);
?>
<form
action=
"admin.php?t=topics"
method=
"post"
>
<input
type=
"hidden"
name=
"do"
value=
"
<?php
echo
$action
;
?>
"
>
<input
type=
"hidden"
name=
"a"
value=
"
<?php
echo
Format
::
htmlchars
(
$_REQUEST
[
'a'
]);
?>
"
>
<input
type=
'hidden'
name=
't'
value=
'topics'
>
<input
type=
"hidden"
name=
"topic_id"
value=
"
<?php
echo
$info
[
'topic_id'
];
?>
"
>
<table
width=
"100%"
border=
"0"
cellspacing=
0
cellpadding=
2
class=
"tform"
>
<tr
class=
"header"
><td
colspan=
2
>
<?php
echo
$title
;
?>
</td></tr>
<tr
class=
"subheader"
>
<td
colspan=
2
>
Disabling auto response will overwrite dept settings.
</td>
</tr>
<tr>
<th
width=
"20%"
>
Help Topic:
</th>
<td><input
type=
"text"
name=
"topic"
size=
"55"
value=
"
<?php
echo
$info
[
'topic'
];
?>
"
>
<font
class=
"error"
>
*
<?php
echo
$errors
[
'topic'
];
?>
</font></td>
</tr>
<tr><th>
Topic Status
</th>
<td>
<input
type=
"radio"
name=
"isactive"
value=
"1"
<?php
echo
$info
[
'isactive'
]
?
'checked'
:
''
;
?>
/>
Active
<input
type=
"radio"
name=
"isactive"
value=
"0"
<?php
echo
!
$info
[
'isactive'
]
?
'checked'
:
''
;
?>
/>
Disabled
</td>
</tr>
<tr>
<th
nowrap
>
Auto Response:
</th>
<td>
<input
type=
"checkbox"
name=
"noautoresp"
value=
1
<?php
echo
$info
[
'noautoresp'
]
?
'checked'
:
''
;
?>
>
<b>
Disable
</b>
autoresponse for this topic. (
<i>
Overwrite Dept setting
</i>
)
</td>
</tr>
<tr>
<th>
New Ticket Priority:
</th>
<td>
<select
name=
"priority_id"
>
<option
value=
0
>
Select Priority
</option>
<?php
while
(
list
(
$id
,
$name
)
=
db_fetch_row
(
$priorities
)){
$selected
=
(
$info
[
'priority_id'
]
==
$id
)
?
'selected'
:
''
;
?>
<option
value=
"
<?php
echo
$id
;
?>
"
<?php
echo
$selected
;
?>
>
<?php
echo
$name
;
?>
</option>
<?php
}
?>
</select>
<font
class=
"error"
>
*
<?php
echo
$errors
[
'priority_id'
];
?>
</font>
</td>
</tr>
<tr>
<th
nowrap
>
New Ticket Department:
</th>
<td>
<select
name=
"dept_id"
>
<option
value=
0
>
Select Department
</option>
<?php
while
(
list
(
$id
,
$name
)
=
db_fetch_row
(
$depts
)){
$selected
=
(
$info
[
'dept_id'
]
==
$id
)
?
'selected'
:
''
;
?>
<option
value=
"
<?php
echo
$id
;
?>
"
<?php
echo
$selected
;
?>
>
<?php
echo
$name
;
?>
Dept
</option>
<?php
}
?>
</select>
<font
class=
"error"
>
*
<?php
echo
$errors
[
'dept_id'
];
?>
</font>
</td>
</tr>
</table>
<div
style=
"padding-left:220px;"
>
<input
class=
"button"
type=
"submit"
name=
"submit"
value=
"Submit"
>
<input
class=
"button"
type=
"reset"
name=
"reset"
value=
"Reset"
>
<input
class=
"button"
type=
"button"
name=
"cancel"
value=
"Cancel"
onClick=
'window.location.href="admin.php?t=topics"'
>
</div>
</form>
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