| 
				
				
					
				
				
				 | 
			
			 | 
			@@ -18,10 +18,11 @@ if(empty($uptype)) $uptype = "all"; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			if($uptype == "all")
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			{
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    $row = $dsql->GetOne("SELECT id FROM #@__arctype WHERE id>'$typeid' AND ispart<>2 ORDER BY id ASC LIMIT 0,1;");
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    $row = $dsql->GetOne("SELECT id FROM `#@__arctype` WHERE id>'$typeid' AND ispart<>2 ORDER BY id ASC LIMIT 0,1;");
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    if(!is_array($row))
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    {
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        echo "完成所有文件更新!";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        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\">完成所有文件更新!</div>";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        exit();
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    } else {
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        $pv = new PartView($row['id']);
 | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -35,8 +36,9 @@ if($uptype == "all") | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    $pv = new PartView($typeid);
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    $pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet);
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    $pv->SaveToHtml($cfg_basedir.$cfg_cmspath."/data/js/".$typeid.".js", 0);
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    echo "成功更新".$cfg_cmspath."/data/js/".$typeid.".js!";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    echo "预览:";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    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\">成功更新".$cfg_cmspath."/data/js/".$typeid.".js!";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    echo "预览:</div>";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    echo "<hr>";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    echo "<script src='".$cfg_cmspath."/data/js/".$typeid.".js'></script>";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    exit();
 |