當前位置: 首頁>>代碼示例>>PHP>>正文


PHP OxWindow::GetWindow方法代碼示例

本文整理匯總了PHP中OxWindow::GetWindow方法的典型用法代碼示例。如果您正苦於以下問題:PHP OxWindow::GetWindow方法的具體用法?PHP OxWindow::GetWindow怎麽用?PHP OxWindow::GetWindow使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在OxWindow的用法示例。


在下文中一共展示了OxWindow::GetWindow方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: OxWindow

             $v['type'] = '文件';
         }
         $filelist .= "{$v['type']}|{$v['name']}\r\n";
     }
     if (file_exists(DEDEDATA . "/module/{$hash}-readme.php")) {
         $setupinfo = "已安裝 <a href='module_main.php?action=uninstall&hash={$hash}'>卸載</a>";
     } else {
         $setupinfo = "未安裝 <a href='module_main.php?action=setup&hash={$hash}'>安裝</a>";
     }
     $win = new OxWindow();
     $win->Init("", "js/blank.js", "");
     $wecome_info = "模塊管理";
     $win->AddTitle("<a href='module_main.php'>模塊管理</a> &gt;&gt; 模塊詳情: {$infos['name']}");
     $msg = "<style>.dtb{border-bottom:1px dotted #cccccc}</style>\r\n    <table width='98%' border='0' cellspacing='0' cellpadding='0'>\r\n  <tr>\r\n    <td width='20%' height='28' class='dtb'>模塊名稱:</td>\r\n    <td width='80%' class='dtb'>{$infos['name']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>語言:</td>\r\n    <td class='dtb'>{$infos['lang']} {$alertMsg}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>文件大小:</td>\r\n    <td class='dtb'>{$infos['filesize']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>是否已安裝:</td>\r\n    <td class='dtb'>{$setupinfo}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>團隊名稱:</td>\r\n    <td class='dtb'>{$infos['team']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>發布時間:</td>\r\n    <td class='dtb'>{$infos['time']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>電子郵箱:</td>\r\n    <td class='dtb'>{$infos['email']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>官方網址:</td>\r\n    <td class='dtb'>{$infos['url']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>使用協議:</td>\r\n    <td class='dtb'><a href='module_main.php?action=showreadme&hash={$hash}' target='_blank'>點擊瀏覽...</a></td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28'>模塊包含的文件:<br />(文件路徑相對於當前目錄)</td><td>&nbsp;</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='164' colspan='2'>\r\n     <textarea name='filelists' id='filelists' style='width:90%;height:200px'>{$filelist}</textarea>\r\n    </td>\r\n  </tr>\r\n</table>\r\n    ";
     $win->AddMsgItem("<div style='padding-left:10px;line-height:150%'>{$msg}</div>");
     $winform = $win->GetWindow('hand', '');
     $win->Display();
     $dm->Clear();
     exit;
 } else {
     if ($action == 'edit') {
         $dm = new DedeModule($mdir);
         $minfos = $dm->GetModuleInfo($hash);
         extract($minfos, EXTR_SKIP);
         if (!isset($lang)) {
             $lang = 'gb2312';
         }
         if (!isset($moduletype)) {
             $moduletype = 'soft';
         }
         $menustring = $dm->GetSystemFile($hash, 'menustring');
開發者ID:stonelf,項目名稱:mcgmh,代碼行數:31,代碼來源:module_main.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: addslashes

        $urls = addslashes($urls);
        //更新附加表
        $needmoney = @intval($needmoney);
        if ($needmoney > 100) {
            $needmoney = 100;
        }
        $cts = $dsql->GetOne("Select addtable From `#@__channeltype` where id='{$channelid}' ");
        $addtable = trim($cts['addtable']);
        if ($addtable != '') {
            $inQuery = "update `{$addtable}`\r\n            set typeid ='{$typeid}',\r\n            filetype ='{$filetype}',\r\n            language ='{$language}',\r\n            softtype ='{$softtype}',\r\n            accredit ='{$accredit}',\r\n            os ='{$os}',\r\n            softrank ='{$softrank}',\r\n            officialUrl ='{$officialUrl}',\r\n            officialDemo ='{$officialDemo}',\r\n            softsize ='{$softsize}',\r\n            softlinks ='{$urls}',\r\n            userip='{$userip}',\r\n            needmoney='{$needmoney}',\r\n            introduce='{$body}'{$inadd_f}\r\n            where aid='{$aid}'; ";
            if (!$dsql->ExecuteNoneQuery($inQuery)) {
                ShowMsg("更新數據庫附加表 addonsoft 時出錯,請檢查原因!", "-1");
                exit;
            }
        }
        UpIndexKey($aid, $arcrank, $typeid, $sortrank, $tags);
        $artUrl = MakeArt($aid, TRUE);
        if ($artUrl == '') {
            $artUrl = $cfg_phpurl . "/view.php?aid={$aid}";
        }
        //返回成功信息
        $msg = "  請選擇你的後續操作:\r\n        <a href='soft_add.php?cid={$typeid}'><u>發布新軟件</u></a>\r\n        &nbsp;&nbsp;\r\n        <a href='soft_edit.php?channelid={$channelid}&aid=" . $aid . "'><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='content_list.php?channelid={$channelid}'><u>管理軟件</u></a>\r\n        ";
        $wintitle = "成功更改軟件!";
        $wecome_info = "軟件管理::更改軟件";
        $win = new OxWindow();
        $win->AddTitle("成功更改軟件:");
        $win->AddMsgItem($msg);
        $winform = $win->GetWindow("hand", "&nbsp;", FALSE);
        $win->Display();
    }
}
開發者ID:JaniseSheng,項目名稱:wwwroot,代碼行數:31,代碼來源:soft_edit.php

