本文整理汇总了PHP中OxWindow::Init方法的典型用法代码示例。如果您正苦于以下问题:PHP OxWindow::Init方法的具体用法?PHP OxWindow::Init怎么用?PHP OxWindow::Init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OxWindow
的用法示例。
在下文中一共展示了OxWindow::Init方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: co_copy
}
}
//复制节点
/*
function co_copy()
*/
else if($dopost=="copy")
{
CheckPurview('co_AddNote');
if(empty($notename))
{
require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
$wintitle = "采集管理-复制节点";
$wecome_info = "<a href='co_main.php'>采集管理</a>::复制节点";
$win = new OxWindow();
$win->Init("co_do.php","js/blank.js","POST");
$win->AddHidden("dopost",$dopost);
$win->AddHidden("nid",$nid);
$win->AddTitle("请输入新节点名称:");
$win->AddItem("新节点名称:","<input type='text' name='notename' value='' size='30'>");
$winform = $win->GetWindow("ok");
$win->Display();
exit();
}
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From #@__conote where nid='$nid'");
$inQuery = "
INSERT INTO #@__conote(typeid,gathername,arcsource,language,lasttime,savetime,noteinfo)
VALUES('".$row['typeid']."', '$notename','".addslashes($row['arcsource'])."', '".addslashes($row['language'])."',
'0','".time()."', '".addslashes($row['noteinfo'])."');
";
示例2: OxWindow
continue;
}
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> >> 模块详情: {$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> </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';
示例3: explode
$qstrs = explode("`", $qstr);
$okaids = array();
foreach ($qstrs as $aid) {
if (!isset($okaids[$aid])) {
DelArc($aid, "OK", "", $recycle);
} else {
$okaids[$aid] = 1;
}
}
ShowMsg("成功删除指定的文档!", "recycling.php");
exit;
} else {
$wintitle = "文档管理-删除文档";
$wecome_info = "<a href='recycling.php'>文档管理</a>::删除文档";
$win = new OxWindow();
$win->Init("archives_do.php", "js/blank.js", "POST");
$win->AddHidden("fmdo", "yes");
$win->AddHidden("dopost", $dopost);
$win->AddHidden("qstr", $qstr);
$win->AddHidden("aid", $aid);
$win->AddHidden("recycle", $recycle);
$win->AddTitle("你确实要永久删除“ {$qstr} 和 {$aid} ”这些文档?");
$winform = $win->GetWindow("ok");
$win->Display();
}
} else {
if ($dopost == 'quickEdit') {
require_once DEDEADMIN . "/inc/inc_catalog_options.php";
AjaxHead();
$query = "SELECT ch.typename as channelname,ch.addtable,ar.membername as rankname,arc.*\n FROM `#@__archives` arc\n LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel\n LEFT JOIN `#@__arcrank` ar ON ar.rank=arc.arcrank WHERE arc.id='{$aid}' ";
$arcRow = $dsql->GetOne($query);
示例4: 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") {
if (!isset($backurl)) {
示例5: 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;
}
示例6: 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();
示例7: CheckPurview
@set_time_limit(0);
CheckPurview('c_Del');
$row = $dsql->GetOne("SELECT * FROM #@__member_model WHERE id='{$id}'");
if ($row['issystem'] == 1) {
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;
}
//删除表
示例8: 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();
示例9: 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();
示例10: ShowMsg
$dm->Clear();
ShowMsg("对不起,你上传的模块已经存在,<br />如果要覆盖请先删除原来版本或选择强制删除的选项!<br /><br /><a href='javascript:history.go(-1);'>>>返回重新上传>></a>","javascript:;");
exit();
}
@unlink($okfile);
copy($tmpfilename,$okfile);
@unlink($tmpfilename);
$dm->Clear();
ShowMsg("成功上传一个新的模块!","module_main.php?action=view&hash={$infos['hash']}");
exit();
}
}
else
{
$win = new OxWindow();
$win->Init("module_upload.php","js/blank.js","data");
$win->mainTitle = "模块管理";
$win->AddTitle("<a href='module_main.php'>模块管理</a> >> 上传模块");
$win->AddHidden("action",'upload');
$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>
示例11: IN
$dsql->ExecuteNoneQuery("DELETE FROM `#@__feedback` WHERE mid IN (" . str_replace("`", ",", $id) . ") ");
$dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET mid='0' WHERE mid IN (" . str_replace("`", ",", $id) . ")");
} else {
ShowMsg("无法删除此会员,如果这个会员是管理员关连的ID,<br />必须先删除这个管理员才能删除此帐号!", $ENV_GOBACK_URL, 0, 3000);
exit;
}
}
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");
示例12: OxWindow
</tr>
<tr>
<td width="16%" height="30">网站名称:</td>
<td width="84%" style="text-align:left;"><input name="isv_name" type="text" id="isv_name" size="16" style="width:200px" value="{$cfg_webname}" /><span style="color:#999"> 为方便您管理站点评论,建议更改站点名称</span></td>
</tr>
<tr>
<td width="16%" height="30">网站地址:</td>
<td width="84%" style="text-align:left;"><input name="url" type="text" id="url" size="16" style="width:200px" value="{$cfg_basehost}" /><span style="color:#999"> 例如:http://www.dedecms.com</span></td>
</tr>
</tbody>
</table>
EOT;
$wintitle = '注册畅言帐号:';
$wecome_info = '<a href="?">畅言评论模块</a> 》注册帐号';
$win = new OxWindow();
$win->Init('?', 'js/blank.js', 'POST');
$win->AddHidden('dopost', 'doreg');
$win->AddHidden('nocheck', 'yes');
$win->AddTitle($wintitle);
$win->AddMsgItem($msg);
$winform = $win->GetWindow('ok', ' ', false);
$win->Display();
} elseif ($dopost == 'doreg') {
$user = empty($user) ? '' : $user;
$pwd = empty($pwd) ? '' : $pwd;
$repwd = empty($repwd) ? '' : $repwd;
$isv_name = empty($isv_name) ? '' : $isv_name;
$url = empty($url) ? '' : $url;
if (!preg_match("#^http:\\/\\/[A-Za-z0-9]+\\.[A-Za-z0-9]+[\\/=\\?%\\-&_~`@[\\]\\':+!]*([^<>\"])*\$#", $url)) {
ShowMsg("请填写正确的网址格式", -1);
exit;
示例13: addslashes
$title = '无标题';
}
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> <a href='guestbook.php' style='font-size:14px;font-weight:bold'><u>我已经知道了,点击此返回>></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';
}
示例14: 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();
}
示例15: 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();