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


PHP mosToolTip函数代码示例

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


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

示例1: toolTip

 function toolTip($tooltip, $title = '', $width = '', $image = 'tooltip.png', $text = '', $href = '', $link = 1)
 {
     global $mainframe;
     if ($GLOBALS[ACA . 'disabletooltip'] and !$mainframe->isAdmin()) {
         $text = str_replace(array("'", '"'), array("'", '"'), $text);
         $title = str_replace(array("'", '"'), array("'", '"'), $title);
         $return = '<span class="editlinktip">';
         if (!empty($href) and !preg_match("/#/", $href)) {
             $return .= '<a href="' . $href . '">';
         }
         $return .= $text;
         if (!empty($href) and !preg_match("/#/", $href)) {
             $return .= '</a>';
         }
         $return .= '</span>';
         return $return;
     }
     if (ACA_CMSTYPE) {
         $text = str_replace(array("'", '"'), array("&#039;", '&quot;'), $text);
         $title = str_replace(array("'", '"'), array("&#039;", '&quot;'), $title);
         if (preg_match("/#/", $href)) {
             $href = null;
         }
         return JHTML::_('tooltip', $tooltip, $title, $image, $text, $href, $link);
     } else {
         if ($GLOBALS[ACA . 'use_sef'] and function_exists('sefRelToAbs')) {
             $href = sefRelToAbs($href);
         }
         return mosToolTip(htmlspecialchars($tooltip, ENT_QUOTES), addslashes($title), $width, $image, $text, $href, $link);
     }
 }
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:compa.php

