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


PHP OxWindow::AddItem方法代碼示例

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


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

示例1: OxWindow

     $win->AddHidden("activepath", $activepath);
     $win->AddTitle("當前目錄 {$activepathname} ");
     $win->AddItem("新目錄:", "<input name='newpath' type='input' class='alltxt' id='newpath'>");
     $winform = $win->GetWindow("ok");
     $win->Display();
 } else {
     if ($fmdo == "move") {
         $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);
         $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} 嗎?";
開發者ID:playfay,項目名稱:FlowDedeCmsBackstageTemplets,代碼行數:31,代碼來源:file_manage_view.php

示例2: ShowMsg

         }
     }
     ShowMsg("成功替換當前節點所有數據!", "co_view.php?aid={$aid}");
     exit;
 } else {
     if ($dopost == "copy") {
         CheckPurview('co_AddNote');
         if (empty($mynotename)) {
             $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='mynotename' value='' size='30' />");
             $winform = $win->GetWindow("ok");
             $win->Display();
             exit;
         }
         $row = $dsql->GetOne("SELECT * FROM `#@__co_note` WHERE nid='{$nid}'");
         foreach ($row as $k => $v) {
             if (!isset(${$k})) {
                 ${$k} = addslashes($v);
             }
         }
         $usemore = empty($usemore) ? '0' : $usemore;
         $inQuery = " INSERT INTO `#@__co_note`(`channelid`,`notename`,`sourcelang`,`uptime`,`cotime`,`pnum`,`isok`,`listconfig`,`itemconfig`,`usemore`)\r\n               VALUES ('{$channelid}','{$mynotename}','{$sourcelang}','" . time() . "','0','0','0','{$listconfig}','{$itemconfig}','{$usemore}'); ";
         $dsql->ExecuteNoneQuery($inQuery);
         ShowMsg("成功複製一個節點!", $ENV_GOBACK_URL);
         exit;
開發者ID:iabing,項目名稱:mzzyc,代碼行數:31,代碼來源:co_do.php

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

示例4: TypeLink

 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;
     }
     if (IsParent($movetype, $typeid)) {
         ShowMsg('不能從父類移動到子類!', 'catalog_main.php');
         exit;
     }
     $dsql->ExecuteNoneQuery(" UPDATE `#@__arctype` SET reid='{$movetype}' WHERE id='{$typeid}' ");
開發者ID:hensonvip,項目名稱:ymroad,代碼行數:31,代碼來源:catalog_do.php

示例5: __Recommend

  foreach($MemberTypes as $k=>$v)
  {
  	if($k!=$uptype) $options .= "<option value='$k'>$v</option>\r\n";
  	else $options .= "<option value='$k' selected>$v</option>\r\n";
  }
  $options .= "</select>\r\n";

	$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->AddItem("會員目前的等級:",$MemberTypes[$mtype]);
	$win->AddItem("會員申請的等級:",$MemberTypes[$uptype]);
	$win->AddItem("開通等級:",$options);
	$winform = $win->GetWindow("ok");
	$win->Display();
}
/*----------------
function __Recommend()
推薦會員
----------------*/
else if($dopost=="recommend")
{
	CheckPurview('member_Edit');
	$ID = ereg_replace("[^0-9]","",$ID);
	$dsql = new DedeSql(false);
	if($matt==0){
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:member_do.php


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