| @@ -12,7 +12,6 @@ require_once(dirname(__FILE__)."/config.php"); | |||||
| CheckPurview('sys_MakeHtml'); | CheckPurview('sys_MakeHtml'); | ||||
| require_once(DEDEINC."/arc.partview.class.php"); | require_once(DEDEINC."/arc.partview.class.php"); | ||||
| if (empty($dopost)) $dopost = ''; | if (empty($dopost)) $dopost = ''; | ||||
| if ($dopost == "view") { | if ($dopost == "view") { | ||||
| $pv = new PartView(); | $pv = new PartView(); | ||||
| $templet = str_replace("{style}", $cfg_df_style, $templet); | $templet = str_replace("{style}", $cfg_df_style, $templet); | ||||
| @@ -79,16 +78,15 @@ if ($dopost == "view") { | |||||
| $pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet); | $pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet); | ||||
| $pv->SaveToHtml($homeFile); | $pv->SaveToHtml($homeFile); | ||||
| echo "<link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/css/bootstrap.min.css\"><style>.modal {position: static;}</style>"; | echo "<link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/css/bootstrap.min.css\"><style>.modal {position: static;}</style>"; | ||||
| echo "<div class=\"alert alert-success\" role=\"alert\">成功更新首页HTML:".$homeFile."<br /><a href='{$position}' target='_blank' class='btn btn-success btn-sm'>浏览...</a></div><br />"; | |||||
| echo "<div class=\"alert alert-success\" role=\"alert\">成功更新首页:".$homeFile." <a href='{$position}' target='_blank' class='btn btn-success btn-sm'>浏览...</a></div>"; | |||||
| } else { | } else { | ||||
| //动态浏览 | //动态浏览 | ||||
| if (file_exists($homeFile)) @unlink($homeFile); | if (file_exists($homeFile)) @unlink($homeFile); | ||||
| echo "<link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/css/bootstrap.min.css\"><style>.modal {position: static;}</style>"; | echo "<link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/css/bootstrap.min.css\"><style>.modal {position: static;}</style>"; | ||||
| echo "<div class=\"alert alert-success\" role=\"alert\">采用动态浏览模式:<a href='../index.php' target='_blank' class='btn btn-success btn-sm'>浏览...</a></div><br />"; | |||||
| echo "<div class=\"alert alert-success\" role=\"alert\">采用动态浏览:<a href='../index.php' target='_blank' class='btn btn-success btn-sm'>浏览...</a></div>"; | |||||
| } | } | ||||
| $iquery = "UPDATE `#@__homepageset` SET showmod='$showmod'"; | $iquery = "UPDATE `#@__homepageset` SET showmod='$showmod'"; | ||||
| $dsql->ExecuteNoneQuery($iquery); | $dsql->ExecuteNoneQuery($iquery); | ||||
| if ($serviterm == "") { | if ($serviterm == "") { | ||||
| $config = array(); | $config = array(); | ||||
| } else { | } else { | ||||