|
|
@ -40,6 +40,7 @@ define('AUTOFOCUS', true);
|
|
|
|
require(HESK_PATH . 'hesk_settings.inc.php');
|
|
|
|
require(HESK_PATH . 'hesk_settings.inc.php');
|
|
|
|
require(HESK_PATH . 'inc/common.inc.php');
|
|
|
|
require(HESK_PATH . 'inc/common.inc.php');
|
|
|
|
require(HESK_PATH . 'inc/admin_functions.inc.php');
|
|
|
|
require(HESK_PATH . 'inc/admin_functions.inc.php');
|
|
|
|
|
|
|
|
require(HESK_PATH . 'inc/view_attachment_functions.inc.php');
|
|
|
|
hesk_load_database_functions();
|
|
|
|
hesk_load_database_functions();
|
|
|
|
|
|
|
|
|
|
|
|
hesk_session_start();
|
|
|
|
hesk_session_start();
|
|
|
@ -1032,18 +1033,24 @@ if ($hesk_settings['attachments']['use']) {
|
|
|
|
<label for="attachments" class="control-label col-sm-3"><?php echo $hesklang['attachments']; ?>:</label>
|
|
|
|
<label for="attachments" class="control-label col-sm-3"><?php echo $hesklang['attachments']; ?>:</label>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<?php
|
|
|
|
<div class="dropzone" id="filedrop">
|
|
|
|
for ($i = 1; $i <= $hesk_settings['attachments']['max_number']; $i++) {
|
|
|
|
<div class="fallback">
|
|
|
|
$cls = ($i == 1 && in_array('attachments', $_SESSION['iserror'])) ? ' class="isError" ' : '';
|
|
|
|
<input type="hidden" name="use-legacy-attachments" value="1">
|
|
|
|
echo '<input type="file" name="attachment[' . $i . ']" size="50" ' . $cls . ' /><br />';
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
for ($i = 1; $i <= $hesk_settings['attachments']['max_number']; $i++) {
|
|
|
|
?>
|
|
|
|
$cls = ($i == 1 && in_array('attachments', $_SESSION['iserror'])) ? ' class="isError" ' : '';
|
|
|
|
<a href="Javascript:void(0)"
|
|
|
|
echo '<input type="file" name="attachment[' . $i . ']" size="50" ' . $cls . ' /><br />';
|
|
|
|
onclick="Javascript:hesk_window('../file_limits.php',250,500);return false;"><?php echo $hesklang['ful']; ?></a>
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<a href="file_limits.php" target="_blank"
|
|
|
|
|
|
|
|
onclick="Javascript:hesk_window('file_limits.php',250,500);return false;"><?php echo $hesklang['ful']; ?></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<hr/>
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/ticket/upload-attachment.php');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
<!-- Admin options -->
|
|
|
|
<!-- Admin options -->
|
|
|
|