本文整理汇总了PHP中template::showtips方法的典型用法代码示例。如果您正苦于以下问题:PHP template::showtips方法的具体用法?PHP template::showtips怎么用?PHP template::showtips使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类template
的用法示例。
在下文中一共展示了template::showtips方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: catcherror
}
if (!$selid) {
$cancel = "{$lna[205]}";
}
catcherror($cancel);
if (($opt == 'del' || $opt == 'noreply') && $confirm != 1) {
$convey .= "<form action='admin.php?go=entry_batch' method='post'>{$lna[335]}";
$convey .= "<input type='hidden' name='opt' value='{$opt}'>";
$convey .= "<input type='hidden' name='confirm' value='1'>";
for ($i = 0; $i < count($selid); $i++) {
$convey .= "<input type='hidden' name='selid[]' value='{$selid[$i]}'>";
}
$convey .= "<br/><br/><div align=center><input type=submit value='{$lna[64]}' class='formbutton'> <input type=button onclick='window.location=(\"admin.php?act=entry\");' value='{$lna[138]}' class='formbutton'></div>";
$convery .= "</form>";
$m_b = new template();
$m_b->showtips($lna[336], $convey);
}
$selid = array_values(array_unique($selid));
$batch_id = makeaquery($selid, "`blogid`='%s'", 'OR');
if ($opt == 'del' || $opt == 'deldraft') {
$tags_affected_raw = $blog->getarraybyquery("SELECT blogid, tags FROM `{$db_prefix}blogs` WHERE ({$batch_id}) AND tags<>'' AND tags<>'>'");
for ($i = 0; $i < count($tags_affected_raw['blogid']); $i++) {
$tmp_tag = @explode('>', trim($tags_affected_raw['tags'][$i], '>'));
$tmp_tag_q = makeaquery($tmp_tag, "`tagname`='%s'", 'OR');
$tmp_query = "UPDATE `{$db_prefix}tags` SET tagentry=replace(tagentry, ',{$tags_affected_raw['blogid'][$i]},', ','), tagcounter=tagcounter-1 WHERE {$tmp_tag_q}";
$blog->query($tmp_query);
unset($tmp_query, $tmp_tag_q, $tmp_tag);
}
$queryact = "DELETE FROM `{$db_prefix}blogs` WHERE {$batch_id}";
} elseif ($opt == 'move') {
$queryact = "UPDATE `{$db_prefix}blogs` SET `category`='{$newcategory}' WHERE {$batch_id}";
示例2: autoselect
$url = str_replace('{host}', $_SERVER['HTTP_HOST'], $url);
foreach ($pingurl as $durl) {
$result = sendping($durl, $title, $excerpt, $url, $blog_name);
if (!$result) {
$showp .= "<b>{$lna[316]}</b>{$durl} ; <b>{$lna[317]}</b>{$lna[318]}";
} elseif ($result == 'ok') {
$showp .= "<b>{$lna[316]}</b>{$durl} ; <b>{$lna[317]}</b>{$lna[319]}<br>";
} elseif ($result == 'unknown') {
$showp .= "<b>{$lna[316]}</b>{$durl} ; <b>{$lna[317]}</b>{$lna[949]}<br>";
} else {
$showp .= "<b>{$lna[316]}</b>{$durl} ; <br><b>{$lna[317]}</b>{$lna[950]}{$result}<br>";
}
}
plugin_runphp('trackbacksent');
$t = new template();
$t->showtips("{$lna[320]}", "{$lna[321]}<br><br>" . $showp . "<br><br>{$lna[322]}", "{$partbacktoart}|{$url}");
}
function autoselect($name, $arrayoption, $arrayvalue, $selectedid = 0, $disabled = 0)
{
if (empty($selectedid)) {
$selectedid = 0;
}
if ($disabled == 1) {
$wdisabled = " disabled='disabled' ";
}
$formcontent .= "<select name='{$name}' id='{$name}' class='formselect' {$wdisabled}>";
for ($i = 0; $i < count($arrayoption); $i++) {
if ($selectedid == $i) {
$wselected = "selected='selected'";
} else {
$wselected = '';
示例3: array
$bodymenu = $t->set('mainpage', array('pagebar' => '', 'iftoppage' => 'none', 'ifbottompage' => 'none', 'ifannouncement' => $ifannouncement, 'topannounce' => $topannounce, 'mainpart' => $mainpart, 'currentpage' => '', 'previouspageurl' => '', 'nextpageurl' => '', 'turningpages' => '', 'totalpages' => '', 'previouspageexists' => '', 'nextpageexists' => ''));
$pagetitle = "{$lnc[225]} × ";
} else {
$pinch = array();
foreach ($result as $item) {
$pinch[] = "{$item}";
}
$pinchall = "<?PHP exit;?>\n{$keyword}\n{$searchmethod}\n" . @implode(',', $pinch);
$sid = md5(time() . $userdetail['ip']);
$keyword = urlencode($keyword);
if (!writetofile("{$db_tmpdir}/{$sid}.php", $pinchall)) {
catcherror($lnc[226]);
}
@header("Content-Type: text/html; charset=utf-8");
$t = new template();
$t->showtips($lnc[227], $lnc[228], "{$lnc[229]}|visit.php?job=viewresult&sid={$sid}", true);
}
}
if ($job == 'viewresult') {
acceptrequest('sid');
$sid = basename($sid);
if (!file_exists("{$db_tmpdir}/{$sid}.php")) {
catcherror($lnc[226]);
}
$results = file("{$db_tmpdir}/{$sid}.php");
$searchmethod = trim($results[2]);
$keyword = trim($results[1]);
$tmp_results3 = @explode(',', trim($results[3]));
for ($i = 0; $i < count($tmp_results3); $i++) {
$tmp_results3[$i] = "'" . $tmp_results3[$i] . "'";
}
示例4: catchsuccess
}
recache_adminlist();
catchsuccess($finishok1, $backtodefault);
}
if ($job == 'delgp') {
if ($itemid === '') {
catcherror($lna[449]);
}
foreach ($usergp as $key => $value) {
if ($key != $itemid) {
$gplist .= "<option value='{$key}'>{$value}</option>\n";
}
}
@header("Content-Type: text/html; charset=utf-8");
$t = new template();
$t->showtips($lna[454], "<br><form action='admin.php?go=user_dodelgp_{$itemid}' method=post>{$lna[455]}<br><br><select name='togp'>{$gplist}</select> <input type=submit value='{$lna[64]}' class='formbutton'></form>");
exit;
}
if ($job == 'dodelgp') {
if ($itemid === '') {
catcherror($lna[449]);
}
if ($togp === '' || $togp == $itemid) {
catcherror($lna[449]);
}
$blog->query("UPDATE `{$db_prefix}user` SET `usergroup`='{$togp}' WHERE `usergroup`='{$itemid}'");
if (file_exists("data/usergroup{$itemid}.php")) {
@unlink("data/usergroup{$itemid}.php");
}
$savetext .= "<?PHP\n";
foreach ($usergp as $key => $value) {
示例5: catchsuccess
} else {
catchsuccess($finishok1, $backtodefault);
}
}
if ($job == 'delgp') {
if ($itemid === '') {
catcherror($lna[449]);
}
foreach ($usergp as $key => $value) {
if ($key != $itemid) {
$gplist .= "<option value='{$key}'>{$value}</option>\n";
}
}
@header("Content-Type: text/html; charset=utf-8");
$t = new template();
$t->showtips($lna[454], "<br><form action='admin.php?go=user_dodelgp_{$itemid}' method='post'>{$lna[455]}<br><br><select name='togp'>{$gplist}</select> <input type=button value='{$lna[138]}' onclick='window.location=\"admin.php?go=user_usergroup\"' class='formbutton'> <input type=submit value='{$lna[64]}' class='formbutton'></form>");
exit;
}
if ($job == 'dodelgp') {
if ($itemid === '') {
catcherror($lna[449]);
}
if ($togp === '' || $togp == $itemid) {
catcherror($lna[449]);
}
$blog->query("UPDATE `{$db_prefix}user` SET `usergroup`='{$togp}' WHERE `usergroup`='{$itemid}'");
if (file_exists("data/usergroup{$itemid}.php")) {
@unlink("data/usergroup{$itemid}.php");
}
$savetext .= "<?PHP\n";
foreach ($usergp as $key => $value) {
示例6: catcherror
function catcherror($error, $enableautojump = true)
{
global $ajax, $lnc;
if (!empty($error)) {
@header("Content-Type: text/html; charset=utf-8");
if ($ajax == 'on') {
die("<boblog_ajax::error>" . strip_tags($error));
}
$t = new template();
$t->showtips($lnc[4], $error, "{$lnc[5]}|<", $enableautojump);
}
}