Merge remote-tracking branch 'remotes/origin/3-0-0' into new-staff-page
This commit is contained in:
commit
d4da338b82
@ -82,6 +82,7 @@ if (hesk_isREQUEST('reply')) {
|
|||||||
}
|
}
|
||||||
$reply = hesk_dbFetchAssoc($result);
|
$reply = hesk_dbFetchAssoc($result);
|
||||||
$ticket['message'] = $reply['message'];
|
$ticket['message'] = $reply['message'];
|
||||||
|
$ticket['html'] = $reply['html'];
|
||||||
$is_reply = 1;
|
$is_reply = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -467,7 +468,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
|
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<?php
|
<?php
|
||||||
$message = $modsForHesk_settings['rich_text_for_tickets'] ? hesk_html_entity_decode($ticket['message']) : $ticket['message'];
|
$message = $ticket['html'] ? hesk_html_entity_decode($ticket['message']) : $ticket['message'];
|
||||||
?>
|
?>
|
||||||
<textarea class="form-control htmlEditor" name="message" rows="12"
|
<textarea class="form-control htmlEditor" name="message" rows="12"
|
||||||
placeholder="<?php echo htmlspecialchars($hesklang['message']); ?>"
|
placeholder="<?php echo htmlspecialchars($hesklang['message']); ?>"
|
||||||
@ -486,26 +487,21 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group" style="text-align: center">
|
||||||
<div class="col-md-9 col-md-offset-3">
|
|
||||||
<?php
|
<?php
|
||||||
$html = $modsForHesk_settings['rich_text_for_tickets'] ? 1 : 0;
|
$html = $ticket['html'] ? 1 : 0;
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="html" value="<?php echo $html; ?>">
|
<input type="hidden" name="html" value="<?php echo $html; ?>">
|
||||||
|
<input type="submit" value="<?php echo $hesklang['save_changes']; ?>" class="btn btn-default"/>
|
||||||
<?php if (isset($_REQUEST['isManager']) && $_REQUEST['isManager']): ?>
|
<?php if (isset($_REQUEST['isManager']) && $_REQUEST['isManager']): ?>
|
||||||
<input type="hidden" name="isManager" value="1">
|
<input type="hidden" name="isManager" value="1">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="btn-group">
|
|
||||||
<input type="submit" value="<?php echo $hesklang['save_changes']; ?>" class="btn btn-primary"/>
|
|
||||||
<a class="btn btn-default" href="javascript:history.go(-1)"><?php echo $hesklang['back']; ?></a>
|
<a class="btn btn-default" href="javascript:history.go(-1)"><?php echo $hesklang['back']; ?></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
<?php if ($ticket['html']): ?>
|
||||||
<?php if ($modsForHesk_settings['rich_text_for_tickets']): ?>
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
|
@ -233,6 +233,64 @@ $show_quick_help = $show['show'];
|
|||||||
<div class="help-block with-errors"></div>
|
<div class="help-block with-errors"></div>
|
||||||
</div>
|
</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>
|
||||||
|
<!-- Department and Priority -->
|
||||||
|
<?php
|
||||||
|
$has_error = '';
|
||||||
|
|
||||||
|
if (in_array('category', $_SESSION['iserror'])) {
|
||||||
|
$has_error = 'has-error';
|
||||||
|
} elseif (in_array('category', $_SESSION['isnotice'])) {
|
||||||
|
$has_error = 'has-warning';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<div class="form-group <?php echo $has_error; ?>">
|
||||||
|
<label for="category" class="col-sm-3 control-label"><?php echo $hesklang['category']; ?><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
|
<?php
|
||||||
$has_error = '';
|
$has_error = '';
|
||||||
if (in_array('priority', $_SESSION['iserror'])) {
|
if (in_array('priority', $_SESSION['iserror'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user