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


PHP JHtml::tooltip方法代码示例

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


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

示例1: getInput

 protected function getInput()
 {
     $app = JFactory::getApplication();
     $product_id = $app->input->get('cid');
     $html = '';
     $html .= '<table class="adminlist table table-striped table-bordered">';
     if (isset($product_id)) {
         $html .= '<tr><td>';
         $html .= '<label class="k2store_product_id">';
         $html .= '<strong>' . JText::_('PLG_K2STORE_PRODUCT_ID_LABEL');
         $html .= '</strong>:&nbsp;&nbsp;';
         $html .= $product_id;
         $html .= '</label>';
         $html .= '</td></tr><tr><td>';
         $html .= "<strong>" . JText::_('PLG_K2STORE_PRODUCT_SHORT_TAG') . "</strong>: {k2storecart {$product_id}}";
         $html .= '&nbsp;&nbsp;';
         $html .= JHtml::tooltip(JText::_('PLG_K2STORE_PRODUCT_SHORT_TAG_HELP'), JText::_('PLG_K2STORE_PRODUCT_SHORT_TAG'), 'tooltip.png', '', '', false);
         $html .= '</td></tr>';
     } else {
         $html .= '<div class="alert alert-info">';
         $html .= JText::_('PLG_K2STORE_PRODUCT_ID_DESC');
         $html .= '</div>';
     }
     $html .= '</table>';
     return $html;
 }
开发者ID:A-Bush,项目名称:pprod,代码行数:26,代码来源:productj3.php

示例2:

      <tr>
        <td class="key">
          <?php 
echo ADMIN_CFG_FONDY_SECRET_KEY;
?>
:
        </td>
        <td>
          <input type="text" name="pm_params[fondy_secret_key]" class="inputbox" value="<?php 
echo $params['fondy_secret_key'];
?>
">
        </td>
        <td>
          <?php 
echo JHtml::tooltip(ADMIN_CFG_FONDY_SECRET_KEY_DESCRIPTION);
?>
        </td>
      </tr>
      <tr>
        <td class="key">
          <?php 
echo _JSHOP_TRANSACTION_END;
?>
:
        </td>
        <td>
          <?php 
print JHTML::_('select.genericlist', $orders->getAllOrderStatus(), 'pm_params[transaction_end_status]', 'class = "inputbox" size = "1"', 'status_id', 'name', $params['transaction_end_status']);
?>
        </td>
开发者ID:dimoncheg12,项目名称:fondy_jom,代码行数:31,代码来源:adminparamsform.php

