• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP erLhcoreClassDesign类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中erLhcoreClassDesign的典型用法代码示例。如果您正苦于以下问题:PHP erLhcoreClassDesign类的具体用法?PHP erLhcoreClassDesign怎么用?PHP erLhcoreClassDesign使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了erLhcoreClassDesign类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: telegram

 /**
  * Arguments
  * array('chat' => & $chat)
  * */
 public function telegram($params)
 {
     $conf = (include 'extension/telegram/settings/settings.ini.php');
     $url = 'http://api.telegram.org/bot' . $conf['telegramBot'] . '/sendMessage?parse_mode=Markdown';
     $chat = $params['chat'];
     foreach ($conf['receivers'] as $receiver) {
         $internalurl = $url . "&chat_id=" . preg_replace('/[^0-9.]+/', '', $receiver['chatid']);
         $text = "``` Nova solicitação de suporte via chat - ";
         $text = isset($chat->nick) ? $text . $chat->nick : $text;
         $text = isset($chat->email) ? $text . " ( " . $chat->email . " )" : $text;
         $text .= "```";
         if (isset($receiver['operator'])) {
             $veryfyEmail = sha1(sha1($receiver['operator'] . $secretHash) . $secretHash);
             $link = erLhcoreClassXMP::getBaseHost();
             $link .= $_SERVER['HTTP_HOST'];
             $link .= erLhcoreClassDesign::baseurl('chat/accept') . '/';
             $link .= erLhcoreClassModelChatAccept::generateAcceptLink($chat) . '/';
             $link .= $veryfyEmail . '/' . $receiver['operator'];
             $text .= "\n" . $link;
         }
         $text .= "```";
         $internalurl .= "&text=" . urlencode($text);
         file_get_contents($internalurl);
     }
 }
开发者ID:SamuelMoraesF,项目名称:Telegram-LiveHelperChat,代码行数:29,代码来源:bootstrap.php


