本文整理匯總了PHP中OxWindow類的典型用法代碼示例。如果您正苦於以下問題:PHP OxWindow類的具體用法?PHP OxWindow怎麽用?PHP OxWindow使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了OxWindow類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: 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();
示例2: GetMkTime
if ($dopost == "saveedit") {
$starttime = GetMkTime($starttime);
$endtime = GetMkTime($endtime);
$query = "UPDATE `#@__mytag`\r\n SET\r\n typeid='{$typeid}',\r\n timeset='{$timeset}',\r\n starttime='{$starttime}',\r\n endtime='{$endtime}',\r\n normbody='{$normbody}',\r\n expbody='{$expbody}'\r\n WHERE aid='{$aid}' ";
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功更改一個自定義標記!", $ENV_GOBACK_URL);
exit;
} else {
if ($dopost == "getjs") {
require_once DEDEINC . "/oxwindow.class.php";
$jscode = "<script src='{$cfg_phpurl}/mytag_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 .= "<b>預覽:</b><iframe name='testfrm' frameborder='0' src='mytag_edit.php?aid={$aid}&dopost=testjs' id='testfrm' width='100%' height='250'></iframe>";
$wintitle = "宏標記定義-獲取JS";
$wecome_info = "<a href='mytag_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") {
echo "<body bgcolor='#ffffff'>";
echo "<script src='{$cfg_phpurl}/mytag_js.php?aid={$aid}&nocache=1' language='javascript'></script>";
exit;
}
}
}
}
$row = $dsql->GetOne("SELECT * FROM `#@__mytag` WHERE aid='{$aid}'");
示例3: ShowMsg
exit;
} else {
if ($dopost == "hide") {
$dsql->ExecuteNoneQuery("UPDATE #@__plus SET isshow=0 WHERE aid='{$aid}';");
ShowMsg("成功禁用一個插件,請刷新導航菜單!", "plus_main.php");
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'>模塊管理>></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;
}
示例4: 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 \r\n <a href='soft_edit.php?channelid={$channelid}&aid=" . $aid . "'><u>查看更改</u></a>\r\n \r\n <a href='{$artUrl}' target='_blank'><u>查看軟件</u></a>\r\n \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", " ", FALSE);
$win->Display();
}
}
示例5: 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', ' ', false);
$win->Display();
}
示例6: OxWindow
$win = new OxWindow();
$win->Init("file_manage_control.php", "js/blank.js", "POST");
$win->AddHidden("fmdo", $fmdo);
$win->AddHidden("activepath", $activepath);
$win->AddHidden("filename", $filename);
$win->AddTitle("新位置前麵不加'/'表示相對於當前位置,加'/'表示相對於根目錄。");
$win->AddItem("被移動文件:", $filename);
$win->AddItem("當前位置:", $activepath);
$win->AddItem("新位置:", "<input name='newpath' type='input' class='alltxt' id='newpath' size='40'>");
$winform = $win->GetWindow("ok");
$win->Display();
} else {
if ($fmdo == "del") {
$wintitle = " 文件管理";
$wecome_info = " 文件管理::刪除文件 [<a href='file_manage_main.php?activepath={$activepath}'>文件瀏覽器</a>]</a>";
$win = new OxWindow();
$win->Init("file_manage_control.php", "js/blank.js", "POST");
$win->AddHidden("fmdo", $fmdo);
$win->AddHidden("activepath", $activepath);
$win->AddHidden("filename", $filename);
if (@is_dir($cfg_basedir . $activepath . "/{$filename}")) {
$wmsg = "你確信要刪除目錄:{$filename} 嗎?";
} else {
$wmsg = "你確信要刪除文件:{$filename} 嗎?";
}
$win->AddTitle("刪除文件確認");
$win->AddMsgItem($wmsg, "50");
$winform = $win->GetWindow("ok");
$win->Display();
} else {
if ($fmdo == "edit") {
示例7: 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;
}
示例8: ShowMsg
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();
}
}
}
}
}
}
}
示例9: CheckPurview
}
} else {
if ($dopost == 'moveCatalog') {
CheckPurview('t_Move');
require_once DEDEINC . '/oxwindow.class.php';
require_once DEDEINC . '/typelink.class.php';
require_once DEDEINC . '/channelunit.func.php';
if (empty($nextjob)) {
$tl = new TypeLink($typeid);
$typename = $tl->TypeInfos['typename'];
$reid = $tl->TypeInfos['reid'];
$channelid = $tl->TypeInfos['channeltype'];
$typeOptions = $tl->GetOptionArray(0, 0, $channelid);
$wintitle = "移動欄目";
$wecome_info = "<a href='catalog_main.php'>欄目管理</a> >> 移動欄目";
$win = new OxWindow();
$win->Init('catalog_do.php', 'js/blank.js', 'POST');
$win->AddHidden('dopost', 'moveCatalog');
$win->AddHidden('typeid', $typeid);
$win->AddHidden('channelid', $channelid);
$win->AddHidden('nextjob', 'unitok');
$win->AddTitle("移動目錄時不會刪除原來已創建的列表,移動後需重新對欄目創建HTML。");
$win->AddItem('你選擇的欄目是:', "{$typename}({$typeid})");
$win->AddItem('你希望移動到那個欄目?', "<select name='movetype'>\r\n<option value='0'>移動為頂級欄目</option>\r\n{$typeOptions}\r\n</select>");
$win->AddItem('注意事項:', '不允許從父級移動到子級目錄,隻允許子級到更高級或同級或不同父級的情況。');
$winform = $win->GetWindow('ok');
$win->Display();
exit;
} else {
if ($typeid == $movetype) {
ShowMsg('移對對象和目標位置相同!', 'catalog_main.php');
示例10: stripslashes
$dopost = '';
}
if (empty($allsource)) {
$allsource = '';
} else {
$allsource = stripslashes($allsource);
}
$m_file = DEDEDATA . "/downmix.data.php";
//保存
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_string_mix.php', 'js/blank.js', 'POST');
$win->AddHidden('dopost', 'save');
$win->AddTitle("如果你要啟用字符串混淆來防采集,請在文檔模板需要的字段加上 function='RndString(@me)' 屬性,如:{dede:field name='body' function='RndString(@me)'/}。");
$win->AddMsgItem("<textarea name='allsource' id='allsource' style='width:100%;height:300px'>{$allsource}</textarea>");
$winform = $win->GetWindow('ok');
$win->Display();
示例11: dirname
require_once dirname(__FILE__) . "/config.php";
require_once DEDEINC . "/oxwindow.class.php";
if (empty($action)) {
$action = '';
}
//設置某頻道為默認發布
/*--------------------
function __SetDefault();
----------------------*/
if ($action == 'setdefault') {
CheckPurview('sys_Edit');
$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> >> 設置默認發布表單");
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> <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;
}
//以下為正常瀏覽的內容
示例12: 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();
}
示例13: dirname
<?php
require dirname(__FILE__) . "/config.php";
CheckPurview('co_EditNote');
if (empty($job)) {
$job = '';
}
if ($job == '') {
require_once DEDEINC . "/oxwindow.class.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);
$row = $dsql->GetOne("Select * From `#@__co_note` where nid='{$nid}' ");
$win->AddTitle("索引與基本信息配置:");
$win->AddMsgItem("<textarea name='listconfig' style='width:100%;height:200px'>{$row['listconfig']}</textarea>");
$win->AddTitle("字段配置:");
$win->AddMsgItem("<textarea name='itemconfig' style='width:100%;height:300px'>{$row['itemconfig']}</textarea>");
$winform = $win->GetWindow("ok");
$win->Display();
exit;
} else {
CheckPurview('co_EditNote');
$query = "update `#@__co_note` set listconfig='{$listconfig}',itemconfig='{$itemconfig}' where nid='{$nid}' ";
$rs = $dsql->ExecuteNoneQuery($query);
ShowMsg("成功修改一個規則!", "co_main.php");
exit;
}
示例14: 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 = " <a href='co_export_corule.php?nid={$nid}&extype=text'>【導出為普通格式】</a> ";
} else {
$exmsg = " <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();
示例15: DedeSql
$dsql = new DedeSql(false);
$dsql->SetQuery("Delete From #@__myad where aid='$aid'");
$dsql->ExecuteNoneQuery();
$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);