function Display($modfile = "") { global $cfg_templets_dir, $wecome_info, $cfg_basedir; if (empty($wecome_info)) { $wecome_info = "DedeCms OX 通用对话框:"; } $ctp = new DedeTagParse(); if ($modfile == '') { $ctp->LoadTemplate($cfg_basedir . $cfg_templets_dir . '/plus/win_templet.htm'); } else { $ctp->LoadTemplate($modfile); } $emnum = $ctp->Count; for ($i = 0; $i <= $emnum; $i++) { if (isset($GLOBALS[$ctp->CTags[$i]->GetTagName()])) { $ctp->Assign($i, $GLOBALS[$ctp->CTags[$i]->GetTagName()]); } } $ctp->Display(); $ctp->Clear(); }
function Display($modfile="") { global $cfg_templets_dir,$cfg_basedir,$maintitle,$winform; if(empty($this->mainTitle)) $maintitle = '通用对话框'; else $maintitle = $this->mainTitle; if(empty($winform)) $winform = $this->myWin; if(empty($cfg_templets_dir)) $cfg_templets_dir = dirname(__FILE__)."/../templets"; else $cfg_templets_dir = $cfg_basedir.$cfg_templets_dir; $ctp = new DedeTagParse(); if($modfile=="") $ctp->LoadTemplate($cfg_templets_dir."/win_templet.htm"); else $ctp->LoadTemplate($modfile); $emnum = $ctp->Count; for($i=0;$i<=$emnum;$i++) { if(isset($GLOBALS[$ctp->CTags[$i]->GetTagName()])) { $ctp->Assign($i,$GLOBALS[$ctp->CTags[$i]->GetTagName()]); } } $ctp->Display(); $ctp->Clear(); }