示例2: getModuleTranslations

 public function getModuleTranslations()
 {
     /**
      * Get's executed before permissions check. It can redirect to frontpage throw permission exception etc
      * */
     erLhcoreClassChatEventDispatcher::getInstance()->dispatch('feature.can_use_forms', array());
     return array('path' => array('url' => erLhcoreClassDesign::baseurl('form/index'), 'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('browseoffer/index', 'Form')), 'permission_delete' => array('module' => 'lhform', 'function' => 'delete_fm'), 'permission' => array('module' => 'lhform', 'function' => 'manage_fm'), 'name' => erTranslationClassLhTranslation::getInstance()->getTranslation('abstract/browserofferinvitation', 'Forms list'));
 }
开发者ID:p4prawin,项目名称:livechat,代码行数:8,代码来源:erlhabstractmodelform.php


示例3: getModuleTranslations

 public function getModuleTranslations()
 {
     $metaData = array('path' => array('url' => erLhcoreClassDesign::baseurl('browseoffer/index'), 'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('browseoffer/index', 'Browse offers')), 'permission_delete' => array('module' => 'lhbrowseoffer', 'function' => 'manage_bo'), 'permission' => array('module' => 'lhbrowseoffer', 'function' => 'manage_bo'), 'name' => erTranslationClassLhTranslation::getInstance()->getTranslation('abstract/browserofferinvitation', 'Browser offer invitations'));
     /**
      * Get's executed before permissions check. It can redirect to frontpage throw permission exception etc
      * */
     erLhcoreClassChatEventDispatcher::getInstance()->dispatch('feature.can_use_browse_offers', array('object_meta_data' => &$metaData));
     return $metaData;
 }
开发者ID:Adeelgill,项目名称:livehelperchat,代码行数:9,代码来源:erlhabstractmodelbrowseofferinvitation.php


示例4: __get

 public function __get($var)
 {
     switch ($var) {
         case 'has_file':
             return $this->has_file = $this->file_name != '';
             break;
         case 'file_path_server':
             return $this->file_path_server = 'var/' . $this->file_path . $this->file_name;
             break;
         case 'file_path_dir':
             return $this->file_path_server = 'var/' . $this->file_path;
             break;
         case 'pdftoimg_path':
             return $this->pdftoimg_path = 'var/' . $this->file_path . 'img/';
             break;
         case 'pdf_file_path_server':
             return $this->pdf_file_path_server = 'var/' . $this->file_path . $this->pdf_file;
             break;
         case 'file_name_upload_pdf':
             $nameParts = explode('.', $this->file_name_upload);
             array_pop($nameParts);
             return $this->file_name_upload_pdf = implode('.', $nameParts) . '.pdf';
             break;
         case 'pages_pdf':
             $this->pages_pdf = array();
             if ($this->pages_pdf_count) {
                 $links = array();
                 $i = 1;
                 while ($i <= $this->pages_pdf_count) {
                     $links[] = $this->pdftoimg_path . $this->id . '-' . $i . '.png';
                     $i++;
                 }
                 $this->pages_pdf = $links;
             }
             return $this->pages_pdf;
             break;
         case 'pdftoimg_url_path':
             return $this->pdftoimg_url_path = erLhcoreClassSystem::instance()->wwwDir() . '/var/' . $this->file_path . 'img/';
             break;
         case 'pages_pdf_url':
             $this->pages_pdf_url = array();
             if ($this->pages_pdf_count) {
                 $baseDir = erLhcoreClassSystem::instance()->wwwDir();
                 foreach ($this->pages_pdf as $img) {
                     $this->pages_pdf_url[] = $baseDir . '/' . $img;
                 }
             }
             return $this->pages_pdf_url;
             break;
         case 'book_data':
             return array('baseImagesDesgin' => erLhcoreClassDesign::design('images/BookReader/images') . '/', 'baseImg' => $this->id . '-', 'numLeafs' => $this->pages_pdf_count, 'bookTitle' => $this->name, 'urlPath' => $this->pdftoimg_url_path);
             break;
         default:
             break;
     }
 }
开发者ID:Topspot,项目名称:livehelperchat,代码行数:56,代码来源:erlhcoreclassmodeldocshare.php


示例5: validateSurvey

 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;
 }
开发者ID:detain,项目名称:livehelperchat,代码行数:52,代码来源:lhsurveyvalidator.php


示例6: getFormattedContent

 public function getFormattedContent()
 {
     $dataCollected = array();
     foreach ($this->content_array as $nameAttr => $contentArray) {
         if (isset($contentArray['definition']['type']) && $contentArray['definition']['type'] == 'file') {
             $dataCollected[] = $contentArray['definition']['name_literal'] . " - " . erLhcoreClassXMP::getBaseHost() . $_SERVER['HTTP_HOST'] . erLhcoreClassDesign::baseurldirect('user/login') . '/(r)/' . rawurlencode(base64_encode('form/download/' . $this->id . '/' . $nameAttr));
         } elseif (isset($contentArray['definition']['type']) && $contentArray['definition']['type'] == 'checkbox') {
             $dataCollected[] = $contentArray['definition']['name_literal'] . " - " . ($contentArray['value'] == 1 ? 'Y' : 'N');
         } else {
             $dataCollected[] = $contentArray['definition']['name_literal'] . " - " . $contentArray['value'];
         }
     }
     return implode("\n", $dataCollected);
 }
开发者ID:sirromas,项目名称:medical,代码行数:14,代码来源:erlhabstractmodelformcollected.php


示例7: chatListExportXLS

 public static function chatListExportXLS($chats)
 {
     include 'lib/core/lhform/PHPExcel.php';
     $objPHPExcel = new PHPExcel();
     $objPHPExcel->setActiveSheetIndex(0);
     $objPHPExcel->getActiveSheet()->getStyle('A1:AW1')->getFont()->setBold(true);
     $objPHPExcel->getActiveSheet()->setTitle('Report');
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(0, 1, "ID");
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(1, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'Visitor Name'));
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(2, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'E-mail'));
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(3, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'Phone'));
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(4, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'Country'));
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(5, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'City'));
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(6, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'IP'));
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(7, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'Operator'));
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(8, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'Department'));
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(9, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'Date'));
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(10, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'Mail send'));
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(11, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'Referrer'));
     $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(12, 1, erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chatexport', 'Link'));
     $attributes = array('id', 'nick', 'email', 'phone', 'country_name', 'city', 'ip', 'user', 'department');
     $i = 2;
     foreach ($chats as $item) {
         foreach ($attributes as $key => $attr) {
             $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($key, $i, (string) $item->{$attr});
         }
         $key++;
         $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($key, $i, date(erLhcoreClassModule::$dateFormat, $item->time));
         $key++;
         $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($key, $i, $item->mail_send == 1 ? 'Yes' : 'No');
         $key++;
         if ($item->session_referrer != '') {
             $referer = parse_url($item->session_referrer);
             if (isset($referer['host'])) {
                 $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($key, $i, $referer['host']);
             }
         }
         $key++;
         $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($key, $i, "URL");
         $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($key, $i)->getHyperlink()->setUrl(erLhcoreClassXMP::getBaseHost() . $_SERVER['HTTP_HOST'] . erLhcoreClassDesign::baseurl('user/login') . '/(r)/' . rawurlencode(base64_encode('chat/single/' . $item->id)));
         $i++;
     }
     $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
     // We'll be outputting an excel file
     header('Content-type: application/vnd.ms-excel');
     // It will be called file.xls
     header('Content-Disposition: attachment; filename="report.xlsx"');
     // Write file to the browser
     $objWriter->save('php://output');
 }