示例3: testTooltip

 /**
  * Tests the tooltip method
  *
  * @return  void
  *
  * @since   3.1
  */
 public function testTooltip()
 {
     if (!is_array($_SERVER)) {
         $_SERVER = array();
     }
     // We save the state of $_SERVER for later and set it to appropriate values
     $http_host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : null;
     $script_name = isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : null;
     $_SERVER['HTTP_HOST'] = 'example.com';
     $_SERVER['SCRIPT_NAME'] = '/index.php';
     // We generate a random template name so that we don't collide or hit anything
     $template = 'mytemplate' . rand(1, 10000);
     // We create a stub (not a mock because we don't enforce whether it is called or not)
     // to return a value from getTemplate
     $mock = $this->getMock('myMockObject', array('getTemplate'));
     $mock->expects($this->any())->method('getTemplate')->will($this->returnValue($template));
     JFactory::$application = $mock;
     // Testing classical cases
     $this->assertThat(JHtml::tooltip('Content'), $this->equalTo('<span class="hasTooltip" title="Content"><img src="' . JUri::base(true) . '/media/system/images/tooltip.png" alt="Tooltip" /></span>'), 'Basic tooltip failed');
     $this->assertThat(JHtml::tooltip('Content', 'Title'), $this->equalTo('<span class="hasTooltip" title="' . '&lt;strong&gt;Title&lt;/strong&gt;&lt;br /&gt;Content' . '"><img src="/media/system/images/tooltip.png" alt="Tooltip" /></span>'), 'Tooltip with title and content failed');
     $this->assertThat(JHtml::tooltip('Content', 'Title', null, 'Text'), $this->equalTo('<span class="hasTooltip" title="&lt;strong&gt;Title&lt;/strong&gt;&lt;br /&gt;Content">Text</span>'), 'Tooltip with title and content and text failed');
     $this->assertThat(JHtml::tooltip('Content', 'Title', null, 'Text', 'http://www.monsite.com'), $this->equalTo('<span class="hasTooltip" title="&lt;strong&gt;Title&lt;/strong&gt;&lt;br /&gt;Content"><a href="http://www.monsite.com">Text</a></span>'), 'Tooltip with title and content and text and href failed');
     $this->assertThat(JHtml::tooltip('Content', 'Title', 'tooltip.png', null, null, 'MyAlt'), $this->equalTo('<span class="hasTooltip" title="' . '&lt;strong&gt;Title&lt;/strong&gt;&lt;br /&gt;Content' . '"><img src="' . JUri::base(true) . '/media/system/images/tooltip.png" alt="MyAlt" /></span>'), 'Tooltip with title and content and alt failed');
     $this->assertThat(JHtml::tooltip('Content', 'Title', 'tooltip.png', null, null, 'MyAlt', 'hasTooltip2'), $this->equalTo('<span class="hasTooltip2" title="' . '&lt;strong&gt;Title&lt;/strong&gt;&lt;br /&gt;Content' . '"><img src="' . JUri::base(true) . '/media/system/images/tooltip.png" alt="MyAlt" /></span>'), 'Tooltip with title and content and alt and class failed');
     $this->assertThat(JHtml::tooltip('Content', 'Title', null, 'Text', null, null, 'hasTip'), $this->equalTo('<span class="hasTip" title="Title::Content">Text</span>'), 'Tooltip with hasTip class failed');
     // Testing where title is an array
     $this->assertThat(JHtml::tooltip('Content', array('title' => 'Title')), $this->equalTo('<span class="hasTooltip" title="&lt;strong&gt;Title&lt;/strong&gt;&lt;br /&gt;Content"><img src="' . JUri::base(true) . '/media/system/images/tooltip.png" alt="Tooltip" /></span>'), 'Tooltip with title and content failed');
     $this->assertThat(JHtml::tooltip('Content', array('title' => 'Title', 'text' => 'Text')), $this->equalTo('<span class="hasTooltip" title="&lt;strong&gt;Title&lt;/strong&gt;&lt;br /&gt;Content">Text</span>'), 'Tooltip with title and content and text failed');
     $this->assertThat(JHtml::tooltip('Content', array('title' => 'Title', 'text' => 'Text', 'href' => 'http://www.monsite.com')), $this->equalTo('<span class="hasTooltip" title="&lt;strong&gt;Title&lt;/strong&gt;&lt;br /&gt;Content"><a href="http://www.monsite.com">Text</a></span>'), 'Tooltip with title and content and text and href failed');
     $this->assertThat(JHtml::tooltip('Content', array('title' => 'Title', 'alt' => 'MyAlt')), $this->equalTo('<span class="hasTooltip" title="&lt;strong&gt;Title&lt;/strong&gt;&lt;br /&gt;Content"><img src="' . JUri::base(true) . '/media/system/images/tooltip.png" alt="MyAlt" /></span>'), 'Tooltip with title and content and alt failed');
     $this->assertThat(JHtml::tooltip('Content', array('title' => 'Title', 'class' => 'hasTooltip2')), $this->equalTo('<span class="hasTooltip2" title="&lt;strong&gt;Title&lt;/strong&gt;&lt;br /&gt;Content"><img src="' . JUri::base(true) . '/media/system/images/tooltip.png" alt="Tooltip" /></span>'), 'Tooltip with title and content and class failed');
     $this->assertThat(JHtml::tooltip('Content', array()), $this->equalTo('<span class="hasTooltip" title="Content"><img src="' . JUri::base(true) . '/media/system/images/tooltip.png" alt="Tooltip" /></span>'), 'Basic tooltip (array version) failed');
 }
