本文整理汇总了PHP中StringChopTooltip函数的典型用法代码示例。如果您正苦于以下问题:PHP StringChopTooltip函数的具体用法?PHP StringChopTooltip怎么用?PHP StringChopTooltip使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了StringChopTooltip函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlspecialchars
</a>
</td>
<td>
<?php
echo $item['build_order'];
?>
</td>
<td>
<?php
if (empty($item['category_id'])) {
?>
MIXED
<?php
} else {
$category_name = htmlspecialchars($GLOBALS['categories'][$item['category_id']]['name']);
echo StringChopTooltip($category_name, 25);
}
?>
</td>
<td style="text-align: right;" class="last">
<a href="index.php?r=tlxPageTemplateLoad&page_id=<?php
echo urlencode($item['page_id']);
?>
" class="function">
<img src="images/html-small.png" width="12" height="12" alt="Edit Template" title="Edit Template"></a>
<a href="index.php?r=tlxShPageEdit&page_id=<?php
echo urlencode($item['page_id']);
?>
" class="window function {title: 'Edit Ranking Page', height: 375}">
<img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
<a href="" onclick="return deleteSelected('<?php
示例2: StringChopTooltip
?>
" type="checkbox">
</td>
<td>
<?php
echo StringChopTooltip($item['value'], 35);
?>
</td>
<td>
<?php
echo $WLIST_TYPES[$item['type']];
?>
</td>
<td>
<?php
echo StringChopTooltip($item['reason'], 25);
?>
</td>
<td style="text-align: center;">
<img src="images/<?php
echo $item['allow_redirect'] ? 'check' : 'x';
?>
.png">
</td>
<td style="text-align: center;">
<img src="images/<?php
echo $item['allow_norecip'] ? 'check' : 'x';
?>
.png">
</td>
<td style="text-align: center;">
示例3: foreach
echo $item['recip_required'] ? 'Yes' : 'No';
?>
<span style="left: 225px; position: absolute;"><b>Recip Required:</b>
<?php
echo $item['recip_required'] ? 'Yes' : 'No';
?>
</span>
</div>
<?php
foreach ($GLOBALS['_user_fields_'] as $field) {
if (!IsEmptyString($item[$field['name']])) {
?>
<div style="margin-top: 4px;"><b><?php
echo StringChopTooltip(htmlspecialchars($field['label']), 25);
?>
:</b> <?php
echo $item[$field['name']];
?>
</div>
<?php
}
}
?>
</div>
</td>
<td style="text-align: right;" class="last" valign="top">
<a href="index.php?r=lxShEditUser&username=<?php
echo urlencode($item['username']);
?>
示例4: COUNT
</td>
<td style="text-align: center;">
<img src="images/<?php
echo $item['hidden'] ? 'check' : 'x';
?>
.png">
</td>
<td>
<?php
$accounts = $DB->Count('SELECT COUNT(*) FROM `tlx_accounts` WHERE `category_id`=?', array($item['category_id']));
echo number_format($accounts, 0, $C['dec_point'], $C['thousands_sep']);
?>
</td>
<td>
<?php
echo StringChopTooltip($item[$_REQUEST['order']], 20);
?>
</td>
<td style="text-align: right;" class="last">
<a href="index.php?r=tlxShAccountSearch&category_id=<?php
echo urlencode($item['category_id']);
?>
" class="function">
<img src="images/go.png" alt="View Galleries" title="View Galleries"></a>
<a href="index.php?r=tlxShCategoryEdit&category_id=<?php
echo urlencode($item['category_id']);
?>
" class="window function {title: 'Edit Category'}">
<img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
<a href="" onclick="return deleteSelected('<?php
echo $item['category_id'];
示例5: StringChopTooltip
">
<td>
<input class="checkbox autocb" name="email_id[]" value="<?php
echo $item['email_id'];
?>
" type="checkbox">
</td>
<td>
<?php
echo StringChopTooltip($item['identifier'], 50);
?>
</td>
<td>
<?php
IniParse(html_entity_decode($item['plain']), FALSE, $item['message']);
echo StringChopTooltip($item['message']['subject'], 90);
?>
</td>
<td style="text-align: right;" class="last">
<a href="index.php?r=lxShEditRejection&email_id=<?php
echo urlencode($item['email_id']);
?>
" class="window function {title: 'Edit Rejection E-mail'}">
<img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
<a href="" onclick="return deleteSelected('<?php
echo $item['email_id'];
?>
')" class="function">
<img src="images/trash.png" width="12" height="12" alt="Delete" title="Delete"></a>
</td>
</tr>
示例6: StringChopTooltip
<tr id="<?php
echo $item['news_id'];
?>
">
<td valign="top">
<input type="checkbox" class="checkbox autocb" name="news_id[]" value="<?php
echo $item['news_id'];
?>
">
</td>
<td valign="top">
<b><?php
echo StringChopTooltip($item['headline'], 100);
?>
</b><br />
<div style="margin-left: 20px;"><?php
echo nl2br(StringChop($item['body'], 500));
?>
</div>
</td>
<td valign="top">
<?php
echo date(DF_SHORT, strtotime($item['date_added']));
?>
</td>
<td style="text-align: right;" class="last" valign="top">
<a href="index.php?r=lxShEditNews&news_id=<?php
echo urlencode($item['news_id']);
?>
" class="window function {title: 'Edit News Item'}">
<img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
示例7: StringChopTooltip
?>
</span>
</div>
<div style="margin-top: 4px; position: relative;">
<b>Name:</b>
<?php
echo $item['name'] ? $item['name'] : '-';
?>
<span style="left: 225px; position: absolute;"><b>E-mail:</b>
<a href="mailto:<?php
echo $item['email'];
?>
"><?php
echo StringChopTooltip($item['email'], 35);
?>
</a></span>
<span style="left: 475px; position: absolute;"><b>Submit IP:</b>
<?php
echo $item['submit_ip'];
?>
</span>
</div>
<div style="margin-top: 4px;">
<b>Categories:</b><br />
<div style="margin-left: 20px;">
<?php
$category_result = $DB->Query('SELECT * FROM lx_link_cats JOIN lx_categories USING (category_id) WHERE link_id=?', array($item['link_id']));
示例8: StringChopTooltip
echo $item['feed_id'];
?>
">
</td>
<td>
<a href="<?php
echo $item['feed_url'];
?>
" target="_blank"><?php
echo StringChopTooltip($item['feed_url'], 75);
?>
</a>
</td>
<td>
<?php
echo $item['sponsor_id'] ? StringChopTooltip($GLOBALS['sponsors'][$item['sponsor_id']]['name'], 40) : '-';
?>
</td>
<td style="text-align: center">
<?php
echo $item['date_last_import'] ? date(DF_SHORT, strtotime($item['date_last_import'])) : '-';
?>
</td>
<td style="text-align: right;" class="last">
<img src="images/expand.png" width="12" height="12" alt="Import" title="Import" class="click function" onClick="importRss('<?php
echo $item['feed_id'];
?>
')">
<a href="index.php?r=txShRssFeedEdit&feed_id=<?php
echo urlencode($item['feed_id']);
?>
示例9: StringChopTooltip
?>
">
<td>
<input type="checkbox" class="checkbox autocb" name="icon_id[]" value="<?php
echo $item['icon_id'];
?>
">
</td>
<td>
<?php
echo StringChopTooltip($item['identifier'], 28);
?>
</td>
<td>
<?php
echo StringChopTooltip($item['icon_html'], 130);
?>
</td>
<td style="text-align: right;" class="last">
<a href="index.php?r=tlxShIconEdit&icon_id=<?php
echo urlencode($item['icon_id']);
?>
" class="window function {title: 'Edit Icon'}">
<img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
<a href="" onclick="return deleteSelected('<?php
echo $item['icon_id'];
?>
')" class="function">
<img src="images/trash.png" width="12" height="12" alt="Delete" title="Delete"></a>
</td>
</tr>
示例10: StringChopTooltip
<tr id="<?php
echo $item['term_id'];
?>
">
<td>
<input type="checkbox" class="checkbox autocb" name="term_id[]" value="<?php
echo $item['term_id'];
?>
">
</td>
<td>
<?php
echo StringChopTooltip($item['term'], 120);
?>
</td>
<td>
<?php
echo date(DF_SHORT, strtotime($item['date_last_search']));
?>
</td>
<td>
<?php
echo number_format($item['searches'], 0, $C['dec_point'], $C['thousands_sep']);
?>
</td>
<td style="text-align: right;" class="last">
<a href="" onclick="return deleteSelected('<?php
echo $item['term_id'];
?>
')" class="function">
<img src="images/trash.png" width="12" height="12" alt="Delete" title="Delete"></a>
示例11: StringChopTooltip
?>
">
<td>
<input class="checkbox autocb" name="field_id[]" value="<?php
echo $item['field_id'];
?>
" type="checkbox">
</td>
<td>
<?php
echo $item['name'];
?>
</td>
<td>
<?php
echo StringChopTooltip($item['label'], 70);
?>
</td>
<td>
<?php
echo $item['type'];
?>
</td>
<td style="text-align: center;">
<?php
if ($item['on_create']) {
?>
<img src="images/<?php
echo $item['required_create'] ? 'check-required' : 'check';
?>
.png">
示例12: StringChopTooltip
<input type="checkbox" class="checkbox autocb" name="domain_id[]" value="<?php
echo $item['domain_id'];
?>
">
</td>
<td>
<?php
echo $item['domain'];
?>
</td>
<td>
<a href="<?php
echo $item['base_url'];
?>
" target="_blank"><?php
echo StringChopTooltip($item['base_url'], 60);
?>
</a>
</td>
<td style="text-align: right;" class="last">
<a href="index.php?r=txShDomainEdit&domain_id=<?php
echo urlencode($item['domain_id']);
?>
" class="window function {title: 'Edit Domain'}">
<img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
<a href="" onclick="return deleteSelected('<?php
echo $item['domain_id'];
?>
')" class="function">
<img src="images/trash.png" width="12" height="12" alt="Delete" title="Delete"></a>
</td>
示例13: date
<?php
echo date(DF_SHORT, strtotime($item['date_start']));
?>
</td>
<td class="centered" valign="top">
<?php
echo $item['date_end'] ? date(DF_SHORT, strtotime($item['date_end'])) : '-';
?>
</td>
<td class="centered" valign="top">
<?php
echo number_format($item['pages_built'], 0, $C['dec_point'], $C['thousands_sep']);
?>
of
<?php
echo number_format($item['pages_total'], 0, $C['dec_point'], $C['thousands_sep']);
?>
</td>
<td class="last">
<a href="<?php
echo $item['current_page_url'];
?>
" target="_blank"><?php
echo StringChopTooltip($item['current_page_url'], 60);
?>
</a><br />
<?php
echo nl2br($item['error_message']);
?>
</td>
</tr>
示例14: txGalleryIPE
function txGalleryIPE()
{
global $DB, $C;
VerifyPrivileges(P_GALLERY_MODIFY, TRUE);
// Format output
$update = TRUE;
$output = $_REQUEST['value'];
switch ($_REQUEST['update']) {
case 'date_scheduled':
case 'date_deletion':
case 'date_displayed':
NullIfEmpty($_REQUEST['value']);
$update = preg_match(RE_DATETIME, $_REQUEST['value']) || empty($_REQUEST['value']);
$output = empty($_REQUEST['value']) ? '-' : date(DF_SHORT, strtotime($_REQUEST['value']));
break;
case 'status':
$output = ucfirst($_REQUEST['value']);
if ($_REQUEST['value'] == 'approved') {
$_REQUEST['update'] = array('status', 'date_approved');
$_REQUEST['value'] = array($_REQUEST['value'], MYSQL_NOW);
}
break;
case 'type':
case 'format':
$output = ucfirst($_REQUEST['value']);
break;
case 'weight':
case 'clicks':
case 'thumbnails':
$update = is_numeric($_REQUEST['value']);
$output = number_format($_REQUEST['value'], 0, $C['dec_point'], $C['thousands_sep']);
break;
case 'description':
case 'keywords':
case 'tags':
$output = StringChopTooltip(htmlspecialchars($_REQUEST['value']), 90);
break;
case 'gallery_url':
$output = StringChopTooltip(htmlspecialchars($_REQUEST['value']), 100, true);
break;
case 'nickname':
case 'email':
$output = StringChopTooltip(htmlspecialchars($_REQUEST['value']), 40);
break;
case 'sponsor_id':
NullIfEmpty($_REQUEST['value']);
if ($_REQUEST['value'] == null) {
$output = '';
} else {
$output = $DB->Count('SELECT `name` FROM `tx_sponsors` WHERE `sponsor_id`=?', array($_REQUEST['value']));
}
break;
case 'categories':
$_REQUEST['value'] = CategoryTagsFromIds(explode(',', $_REQUEST['value']));
$categories =& CategoriesFromTags($_REQUEST['value']);
$names = array();
foreach ($categories as $category) {
$names[] = $category['name'];
}
$output = StringChopTooltip(htmlspecialchars(join(', ', $names)), 90);
break;
case 'icons':
if (isset($_REQUEST['multi'])) {
$result = GetWhichGalleries();
while ($gallery = $DB->NextRow($result)) {
$DB->Update('DELETE FROM `tx_gallery_icons` WHERE `gallery_id`=?', array($gallery['gallery_id']));
foreach (explode(',', $_REQUEST['value']) as $icon_id) {
$icon_id = trim($icon_id);
if (is_numeric($icon_id)) {
$DB->Update('INSERT INTO `tx_gallery_icons` VALUES (?,?)', array($gallery['gallery_id'], $icon_id));
}
}
}
$DB->Free($result);
} else {
$DB->Update('DELETE FROM `tx_gallery_icons` WHERE `gallery_id`=?', array($_REQUEST['gallery_id']));
foreach (explode(',', $_REQUEST['value']) as $icon_id) {
$icon_id = trim($icon_id);
if (is_numeric($icon_id)) {
$DB->Update('INSERT INTO `tx_gallery_icons` VALUES (?,?)', array($_REQUEST['gallery_id'], $icon_id));
}
}
}
echo '<img src="images/icons.png" alt="Icons" title="Icons" class="click-image function">';
return;
break;
}
if ($update) {
$update = new UpdateBuilder('tx_galleries');
if (is_array($_REQUEST['update'])) {
foreach ($_REQUEST['update'] as $index => $field) {
$update->AddSet($_REQUEST['update'][$index], $_REQUEST['value'][$index]);
}
} else {
$update->AddSet($_REQUEST['update'], $_REQUEST['value']);
}
if (isset($_REQUEST['multi'])) {
$update = GetWhichGalleries($update);
} else {
$update->AddWhere('gallery_id', ST_MATCHES, $_REQUEST['gallery_id']);
//.........这里部分代码省略.........
示例15: StringChopTooltip
echo $item['sponsor_id'];
?>
">
</td>
<td>
<?php
echo StringChopTooltip($item['name'], 40);
?>
</td>
<td>
<a href="<?php
echo $item['url'];
?>
" target="_blank">
<?php
echo StringChopTooltip($item['url'], 70);
?>
</a>
</td>
<td>
<?php
$galleries = $DB->Count('SELECT COUNT(*) FROM `tx_galleries` WHERE `sponsor_id`=?', array($item['sponsor_id']));
echo number_format($galleries, 0, $C['dec_point'], $C['thousands_sep']);
?>
</td>
<td style="text-align: right;" class="last">
<a href="index.php?r=txShGallerySearch&sponsor_id=<?php
echo urlencode($item['sponsor_id']);
?>
" class="function">
<img src="images/go.png" alt="View Galleries" title="View Galleries"></a>