示例2: toolTip

 function toolTip($tooltip, $title = '', $width = '', $image = 'tooltip.png', $text = '', $href = '', $link = 1)
 {
     if (compa::joom10()) {
         if ($GLOBALS[ACA . 'use_sef'] and function_exists('sefRelToAbs')) {
             $href = sefRelToAbs($href);
         }
         return mosToolTip(addslashes($tooltip), addslashes($title), $width, $image, $text, $href, $link);
     } else {
         if (preg_match("/#/", $href)) {
             $href = null;
         }
         return JHTML::_('tooltip', $tooltip, $title, $image, $text, $href, $link);
     }
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:14,代码来源:compa.php

示例3: edit

    function edit()
    {
        global $my, $mainframe, $database, $option, $priTask, $subTask;
        global $WBG_CONFIG, $wbGalleryDB_cat, $wbGallery_admin;
        mosCommonHTML::loadOverlib();
        ?>

    <form action="index2.php" method="post" name="adminForm" enctype="multipart/form-data">
      <table class="adminheading">
        <tr>
          <th class="config">
            <font size="+1">wbGallery</font><br/>
            Manage Configuration Options<br/>
            <a href="<?php 
        echo $mainframe->getCfg('live_site');
        ?>
/administrator/components/com_wbgallery/CHANGELOG.txt"
              target="_blank">[ View Change Log ]</a> in New Window
          </th>
        </tr>
      </table>
      <table width="100%" cellspacing="2" cellpadding="0">
        <tr><td valign="top">
          <table class="adminlist" width="100%" cellspacing="2" cellpadding="0">
            <tr>
              <th class="title" colspan="2">Resized Images - Large Format</th>
            </tr>
            <tr>
              <td>Resize Large:</td>
              <td><?php 
        echo mosHTML::yesnoRadioList('wbgconf[save_large]', '', $WBG_CONFIG->save_large);
        ?>

                <?php 
        echo mosToolTip('Should we Save the a Large Resized Image?', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Large Image Path:</td>
              <td><input type="text" name="wbgconf[path_large]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->path_large;
        ?>
" />
                <?php 
        echo mosToolTip('Path to Save a the Large Resized Images (with trailing slash)', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Large Width:</td>
              <td><input type="text" name="wbgconf[width_large]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->width_large;
        ?>
" />
                <?php 
        echo mosToolTip('Maxiumum Width of the Large Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Large Height:</td>
              <td><input type="text" name="wbgconf[height_large]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->height_large;
        ?>
" />
                <?php 
        echo mosToolTip('Maxiumum Height of the Large Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Large Image Quality:</td>
              <td><input type="text" name="wbgconf[quality_large]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->quality_large;
        ?>
" />
                <?php 
        echo mosToolTip('This is the Image Quality to use for Large Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <th class="title" colspan="2">Resized Images - Medium Format</th>
            </tr>
            <tr>
              <td>Resize Medium:</td>
              <td><?php 
        echo mosHTML::yesnoRadioList('wbgconf[save_medium]', '', $WBG_CONFIG->save_medium);
        ?>

                <?php 
        echo mosToolTip('Should we Save the a Medium Resized Image?', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Medium Image Path:</td>
              <td><input type="text" name="wbgconf[path_medium]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->path_medium;
//.........这里部分代码省略.........
开发者ID:planetangel,项目名称:Planet-Angel-Website,代码行数:101,代码来源:setup.php

示例4: end_element_param

 function end_element_param()
 {
     $type = mosGetParam($this->paramattrs, 'TYPE', '');
     $name = mosGetParam($this->paramattrs, 'NAME', '');
     $label = T_(mosGetParam($this->paramattrs, 'LABEL', $name));
     $default = T_(mosGetParam($this->paramattrs, 'DEFAULT', ''));
     if ($description = mosGetParam($this->paramattrs, 'DESCRIPTION', '')) {
         $tooltip = mosToolTip(T_($description), $name);
     } else {
         $tooltip = '';
     }
     if (is_object($this->mosParameter)) {
         $mp = $this->mosParameter;
         $value = $mp->get($name, $default);
     } else {
         $value = $default;
     }
     $this->html[] = '<tr>';
     if ($label == '@spacer') {
         $label = '<hr />';
     } elseif ($label) {
         $label .= ':';
     }
     $this->html[] = '<td width="35%" align="right" valign="top">' . $label . '</td>';
     $controlname = $this->name;
     switch ($type) {
         case 'text':
             $size = mosGetParam($this->paramattrs, 'SIZE', 0);
             $controlstring = '<input type="text" name="' . $this->name . '[' . $name . ']" value="' . $value . '" class="text_area" size="' . $size . '" />';
             break;
         case 'list':
             $controlstring = mosHTML::selectList($this->options, $controlname . '[' . $name . ']', 'class="inputbox"', 'value', 'text', $value);
             break;
         case 'radio':
             $controlstring = mosHTML::radioList($this->options, $controlname . '[' . $name . ']', '', $value);
             break;
         case 'imagelist':
             $directory = new mosDirectory(mamboCore::get('mosConfig_absolute_path') . mosGetParam($this->paramattrs, 'DIRECTORY', ''));
             $files = $directory->listFiles('\\.png$|\\.gif$|\\.jpg$|\\.bmp$|\\.ico$');
             $options = array();
             foreach ($files as $file) {
                 $options[] = mosHTML::makeOption($file, $file);
             }
             if (!isset($this->paramattrs['HIDE_NONE'])) {
                 array_unshift($options, mosHTML::makeOption('-1', '- Do not use an image -'));
             }
             if (!isset($this->paramattrs['HIDE_DEFAULT'])) {
                 array_unshift($options, mosHTML::makeOption('', '- Use Default image -'));
             }
             $controlstring = mosHTML::selectList($options, $controlname . '[' . $name . ']', 'class="inputbox"', 'value', 'text', $value);
             break;
         case 'textarea':
             $rows = mosGetParam($this->paramattrs, 'ROWS', 0);
             $cols = mosGetParam($this->paramattrs, 'COLS', 0);
             $value = str_replace('<br />', "\n", $value);
             $controlstring = "<textarea name='params[{$name}]' cols='{$cols}' rows='{$rows}' class='text_area'>{$value}</textarea>";
             break;
         case 'spacer':
             $controlstring = $value ? $value : '<hr />';
             break;
         case 'mos_section':
             $controlstring = $this->_form_mos_section($name, $value, $controlname);
             break;
         case 'mos_category':
             $controlstring = $this->_form_mos_category($name, $value, $controlname);
             break;
         case 'mos_menu':
             $controlstring = $this->_form_mos_menu($name, $value, $controlname);
             break;
         default:
             $controlstring = T_('Handler not defined for type') . '=' . $type;
     }
     //		$this->html[] = "<td>$type</td>";
     $this->html[] = "<td>{$controlstring}</td>";
     $this->html[] = "<td width='10%' align='left' valign='top'>{$tooltip}</td>";
     $this->html[] = '</tr>';
     $this->options = array();
     $this->paramattrs = array();
     $this->paramcount++;
 }
开发者ID:jwest00724,项目名称:mambo,代码行数:80,代码来源:admin.php

示例5: mosToolTip

 /**
  * Custom tooltip method
  * When no href ( or '#') is given, the icon will become a link to a
  * js alert box
  */
 function mosToolTip($tooltip, $title = '', $width = '', $image = 'tooltip.png', $text = '', $href = '#', $link = 1)
 {
     if ($href == '#' or $href == '') {
         $alert = strip_tags(DOCMAN_Utils::br2nl($tooltip));
         $href = "javascript:alert('" . $alert . "');";
     }
     return mosToolTip($tooltip, $title, $width, $image, $text, $href, $link);
 }
开发者ID:RangerWalt,项目名称:ecci,代码行数:13,代码来源:DOCMAN_utils.class.php

示例6: editCategory

    function editCategory(&$menu, &$lists, &$params, $option)
    {
        global $mosConfig_live_site, $adminLanguage;
        $tabs = new mosTabs(0);
        ?>
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			if ( pressbutton == 'cancel' ) {
				submitform( pressbutton );
				return;
			}
			var form = document.adminForm;
			<?php 
        if (!$menu->id) {
            ?>
				if ( getSelectedValue( 'adminForm', 'componentid' ) < 1 ) {
					alert( 'You must select a category' );
					return;
				}
				cat = getSelectedText( 'adminForm', 'componentid' );
	
				form.link.value = "index.php?option=com_contact&catid=" + form.componentid.value;
				if ( form.name.value == '' ) {
					form.name.value = cat;
				}
				submitform( pressbutton );
				<?php 
        } else {
            ?>
				if ( form.name.value == '' ) {
					alert( 'This Menu item must have a title' );
				} else {
					submitform( pressbutton );
				}
				<?php 
        }
        ?>
		}
		</script>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th>
			<?php 
        echo $menu->id ? $adminLanguage->A_EDIT : $adminLanguage->A_COMP_ADD;
        ?>
 <?php 
        echo $adminLanguage->A_COMP_MENUS_MENU_ITEM;
        ?>
 :: <?php 
        echo $adminLanguage->A_COMP_MENUS_TABLE;
        ?>
 - <?php 
        echo $adminLanguage->A_COMP_MENUS_CONTACT_CAT;
        ?>
			</th>
		</tr>
		</table>
		<?php 
        $tabs->startPane("module");
        $tabs->startTab($adminLanguage->A_DETAILS, "Details-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="10%" align="right" valign="top">
			<?php 
        echo $adminLanguage->A_COMP_TITLE;
        ?>
:
			</td>
			<td width="200px">
			<input type="text" name="name" size="30" maxlength="100" class="inputbox" value="<?php 
        echo $menu->name;
        ?>
"/>
			</td>
			<td>
			<?php 
        if (!$menu->id) {
            echo mosToolTip($adminLanguage->A_COMP_MENUS_CMP_CCT_BLANK);
        }
        ?>
			</td>
		</tr>
		<tr>
			<td width="10%" align="right" valign="top">
			<?php 
        echo $adminLanguage->A_COMP_CATEG;
        ?>
:
			</td>
			<td colspan="2">
			<?php 
        echo $lists['componentid'];
        ?>
			</td>
		</tr>
		<tr>
			<td align="right">
//.........这里部分代码省略.........
开发者ID:cwcw,项目名称:cms,代码行数:101,代码来源:contact_category_table.menu.html.php

示例7: showconfig


//.........这里部分代码省略.........
            } else {
                ?>
					<td>
						<input type="checkbox" id="enable_write" name="enable_write" value="1"/>
						<label for="enable_write">Override write protection while saving</label>
					</td>
				<?php 
            }
            // if
        }
        // if
        ?>
		</tr>
		</table>
			<?php 
        $tabs->startPane("configPane");
        $tabs->startTab("Site", "site-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Site Offline:</td>
				<td><?php 
        echo $lists['offline'];
        ?>
</td>
			</tr>
			<tr>
				<td valign="top">Offline Message:</td>
				<td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_offline_message"><?php 
        echo $row->config_offline_message;
        ?>
</textarea><?php 
        $tip = 'A message that displays if your site is offline';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td valign="top">System Error Message:</td>
				<td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_error_message"><?php 
        echo $row->config_error_message;
        ?>
</textarea><?php 
        $tip = 'A message that displays if Joomla! could not connect to the database';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Site Name:</td>
				<td><input class="text_area" type="text" name="config_sitename" size="50" value="<?php 
        echo $row->config_sitename;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Show Unauthorised Links:</td>
				<td><?php 
        echo $lists['shownoauth'];
        $tip = 'If yes, will show links to content to registered content even if you are not logged in.  The user will need to login to see the item in full.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Allow User Registration:</td>
开发者ID:jwest00724,项目名称:Joomla-1.0,代码行数:67,代码来源:admin.config.html.php

示例8: showConfiguration_backend

    static function showConfiguration_backend($lists, $option)
    {
        global $mosConfig_live_site, $act, $task, $mainframe, $doc;
        // for J 1.6
        $doc->addStyleSheet($mosConfig_live_site . '/components/com_booklibrary/includes/booklibrary.css');
        $html = "<div class='book_manager_caption' ><img src='./components/com_booklibrary/images/cfg.png' alt ='Config' /> " . _BOOKLIBRARY_ADMIN_CONFIG_BACKEND . "</div>";
        $app = JFactory::getApplication();
        $app->JComponentTitle = $html;
        ?>
        <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
        <script type="text/javascript" language="Javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>

        <form class="bl_admin_settings_backend_form_with_accordion" action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">
            <ul class="my_accordion_menu">
                <li>
                    <input type="radio" name="odin" id="vkl7"/>
                    <label for="vkl7">Media Files</label>
                    <div>
                        <table class="adminform bl_admin_settings_backend my_table" width="100%">
                            <tr>
                                <td colspan="6">
                                    <h1>Media Files</h1>
                                </td>
                            </tr>
                            <tr>
                                <td><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD;
        ?>
:</td>
            <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
            <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
            <?php 
        }
        ?>
                                <td><?php 
        echo $lists['fetchImages']['boolean'];
        ?>
</td>
                                <td style="text-align:right;"><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD_LOCATION;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD_LOCATION_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD_LOCATION_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['fetchImages']['location'];
        ?>
</td>
                            </tr>
                            <tr>
                                <td colspan="6"><hr /></td>
                            </tr>
                            <tr>
                                <td><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_EBOOKS_DOWNLOAD;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EBOOKS_DOWNLOAD_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EBOOKS_DOWNLOAD_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
//.........这里部分代码省略.........
开发者ID:rdegennaro,项目名称:Check-It,代码行数:101,代码来源:booklibrary.html.php

示例9: edit

    /**
     * writes a form to take the name of the menu you would like created
     * @param option	display options for the form
     */
    function edit(&$row, $option)
    {
        global $mosConfig_live_site;
        $new = $row->menutype ? 0 : 1;
        ?>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			var form = document.adminForm;

			if (pressbutton == 'savemenu') {
				if ( form.menutype.value == '' ) {
					alert( '<?php 
        echo T_('Please enter a menu name');
        ?>
' );
					form.menutype.focus();
					return;
				}
				<?php 
        if ($new) {
            ?>
					if ( form.title.value == '' ) {
						alert( '<?php 
            echo T_('Please enter a module name for your menu');
            ?>
' );
						form.title.focus();
						return;
					}
					<?php 
        }
        ?>
				submitform( 'savemenu' );
			} else {
				submitform( pressbutton );
			}
		}
		</script>
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th class="menus">
			<?php 
        echo T_('Menu Details');
        ?>
			</th>
		</tr>
		</table>

		<table class="adminform">
		<tr height="45px;">
			<td width="100px" align="left">
			<strong><?php 
        echo T_('Menu Name:');
        ?>
</strong>
			</td>
			<td>
			<input class="inputbox" type="text" name="menutype" size="30" value="<?php 
        echo isset($row->menutype) ? $row->menutype : '';
        ?>
" />
			<?php 
        $tip = T_('This is the identification name used by mambo to identify this menu within the code - it must be unique. It is recommended that you do not have any spaces in your Menu Name');
        echo mosToolTip($tip);
        ?>
			</td>
		</tr>
		<?php 
        if ($new) {
            ?>
			<tr>
				<td width="100px" align="left" valign="top">
				<strong><?php 
            echo T_('Module Title:');
            ?>
</strong>
				</td>
				<td>
				<input class="inputbox" type="text" name="title" size="30" value="<?php 
            echo $row->title ? $row->title : '';
            ?>
" />
				<?php 
            $tip = T_('Title of the mod_mainmenu module required to show this Menu');
            echo mosToolTip($tip);
            ?>
				<br /><br /><br />
				<strong>

				* <?php 
            echo T_('A new mod_mainmenu module, with the Title you have entered above will automatically be created when you save this menu.');
            ?>
 *
				<br /><br />
//.........这里部分代码省略.........
开发者ID:jwest00724,项目名称:mambo,代码行数:101,代码来源:admin.menumanager.html.php

示例10: foreach

<tbody>      
<?php 
$a = 0;
foreach ($catalog->strings as $id => $message) {
    ?>
        <?php 
    if (is_array($message->comments)) {
        $ref = '';
        $tt = '';
        foreach ($message->comments as $comment) {
            if (strncmp($comment, "#: ", 3) == 0) {
                $ref .= ltrim(trim($comment), '#: ') . "\n";
            }
            $tt .= addslashes(htmlspecialchars(ltrim(trim($comment), '#: ,#. ,#  '))) . "<br />";
        }
        $tip = mosToolTip($tt);
    }
    $is_plural = strlen($message->msgid_plural) > 1 ? 1 : 0;
    ?>
  
	<tr class="<?php 
    echo "row{$a}";
    ?>
" id="row_<?php 
    echo $id;
    ?>
" onclick="translate(<?php 
    echo $id;
    ?>
, <?php 
    echo $is_plural && $language_plurals ? 1 : 0;
开发者ID:jwest00724,项目名称:mambo,代码行数:31,代码来源:editcatalog.tpl.php

示例11: addMenuItem

    /**
     * Displays a selection list for menu item types
     */
    function addMenuItem(&$cid, $menutype, $option, $types_content, $types_component, $types_link, $types_other)
    {
        mosCommonHTML::loadOverlib();
        ?>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th class="menus">
			<?php 
        echo T_('New Menu Item');
        ?>
			</th>
			<td valign="bottom" nowrap style="color: red;">
			<?php 
        //echo _MENU_GROUP;
        ?>
			</td>
		</tr>
		</table>
<style type="text/css">
fieldset {
	border: 1px solid #777;
}
legend {
	font-weight: bold;
}
</style>
<table class="adminform">
	<tr>
		<td width="50%" valign="top">
			<fieldset>
				<legend><?php 
        echo T_('Content');
        ?>
</legend>
				<table class="adminform">
				<?php 
        $k = 0;
        $count = count($types_content);
        for ($i = 0; $i < $count; $i++) {
            $row =& $types_content[$i];
            $link = 'index2.php?option=com_menus&menutype=' . $menutype . '&task=edit&hidemainmenu=1&type=' . $row->type;
            ?>
					<tr class="<?php 
            echo "row{$k}";
            ?>
">
						<td width="20">
						<input type="radio" id="cb<?php 
            echo $i;
            ?>
" name="type" value="<?php 
            echo $row->type;
            ?>
" onClick="isChecked(this.checked);" />
						</td>
						<td>
						<a href="<?php 
            echo $link;
            ?>
">
						<?php 
            echo T_($row->name);
            ?>
						</a>
						</td>
						<td align="center" width="20">
						<?php 
            echo mosToolTip(T_($row->descrip), T_($row->name), 250);
            ?>
						</td>
					</tr>
					<?php 
            $k = 1 - $k;
        }
        ?>
				</table>
			</fieldset>
			<fieldset>
				<legend><?php 
        echo T_('Miscellaneous');
        ?>
</legend>
				<table class="adminform">
				<?php 
        $k = 0;
        $count = count($types_other);
        for ($i = 0; $i < $count; $i++) {
            $row =& $types_other[$i];
            $link = 'index2.php?option=com_menus&menutype=' . $menutype . '&task=edit&type=' . $row->type;
            ?>
					<tr class="<?php 
            echo "row{$k}";
            ?>
">
						<td width="20">
						<input type="radio" id="cb<?php 
//.........这里部分代码省略.........
开发者ID:jwest00724,项目名称:mambo,代码行数:101,代码来源:admin.menus.html.php

示例12: renderParam

 /**
 * @param object A param tag node
 * @return array Any array of the label, the form element and the tooltip
 */
 function renderParam(&$param)
 {
     $result = array();
     $name = $param->getAttribute('name');
     $label = $param->getAttribute('label');
     $value = $this->get($name, $param->getAttribute('default'));
     $description = $param->getAttribute('description');
     $result[0] = $label ? $label : $name;
     if ($result[0] == '@spacer') {
         $result[0] = '<hr/>';
     } else {
         if ($result[0]) {
             $result[0] .= ':';
         }
     }
     $type = $param->getAttribute('type');
     if (in_array('_form_' . $type, $this->_methods)) {
         $result[1] = call_user_func(array('mosParameters', '_form_' . $type), $name, $value, $param);
     } else {
         $result[1] = _HANDLER . ' = ' . $type;
     }
     if ($description) {
         $result[2] = mosToolTip($description, $name);
     } else {
         $result[2] = '';
     }
     return $result;
 }
开发者ID:cwcw,项目名称:cms,代码行数:32,代码来源:mamboxml.php

示例13: T_

    ?>
        </td>
    </tr>
    <tr>
        <td><?php 
    echo T_('Locales');
    ?>
</td>
        <td>
            <input type="text" name="locale" maxlength="100" class="inputbox" style="width:400px" value="<?php 
    echo $language->locale;
    ?>
" />
			<input type="hidden" name="page_" value="editpage" />
            <?php 
    echo mosToolTip(T_('The locale list for setlocale(). \\nLocale names must be comma separated.'));
    ?>
        </td>
    </tr>
</table>
<?php 
    $tabs->endTab();
    $tabs->startTab(T_('Days'), "days");
    ?>
<table class="adminform">
<tr><td style="width:150px">&nbsp;</td><td>&nbsp;</td></tr> 
    <?php 
    foreach ($language->days as $kd => $day) {
        ?>
    <tr>
        <td>
开发者ID:jwest00724,项目名称:mambo,代码行数:31,代码来源:langform.tpl.php

示例14: edit


//.........这里部分代码省略.........
                    </table>
                    <?php 
        echo $pane->endPanel();
        echo $pane->startPanel(JTEXT::_('TABS_CHECK'), 'tab_check');
        ?>
                    <table width="100%" border="0" cellpadding="2" cellspacing="0" class="admintable">
                        <tr>
                            <td class="key" width="120">
                            	<label for="new_window"><?php 
        echo JTEXT::_('CMT_CHECK');
        ?>
</label>
                            </td>
                            <td>
                            	<input type="checkbox" name="cm_check" value="1" id="cm_check"<?php 
        echo $row->cm_check ? ' checked="checked"' : '';
        ?>
/>
                            	&nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_CMT_CHECK');
        // echo JHTML::_('tooltip', $tip);
        echo JHTML::tooltip($tip, '', 'tip.png');
        ?>
                            </td>
                        </tr>
                        <tr>
                            <td class="key">&nbsp;</td>
                            <td><?php 
        echo JTEXT::_('CMT_NAME_TO_CHECK');
        ?>
</td>
                        </tr>
                        <tr>
                            <td class="key">
                            	../administrator/components/
                            </td>
                            <td>
                            	<input class="inputbox" type="text" name="cm_path" size="75" maxlength="255" value="<?php 
        echo $row->cm_path ? $row->cm_path : '';
        ?>
" />
                            	&nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_CM_PATH');
        if (defined('_JEXEC')) {
            // echo JHTML::_('tooltip', $tip);
            echo JHTML::tooltip($tip, '', 'tip.png');
        } else {
            echo mosToolTip($tip);
        }
        ?>
                                <br />
                                <?php 
        echo $lists['components_check'];
        ?>
                                &nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_CM_PATH_CHECK');
        // echo JHTML::_('tooltip', $tip);
        echo JHTML::tooltip($tip, '', 'tip.png');
        ?>
                            </td>
                        </tr>
                    </table>
                    <?php 
        echo $pane->endPanel();
        echo $pane->startPanel(JTEXT::_('TABS_ABOUT'), 'tab_about');
        ?>
		            <table width="100%" border="0" cellpadding="2" cellspacing="0" class="admintable">
		            	<tr>
		            		<td colspan="2">
		            		<?php 
        $supportlink = '<a target="popup" href="' . $path . '?option=com_customquickicons&amp;task=about&amp;no_html=1"' . ' onclick="window.open(\'\',\'popup\'' . ',\'resizable=yes,status=no,toolbar=no,location=no,scrollbars=yes,width=650,height=450\')"' . ' title="' . JTEXT::_('SUPP_HEAD_TITLE') . '" style="text-decoration:none;">' . '<img src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" alt="" height="26" width="92" />' . '&nbsp;' . '<img src="http://www.moneybookers.com/images/banners/flags.gif" alt="" border="0" height="31" width="88" />' . '</a>';
        echo '<h1 class="jx_h1">' . JTEXT::_('QUICKICONS') . '</h1>';
        include_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_customquickicons' . DS . 'help' . DS . 'README.php';
        ?>
		            		</td>
		            	</tr>
		            </table>
		            <?php 
        echo $pane->endPanel();
        echo $pane->endPane();
        ?>
                </td>
            </tr>
        </table>
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="id" value="<?php 
        echo $row->id;
        ?>
" />
		<input type="hidden" name="task" value="" />
		</form>
		<?php 
        HTML_QuickIcons::_qiFOOTER();
    }
开发者ID:rafarubert,项目名称:megafiltros,代码行数:101,代码来源:admin.customquickicons.html.php

示例15: showconfig


//.........这里部分代码省略.........
:
			</td>
			<td> 
			<?php 
        echo $lists['lang'];
        ?>
 
			</td>
		</tr>
			<td width="185">
			<?php 
        echo $adminLanguage->A_COMP_CONF_ALANG;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['alang'];
        ?>
 
			</td>
		</tr>
		<tr>
			<td width="185">
			<?php 
        echo $adminLanguage->A_COMP_CONF_TIME_SET;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['offset'];
        $tip = $adminLanguage->A_COMP_CONF_DATE . ": " . mosCurrentDate(_DATE_FORMAT_LC2);
        echo mosToolTip($tip);
        ?>
			</td>
		</tr>
		<tr>
			<td width="185">
			<?php 
        echo $adminLanguage->A_COMP_CONF_LOCAL;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_locale" size="15" value="<?php 
        echo $row->config_locale;
        ?>
">
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab($adminLanguage->A_COMP_MOD_CONTENT, "content-page");
        ?>
		<table class="adminform">
		<tr>
			<td colspan="2">
			<?php 
        echo $adminLanguage->A_COMP_CONF_CONTROL;
        ?>
			<br /><br />
			</td>
		</tr>
		<tr>
开发者ID:cwcw,项目名称:cms,代码行数:67,代码来源:admin.config.html.php


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