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


PHP OxWindow::Display方法代码示例

本文整理汇总了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    &nbsp;&nbsp;\r\n    <a href='archives_do.php?aid=" . $id . "&dopost=editArchives'><u>查看更改</u></a>\r\n    &nbsp;&nbsp;\r\n    <a href='{$artUrl}' target='_blank'><u>查看文章</u></a>\r\n    &nbsp;&nbsp;\r\n    <a href='catalog_do.php?cid={$typeid}&dopost=listArchives'><u>管理文章</u></a>\r\n    &nbsp;&nbsp;\r\n    {$backurl}\r\n    ";
        $wintitle = "成功更改文章!";
        $wecome_info = "文章管理::更改文章";
        $win = new OxWindow();
        $win->AddTitle("成功更改文章:");
        $win->AddMsgItem($msg);
        $winform = $win->GetWindow("hand", "&nbsp;", false);
        $win->Display();
    }
}
开发者ID:suibber,项目名称:jb,代码行数:31,代码来源:article_edit.php

示例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;
 }
开发者ID:hensonvip,项目名称:ymroad,代码行数:13,代码来源:mychannel_edit.php

示例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();
}
开发者ID:btcamp,项目名称:oceanforex,代码行数:18,代码来源:oxwindow.class.php

示例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", "&nbsp;", false);
    $win->Display();
}
开发者ID:klr2003,项目名称:sourceread,代码行数:8,代码来源:oxwindow.class.php

示例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();
 }
开发者ID:soonfine,项目名称:leread,代码行数:101,代码来源:cjx.class.php


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