Moved content-wrapper to actual pages

merge-requests/31/head
Mike Koch 7 years ago
parent 916ce2d244
commit d55e19c5d6

@ -52,7 +52,8 @@ else {
} }
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<?php hesk_handle_messages(); ?> <?php hesk_handle_messages(); ?>
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
@ -111,6 +112,7 @@ else {
hesk_cleanSessionVars('hide'); hesk_cleanSessionVars('hide');
?> ?>
</section> </section>
</div>
<?php <?php

@ -289,7 +289,8 @@ $modsForHesk_settings = mfh_getSettings();
} }
//--> //-->
</script> </script>
<section class="content"> <div class="content-wrapper">
<section class="content">
<?php <?php
/* This will handle error, success and notice messages */ /* This will handle error, success and notice messages */
hesk_handle_messages(); hesk_handle_messages();
@ -3741,6 +3742,7 @@ $modsForHesk_settings = mfh_getSettings();
</div> </div>
</form> </form>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');

@ -633,11 +633,11 @@ if ($ticket['email'] != '') {
} }
} }
// TODO Here we go!
/* Print admin navigation */ /* Print admin navigation */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<?php <?php
/* This will handle error, success and notice messages */ /* This will handle error, success and notice messages */
hesk_handle_messages(); hesk_handle_messages();
@ -1253,6 +1253,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<?php } <?php }
?> ?>
</section> </section>
</div>
<div style="display: none"> <div style="display: none">
<p id="lang_ticket_due_date_updated"><?php echo $hesklang['ticket_due_date_updated']; ?></p> <p id="lang_ticket_due_date_updated"><?php echo $hesklang['ticket_due_date_updated']; ?></p>
<p id="lang_none"><?php echo $hesklang['none']; ?></p> <p id="lang_none"><?php echo $hesklang['none']; ?></p>

@ -62,7 +62,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
// Print main manage users page // Print main manage users page
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
<h1 class="box-title"> <h1 class="box-title">
@ -230,6 +231,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');

@ -13,7 +13,7 @@
define('IN_SCRIPT', 1); define('IN_SCRIPT', 1);
define('HESK_PATH', '../'); define('HESK_PATH', '../');
define('PAGE_TITLE', 'ADMIN_TOOLS'); define('PAGE_TITLE', 'ADMIN_BANNED_EMAILS');
define('MFH_PAGE_LAYOUT', 'TOP_ONLY'); define('MFH_PAGE_LAYOUT', 'TOP_ONLY');
/* Get all the required files and functions */ /* Get all the required files and functions */
@ -51,7 +51,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<div class="box-body"> <div class="box-body">
<div class="nav-tabs-custom"> <div class="nav-tabs-custom">
@ -211,14 +212,6 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
</tbody> </tbody>
</table> </table>
<div align="center">
<table border="0" cellspacing="1" cellpadding="3" class="white" width="100%">
<?php
?>
</table>
</div>
<?php <?php
} }
@ -230,9 +223,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();

@ -13,7 +13,7 @@
define('IN_SCRIPT', 1); define('IN_SCRIPT', 1);
define('HESK_PATH', '../'); define('HESK_PATH', '../');
define('PAGE_TITLE', 'ADMIN_TOOLS'); define('PAGE_TITLE', 'ADMIN_BANNED_IPS');
define('MFH_PAGE_LAYOUT', 'TOP_ONLY'); define('MFH_PAGE_LAYOUT', 'TOP_ONLY');
/* Get all the required files and functions */ /* Get all the required files and functions */
@ -53,7 +53,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<div class="box-body"> <div class="box-body">
<div class="nav-tabs-custom"> <div class="nav-tabs-custom">
@ -284,8 +285,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();

@ -78,7 +78,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<div class="box"> <div class="box">
@ -156,6 +157,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<div class="modal fade" id="create-event-modal" tabindex="-1" role="dialog" style="overflow: hidden"> <div class="modal fade" id="create-event-modal" tabindex="-1" role="dialog" style="overflow: hidden">
<div class="modal-dialog modal-lg" role="document"> <div class="modal-dialog modal-lg" role="document">
<div class="modal-content"> <div class="modal-content">

@ -62,7 +62,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
// Print main manage users page // Print main manage users page
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<?php <?php
/* This will handle error, success and notice messages */ /* This will handle error, success and notice messages */
hesk_handle_messages(); hesk_handle_messages();
@ -836,6 +837,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
hesk_cleanSessionVars( array('new_cf', 'edit_cf') ); hesk_cleanSessionVars( array('new_cf', 'edit_cf') );

@ -82,14 +82,14 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
/* Print admin navigation */ /* Print admin navigation */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<ol class="breadcrumb"> <div class="content-wrapper">
<li> <ol class="breadcrumb">
<a href="admin_ticket.php?track=<?php echo $trackingID; ?>&amp;Refresh=<?php echo mt_rand(10000, 99999); ?>"><?php echo $hesklang['ticket'] . ' ' . $trackingID; ?></a> <li>
</li> <a href="admin_ticket.php?track=<?php echo $trackingID; ?>&amp;Refresh=<?php echo mt_rand(10000, 99999); ?>"><?php echo $hesklang['ticket'] . ' ' . $trackingID; ?></a>
<li class="active"><?php echo $hesklang['ednote']; ?></li> </li>
</ol> <li class="active"><?php echo $hesklang['ednote']; ?></li>
</ol>
<section class="content"> <section class="content">
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
<h1 class="box-title"> <h1 class="box-title">
@ -127,8 +127,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();
?>

