Ejemplo n.º 1
0
 public static function validateSurvey(erLhAbstractModelSurveyItem &$surveyItem, erLhAbstractModelSurvey $survey)
 {
     include erLhcoreClassDesign::designtpl('lhsurvey/forms/fields_names.tpl.php');
     $definition = array();
     for ($i = 0; $i < 16; $i++) {
         foreach ($sortOptions as $keyOption => $sortOption) {
             if ($survey->{$keyOption . '_pos'} == $i && $survey->{$keyOption . '_enabled'}) {
                 if ($sortOption['type'] == 'stars') {
                     $definition[$sortOption['field'] . 'Evaluate'] = new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'int', array('min_range' => 1, 'max_range' => $survey->{$sortOption}['field']));
                 } elseif ($sortOption['type'] == 'question') {
                     $definition[$sortOption['field'] . 'Question'] = new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw');
                 } elseif ($sortOption['type'] == 'question_options') {
                     $definition[$sortOption['field'] . 'EvaluateOption'] = new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'int', array('min_range' => 1));
                 }
             }
         }
     }
     $form = new ezcInputForm(INPUT_POST, $definition);
     $Errors = array();
     for ($i = 0; $i < 16; $i++) {
         foreach ($sortOptions as $keyOption => $sortOption) {
             if ($survey->{$keyOption . '_pos'} == $i && $survey->{$keyOption . '_enabled'}) {
                 if ($sortOption['type'] == 'stars') {
                     if (!$form->hasValidData($sortOption['field'] . 'Evaluate')) {
                         if ($survey->{$keyOption . '_req'} == 1) {
                             $Errors[] = '"' . htmlspecialchars(trim($survey->{$keyOption . '_title'})) . '" : ' . erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat', 'is required');
                         }
                     } else {
                         $surveyItem->{$sortOption['field']} = $form->{$sortOption['field'] . 'Evaluate'};
                     }
                 } elseif ($sortOption['type'] == 'question') {
                     if (!$form->hasValidData($sortOption['field'] . 'Question') || $form->{$sortOption['field'] . 'Question'} == '' && $survey->{$keyOption . '_req'} == 1) {
                         // @todo Make possible to choose field type in the future
                         $Errors[] = '"' . htmlspecialchars(trim($survey->{$keyOption})) . '" : ' . erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat', 'is required');
                     } else {
                         $surveyItem->{$sortOption['field']} = $form->{$sortOption['field'] . 'Question'};
                     }
                 } elseif ($sortOption['type'] == 'question_options') {
                     if (!$form->hasValidData($sortOption['field'] . 'EvaluateOption')) {
                         if ($survey->{$keyOption . '_req'} == 1) {
                             $Errors[] = '"' . htmlspecialchars(trim($survey->{$sortOption['field']})) . '" : ' . erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat', 'is required');
                         }
                     } else {
                         $surveyItem->{$sortOption['field']} = $form->{$sortOption['field'] . 'EvaluateOption'};
                     }
                 }
             }
         }
     }
     erLhcoreClassChatEventDispatcher::getInstance()->dispatch('survey.validate', array('survey' => &$survey, 'survey_item' => &$surveyItem, 'errors' => &$Errors));
     return $Errors;
 }
Ejemplo n.º 2
0
<?php

include erLhcoreClassDesign::designtpl('lhsystem/configuration_links/statistic_pre.tpl.php');
if ($system_configuration_links_statistic_enabled == true && $currentUser->hasAccessTo('lhstatistic', 'viewstatistic')) {
    ?>
	    <li><a href="<?php 
    echo erLhcoreClassDesign::baseurl('statistic/statistic');
    ?>
"><?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/configuration', 'Reports');
    ?>
</a></li>
<?php 
}
Ejemplo n.º 3
0
        ?>
        		
            </div>
            </div>
        	<?php 
    }
    ?>
    </div>
    <?php 
}
?>

</div>

<?php 
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/page_footer.tpl.php');
?>

</div>
</div>


<?php 
if (erConfigClassLhConfig::getInstance()->getSetting('site', 'debug_output') == true) {
    $debug = ezcDebug::getInstance();
    echo $debug->generateOutput();
}
?>

</body>
</html>
Ejemplo n.º 4
0
			<?php 
if (isset($errors)) {
    ?>
					<?php 
    include erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php');
    ?>
			<?php 
}
?>

			<?php 
