本文整理汇总了PHP中erLhcoreClassDesign::shrt方法的典型用法代码示例。如果您正苦于以下问题:PHP erLhcoreClassDesign::shrt方法的具体用法?PHP erLhcoreClassDesign::shrt怎么用?PHP erLhcoreClassDesign::shrt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类erLhcoreClassDesign
的用法示例。
在下文中一共展示了erLhcoreClassDesign::shrt方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setTimeout
$msg = erTranslationClassLhTranslation::getInstance()->getTranslation('chat/modifychat', 'Chat information was updated');
?>
<script>
setTimeout(function(){
var originValue = parent.lhinst.closeWindowOnChatCloseDelete;
parent.lhinst.closeWindowOnChatCloseDelete = false;
parent.lhinst.removeDialogTab('<?php
echo $chat->id;
?>
',parent.$('#tabs'),true);
parent.lhinst.closeWindowOnChatCloseDelete = originValue;
parent.lhinst.startChat('<?php
echo $chat->id;
?>
',parent.$('#tabs'),'<?php
echo erLhcoreClassDesign::shrt($chat->nick, 10, '...', 30, ENT_QUOTES);
?>
');
parent.$('#myModal').modal('hide');
},3000);
</script>
<?php
include erLhcoreClassDesign::designtpl('lhkernel/alert_success.tpl.php');
}
?>
<form action="" method="post">
<div class="form-group">
<label><?php
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/modifychat', 'E-mail');
示例2: htmlspecialchars
?>
- <?php
echo $online_user->tt_time_on_site_front;
?>
</li>
<li><?php
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Current page');
?>
- <a target="_blank" href="<?php
echo htmlspecialchars($online_user->current_page);
?>
" title="<?php
echo htmlspecialchars($online_user->current_page);
?>
"><?php
echo erLhcoreClassDesign::shrt($online_user->current_page, 100, 100);
?>
</a></li>
<li><?php
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Came from');
?>
- <a target="_blank" href="<?php
echo htmlspecialchars($online_user->referrer);
?>
"><?php
echo htmlspecialchars($online_user->referrer);
?>
</a></li>
<li class="fs11"><i class="material-icons">language</i><?php
echo htmlspecialchars($online_user->user_agent);
?>
示例3: array
</div></div><?php
}
}
}
?>
</div></div></div><script>$( document ).ready(function() {lhinst.attachTabNavigator();$('#right-column-page').removeAttr('id');$('#tabs a:first').tab('show')});<?php
$chatsOpen = CSCacheAPC::getMem()->getArray('lhc_open_chats');
if (!empty($chatsOpen)) {
$chats = erLhcoreClassChat::getList(array('filterin' => array('id' => $chatsOpen)));
$deleteKeys = array_diff($chatsOpen, array_keys($chats));
foreach ($deleteKeys as $chat_id) {
CSCacheAPC::getMem()->removeFromArray('lhc_open_chats', $chat_id);
}
foreach ($chats as $chat) {
if (erLhcoreClassChat::hasAccessToRead($chat)) {
echo "lhinst.startChat('{$chat->id}',\$('#tabs'),'" . erLhcoreClassDesign::shrt($chat->nick, 10, '...', 30, ENT_QUOTES) . "');";
} else {
CSCacheAPC::getMem()->removeFromArray('lhc_open_chats', $chat->id);
}
}
}
?>
</script><?php
} else {
?>
<h1>System configuration</h1><?php
$currentUser = erLhcoreClassUser::instance();
?>
<div role="tabpanel"><ul class="nav nav-tabs" role="tablist"><li role="presentation" class="active"><a href="#system" aria-controls="system" role="tab" data-toggle="tab">System</a></li><?php
$system_configuration_tabs_generate_js_enabled = true;
if ($system_configuration_tabs_generate_js_enabled == true && $currentUser->hasAccessTo('lhsystem', 'generate_js_tab')) {
开发者ID:niravpatel2008,项目名称:north-american-nemesis-new,代码行数:31,代码来源:5d0370c4f43d45420ba48ede3ad4b44f.php
示例4: foreach
?>
</th>
<th width="1%"> </th>
<th width="1%"> </th>
</tr>
</thead>
<?php
foreach ($items as $item) {
?>
<tr>
<td><?php
echo $item->id;
?>
</td>
<td><?php
echo htmlspecialchars(erLhcoreClassDesign::shrt($item->answer));
?>
</td>
<td><?php
echo date(erLhcoreClassModule::$dateDateHourFormat, $item->ctime);
?>
</td>
<td><?php
echo $item->ip_front;
?>
</td>
<td nowrap><a class="tiny button round" onclick="return $.colorbox({'iframe':true,height:'500px',width:'500px', href:'<?php
echo erLhcoreClassDesign::baseurl('questionary/previewanswer');
?>
/<?php
echo $item->id;