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


PHP OxWindow::AddMsgItem方法代碼示例

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


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

示例1: stripslashes

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

示例2: OxWindow

<?php 
require(dirname(__FILE__)."/config.php");
CheckPurview('co_AddNote');
if(empty($job)) $job="";
if($job=="")
{
     require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
     $wintitle = "導入采集規則";
	   $wecome_info = "<a href='co_main.php'><u>采集點管理</u></a>::導入采集規則";
	   $win = new OxWindow();
	   $win->Init("co_get_corule.php","js/blank.js","POST");
	   $win->AddHidden("job","yes");
	   $win->AddTitle("請在下麵輸入你要導入的文本配置:");
	   $win->AddMsgItem("<textarea name='notes' style='width:100%;height:300px'></textarea>");
	   $winform = $win->GetWindow("ok");
	   $win->Display();
     exit();
}
else
{
   	  CheckPurview('co_AddNote');
   	  require_once(dirname(__FILE__)."/../include/pub_dedetag.php");
   	  $dtp = new DedeTagParse();
   	  $dbnotes = $notes;
   	  $notes = stripslashes($notes);
      $dtp->LoadString($notes);
   	  if(!is_array($dtp->CTags))
      {
	      ShowMsg("該規則不合法,無法保存!","-1");
	      $dsql->Close();
	      exit();
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:co_get_corule.php

示例3: OxWindow

 } else {
     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");
開發者ID:hensonvip,項目名稱:ymroad,代碼行數:31,代碼來源:plus_edit.php

示例4: stripslashes

 /**
  * caijixia for dedecms
  * @version        $Id: cjx.class.php 112 2013-05-28 01:22:57Z qinjinpeng $
  * @copyright Copyright (c) 2011,caijixia for dedecms,caijixia.com.
  * @license   This is NOT a freeware, use is subject to license terms
  *
  * @param     NULL
  * @return    NULL
 */
 function ac_testregx()
 {
     global $cfg_soft_lang;
     $data = stripslashes($this->GV('data'));
     if ($cfg_soft_lang != 'utf-8') {
         $data = utf82gb($data);
     }
     require_once DEDEINC . '/dedetag.class.php';
     $this->dtp = new DedeTagParse();
     $this->dtp->LoadString($data);
     foreach ($this->dtp->CTags as $ctag) {
         $itemName = $ctag->TagName;
         ${$itemName} = trim($ctag->InnerText);
     }
     if (empty($list) || empty($page) || $list == 'http://' || $page == 'http://') {
         exit('規則錯誤');
     }
     $listarr = array();
     if (preg_match("/\\[([0-9]*-[0-9]*)\\]/", $list, $out)) {
         list($min, $max) = explode('-', $out[1]);
         if ($max - $min > 10) {
             $max = $min + 9;
         }
         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)) {
//.........這裏部分代碼省略.........
開發者ID:soonfine,項目名稱:leread,代碼行數:101,代碼來源:cjx.class.php

示例5: substr

 }
 if ($userok != "yes") {
     $randcode = mt_rand(10000, 99999);
     $safecode = substr(md5($cfg_cookie_encode . $randcode), 0, 24);
     require_once DEDEINC . "/oxwindow.class.php";
     $wintitle = "刪除用戶";
     $wecome_info = "<a href='sys_admin_user.php'>係統帳號管理</a>::刪除用戶";
     $win = new OxWindow();
     $win->Init("sys_admin_user_edit.php", "js/blank.js", "POST");
     $win->AddHidden("dopost", $dopost);
     $win->AddHidden("userok", "yes");
     $win->AddHidden("randcode", $randcode);
     $win->AddHidden("safecode", $safecode);
     $win->AddHidden("id", $id);
     $win->AddTitle("係統警告!");
     $win->AddMsgItem("你確信要刪除用戶:{$userid} 嗎?", "50");
     $win->AddMsgItem("安全驗證串:<input name='safecode' type='text' id='safecode' size='16' style='width:200px' />&nbsp;(複製本代碼: <font color='red'>{$safecode}</font> )", "30");
     $winform = $win->GetWindow("ok");
     $win->Display();
     exit;
 }
 $safecodeok = substr(md5($cfg_cookie_encode . $randcode), 0, 24);
 if ($safecodeok != $safecode) {
     ShowMsg("請填寫正確的安全驗證串!", "sys_admin_user.php");
     exit;
 }
 //不能刪除id為1的創建人帳號,不能刪除自己
 $rs = $dsql->ExecuteNoneQuery2("DELETE FROM `#@__admin` WHERE id='{$id}' AND id<>1 AND id<>'" . $cuserLogin->getUserID() . "' ");
 if ($rs > 0) {
     //更新前台用戶信息
     $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET matt='0' WHERE mid='{$id}' LIMIT 1");
開發者ID:puppylsy,項目名稱:cms,代碼行數:31,代碼來源:sys_admin_user_edit.php

示例6: OxWindow

         } else {
             $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';
         }
開發者ID:stonelf,項目名稱:mcgmh,代碼行數:31,代碼來源:module_main.php

示例7: ShowMsg

         ShowMsg("成功刪除這些會員!", $ENV_GOBACK_URL);
         exit;
     }
     $randcode = mt_rand(10000, 99999);
     $safecode = substr(md5($cfg_cookie_encode . $randcode), 0, 24);
     $wintitle = "會員管理-刪除會員";
     $wecome_info = "<a href='" . $ENV_GOBACK_URL . "'>會員管理</a>::刪除會員";
     $win = new OxWindow();
     $win->Init("member_do.php", "js/blank.js", "POST");
     $win->AddHidden("fmdo", "yes");
     $win->AddHidden("dopost", $dopost);
     $win->AddHidden("id", $id);
     $win->AddHidden("randcode", $randcode);
     $win->AddHidden("safecode", $safecode);
     $win->AddTitle("你確實要刪除(ID:" . $id . ")這個會員?");
     $win->AddMsgItem(" 安全驗證串:<input name='safecode' type='text' id='safecode' size='16' style='width:200px' /> (複製本代碼: <font color='red'>{$safecode}</font>)", "30");
     $winform = $win->GetWindow("ok");
     $win->Display();
 } else {
     if ($dopost == "recommend") {
         CheckPurview('member_Edit');
         $id = preg_replace("#[^0-9]#", "", $id);
         if ($matt == 0) {
             $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET matt=1 WHERE mid='{$id}' AND matt<>10 LIMIT 1");
             ShowMsg("成功設置一個會員推薦!", $ENV_GOBACK_URL);
             exit;
         } else {
             $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET matt=0 WHERE mid='{$id}' AND matt<>10 LIMIT 1");
             ShowMsg("成功取消一個會員推薦!", $ENV_GOBACK_URL);
             exit;
         }
開發者ID:hensonvip,項目名稱:ymroad,代碼行數:31,代碼來源:member_do.php

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

示例9: addslashes

     if ($reid != 0) {
         $row = $dsql->GetOne("SELECT msg FROM `#@__guestbook` WHERE id='{$reid}' ");
         $msg = "<div class=\\'rebox\\'>" . addslashes($row['msg']) . "</div>\n" . $msg;
     }
     $query = "INSERT INTO `#@__guestbook`(title,tid,mid,uname,email,homepage,qq,face,msg,ip,dtime,ischeck)\r\n                  VALUES ('{$title}','{$tid}','{$g_mid}','{$uname}','{$email}','{$homepage}','{$qq}','{$img}','{$msg}','{$ip}','{$dtime}','{$needCheck}'); ";
     $dsql->ExecuteNoneQuery($query);
     $gid = $dsql->GetLastID();
     if ($needCheck == 1) {
         require_once DEDEINC . "/oxwindow.class.php";
         $msg = "\r\n        <font color='red'><b>成功發送或回複留言!</b></font> &nbsp; <a href='guestbook.php' style='font-size:14px;font-weight:bold'><u>我已經知道了,點擊此返回&gt;&gt;</u></a>";
         $wintitle = "留言發布成功提示";
         $wecome_info = "留言發布成功:";
         $win = new OxWindow();
         $win->Init("", "js/blank.js", "post");
         $win->AddTitle("提示:");
         $win->AddMsgItem("<div style='padding:20px;line-height:300%;font-size:14px'>{$msg}</div>");
         $winform = $win->GetWindow("hand");
         $win->Display();
     } else {
         ShowMsg('成功發送一則留言,但需審核後才能顯示!', 'guestbook.php', 0, 3000);
     }
     exit;
 } else {
     setcookie('GUEST_BOOK_POS', GetCurUrl(), time() + 3600, '/');
     if ($g_isadmin) {
         $sql = 'SELECT * FROM `#@__guestbook` ORDER BY id DESC';
     } else {
         $sql = 'SELECT * FROM `#@__guestbook` WHERE ischeck=1 ORDER BY id DESC';
     }
     $dlist = new DataListCP();
     $dlist->pageSize = 10;
開發者ID:JaniseSheng,項目名稱:wwwroot,代碼行數:31,代碼來源:guestbook.php

示例10: __EditUser

		$dsql->SetQuery("update #@__member set money=money+$money where ID='$ID'");
		$dsql->ExecuteNoneQuery();
		$dsql->Close();
		ShowMsg("成功給一個會員充值!",$ENV_GOBACK_URL);
		exit();
	}
	if(empty($upmoney)) $upmoney = 500;
	$wintitle = "會員管理-會員充值";
	$wecome_info = "<a href='".$ENV_GOBACK_URL."'>會員管理</a>::會員充值";
	$win = new OxWindow();
	$win->Init("member_do.php","js/blank.js","POST");
	$win->AddHidden("fmdo","yes");
	$win->AddHidden("dopost",$dopost);
	$win->AddHidden("ID",$ID);
	$win->AddTitle("會員充值:");
	$win->AddMsgItem("請輸入充值點數:<input type='text' name='money' size='10' value='$upmoney'>",60);
	$winform = $win->GetWindow("ok");
	$win->Display();
}
/*----------------
function __EditUser()
更改會員
----------------*/
else if($dopost=="edituser")
{
	CheckPurview('member_Edit');
	$dsql = new DedeSql(false);
	$uptime =  GetMkTime($uptime);
	$edpwd = '';
	if($newpwd!=''){
		$newpwd = GetEncodePwd($newpwd);
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:member_do.php

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

示例12: ShowMsg

         ShowMsg("成功刪除這些會員!", $ENV_GOBACK_URL);
         exit;
     }
     $randcode = mt_rand(10000, 99999);
     $safecode = substr(md5($cfg_cookie_encode . $randcode), 0, 24);
     $wintitle = "會員管理-刪除會員";
     $wecome_info = "<a href='" . $ENV_GOBACK_URL . "'>會員管理</a>::刪除會員";
     $win = new OxWindow();
     $win->Init("member_do.php", "js/blank.js", "POST");
     $win->AddHidden("fmdo", "yes");
     $win->AddHidden("dopost", $dopost);
     $win->AddHidden("id", $id);
     $win->AddHidden("randcode", $randcode);
     $win->AddHidden("safecode", $safecode);
     $win->AddTitle("你確實要刪除(ID:" . $id . ")這個會員?");
     $win->AddMsgItem("<div style='display: none;'> 安全驗證串:<input name='safecode' type='text' id='safecode' size='16' style='width:200px' value='{$safecode}' /> (複製本代碼: <font color='red'>{$safecode}</font>)</div>", "30");
     $winform = $win->GetWindow("ok");
     $win->Display();
 } else {
     if ($dopost == "recommend") {
         CheckPurview('member_Edit');
         $id = preg_replace("#[^0-9]#", "", $id);
         if ($matt == 0) {
             $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET matt=1 WHERE mid='{$id}' AND matt<>10 LIMIT 1");
             ShowMsg("成功設置一個會員推薦!", $ENV_GOBACK_URL);
             exit;
         } else {
             $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET matt=0 WHERE mid='{$id}' AND matt<>10 LIMIT 1");
             ShowMsg("成功取消一個會員推薦!", $ENV_GOBACK_URL);
             exit;
         }
開發者ID:puppylsy,項目名稱:cms,代碼行數:31,代碼來源:member_do.php

示例13: if

			@unlink($upfile);
			$j++;
		}
	}
	ShowMsg("成功上傳 $j 個文件到: $activepath","file_manage_main.php?activepath=$activepath");
	exit();
}
//空間檢查
else if($fmdo=="space")
{
	if($activepath=="") $ecpath = "所有目錄";
	else $ecpath = $activepath;	
	$titleinfo = "目錄 <a href='file_manage_main.php?activepath=$activepath'><b><u>$ecpath</u></b></a> 空間使用狀況:<br/>";
	$wintitle = "文件管理";
	$wecome_info = "文件管理::空間大小檢查 [<a href='file_manage_main.php?activepath=$activepath'>文件瀏覽器</a>]</a>";
	$activepath=$cfg_basedir.$activepath;
	$space=new SpaceUse;
	$space->checksize($activepath);
	$total=$space->totalsize;
	$totalkb=$space->setkb($total);
	$totalmb=$space->setmb($total);
	$win = new OxWindow();
	$win->Init("","js/blank.js","POST");
	$win->AddTitle($titleinfo);
	$win->AddMsgItem("  $totalmb M<br/>  $totalkb KB<br/>  $total 字節");
	$winform = $win->GetWindow("");
	$win->Display();
}

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

示例14: OxWindow

CheckPurview('co_EditNote');
if(empty($job)) $job="";
if($job=="")
{
     require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
     $wintitle = "更改采集規則";
	   $wecome_info = "<a href='co_main.php'><u>采集點管理</u></a>::更改采集規則";
	   $win = new OxWindow();
	   $win->Init("co_edit_text.php","js/blank.js","POST");
	   $win->AddHidden("job","yes");
	   $win->AddHidden("nid",$nid);
	   $win->AddTitle("文本配置專家更改模式:[<a href='co_edit.php?nid={$nid}'>使用可視化修改模式</a>]");
	   $dsql = new DedeSql(false);
	   $row = $dsql->GetOne("Select * From #@__conote where nid='$nid' ");
	   $dsql->Close();
	   $win->AddMsgItem("<textarea name='notes' style='width:100%;height:500px' rows='20'>{$row['noteinfo']}</textarea>");
	   $winform = $win->GetWindow("ok");
	   $win->Display();
     exit();
}
else
{
   	  CheckPurview('co_EditNote');
   	  require_once(dirname(__FILE__)."/../include/pub_dedetag.php");
   	  $dtp = new DedeTagParse();
   	  $dbnotes = $notes;
   	  $notes = stripslashes($notes);
      $dtp->LoadString($notes);
   	  if(!is_array($dtp->CTags)){
	      ShowMsg("該規則不合法,無法保存!","-1");
	      $dsql->Close();
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:co_edit_text.php

示例15: stripslashes

    $dopost = '';
}
if (empty($allwriter)) {
    $allwriter = '';
} else {
    $allwriter = stripslashes($allwriter);
}
$m_file = DEDEDATA . "/admin/writer.txt";
//保存
if ($dopost == "save") {
    $fp = fopen($m_file, 'w');
    flock($fp, 3);
    fwrite($fp, $allwriter);
    fclose($fp);
    echo "<script>alert('Save OK!');</script>";
}
//讀出
if (empty($allwriter) && filesize($m_file) > 0) {
    $fp = fopen($m_file, 'r');
    $allwriter = fread($fp, filesize($m_file));
    fclose($fp);
}
$wintitle = "文章作者管理";
$wecome_info = "文章作者管理";
$win = new OxWindow();
$win->Init('article_writer_edit.php', 'js/blank.js', 'POST');
$win->AddHidden('dopost', 'save');
$win->AddTitle("把作者姓名用半角逗號“,”分開:");
$win->AddMsgItem("<textarea name='allwriter' id='allwriter' style='width:100%;height:300px'>{$allwriter}</textarea>");
$winform = $win->GetWindow('ok');
$win->Display();
開發者ID:hensonvip,項目名稱:ymroad,代碼行數:31,代碼來源:article_writer_edit.php


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