开发者ID:akirsoft,项目名称:joomla-cms,代码行数:40,代码来源:JHtmlTest.php

示例4:

 }
 // add mime file pic
 $size = 0;
 $files_pic = '';
 $number = '';
 if ($view_pics) {
     $size = (int) $view_pics_size;
     $files_pic = '<img src="' . JURI::base() . 'images/jdownloads/fileimages/' . $files[$i]->file_pic . '" style="text-align:top;border:0px;" width="' . $size . '" height="' . $size . '" alt="" /> ';
 }
 if ($view_numerical_list) {
     $num = $i + 1;
     $number = "{$num}. ";
 }
 // add description in tooltip
 if ($view_tooltip && $files[$i]->description != '') {
     $link_text = '<a href="' . $link . '">' . JHtml::tooltip(strip_tags(substr($files[$i]->description, 0, $view_tooltip_length)) . $short_char, JText::_('MOD_JDOWNLOADS_RELATED_DESCRIPTION_TITLE'), $files[$i]->file_title . ' ' . $version . $files[$i]->release, $files[$i]->file_title . ' ' . $version . $files[$i]->release) . '</a>';
 } else {
     $link_text = '<a href="' . $link . '">' . $files[$i]->file_title . ' ' . $version . $files[$i]->release . '</a>';
 }
 $html .= '<tr style="vertical-align:top;"><td style="text-align:' . $alignment . '">' . $number . $files_pic . $link_text . '</td>';
 // add the hits
 if ($view_hits) {
     if ($files[$i]->downloads) {
         if ($view_hits_same_line) {
             $html .= '<td style="text-align:' . $hits_alignment . ';">' . $hits_label . '&nbsp;' . modJdownloadsRelatedHelper::strToNumber($files[$i]->downloads) . '</td>';
         } else {
             $html .= '<tr style="vertical-align:top;"><td style="text-align:' . $hits_alignment . ';">' . $hits_label . '&nbsp;' . modJdownloadsRelatedHelper::strToNumber($files[$i]->downloads) . '</td>';
         }
     }
 }
 // add the hits
开发者ID:ashanrupasinghe,项目名称:dnp,代码行数:31,代码来源:default.php

示例5: foreach

if ($socialads_config['select_campaign'] == 0) {
    ?>
									<th align="center"><?php 
    echo JHtml::tooltip(JText::_('DESC_PAYMENT_STATUS'), JText::_('PAYMENT_STATUS'), '', JText::_('PAYMENT_STATUS'));
    ?>
</th>
								<?php 
}
?>

								<th class="hidden-tablet hidden-phone"><?php 
echo JHtml::tooltip(JText::_('DESC_IGNORENO'), JText::_('IGNORENO'), '', JText::_('IGNORENO'));
?>
</th>
								<th><?php 
echo JHtml::tooltip(JText::_('DESC_ACTIONS'), JText::_('ACTIONS'), '', JText::_('ACTIONS'));
?>
</th>
							</tr>
						</thead>
				<?php 