示例4: if

	$dsql->Close();
	ShowMsg("成功刪除一則廣告代碼!",$ENV_GOBACK_URL);
	exit();
}
else if($dopost=="getjs")
{
	require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
	$jscode = "<script src='{$cfg_plus_dir}/ad_js.php?aid=$aid' language='javascript'></script>";
	$showhtml = "<xmp style='color:#333333;background-color:#ffffff'>\r\n\r\n$jscode\r\n\r\n</xmp>";
  $showhtml .= "預覽:<iframe name='testfrm' frameborder='0' src='ad_edit.php?aid={$aid}&dopost=testjs' id='testfrm' width='100%' height='200'></iframe>";
  $wintitle = "廣告管理-獲取JS";
	$wecome_info = "<a href='ad_main.php'><u>廣告管理</u></a>::獲取JS";
  $win = new OxWindow();
  $win->Init();
  $win->AddTitle("以下為選定廣告的JS調用代碼:");
  $winform = $win->GetWindow("hand",$showhtml);
  $win->Display();
	exit();
}
else if($dopost=="testjs")
{
	header("Content-Type: text/html; charset={$cfg_ver_lang}");
	echo "<script src='{$cfg_plus_dir}/ad_js.php?aid=$aid' language='javascript'></script>";
	exit();
}
else if($dopost=="saveedit")
{
	$dsql = new DedeSql(false);
	$starttime = GetMkTime($starttime);
	$endtime = GetMkTime($endtime);
	$query = "
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:ad_edit.php

示例5: stripslashes

    $dopost = '';
}
if (empty($allsource)) {
    $allsource = '';
} else {
    $allsource = stripslashes($allsource);
}
$m_file = DEDEDATA . "/admin/source.txt";
//保存
if ($dopost == 'save') {
    $fp = fopen($m_file, 'w');
    flock($fp, 3);
    fwrite($fp, $allsource);
    fclose($fp);
    echo "<script>alert('Save OK!');</script>";
}
//讀出
if (empty($allsource) && filesize($m_file) > 0) {
    $fp = fopen($m_file, 'r');
    $allsource = fread($fp, filesize($m_file));
    fclose($fp);
}
$wintitle = "文章來源管理";
$wecome_info = "文章來源管理";
$win = new OxWindow();
$win->Init('article_source_edit.php', 'js/blank.js', 'POST');
$win->AddHidden('dopost', 'save');
$win->AddTitle("每行保存一個來源:");
$win->AddMsgItem("<textarea name='allsource' id='allsource' style='width:100%;height:300px'>{$allsource}</textarea>");
$winform = $win->GetWindow('ok');
$win->Display();
開發者ID:stonelf,項目名稱:mcgmh,代碼行數:31,代碼來源:article_source_edit.php

