Subversion Repositories php-qbpwcf

Rev

Rev 3 | Rev 226 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 30
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
/*
3
/*
4
 
4
 
5
	QBPWCF, Quick Build PHP website Component base on Fedora Linux.
5
	QBPWCF, Quick Build PHP website Component base on Fedora Linux.
6
    Copyright (C) 2015~2024 Min-Jhin,Chen
6
    Copyright (C) 2015~2025 Min-Jhin,Chen
7
 
7
 
8
    This file is part of QBPWCF.
8
    This file is part of QBPWCF.
9
 
9
 
10
    QBPWCF is free software: you can redistribute it and/or modify
10
    QBPWCF is free software: you can redistribute it and/or modify
11
    it under the terms of the GNU General Public License as published by
11
    it under the terms of the GNU General Public License as published by
Line 250... Line 250...
250
	
250
	
251
		#如果$conf["class"]不存在
251
		#如果$conf["class"]不存在
252
		if(!isset($conf["class"])){
252
		if(!isset($conf["class"])){
253
			
253
			
254
			#不設定要套用的類別樣式
254
			#不設定要套用的類別樣式
255
			$conf["frameCssStyle"]="";				
255
			$conf["frameCssStyle"]="";
256
 
256
 
257
			}#if end
257
			}#if end
258
 
258
 
259
		#如果$conf["class"]不爲空,則設定樣式。
259
		#如果$conf["class"]不爲空,則設定樣式。
260
		else{
260
		else{
Line 320... Line 320...
320
			$conf["scrolling"]="";
320
			$conf["scrolling"]="";
321
			
321
			
322
			}#else end
322
			}#else end
323
		
323
		
324
		#初始化 style 字串
324
		#初始化 style 字串
325
		$conf["styleStr"]="";			
325
		$conf["styleStr"]="";
326
			
326
			
327
		#如果有設定寬度或高度
327
		#如果有設定寬度或高度
328
		if(isset($conf["width"]) || isset($conf["height"])){
328
		if(isset($conf["width"]) || isset($conf["height"])){
329
			
329
			
330
			#如果有設定寬度
330
			#如果有設定寬度
Line 509... Line 509...
509
					$result["error"]=$toScript;
509
					$result["error"]=$toScript;
510
					
510
					
511
					#回傳結果
511
					#回傳結果
512
					return $result;
512
					return $result;
513
					
513
					
514
					}#if end				
514
					}#if end
515
				
515
				
516
				#串接語法
516
				#串接語法
517
				$result["content"]=$result["content"].$toScript["content"];
517
				$result["content"]=$result["content"].$toScript["content"];
518
								
518
				
519
				}#if end
519
				}#if end
520
			
520
			
521
			}#if end
521
			}#if end
522
			
522
			
523
		#改用span將iframe包起來
523
		#改用span將iframe包起來
Line 1429... Line 1429...
1429
		#回傳結果
1429
		#回傳結果
1430
		return $result;
1430
		return $result;
1431
		
1431
		
1432
		}#function multiDiv end
1432
		}#function multiDiv end
1433
			
1433
			
-
 
1434
	/*
-
 
1435
	#函式說明:
-
 
1436
	#透過javaScript建立iframe獲得更多控制權限.
-
 
1437
	#回傳結果:
-
 
1438
	#$result["status"],執行正常與否.
-
 
1439
	#$result["error"],錯誤訊息陣列.
-
 
1440
	#$result["function"],當前執行的函數.
-
 
1441
	#$result["content"],js語法.
-
 
1442
	#必填參數:
-
 
1443
	#無.
-
 
1444
	#可省略參數:
-
 
1445
	#無.
-
 
1446
	#參考資料:
-
 
1447
	#無.
-
 
1448
	#備註:
-
 
1449
	#建構中...
-
 
1450
	*/
-
 
1451
	public static function js(&$conf){
-
 
1452
	
-
 
1453
		
-
 
1454
	
-
 
1455
		}#fucntion js end
-
 
1456
			
1434
	}#class frame end
1457
	}#class frame end
1435
 
1458
 
1436
?>
1459
?>