-
-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
158 additions
and
27 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
lhc_web/design/defaulttheme/tpl/lhchat/cannedmsg/confirm_global.tpl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 13 additions & 7 deletions
20
lhc_web/design/defaulttheme/tpl/lhchat/cannedmsg/department.tpl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
<div class="form-group"> | ||
<label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/cannedmsg','Department');?></label> | ||
<?php | ||
|
||
<div class="row" style="max-height: 500px; overflow: auto"> | ||
|
||
<?php | ||
$params = array ( | ||
'input_name' => 'DepartmentID', | ||
'input_name' => 'DepartmentID[]', | ||
'display_name' => 'name', | ||
'css_class' => 'form-control', | ||
'selected_id' => $canned_message->department_id, | ||
'multiple' => true, | ||
'wrap_prepend' => '<div class="col-4">', | ||
'wrap_append' => '</div>', | ||
'selected_id' => $canned_message->department_ids_front, | ||
'list_function' => 'erLhcoreClassModelDepartament::getList', | ||
'list_function_params' => array_merge(array('limit' => '1000000'),$limitDepartments) | ||
'list_function_params' => array_merge(array('sort' => 'sort_priority ASC, id ASC', 'limit' => '1000000'), $limitDepartments) | ||
); | ||
|
||
if (empty($limitDepartments) || (isset($showAnyDepartment) && $showAnyDepartment == true)) { | ||
$params['optional_field'] = erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','Any'); | ||
$params['optional_field'] = erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','Any'); | ||
} | ||
|
||
echo erLhcoreClassRenderHelper::renderCombobox( $params ); ?> | ||
</div> | ||
echo erLhcoreClassRenderHelper::renderCheckbox( $params ); ?> | ||
</div></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
CREATE TABLE `lh_canned_msg_dep` ( | ||
`id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`canned_id` int(11) NOT NULL, | ||
`dep_id` int(11) NOT NULL, | ||
PRIMARY KEY (`id`), | ||
KEY `canned_id` (`canned_id`), | ||
KEY `dep_id` (`dep_id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | ||
|
||
ALTER TABLE `lh_users` | ||
CHANGE `username` `username` varchar(80) COLLATE 'utf8mb4_unicode_ci' NOT NULL AFTER `id`, | ||
COMMENT=''; | ||
|
||
ALTER TABLE `lh_users` CHANGE `departments_ids` `departments_ids` varchar(500) NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters