diff --git a/.gitignore b/.gitignore index 32828f4a..bdfa288b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ admin/archive.php admin/assign_owner.php admin/generate_spam_question.php admin/move_category.php -admin/options.php admin/priority.php admin/test_connection.php attachments/index.htm diff --git a/admin/options.php b/admin/options.php new file mode 100644 index 00000000..ca5d37f8 --- /dev/null +++ b/admin/options.php @@ -0,0 +1,329 @@ + + + + +<?php echo $hesklang['opt']; ?> + + + + + +

+ +

+ + + function hesk_saveOptions() + { + window.opener.document.getElementById(\'s_'.$id.'_val\').value = document.getElementById(\'o2\').value; + window.opener.document.getElementById(\'s_'.$id.'_maxlen\').value = document.getElementById(\'o1\').value; + window.close(); + } + + + + + + + + +
'.$hesklang['custom_l'].': +
'.$hesklang['defw'].': +
+

+ '; + break; + case 'textarea': + if (strpos($query,'#') !== false) + { + list($rows,$cols)=explode('#',$query); + } + else + { + $rows = ''; + $cols = ''; + } + echo ' + + + + + + + + +
'.$hesklang['rows'].': +
'.$hesklang['cols'].': +
+

+ '; + break; + case 'radio': + $options=str_replace('#HESK#',"\n",$query); + echo ' + + +

'.$hesklang['opt2'].'

+ +

+ '; + break; + case 'select': + $options=str_replace('#HESK#',"\n",$query); + echo ' + + +

'.$hesklang['opt3'].'

+ +

+ '; + break; + case 'checkbox': + $options=str_replace('#HESK#',"\n",$query); + echo ' + + +

'.$hesklang['opt4'].'

+ +

+ '; + break; + case 'date': + echo '

'.$hesklang['date_custom_field_text'].'

'; + break; + case 'time': + echo '

'.$hesklang['time_custom_field_text'].'

'; + break; + case 'datetime': + echo '

'.$hesklang['datetime_custom_field_text'].'

'; + break; + case 'multiselect': + $options=str_replace('#HESK#',"\n",$query); + echo ' + + +

'.$hesklang['multiple_select_custom_field_text'].'

+ +

+ '; + break; + default: + die('Invalid type'); +} +?> + +

+ +

 

+ + + + + diff --git a/language/en/text.php b/language/en/text.php index 91b3ded9..335dbc63 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -23,9 +23,13 @@ $hesklang['EMAIL_HR']='------ Reply above this line ------'; // ADDED OR MODIFIED IN Mods For HESK 2.0.0 $hesklang['date_custom_field'] = 'Date'; +$hesklang['date_custom_field_text'] = 'No options for this custom field type.'; $hesklang['time_custom_field'] = 'Time'; +$hesklang['time_custom_field_text'] = 'No options for this custom field type.'; $hesklang['datetime_custom_field'] = 'Date and time'; +$hesklang['datetime_custom_field_text'] = 'No options for this custom field type.'; $hesklang['multiple_select_custom_field'] = 'Multiple Select box'; +$hesklang['multiple_select_custom_field_text'] = 'Options for this multi-select box, enter one option per line (each line will be a choice your customers can choose from). You need to enter at least two options!'; // ADDED OR MODIFIED IN Mods For HESK 1.6.0 $hesklang['ticket_closed'] = '[#%%TRACK_ID%%] Ticket closed/resolved';