开发者ID:sudogitguy,项目名称:livehelperchat,代码行数:50,代码来源:lhchatexport.php


示例8: fillDataByChat

 public function fillDataByChat($chat)
 {
     $this->getConfig();
     $messages = array_reverse(erLhcoreClassModelmsg::getList(array('limit' => 5000, 'sort' => 'id DESC', 'filter' => array('chat_id' => $chat->id))));
     $messagesContent = '';
     foreach ($messages as $msg) {
         if ($msg->user_id == -1) {
             $messagesContent .= date(erLhcoreClassModule::$dateDateHourFormat, $msg->time) . ' ' . erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmin', 'System assistant') . ': ' . htmlspecialchars($msg->msg) . "\n";
         } else {
             $messagesContent .= date(erLhcoreClassModule::$dateDateHourFormat, $msg->time) . ' ' . ($msg->user_id == 0 ? htmlspecialchars($chat->nick) : htmlspecialchars($msg->name_support)) . ': ' . htmlspecialchars($msg->msg) . "\n";
         }
     }
     $data = array('name' => $chat->nick, 'email' => $chat->email, 'subject' => str_replace(array('{referrer}', '{nick}', '{email}', '{country_code}', '{country_name}', '{city}', '{user_tz_identifier}'), array($chat->referrer, $chat->nick, $chat->email, $chat->country_code, $chat->country_name, $chat->city, $chat->user_tz_identifier), $this->configData['subject']), 'message' => str_replace(array('{time_created_front}', '{additional_data}', '{id}', '{url}', '{referrer}', '{messages}', '{remarks}', '{nick}', '{email}', '{country_code}', '{country_name}', '{city}', '{user_tz_identifier}'), array(date(erLhcoreClassModule::$dateDateHourFormat, $chat->time), $chat->additional_data, $chat->id, (erLhcoreClassSystem::$httpsMode == true ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . erLhcoreClassDesign::baseurl('user/login') . '/(r)/' . rawurlencode(base64_encode('chat/single/' . $chat->id)), $chat->referrer, $messagesContent, $chat->remarks, $chat->nick, $chat->email, $chat->country_code, $chat->country_name, $chat->city, $chat->user_tz_identifier), $this->configData['message']), 'ip' => $chat->ip);
     return $data;
 }
开发者ID:SetRandom,项目名称:osTicket,代码行数:15,代码来源:bootstrap.php


示例9: sevabot

 /**
  * Arguments
  * array('chat' => & $chat)
  * */
 public function sevabot($params)
 {
     $settings = (include 'extension/sevabot/settings/settings.ini.php');
     // Format message content
     $chat = $params['chat'];
     $messages = array_reverse(erLhcoreClassModelmsg::getList(array('limit' => 5, 'sort' => 'id DESC', 'filter' => array('chat_id' => $chat->id))));
     $messagesContent = '';
     foreach ($messages as $msg) {
         if ($msg->user_id == -1) {
             $messagesContent .= date(erLhcoreClassModule::$dateDateHourFormat, $msg->time) . ' ' . erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmin', 'System assistant') . ': ' . htmlspecialchars($msg->msg) . "\n";
         } else {
             $messagesContent .= date(erLhcoreClassModule::$dateDateHourFormat, $msg->time) . ' ' . ($msg->user_id == 0 ? htmlspecialchars($chat->nick) : htmlspecialchars($msg->name_support)) . ': ' . htmlspecialchars($msg->msg) . "\n";
         }
     }
     $cfgSite = erConfigClassLhConfig::getInstance();
     $secretHash = $cfgSite->getSetting('site', 'secrethash');
     $chatDataItems = $settings['chat'];
     if (isset($settings['chat_dep'][$chat->dep_id]) && !empty($settings['chat_dep'][$chat->dep_id])) {
         $chatDataItems = array_merge($chatDataItems, $settings['chat_dep'][$chat->dep_id]);
     }
     // Global notifications
     foreach ($chatDataItems as $chatData) {
         $veryfyEmail = sha1(sha1($chatData['email'] . $secretHash) . $secretHash);
         $msgParsed = str_replace(array('{messages}', '{url_accept}', '{chat_id}', '{user_name}'), array($messagesContent, erLhcoreClassXMP::getBaseHost() . $_SERVER['HTTP_HOST'] . erLhcoreClassDesign::baseurl('chat/accept') . '/' . erLhcoreClassModelChatAccept::generateAcceptLink($chat) . '/' . $veryfyEmail . '/' . $chatData['email'], $chat->id, $chat->user_name), $settings['msg']);
         $md5 = md5($chatData['chat_id'] . $msgParsed . $settings['sevabot_secret']);
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL, $settings['url']);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
         curl_setopt($ch, CURLOPT_TIMEOUT, 5);
         curl_setopt($ch, CURLOPT_POST, true);
         curl_setopt($ch, CURLOPT_POSTFIELDS, array('md5' => $md5, 'msg' => $msgParsed, 'chat' => $chatData['chat_id']));
         curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
         curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
         @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
         // Some hostings produces wargning...
         $content = curl_exec($ch);
         if ($content != 'OK') {
             erLhcoreClassLog::write(print_r($content, true));
         }
     }
 }
