|
|
|
@ -122,41 +122,52 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
|
|
|
|
|
/* Print admin navigation */
|
|
|
|
|
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|
|
|
|
|
|
|
|
|
$columnWidth = 'col-md-8';
|
|
|
|
|
$showRs = hesk_dbQuery("SELECT `show` FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "quick_help_sections` WHERE `id` = 5");
|
|
|
|
|
$show = hesk_dbFetchAssoc($showRs);
|
|
|
|
|
if (!$show['show']) {
|
|
|
|
|
$columnWidth = 'col-md-10 col-md-offset-1';
|
|
|
|
|
}
|
|
|
|
|
$show_quick_help = $show['show'];
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
|
<li><a href="admin_main.php"><?php echo $hesk_settings['hesk_title']; ?></a></li>
|
|
|
|
|
<li class="active"><?php echo $hesklang['nti2']; ?></li>
|
|
|
|
|
</ol>
|
|
|
|
|
<div class="row move-down-20">
|
|
|
|
|
<?php if ($columnWidth == 'col-md-8'): ?>
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading"><?php echo $hesklang['quick_help']; ?></div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<p><?php echo $hesklang['nti3']; ?></p>
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
<p><?php echo $hesklang['req_marked_with']; ?> <font class="important">*</font></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<div class="<?php echo $columnWidth; ?>">
|
|
|
|
|
<section class="content">
|
|
|
|
|
<?php
|
|
|
|
|
/* This will handle error, success and notice messages */
|
|
|
|
|
hesk_handle_messages();
|
|
|
|
|
?>
|
|
|
|
|
<h3><?php echo $hesklang['nti2']; ?></h3>
|
|
|
|
|
|
|
|
|
|
<div class="footerWithBorder blankSpace"></div>
|
|
|
|
|
if ($show_quick_help): ?>
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h1 class="box-title">
|
|
|
|
|
<?php echo $hesklang['quick_help']; ?>
|
|
|
|
|
</h1>
|
|
|
|
|
<div class="box-tools pull-right">
|
|
|
|
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
|
|
|
|
<i class="fa fa-minus"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
<p><?php echo $hesklang['nti3']; ?></p>
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
<p><?php echo $hesklang['req_marked_with']; ?> <span class="important">*</span></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h1 class="box-title">
|
|
|
|
|
<?php echo $hesklang['nti2']; ?>
|
|
|
|
|
</h1>
|
|
|
|
|
<div class="box-tools pull-right">
|
|
|
|
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
|
|
|
|
<i class="fa fa-minus"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
<!-- START FORM -->
|
|
|
|
|
<?php if ($modsForHesk_settings['rich_text_for_tickets']): ?>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
@ -201,11 +212,12 @@ if (!$show['show']) {
|
|
|
|
|
</div>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<!-- Contact info -->
|
|
|
|
|
<?php if (in_array('name', $_SESSION['iserror'])) {
|
|
|
|
|
echo '<div class="form-group has-error">';
|
|
|
|
|
} else {
|
|
|
|
|
echo '<div class="form-group">';
|
|
|
|
|
} ?>
|
|
|
|
|
<?php
|
|
|
|
|
$has_error = '';
|
|
|
|
|
if (in_array('name', $_SESSION['iserror'])) {
|
|
|
|
|
$has_error = 'has-error';
|
|
|
|
|
}?>
|
|
|
|
|
<div class="form-group <?php echo $has_error; ?>">
|
|
|
|
|
<label for="name" class="col-sm-3 control-label"><?php echo $hesklang['name']; ?><span
|
|
|
|
|
class="important">*</span></label>
|
|
|
|
|
|
|
|
|
@ -221,71 +233,15 @@ if (!$show['show']) {
|
|
|
|
|
<div class="help-block with-errors"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="email" class="col-sm-3 control-label"><?php echo $hesklang['email']; ?></label>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<input type="text" class="form-control" name="email" size="40" maxlength="1000" id="email-input"
|
|
|
|
|
value="<?php if (isset($_SESSION['as_email'])) {
|
|
|
|
|
echo stripslashes(hesk_input($_SESSION['as_email']));
|
|
|
|
|
} else if (isset($_GET['email'])) {
|
|
|
|
|
echo hesk_GET('email');
|
|
|
|
|
} ?>" <?php if ($hesk_settings['detect_typos']) {
|
|
|
|
|
echo ' onblur="Javascript:hesk_suggestEmail(1)"';
|
|
|
|
|
} ?>
|
|
|
|
|
placeholder="<?php echo htmlspecialchars($hesklang['email']); ?>"
|
|
|
|
|
onkeyup="disableIfEmpty('email-input','notify-email')">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div id="email_suggestions"></div>
|
|
|
|
|
<hr/>
|
|
|
|
|
<!-- Department and Priority -->
|
|
|
|
|
<?php if (in_array('category', $_SESSION['iserror'])) {
|
|
|
|
|
echo '<div class="form-group has-error">';
|
|
|
|
|
} elseif (in_array('category', $_SESSION['isnotice'])) {
|
|
|
|
|
echo '<div class="form-group has-warning">';
|
|
|
|
|
} else {
|
|
|
|
|
echo '<div class="form-group">';
|
|
|
|
|
<?php
|
|
|
|
|
$has_error = '';
|
|
|
|
|
if (in_array('priority', $_SESSION['iserror'])) {
|
|
|
|
|
$has_error = 'has-error';
|
|
|
|
|
} ?>
|
|
|
|
|
<label for="category" class="col-sm-3 control-label"><?php echo $hesklang['category']; ?><span
|
|
|
|
|
<div class="form-group <?php echo $has_error; ?>">
|
|
|
|
|
<label for="priority" class="col-sm-3 control-label"><?php echo $hesklang['priority']; ?><span
|
|
|
|
|
class="important">*</span></label>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<select name="category" class="form-control"
|
|
|
|
|
pattern="[0-9]+"
|
|
|
|
|
data-error="<?php echo htmlspecialchars($hesklang['sel_app_cat']); ?>"
|
|
|
|
|
required>
|
|
|
|
|
<?php
|
|
|
|
|
// Show the "Click to select"?
|
|
|
|
|
if ($hesk_settings['select_cat']) {
|
|
|
|
|
echo '<option value="">' . $hesklang['select'] . '</option>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// List categories
|
|
|
|
|
$orderByColumn = $modsForHesk_settings['category_order_column'];
|
|
|
|
|
$result = hesk_dbQuery('SELECT * FROM `' . hesk_dbEscape($hesk_settings['db_pfix']) . 'categories` WHERE `usage` <> 2 ORDER BY `' . $orderByColumn . '` ASC');
|
|
|
|
|
while ($row = hesk_dbFetchAssoc($result)) {
|
|
|
|
|
if (isset($_SESSION['as_category']) && $_SESSION['as_category'] == $row['id']) {
|
|
|
|
|
$selected = ' selected="selected"';
|
|
|
|
|
} else {
|
|
|
|
|
$selected = '';
|
|
|
|
|
}
|
|
|
|
|
echo '<option value="' . $row['id'] . '"' . $selected . '>' . $row['name'] . '</option>';
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</select>
|
|
|
|
|
<div class="help-block with-errors"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php if (in_array('priority', $_SESSION['iserror'])) {
|
|
|
|
|
echo '<div class="form-group has-error">';
|
|
|
|
|
} else {
|
|
|
|
|
echo '<div class="form-group">';
|
|
|
|
|
} ?>
|
|
|
|
|
<label for="priority" class="col-sm-3 control-label"><?php echo $hesklang['priority']; ?><span
|
|
|
|
|
class="important">*</span></label>
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<select name="priority" class="form-control"
|
|
|
|
|
pattern="[0-9]+"
|
|
|
|
|
data-error="<?php echo htmlspecialchars($hesklang['sel_app_priority']); ?>"
|
|
|
|
@ -322,14 +278,11 @@ if (!$show['show']) {
|
|
|
|
|
} ?>><?php echo $hesklang['critical']; ?></option>
|
|
|
|
|
</select>
|
|
|
|
|
<div class="help-block with-errors"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- Start Custom Before -->
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/* custom fields BEFORE comments */
|
|
|
|
|
|
|
|
|
|
foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
/* custom fields BEFORE comments */
|
|
|
|
|
foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
|
|
|
|
if ($v['use'] && $v['place'] == 0) {
|
|
|
|
|
if ($modsForHesk_settings['custom_field_setting']) {
|
|
|
|
|
$v['name'] = $hesklang[$v['name']];
|
|
|
|
@ -379,7 +332,7 @@ foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
|
|
|
|
$formattedId = preg_replace("/[\s-]+/", " ", $v['name']);
|
|
|
|
|
$formattedId = preg_replace("/[\s_]/", "-", $v['name']);
|
|
|
|
|
|
|
|
|
|
echo '<label style="font-weight: normal;"><input type="radio" id="' . $formattedId . '" name="' . $k . '" value="' . $option . '" ' . $checked . ' ' . $cls . ' /> ' . $option . '</label><br />';
|
|
|
|
|
echo '<label style="font-weight: normal;"><input type="radio" id="' . $formattedId . '" name="' . $k . '" value="' . $option . '" ' . $checked . ' ' . $cls . ' /> ' . $option . '</label><br>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo '</div></div>';
|
|
|
|
@ -469,7 +422,7 @@ foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
|
|
|
|
$checked = '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo '<label style="font-weight: normal;"><input id="' . $formattedId . '" type="checkbox" name="' . $k . '[]" value="' . $option . '" ' . $checked . ' ' . $cls . ' /> ' . $option . '</label><br />';
|
|
|
|
|
echo '<label style="font-weight: normal;"><input id="' . $formattedId . '" type="checkbox" name="' . $k . '[]" value="' . $option . '" ' . $checked . ' ' . $cls . ' /> ' . $option . '</label><br>';
|
|
|
|
|
}
|
|
|
|
|
echo '</div></div>';
|
|
|
|
|
break;
|
|
|
|
@ -588,19 +541,16 @@ foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
|
|
|
|
</div>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<!-- End custom before -->
|
|
|
|
|
<!-- Ticket Info -->
|
|
|
|
|
<?php
|
|
|
|
|
// Lets handle ticket templates
|
|
|
|
|
$can_options = '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Lets handle ticket templates
|
|
|
|
|
$can_options = '';
|
|
|
|
|
|
|
|
|
|
// Get ticket templates from the database
|
|
|
|
|
$res = hesk_dbQuery("SELECT * FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "ticket_templates` ORDER BY `tpl_order` ASC");
|
|
|
|
|
// Get ticket templates from the database
|
|
|
|
|
$res = hesk_dbQuery("SELECT * FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "ticket_templates` ORDER BY `tpl_order` ASC");
|
|
|
|
|
|
|
|
|
|
// If we have any templates print them out
|
|
|
|
|
if (hesk_dbNumRows($res)) {
|
|
|
|
|
// If we have any templates print them out
|
|
|
|
|
if (hesk_dbNumRows($res)) {
|
|
|
|
|
?>
|
|
|
|
|
<script language="javascript" type="text/javascript"><!--
|
|
|
|
|
// -->
|
|
|
|
@ -689,10 +639,10 @@ if (hesk_dbNumRows($res)) {
|
|
|
|
|
//-->
|
|
|
|
|
</script>
|
|
|
|
|
<?php
|
|
|
|
|
} // END fetchrows
|
|
|
|
|
} // END fetchrows
|
|
|
|
|
|
|
|
|
|
// Print templates
|
|
|
|
|
if (strlen($can_options)) {
|
|
|
|
|
// Print templates
|
|
|
|
|
if (strlen($can_options)) {
|
|
|
|
|
?>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="modeadd" class="col-sm-3 control-label"><?php echo $hesklang['ticket_tpl']; ?></label>
|
|
|
|
@ -719,8 +669,8 @@ if (strlen($can_options)) {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
} // END printing templates
|
|
|
|
|
elseif (hesk_checkPermission('can_man_ticket_tpl', 0)) {
|
|
|
|
|
} // END printing templates
|
|
|
|
|
elseif (hesk_checkPermission('can_man_ticket_tpl', 0)) {
|
|
|
|
|
?>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-9 col-sm-offset-3">
|
|
|
|
@ -728,26 +678,25 @@ elseif (hesk_checkPermission('can_man_ticket_tpl', 0)) {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="due-date" class="col-sm-3 control-label"><?php echo $hesklang['due_date']; ?></label>
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<input class="form-control datepicker" name="due-date" placeholder="<?php echo htmlspecialchars($hesklang['due_date']); ?>"
|
|
|
|
|
value="<?php if (isset($_GET['due_date'])) { echo $_GET['due_date']; } ?>">
|
|
|
|
|
<span class="help-block"><?php echo $hesklang['date_format']; ?></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php if (in_array('subject', $_SESSION['iserror'])) {
|
|
|
|
|
echo '<div class="form-group has-error">';
|
|
|
|
|
} else {
|
|
|
|
|
echo '<div class="form-group">';
|
|
|
|
|
} ?>
|
|
|
|
|
<label for="subject" class="col-sm-3 control-label"><?php echo $hesklang['subject']; ?><span
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
$has_error = '';
|
|
|
|
|
if (in_array('subject', $_SESSION['iserror'])) {
|
|
|
|
|
$has_error = 'has-error';
|
|
|
|
|
}?>
|
|
|
|
|
<div class="form-group <?php echo $has_error; ?>">
|
|
|
|
|
<label for="subject" class="col-sm-3 control-label"><?php echo $hesklang['subject']; ?><span
|
|
|
|
|
class="important">*</span></label>
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<span id="HeskSub"><input class="form-control" type="text" name="subject" id="subject" size="40" maxlength="40"
|
|
|
|
|
value="<?php if (isset($_SESSION['as_subject']) || isset($_GET['subject'])) {
|
|
|
|
|
echo stripslashes(hesk_input($_SESSION['as_subject']));
|
|
|
|
@ -755,16 +704,17 @@ elseif (hesk_checkPermission('can_man_ticket_tpl', 0)) {
|
|
|
|
|
data-error="<?php echo htmlspecialchars($hesklang['enter_subject']); ?>"
|
|
|
|
|
required></span>
|
|
|
|
|
<div class="help-block with-errors"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php if (in_array('message', $_SESSION['iserror'])) {
|
|
|
|
|
echo '<div class="form-group has-error" id="message-group">';
|
|
|
|
|
} else {
|
|
|
|
|
echo '<div class="form-group" id="message-group">';
|
|
|
|
|
} ?>
|
|
|
|
|
<label for="subject" class="col-sm-3 control-label"><?php echo $hesklang['message']; ?><span
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
$has_error = '';
|
|
|
|
|
if (in_array('message', $_SESSION['iserror'])) {
|
|
|
|
|
$has_error = 'has-error';
|
|
|
|
|
} ?>
|
|
|
|
|
<div class="form-group <?php echo $has_error; ?>" id="message-group">
|
|
|
|
|
<label for="subject" class="col-sm-3 control-label"><?php echo $hesklang['message']; ?><span
|
|
|
|
|
class="important">*</span></label>
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<span id="HeskMsg">
|
|
|
|
|
<textarea class="form-control htmlEditor" name="message" id="message" rows="12" cols="60"
|
|
|
|
|
placeholder="<?php echo htmlspecialchars($hesklang['message']); ?>"
|
|
|
|
@ -774,15 +724,13 @@ elseif (hesk_checkPermission('can_man_ticket_tpl', 0)) {
|
|
|
|
|
} ?></textarea>
|
|
|
|
|
</span>
|
|
|
|
|
<div class="help-block with-errors" id="message-help-block"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<hr/>
|
|
|
|
|
<!-- Custom After -->
|
|
|
|
|
<?php
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/* custom fields AFTER comments */
|
|
|
|
|
/* custom fields AFTER comments */
|
|
|
|
|
|
|
|
|
|
foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
|
|
|
|
foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
|
|
|
|
if ($v['use'] && $v['place']) {
|
|
|
|
|
if ($modsForHesk_settings['custom_field_setting']) {
|
|
|
|
|
$v['name'] = $hesklang[$v['name']];
|
|
|
|
@ -826,7 +774,7 @@ foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
|
|
|
|
$checked = '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo '<label style="font-weight: normal;"><input type="radio" id="' . $formattedId . '" name="' . $k . '" value="' . $option . '" ' . $checked . ' ' . $cls . ' /> ' . $option . '</label><br />';
|
|
|
|
|
echo '<label style="font-weight: normal;"><input type="radio" id="' . $formattedId . '" name="' . $k . '" value="' . $option . '" ' . $checked . ' ' . $cls . ' /> ' . $option . '</label><br>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo '</div></div>';
|
|
|
|
@ -885,7 +833,7 @@ foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
|
|
|
|
$checked = '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo '<label style="font-weight: normal;"><input id="' . $formattedId . '" type="checkbox" name="' . $k . '[]" value="' . $option . '" ' . $checked . ' ' . $cls . ' /> ' . $option . '</label><br />';
|
|
|
|
|
echo '<label style="font-weight: normal;"><input id="' . $formattedId . '" type="checkbox" name="' . $k . '[]" value="' . $option . '" ' . $checked . ' ' . $cls . ' /> ' . $option . '</label><br>';
|
|
|
|
|
}
|
|
|
|
|
echo '</div></div>';
|
|
|
|
|
break;
|
|
|
|
@ -1035,10 +983,10 @@ foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
|
|
|
|
</div>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/* end custom after */
|
|
|
|
|
/* attachments */
|
|
|
|
|
if ($hesk_settings['attachments']['use']) {
|
|
|
|
|
}
|
|
|
|
|
/* end custom after */
|
|
|
|
|
/* attachments */
|
|
|
|
|
if ($hesk_settings['attachments']['use']) {
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
<div class="form-group">
|
|
|
|
@ -1048,34 +996,35 @@ if ($hesk_settings['attachments']['use']) {
|
|
|
|
|
<?php build_dropzone_markup(true); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<hr/>
|
|
|
|
|
<?php
|
|
|
|
|
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/ticket/upload-attachment.php');
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<!-- Admin options -->
|
|
|
|
|
<?php
|
|
|
|
|
if (!isset($_SESSION['as_notify'])) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!isset($_SESSION['as_notify'])) {
|
|
|
|
|
$_SESSION['as_notify'] = $_SESSION['notify_customer_new'] ? 1 : 0;
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label"><?php echo $hesklang['addop']; ?>:</label>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<label><input type="checkbox" id="notify-email" name="notify"
|
|
|
|
|
value="1" <?php echo empty($_SESSION['as_notify']) ? '' : 'checked="checked"'; ?> /> <?php echo $hesklang['seno']; ?>
|
|
|
|
|
</label><br/>
|
|
|
|
|
</label><br>
|
|
|
|
|
<label><input type="checkbox" name="show"
|
|
|
|
|
value="1" <?php echo (!isset($_SESSION['as_show']) || !empty($_SESSION['as_show'])) ? 'checked="checked"' : ''; ?> /> <?php echo $hesklang['otas']; ?>
|
|
|
|
|
</label><br/>
|
|
|
|
|
<hr/>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
if (hesk_checkPermission('can_assign_others',0))
|
|
|
|
|
{
|
|
|
|
|
if (in_array('owner',$_SESSION['iserror'])) {echo '<div class="form-group has-error">';} else {echo '<div class="form-group">';} ?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
if (hesk_checkPermission('can_assign_others',0))
|
|
|
|
|
{
|
|
|
|
|
$has_error = '';
|
|
|
|
|
if (in_array('owner',$_SESSION['iserror'])) {
|
|
|
|
|
$has_error = 'has-error';
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<div class="form-group <?php echo $has_error; ?>">
|
|
|
|
|
<label for="owner" class="col-sm-3 control-label"><?php echo $hesklang['asst2']; ?>:</label>
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<select class="form-control" name="owner" >
|
|
|
|
@ -1104,22 +1053,22 @@ if (hesk_checkPermission('can_assign_others',0))
|
|
|
|
|
?>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
elseif (hesk_checkPermission('can_assign_self',0))
|
|
|
|
|
{
|
|
|
|
|
$checked = (!isset($_SESSION['as_owner']) || !empty($_SESSION['as_owner'])) ? 'checked="checked"' : '';
|
|
|
|
|
?>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
elseif (hesk_checkPermission('can_assign_self',0))
|
|
|
|
|
{
|
|
|
|
|
$checked = (!isset($_SESSION['as_owner']) || !empty($_SESSION['as_owner'])) ? 'checked="checked"' : '';
|
|
|
|
|
?>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-9 col-sm-offset-3">
|
|
|
|
|
<label><input type="checkbox" name="assing_to_self" value="1" <?php echo $checked; ?> /> <?php echo $hesklang['asss2']; ?></label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($modsForHesk_settings['request_location']):
|
|
|
|
|
if ($modsForHesk_settings['request_location']):
|
|
|
|
|
?>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="location" class="col-md-3 control-label"><?php echo $hesklang['location_colon']; ?></label>
|
|
|
|
@ -1131,17 +1080,21 @@ if ($modsForHesk_settings['request_location']):
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<!-- Submit -->
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<!-- Submit -->
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-9 col-sm-offset-3">
|
|
|
|
|
<input type="hidden" id="latitude" name="latitude" value="E-0">
|
|
|
|
|
<input type="hidden" id="longitude" name="longitude" value="E-0">
|
|
|
|
|
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>">
|
|
|
|
|
<input type="submit" value="<?php echo $hesklang['sub_ticket']; ?>" class="btn btn-default">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
buildValidatorForTicketSubmission("form1",
|
|
|
|
|
"<?php echo addslashes($hesklang['select_at_least_one_value']); ?>");
|
|
|
|
|