@ -252,350 +252,349 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
/* Print admin navigation */ /* Print admin navigation */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<div class="content-wrapper">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li> <li>
<a href="admin_ticket.php?track=<?php echo $trackingID; ?>&amp;Refresh=<?php echo mt_rand(10000, 99999); ?>"><?php echo $hesklang['ticket'] . ' ' . $trackingID; ?></a> <a href="admin_ticket.php?track=<?php echo $trackingID; ?>&amp;Refresh=<?php echo mt_rand(10000, 99999); ?>"><?php echo $hesklang['ticket'] . ' ' . $trackingID; ?></a>
</li> </li>
<li class="active"><?php echo $hesklang['edtt']; ?></li> <li class="active"><?php echo $hesklang['edtt']; ?></li>
</ol> </ol>
<section class="content">
<section class="content"> <div class="box">
<div class="box"> <div class="box-header with-border">
<div class="box-header with-border"> <h1 class="box-title">
<h1 class="box-title"> <?php echo $hesklang['edtt']; ?>
<?php echo $hesklang['edtt']; ?> </h1>
</h1> <div class="box-tools pull-right">
<div class="box-tools pull-right"> <button type="button" class="btn btn-box-tool" data-widget="collapse">
<button type="button" class="btn btn-box-tool" data-widget="collapse"> <i class="fa fa-minus"></i>
<i class="fa fa-minus"></i> </button>
</button> </div>
</div> </div>
</div> <div class="box-body">
<div class="box-body">
<?php
$onsubmit = '';
if ($modsForHesk_settings['rich_text_for_tickets']) {
$onsubmit = 'onsubmit="return validateRichText(\'message-help-block\', \'message-group\', \'message\', \''.htmlspecialchars($hesklang['this_field_is_required']).'\')"';
}
?>
<form role="form" class="form-horizontal" method="post" action="edit_post.php" name="form1" <?php echo $onsubmit; ?>>
<?php <?php
/* If it's not a reply edit all the fields */ $onsubmit = '';
if (!$is_reply) { if ($modsForHesk_settings['rich_text_for_tickets']) {
if ($hesk_settings['can_sel_lang']) { $onsubmit = 'onsubmit="return validateRichText(\'message-help-block\', \'message-group\', \'message\', \''.htmlspecialchars($hesklang['this_field_is_required']).'\')"';
?> }
?>
<form role="form" class="form-horizontal" method="post" action="edit_post.php" name="form1" <?php echo $onsubmit; ?>>
<?php
/* If it's not a reply edit all the fields */
if (!$is_reply) {
if ($hesk_settings['can_sel_lang']) {
?>
<div class="form-group">
<label for="customerLanguage"
class="col-sm-3 control-label"><?php echo $hesklang['chol']; ?></label>
<div class="col-sm-9">
<select name="customerLanguage" id="customerLanguage" class="form-control">
<?php hesk_listLanguages(); ?>
</select>
</div>
</div>
<?php } else {
echo '<input type="hidden" name="customerLanguage" value="' . $ticket['language'] . '">';
} ?>
<div class="form-group"> <div class="form-group">
<label for="customerLanguage" <?php
class="col-sm-3 control-label"><?php echo $hesklang['chol']; ?></label> $required = '';
$required_attribute = '';
if ($hesk_settings['require_subject'] == 1) {
$required = ' <span class="important">*</span>';
$required_attribute = 'data-error="' . $hesklang['this_field_is_required'] . '" required';
}
?>
<label for="subject" class="col-sm-3 control-label"><?php echo $hesklang['subject'] . $required; ?></label>
<div class="col-sm-9"> <div class="col-sm-9">
<select name="customerLanguage" id="customerLanguage" class="form-control"> <input class="form-control" type="text" name="subject" size="40" maxlength="40"
<?php hesk_listLanguages(); ?> value="<?php echo $ticket['subject']; ?>"
</select> placeholder="<?php echo htmlspecialchars($hesklang['subject']); ?>"/>
</div> </div>
</div> </div>
<?php } else { <div class="form-group">
echo '<input type="hidden" name="customerLanguage" value="' . $ticket['language'] . '">'; <label for="name" class="col-sm-3 control-label">
} ?> <?php echo $hesklang['name']; ?>
<div class="form-group"> <span class="important">*</span>
<?php </label>
$required = '';
$required_attribute = '';
if ($hesk_settings['require_subject'] == 1) {
$required = ' <span class="important">*</span>';
$required_attribute = 'data-error="' . $hesklang['this_field_is_required'] . '" required';
}
?>
<label for="subject" class="col-sm-3 control-label"><?php echo $hesklang['subject'] . $required; ?></label>
<div class="col-sm-9"> <div class="col-sm-9">
<input class="form-control" type="text" name="subject" size="40" maxlength="40" <input class="form-control" type="text" name="name" size="40" maxlength="30"
value="<?php echo $ticket['subject']; ?>" value="<?php echo $ticket['name']; ?>"
placeholder="<?php echo htmlspecialchars($hesklang['subject']); ?>"/> placeholder="<?php echo htmlspecialchars($hesklang['name']); ?>"
data-error="<?php echo $hesklang['this_field_is_required']; ?>"
required>
</div>
</div> </div>
</div> <div class="form-group">
<div class="form-group"> <?php
<label for="name" class="col-sm-3 control-label"> $required = '';
<?php echo $hesklang['name']; ?> $required_attribute = '';
<span class="important">*</span> if ($hesk_settings['require_email']) {
</label> $required = ' <span class="important">*</span>';
$required_attribute = 'data-error="' . $hesklang['this_field_is_required'] . '" required';
<div class="col-sm-9"> }
<input class="form-control" type="text" name="name" size="40" maxlength="30" ?>
value="<?php echo $ticket['name']; ?>" <label for="email"
placeholder="<?php echo htmlspecialchars($hesklang['name']); ?>" class="col-sm-3 control-label"><?php echo $hesklang['email'] . $required; ?></label>
data-error="<?php echo $hesklang['this_field_is_required']; ?>"
required> <div class="col-sm-9">
<input class="form-control" type="text" name="email" size="40" maxlength="1000"
value="<?php echo $ticket['email']; ?>"
placeholder="<?php echo htmlspecialchars($hesklang['email']); ?>"
<?php echo $required_attribute ?>>
<div class="help-block with-errors"></div>
</div>
</div> </div>
</div>
<div class="form-group">
<?php <?php
$required = ''; foreach ($hesk_settings['custom_fields'] as $k => $v) {
$required_attribute = ''; if ($v['use'] && hesk_is_custom_field_in_category($k, $ticket['category'])) {
if ($hesk_settings['require_email']) { $k_value = $ticket[$k];
$required = ' <span class="important">*</span>';
$required_attribute = 'data-error="' . $hesklang['this_field_is_required'] . '" required'; if ($v['type'] == 'checkbox') {
} $k_value = explode('<br>', $k_value);
?> }
<label for="email"
class="col-sm-3 control-label"><?php echo $hesklang['email'] . $required; ?></label> if ($v['req'] == 2) {
$v['req'] = '<span class="important">*</span>';
<div class="col-sm-9"> $required_attribute = 'data-error="' . $hesklang['this_field_is_required'] . '" required';
<input class="form-control" type="text" name="email" size="40" maxlength="1000" } else {
value="<?php echo $ticket['email']; ?>" $v['req'] = '';
placeholder="<?php echo htmlspecialchars($hesklang['email']); ?>" $required_attribute = '';
<?php echo $required_attribute ?>> }
<div class="help-block with-errors"></div>
</div> switch ($v['type']) {
</div> /* Radio box */
<?php case 'radio':
foreach ($hesk_settings['custom_fields'] as $k => $v) { $cls = in_array($k, $_SESSION['iserror']) ? ' isError' : '';
if ($v['use'] && hesk_is_custom_field_in_category($k, $ticket['category'])) { echo '
$k_value = $ticket[$k]; <div class="form-group' . $cls . '">
<label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label>
<div class="col-sm-9">';
foreach ($v['value']['radio_options'] as $option) {
if (strlen($k_value) == 0) {
$k_value = $option;
$checked = empty($v['value']['no_default']) ? 'checked="checked"' : '';
} elseif ($k_value == $option) {
$k_value = $option;
$checked = 'checked="checked"';
} else {
$checked = '';
}
echo '<div class="radio"><label><input type="radio" name="' . $k . '" value="' . $option . '" ' . $checked . ' ' . $required_attribute . '> ' . $option . '</label></div>';
}
echo '<div class="help-block with-errors"></div></div>
</div>';
if ($v['type'] == 'checkbox') { break;
$k_value = explode('<br>', $k_value);
}
if ($v['req'] == 2) { /* Select drop-down box */
$v['req'] = '<span class="important">*</span>'; case 'select':
$required_attribute = 'data-error="' . $hesklang['this_field_is_required'] . '" required';
} else {
$v['req'] = '';
$required_attribute = '';
}
switch ($v['type']) { $cls = in_array($k, $_SESSION['iserror']) ? ' isError' : '';
/* Radio box */
case 'radio':
$cls = in_array($k, $_SESSION['iserror']) ? ' isError' : '';
echo '
<div class="form-group' . $cls . '">
<label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label>
<div class="col-sm-9">';
foreach ($v['value']['radio_options'] as $option) {
if (strlen($k_value) == 0) {
$k_value = $option;
$checked = empty($v['value']['no_default']) ? 'checked="checked"' : '';
} elseif ($k_value == $option) {
$k_value = $option;
$checked = 'checked="checked"';
} else {
$checked = '';
}
echo '<div class="radio"><label><input type="radio" name="' . $k . '" value="' . $option . '" ' . $checked . ' ' . $required_attribute . '> ' . $option . '</label></div>'; echo '
} <div class="form-group">
echo '<div class="help-block with-errors"></div></div> <label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label>
</div>'; <div class="col-sm-9">
<select name="' . $k . '" class="form-control" ' . $required_attribute . '>';
break; // Show "Click to select"?
if (!empty($v['value']['show_select'])) {
/* Select drop-down box */ echo '<option value="">' . $hesklang['select'] . '</option>';
case 'select':
$cls = in_array($k, $_SESSION['iserror']) ? ' isError' : '';
echo '
<div class="form-group">
<label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label>
<div class="col-sm-9">
<select name="' . $k . '" class="form-control" ' . $required_attribute . '>';
// Show "Click to select"?
if (!empty($v['value']['show_select'])) {
echo '<option value="">' . $hesklang['select'] . '</option>';
}
foreach ($v['value']['select_options'] as $option) {
if ($k_value == $option) {
$k_value = $option;
$selected = 'selected';
} else {
$selected = '';
} }
echo '<option ' . $selected . '>' . $option . '</option>'; foreach ($v['value']['select_options'] as $option) {
} if ($k_value == $option) {
$k_value = $option;
$selected = 'selected';
} else {
$selected = '';
}
echo '</select> echo '<option ' . $selected . '>' . $option . '</option>';
<div class="help-block with-errors"></div>
</div>
</div>';
break;
/* Checkbox */
case 'checkbox':
$cls = in_array($k, $_SESSION['iserror']) ? ' isError' : '';
echo '
<div class="form-group' . $cls . '">
<label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label>
<div class="col-sm-9">';
foreach ($v['value']['checkbox_options'] as $option) {
if (in_array($option, $k_value)) {
$checked = 'checked';
} else {
$checked = '';
} }
echo '<div class="checkbox"><label><input type="checkbox" name="' . $k . '[]" value="' . $option . '" ' . $checked . ' ' . $required_attribute . '> ' . $option . '</label></div>'; echo '</select>
} <div class="help-block with-errors"></div>
echo '<div class="help-block with-errors"></div> </div>
</div> </div>';
</div>'; break;
break;
/* Checkbox */
/* Large text box */ case 'checkbox':
case 'textarea': $cls = in_array($k, $_SESSION['iserror']) ? ' isError' : '';
$cls = in_array($k, $_SESSION['iserror']) ? ' isError' : ''; echo '
$k_value = hesk_msgToPlain($k_value, 0, 0); <div class="form-group' . $cls . '">
<label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label>
echo ' <div class="col-sm-9">';
<div class="form-group' . $cls . '"> foreach ($v['value']['checkbox_options'] as $option) {
<label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label> if (in_array($option, $k_value)) {
<div class="col-sm-9"> $checked = 'checked';
<textarea name="' . $k . '" class="form-control" rows="' . intval($v['value']['rows']) . '" cols="' . intval($v['value']['cols']) . '" ' . $required_attribute . '>' . $k_value . '</textarea> } else {
<div class="help-block with-errors"></div> $checked = '';
</div> }
</div>';
break; echo '<div class="checkbox"><label><input type="checkbox" name="' . $k . '[]" value="' . $option . '" ' . $checked . ' ' . $required_attribute . '> ' . $option . '</label></div>';
}
echo '<div class="help-block with-errors"></div>
</div>
</div>';
break;
// Date /* Large text box */
case 'date': case 'textarea':
if ($required_attribute !== '') { $cls = in_array($k, $_SESSION['iserror']) ? ' isError' : '';
$required_attribute .= ' pattern="[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])"'; $k_value = hesk_msgToPlain($k_value, 0, 0);
}
$cls = in_array($k, $_SESSION['iserror']) ? ' isError' : ''; echo '
<div class="form-group' . $cls . '">
<label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label>
<div class="col-sm-9">
<textarea name="' . $k . '" class="form-control" rows="' . intval($v['value']['rows']) . '" cols="' . intval($v['value']['cols']) . '" ' . $required_attribute . '>' . $k_value . '</textarea>
<div class="help-block with-errors"></div>
</div>
</div>';
break;
$k_value = hesk_custom_date_display_format($k_value, 'Y-m-d'); // Date
case 'date':
if ($required_attribute !== '') {
$required_attribute .= ' pattern="[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])"';
}
echo ' $cls = in_array($k, $_SESSION['iserror']) ? ' isError' : '';
<div class="form-group' . $cls . '">
<label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label>
<div class="col-sm-9">
<input type="text" name="' . $k . '" value="' . $k_value . '" class="datepicker form-control" size="10" ' . $required_attribute . '>
<div class="help-block with-errors"></div>
</div>
</div>';
break;
// Email $k_value = hesk_custom_date_display_format($k_value, 'Y-m-d');
case 'email':
$cls = in_array($k, $_SESSION['iserror']) ? ' class="isError" ' : '';
$suggest = $hesk_settings['detect_typos'] ? 'onblur="Javascript:hesk_suggestEmail(\'' . $k . '\', \'' . $k . '_suggestions\', 0, 1' . ($v['value']['multiple'] ? ',1' : '') . ')"' : ''; echo '
<div class="form-group' . $cls . '">
<label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label>
<div class="col-sm-9">
<input type="text" name="' . $k . '" value="' . $k_value . '" class="datepicker form-control" size="10" ' . $required_attribute . '>
<div class="help-block with-errors"></div>
</div>
</div>';
break;
// Email
case 'email':
$cls = in_array($k, $_SESSION['iserror']) ? ' class="isError" ' : '';
$suggest = $hesk_settings['detect_typos'] ? 'onblur="Javascript:hesk_suggestEmail(\'' . $k . '\', \'' . $k . '_suggestions\', 0, 1' . ($v['value']['multiple'] ? ',1' : '') . ')"' : '';
echo ' echo '
<div class="form-group' . $cls . '"> <div class="form-group' . $cls . '">
<label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label> <label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label>
<div class="col-sm-9"> <div class="col-sm-9">
<input class="form-control" type="text" name="' . $k . '" id="' . $k . '" value="' . $k_value . '" size="40" ' . $suggest . ' ' . $required_attribute . '> <input class="form-control" type="text" name="' . $k . '" id="' . $k . '" value="' . $k_value . '" size="40" ' . $suggest . ' ' . $required_attribute . '>
<div class="help-block with-errors"></div> <div class="help-block with-errors"></div>
</div>
<div id="' . $k . '_suggestions"></div>
</div> </div>
<div id="' . $k . '_suggestions"></div> ';
</div> break;
';
break; // Hidden (same as text for staff)
case 'hidden':
// Hidden (same as text for staff) case 'readonly':
case 'hidden': default:
case 'readonly': if (strlen($k_value) != 0) {
default: $v['value']['default_value'] = $k_value;
if (strlen($k_value) != 0) { }
$v['value']['default_value'] = $k_value;
} $cls = in_array($k, $_SESSION['iserror']) ? ' isError' : '';
$cls = in_array($k, $_SESSION['iserror']) ? ' isError' : ''; echo '
<div class="form-group' . $cls . '">
echo ' <label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label>
<div class="form-group' . $cls . '"> <div class="col-sm-9">
<label for="' . $k . '" class="col-sm-3 control-label">' . $v['name'] . ' ' . $v['req'] . '</label> <input type="text" class="form-control" name="' . $k . '" size="40" maxlength="' . intval($v['value']['max_length']) . '" value="' . $v['value']['default_value'] . '" ' . $required_attribute . '>
<div class="col-sm-9"> <div class="help-block with-errors"></div>
<input type="text" class="form-control" name="' . $k . '" size="40" maxlength="' . intval($v['value']['max_length']) . '" value="' . $v['value']['default_value'] . '" ' . $required_attribute . '> </div>
<div class="help-block with-errors"></div>
</div> </div>
</div> ';
'; }
} }
} }
} } ?>
} ?> <div class="form-group" id="message-group">
<div class="form-group" id="message-group">
<?php
$required = '';
$required_attribute = '';
if ($hesk_settings['require_message'] == 1) {
$required = ' <span class="important">*</span>';
$required_attribute = 'data-error="' . $hesklang['this_field_is_required'] . '" required';
}
?>
<label for="message" class="col-sm-3 control-label"><?php echo $hesklang['message'] . $required; ?></label>
<div class="col-sm-9">
<?php <?php
$message = $ticket['html'] ? hesk_html_entity_decode($ticket['message']) : $ticket['message']; $required = '';
$required_attribute = '';
if ($hesk_settings['require_message'] == 1) {
$required = ' <span class="important">*</span>';
$required_attribute = 'data-error="' . $hesklang['this_field_is_required'] . '" required';
}
?> ?>
<textarea class="form-control htmlEditor" name="message" rows="12" <label for="message" class="col-sm-3 control-label"><?php echo $hesklang['message'] . $required; ?></label>
placeholder="<?php echo htmlspecialchars($hesklang['message']); ?>"
cols="60" <?php echo $required_attribute; ?>><?php echo $message; ?></textarea> <div class="col-sm-9">
<div class="help-block with-errors" id="message-help-block"></div> <?php
$message = $ticket['html'] ? hesk_html_entity_decode($ticket['message']) : $ticket['message'];
?>
<textarea class="form-control htmlEditor" name="message" rows="12"
placeholder="<?php echo htmlspecialchars($hesklang['message']); ?>"
cols="60" <?php echo $required_attribute; ?>><?php echo $message; ?></textarea>
<div class="help-block with-errors" id="message-help-block"></div>
</div>
</div> </div>
</div> <div class="form-group">
<div class="form-group"> <input type="hidden" name="save" value="1">
<input type="hidden" name="save" value="1"> <input type="hidden" name="track" value="<?php echo $trackingID; ?>">
<input type="hidden" name="track" value="<?php echo $trackingID; ?>"> <input type="hidden" name="token" value="<?php hesk_token_echo(); ?>">
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>"> <?php
<?php if ($is_reply) {
if ($is_reply) { ?>
<input type="hidden" name="reply" value="<?php echo $tmpvar['id']; ?>">
<?php
}
?> ?>
<input type="hidden" name="reply" value="<?php echo $tmpvar['id']; ?>"> </div>
<div class="form-group" style="text-align: center">
<?php <?php
} $html = $ticket['html'] ? 1 : 0;
?> ?>
</div> <input type="hidden" name="html" value="<?php echo $html; ?>">
<div class="form-group" style="text-align: center"> <input type="submit" value="<?php echo $hesklang['save_changes']; ?>" class="btn btn-default">
<?php <?php if (isset($_REQUEST['isManager']) && $_REQUEST['isManager']): ?>
$html = $ticket['html'] ? 1 : 0; <input type="hidden" name="isManager" value="1">
?> <?php endif; ?>
<input type="hidden" name="html" value="<?php echo $html; ?>"> <a class="btn btn-default" href="javascript:history.go(-1)"><?php echo $hesklang['back']; ?></a>
<input type="submit" value="<?php echo $hesklang['save_changes']; ?>" class="btn btn-default"> </div>
<?php if (isset($_REQUEST['isManager']) && $_REQUEST['isManager']): ?> </form>
<input type="hidden" name="isManager" value="1"> </div>
<?php endif; ?>
<a class="btn btn-default" href="javascript:history.go(-1)"><?php echo $hesklang['back']; ?></a>
</div>
</form>
</div> </div>
<script>
buildValidatorForTicketSubmission('form1', "<?php echo addslashes($hesklang['select_at_least_one_value']); ?>");
</script>
<?php if ($ticket['html']): ?>
<script type="text/javascript">
/* <![CDATA[ */
tinyMCE.init({
mode: "textareas",
editor_selector: "htmlEditor",
elements: "content",
theme: "advanced",
convert_urls: false,
theme_advanced_buttons1: "cut,copy,paste,|,undo,redo,|,formatselect,fontselect,fontsizeselect,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull",
theme_advanced_buttons2: "sub,sup,|,charmap,|,bullist,numlist,|,outdent,indent,insertdate,inserttime,preview,|,forecolor,backcolor,|,hr,removeformat,visualaid,|,link,unlink,anchor,image,cleanup,code",
theme_advanced_buttons3: "",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: true
});
/* ]]> */
</script>
<?php endif; ?>
</section>
</div> </div>
<script>
buildValidatorForTicketSubmission('form1', "<?php echo addslashes($hesklang['select_at_least_one_value']); ?>");
</script>
<?php if ($ticket['html']): ?>
<script type="text/javascript">
/* <![CDATA[ */
tinyMCE.init({
mode: "textareas",
editor_selector: "htmlEditor",
elements: "content",
theme: "advanced",
convert_urls: false,
theme_advanced_buttons1: "cut,copy,paste,|,undo,redo,|,formatselect,fontselect,fontsizeselect,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull",
theme_advanced_buttons2: "sub,sup,|,charmap,|,bullist,numlist,|,outdent,indent,insertdate,inserttime,preview,|,forecolor,backcolor,|,hr,removeformat,visualaid,|,link,unlink,anchor,image,cleanup,code",
theme_advanced_buttons3: "",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: true
});
/* ]]> */
</script>
<?php endif; ?>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();
?>

@ -643,7 +643,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<div class="box-header"> <div class="box-header">
<h1 class="box-title"> <h1 class="box-title">
@ -900,7 +901,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();
?>

@ -223,48 +223,47 @@ LEFT(`message`, 400) AS `message`,
/* Prepare variables used in search and forms */ /* Prepare variables used in search and forms */
require_once(HESK_PATH . 'inc/prepare_ticket_search.inc.php'); require_once(HESK_PATH . 'inc/prepare_ticket_search.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<div class="box"> <section class="content">
<div class="box-header with-border"> <div class="box">
<h1 class="box-title"> <div class="box-header with-border">
<?php echo $hesklang['tickets']; ?> <h1 class="box-title">
</h1> <?php echo $hesklang['tickets']; ?>
<div class="box-tools pull-right"> </h1>
<button type="button" class="btn btn-box-tool" data-widget="collapse"> <div class="box-tools pull-right">
<i class="fa fa-minus"></i> <button type="button" class="btn btn-box-tool" data-widget="collapse">
</button> <i class="fa fa-minus"></i>
</button>
</div>
</div> </div>
</div> <div class="box-body">
<div class="box-body"> <?php $handle = hesk_handle_messages(); ?>
<?php $handle = hesk_handle_messages(); ?> <div class="checkbox">
<div class="checkbox"> <label>
<label> <input type="checkbox" onclick="toggleAutoRefresh(this);" id="reloadCB">
<input type="checkbox" onclick="toggleAutoRefresh(this);" id="reloadCB"> <?php echo $hesklang['arp']; ?>
<?php echo $hesklang['arp']; ?> <span id="timer"></span>
<span id="timer"></span> </label>
</label> </div>
<script type="text/javascript">heskCheckReloading();</script>
<?php
if ($handle !== FALSE) {
$href = 'find_tickets.php';
require_once(HESK_PATH . 'inc/ticket_list.inc.php');
echo '<br>';
}
/* Clean unneeded session variables */
hesk_cleanSessionVars('hide');
/* Show the search form */
require_once(HESK_PATH . 'inc/show_search_form.inc.php');
?>
</div> </div>
<script type="text/javascript">heskCheckReloading();</script>
<?php
if ($handle !== FALSE) {
$href = 'find_tickets.php';
require_once(HESK_PATH . 'inc/ticket_list.inc.php');
echo '<br>';
}
/* Clean unneeded session variables */
hesk_cleanSessionVars('hide');
/* Show the search form */
require_once(HESK_PATH . 'inc/show_search_form.inc.php');
?>
</div> </div>
</div> </section>
</section> </div>
<?php <?php
/* Print footer */ /* Print footer */
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();
?>

@ -151,67 +151,69 @@ function hesk_kb_search($query)
$num = hesk_dbNumRows($res); $num = hesk_dbNumRows($res);
$show_default_category = false; $show_default_category = false;
?> ?>
<section style="padding: 15px"> <div class="content-wrapper">
<div class="box"> <section style="padding: 15px">
<div class="box-header with-border"> <div class="box">
<h1 class="box-title"> <div class="box-header with-border">
<?php echo $hesklang['sr']; ?> (<?php echo $num; ?>) <h1 class="box-title">
</h1> <?php echo $hesklang['sr']; ?> (<?php echo $num; ?>)
<div class="box-tools pull-right"> </h1>
<button type="button" class="btn btn-box-tool" data-widget="collapse"> <div class="box-tools pull-right">
<i class="fa fa-minus"></i> <button type="button" class="btn btn-box-tool" data-widget="collapse">
</button> <i class="fa fa-minus"></i>
</button>
</div>
</div> </div>
</div> <div class="box-body">
<div class="box-body"> <?php
<?php if ($num == 0) {
if ($num == 0) { echo '<i>'.$hesklang['nosr'].'</i>';
echo '<i>'.$hesklang['nosr'].'</i>'; $show_default_category = true;
$show_default_category = true; } else {
} else { ?>
?> <table class="table table-striped">
<table class="table table-striped"> <?php
<?php while ($article = hesk_dbFetchAssoc($res))
while ($article = hesk_dbFetchAssoc($res))
{
$txt = hesk_kbArticleContentPreview($article['content']);
if ($hesk_settings['kb_rating'])
{
$rat = '<td width="1" valign="top">' . mfh_get_stars($article['rating']) . '</td>';
}
else
{ {
$rat = ''; $txt = hesk_kbArticleContentPreview($article['content']);
}
echo ' if ($hesk_settings['kb_rating'])
<tr> {
<td> $rat = '<td width="1" valign="top">' . mfh_get_stars($article['rating']) . '</td>';
<table border="0" width="100%" cellspacing="0" cellpadding="1"> }
<tr> else
<td width="1" valign="top"><span class="glyphicon glyphicon-file"></span></td> {
<td valign="top"><a href="knowledgebase_private.php?article='.$article['id'].'">'.$article['subject'].'</a></td> $rat = '';
'.$rat.' }
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
<tr>
<td width="1" valign="top"><img src="../img/blank.gif" width="16" height="10" style="vertical-align:middle" alt="" /></td>
<td><span class="article_list">'.$txt.'</span></td>
</tr>
</table>
</td> echo '
</tr>'; <tr>
} <td>
?> <table border="0" width="100%" cellspacing="0" cellpadding="1">
</table> <tr>
<a href="javascript:history.go(-1)"><span class="glyphicon glyphicon-circle-arrow-left"></span>&nbsp;<?php echo $hesklang['back']; ?></a> <td width="1" valign="top"><span class="glyphicon glyphicon-file"></span></td>
<?php } ?> <td valign="top"><a href="knowledgebase_private.php?article='.$article['id'].'">'.$article['subject'].'</a></td>
'.$rat.'
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
<tr>
<td width="1" valign="top"><img src="../img/blank.gif" width="16" height="10" style="vertical-align:middle" alt="" /></td>
<td><span class="article_list">'.$txt.'</span></td>
</tr>
</table>
</td>
</tr>';
}
?>
</table>
<a href="javascript:history.go(-1)"><span class="glyphicon glyphicon-circle-arrow-left"></span>&nbsp;<?php echo $hesklang['back']; ?></a>
<?php } ?>
</div>
</div> </div>
</div> </section>
</section> </div>
<?php <?php
return $show_default_category; return $show_default_category;
} // END hesk_kb_search() } // END hesk_kb_search()
@ -229,6 +231,7 @@ function hesk_show_kb_article($artid)
hesk_dbQuery('UPDATE `'.hesk_dbEscape($hesk_settings['db_pfix'])."kb_articles` SET `views`=`views`+1 WHERE `id`={$artid}"); hesk_dbQuery('UPDATE `'.hesk_dbEscape($hesk_settings['db_pfix'])."kb_articles` SET `views`=`views`+1 WHERE `id`={$artid}");
?> ?>
<div class="content-wrapper">
<section class="content"> <section class="content">
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
@ -392,6 +395,7 @@ function hesk_show_kb_article($artid)
} }
?> ?>
</section> </section>
</div>
<?php <?php
} // END hesk_show_kb_article() } // END hesk_show_kb_article()
@ -410,6 +414,7 @@ function hesk_show_kb_category($catid, $is_search = 0) {
$thiscat = hesk_dbFetchAssoc($res) or hesk_error($hesklang['kb_cat_inv']); $thiscat = hesk_dbFetchAssoc($res) or hesk_error($hesklang['kb_cat_inv']);
?> ?>
<div class="content-wrapper">
<section class="content"> <section class="content">
<?php if ($thiscat['parent']): ?> <?php if ($thiscat['parent']): ?>
<h3><?php echo $hesklang['kb_cat'].': '.$thiscat['name']; ?></h3> <h3><?php echo $hesklang['kb_cat'].': '.$thiscat['name']; ?></h3>
@ -575,6 +580,7 @@ function hesk_show_kb_category($catid, $is_search = 0) {
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
} // END hesk_show_kb_category() } // END hesk_show_kb_category()

@ -108,8 +108,8 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
} }
//--> //-->
</script> </script>
<div class="content-wrapper">
<section class="content"> <section class="content">
<div class="row"> <div class="row">
<div class="col-md-3"> <div class="col-md-3">
<div class="box"> <div class="box">
@ -175,6 +175,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();