if (isset($success)) {
    $msg = erTranslationClassLhTranslation::getInstance()->getTranslation('faq/faqwidget', 'Your question was submitted!');
    ?>
				<?php 
    include erLhcoreClassDesign::designtpl('lhkernel/alert_success.tpl.php');
    ?>
			<?php 
}
?>

		  <form action="<?php 
echo erLhcoreClassDesign::baseurl('faq/faqwidget');
isset($dynamic_url_append) ? print $dynamic_url_append : '';
?>
" method="post" onsubmit="return lhinst.addCaptcha('<?php 
echo time();
?>
',$(this))">
			  <h4><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('faq/faqwidget', 'Type your question');
Ejemplo n.º 5
0
<?php

/**
 * There can be some error message if offline form is disabled
 * */
$errors = array('Offline form is disabled');
include erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php');
Ejemplo n.º 6
0
var lhc_hnh = <?php 
    if (erLhcoreClassModelChatConfig::fetch('need_help_tip_timeout')->current_value > 0) {
        ?>
lh_inst.getPersistentAttribute('lhc_hnh');<?php 
    } else {
        ?>
lh_inst.cookieData.lhc_hnh;<?php 
    }
    ?>
if (lhc_hnh == null || lhc_hnh == undefined || parseInt(lhc_hnh) < <?php 
    echo time();
    ?>
) {

<?php 
    include erLhcoreClassDesign::designtpl('lhchat/getstatus/we_here_substatus.tpl.php');
    ?>
	

if (!this.cssNHWasAdded) {
	this.cssNHWasAdded = true;
	var raw_css_need_hl = '#lhc_need_help_container{width:235px;border-radius:20px;background:#<?php 
    $theme !== false ? print $theme->need_help_bcolor : (print '92B830');
    ?>
;position:absolute;color:#<?php 
    $theme !== false ? print $theme->need_help_tcolor : (print 'ffffff');
    ?>
;padding:10px;border:1px solid #<?php 
    $theme !== false ? print $theme->need_help_border : (print 'dbe257');
    ?>
;margin-top:-105px;}#lhc_need_help_container:hover{background-color:#<?php 
Ejemplo n.º 7
0
</a></td>
    </tr>
<?php 
    }
    ?>
</table>

<?php 
    include erLhcoreClassDesign::designtpl('lhkernel/secure_links.tpl.php');
    ?>

<?php 
    if (isset($pages)) {
        ?>
    <?php 
        include erLhcoreClassDesign::designtpl('lhkernel/paginator.tpl.php');
    }
    ?>

<?php 
} else {
    ?>
<p><?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('questionary/list', 'Empty...');
    ?>
</p>
<?php 
}
?>

<a class="small button" href="<?php 
Ejemplo n.º 8
0
    }
    ?>
</th>
    <th width="50%"><a href="" ng-click="online.predicate = 'current_page'; online.reverse=!online.reverse" /><?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Page');
    ?>
</a></th>
    <th width="30%"><a href="" ng-click="online.predicate = 'referrer'; online.reverse=!online.reverse" /><?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Came from');
    ?>
</a></th>
   
    <th width="1%"><?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Action');
    ?>
</th>
</tr>
</thead>
<tbody ng-repeat="group in onlineusersGrouped track by group.id">
	<tr ng-show="group.label != ''">
		<td colspan="6"><h5>{{group.label}} ({{group.ou.length}})</h5></td>
	</tr>
	
	<?php 
    include erLhcoreClassDesign::designtpl('lhchat/onlineusers/section_online_users_row.tpl.php');
    ?>
		
</tbody>
</table>
<?php 
}
Ejemplo n.º 9
0
<?php

include erLhcoreClassDesign::designtpl('pagelayouts/parts/modules_menu/faq_pre.tpl.php');
if ($pagelayouts_parts_modules_menu_faq_enabled == true && $useFaq) {
    ?>
<li><a href="<?php 
    echo erLhcoreClassDesign::baseurl('faq/list');
    ?>
"><i class="material-icons">help</i><?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'FAQ');
    ?>
</a></li>
<?php 
}
<?php

