当前位置: 首页>>代码示例>>PHP>>正文


PHP erLhcoreClassDesign::designtpl方法代码示例

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


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

示例1: 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

示例2:

<?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 
}
开发者ID:sajawalsz,项目名称:WebDealerSolutions,代码行数:14,代码来源:statistic.tpl.php

示例3:

        ?>
        		
            </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>
开发者ID:sudogitguy,项目名称:livehelperchat,代码行数:31,代码来源:main.php

示例4: time

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

示例5: 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

示例6: time

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

示例7:

</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 
开发者ID:sudogitguy,项目名称:livehelperchat,代码行数:31,代码来源:list.tpl.php

示例8:

    }
    ?>
</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 
}
开发者ID:p4prawin,项目名称:livechat,代码行数:31,代码来源:section_online_users.tpl.php

示例9:

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

示例10:

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

示例11:

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'] . '" ' : '';
?>
开发者ID:Topspot,项目名称:livehelperchat,代码行数:31,代码来源:docsharewidget.php

示例12:

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

示例13: htmlspecialchars

	<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 
}
开发者ID:mdb-webdev,项目名称:livehelperchat,代码行数:31,代码来源:startchat.tpl.php

示例14:

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

示例15: htmlspecialchars

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


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