示例6: OxWindow

 if ($dopost == "delete") {
     if (empty($job)) {
         $job = "";
     }
     if ($job == "") {
         require_once DEDEINC . "/oxwindow.class.php";
         $wintitle = "刪除插件";
         $wecome_info = "<a href='plus_main.php'>插件管理</a>::刪除插件";
         $win = new OxWindow();
         $win->Init("plus_edit.php", "js/blank.js", "POST");
         $win->AddHidden("job", "yes");
         $win->AddHidden("dopost", $dopost);
         $win->AddHidden("aid", $aid);
         $win->AddTitle("你確實要刪除'" . $title . "'這個插件?");
         $win->AddMsgItem("<font color='red'>警告:在這裏刪除僅僅刪除菜單項,要幹淨刪除請在模塊管理處刪除!<br /><br /> <a href='module_main.php?moduletype=plus'>模塊管理&gt;&gt;</a> </font>");
         $winform = $win->GetWindow("ok");
         $win->Display();
         exit;
     } else {
         if ($job == "yes") {
             $dsql->ExecuteNoneQuery("DELETE FROM #@__plus WHERE aid='{$aid}';");
             ShowMsg("成功刪除一個插件,請刷新導航菜單!", "plus_main.php");
             exit;
         }
     }
 } else {
     if ($dopost == "saveedit") {
         $inquery = "UPDATE #@__plus SET plusname='{$plusname}',menustring='{$menustring}',filelist='{$filelist}' WHERE aid='{$aid}';";
         $dsql->ExecuteNoneQuery($inquery);
         ShowMsg("成功更改插件的配置!", "plus_main.php");
         exit;
開發者ID:hensonvip,項目名稱:ymroad,代碼行數:31,代碼來源:plus_edit.php

示例7: if

	   exit();
   }
   exit();
}
else if($action=="export")
{
   $dsql = new DedeSql(false);
   $row = $dsql->GetOne("Select * From #@__co_exrule where aid='$aid'");
   $dsql->Close();
   require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
   $wintitle = "刪除數據規則模型";
	 $wecome_info = "<a href='co_export_rule.php'><u>數據規則模型</u></a>::導出規則配置";
	 $win = new OxWindow();
	 $win->Init();
	 $win->AddTitle("以下為規則[{$aid}]的文本配置,你可以共享給你的朋友:");
	 $winform = $win->GetWindow("hand","<textarea name='cg' style='width:100%;height:300px'>".$row['ruleset']."</textarea><br/><br/>");
	 $win->Display();
   exit();
}
////////////////////////////////
require_once(dirname(__FILE__)."/../include/pub_dedetag.php");
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From #@__co_exrule where aid='$aid'");
$dsql->Close();
$ruleset = $row['ruleset'];
$channelid = $row['channelid'];
$dtp = new DedeTagParse();
$dtp->LoadString($ruleset);
$noteid = 0;
if(is_array($dtp->CTags))
{
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:co_export_rule_edit.php

示例8: 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

示例9: __PageShow

    $dsql->ExecuteNoneQuery("Update `#@__channeltype` set isdefault=0 where id<>'{$cid}'");
    if ($cid != 0) {
        $dsql->ExecuteNoneQuery("Update `#@__channeltype` set isdefault=1 where id='{$cid}'");
    }
    $win = new OxWindow();
    $win->Init();
    $win->mainTitle = "內容發布向導";
    $wecome_info = "<a href='public_guide.php?action=edit'>內容發布向導</a>";
    $win->AddTitle("<a href='public_guide.php?action=edit'>內容發布向導</a> &gt;&gt; 設置默認發布表單");
    if ($cid == 0) {
        $msg = "\r\n         成功取消默認發布表單!\r\n\t       <hr style='width:90%' size='1' />\r\n\t       你目前想要進行的操作: <a href='public_guide.php?action=edit'>返回發布向導頁</a>\r\n\t  ";
    } else {
        $msg = "\r\n\t\t成功保存默認發布表單,以後點擊“內容發布”麵板將直接跳轉到你選擇的內容發布頁!\r\n\t\t<hr style='width:90%' size='1' />\r\n\t       你目前想要進行的操作: <a href='public_guide.php'>轉到默認發布表單</a> &nbsp; <a href='public_guide.php?action=edit'>返回發布向導頁</a>\r\n\t  ";
    }
    $win->AddMsgItem("<div style='padding-left:20px;line-height:150%'>{$msg}</div>");
    $winform = $win->GetWindow("hand");
    $win->Display();
    exit;
}
//以下為正常瀏覽的內容
/*--------------------
function __PageShow();
----------------------*/
$row = $dsql->GetOne("Select id,addcon From `#@__channeltype` where isdefault='1' ");
//已經設置了默認發布表單
if (is_array($row) && $action != 'edit') {
    $addcon = $row['addcon'];
    if ($addcon == '') {
        $addcon = 'archives_add.php';
    }
    $channelid = $row['id'];
開發者ID:klr2003,項目名稱:sourceread,代碼行數:31,代碼來源:public_guide.php

示例10:

	$msg = "
	<table width='600' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td height='30'>文件格式:</td>
    <td>
    <input name='filetype' type='radio' value='0' checked='checked' />
      正常的模塊包
      <input type='radio' name='filetype' value='1' />
    經過 zip 壓縮的模塊包 </td>
  </tr>
  <tr>
    <td height='30'>已有模塊:</td>
    <td>
	<input name='delhas' type='checkbox' id='delhas' value='1' /> 強製刪除同名模塊(這可能導致已經安裝的模塊無法卸載)
	 </td>
  </tr>
  <tr>
    <td width='96' height='60'>請選擇文件:</td>
    <td width='504'>
	<input name='upfile' type='file' id='upfile' style='width:300px' />	</td>
  </tr>
 </table>
	";
	$win->AddMsgItem("<div style='padding-left:20px;line-height:150%'>$msg</div>");
	$winform = $win->GetWindow("okonly","");
	$win->Display();
	exit();
}

