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


PHP OxWindow::AddHidden方法代碼示例

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


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

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

示例2: OxWindow

     $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 = "&nbsp;文件管理";
         $wecome_info = "&nbsp;文件管理::刪除文件 [<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)) {
                 $backurl = "";
開發者ID:playfay,項目名稱:FlowDedeCmsBackstageTemplets,代碼行數:31,代碼來源:file_manage_view.php

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

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

示例5: IsParent

    UpDateCatCache();
    ShowMsg('成功移動目錄!', 'catalog_main.php');
    exit;
}
function IsParent($myid, $topid, $dsql)
{
    $row = $dsql->GetOne("select id,reid,topid from #@__arctype where topid='{$myid}' or id='{$myid}'");
    if ($row['reid'] == $topid) {
        return true;
    } else {
        if ($row['reid'] == 0) {
            return false;
        } else {
            return IsParent($row['reid'], $topid, $dsql);
        }
    }
}
$tl = new TypeLink($typeid);
$typeOptions = $tl->GetOptionArray(0, 0, $channelid);
$wintitle = "移動欄目";
$wecome_info = "<a href='catalog_main.php'>欄目管理</a> &gt;&gt; 移動欄目";
$win = new OxWindow();
$win->Init('catalog_move.php', 'js/blank.js', 'POST');
$win->AddHidden('typeid', $typeid);
$win->AddHidden('dopost', 'moveok');
$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();
開發者ID:klr2003,項目名稱:sourceread,代碼行數:31,代碼來源:catalog_move.php

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

示例7: CheckPurview

 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> &gt;&gt; 移動欄目";
         $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');
             exit;
         }
開發者ID:hensonvip,項目名稱:ymroad,代碼行數:31,代碼來源:catalog_do.php

示例8: array

         $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);
         $divname = 'quickEdit';
開發者ID:playfay,項目名稱:FlowDedeCmsBackstageTemplets,代碼行數:31,代碼來源:archives_do.php

示例9: dirname

require_once dirname(__FILE__) . '/config.php';
//檢查權限許可
CheckPurview('t_Del,t_AccDel');
require_once DEDEINC . '/typeunit.class.admin.php';
require_once DEDEINC . '/oxwindow.class.php';
$id = trim(preg_replace("#[^0-9]#", '', $id));
//檢查欄目操作許可
CheckCatalog($id, "你無權刪除本欄目!");
if (empty($dopost)) {
    $dopost = '';
}
if ($dopost == 'ok') {
    $ut = new TypeUnit();
    $ut->DelType($id, $delfile);
    UpDateCatCache();
    ShowMsg("成功刪除一個欄目!", "catalog_main.php");
    exit;
}
$dsql->SetQuery("SELECT typename,typedir FROM #@__arctype WHERE id=" . $id);
$row = $dsql->GetOne();
$wintitle = "刪除欄目確認";
$wecome_info = "<a href='catalog_main.php'>欄目管理</a> &gt;&gt; 刪除欄目確認";
$win = new OxWindow();
$win->Init('catalog_del.php', 'js/blank.js', 'POST');
$win->AddHidden('id', $id);
$win->AddHidden('dopost', 'ok');
$win->AddTitle("你要確實要刪除欄目: [{$row['typename']}] 嗎?");
$win->AddItem('欄目的文件保存目錄:', $row['typedir']);
$win->AddItem('是否刪除文件:', "<input type='radio' name='delfile' class='np' value='no' checked='1' />否 &nbsp;<input type='radio' name='delfile' class='np' value='yes' />是");
$winform = $win->GetWindow('ok');
$win->Display();
開發者ID:hensonvip,項目名稱:ymroad,代碼行數:31,代碼來源:catalog_del.php

示例10: if

	$dsql->ExecuteNoneQuery($query);
	$dsql->Close();
	ShowMsg("成功增加一個規則!","co_export_rule.php");
	exit();
}
else if($action=="hand")
{
	 if(empty($job)) $job="";
	 if($job=="")
	 {
     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("co_export_rule_add.php","js/blank.js","POST");
	   $win->AddHidden("job","yes");
	   $win->AddHidden("action",$action);
	   $win->AddTitle("請在下麵輸入你要導入的文本配置:");
	   $win->AddMsgItem("<textarea name='notes' style='width:100%;height:300'></textarea>");
	   $winform = $win->GetWindow("ok");
	   $win->Display();
     exit();
   }
   else
   {
   	  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_export_rule_add.php

示例11: __EditUser

	{
		$ID = ereg_replace("[^0-9]","",$ID);
		$money = ereg_replace("[^0-9]","",$money);
		$dsql = new DedeSql(false);
		$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);
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:member_do.php

示例12: OxWindow

    <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">&nbsp; 為方便您管理站點評論,建議更改站點名稱</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">&nbsp; 例如: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', '&nbsp;', 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;
    }
開發者ID:nomagame,項目名稱:HNJC-Official-Website,代碼行數:31,代碼來源:changyan_main.php

示例13: 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'])."');
  ";
  $rs = $dsql->ExecuteNoneQuery($inQuery);
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:co_do.php

示例14: ShowMsg

    ShowMsg("成功更改一個帳戶!", "sys_admin_user.php");
    exit;
} else {
    if ($dopost == 'delete') {
        if (empty($userok)) {
            $userok = "";
        }
        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:puppylsy,項目名稱:cms,代碼行數:31,代碼來源:sys_admin_user_edit.php

示例15: CheckPurview

                         $win->Display();
                         exit;
                     } else {
                         if ($dopost == "coall") {
                             CheckPurview('co_PlayNote');
                             $mrow = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__co_htmls` ");
                             $totalnum = $mrow['dd'];
                             if ($totalnum == 0) {
                                 ShowMsg("沒發現可下載的內容!", "-1");
                                 exit;
                             }
                             $wintitle = "采集管理-采集未下載內容";
                             $wecome_info = "<a href='co_main.php'>采集管理</a>::采集未下載內容";
                             $win = new OxWindow();
                             $win->Init("co_gather_start_action.php", "js/blank.js", "GET");
                             $win->AddHidden('startdd', '0');
                             $win->AddHidden('pagesize', '5');
                             $win->AddHidden('sptime', '0');
                             $win->AddHidden('nid', '0');
                             $win->AddHidden('totalnum', $totalnum);
                             $win->AddMsgItem("本操作會檢測並下載‘<a href='co_url.php'><u>臨時內容</u></a>’中所有未下載的內容,是否繼續?");
                             $winform = $win->GetWindow("ok");
                             $win->Display();
                             exit;
                         }
                     }
                 }
             }
         }
     }
 }
開發者ID:iabing,項目名稱:mzzyc,代碼行數:31,代碼來源:co_do.php


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