include erLhcoreClassDesign::designtpl('lhchat/part/canned_messages_action_pre.tpl.php');
if ($chat_part_canned_messages_action_enabled == true) {
    ?>
<a title="<?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/adminchat', 'Send delayed canned message instantly');
    ?>
" href="#" class="btn btn-default material-icons" onclick="return lhinst.sendCannedMessage('<?php 
    echo $chat->id;
    ?>
',$(this))">mail</a>
<?php 
}
Ejemplo n.º 11
0
echo erLhcoreClassDesign::design('images/favicon.ico');
?>
" />
<link rel="shortcut icon" type="image/x-icon" href="<?php 
echo erLhcoreClassDesign::design('images/favicon.ico');
?>
">
<meta name="Keywords" content="" />
<meta name="Description" content="<?php 
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'description');
?>
" />
<meta name="robots" content="noindex, nofollow">

<?php 
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/copyright_meta.tpl.php');
?>

<link rel="stylesheet" type="text/css" href="<?php 
echo erLhcoreClassDesign::designCSS('css/BookReader.css');
?>
" />
<script type="text/javascript" language="javascript" src="<?php 
echo erLhcoreClassDesign::designJS('js/BookReader/jquery-1.4.2.min.js;js/BookReader/jquery-ui-1.8.5.custom.min.js;js/BookReader/dragscrollable.js;js/BookReader/jquery.colorbox-min.js;js/BookReader/jquery.ui.ipad.js;js/BookReader/jquery.bt.min.js;js/BookReader/BookReader.js');
?>
"></script>

</head>
<body<?php 
isset($Result['pagelayout_css_append']) ? print ' class="' . $Result['pagelayout_css_append'] . '" ' : '';
?>
<div class="panel panel-default panel-dashboard" data-panel-id="transfered_chats">
	<div class="panel-heading">
		<i class="material-icons chat-pending">chat</i> <?php 
include erLhcoreClassDesign::designtpl('lhfront/dashboard/panels/titles/transfered_chats.tpl.php');
?>
 ({{transfer_dep_chats.list.length}})</a>
	</div>
	<div>
    	<div class="panel-list">
    		<div role="tabpanel" ng-show="transfer_dep_chats.list.length > 0 || transfer_chats.list.length > 0">
    		
    			<!-- Nav tabs -->
    			<ul class="nav nav-pills p10" role="tablist">
    				<li role="presentation" class="active"><a title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Chats transferred to you directly');
?>
" href="#transferedperson-widget" aria-controls="transferedperson-widget" role="tab" data-toggle="tab"><i class="material-icons">account_box</i><span class="tru-cnt"></span></a></li>
    				<li role="presentation"><a title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Transferred to your department');
?>
" href="#transfereddep-widget" aria-controls="transfereddep-widget" role="tab" data-toggle="tab"><i class="material-icons">account_box</i><span class="trd-cnt"></span></a></li>
    			</ul>
    			
    			<!-- Tab panes -->
    			<div class="tab-content mt0">
    				<div role="tabpanel" class="tab-pane active" id="transferedperson-widget">
    				
            	      		<table class="table table-condensed mb0 table-small table-fixed" ng-if="transfer_chats.list.length > 0">
                        		<thead>
                        			<tr>
                        				<th width="60%"><i title="<?php 
Ejemplo n.º 13
0
	<h4>
	<?php 
            if (isset($theme) && $theme !== false && $theme->noonline_operators_offline) {
                ?>
        <?php 
                echo htmlspecialchars($theme->noonline_operators_offline);
                ?>
    <?php 
            } else {
                ?>
	   <?php 
                echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat', 'There are no online operators at the moment, please leave your message');
                ?>
	<?php 
            }
            ?>
	</h4>
	<?php 
            include erLhcoreClassDesign::designtpl('lhchat/offline_form_startchat.tpl.php');
            ?>
	
<?php 
        }
        ?>

<?php 
    }
    ?>

<?php 
}
<?php

include erLhcoreClassDesign::designtpl('lhchat/chat_tabs/operator_screenshot_tab_pre.tpl.php');
if ($operator_screenshot_tab_enabled == true && erLhcoreClassUser::instance()->hasAccessTo('lhchat', 'take_screenshot')) {
    ?>
<li role="presentation"<?php 
    if ($chatTabsOrderDefault == 'operator_screenshot_tab') {
        print ' class="active"';
    }
    ?>
><a href="#main-user-info-screenshot-<?php 
    echo $chat->id;
    ?>
" aria-controls="main-user-info-screenshot-<?php 
    echo $chat->id;
    ?>
" title="<?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/screenshot', 'Screenshot');
    ?>
" role="tab" data-toggle="tab"><i class="material-icons mr-0">photo_camera</i></a></li>
<?php 
}
Ejemplo n.º 15
0
<div class="fs11">
<h2><?php 
echo htmlspecialchars($chat->nick);
$chat->city != '' ? print ', ' . htmlspecialchars($chat->city) : '';
?>
, <?php 
echo date(erLhcoreClassModule::$dateDateHourFormat, $chat->time);
?>
 <div class="right">IP:<?php 