$k = $j = 0;
if (count($this->myads)) {
    foreach ($this->myads as $ads) {
        if ($ads->ad_approved == '1') {
            $tr_class = "class=''";
        } else {
            if ($ads->ad_approved == '0') {
                $tr_class = "class='warning'";
            } else {
                if ($ads->ad_approved == '2') {
开发者ID:politik86,项目名称:test2,代码行数:31,代码来源:list.php

示例6: getInput

 /**
  * Method to get the field input markup for a media selector.
  * Use attributes to identify specific created_by and asset_id fields
  *
  * @return  string  The field input markup.
  *
  * @since   1.6
  */
 protected function getInput()
 {
     $assetField = $this->element['asset_field'] ? (string) $this->element['asset_field'] : 'asset_id';
     $authorField = $this->element['created_by_field'] ? (string) $this->element['created_by_field'] : 'created_by';
     $asset = $this->form->getValue($assetField) ? $this->form->getValue($assetField) : (string) $this->element['asset_id'];
     if ($asset == '') {
         $asset = JFactory::getApplication()->input->get('option');
     }
     $link = (string) $this->element['link'];
     if (!self::$initialised) {
         // Load the modal behavior script.
         JHtml::_('behavior.modal');
         // Build the script.
         $script = array();
         $script[] = '	function jInsertFieldValue(value, id) {';
         $script[] = '		var old_value = document.id(id).value;';
         $script[] = '		if (old_value != value) {';
         $script[] = '			var elem = document.id(id);';
         $script[] = '			elem.value = value;';
         $script[] = '			elem.fireEvent("change");';
         $script[] = '			if (typeof(elem.onchange) === "function") {';
         $script[] = '				elem.onchange();';
         $script[] = '			}';
         $script[] = '			jMediaRefreshPreview(id);';
         $script[] = '		}';
         $script[] = '	}';
         $script[] = '	function jMediaRefreshPreview(id) {';
         $script[] = '		var value = document.id(id).value;';
         $script[] = '		var img = document.id(id + "_preview");';
         $script[] = '		if (img) {';
         $script[] = '			if (value) {';
         $script[] = '				img.src = "' . JURI::root() . '" + value;';
         $script[] = '				document.id(id + "_preview_empty").setStyle("display", "none");';
         $script[] = '				document.id(id + "_preview_img").setStyle("display", "");';
         $script[] = '			} else { ';
         $script[] = '				img.src = ""';
         $script[] = '				document.id(id + "_preview_empty").setStyle("display", "");';
         $script[] = '				document.id(id + "_preview_img").setStyle("display", "none");';
         $script[] = '			} ';
         $script[] = '		} ';
         $script[] = '	}';
         $script[] = '	function jMediaRefreshPreviewTip(tip)';
         $script[] = '	{';
         $script[] = '		var img = tip.getElement("img.media-preview");';
         $script[] = '		tip.getElement("div.tip").setStyle("max-width", "none");';
         $script[] = '		var id = img.getProperty("id");';
         $script[] = '		id = id.substring(0, id.length - "_preview".length);';
         $script[] = '		jMediaRefreshPreview(id);';
         $script[] = '		tip.setStyle("display", "block");';
         $script[] = '	}';
         // Add the script to the document head.
         JFactory::getDocument()->addScriptDeclaration(implode("\n", $script));
         self::$initialised = true;
     }
     $html = array();
     $attr = '';
     // Initialize some field attributes.
     $attr .= $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
     $attr .= $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
     // Initialize JavaScript field attributes.
     $attr .= $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';
     // The text field.
     $html[] = '<div class="input-prepend input-append">';
     // The Preview.
     $preview = (string) $this->element['preview'];
     $showPreview = true;
     $showAsTooltip = false;
     switch ($preview) {
         case 'no':
             // Deprecated parameter value
         // Deprecated parameter value
         case 'false':
         case 'none':
             $showPreview = false;
             break;
         case 'yes':
             // Deprecated parameter value
         // Deprecated parameter value
         case 'true':
         case 'show':
             break;
         case 'tooltip':
         default:
             $showAsTooltip = true;
             $options = array('onShow' => 'jMediaRefreshPreviewTip');
             JHtml::_('behavior.tooltip', '.hasTipPreview', $options);
             break;
     }
     if ($showPreview) {
         if ($this->value && file_exists(JPATH_ROOT . '/' . $this->value)) {
             $src = JURI::root() . $this->value;
         } else {
//.........这里部分代码省略.........
开发者ID:RuDers,项目名称:JoomlaSQL,代码行数:101,代码来源:media.php

示例7:

        //OSP http://forum.virtuemart.net/index.php?topic=99320.0
        ?>
<div class="product-field product-field-type-<?php 
        echo $field->field_type;
        ?>
">
                <?php 
        if (!$customTitle and $field->custom_title != $custom_title and $field->show_title) {
            ?>
                    <span class="product-fields-title-wrapper"><span class="product-fields-title"><strong><?php 
            echo vmText::_($field->custom_title);
            ?>
</strong></span>
                        <?php 
            if ($field->custom_tip) {
                echo JHtml::tooltip(vmText::_($field->custom_tip), vmText::_($field->custom_title), 'tooltip.png');
            }
            ?>
</span>
                <?php 
        }
        if (!empty($field->display)) {
            ?>
<div class="product-field-display"><?php 
            echo $field->display;
            ?>
</div><?php 
        }
        if (!empty($field->custom_desc)) {
            ?>
<div class="product-field-desc"><?php 
开发者ID:sam-akopyan,项目名称:hamradio,代码行数:31,代码来源:related_products.php

示例8: trim

echo JHtml::tooltip(JText::_('COM_QUICK2CART_COUPON_DESCRIPTION_TOOLTIP'), JText::_('COM_QUICK2CART_COUPON_DESCRIPTION'), '', JText::_('COM_QUICK2CART_COUPON_DESCRIPTION'));
?>
</label>
				<div class="controls">
					<textarea   size="28" rows="3" name="description" id="description" class="inputbox" ><?php 
if ($this->item) {
    echo trim($this->item->description);
}
?>
</textarea>
				</div>
			</div>

			<div class="control-group">
				<label for="params" class="control-label"><?php 
echo JHtml::tooltip(JText::_('COM_QUICK2CART_COUPON_PARAMETERS_TOOLTIP'), JText::_('COM_QUICK2CART_COUPON_PARAMETERS'), '', JText::_('COM_QUICK2CART_COUPON_PARAMETERS'));
?>
</label>
				<div class="controls">
					<textarea  size="28" rows="3" name="params" id="params" class="inputbox" ><?php 
if ($this->item) {
    echo trim($this->item->extra_params);
}
?>
</textarea>
				</div>
			</div>

		</div>

		<!--sj change -->
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:default.php

示例9:

				<!-- download count-->
				<?php 
if ($eProdUExpiryMode == 'epMaxDownload' || $eProdUExpiryMode == 'epboth') {
    $downcount = -1;
    if (!empty($mediaDetail[$m]['download_limit'])) {
        $downcount = $mediaDetail[$m]['download_limit'];
    }
    ?>
				<div class="control-group" style="<?php 
    echo $hideExpirationFields;
    ?>
">
					<label class="control-label" for="qtcDownCount">
						<?php 
    echo JHtml::tooltip(JText::_('COM_QUICK2CART_PROD_DOWN_COUNT_DES'), JText::_('COM_QUICK2CART_PROD_DOWN_COUNT'), '', JText::_('COM_QUICK2CART_PROD_DOWN_COUNT'));
    ?>
					</label>
					<div class="controls">
							<input type="text" name="prodMedia[<?php 
    echo $m;
    ?>
][downCount]" value="<?php 
    echo $downcount;
    ?>
" class='input-mini qtcMediaDownCount' id="" placeholder="">
					</div>
				</div>
				<?php 
}
?>
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:30,代码来源:media.php

示例10: explode

$sep = ',';
$exploded = explode(',', $alerta);
$i = 0;
foreach ($alerts as $a) {
    if ($style == ' sa-row1 ') {
        $style = ' sa-row0 ';
    } else {
        $style = ' sa-row1 ';
    }
    $expl = explode('_', $exploded[$i]);
    //print_r($expl);
    //echo '<br />';
    echo '<tr class="sa_table_row ' . $style . '">';
    echo '<td class="sa_table_cell">';
    //start creare tabel
    echo JHtml::tooltip($a->descriere, $a->nume_alerta, '', $a->nume_alerta);
    echo '</td>';
    echo '<td class="sa_table_cell" align="right" width="100">';
    echo '<form action="' . $link_form . '" method="post" name="set_alert_' . $a->id . '" id="set_alert_' . $a->id . '">';
    //
    echo '<input type="hidden" name="old_value" value="s-' . $a->id . '_' . $expl[1] . '" />';
    if ($expl[1] == 0) {
        $new_v = 1;
    } else {
        $new_v = 0;
    }
    echo '<input type="hidden" name="new_value" value="s-' . $a->id . '_' . $new_v . '" />';
    echo '</form>';
    echo '<div style="display:inline;">';
    echo '<div style="float:left;" class="sa_alert_box sa_hover ';
    // sa_alert_selected
开发者ID:grchis,项目名称:Site-Auto,代码行数:31,代码来源:alerte_customer.php

示例11:

?>
</th>
							<th><?php 
echo JHtml::tooltip(JText::_('NO_IMPRESSIONS'), '', '', JText::_('IMPRESSIONS'));
?>
</th>
							<th class="hidden-tablet hidden-phone"><?php 
echo JHtml::tooltip(JText::_('DESC_CLICK_THROUGH_RATIO'), JText::_('CLICK_THROUGH_RATIO'), '', JText::_('CLICK_THROUGH_RATIO'));
?>
</th>
							<th><?php 
echo JHtml::_('grid.sort', JText::_('DAILY_BUDGET'), 'c.daily_budget', $this->lists['order_Dir'], $this->lists['order']);
?>
</th>
							<th><?php 
echo JHtml::tooltip(JText::_('ACTION'), '', '', JText::_('ACTION'));
?>
</th>
						</tr>
					</thead>	
		
						
					
				
				<?php 
$i = 0;
//print_r($this->list); die('adasd');
foreach ($this->list as $key) {
    $i++;
    //$v=JText::_('START');
    ?>
开发者ID:politik86,项目名称:test2,代码行数:31,代码来源:default_list.php

示例12: elseif

            $trans = JText::_('SAUTO_TRANSMISIE_MANUALA');
        } elseif ($l->transmisie == 2) {
            $trans = JText::_('SAUTO_TRANSMISIE_AUTOMATA');
        } else {
            $trans = JText::_('SAUTO_TRANSMISIE_NECOMPLECTATA');
        }
        echo '<tr class="sa_table_row ' . $style . '">';
        echo '<td valign="top" class="sa_table_cell">';
        echo '<img src="' . $img_path . 'blue-car.png" />';
        echo '</td>';
        echo '<td align="center" class="sa_table_cell">';
        $info_auto = JText::_('SAUTO_INFO_AUTO');
        $detail_auto = JText::_('SAUTO_ANUL_FABR') . ' ' . $l->an_fabricatie . '<br />
					' . JText::_('SAUTO_TIP_TRANSMISIE') . ' ' . $trans . '<br />' . $l->cilindree . ' cm<sup>3</sup> :: ' . $l->carburant . '<br />
					' . $l->caroserie;
        echo JHtml::tooltip($detail_auto, $info_auto, '', $l->marca_auto . '  ' . $l->model_auto);
        echo '<br />' . $l->serie_caroserie;
        echo '</td>';
        echo '<td align="center" class="sa_table_cell" width="100">';
        $link_edit = JRoute::_('index.php?option=com_sauto&view=garaj&task=edit&id=' . $l->id);
        $link_delete = JRoute::_('index.php?option=com_sauto&view=garaj&task=delete&id=' . $l->id);
        echo '<a href="' . $link_edit . '"><img src="' . $img_path . 'edit_garaj.png" /></a>';
        echo '  ';
        echo '<a href="' . $link_delete . '"><img src="' . $img_path . 'delete_garaj.png" /></a>';
        echo '</td>';
        echo '</tr>';
        echo '<tr class="sa_table_row ' . $style . '">';
        echo '<td valign="top" class="sa_table_cell" colspan="3">';
        if ($l->exp_itp == '0000-00-00') {
            $exp_itp = JText::_('SA_NECOMPLETAT');
        } else {
开发者ID:grchis,项目名称:Site-Auto,代码行数:31,代码来源:garaj.php

示例13: array

        $src = '';
    }
    $width = $previewWidth;
    $height = $previewHeight;
    $style = '';
    $style .= $width > 0 ? 'max-width:' . $width . 'px;' : '';
    $style .= $height > 0 ? 'max-height:' . $height . 'px;' : '';
    $imgattr = array('id' => $id . '_preview', 'class' => 'media-preview', 'style' => $style);
    $img = JHtml::image($src, JText::_('JLIB_FORM_MEDIA_PREVIEW_ALT'), $imgattr);
    $previewImg = '<div id="' . $id . '_preview_img"' . ($src ? '' : ' style="display:none"') . '>' . $img . '</div>';
    $previewImgEmpty = '<div id="' . $id . '_preview_empty"' . ($src ? ' style="display:none"' : '') . '>' . JText::_('JLIB_FORM_MEDIA_PREVIEW_EMPTY') . '</div>';
    if ($showAsTooltip) {
        echo '<div class="media-preview add-on">';
        $tooltip = $previewImgEmpty . $previewImg;
        $options = array('title' => JText::_('JLIB_FORM_MEDIA_PREVIEW_SELECTED_IMAGE'), 'text' => '<i class="icon-eye"></i>', 'class' => 'hasTipPreview');
        echo JHtml::tooltip($tooltip, $options);
        echo '</div>';
    } else {
        echo '<div class="media-preview add-on" style="height:auto">';
        echo ' ' . $previewImgEmpty;
        echo ' ' . $previewImg;
        echo '</div>';
    }
}
echo '	<input type="text" name="' . $name . '" id="' . $id . '" value="' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '" readonly="readonly"' . $attr . ' data-basepath="' . JUri::root() . '"/>';
?>
<a class="modal btn" title="<?php 
echo JText::_('JLIB_FORM_BUTTON_SELECT');
?>
" href="
<?php 
开发者ID:b-dur,项目名称:joomla-cms,代码行数:31,代码来源:media.php

示例14:

					</label>
				</td>
				<td>
					<input type="file" name="property_sub_img[]" id="property_sub_img" value="" size="75"/>
					<input type="button"
						   name="addvalue"
						   id="addvalue"
						   class="button"
						   value="<?php 
echo JText::_('COM_REDSHOP_ADD');
?>
"
						   onclick="addNewRowOfProp('admintable');"
						/>
					<?php 
echo JHtml::tooltip(JText::_('COM_REDSHOP_TOOLTIP_PROPERTY_SUB_IMAGE'), JText::_('COM_REDSHOP_PROPERTY_SUB_IMAGE'), 'tooltip.png', '', '', false);
?>
				</td>
			</tr>

		</table>
	</fieldset>

	<div class="clr"></div>

	<input type="hidden" name="cid" value="<?php 
echo $product_id;
?>
"/>
	<input type="hidden" name="option" value="com_redshop"/>
	<input type="hidden" name="fsec" value="<?php 
开发者ID:,项目名称:,代码行数:31,代码来源:

示例15:

                --> 
                <th width="5%" valign="top">
                    <?php 
echo JHtml::tooltip(JText::_('COM_JDOWNLOADS_USERGROUPS_VIEW_REPORT_FORM_DESC'), JText::_('COM_JDOWNLOADS_USERGROUPS_VIEW_REPORT_FORM'), '', JText::_('COM_JDOWNLOADS_USERGROUPS_VIEW_REPORT_FORM'));
?>
                    
                </th>
                <th width="5%" valign="top">
                    <?php 
echo JHtml::tooltip(JText::_('COM_JDOWNLOADS_USERGROUPS_VIEW_COUNTDOWN_DESC'), JText::_('COM_JDOWNLOADS_USERGROUPS_VIEW_COUNTDOWN'), '', JText::_('COM_JDOWNLOADS_USERGROUPS_VIEW_COUNTDOWN'));
?>
                    
                </th>                                                                 
				<th width="2%" valign="top">
					<?php 
echo JHtml::tooltip(JText::_('COM_JDOWNLOADS_USERGROUP_LIST_COL_ID_DESC'), JText::_('JGRID_HEADING_ID'), '', JText::_('JGRID_HEADING_ID'));
?>
				</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="21">
					<?php 
echo $this->pagination->getListFooter();
?>
				</td>
			</tr>
		</tfoot>
		<tbody>
		<?php 
开发者ID:ashanrupasinghe,项目名称:dnp,代码行数:31,代码来源:default.php


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