@ -113,7 +113,8 @@ $i = 1;
$j = 0; $j = 0;
$num = hesk_dbNumRows($result); $num = hesk_dbNumRows($result);
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
<h1 class="box-title"> <h1 class="box-title">
@ -175,7 +176,7 @@ $num = hesk_dbNumRows($result);
if ($num > 1) { if ($num > 1) {
if ($j == 1) { if ($j == 1) {
echo '<img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" /> <a href="manage_canned.php?a=order&amp;replyid=' . $mysaved['id'] . '&amp;move=15&amp;token=' . hesk_token_echo(0) . '"><i class="fa fa-arrow-down icon-link green" data-toggle="tooltip" data-placement="top" title="' . $hesklang['move_dn'] . '"></i></a>'; echo '<img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" /> <a href="manage_canned.php?a=order&amp;replyid=' . $mysaved['id'] . '&amp;move=15&amp;token=' . hesk_token_echo(0) . '"><i class="fa fa-fw fa-arrow-down icon-link green" data-toggle="tooltip" data-placement="top" title="' . $hesklang['move_dn'] . '"></i></a>';
} elseif ($j == $num) { } elseif ($j == $num) {
echo '<a href="manage_canned.php?a=order&amp;replyid=' . $mysaved['id'] . '&amp;move=-15&amp;token=' . hesk_token_echo(0) . '"><i class="fa fa-arrow-up icon-link green" data-toggle="tooltip" data-placement="top" title="' . $hesklang['move_up'] . '"></i></a> <img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" />'; echo '<a href="manage_canned.php?a=order&amp;replyid=' . $mysaved['id'] . '&amp;move=-15&amp;token=' . hesk_token_echo(0) . '"><i class="fa fa-arrow-up icon-link green" data-toggle="tooltip" data-placement="top" title="' . $hesklang['move_up'] . '"></i></a> <img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" />';
} else { } else {
@ -394,7 +395,7 @@ $num = hesk_dbNumRows($result);
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();

@ -91,7 +91,8 @@ while ($mycat = hesk_dbFetchAssoc($res)) {
$options .= '>' . $mycat['name'] . '</option>'; $options .= '>' . $mycat['name'] . '</option>';
} }
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box collapsed-box"> <div class="box collapsed-box">
<div class="box-header with-border"> <div class="box-header with-border">
<h1 class="box-title"> <h1 class="box-title">
@ -362,6 +363,7 @@ while ($mycat = hesk_dbFetchAssoc($res)) {
</div> </div>
</div> </div>
</section> </section>
</div>
<!-- Edit category modal --> <!-- Edit category modal -->
<div class="modal fade" id="edit-category-modal" tabindex="-1" role="dialog" style="overflow: hidden"> <div class="modal fade" id="edit-category-modal" tabindex="-1" role="dialog" style="overflow: hidden">
<div class="modal-dialog modal-lg" role="document"> <div class="modal-dialog modal-lg" role="document">

@ -2,7 +2,7 @@
define('IN_SCRIPT', 1); define('IN_SCRIPT', 1);
define('HESK_PATH', '../'); define('HESK_PATH', '../');
define('PAGE_TITLE', 'ADMIN_TOOLS'); define('PAGE_TITLE', 'ADMIN_EMAIL_TEMPLATES');
define('MFH_PAGE_LAYOUT', 'TOP_ONLY'); define('MFH_PAGE_LAYOUT', 'TOP_ONLY');
/* Get all the required files and functions */ /* Get all the required files and functions */
@ -62,7 +62,8 @@ if ($modsForHesk_settings['html_emails']) {
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<div class="box-body"> <div class="box-body">
<div class="nav-tabs-custom"> <div class="nav-tabs-custom">
@ -263,9 +264,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();

@ -276,6 +276,7 @@ echo '';
if (!isset($_SESSION['hide']['treemenu'])) if (!isset($_SESSION['hide']['treemenu']))
{ {
?> ?>
<div class="content-wrapper">
<section class="content"> <section class="content">
<h2> <h2>
<?php echo $hesklang['kb']; ?> <?php echo $hesklang['kb']; ?>
@ -320,6 +321,7 @@ if (!isset($_SESSION['hide']['treemenu']))
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
} // END hide treemenu } // END hide treemenu
@ -370,6 +372,7 @@ if (!isset($_SESSION['hide']['new_article']))
<?php <?php
} }
?> ?>
<div class="content-wrapper">
<section class="content"> <section class="content">
<?php <?php
$catid = show_subnav('newa'); $catid = show_subnav('newa');
@ -507,6 +510,7 @@ if (!isset($_SESSION['hide']['new_article']))
</div> </div>
</form> </form>
</section> </section>
</div>
<?php <?php
} // END hide article } // END hide article
@ -520,7 +524,7 @@ if (!isset($_SESSION['hide']['new_category']))
$_SESSION['new_category'] = hesk_stripArray($_SESSION['new_category']); $_SESSION['new_category'] = hesk_stripArray($_SESSION['new_category']);
} }
?> ?>
<div class="content-wrapper">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="manage_knowledgebase.php"><?php echo $hesklang['kb']; ?></a></li> <li><a href="manage_knowledgebase.php"><?php echo $hesklang['kb']; ?></a></li>
<li class="active"><?php echo $hesklang['kb_cat_new']; ?></li> <li class="active"><?php echo $hesklang['kb_cat_new']; ?></li>
@ -593,6 +597,7 @@ if (!isset($_SESSION['hide']['new_category']))
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
} // END hide new category form } // END hide new category form
@ -622,6 +627,7 @@ function list_draft() {
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<div class="content-wrapper">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="manage_knowledgebase.php"><?php echo $hesklang['kb']; ?></a></li> <li><a href="manage_knowledgebase.php"><?php echo $hesklang['kb']; ?></a></li>
<li class="active"><?php echo $hesklang['kb_cat_man']; ?></li> <li class="active"><?php echo $hesklang['kb_cat_man']; ?></li>
@ -706,11 +712,9 @@ function list_draft() {
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
echo '&nbsp;<br />&nbsp;';
/* Clean unneeded session variables */ /* Clean unneeded session variables */
hesk_cleanSessionVars(array('hide','manage_cat','edit_article')); hesk_cleanSessionVars(array('hide','manage_cat','edit_article'));
@ -749,7 +753,7 @@ function list_private() {
$res = hesk_dbQuery("SELECT * FROM `". hesk_dbEscape($hesk_settings['db_pfix'])."kb_articles` WHERE `type`='1' " . (count($private_categories) ? " OR `catid` IN('" . implode("','", $private_categories) . "') " : '') . " ORDER BY `catid` ASC, `id` ASC"); $res = hesk_dbQuery("SELECT * FROM `". hesk_dbEscape($hesk_settings['db_pfix'])."kb_articles` WHERE `type`='1' " . (count($private_categories) ? " OR `catid` IN('" . implode("','", $private_categories) . "') " : '') . " ORDER BY `catid` ASC, `id` ASC");
$num = hesk_dbNumRows($res); $num = hesk_dbNumRows($res);
?> ?>
<div class="content-wrapper">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="manage_knowledgebase.php"><?php echo $hesklang['kb']; ?></a></li> <li><a href="manage_knowledgebase.php"><?php echo $hesklang['kb']; ?></a></li>
<li class="active"><?php echo $hesklang['kb_cat_man']; ?></li> <li class="active"><?php echo $hesklang['kb_cat_man']; ?></li>
@ -856,11 +860,8 @@ function list_private() {
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
echo '&nbsp;<br />&nbsp;';
/* Clean unneeded session variables */ /* Clean unneeded session variables */
hesk_cleanSessionVars(array('hide','manage_cat','edit_article')); hesk_cleanSessionVars(array('hide','manage_cat','edit_article'));
@ -1672,7 +1673,7 @@ function manage_category() {
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<div class="content-wrapper">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="manage_knowledgebase.php"><?php echo $hesklang['kb']; ?></a></li> <li><a href="manage_knowledgebase.php"><?php echo $hesklang['kb']; ?></a></li>
<li class="active"><?php echo $hesklang['kb_cat_man']; ?></li> <li class="active"><?php echo $hesklang['kb_cat_man']; ?></li>
@ -1911,8 +1912,8 @@ function manage_category() {
</div> </div>
<?php endif; ?> <?php endif; ?>
</section> </section>
</div>
<?php <?php
/* Clean unneeded session variables */ /* Clean unneeded session variables */
hesk_cleanSessionVars(array('hide','manage_cat','edit_article')); hesk_cleanSessionVars(array('hide','manage_cat','edit_article'));

@ -81,7 +81,8 @@ while ($row = hesk_dbFetchAssoc($res)) {
array_push($categories, $row); array_push($categories, $row);
} }
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<?php hesk_handle_messages(); ?> <?php hesk_handle_messages(); ?>
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
@ -147,6 +148,7 @@ while ($row = hesk_dbFetchAssoc($res)) {
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
foreach ($templates as $template) { foreach ($templates as $template) {
createEditModal($template, $featureArray, $categories); createEditModal($template, $featureArray, $categories);

@ -2,7 +2,8 @@
define('IN_SCRIPT', 1); define('IN_SCRIPT', 1);
define('HESK_PATH', '../'); define('HESK_PATH', '../');
define('PAGE_TITLE', 'ADMIN_TOOLS'); define('PAGE_TITLE', 'ADMIN_STATUSES');
define('MFH_PAGE_LAYOUT', 'TOP_ONLY');
/* Get all the required files and functions */ /* Get all the required files and functions */
require(HESK_PATH . 'hesk_settings.inc.php'); require(HESK_PATH . 'hesk_settings.inc.php');
@ -46,7 +47,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<div class="box-body"> <div class="box-body">
<div class="nav-tabs-custom"> <div class="nav-tabs-custom">
@ -374,9 +376,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
foreach ($statuses as $status) { foreach ($statuses as $status) {
buildEditModal($status['ID']); buildEditModal($status['ID']);

@ -14,7 +14,7 @@
define('IN_SCRIPT', 1); define('IN_SCRIPT', 1);
define('HESK_PATH', '../'); define('HESK_PATH', '../');
define('VALIDATOR', 1); define('VALIDATOR', 1);
define('PAGE_TITLE', 'ADMIN_CANNED'); define('PAGE_TITLE', 'ADMIN_TICKET_TPL');
define('MFH_PAGE_LAYOUT', 'TOP_ONLY'); define('MFH_PAGE_LAYOUT', 'TOP_ONLY');
/* Get all the required files and functions */ /* Get all the required files and functions */
@ -86,7 +86,8 @@ $i = 1;
$j = 0; $j = 0;
$num = hesk_dbNumRows($result); $num = hesk_dbNumRows($result);
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
<h1 class="box-title"> <h1 class="box-title">
@ -281,6 +282,7 @@ $num = hesk_dbNumRows($result);
</div> </div>
</div> </div>
</section> </section>
</div>
<?php if ($modsForHesk_settings['rich_text_for_tickets']): ?> <?php if ($modsForHesk_settings['rich_text_for_tickets']): ?>
<script type="text/javascript"> <script type="text/javascript">
/* <![CDATA[ */ /* <![CDATA[ */

@ -159,7 +159,8 @@ if ($action = hesk_REQUEST('a')) {
require_once(HESK_PATH . 'inc/headerAdmin.inc.php'); require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<?php hesk_handle_messages(); ?> <?php hesk_handle_messages(); ?>
<script language="Javascript" type="text/javascript"><!-- <script language="Javascript" type="text/javascript"><!--
function confirm_delete() { function confirm_delete() {
@ -341,7 +342,7 @@ EOC;
//--> //-->
</script> </script>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();
@ -434,12 +435,11 @@ function edit_user()
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<div class="content-wrapper">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="manage_users.php"><?php echo $hesklang['manage_users']; ?></a></li> <li><a href="manage_users.php"><?php echo $hesklang['manage_users']; ?></a></li>
<li class="active"><?php echo $hesklang['editing_user'] . ' ' . $_SESSION['original_user']; ?></li> <li class="active"><?php echo $hesklang['editing_user'] . ' ' . $_SESSION['original_user']; ?></li>
</ol> </ol>
<section class="content"> <section class="content">
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
@ -463,8 +463,8 @@ function edit_user()
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();
} // End edit_user() } // End edit_user()

@ -142,17 +142,17 @@ $showRs = hesk_dbQuery("SELECT `show` FROM `" . hesk_dbEscape($hesk_settings['db
$show = hesk_dbFetchAssoc($showRs); $show = hesk_dbFetchAssoc($showRs);
$show_quick_help = $show['show']; $show_quick_help = $show['show'];
?> ?>
<div class="content-wrapper">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="admin_main.php"><?php echo $hesk_settings['hesk_title']; ?></a></li> <li><a href="admin_main.php"><?php echo $hesk_settings['hesk_title']; ?></a></li>
<?php if ($number_of_categories > 1): ?> <?php if ($number_of_categories > 1): ?>
<li><a href="new_ticket.php"><?php echo $hesklang['nti2']; ?></a></li> <li><a href="new_ticket.php"><?php echo $hesklang['nti2']; ?></a></li>
<li class="active"><?php echo $hesk_settings['categories'][$category]; ?></li> <li class="active"><?php echo $hesk_settings['categories'][$category]; ?></li>
<?php else: ?> <?php else: ?>
<li class="active"><?php echo $hesklang['nti2']; ?></li> <li class="active"><?php echo $hesklang['nti2']; ?></li>
<?php endif; ?> <?php endif; ?>
</ol> </ol>
<section class="content"> <section class="content">
<?php <?php
/* This will handle error, success and notice messages */ /* This will handle error, success and notice messages */
hesk_handle_messages(); hesk_handle_messages();
@ -970,13 +970,11 @@ $show_quick_help = $show['show'];
</div> </div>
</div> </div>
</section> </section>
</div>
<script> <script>
buildValidatorForTicketSubmission("form1", buildValidatorForTicketSubmission("form1",
"<?php echo addslashes($hesklang['select_at_least_one_value']); ?>"); "<?php echo addslashes($hesklang['select_at_least_one_value']); ?>");
</script> </script>
</div>
</div>
<?php <?php
// Request for the users location if enabled // Request for the users location if enabled
@ -1019,6 +1017,7 @@ function print_select_category($number_of_categories) {
/* This will handle error, success and notice messages */ /* This will handle error, success and notice messages */
hesk_handle_messages(); hesk_handle_messages();
?> ?>
<div class="content-wrapper">
<section class="content"> <section class="content">
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
@ -1092,6 +1091,7 @@ function print_select_category($number_of_categories) {
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php

@ -69,7 +69,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
/* Print admin navigation */ /* Print admin navigation */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
<h1 class="box-title"> <h1 class="box-title">
@ -143,6 +144,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');

@ -199,7 +199,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<?php if (hesk_checkPermission('can_export', 0)) { <?php if (hesk_checkPermission('can_export', 0)) {
$canExport = true; $canExport = true;
@ -921,6 +922,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');

@ -13,7 +13,7 @@
define('IN_SCRIPT', 1); define('IN_SCRIPT', 1);
define('HESK_PATH', '../'); define('HESK_PATH', '../');
define('PAGE_TITLE', 'ADMIN_TOOLS'); define('PAGE_TITLE', 'ADMIN_SERVICE_MESSAGES');
define('MFH_PAGE_LAYOUT', 'TOP_ONLY'); define('MFH_PAGE_LAYOUT', 'TOP_ONLY');
/* Get all the required files and functions */ /* Get all the required files and functions */
@ -57,7 +57,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<div class="box-body"> <div class="box-body">
<div class="nav-tabs-custom"> <div class="nav-tabs-custom">
@ -439,6 +440,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php

@ -40,7 +40,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<?php hesk_handle_messages(); ?> <?php hesk_handle_messages(); ?>
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
@ -100,6 +101,7 @@ C9wPic7DQp9DQo=', "\112");
hesk_cleanSessionVars('hide'); hesk_cleanSessionVars('hide');
?> ?>
</section> </section>
</div>
<?php <?php

@ -2,7 +2,7 @@
define('IN_SCRIPT', 1); define('IN_SCRIPT', 1);
define('HESK_PATH', '../'); define('HESK_PATH', '../');
define('PAGE_TITLE', 'ADMIN_TOOLS'); define('PAGE_TITLE', 'ADMIN_LOGS');
define('MFH_PAGE_LAYOUT', 'TOP_ONLY'); define('MFH_PAGE_LAYOUT', 'TOP_ONLY');
/* Get all the required files and functions */ /* Get all the required files and functions */
@ -26,7 +26,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
/* Print main manage users page */ /* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<section class="content"> <div class="content-wrapper">
<section class="content">
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
<h1 class="box-title"> <h1 class="box-title">
@ -103,6 +104,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</section> </section>
</div>
<?php <?php
require_once(HESK_PATH . 'inc/footer.inc.php'); require_once(HESK_PATH . 'inc/footer.inc.php');
exit(); exit();

@ -52,7 +52,6 @@ if (defined('SHOW_ONLINE'))
// The closing div here is to close the content area on each page. Annoying, but necessary. // The closing div here is to close the content area on each page. Annoying, but necessary.
if (defined('ADMIN_PAGE')) { if (defined('ADMIN_PAGE')) {
echo ' echo '
</div>
</div>'; </div>';
} }

@ -294,7 +294,7 @@ $mails = mfh_get_mail_headers_for_dropdown($_SESSION['id'], $hesk_settings, $hes
endif; endif;
if (hesk_checkPermission('can_man_ticket_tpl', 0)): if (hesk_checkPermission('can_man_ticket_tpl', 0)):
$active = ''; $active = '';
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_CANNED') { if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TICKET_TPL') {
$active = 'active'; $active = 'active';
} }
?> ?>
@ -430,5 +430,4 @@ $mails = mfh_get_mail_headers_for_dropdown($_SESSION['id'], $hesk_settings, $hes
</ul> </ul>
</div> </div>
</nav> </nav>
</header> </header>
<div class="content-wrapper">
Loading…
Cancel
Save