?> </label> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'department_id', 'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Select department'), 'selected_id' => $input->department_id, 'css_class' => 'form-control', 'list_function' => 'erLhcoreClassModelDepartament::getList')); ?> </div> </div> <div class="col-md-4"> <div class="form-group"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'User'); ?> </label> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'user_id', 'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Select user'), 'selected_id' => $input->user_id, 'css_class' => 'form-control', 'list_function' => 'erLhcoreClassModelUser::getUserList')); ?> </div> </div> <div class="col-md-4"> <div class="form-group"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Vote status'); ?> </label> <select name="fbst" class="form-control"> <option value=""><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Any'); ?> </option>
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Referrer'); ?> </option> <option value="identifier"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Identifier'); ?> </option> <option value="dep_id"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Department'); ?> </option> </select> </div> <div class="col-sm-2 form-group col-xs-6 pl5 pr5"> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'department_id', 'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Select department'), 'selected_id' => 0, 'css_class' => 'form-control input-sm', 'ng-model' => 'online.department', 'list_function' => 'erLhcoreClassModelDepartament::getList', 'list_function_params' => $departmentParams)); ?> </div> <div class="col-sm-2 form-group col-xs-6 pl5 pr5"> <select class="form-control input-sm" id="updateTimeout" ng-model="online.updateTimeout" title="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Refresh list every'); ?> "> <option value="1">1 <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'second'); ?> </option> <option value="3">3 <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'seconds'); ?> </option>
<div class="form-group"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('user/new', 'Photo'); ?> , (jpg,png)</label> <input type="file" name="UserPhoto" value="" /> </div> <div class="form-group"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('user/new', 'User group'); ?> </label> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'DefaultGroup[]', 'selected_id' => $user->user_groups_id, 'multiple' => true, 'css_class' => 'form-control', 'list_function' => 'erLhcoreClassModelGroup::getList')); ?> </div> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('user/new', 'Disabled'); ?> <input type="checkbox" value="on" name="UserDisabled" <?php echo $user->disabled == 1 ? 'checked="checked"' : ''; ?> /></label><br> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('user/new', 'Do not show user status as online'); ?> <input type="checkbox" value="on" name="HideMyStatus" <?php
?> </label> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'chat_locale_' . $chat->id, 'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/translation', 'Automatically detected'), 'selected_id' => $chat->chat_locale, 'css_class' => 'form-control', 'list_function' => 'erLhcoreClassTranslate::getSupportedLanguages')); ?> </div> </div> <div class="col-xs-6"> <div class="form-group"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/translation', 'My language'); ?> </label> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'chat_locale_to_' . $chat->id, 'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/translation', 'Automatically detected'), 'selected_id' => $chat->chat_locale_to, 'css_class' => 'form-control', 'list_function' => 'erLhcoreClassTranslate::getSupportedLanguages')); ?> </div> </div> </div> <div class="btn-group form-group" role="group" aria-label="..."> <input type="button" value="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/translation', 'Auto translate'); ?> " class="translate-button-<?php echo $chat->id; ?> btn btn-default<?php if ($chat->chat_locale != '' && $chat->chat_locale_to != '') { ?>
</label> <input type="text" class="form-control" id="id_operator" placeholder="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'To what operator chat should be assigned automatically?'); ?> " title="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'To what operator chat should be assigned automatically?'); ?> " value="" /> </div> </div> <div class="col-md-6"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'Survey at the end of chat'); ?> </label> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'Survey', 'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'no survey'), 'selected_id' => 0, 'css_class' => 'form-control', 'list_function' => 'erLhAbstractModelSurvey::getList')); ?> </div> </div> </div> </div> </div> <div role="tabpanel" class="tab-pane" id="design"> <div class="form-group"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'Minimize action, applies only if status widget is at the bottom'); ?>
<select class="form-control" id="HttpMode"> <option value=""><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'Based on site (default)'); ?> </option> <option value="http:">http:</option> <option value="https:">https:</option> </select> </div> <div class="col-md-6"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'Choose what form you want to embed'); ?> </label> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'FormID', 'display_name' => 'name', 'selected_id' => 0, 'css_class' => 'form-control', 'list_function' => 'erLhAbstractModelForm::getList', 'list_function_params' => array('limit' => '1000000'))); ?> </div> <div class="col-md-6"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'Identifier'); ?> </label> <input class="form-control" type="text" id="id_identifier" title="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'Identifier'); ?> " value="" /> </div> </div>
</div> </div> <?php if (erLhcoreClassModelChatConfig::fetch('product_enabled_module')->current_value == 1) { ?> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'Product'); ?> </label> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'product_id', 'selected_id' => 0, 'css_class' => 'form-control', 'display_name' => 'name_department', 'multiple' => true, 'list_function' => 'erLhAbstractModelProduct::getList')); ?> </div> </div> <div class="col-md-6"> <div class="form-group"> <label><input type="checkbox" id="pds" checked="checked" value="on"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'Show product selection based on selected departments'); ?> </label> </div> </div> </div> <?php } ?>
echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit', 'Inform then chat is closed by operator, only mail notification is send.'); ?> </label> </div> <?php if (erLhcoreClassUser::instance()->hasAccessTo('lhdepartament', 'actworkflow')) { ?> <div role="tabpanel" class="tab-pane" id="chattransfer"> <div class="form-group"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit', 'To what department chat should be transfered if it is not accepted'); ?> </label> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'TansferDepartmentID', 'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit', 'None'), 'display_name' => 'name', 'css_class' => 'form-control', 'selected_id' => $departament->department_transfer_id, 'list_function' => 'erLhcoreClassModelDepartament::getList', 'list_function_params' => array_merge(array('limit' => '1000000'), $limitDepartments))); ?> </div> <div class="form-group"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit', 'Timeout in seconds before chat is transfered to another department. Minimum 5 seconds.'); ?> </label> <input type="text" class="form-control" name="TransferTimeout" value="<?php echo htmlspecialchars($departament->transfer_timeout); ?> " /> </div> <div class="form-group">
<div class="row"> <div class="col-xs-4"> <div class="form-group"> <textarea class="form-control" name="DetectLanguageText" placeholder="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/translation', 'Enter text for testing purposes'); ?> "><?php isset($_POST['DetectLanguageText']) ? print htmlspecialchars($_POST['DetectLanguageText']) : ''; ?> </textarea> </div> </div> <div class="col-xs-4"> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'LanguageTo', 'css_class' => 'form-control', 'selected_id' => '', 'list_function' => 'erLhcoreClassTranslate::getSupportedLanguages')); ?> </div> <div class="col-xs-4"> <?php if (isset($translated_text)) { ?> <h5><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/translation', 'Translated text'); ?> </h5> <p><b><?php echo htmlspecialchars($translated_text); ?> </b></p>
echo $onlineCheck; ?> }"><td nowrap><div style="height:45px;">{{ou.lastactivity_ago}} ago<br/><span class="fs-11">{{ou.time_on_site_front}}</span></div></td><td><div class="btn-group" role="group" aria-label="..."><a class="btn btn-xs btn-default icon-info" data-placement="right" onmouseleave="$(this).tooltip('destroy')" onmouseover="$(this).tooltip({'html':true,'animation':false}).tooltip('show')" title="{{ou.notes_intro}}IP: {{ou.ip}}<br />{{ou.first_visit_front}} - first visit<br/>{{ou.last_visit_front}} - last visit<br/>Pageviews - {{ou.pages_count}} {{ou.identifier != '' ? '<br/>Identifier - '+ou.identifier : ''}}<br/>{{ou.operator_message == '' ? trans.first : ou.message_seen == 1 ? trans.second : trans.third}}<br />{{ou.user_agent}}" ng-click="online.showOnlineUserInfo(ou.id)"><img ng-src="/north-american-nemesis-new/chattool/design/defaulttheme/images/flags/{{ou.user_country_code}}.png" alt="{{ou.user_country_name}}" /></a><?php ?> <span ng-click="online.previewChat(ou)" class="btn btn-xs btn-success action-image" ng-show="ou.chat_id > 0">Chat</span><span class="btn btn-xs btn-info icon-user" ng-show="ou.total_visits > 1">Returning ({{ou.total_visits}})</span><span class="btn btn-success btn-xs icon-user" ng-show="ou.total_visits == 1">New</span><span title="{{ou.operator_user_string}} has sent a message to the user" class="btn btn-xs icon-comment" ng-show="ou.operator_message != ''" ng-class="ou.message_seen == 1 ? 'btn-success' : 'btn-danger'">{{ou.message_seen == 1 ? trans.msg_seen : trans.msg_not_seen}}</span><span class="btn btn-xs btn-primary up-case-first" ng-if="ou.user_country_code != ''">{{ou.user_country_name}}{{ou.city != '' ? ' | '+ou.city : ''}}</span><span class="btn btn-primary btn-xs icon-clock">{{ou.visitor_tz}} - {{ou.visitor_tz_time}}</span></div><div class="page-url"><span><a target="_blank" href="{{ou.current_page}}" title="{{ou.current_page}}">{{ou.page_title || ou.current_page}}</a></span></div></td><td><div class="page-url"><span><a target="_blank" href="http:{{ou.referrer}}">{{ou.referrer}}</a></span></div></td><td><div style="width:80px"><div class="btn-group" role="group" aria-label="..."><a ng-click="online.sendMessage(ou.id)" class="btn btn-default btn-sm icon-comment" title="Send message"></a><a ng-click="online.deleteUser(ou,'Are you sure?');" class="btn btn-danger btn-sm icon-cancel-squared" title="Delete, ID - {{ou.id}}"></a></div></div></td></tr></tbody></table><?php } ?> </div><?php } elseif (trim($frontTab) == 'online_map' && $online_visitors_enabled_pre == true) { ?> <div role="tabpanel" class="tab-pane form-group" id="map"><?php $chat_onlineusers_section_map_online_enabled = true; if ($chat_onlineusers_section_map_online_enabled == true) { ?> <div class="row form-group"><div class="col-xs-6"><img data-toggle="tooltip" data-placement="bottom" class="tip-right" title="User is chatting" src="/north-american-nemesis-new/chattool/design/defaulttheme/images/icons/home-chat.png" /><img data-toggle="tooltip" data-placement="bottom" class="tip-right" title="User does not have any message from operator" src="/north-american-nemesis-new/chattool/design/defaulttheme/images/icons/home-unsend.png" /><img data-toggle="tooltip" data-placement="bottom" class="tip-right" title="User has message from operator" src="/north-american-nemesis-new/chattool/design/defaulttheme/images/icons/home-send.png" /></div><div class="col-xs-3"><?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'department_map_id', 'optional_field' => 'Select department', 'selected_id' => $omapDepartment, 'css_class' => 'form-control input-sm', 'list_function' => 'erLhcoreClassModelDepartament::getList')); ?> </div><div class="col-xs-3"><select class="form-control input-sm" id="markerTimeout" title="Marker timeout before it dissapears from map"><option value="30" <?php echo $omapMarkerTimeout == 30 ? 'selected="selected"' : ''; ?> >30 seconds</option><option value="60" <?php echo $omapMarkerTimeout == 60 ? 'selected="selected"' : ''; ?> >1 minute</option><option value="120" <?php echo $omapMarkerTimeout == 120 ? 'selected="selected"' : ''; ?> >2 minutes</option><option value="300" <?php echo $omapMarkerTimeout == 300 ? 'selected="selected"' : ''; ?> >5 minutes</option><option value="600" <?php echo $omapMarkerTimeout == 600 ? 'selected="selected"' : '';
</label> <input type="text" name="Position" value="<?php echo $msg->position; ?> " /> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/cannedmsg', 'Department'); ?> </label> <?php $params = array('input_name' => 'DepartmentID', 'display_name' => 'name', 'selected_id' => $msg->department_id, 'list_function' => 'erLhcoreClassModelDepartament::getList', 'list_function_params' => array_merge(array('limit' => '1000000'), $limitDepartments)); if (empty($limitDepartments)) { $params['optional_field'] = erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit', 'Any'); } echo erLhcoreClassRenderHelper::renderCombobox($params); ?> <ul class="button-group radius"> <li><input type="submit" class="small button" name="Save_action" value="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/buttons', 'Save'); ?> "/></li> <li><input type="submit" class="small button" name="Cancel_action" value="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/buttons', 'Cancel'); ?> "/></li> </ul> </form>
?> " src="<?php echo erLhcoreClassDesign::design('images/icons/home-unsend.png'); ?> " /> <img data-tooltip class="tip-right" title="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'User has message from operator'); ?> " src="<?php echo erLhcoreClassDesign::design('images/icons/home-send.png'); ?> " /> </div> <div class="columns large-3"> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'department_map_id', 'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Select department'), 'selected_id' => $omapDepartment, 'list_function' => 'erLhcoreClassModelDepartament::getList')); ?> </div> <div class="columns large-3"> <select id="markerTimeout" title="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Marker timeout before it dissapears from map'); ?> "> <option value="30" <?php echo $omapMarkerTimeout == 30 ? 'selected="selected"' : ''; ?> >30 <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'seconds'); ?> </option> <option value="60" <?php
?> ><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Day'); ?> </option> </select> </div> <div class="col-md-3"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Department'); ?> </label> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'department_id', 'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Choose department'), 'selected_id' => $input->department_id, 'css_class' => 'form-control', 'list_function' => 'erLhcoreClassModelDepartament::getList')); ?> </div> <div class="col-md-6"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Date range from to'); ?> </label> <div class="row"> <div class="col-md-6"> <input class="form-control" type="text" name="timefrom" id="id_timefrom" placeholder="E.g <?php echo date('Y-m-d', time() - 7 * 24 * 3600); ?> " value="<?php
echo erTranslationClassLhTranslation::getInstance()->getTranslation('xmppservice/form', 'Chat'); ?> </option> </select> </div> <div class="form-group"> <label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('xmppservice/form', 'Operator to whom belongs account'); ?> </label> <?php if ($xmppaccount->type == 0) { ?> <?php echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'user_id', 'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Select user'), 'selected_id' => $xmppaccount->user_id, 'css_class' => 'form-control', 'list_function' => 'erLhcoreClassXMPPServiceAccountValidator::getLHCUsers', 'list_function_params' => array('user_id' => $xmppaccount->user_id))); ?> <?php } else { ?> <i><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('xmppservice/form', 'This user type can not have assigned operator'); ?> </i> <?php } ?> </div>
<?php $language = (int) $Params['user_parameters']['language']; echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'select_dialect', 'selected_id' => '', 'display_name' => 'dialect_name', 'attr_id' => 'lang_code', 'list_function' => 'erLhcoreClassModelSpeechLanguageDialect::getList', 'list_function_params' => array('filter' => array('language_id' => $language)))); exit;