开发者ID:creativeprogramming,项目名称:livehelperchat-extensions,代码行数:46,代码来源:bootstrap.php


示例10: array

<?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');
开发者ID:sirromas,项目名称:medical,代码行数:7,代码来源:offline_form_disabled.tpl.php


示例11: htmlspecialchars

<li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><?php 
echo htmlspecialchars($UserData->name), ' ', htmlspecialchars($UserData->surname);
?>
 <span class="caret"></span></a>
    <ul class="dropdown-menu" role="menu">
        <li><a href="<?php 
echo erLhcoreClassDesign::baseurl('user/account');
?>
" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Account');
?>
"><i class="glyphicon glyphicon-user"></i> <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Account');
?>
</a></li>
        <li><a href="<?php 
echo erLhcoreClassDesign::baseurl('user/logout');
?>
" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Logout');
?>
"><i class="glyphicon glyphicon-log-out"></i> <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Logout');
?>
</a></li>
    </ul>
</li>
 <?php 
unset($currentUser);
unset($UserData);
开发者ID:Joeboyc2,项目名称:livehelperchat,代码行数:31,代码来源:user_box.tpl.php


示例12: generateEmbedCode

    var id_position =  '/(position)/'+$('#PositionID').val();
	var textStatus = $('#id_status_text').val();
	var top = '/(top)/'+($('#id_top_text').val() == '' ? 300 : $('#id_top_text').val());
	var topposition = '/(units)/'+$('#UnitsTop').val();
	var widthwidget = '/(width)/'+($('#id_width_text').val() == '' ? 300 : $('#id_width_text').val());
	var heightwidget = '/(height)/'+($('#id_height_text').val() == '' ? 300 : $('#id_height_text').val());
	var chat_height = '/(chat_height)/'+($('#id_chat_height').val() == '' ? 220 : $('#id_chat_height').val());	
	var show_content = ($('#ShowContent').is(':checked') ? '/(sc)/true' : '');
	var show_min = ($('#ShowContentMinimized').is(':checked')? '/(scm)/true' : '');
	var dis_min = ($('#DisableMiminize').is(':checked')? '/(dmn)/true' : '');
	var id_disable_responsive = $('#id_disable_responsive').is(':checked') ? '/(noresponse)/true' : '';
	var id_theme = $('#ThemeID').val() > 0 ? '/(theme)/'+$('#ThemeID').val() : '';
	
    var script = '<script type="text/javascript">'+"\nvar LHCChatboxOptions = {hashchatbox:'empty',identifier:'default',status_text:'"+textStatus+"'};\n"+
      '(function() {'+"\n"+
        'var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;'+"\n"+
        'po.src = \''+$('#HttpMode').val()+'//<?php 