echo $chat->ip;
?>
, ID: <?php 
echo $chat->id;
?>
</div></h2>
<?php 
$messages = erLhcoreClassModelmsg::getList(array('limit' => 1000, 'sort' => 'id ASC', 'filter' => array('chat_id' => $chat->id)));
include erLhcoreClassDesign::designtpl('lhchat/lists/msg_obj_list.tpl.php');
?>
</div>
Ejemplo n.º 16
0
<?php

if ($pendingTabEnabled == true) {
    ?>
<div class="panel-heading" ng-if="pending_chats.list.length > 0"><a href="<?php 
    echo erLhcoreClassDesign::baseurl('chat/pendingchats');
    ?>
"><i class="material-icons chat-pending">chat</i><?php 
    include erLhcoreClassDesign::designtpl('lhchat/lists_panels/titles/pending_chats.tpl.php');
    ?>
 ({{pending_chats.list.length}}{{pending_chats.list.length == 10 ? '+' : ''}})</a><a title="<?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'collapse/expand');
    ?>
" ng-click="lhc.toggleList('pending_chats_expanded')" class="fs24 pull-right material-icons">{{pending_chats_expanded == true ? 'expand_less' : 'expand_more'}}</a></div>
<div class="panel-body" id="right-pending-chats" ng-if="pending_chats.list.length > 0 && pending_chats_expanded == true">
		<?php 
    include erLhcoreClassDesign::designtpl('lhchat/lists/angular_pending_list.tpl.php');
    ?>
</div>
<?php 
}
Ejemplo n.º 17
0
<?php

if ($activeTabEnabled == true) {
    ?>
 
<div class="panel-heading" ng-if="active_chats.list.length > 0"><a href="<?php 
    echo erLhcoreClassDesign::baseurl('chat/activechats');
    ?>
"><i class="icon-chat chat-active"></i> <?php 
    include erLhcoreClassDesign::designtpl('lhchat/lists_panels/titles/active_chats.tpl.php');
    ?>
 ({{active_chats.list.length}}{{active_chats.list.length == 10 ? '+' : ''}})</a><a title="<?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'collapse/expand');
    ?>
" ng-click="lhc.toggleList('active_chats_expanded')" ng-class="active_chats_expanded == true ? 'icon-minus' : 'icon-plus'" class="fs18 pull-right"></a></div>
<div class="panel-body"  id="right-active-chats" ng-show="active_chats.list.length > 0 && active_chats_expanded == true">
		<?php 
    include erLhcoreClassDesign::designtpl('lhchat/lists/angular_active_list.tpl.php');
    ?>
</div>                     
<?php 
}
<?php

$attribute = 'run_unaswered_chat_workflow';
include erLhcoreClassDesign::designtpl('lhchat/part/chat_settings.tpl.php');
Ejemplo n.º 19
0
foreach (erLhcoreClassDepartament::getDepartaments() as $departament) {
    if ($departament['id'] !== $chat->dep_id) {
        ?>
    	    <label><input type="radio" name="DepartamentID<?php 
        echo $chat->id;
        ?>
" value="<?php 
        echo $departament['id'];
        ?>
"/> <?php 
        echo htmlspecialchars($departament['name']);
        ?>
</label><br/>
    	    <?php 
    }
}
?>
    
    		<input type="button" onclick="lhinst.transferChatDep('<?php 
echo $chat->id;
?>
')" class="btn btn-default" value="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/transferchat', 'Transfer');
?>
" />
		</div>
	</div>
</div>
<?php 
include erLhcoreClassDesign::designtpl('lhkernel/modal_footer.tpl.php');
Ejemplo n.º 20
0
                    <?php 
        }
        ?>
                 <?php 
    }
    ?>
    		</div>
    	</div>
    </div>


<script>
$( document ).ready(function() {
	lhinst.attachTabNavigator();
	$('#right-column-page').removeAttr('id');
	$('#tabs a:first').tab('show')
});
<?php 
    include erLhcoreClassDesign::designtpl('lhchat/part/opened_chats_js.tpl.php');
    ?>
