Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
b9c40fbb
Commit
b9c40fbb
authored
11 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
Move new ticket settings away from mail account section
parent
63c84d2f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/staff/email.inc.php
+57
-52
57 additions, 52 deletions
include/staff/email.inc.php
with
57 additions
and
52 deletions
include/staff/email.inc.php
+
57
−
52
View file @
b9c40fbb
...
...
@@ -40,7 +40,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<tr>
<th
colspan=
"2"
>
<h4>
<?php
echo
$title
;
?>
</h4>
<em><strong>
Email Information
</strong>
: Login details are optional BUT required when IMAP/POP or SMTP are enabled.
</em>
<em><strong>
Email Information
&
Settings
</strong>
</em>
</th>
</tr>
</thead>
...
...
@@ -65,7 +65,61 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td
width=
"180"
>
Login Username
New Ticket Priority
</td>
<td>
<select
name=
"priority_id"
>
<option
value=
""
>
—
Select Priority
—
</option>
<?php
$sql
=
'SELECT priority_id,priority_desc FROM '
.
PRIORITY_TABLE
.
' pri ORDER by priority_urgency DESC'
;
if
((
$res
=
db_query
(
$sql
))
&&
db_num_rows
(
$res
)){
while
(
list
(
$id
,
$name
)
=
db_fetch_row
(
$res
)){
$selected
=
(
$info
[
'priority_id'
]
&&
$id
==
$info
[
'priority_id'
])
?
'selected="selected"'
:
''
;
echo
sprintf
(
'<option value="%d" %s>%s</option>'
,
$id
,
$selected
,
$name
);
}
}
?>
</select>
<span
class=
"error"
>
<?php
echo
$errors
[
'priority_id'
];
?>
</span>
</td>
</tr>
<tr>
<td
width=
"180"
>
New Ticket Dept.
</td>
<td>
<select
name=
"dept_id"
>
<option
value=
""
>
—
Select Department
—
</option>
<?php
$sql
=
'SELECT dept_id,dept_name FROM '
.
DEPT_TABLE
.
' dept ORDER by dept_name'
;
if
((
$res
=
db_query
(
$sql
))
&&
db_num_rows
(
$res
)){
while
(
list
(
$id
,
$name
)
=
db_fetch_row
(
$res
)){
$selected
=
(
$info
[
'dept_id'
]
&&
$id
==
$info
[
'dept_id'
])
?
'selected="selected"'
:
''
;
echo
sprintf
(
'<option value="%d" %s>%s</option>'
,
$id
,
$selected
,
$name
);
}
}
?>
</select>
<span
class=
"error"
>
<?php
echo
$errors
[
'dept_id'
];
?>
</span>
</td>
</tr>
<tr>
<td
width=
"180"
>
Auto-response
</td>
<td>
<input
type=
"checkbox"
name=
"noautoresp"
value=
"1"
<?php
echo
$info
[
'noautoresp'
]
?
'checked="checked"'
:
''
;
?>
>
<strong>
Disable
</strong>
new ticket auto-response for this email. Overwrite global and dept. settings.
</td>
</tr>
<tr>
<th
colspan=
"2"
>
<em><strong>
Login Information:
</strong>
: Optional BUT required when IMAP/POP or SMTP (with auth.) are enabled.
</em>
</th>
</tr>
<tr>
<td
width=
"180"
>
Username
</td>
<td>
<input
type=
"text"
size=
"35"
name=
"userid"
value=
"
<?php
echo
$info
[
'userid'
];
?>
"
>
...
...
@@ -74,7 +128,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td
width=
"180"
>
Login
Password
Password
</td>
<td>
<input
type=
"password"
size=
"35"
name=
"passwd"
value=
"
<?php
echo
$info
[
'passwd'
];
?>
"
>
...
...
@@ -137,55 +191,6 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<font
class=
"error"
>
<?php
echo
$errors
[
'mail_fetchmax'
];
?>
</font>
</td>
</tr>
<tr>
<td
width=
"180"
>
New Ticket Priority:
</td>
<td>
<select
name=
"priority_id"
>
<option
value=
""
>
—
Select Priority
—
</option>
<?php
$sql
=
'SELECT priority_id,priority_desc FROM '
.
PRIORITY_TABLE
.
' pri ORDER by priority_urgency DESC'
;
if
((
$res
=
db_query
(
$sql
))
&&
db_num_rows
(
$res
)){
while
(
list
(
$id
,
$name
)
=
db_fetch_row
(
$res
)){
$selected
=
(
$info
[
'priority_id'
]
&&
$id
==
$info
[
'priority_id'
])
?
'selected="selected"'
:
''
;
echo
sprintf
(
'<option value="%d" %s>%s</option>'
,
$id
,
$selected
,
$name
);
}
}
?>
</select>
<span
class=
"error"
>
<?php
echo
$errors
[
'priority_id'
];
?>
</span>
</td>
</tr>
<tr>
<td
width=
"180"
>
New Ticket Dept.
</td>
<td>
<select
name=
"dept_id"
>
<option
value=
""
>
—
Select Department
—
</option>
<?php
$sql
=
'SELECT dept_id,dept_name FROM '
.
DEPT_TABLE
.
' dept ORDER by dept_name'
;
if
((
$res
=
db_query
(
$sql
))
&&
db_num_rows
(
$res
)){
while
(
list
(
$id
,
$name
)
=
db_fetch_row
(
$res
)){
$selected
=
(
$info
[
'dept_id'
]
&&
$id
==
$info
[
'dept_id'
])
?
'selected="selected"'
:
''
;
echo
sprintf
(
'<option value="%d" %s>%s</option>'
,
$id
,
$selected
,
$name
);
}
}
?>
</select>
<span
class=
"error"
>
<?php
echo
$errors
[
'dept_id'
];
?>
</span>
</td>
</tr>
<tr>
<td
width=
"180"
>
Auto-response
</td>
<td>
<input
type=
"checkbox"
name=
"noautoresp"
value=
"1"
<?php
echo
$info
[
'noautoresp'
]
?
'checked="checked"'
:
''
;
?>
>
<strong>
Disable
</strong>
new ticket auto-response for this email. Overwrite global and dept. settings.
</td>
</tr>
<tr><td
valign=
"top"
>
Fetched Emails
</td>
<td>
<input
type=
"radio"
name=
"postfetch"
value=
"archive"
<?php
echo
(
$info
[
'postfetch'
]
==
'archive'
)
?
'checked="checked"'
:
''
;
?>
>
...
...
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