echo $_SERVER['HTTP_HOST'];
echo erLhcoreClassDesign::baseurldirect();
?>
'+siteAccess+'chatbox/getstatus'+id_position+top+id_disable_responsive+topposition+widthwidget+id_theme+heightwidget+chat_height+show_content+show_min+dis_min+"';\n"+
        'var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);'+"\n"+
      '})();'+"\n"+
    '</scr'+'ipt>';
    $('#HMLTContent').text(script);
};
$('#LocaleID,#PositionID,#HttpMode,#id_status_text,#UnitsTop,#id_top_text,#id_width_text,#id_height_text,#ThemeID,#id_disable_responsive,#id_chat_height,#ShowContent,#ShowContentMinimized,#DisableMiminize').change(function(){
    generateEmbedCode();
});
generateEmbedCode();
</script>
开发者ID:sudogitguy,项目名称:livehelperchat,代码行数:31,代码来源:htmlcode.tpl.php


示例13: erLhcoreClassModelFaq

<?php

$faq = new erLhcoreClassModelFaq();
$response = erLhcoreClassChatEventDispatcher::getInstance()->dispatch('faq.new', array('faq' => $faq));
$tpl = erLhcoreClassTemplate::getInstance('lhfaq/new.tpl.php');
if (isset($_POST['Save'])) {
    if (!isset($_POST['csfr_token']) || !$currentUser->validateCSFRToken($_POST['csfr_token'])) {
        erLhcoreClassModule::redirect();
        exit;
    }
    $Errors = erLhcoreClassFaq::validateFaq($faq);
    if (count($Errors) == 0) {
        $faq->saveThis();
        erLhcoreClassChatEventDispatcher::getInstance()->dispatch('faq.created', array('faq' => &$faq));
        erLhcoreClassModule::redirect('faq/list');
        exit;
    } else {
        $tpl->set('errors', $Errors);
    }
}
if (isset($_POST['Cancel'])) {
    erLhcoreClassModule::redirect('faq/list');
    exit;
}
$tpl->set('faq', $faq);
$Result['content'] = $tpl->fetch();
$Result['path'] = array(array('url' => erLhcoreClassDesign::baseurl('faq/list'), 'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('faq/list', 'FAQ')), array('title' => erTranslationClassLhTranslation::getInstance()->getTranslation('faq/new', 'New question')));
开发者ID:Adeelgill,项目名称:livehelperchat,代码行数:27,代码来源:new.php


示例14:

<li><a href="<?php 
echo erLhcoreClassDesign::baseurl('chat/list');
?>
"><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/configuration', 'Chats list');
?>
</a></li>
开发者ID:Adeelgill,项目名称:livehelperchat,代码行数:7,代码来源:chat_list.tpl.php


示例15:

echo $chatOptionsVariable;
?>
.opt.nh_image != 'undefined') ? <?php 
echo $chatOptionsVariable;
?>
.opt.nh_image : '<?php 
if ($iconsStatuses['need_help_image_url'] == false) {
    echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
    ?>
//<?php 
    echo $_SERVER['HTTP_HOST'];
}
if ($theme !== false && $theme->need_help_image_url !== false) {
    print $theme->need_help_image_url;
} else {
    echo erLhcoreClassDesign::design('images/general/operator.png');
}
?>
';

subStatus = '<div id="lhc_need_help_container" style="<?php 
echo $currentPosition['nh_hor_pos'];
?>
">'+
'<span id="lhc_need_help_triangle" style="<?php 
echo $currentPosition['nh_tr_pos'];
?>
"></span>'+
'<a id="lhc_need_help_close" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/getstatus', 'Close');
?>
开发者ID:keenick,项目名称:livehelperchat,代码行数:31,代码来源:we_here_substatus.tpl.php


示例16:

<ul class="list-unstyled">				
      <li ng-repeat="chat in unread_chats.list track by chat.id"  >
      	<span ng-if="chat.country_code != undefined"><img ng-src="<?php 
echo erLhcoreClassDesign::design('images/flags');
?>
/{{chat.country_code}}.png" alt="{{chat.country_name}}" title="{{chat.country_name}}" /></span>
      	<a class="icon-info" title="ID - {{chat.id}}" ng-click="lhc.previewChat(chat.id)" ></a><a class="right-action-hide icon-chat" ng-click="lhc.startChat(chat.id,chat.nick)" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 'Add chat');