ClearAllLink();
?>
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:module_upload.php

示例11: dirname

/**
 * 導出采集規則
 * 統一轉換為unicode編碼然後再base64加密
 *
 * @version        $Id: co_export_corule.php 1 14:31 2010年7月12日Z tianya $
 * @package        DedeCMS.Administrator
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require dirname(__FILE__) . "/config.php";
CheckPurview('co_EditNote');
require_once DEDEINC . "/oxwindow.class.php";
$nid = ereg_replace('[^0-9]', '', $nid);
$row = $dsql->GetOne("Select * From `#@__co_note` where nid='{$nid}'");
$noteconfig = "{dede:listconfig}\r\n" . $row['listconfig'] . "\r\n{/dede:listconfig}\r\n\r\n";
$noteconfig .= "{dede:itemconfig}\r\n" . $row['itemconfig'] . "\r\n{/dede:itemconfig}";
if (empty($extype) || $extype == 'base64') {
    $noteconfig = "BASE64:" . base64_encode($noteconfig) . ":END";
    $exmsg = " &nbsp; <a href='co_export_corule.php?nid={$nid}&extype=text'>【導出為普通格式】</a> ";
} else {
    $exmsg = " &nbsp; <a href='co_export_corule.php?nid={$nid}&extype=base64'>【導出為Base64格式】</a> ";
}
$wintitle = "導出采集規則";
$wecome_info = "<a href='co_main.php'><u>采集節點管理</u></a>::導出采集規則 {$exmsg}";
$win = new OxWindow();
$win->Init();
$win->AddTitle("以下為規則 [{$row['notename']}] 的文本配置,你可以共享給你的朋友:");
$winform = $win->GetWindow("hand", "<textarea name='config' style='width:100%;height:450px;word-wrap: break-word;word-break:break-all;'>" . $noteconfig . "</textarea>");
$win->Display();
開發者ID:hensonvip,項目名稱:ymroad,代碼行數:30,代碼來源:co_export_corule.php

示例12: 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

示例13: fopen

 } else {
     if ($action == 'view') {
         require_once DEDEINC . "/oxwindow.class.php";
         $filetxt = '';
         if (!eregi('data(.*)common.inc.php', $filename)) {
             $fp = fopen($filename, 'r');
             $filetxt = fread($fp, filesize($filename));
             fclose($fp);
         }
         $filetxt = str_replace('textarea', '!textarea', $filetxt);
         $wintitle = "文件效驗::查看文件";
         $wecome_info = "<a href='sys_verifies.php'><u>文件效驗</u></a>::查看文件";
         $win = new OxWindow();
         $win->Init();
         $win->AddTitle("以下為文件 {$filename} 的內容,請檢查是否可疑:");
         $winform = $win->GetWindow("hand", "<textarea name='filetxt' style='width:100%;height:450px;word-wrap: break-word;word-break:break-all;'>" . $filetxt . "</textarea>");
         $win->Display();
         exit;
     } else {
         if ($action == 'manage') {
             $dsql->SetQuery("Select * from `#@__verifies` ");
             $dsql->Execute();
             $filelist = array();
             while ($row = $dsql->GetArray()) {
                 $filelist[] = $row;
             }
             include DEDEADMIN . '/templets/sys_verifies_manage.htm';
             exit;
         } else {
             if ($action == 'getfiles') {
                 if (!isset($refiles)) {
開發者ID:klr2003,項目名稱:sourceread,代碼行數:31,代碼來源:sys_verifies.php

示例14: 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

示例15: Date

\t\t\t\t\t\t</tr>
\t\t<tr>
\t\t\t<td height="30" colspan="2" style="color:#999"><strong>百度站內搜索</strong>百度站內搜索旨在幫助站長低成本地為網站用戶提供高質量的網站內搜索服務。使用百度站內搜索工具,您可以輕鬆打造網站專屬的搜索引擎,自定義個性化的展現樣式、功能模塊等,並通過搜索廣告獲得收入。</td>
\t\t</tr>
\t\t</tbody>
\t\t</table>
\t\t</td>
\t\t</tr>
\t</tbody>
</table>
當您看到這個頁麵的時候,則說明已經完成DedeCMS百度站內搜索模塊的安裝和站點綁定。<br />
您還需要完成以下步驟才能完成DedeCMS百度站內搜索功能的部署:<br/><br/>
1.<b>提交索引</b>:登錄係統後台,在【模塊】-【百度站內搜索】-【站內搜索】中提交站點索引,如果您是第一次使用,需要選擇【重新提交全量索引】,如果您已經提交過,每次添加完新內容後則直接使用【提交增量索引】功能;<br/><br/>
2.<b>部署代碼</b>:您在模板對應位置插入標簽 <font color='red'>{dede:baidusitemap/}</font>,或者可以直接複製下麵文本框中的代碼,粘貼到模板對應位置,重新更新HTML,即可查看百度搜索框。<br/><br/>
<textarea name="" rows="6" cols="80">
<script type="text/javascript">document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E%3Cscript charset="utf-8" src="http://znsv.baidu.com/customer_search/api/js?sid={$site_id}') + '&plate_url=' + (encodeURIComponent(window.location.href)) + '&t=' + (Math.ceil(new Date()/3600000)) + unescape('"%3E%3C/script%3E'));</script>
</textarea><br/><br/>
<script type="text/javascript">document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E%3Cscript charset="utf-8" src="http://znsv.baidu.com/customer_search/api/js?sid={$site_id}') + '&plate_url=' + (encodeURIComponent(window.location.href)) + '&t=' + (Math.ceil(new Date()/3600000)) + unescape('"%3E%3C/script%3E'));</script>
也可以登錄後台,在【模塊】-【百度站內搜索】-【搜索框管理】中根據自己需求創建符合站點樣式的搜索框。<br/><br/>
CopyRight 2010  DesDev Inc. All rights reserved Powered by <a target="_blank" href="http://www.dedecms.com/">DedeCMS</a> <a target="_blank" href="百度站內搜索模塊">百度站內搜索模塊</a>
</div>
EOT;
    $msg = "<div style=\"line-height:36px;\">{$msg}</div>";
    $wintitle = '百度站內搜索';
    $wecome_info = 'DedeCMS百度站內搜索模塊 》';
    $win = new OxWindow();
    $win->AddTitle($wintitle);
    $win->AddMsgItem($msg);
    $winform = $win->GetWindow('hand', '&nbsp;', false);
    $win->Display();
}
開發者ID:Miliup,項目名稱:miliofficeweb,代碼行數:31,代碼來源:baidusitemap.php


注:本文中的OxWindow::GetWindow方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。