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


PHP tooltip函数代码示例

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


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

示例1: getItemContent

 function getItemContent($item_id)
 {
     $content = "\n<table width=\"90%\" cellpadding=\"2\" cellspacing=\"2\" align=\"center\" style=\"font-size:10pt\">";
     if ($item_id == "root") {
         $content .= "\n<tr><td class=\"table_header_bold\" align=\"left\">" . htmlReady($this->tree->root_name) . " </td></tr>";
         $content .= "\n<tr><td class=\"blank\" align=\"left\">" . htmlReady($this->root_content) . " </td></tr>";
         $content .= "\n</table>";
         return $content;
     }
     $range_object = RangeTreeObject::GetInstance($item_id);
     $name = $range_object->item_data['type'] ? $range_object->item_data['type'] . ": " : "";
     $name .= $range_object->item_data['name'];
     $content .= "\n<tr><td class=\"table_header_bold\" align=\"left\">" . htmlReady($name) . " </td></tr>";
     if (is_array($range_object->item_data_mapping)) {
         $content .= "\n<tr><td class=\"blank\" align=\"left\">";
         foreach ($range_object->item_data_mapping as $key => $value) {
             if ($range_object->item_data[$key]) {
                 $content .= "<b>" . htmlReady($value) . ":</b>&nbsp;";
                 $content .= formatLinks($range_object->item_data[$key]) . "&nbsp; ";
             }
         }
         $content .= "</td></tr><tr><td class=\"blank\" align=\"left\">" . "<a href=\"" . URLHelper::getLink("dispatch.php/institute/overview?auswahl=" . $range_object->item_data['studip_object_id']) . "\"" . tooltip(_("Seite dieser Einrichtung in Stud.IP aufrufen")) . ">" . htmlReady($range_object->item_data['name']) . "</a>&nbsp;" . _("in Stud.IP") . "</td></tr>";
     } elseif (!$range_object->item_data['studip_object']) {
         $content .= "\n<tr><td class=\"blank\" align=\"left\">" . _("Dieses Element ist keine Stud.IP-Einrichtung, es hat daher keine Grunddaten.") . "</td></tr>";
     } else {
         $content .= "\n<tr><td class=\"blank\" align=\"left\">" . _("Keine Grunddaten vorhanden!") . "</td></tr>";
     }
     $content .= "\n<tr><td>&nbsp;</td></tr>";
     $kategorien =& $range_object->getCategories();
     if ($kategorien->numRows) {
         while ($kategorien->nextRow()) {
             $content .= "\n<tr><td class=\"table_header_bold\">" . htmlReady($kategorien->getField("name")) . "</td></tr>";
             $content .= "\n<tr><td class=\"blank\">" . formatReady($kategorien->getField("content")) . "</td></tr>";
         }
     } else {
         $content .= "\n<tr><td class=\"blank\">" . _("Keine weiteren Daten vorhanden!") . "</td></tr>";
     }
     $content .= "</table>";
     return $content;
 }
开发者ID:ratbird,项目名称:hope,代码行数:40,代码来源:StudipRangeTreeView.class.php

示例2: tooltip

            <tr>
              <th colspan="2" class="left">User Account Edit</th>
            </tr>
          </thead>
          <tr>
            <th width="180"><strong>Username:</strong></th>
            <td><input name="username" type="text" disabled="disabled" class="inputbox" value="<?php 
echo $row['username'];
?>
" size="45" /></td>
          </tr>
          <tr>
            <th><strong>Password:</strong></th>
            <td><input name="password" type="password"  class="inputbox" size="45" />
              &nbsp;&nbsp; <?php 
echo tooltip('Leave it empty unless changing the password');
?>
</td>
          </tr>
          <tr>
            <th><strong>Email Address: <?php 
echo required();
?>
</strong></th>
            <td><input name="email" type="text" class="inputbox" value="<?php 
echo $row['email'];
?>
" size="45" maxlength="40" /></td>
          </tr>
          <tr>
            <th><strong>First Name:</strong> <?php 
开发者ID:ExtraProgrammers,项目名称:PrivateGSIASorteios,代码行数:31,代码来源:account.php

示例3: tooltip

							<label>Database Username:</label><?php 
    tooltip('Username for the connection; default in setup is <strong>echelon</strong>');
    ?>
								<input type="text" name="db-user" value="echelon" />
								
						</div>
						
						<div class="float-left install-left">

							<label>Database Password:</label><?php 
    tooltip('Password for the Echelon database user');
    ?>
								<input type="password" name="db-pass" />
								
							<label>Database Name:</label><?php 
    tooltip('Name of the Echelon database, default is <strong>echelon</strong>');
    ?>
								<input type="text" name="db-name" value="echelon" />
					
						</div>
						
					</fieldset><!-- end db setup fieldset -->
				
					<input type="submit" name="install" value="Install Echelon" />
				
				</form><!-- close install form -->
				
			<?php 
}
?>
			