?>
"></a><a class="icon-popup" ng-click="lhc.startChatNewWindow(chat.id,chat.nick)" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 'Open in a new window');
?>
"></a> {{chat.nick}}, {{chat.time_created_front}}, {{chat.department_name}} | <b>{{chat.unread_time.hours}} <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 'h.');
?>
 {{chat.unread_time.minits}} <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 'm.');
?>
 {{chat.unread_time.seconds}} <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 's.');
?>
 <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 'ago');
?>
.</b>
      </li>					
</ul>
<p ng-show="unread_chats.list.length == 0"><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Empty...');
?>
</p>
开发者ID:Joeboyc2,项目名称:livehelperchat,代码行数:31,代码来源:angular_unread_list.tpl.php


示例17:

<!DOCTYPE html>

<html lang="<?php 
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'content_language');
?>
" dir="<?php 
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'dir_language');
?>
">
<head>
<?php 
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/page_head.tpl.php');
?>
<link rel="stylesheet" type="text/css" href="<?php 
echo erLhcoreClassDesign::designCSS('css/print.css');
?>
" />
</head>
<body>

<?php 
echo $Result['content'];
?>

<?php 
if (erConfigClassLhConfig::getInstance()->getSetting('site', 'debug_output') == true) {
    $debug = ezcDebug::getInstance();
    echo $debug->generateOutput();
}
?>
<script>
开发者ID:mdb-webdev,项目名称:livehelperchat,代码行数:31,代码来源:print.php


示例18: serialize

        if ($form->hasValidData('HideFor')) {
            $data['hide_for'] = $form->HideFor;
        } else {
            $data['hide_for'] = '';
        }
        if ($form->hasValidData('OtherStatus')) {
            $data['other_status'] = $form->OtherStatus;
        } else {
            $data['other_status'] = '';
        }
        if ($form->hasValidData('RestStatus')) {
            $data['rest_status'] = $form->RestStatus;
        } else {
            $data['rest_status'] = '';
        }
        if ($form->hasValidData('ApplyWidget')) {
            $data['apply_widget'] = 1;
        } else {
            $data['apply_widget'] = 0;
        }
    }
    $geoData->value = serialize($data);
    $geoData->saveThis();
    $CacheManager = erConfigClassLhCacheConfig::getInstance();
    $CacheManager->expireCache();
    $tpl->set('updated', 'done');
}
$tpl->set('geo_data', $data);
$Result['content'] = $tpl->fetch();
$Result['path'] = array(array('url' => erLhcoreClassDesign::baseurl('system/configuration'), 'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'System configuration')), array('title' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/geoadjustment', 'GEO adjustment')));
开发者ID:sudogitguy,项目名称:livehelperchat,代码行数:30,代码来源:geoadjustment.php


示例19: lhPaginator

<?php

try {
    $tpl = erLhcoreClassTemplate::getInstance('lhinstance/invoices.tpl.php');
    $pages = new lhPaginator();
    $pages->items_total = erLhcoreClassModelInstanceInvoice::getCount();
    $pages->translationContext = 'abstract/list';
    $pages->serverURL = erLhcoreClassDesign::baseurl('instance/invoices');
    $pages->setItemsPerPage(20);
    $pages->paginate();
    $tpl->set('pages', $pages);
    $items = array();
    if ($pages->items_total > 0) {
        $items = erLhcoreClassModelInstanceInvoice::getList(array('offset' => $pages->low, 'limit' => $pages->items_per_page));
    }
    $tpl->set('items', $items);
    $tpl->set('pages', $pages);
    $Result['content'] = $tpl->fetch();
    $Result['path'] = array(array('url' => erLhcoreClassDesign::baseurl('system/configuration'), 'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'System configuration')), array('title' => erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit', 'Invoices')));
} catch (Exception $e) {
    print_r($e);
}
开发者ID:alisadali,项目名称:automated-hosting,代码行数:22,代码来源:invoices.php


示例20:

<?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>
开发者ID:remdex,项目名称:livehelperchat,代码行数:29,代码来源:newgroup.tpl.php



注:本文中的erLhcoreClassDesign类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP erLhcoreClassIPDetect类代码示例发布时间:2022-05-23
下一篇:
PHP erLhcoreClassChatEventDispatcher类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap