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


PHP OxWindow::AddTitle方法代碼示例

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


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

示例1: explode

        exit;
    }
    if ($fmdo == 'yes') {
        $id = explode("`", $id);
        foreach ($id as $var) {
            $query = "DELETE FROM `#@__erradd` WHERE `id` = '{$var}'";
            $dsql->ExecuteNoneQuery($query);
        }
        ShowMsg("成功刪除指定的文檔!", "erraddsave.php");
        exit;
    } else {
        require_once DEDEINC . "/oxwindow.class.php";
        $wintitle = "刪除";
        $wecome_info = "<a href='erraddsave.php'>錯誤管理</a>::刪除錯誤";
        $win = new OxWindow();
        $win->Init("erraddsave.php", "js/blank.js", "POST");
        $win->AddHidden("fmdo", "yes");
        $win->AddHidden("dopost", $dopost);
        $win->AddHidden("id", $id);
        $win->AddTitle("你確實要刪除“ {$id} ”這些錯誤提示?");
        $winform = $win->GetWindow("ok");
        $win->Display();
        exit;
    }
    exit;
}
$sql = "SELECT * FROM `#@__erradd`";
$dlist = new DataListCP();
$dlist->SetTemplet(DEDEADMIN . "/templets/erradd.htm");
$dlist->SetSource($sql);
$dlist->display();
開發者ID:iabing,項目名稱:mzzyc,代碼行數:31,代碼來源:erraddsave.php

示例2: OxWindow

UpTags($dsql,$tag,$ID,0,$typeid,$arcrank);


//---------------------------------
//返回成功信息
//----------------------------------

$msg = "
  請選擇你的後續操作:
<a href='../archives_do.php?aid=".$ID."&dopost=editArchives&channelid=-2'><u>查看更改</u></a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank'><u>預覽文檔</u></a>
&nbsp;&nbsp;
<a href='../catalog_do.php?cid=$typeid&dopost=listArchives'><u>管理信息</u></a>
&nbsp;&nbsp;
<a href='../catalog_main.php'><u>網站欄目管理</u></a>
";

$wintitle = "成功更改信息!";
$wecome_info = "文章管理::更改信息";
$win = new OxWindow();
$win->AddTitle("成功更改信息:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand","&nbsp;",false);
$win->Display();

ClearAllLink();
?>


開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:28,代碼來源:info_edit_action.php

示例3: OxWindow

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

示例4: BookView

require_once(dirname(__FILE__).'/../../include/inc_arcbook_view.php');
$bv = new BookView($bookid,'book');
$artUrl = $bv->MakeHtml();
$bv->Close();

//---------------------------------
//返回成功信息
//----------------------------------
$msg = "
  請選擇你的後續操作:
<a href='../story_add_photo.php?bookid={$bookid}'><u>繼續發布</u></a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank'><u>預覽漫畫</u></a>
&nbsp;&nbsp;
<a href='$artcontentUrl' target='_blank'><u>預覽內容</u></a>
&nbsp;&nbsp;
<a href='../story_list_content.php?bookid={$bookid}'><u>本書所有內容</u></a>
&nbsp;&nbsp;
<a href='../story_books.php'><u>管理所有圖書</u></a>
";

$wintitle = "成功發布圖片!";
$wecome_info = "連載管理::發布圖片";
$win = new OxWindow();
$win->AddTitle("成功發布圖片:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand","&nbsp;",false);
$win->Display();

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

示例5: ShowMsg

if (!$dsql->ExecuteNoneQuery($inQuery)) {
    ShowMsg("把數據保存到數據庫時出錯,請檢查!" . str_repolace("'", "`", $dsql->GetError() . $inQuery), "-1");
    $dsql->Close();
    exit;
}
$arcID = $cid;
//生成HTML
//---------------------------------
//$artUrl = MakeArt($arcID,true);
if (empty($artcontentUrl)) {
    $artcontentUrl = "";
}
if ($artcontentUrl == "") {
    $artcontentUrl = $cfg_mainsite . $cfg_cmspath . "/book/show-photo.php?id={$arcID}&bookid={$bookid}&chapterid={$chapterid}";
}
require_once DEDEROOT . '/book/include/story.view.class.php';
$bv = new BookView($bookid, 'book');
$artUrl = $bv->MakeHtml();
$bv->Close();
//---------------------------------
//返回成功信息
//----------------------------------
$msg = "\n  請選擇你的後續操作:\n<a href='story_photo_edit.php?cid={$cid}'><u>繼續修改</u></a>\n&nbsp;&nbsp;\n<a href='{$artUrl}' target='_blank'><u>預覽漫畫</u></a>\n&nbsp;&nbsp;\n<a href='{$artcontentUrl}' target='_blank'><u>預覽內容</u></a>\n&nbsp;&nbsp;\n<a href='story_list_content.php?bookid={$bookid}'><u>管理所有內容</u></a>\n&nbsp;&nbsp;\n<a href='story_books.php'><u>管理所有圖書</u></a>\n";
$wintitle = "成功修改內容!";
$wecome_info = "連載管理::修改漫畫內容";
$win = new OxWindow();
$win->AddTitle("成功發布漫畫:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", "&nbsp;", false);
$win->Display();
//ClearAllLink();
開發者ID:hensonvip,項目名稱:ymroad,代碼行數:31,代碼來源:story_edit_photo_action.php

示例6: OxWindow

         if ($v['type'] == 'dir') {
             $v['type'] = '目錄';
         } 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)) {
開發者ID:stonelf,項目名稱:mcgmh,代碼行數:31,代碼來源:module_main.php

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

示例8: 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!');
            }
        }
        $arcUrl = MakeArt($id, TRUE, TRUE, $isremote);
        if ($arcUrl == "") {
            $arcUrl = $cfg_phpurl . "/view.php?aid={$id}";
        }
        ClearMyAddon($id, $title);
        //返回成功信息
        $msg = "\r\n      請選擇你的後續操作:\r\n    <a href='soft_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='{$arcUrl}' 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    <a href='catalog_main.php'><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:wshudong,項目名稱:hbypsy,代碼行數:31,代碼來源:soft_edit.php

示例9: ShowMsg

     ShowMsg("係統模型,禁止刪除!", "-1");
     exit;
 }
 if (empty($job)) {
     $job = "";
 }
 //確認提示
 if ($job == "") {
     $wintitle = "會員模型管理-刪除會員模型";
     $wecome_info = "<a href='member_model_main.php'>會員模型管理</a>::刪除會員模型";
     $win = new OxWindow();
     $win->Init("member_model_edit.php", "js/blank.js", "POST");
     $win->AddHidden("job", "yes");
     $win->AddHidden("dopost", $dopost);
     $win->AddHidden("id", $id);
     $win->AddTitle("!將刪除所有與該會員模型相關的文件和數據<br />你確實要刪除 \"" . $row['name'] . "\" 這個會員模型?");
     $winform = $win->GetWindow("ok");
     $win->Display();
     exit;
 } else {
     if ($job == "yes") {
         $row = $dsql->GetOne("SELECT `table` FROM `#@__member_model` WHERE id='{$id}'", MYSQL_ASSOC);
         if (!is_array($row)) {
             ShowMsg("你所指定的會員模型信息不存在!", "-1");
             exit;
         }
         //刪除表
         $dsql->ExecuteNoneQuery("DROP TABLE IF EXISTS `{$row['table']}`;");
         //刪除頻道配置信息
         $dsql->ExecuteNoneQuery("DELETE FROM `#@__member_model` WHERE id='{$id}'");
         UpDateMemberModCache();
開發者ID:suibber,項目名稱:jb,代碼行數:31,代碼來源:member_model_edit.php

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

示例11: OxWindow

<?php 
require(dirname(__FILE__)."/config.php");
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)){
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:co_edit_text.php

示例12: dirname

 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require dirname(__FILE__) . "/config.php";
CheckPurview('co_AddNote');
if (empty($job)) {
    $job = '';
}
if ($job == '') {
    require_once DEDEINC . "/../include/oxwindow.class.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("請在下麵輸入你要導入的文本配置:(建議用base64編碼[支持不編碼的規則,但不兼容舊版規則])");
    $win->AddMsgItem("<textarea name='notes' style='width:100%;height:300px'></textarea>");
    $winform = $win->GetWindow("ok");
    $win->Display();
    exit;
} else {
    CheckPurview('co_AddNote');
    require_once DEDEINC . "/dedetag.class.php";
    $notes = trim($notes);
    //對Base64格式的規則進行解碼
    if (ereg('^BASE64:', $notes)) {
        if (!ereg(':END$', $notes)) {
            ShowMsg('該規則不合法,Base64格式的采集規則為:BASE64:base64編碼後的配置:END !', '-1');
            exit;
        }
        $notess = explode(':', $notes);
開發者ID:iabing,項目名稱:mzzyc,代碼行數:31,代碼來源:co_get_corule.php

示例13: array

                        }
                    }
                }
                //導入單表模型微數據
                $dsql->SetQuery("SELECT id,addtable FROM `#@__channeltype` WHERE id < -1 ");
                $dsql->Execute();
                $doarray = array();
                while ($row = $dsql->GetArray()) {
                    $tb = str_replace('#@__', $cfg_dbprefix, $row['addtable']);
                    if (empty($tb) || isset($doarray[$tb])) {
                        continue;
                    } else {
                        $sql = "INSERT INTO `#@__arctiny`(id, typeid, typeid2, arcrank, channel, senddate, sortrank, mid)  \n                    SELECT aid, typeid, 0, arcrank, channel, senddate, 0, mid FROM `{$tb}` ";
                        $rs = $dsql->ExecuteNoneQuery($sql);
                        $doarray[$tb] = 1;
                    }
                }
                $win = new OxWindow();
                $win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data' ");
                $win->mainTitle = "係統修複工具";
                $wecome_info = "<a href='sys_repair.php'>係統錯誤修複工具</a> &gt;&gt; 高級綜合檢測修複";
                $win->AddTitle('本工具用於檢測和修複你的係統可能存在的錯誤');
                $msg = "\n    <table width='98%' border='0' cellspacing='0' cellpadding='0' align='center'>\n  <tr>\n    <td height='250' valign='top'>\n    完成所有修複操作,移除錯誤記錄 {$errnum} 條!\n    <hr />\n    <br />\n    <a href='index_body.php' style='font-size:14px;'><b>完成修正或無錯誤返回&gt;&gt;</b></a>\n    </td>\n  </tr>\n </table>\n    ";
                $win->AddMsgItem("<div style='padding-left:20px;line-height:150%'>{$msg}</div>");
                $winform = $win->GetWindow('hand', '');
                $win->Display();
                exit;
            }
        }
    }
}
開發者ID:playfay,項目名稱:FlowDedeCmsBackstageTemplets,代碼行數:31,代碼來源:sys_repair.php

示例14: AnalyseHtmlBody

                    if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') {
                        ${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]);
                    }
                    ${$vs[0]} = GetFieldValueA(${$vs[0]}, $vs[1], $aid);
                    $inadd_f .= ',`' . $vs[0] . "` ='" . ${$vs[0]} . "' ";
                }
            }
        }
        if ($addtable != '') {
            $upQuery = "Update `{$addtable}` set `title`='{$title}',`typeid`='{$typeid}',`arcrank`='{$arcrank}',litpic='{$litpic}',userip='{$userip}'{$inadd_f} where aid='{$aid}' ";
            if (!$dsql->ExecuteNoneQuery($upQuery)) {
                ShowMsg("更新附加表 `{$addtable}`  時出錯,請聯係管理員!", "javascript:;");
                exit;
            }
        }
        UpIndexKey($aid, 0, $typeid, $sortrank, '');
        $artUrl = MakeArt($aid, true);
        if ($artUrl == '') {
            $artUrl = $cfg_phpurl . "/view.php?aid={$aid}";
        }
        //返回成功信息
        $msg = "  請選擇你的後續操作:\r\n\t\t<a href='archives_sg_add.php?cid={$typeid}'><u>發布新內容</u></a>\r\n\t\t&nbsp;&nbsp;\r\n\t\t<a href='archives_do.php?channelid={$channelid}&aid=" . $aid . "&dopost=edit'><u>查看更改</u></a>\r\n\t\t&nbsp;&nbsp;\r\n\t\t<a href='{$artUrl}' target='_blank'><u>查看內容</u></a>\r\n\t\t&nbsp;&nbsp;\r\n\t\t<a href='content_sg_list.php?channelid={$channelid}'><u>管理內容</u></a>\r\n\t\t";
        $wintitle = "成功更改內容!";
        $wecome_info = "內容管理::更改內容";
        $win = new OxWindow();
        $win->AddTitle("成功更改內容:");
        $win->AddMsgItem($msg);
        $winform = $win->GetWindow("hand", "&nbsp;", false);
        $win->Display();
    }
}
開發者ID:klr2003,項目名稱:sourceread,代碼行數:31,代碼來源:archives_sg_edit.php

示例15: CheckPurview

 @set_time_limit(0);
 CheckPurview('c_Del');
 $row = $dsql->GetOne("SELECT * FROM #@__diyforms WHERE diyid='{$diyid}'");
 if (empty($job)) {
     $job = "";
 }
 //確認提示
 if ($job == "") {
     $wintitle = "自定義表單管理-刪除自定義表單";
     $wecome_info = "<a href='diy_main.php'>自定義表單管理</a>::刪除自定義表單";
     $win = new OxWindow();
     $win->Init("diy_edit.php", "js/blank.js", "POST");
     $win->AddHidden("job", "yes");
     $win->AddHidden("dopost", $dopost);
     $win->AddHidden("diyid", $diyid);
     $win->AddTitle("!將刪除所有與該自定義表單相關的文件和數據<br />你確實要刪除 \"" . $row['name'] . "\" 這個自定義表單?");
     $winform = $win->GetWindow("ok");
     $win->Display();
     exit;
 } else {
     if ($job == "yes") {
         $row = $dsql->GetOne("SELECT `table` FROM `#@__diyforms` WHERE diyid='{$diyid}'", MYSQL_ASSOC);
         if (!is_array($row)) {
             ShowMsg("你所指定的自定義表單信息不存在!", "-1");
             exit;
         }
         //刪除表
         $dsql->ExecuteNoneQuery("DROP TABLE IF EXISTS `{$row['table']}`;");
         //刪除頻道配置信息
         $dsql->ExecuteNoneQuery("DELETE FROM `#@__diyforms` WHERE diyid='{$diyid}'");
         ShowMsg("成功刪除一個自定義表單!", "diy_main.php");
開發者ID:suibber,項目名稱:jb,代碼行數:31,代碼來源:diy_edit.php


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