开发者ID:Gammelbob,项目名称:echelon,代码行数:30,代码来源:index.php

示例4: is_writable

        //check if the GUI logs directory is writable
        $rep_ok = is_writable($_SESSION['OCS']['LOG_DIR']);
        if (!$rep_ok) {
            $msg_header_warning[] = $l->g(2021);
        }
    }
    if (version_compare(phpversion(), '5.3.7', '<')) {
        $msg_header_warning[] = $l->g(2113) . " " . phpversion() . " ) ";
    }
    //Error are detected
    if ($msg_header_error != array()) {
        js_tooltip();
        $msg_tooltip = '';
        foreach ($msg_header_error as $poub => $values) {
            if (isset($msg_header_error_sol[$poub])) {
                $tooltip = tooltip($msg_header_error_sol[$poub]);
                $msg_tooltip .= "<div " . $tooltip . ">" . $values . "</div>";
            }
        }
        msg_error("<big>" . $l->g(1263) . "</big><br>" . $msg_tooltip, "top_msg_alert");
    }
    //warning are detected
    if ($msg_header_warning != array()) {
        msg_warning(implode('<br>', $msg_header_warning), "top_msg_warning");
    }
}
if (isset($_SESSION['OCS']['TRUE_USER'])) {
    msg_info($_SESSION['OCS']['TRUE_USER'] . " " . $l->g(889) . " " . $_SESSION['OCS']["loggeduser"]);
}
if (isset($_SESSION['OCS']["TRUE_mesmachines"])) {
    msg_info($l->g(890));
开发者ID:remicollet,项目名称:OCSInventory-ocsreports,代码行数:31,代码来源:html_header.php

示例5: count

    $perms_count = count($perms);
    $rows = ceil($perms_count / 5) + 1;
    $ir = 1;
    $in = 0;
    while ($ir < $rows) {
        echo '<tr>';
        $i = 1;
        while ($i <= 5) {
            $p_id = $perms[$in]['id'];
            $p_name = $perms[$in]['name'];
            $p_desc = $perms[$in]['desc'];
            $p_name_read = preg_replace('#_#', ' ', $p_name);
            $p_name_read = ucwords($p_name_read);
            if ($p_id != "") {
                echo '<td class="perm-td"><label for="' . $p_name . '">' . $p_name_read . '</label><input id="' . $p_name . '" type="checkbox" name="' . $p_name . '" />';
                tooltip($p_desc);
                echo '</td>';
            }
            $in++;
            $i++;
        }
        echo '</tr>';
        $ir++;
    }
    ?>
		</tbody>
		</table>
		
		</fieldset>
		
		<br />
开发者ID:Hunterm267,项目名称:Web-Echelon,代码行数:31,代码来源:sa.php

示例6: tooltip

		
			<label for="self-reg">Allow self registration:</label><?php 
tooltip('Allow users to register an echelon account? Valid inputs; true, false');
?>
				<input type="text" name="self_reg" id="self_reg" value="<?php 
echo $settings['self_reg'];
?>
"/>
		
		</fieldset>

		<fieldset class="none">
			<legend>Verify Yourself</legend>
		
			<label for="verify-pw">Your current password:</label><?php 
tooltip('Please enter your current Echelon user password so that we know that it is really you editing settings');
?>
				<input type="password" name="password" id="verify-pw" />
		
		</fieldset>
		
		<br class="clear" />
		
		<input type="hidden" name="token" value="<?php 
echo $token_settings;
?>
" />
		<input type="submit" name="settings-sub" value="Save Echelon Settings" />
		
	</form>
		
开发者ID:Hunterm267,项目名称:Web-Echelon,代码行数:29,代码来源:settings.php

示例7: translate

    $tabs_ar[] = 'boss';
    $tabs_ar[] = '';
    $tabs_ar[] = translate('When I am the boss');
    if ($PUBLISH_ENABLED == 'Y' || $RSS_ENABLED == 'Y') {
        $tabs_ar[] = 'subscribe';
        $tabs_ar[] = '';
        $tabs_ar[] = translate('Subscribe/Publish');
    }
    if ($ALLOW_USER_HEADER == 'Y' && ($CUSTOM_SCRIPT == 'Y' || $CUSTOM_HEADER == 'Y' || $CUSTOM_TRAILER == 'Y')) {
        $tabs_ar[] = 'header';
        $tabs_ar[] = '';
        $tabs_ar[] = translate('Custom Scripts');
    }
    if ($ALLOW_COLOR_CUSTOMIZATION == 'Y') {
        $tabs_ar[] = 'colors';
        $tabs_ar[] = ' title="' . tooltip('colors-help');
        $tabs_ar[] = translate('Colors');
    }
}
// .
// Move the loops here and combine a few.
for ($i = 0, $cnt = count($tabs_ar); $i < $cnt; $i += 3) {
    $tabs .= '
        <span class="tab' . ($i > 0 ? 'bak' : 'for') . '" id="tab_' . $tabs_ar[$i] . $tabs_ar[$i + 1] . '"><a href="" onclick="return setTab( \'' . $tabs_ar[$i] . '\' );">' . $tabs_ar[$i + 2] . '</a></span>';
}
$tmp = $prad ? $s['LANGUAGE'] : $prefarray['LANGUAGE'];
while (list($key, $val) = each($languages)) {
    // Don't allow users to select "browser-defined". We want them to pick
    // a language so that when we send reminders (done without the benefit
    // of a browser-preferred language), we'll know which language to use.
    // DO let them select browser-defined for the public user or NUC.
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:common_admin_pref.php

示例8: tooltip

echo Icon::create('arr_1down', 'clickable')->asImg();
?>
                <? else: ?>
                    <a class="tree" name="<?php 
echo $id;
?>
"
                        href="<?php 
echo $controller->url_for('settings/notification/open', $id);
?>
#<?php 
echo $id;
?>
"
                       <?php 
echo tooltip(_('Gruppierung öffnen'), true);
?>
>
                       <?php 
echo Icon::create('arr_1right', 'clickable')->asImg();
?>
                <? endif; ?>
                        <?php 
echo htmlReady(my_substr(implode(' &gt; ', (array) $group_names[$id]), 0, 70));
?>
                    </a>
                </th>
            </tr>
        <? endif; ?>
    <? if ($id === 'not_grouped' || isset($open[$id])): ?>
        <? foreach ($members as $member): ?>
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:notification.php

示例9: if

                                <? if (count($area_options_selected[$area_key])) : ?>
                                    <option disabled  class="news_area_title"
                                            style="background-image: url('<?php 
echo Icon::create($area_data['icon'], 'info')->asImagePath();
?>
');">
                                        <?php 
echo htmlReady($area_data['title']);
?>
                                    </option>
                                    <? foreach ($area_options_selected[$area_key] as $area_option_key => $area_option_title) : ?>
                                        <option <?php 
echo (StudipNews::haveRangePermission('edit', $area_option_key) or $may_delete) ? 'value="' . $area_option_key . '"' : 'disabled';
?>
                                                <?php 
echo tooltip($area_option_title);
?>
>
                                            <?php 
echo htmlReady(mila($area_option_title));
?>
                                        </option>
                                    <? endforeach ?>
                                <? endif ?>
                            <? endforeach ?>
                            </select>
                            </label>
                        </div>
                    </td>
                </tr>
            </tbody>
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:edit_news.php

示例10: tooltip

          <label for="private-2">No</label>
          <input name="private" type="radio" id="private-2" value="0" checked="checked" />
          <?php 
        echo tooltip('Private memberships are not available to front end users.');
        ?>
</span></td>
      </tr>
      <tr>
        <td>Active Membership:</td>
        <td><span class="input-out">
          <label for="active-1">Yes</label>
          <input name="active" type="radio" id="active-1" value="1" />
          <label for="active-2">No</label>
          <input name="active" type="radio" id="active-2" value="0" checked="checked" />
          <?php 
        echo tooltip('Only active memberships will be available for purchase.');
        ?>
</span></td>
      </tr>
      <tr>
        <td>Membership Description:</td>
        <td><textarea class="inputbox" cols="50" name="description" rows="5"></textarea></td>
      </tr>
    </tbody>
  </table>
</form>
<?php 
        echo $core->doForm("processMembership");
        break;
    default:
        $memrow = $member->getMemberships();
开发者ID:ExtraProgrammers,项目名称:PrivateGSIASorteios,代码行数:31,代码来源:memberships.php

示例11: createTemplateFormFree

 /**
  * Creates the form for the Polskala templates
  * @param
  */
 function createTemplateFormFree(&$question)
 {
     global $evalID;
     $answer = $question->getNextChild();
     $tableA = new HTM("table");
     $tableA->attr("border", "0");
     $tableA->attr("cellpadding", "2");
     $tableA->attr("cellspacing", "0");
     $tableA->attr("width", "100%");
     $trA = new HTM("tr");
     $tdA = new HTM("td");
     $tdA->attr("class", "table_header_bold");
     $tdA->attr("align", "left");
     $tdA->html("<b>" . (strstr($this->getPageCommand(), "create") ? _("Freitextvorlage erstellen") : _("Freitextvorlage bearbeiten")) . "</b>");
     $trA->cont($tdA);
     $tableA->cont($trA);
     $trA = new HTM("tr");
     $tdA = new HTM("td");
     $form = new HTM("form");
     $form->attr("action", URLHelper::getLink("?page=edit&evalID=" . $evalID));
     $form->attr("method", "post");
     $form->html(CSRFProtection::tokenTag());
     $b = new HTM("b");
     $b->cont(_("Name") . ": ");
     $form->cont($b);
     $input = new HTMpty("input");
     $input->attr("type", "text");
     $input->attr("name", "template_name");
     $name = $question->getText();
     $input->attr("value", $question->getText());
     //    $input->attr( "value", $name );
     $input->attr("style", "vertical-align:middle;");
     $input->attr("size", 22);
     $input->attr("maxlength", 22);
     $form->cont($input);
     $input = new HTMpty("input");
     $input->attr("type", "hidden");
     $input->attr("name", "template_id");
     $input->attr("value", $question->getObjectID());
     $form->cont($input);
     $input = new HTMpty("input");
     $input->attr("type", "hidden");
     $input->attr("name", "template_type");
     $input->attr("value", $question->getType());
     $form->cont($input);
     $input = new HTMpty("input");
     $input->attr("type", "hidden");
     $input->attr("name", "template_multiple");
     $input->attr("value", NO);
     $form->cont($input);
     $img = new HTMpty("img");
     $img->attr("src", Icon::create('info-circle', 'inactive')->asImagePath(16));
     $img->attr("class", "middle");
     $img->stri(tooltip(_("Geben Sie hier einen Namen für Ihre Vorlage ein. Ändern Sie den Namen, um eine neue Vorlage anzulegen."), FALSE, TRUE));
     $form->cont($img);
     $form->cont($this->BR);
     //$answer = $question->getNextChild();
     //$answer->toString();
     /* Anzahl Zeilen------------------------------------------------------ */
     $form->cont($this->createSubHeadline(_("Anzahl Zeilen") . ": "));
     $select = new HTM("select");
     $select->attr("name", "template_add_num_answers");
     $select->attr("size", "1");
     $select->attr("style", "vertical-align:middle;");
     for ($i = 1; $i <= 25; $i++) {
         $option = new HTM("option");
         $option->attr("value", $i);
         $option->cont($i);
         if ($i == $answer->getRows()) {
             $option->addAttr("selected", "selected");
         }
         $select->cont($option);
     }
     $form->cont($select);
     $form->cont($this->BR);
     /* uebernehmen / loeschen Button ---------------------------- */
     $input = Button::create(_('Übernehmen'), 'template_savefree_button');
     $odb = new EvaluationObjectDB();
     //if($odb->getGlobalPerm()=="root"){
     //  $myuserid = 0;
     //}
     //else{
     //   $myuserid = $user->id;
     //}
     //if($question->getParentID()==$myuserid){
     //   $loesch=1;
     if (!strstr($this->command, "create")) {
         $showDelete = YES;
         $input2 = Button::createAccept(_('Löschen'), 'template_delete_button');
     }
     $table = new HTM("table");
     $table->attr("border", "0");
     $table->attr("align", "center");
     $table->attr("cellspacing", "0");
     $table->attr("cellpadding", "3");
     $table->attr("width", "100%");
//.........这里部分代码省略.........
开发者ID:ratbird,项目名称:hope,代码行数:101,代码来源:evaluation_admin_template.lib.php

示例12: if

    <tr>
        <td width="20">
        <? if ($comments_admin): ?>
            <input type="CHECKBOX" name="mark_comments[]" value="<?php 
echo $comment['comment_id'];
?>
" <?php 
echo tooltip(_("Diesen Kommentar zum Löschen vormerken"), false);
?>
>
        <? endif ?>
        </td>
        <td>
            <div style="display: inline; color: #888888; font-size: 0.8em;">#<?php 
echo $index + 1;
?>
 - </div>
            <a href="<?php 
echo URLHelper::getLink('dispatch.php/profile?username=' . $comment[2]);
?>
" style="font-weight: bold; color: #888888; font-size: 0.8em;">
                <?php 
echo htmlReady($comment[1]);
?>
            </a>
            <div style="display: inline; color: #888888; font-size: 0.8em; float: right;">
            <?php 
echo reltime($comment[3]);
?>
            </div>
            <br>
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:comment-box.php

示例13: input_checkbox

				</td>
			</tr>
<?php 
}
?>
			<tr style="height: 24px;">
				<td><span class="warning"><?php 
echo $_lang['resource_opt_emptycache'];
?>
</span></td>
				<td>
<?php 
$disabled = $cache_type == 0 ? ' disabled="disabled"' : '';
echo input_checkbox('syncsite', true, $disabled);
echo input_hidden('syncsite');
echo tooltip($_lang['resource_opt_emptycache_help']);
?>
				</td>
			</tr>
		</table>
	</div><!-- end #tabSettings -->

<?php 
if ($modx->hasPermission('edit_doc_metatags') && $modx->config['show_meta']) {
    // get list of site keywords
    $keywords = array();
    $ds = $modx->db->select('id,keyword', '[+prefix+]site_keywords', '', 'keyword ASC');
    $limit = $modx->db->getRecordCount($ds);
    if ($limit > 0) {
        while ($row = $modx->db->getRow($ds)) {
            $keywords[$row['id']] = $row['keyword'];
开发者ID:Fiberalph,项目名称:evolution-jp,代码行数:31,代码来源:mutate_content.dynamic.php

示例14: getChecked

      </tr>
      <tr>
        <td>Active:</td>
        <td><span class="input-out">
          <label for="active-1">Yes</label>
          <input name="active" type="radio" id="active-1"  value="1" <?php 
        getChecked($row['active'], 1);
        ?>
 />
          <label for="active-2">No</label>
          <input name="active" type="radio" id="active-2" value="0" <?php 
        getChecked($row['active'], 0);
        ?>
 />
          <?php 
        echo tooltip('Only active gateways will be available for payment methods.');
        ?>
</span></td>
      </tr>
      <tr>
        <td>IPN Url:</td>
        <td><?php 
        echo SITEURL . '/gateways/' . $row['dir'] . '/ipn.php';
        ?>
</td>
      </tr>
    </tbody>
  </table>
  <input name="id" type="hidden" value="<?php 
        echo $core->id;
        ?>
开发者ID:ExtraProgrammers,项目名称:PrivateGSIASorteios,代码行数:31,代码来源:gateways.php

示例15: foreach

        foreach($sem_data as $seminar_id => $data){
            if (key($data['sem_number']) != $sem_number){
                $sem_number = key($data['sem_number']);
                echo "\n<option value=\"0\" style=\"font-weight:bold;color:red;\">&nbsp;</option>";
                echo "\n<option value=\"0\" style=\"font-weight:bold;color:red;\">" . $the_tree->tree->sem_dates[$sem_number]['name'] . ":</option>";
                echo "\n<option value=\"0\" style=\"font-weight:bold;color:red;\">" . str_repeat("¯",floor($cols * .8)) . "</option>";
            }
            $sem_name = key($data["Name"]);
            $sem_number_end = key($data["sem_number_end"]);
            if ($sem_number != $sem_number_end){
                $sem_name .= " (" . $the_tree->tree->sem_dates[$sem_number]['name'] . " - ";
                $sem_name .= (($sem_number_end == -1) ? _("unbegrenzt") : $the_tree->tree->sem_dates[$sem_number_end]['name']) . ")";
            }
            $line = htmlReady(my_substr($sem_name,0,$cols));
            $tooltip = $sem_name . " (" . join(",",array_keys($data["doz_name"])) . ")";
            echo "\n<option value=\"$seminar_id\" " . tooltip($tooltip,false) . ">$line</option>";
        }
    }
    ?>
    </select><br>&nbsp;<br><select name="mark_list_aktion" style="font-size:8pt;width:100%;">
    <?
    if (is_array($_possible_open_items) && count($_possible_open_items) && !(count($_possible_open_items) == 1 && $_possible_open_items['root'])){
        echo "\n<option  value=\"insert_all\">" . _("Markierte in alle geöffneten Bereiche eintragen") . "</option>";
        foreach ($_possible_open_items as $item_id => $value){
            echo "\n<option value=\"insert_{$item_id}\">"
                . sprintf(_("Markierte in \"%s\" eintragen"),htmlReady(my_substr($the_tree->tree->tree_data[$item_id]['name'],0,floor($cols * .8)))) . "</option>";
        }
    }
    ?>
    <option value="del"><?php 
echo _("Markierte aus der Merkliste löschen");
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:admin_sem_tree.php


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