</script>
<?php 
} else {
    ?>

<?php 
    include erLhcoreClassDesign::designtpl('lhfront/default_if_no_module.tpl.php');
    ?>

<?php 
}
    	{{ou.lastactivity_ago}} <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', '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-popover-content="popover-content-ou" data-chat-id="{{ou.id}}" data-toggle="popover" data-placement="right" ng-click="online.showOnlineUserInfo(ou.id)"><img ng-if="ou.user_country_code != ''" ng-src="<?php 
echo erLhcoreClassDesign::design('images/flags');
?>
/{{ou.user_country_code}}.png" alt="{{ou.user_country_name}}" /></a><?php 
include erLhcoreClassDesign::designtpl('lhchat/onlineusers/custom_online_button_multiinclude.tpl.php');
?>
<span ng-click="online.previewChat(ou)" class="btn btn-xs btn-success action-image" ng-show="ou.chat_id > 0"><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Chat');
?>
</span><span class="btn btn-xs btn-info icon-user" ng-show="ou.total_visits > 1"><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Returning');
?>
 ({{ou.total_visits}})</span><span class="btn btn-success btn-xs icon-user" ng-show="ou.total_visits == 1"><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'New');
?>
</span> <span title="{{ou.operator_user_string}} <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', '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>
<?php

include erLhcoreClassDesign::designtpl('lhchat/onlineusers/section_map_online_tab_pre.tpl.php');
if ($chat_onlineusers_section_map_online_tab_enabled == true && $currentUser->hasAccessTo('lhchat', 'use_onlineusers') == true) {
    ?>
<li role="presentation"><a id="map-activator" href="#map" aria-controls="map" role="tab" data-toggle="tab" title="<?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Online visitors on map');
    ?>
"><i class="material-icons mr-0">place</i></a></li>
<?php 
}
Ejemplo n.º 23
0
<?php

include erLhcoreClassDesign::designtpl('lhsystem/configuration_links/product_pre.tpl.php');
if ($system_configuration_links_survey_enabled == true && $currentUser->hasAccessTo('lhproduct', 'manage_product')) {
    ?>
    <li><a href="<?php 
    echo erLhcoreClassDesign::baseurl('product/index');
    ?>
"><?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/configuration', 'Product');
    ?>
</a></li>
<?php 
}
Ejemplo n.º 24
0
        include erLhcoreClassDesign::designtpl('lhchat/part/offline_button_multiinclude.tpl.php');
        ?>
		<?php 
        if (erLhcoreClassModelChatConfig::fetch('reopen_chat_enabled')->current_value == 1 && ($reopenData = erLhcoreClassChat::canReopenDirectly(array('reopen_closed' => erLhcoreClassModelChatConfig::fetch('allow_reopen_closed')->current_value))) !== false) {
            ?>
		    <?php 
            include erLhcoreClassDesign::designtpl('lhchat/part/buttons/reopen_offline_button_widget.tpl.php');
            ?>
	  	<?php 
        }
        ?>
	</div>
	
	<input type="hidden" value="<?php 
        echo htmlspecialchars($referer);
        ?>
" name="URLRefer"/>
	<input type="hidden" value="1" name="StartChat"/>

	</form>
<?php 
    }
    ?>

<?php 
} else {
    include erLhcoreClassDesign::designtpl('lhchat/part/offline_form_disabled.tpl.php');
}
?>

Ejemplo n.º 25
0
<?php 
if (isset($errors)) {
    ?>
	<?php 
    include erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php');
}
?>

<form action="<?php 
echo erLhcoreClassDesign::baseurl('department/newgroup');
?>
" method="post">

	<?php 
include erLhcoreClassDesign::designtpl('lhdepartment/formgroup.tpl.php');
?>
	
    <div class="btn-group" role="group" aria-label="...">
		<input type="submit" class="btn btn-default" name="Save_departament" value="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/buttons', 'Save');
?>
"/>
		<input type="submit" class="btn btn-default" name="Cancel_departament" value="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/buttons', 'Cancel');
?>
"/>
	</div>
	
</form>
Ejemplo n.º 26
0
<?php

$is_root = !isset($_GET['nomenu']) || isset($_GET['nomenu']) && empty($_GET['nomenu']);
?>
<div class="row footer-row<?php 
echo $is_root ? "" : " hidden";
?>
">
    <div class="columns col-xs-12">
        <p class="pull-right"><a target="_blank" href="http://livehelperchat.com">Live Helper Chat &copy; <?php 
