本文整理匯總了PHP中OxWindow::Display方法的典型用法代碼示例。如果您正苦於以下問題:PHP OxWindow::Display方法的具體用法?PHP OxWindow::Display怎麽用?PHP OxWindow::Display使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OxWindow
的用法示例。
在下文中一共展示了OxWindow::Display方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: UpIndexKey
}
}
//生成HTML
UpIndexKey($id, $arcrank, $typeid, $sortrank, $tags);
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
} else {
$config = array();
}
if (!$ftp->connect($config)) {
exit('Error:None FTP Connection!');
}
}
$artUrl = MakeArt($id, true, true, $isremote);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid={$id}";
}
ClearMyAddon($id, $title);
//返回成功信息
$msg = "\r\n 請選擇你的後續操作:\r\n <a href='article_add.php?cid={$typeid}'><u>發布新文章</u></a>\r\n \r\n <a href='archives_do.php?aid=" . $id . "&dopost=editArchives'><u>查看更改</u></a>\r\n \r\n <a href='{$artUrl}' target='_blank'><u>查看文章</u></a>\r\n \r\n <a href='catalog_do.php?cid={$typeid}&dopost=listArchives'><u>管理文章</u></a>\r\n \r\n {$backurl}\r\n ";
$wintitle = "成功更改文章!";
$wecome_info = "文章管理::更改文章";
$win = new OxWindow();
$win->AddTitle("成功更改文章:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", " ", false);
$win->Display();
}
}
示例2: GotoStaMsg
function GotoStaMsg($msg)
{
global $wintitle, $wecome_info, $winform;
$wintitle = "導入內容模型規則";
$wecome_info = "<a href='mychannel_main.php'>內容模型管理</a>::導入內容模型規則";
$win = new OxWindow();
$win->Init();
$win->AddTitle("操作狀態提示:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand");
$win->Display();
exit;
}
示例3: ShowMsgWin
/**
* 顯示一個不帶表單的普通提示
*
* @access public
* @param string $msg 消息提示信息
* @param string $title 提示標題
* @return string
*/
function ShowMsgWin($msg, $title)
{
$win = new OxWindow();
$win->Init();
$win->mainTitle = "Oceanforex係統提示:";
$win->AddTitle($title);
$win->AddMsgItem("<div style='padding-left:20px;line-height:150%'>{$msg}</div>");
$winform = $win->GetWindow("hand");
$win->Display();
}
示例4: ShowMsgWin
function ShowMsgWin($msg, $title)
{
$win = new OxWindow();
$win->AddTitle($title);
$win->AddMsgItem("<div style='padding-left:20px;line-height:150%'>{$msg}</div>");
$winform = $win->GetWindow("hand", " ", false);
$win->Display();
}
示例5: stripslashes
//.........這裏部分代碼省略.........
for ($i = $min; $i <= $max; $i++) {
$listarr[] = preg_replace("/\\[([0-9]*-[0-9]*)\\]/", $i, $list);
}
$list = preg_replace("/\\[([0-9]*-[0-9]*)\\]/", $min, $list);
} else {
$listarr[] = $list;
}
$str = $this->downfile($list);
if ($cfg_soft_lang != $charset) {
if ($charset == 'utf-8') {
$str = utf82gb($str);
} else {
$str = gb2utf8($str);
}
}
$page = str_replace('(*)', '###', $page);
$page = preg_quote($page, '/');
$page = str_replace('###', '([0-9a-zA-Z\\.\\-\\/_]*)', $page);
$dhtml = new DedeHtml2();
$dhtml->SetSource($str, $list, 'link');
$lss = array();
$i = 0;
foreach ($dhtml->Links as $s) {
if (preg_match('/' . $page . '/iU', $s['link'])) {
if (!isset($lss[$s['link']])) {
if (!isset($first)) {
$first = $s['link'];
}
$lss[$s['link']] = $s['link'];
$i++;
if ($i == 10) {
break;
}
}
}
}
$msg = '';
$GLOBALS['wintitle'] = "采集俠-測試定向采集規則";
$GLOBALS['wecome_info'] = "采集俠定向采集::采集規則測試";
$win = new OxWindow();
$win->AddTitle('匹配到的列表地址(前10個)');
foreach ($listarr as $v) {
$msg .= $v . "<br>";
}
$win->AddMsgItem($msg);
$win->AddTitle('第一個列表頁匹配到的文章地址(前10個)');
$msg = '';
foreach ($lss as $v) {
$msg .= $v . "<br>";
}
$win->AddMsgItem($msg);
$str = $this->downfile($first);
if ($cfg_soft_lang != $charset) {
if ($charset == 'utf-8') {
$str = utf82gb($str);
} else {
$str = gb2utf8($str);
}
}
$win->AddTitle("<font color=black>測試采集第一篇文章:{$first} </font>");
$win->AddTitle('文章標題');
if (empty($titlerule)) {
$win->AddMsgItem('自動規則不需要測試');
} else {
$win->AddMsgItem($this->UT($str, $titlerule));
}
$win->AddTitle('作者');
if (empty($authorrule)) {
$win->AddMsgItem('自動規則不需要測試');
} else {
$win->AddMsgItem($this->UT($str, $authorrule));
}
$win->AddTitle('來源');
if (empty($sourcerule)) {
$win->AddMsgItem('自動規則不需要測試');
} else {
$win->AddMsgItem($this->UT($str, $sourcerule));
}
$win->AddTitle('文章內容(測試無法采集分頁內容)');
if (empty($bodyrule)) {
$win->AddMsgItem('自動規則不需要測試');
} else {
$win->AddMsgItem($this->UT($str, $bodyrule));
}
$win->AddTitle('分頁鏈接');
if (empty($fyrule)) {
$win->AddMsgItem('自動采集分頁不需要測試');
} else {
$fylink = $this->UT($str, $fyrule);
$dhtml = new DedeHtml2();
$dhtml->SetSource($fylink, $first, 'link');
$relink = '';
foreach ($dhtml->Links as $k => $v) {
$relink .= $k . "<br>";
}
$win->AddMsgItem($relink);
}
$GLOBALS['winform'] = $win->GetWindow("hand");
$win->Display();
}