本文整理汇总了PHP中JHTML::tooltip方法的典型用法代码示例。如果您正苦于以下问题:PHP JHTML::tooltip方法的具体用法?PHP JHTML::tooltip怎么用?PHP JHTML::tooltip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JHTML
的用法示例。
在下文中一共展示了JHTML::tooltip方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: listMessagesTitle
static function listMessagesTitle($newsletter, $messages, $linkable)
{
$base_jinc = JURI::base() . 'components/com_jinc/assets/images/icons/';
$options = array('height' => 16, 'width' => 16, 'title' => JText::_('COM_JINC_ATTACHMENT'));
$attach_img = JHTML::image($base_jinc . 'attachment.png', JText::_('COM_JINC_ATTACHMENT'), $options);
echo '<table class="tbl_oldmsg" align="center" width="95%">';
echo '<thead><tr>';
echo '<th width="65%" align="left">' . JText::_('COM_JINC_SUBJECT') . '</th>';
echo '<th width="25%" align="center">' . JText::_('COM_JINC_MSGSENT') . '</th>';
echo '<th width="10%" align="center">' . $attach_img . '</th>';
echo '</tr></thead>';
$i = 0;
foreach ($messages as $message) {
$subject = $message->subject;
$body = $message->body . $newsletter->get('disclaimer');
$body = preg_replace('/\\[SENDER\\]/s', $newsletter->get('sendername'), $body);
$body = preg_replace('/\\[SENDERMAIL\\]/s', $newsletter->get('senderaddr'), $body);
$body = preg_replace('/\\[NEWSLETTER\\]/s', $newsletter->get('name'), $body);
$news_id = $newsletter->get('id');
$unsub_link = JURI::root() . 'index.php?option=com_jinc&view=newsletter&layout=unsubscription&news_id=' . $news_id;
$body = preg_replace('/\\[UNSUBSCRIPTIONURL\\]/s', $unsub_link, $body);
$user = JFactory::getUser();
if (!$user->guest) {
$user_mail = $user->get('email');
$userid = $user->get('username');
$username = $user->get('name');
$current = array('usermail' => $user_mail, 'userid' => $userid, 'username' => $username);
foreach ($current as $key => $value) {
$body = preg_replace('/\\[' . strtoupper($key) . '\\]/s', $value, $body);
}
}
$datasent = $message->datasent;
$attachment = str_replace(DIRECTORY_SEPARATOR, '/', $message->attachment);
$link_att = JRoute::_('images/' . $attachment);
echo '<tr class="row' . $i % 2 . '">';
echo '<td width="50%">';
if ($linkable) {
echo '<a href="index.php?option=com_jinc&view=message&id=' . $message->id . '">' . $subject . '</a>';
} else {
echo JHTML::tooltip(substr(strip_tags($body), 0, 75) . ' ...', $subject, '', $subject);
}
echo '</td>';
echo '<td width="20%" align="center">' . $datasent . '</td>';
echo '<td width="8%" align="center">';
if (strlen($message->attachment) > 0) {
echo $attach_img;
}
echo '</td>';
echo '</tr>';
$i++;
}
echo '</table>';
}
示例2: array
<?php
$options = array();
$options[] = JHTML::_('select.option', "1", JText::_('DT_EACH_MEMBER'));
$options[] = JHTML::_('select.option', "2", JText::_('DT_BILLING_ONLY'));
$options[] = JHTML::_('select.option', "3", JText::_('DT_MEMBERS_BILLING'));
echo JHTML::_('select.radiolist', $options, "group_behave", "", "value", "text", $row->group_behave);
?>
</td>
<td valign="top"><?php
echo JHTML::tooltip(JText::_('DT_HELP_FIELD_GROUPOPTIONS'), '', 'tooltip.png', '', '');
?>
</td>
</tr>
</tbody>
</table>
示例3:
/>
</td>
</tr>
<tr>
<td class="key">
<?php
echo _JSHOP_VIDEO_HTML5_TYPE;
?>
</td>
<td>
<input type="text" name="video_html5_type" value ="<?php
echo $jshopConfig->video_html5_type;
?>
" />
<?php
echo JHTML::tooltip("video/mp4, video/webm, video/ogg");
?>
</td>
</tr>
<?php
$pkey = "etemplatevar2";
if ($this->{$pkey}) {
print $this->{$pkey};
}
?>
</table>
</fieldset>
</div>
<div class="clr"></div>
<?php
示例4: array
:</td>
<td>
<?php
$options = array();
$options[] = JHTML::_('select.option', '0', JText::_('No'));
$options[] = JHTML::_('select.option', '1', JText::_('DT_YES_REQUIRED'));
$options[] = JHTML::_('select.option', '2', JText::_('DT_YES_OPTIONAL'));
echo JHTML::_('select.genericlist', $options, 'data[event][usercreation]', '', 'value', 'text', $row->usercreation);
?>
</td>
<td> <?php
echo JHTML::tooltip(JText::_('DT_USER_CREATION_HELP'), '', 'tooltip.png', '', '');
?>
</td>
</tr>
<?php
echo $this->loadTemplate('image');
?>
</table>
<script type="text/javascript">
DTjQuery(function(){
DTjQuery.validator.messages.required;
示例5: array
?>
<tr>
<td><?php
echo JText::_('DT_EVENT_TYPE');
?>
:</td>
<?php
$options = array('new' => JText::_('DT_NEW_EVENT'), 'jevent' => JText::_('DT_JEVENT'));
?>
<td><?php
echo JHTML::_('select.genericlist', DtHtml::options($options), 'eventType', ' ', 'value', 'text', 'new');
?>
</td>
<td colspan="2" align="left"> <?php
echo JHTML::tooltip(JText::_('DT_EVENT_TYPE_HELP'), '', 'tooltip.png', '', '');
?>
</td>
</tr>
<?php
}
?>
<script type="text/javascript">
DTjQuery(function(){
DTjQuery("#eventType").change(function(){
var value = DTjQuery(this).val();
if(navigator.appName.indexOf("Micro") >=0){
display = 'block';
示例6: defined
<?php
/*
* ------------------------------------------------------------------------
* Copyright (C) 2009 - 2013 The YouTech JSC. All Rights Reserved.
* @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
* Author: The YouTech JSC
* Websites: http://www.smartaddons.com - http://www.cmsportal.net
* ------------------------------------------------------------------------
*/
// no direct access
defined('_JEXEC') or die;
$span_tip = JHTML::tooltip('- You can remove SJ Help in Yt Plugin<br/>- Thank for using!', '', '', 'SJ Help');
$html .= "\r\n<script type='text/javascript'>\r\n\tjQuery(document).ready(function(\$){ \r\n\t\tif(\$('#module-menu')!=null){\r\n\t\t\t\$('#menu').append('<li id=\\'li-sjhelp\\' class=\\'dropdown\\'></li>');\r\n\t\t\t\$('#menu li#li-sjhelp').append('<a class=\\'dropdown-toggle\\' data-toggle=\\'dropdown\\' href=\\'#\\' style=\\'background: url(../plugins/system/yt/includes/images/yt.png) no-repeat 5px center; padding-left:25px\\'>SJ Help</a>');\r\n\t\t\t\$('#menu li#li-sjhelp a.dropdown-toggle').append('<span class=\\'caret\\'></span>');\r\n\t\t\t\$('#menu li#li-sjhelp').append('<ul id=\\'ul-sjhelp\\' class=\\'dropdown-menu\\'></ul>');\r\n\t\t\t\$('#menu li#li-sjhelp ul').append('<li class=\\'report-sjhelp\\'></li>');\r\n\t\t\t\$('#menu li#li-sjhelp ul').append('<li class=\\'tut-sjhelp\\'></li>');\r\n\t\t\t\$('#menu li#li-sjhelp ul').append('<li class=\\'info-sjhelp\\'></li>');\r\n\t\t\t\r\n\t\t\t\$('#menu li#li-sjhelp ul li.report-sjhelp').append('<a href=\\'http://www.smartaddons.com/forum/index/7-joomla-templates\\' target=\\'_blank\\'>Report bugs</a>');\r\n\t\t\t\$('#menu li#li-sjhelp ul li.tut-sjhelp').append('<a href=\\'http://www.smartaddons.com/joomla/templates/template-user-guides\\' target=\\'_blank\\'>Template Tutorial</a>');\r\n\t\t\t\$('#menu li#li-sjhelp ul li.info-sjhelp').append('<a href=\\'http://www.smartaddons.com/joomla/templates/yt-framework\\' target=\\'_blank\\'>Framework Tutorials</a>');\r\n\t\t\t\r\n\t\t\t\$('#menu').append('<li class=\\'yt-clearcache dropdown\\'></li>');\r\n\t\t\t\$('.yt-clearcache').append('<a style=\\'background: url(../plugins/system/yt/includes/images/clean-cache.png) no-repeat left center; padding-left:15px;\\' href=\\'javascript:void(0)\\'>Clean cache: CSS, JS</a>');\r\n\t\t\t\$('.yt-clearcache a').click(function(){\r\n\t\t\t\tvar linkurl = '../index.php?action=clearCache&type=plugin';\r\n\t\t\t\t\$.post(linkurl, function() {\r\n\t\t\t\t})\r\n\t\t\t\t.error(function() { alert('Error...'); })\r\n\t\t\t\t.complete(function() { alert('Clear cache successful !') }); \r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n\t\r\n</script>\r\n";
示例7:
echo JHTML::tooltip(JText::_('COM_SOCIALADS_ZONE_IFHT_ADS_TOOLTIP'), JText::_('COM_SOCIALADS_ZONE_IFHT_ADS'), '', JText::_('COM_SOCIALADS_ZONE_IFHT_ADS'));
?>
</td>
<td >
<div class="input-append">
<input type="text" name="if_ht" id="if_ht" class="inputbox input-mini" placeholder="<?php
echo JText::_('COM_SOCIALADS_IF_HT_HOLDER');
?>
" size="10" value="" autocomplete="off" />
<span class="add-on">px</span>
</div>
</td>
</tr>
<tr>
<td width="25%"><?php
echo JHTML::tooltip(JText::_('COM_SOCIALADS_ZONE_IF_SEAMLS_ADS_TOOLTIP'), JText::_('COM_SOCIALADS_ZONE_IF_SEAMLS_ADS'), '', JText::_('COM_SOCIALADS_ZONE_IF_SEAMLS_ADS'));
?>
</td>
<td >
<div class="input-append yes_no_toggle">
<input type="radio" name="if_seam" id="if_seam1" value="1" checked="checked" >
<label class="first btn btn-success" type="button" for="if_seam1"><?php
echo JText::_('COM_SOCIALADS_YES');
?>
</label>
<input type="radio" name="if_seam" id="if_seam2" value="0">
<label class="last btn" type="button" for="if_seam2"><?php
echo JText::_('COM_SOCIALADS_NO');
?>
</label>
</div>
示例8:
<?php
echo JHTML::_('select.genericlist', $orders->getAllOrderStatus(), 'pm_params[transaction_pending_status]', 'class = "inputbox" size = "1"', 'status_id', 'name', $params['transaction_pending_status']);
echo " " . JHTML::tooltip(_JSHOP_PRIVAT24_TRANSACTION_PENDING_DESCRIPTION);
?>
</td>
</tr>
<tr>
<td class="key">
<?php
echo _JSHOP_TRANSACTION_FAILED;
?>
</td>
<td>
<?php
echo JHTML::_('select.genericlist', $orders->getAllOrderStatus(), 'pm_params[transaction_failed_status]', 'class = "inputbox" size = "1"', 'status_id', 'name', $params['transaction_failed_status']);
echo " " . JHTML::tooltip(_JSHOP_PRIVAT24_TRANSACTION_FAILED_DESCRIPTION);
?>
</td>
</tr>
<tr>
<td class="key">
<?php
echo _JSHOP_PRIVAT24_CHECK_DATA_RETURN;
?>
</td>
<td>
<?php
print JHTML::_('select.booleanlist', 'pm_params[checkdatareturn]', 'class = "inputbox" size = "1"', $params['checkdatareturn']);
?>
</td>
</tr>
示例9:
echo JHTML::tooltip(_JSHOP_THOUSAND_SEPARATOR_DESCRIPTION, _JSHOP_HINT);
?>
</td>
<td>
</td>
</tr>
<tr>
<td class="key" >
<?php
echo _JSHOP_CURRENCY_FORMAT;
?>
</td>
<td>
<?php
echo $lists['format_currency'];
echo " " . JHTML::tooltip(_JSHOP_CURRENCY_FORMAT_DESCRIPTION, _JSHOP_HINT);
?>
</td>
<td>
</td>
</tr>
<?php
$pkey = "etemplatevar";
if ($this->{$pkey}) {
print $this->{$pkey};
}
?>
</table>
</fieldset>
</div>
<div class="clr"></div>
示例10:
echo $row->coupon_code;
?>
" />
</td>
</tr>
<tr>
<td class="key">
<?php
echo _JSHOP_TYPE_COUPON;
?>
*
</td>
<td>
<?php
echo $lists['coupon_type'];
echo JHTML::tooltip(_JSHOP_COUPON_VALUE_DESCRIPTION, _JSHOP_HINT);
?>
</td>
</tr>
<tr>
<td class="key">
<?php
echo _JSHOP_VALUE;
?>
*
</td>
<td>
<input type="text" class="inputbox" id="coupon_value" name="coupon_value" value="<?php
echo $row->coupon_value;
?>
" />
示例11:
<?php
echo JHTML::_('select.genericlist', $orders->getAllOrderStatus(), 'pm_params[transaction_pending_status]', 'class = "inputbox" size = "1"', 'status_id', 'name', $params['transaction_pending_status']);
echo " " . JHTML::tooltip(_JSHOP_PAGSEGURO_TRANSACTION_PENDING_DESCRIPTION);
?>
</td>
</tr>
<tr>
<td class="key">
<?php
echo _JSHOP_TRANSACTION_FAILED;
?>
</td>
<td>
<?php
echo JHTML::_('select.genericlist', $orders->getAllOrderStatus(), 'pm_params[transaction_failed_status]', 'class = "inputbox" size = "1"', 'status_id', 'name', $params['transaction_failed_status']);
echo " " . JHTML::tooltip(_JSHOP_PAGSEGURO_TRANSACTION_FAILED_DESCRIPTION);
?>
</td>
</tr>
<tr>
<td class="key">
<?php
echo _JSHOP_CHECK_DATA_RETURN;
?>
</td>
<td>
<?php
print JHTML::_('select.booleanlist', 'pm_params[checkdatareturn]', 'class = "inputbox"', $params['checkdatareturn']);
?>
</td>
</tr>
示例12: listItemTask
echo '<td width="20"><input type="checkbox" onclick="isChecked(this.checked);" value="' . $row['id'] . '" name="cid[]" id="cb' . $i . '"/></td>';
echo '<td><span> <a href="' . $hlink . '">' . $row['matricule'] . '</a> </span></td>';
} else {
$checkuser =& JFactory::getUser($row['checked_out']);
echo '<td align="center">' . JHTML::tooltip("L'utilisateur " . $checkuser->name . " 9a3ed ichouf fih mil " . $row['checked_out_time'], 'Locked', '../../../administrator/images/checked_out.png', '', '') . '</td>';
echo '<td><span> <a>' . $row['matricule'] . '</a> </span></td>';
}
//<span class="editlinktip hasTip" title="Houni il tooltip texte za3ma"><a><img border="0" alt="Locked" src="administrator/images/checked_out.png"/></a></span></td>';
echo '<td align="center"><span>' . $row['lastname'] . '</span></td>';
echo '<td align="center"><span>' . $row['firstname'] . '</span></td>';
echo '<td align="center"><span>' . $row['department'] . '</span></td>';
echo '<td align="center"><span>' . $row['branch'] . '</span></td>';
echo '<td align="center"><span>' . $row['position'] . '</span></td>';
// echo '<td align="center">'.JHTML::tooltip('Click to contact the user', 'Contact','', '$row['email']', '').'</td>'; $row['email'];
if ($row['email']) {
echo '<td align="center"><span>' . JHTML::tooltip('Click to contact the user', 'Contact', '', $row['email'], '') . '</span></td>';
} else {
echo '<td align="center"><span>' . '</span></td>';
}
$hlink = 'index.php?option=com_jaderp&func=Workers&task=present&cid=' . $row["id"];
if ($row['presence']) {
echo '<td align="center"><span><a title="Marquer comme absent" onclick="return listItemTask(\'cb' . $i . '\',\'unpublish\')" href="javascript:void(0);"><img border="0" alt="Présent" src="images/tick.png"/></a></span></td>';
} else {
//$hlink = 'index.php?option=com_jaderp&func=Workers&task=present&cid='.$row["id"];
echo '<td align="center"><span><a title="Marquer comme absent" onclick="return listItemTask(\'cb' . $i . '\',\'publish\')" href="javascript:void(0);"><img border="0" alt="Présent" src="images/publish_x.png"/></a></span></td>';
}
echo '<td align="center"><span>' . $row['access'] . '</span></td>';
echo '</tr>';
$k = 1 - $k;
$i++;
}
示例13: htmlentities
?>
</td>
<td><input class="text_area" type="text" name="name" id="name"
size="50" maxlength="250" value="<?php
echo htmlentities($row->name, ENT_QUOTES, "UTF-8");
?>
" />
<input type="hidden" name="tempName" value="<?php
echo htmlentities($row->name, ENT_QUOTES, "UTF-8");
?>
" />
</td>
</tr>
<tr>
<td width="100" align="right" class="key"><?php
echo JHTML::tooltip(JTEXT::_('TOOLTIP_LOCATION_DESC'), JTEXT::_('TOOLTIP_LOCATION_DESC_TITLE'), '', JTEXT::_('DESC'));
?>
</td>
<td><textarea style="width: auto" type="text" name="description"
id="description" maxlength="250" cols="36" rows="3"><?php
echo $row->description;
?>
</textarea>
</td>
</tr>
<tr>
<td width="100" align="right" class="key"><span><?php
echo JText::_('PUBLISHED');
?>
</span></td>
<td><?php
示例14:
<span class="add-on"><?php
echo $socialads_config['currency'];
?>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="control-group">
<?php
?>
<label class="control-label" for=""><?php
echo JHTML::tooltip(JText::_('SELECT_METHOD_TOOLTIP'), JText::_('SELECT_METHOD'), '', JText::_('SELECT_METHOD'));
?>
</label>
<div class="controls">
<?php
echo JHTML::_('select.genericlist', $singleselect, "pricing_opt", 'class="chzn-done" onchange=getzone_price()', "value", "text", $this->addata_for_adsumary_edit->ad_payment_type);
?>
</div>
<div class="controls">
<div id="click" style="display:none"><p class="text-info"><span id="click_span"></span></p></div>
<div id="imps" style="display:none" ><p class="text-info"><span id="imps_span"></div>
</div>
</div>
<?php
/* if($socialads_config['bidding']==1) { ?>
示例15: array
$calendar_catShow_opts = array();
$calendar_catShow_opts[] = JHTML::_('select.option', '0', JText::_('NO'));
$calendar_catShow_opts[] = JHTML::_('select.option', '1', JText::_('YES'));
echo JHTML::_('select.genericlist', $calendar_catShow_opts, 'config[calendar_show_location]', ' ', 'value', 'text', $config->getGlobal('calendar_show_location', 0));
?>
</td>
<td align="left"><?php
echo JHTML::tooltip(JText::_('DT_CAL_SHOW_LOCATION_HELP'), '', 'tooltip.png', '', '');
?>
</td>
</tr>
<tr>
<td><strong><?php
echo JText::_('DT_SHOW_MODERATOR');
?>
:</strong></td>
<td> <?php
$calendar_catShow_opts = array();
$calendar_catShow_opts[] = JHTML::_('select.option', '0', JText::_('NO'));
$calendar_catShow_opts[] = JHTML::_('select.option', '1', JText::_('YES'));
echo JHTML::_('select.genericlist', $calendar_catShow_opts, 'config[calendar_show_moderator]', ' ', 'value', 'text', $config->getGlobal('calendar_show_moderator', 0));
?>
</td>
<td align="left"><?php
echo JHTML::tooltip(JText::_('DT_CAL_SHOW_MODERATOR_HELP'), '', 'tooltip.png', '', '');
?>
</td>
</tr>
</table>