echo date('Y');
?>
</a></p>
        <p><a href="<?php 
echo erLhcoreClassModelChatConfig::fetch('customer_site_url')->current_value;
?>
"><?php 
echo htmlspecialchars(erLhcoreClassModelChatConfig::fetch('customer_company_name')->current_value);
?>
</a></p>
    </div>
</div>

<?php 
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/page_footer_js.tpl.php');
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/page_footer_js_extension_multiinclude.tpl.php');
    ?>
btop-reset btrad-reset mb0<?php 
}
?>
" placeholder="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat', 'Type your message here and hit enter to send...');
?>
" id="id_Question" name="Question"><?php 
echo htmlspecialchars($input_data->question);
?>
</textarea>

<?php 
if ($hasExtraField === true) {
    ?>
<div class="btn-group" role="group" aria-label="...">
<input type="submit" name="askQuestionAction" id="idaskQuestionAction" value="<?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat', 'Send');
    ?>
" class="btn btn-default btn-sm"/>
<?php 
}
?>

<?php 
include erLhcoreClassDesign::designtpl('lhchat/part/readoperatormessage_button_multiinclude.tpl.php');
if ($hasExtraField === true) {
    ?>
</div>
<?php 
}
Ejemplo n.º 28
0
		</div>
		<?php 
}
?>
		
		<?php 
if ($tab == 'total') {
    ?>
		<div role="tabpanel" class="tab-pane active">
		  <?php 
    include erLhcoreClassDesign::designtpl('lhstatistic/tabs/total.tpl.php');
    ?>
		</div>
		<?php 
}
?>
		
		<?php 
if ($tab == 'last24') {
    ?>
		<div role="tabpanel" class="tab-pane active">
		  <?php 
    include erLhcoreClassDesign::designtpl('lhstatistic/tabs/last24hstatistic.tpl.php');
    ?>
		</div>
		<?php 
}
?>
		
	</div>
</div>
Ejemplo n.º 29
0
<?php

include erLhcoreClassDesign::designtpl('lhabstract/parts/abstract_new_title.tpl.php');
?>

<form method="post" enctype="multipart/form-data" action="">
	
	<?php 
if (!isset($custom_form)) {
    ?>
		<?php 
    include erLhcoreClassDesign::designtpl('lhabstract/abstract_form.tpl.php');
    ?>
	<?php 
} else {
    ?>
		<?php 
    include erLhcoreClassDesign::designtpl("lhabstract/custom/" . $custom_form);
    ?>
	<?php 
}
?>
	
	<?php 
include erLhcoreClassDesign::designtpl('lhkernel/csfr_token.tpl.php');
?>
</form>

Ejemplo n.º 30
0
$theme !== false && $theme->custom_container_css !== '' ? print '+\'' . str_replace(array("\n", "\r"), '', $theme->custom_container_css) . '\'' : '';
?>
);
		  };

          var fragment = this.appendHTML(this.iframe_html);
          document.body.insertBefore(fragment, document.body.childNodes[0]);
		
		  var lhc_obj = this;			
          document.getElementById('lhc_faq_close').onclick = function() { lhc_obj.hide(); return false; };
           
          var domContainer = document.getElementById('lhc_container_faq');
          var domIframe = 'lhcfaq_iframe';
          var domContainerId = 'lhc_container_faq';
		  <?php 
include erLhcoreClassDesign::designtpl('lhchat/getstatus/drag_drop_logic.tpl.php');
?>
	
          
          
    },

    showStatusWidget : function() {
       var statusTEXT = '<a id="faq-icon" class="status-icon" href="#" onclick="return lh_inst.lh_openchatWindow()" >'+LHCFAQOptions.status_text+'</a>';
       var raw_css = "#lhc_faq_container * {direction:<?php 
erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'dir_language') == 'ltr' || erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'dir_language') == '' ? print 'ltr;text-align:left;' : (print 'rtl;text-align:right;');
?>
;font-family:arial;line-height:100%;font-size:12px;box-sizing: content-box;zoom:1;margin:0;padding:0;}\n#lhc_faq_container .status-icon{text-decoration:none;font-size:12px;font-weight:bold;color:#<?php 
$theme !== false ? print $theme->text_color : (print '000');
?>
;display:block;padding:<?php