Subversion Repositories php-qbpwcf

Rev

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

Rev 98 Rev 226
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) 2014~2025 MIN ZHI, 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 131... Line 131...
131
	#無.
131
	#無.
132
	#備註:
132
	#備註:
133
	#無.
133
	#無.
134
	$record=logs::record($conf);
134
	$record=logs::record($conf);
135
	unset($conf);
135
	unset($conf);
136
	
136
 
137
	#結束執行
137
	#結束執行
138
	exit;
138
	exit;
139
 
139
 
140
}#if end
140
}#if end
141
 
141
 
Line 156... Line 156...
156
#$conf["class"],字串,要使用的css樣式名稱,預設為"__defaultTextStyle".
156
#$conf["class"],字串,要使用的css樣式名稱,預設為"__defaultTextStyle".
157
#$conf["class"]="";
157
#$conf["class"]="";
158
#參考資料:
158
#參考資料:
159
#無.
159
#無.
160
#備註:
160
#備註:
161
#無.		
161
#無.
162
$oneLine=text::oneLine($conf);
162
$oneLine=text::oneLine($conf);
163
unset($conf);
163
unset($conf);
164
 
164
 
165
#如果執行失敗
165
#如果執行失敗
166
if($oneLine["status"]==="false")
166
if($oneLine["status"]==="false")
Line 186... Line 186...
186
	#無.
186
	#無.
187
	#備註:
187
	#備註:
188
	#無.
188
	#無.
189
	$record=logs::record($conf);
189
	$record=logs::record($conf);
190
	unset($conf);
190
	unset($conf);
191
	
191
 
192
	#結束執行
192
	#結束執行
193
	exit;
193
	exit;
194
}
194
}
195
 
195
 
196
#放置文字的語法
196
#放置文字的語法
Line 200... Line 200...
200
#放置可以套用css樣式的圖片
200
#放置可以套用css樣式的圖片
201
#回傳結果:
201
#回傳結果:
202
#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
202
#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
203
#$result["error"],錯誤訊息陣列
203
#$result["error"],錯誤訊息陣列
204
#$result["function"],當前函數執行的名稱
204
#$result["function"],當前函數執行的名稱
205
#$result["content"],印出圖片的語法。		
205
#$result["content"],印出圖片的語法。
206
#必填參數:
206
#必填參數:
207
$conf["position"]="assets of img/celine-ruiz-rr4bawLxOjc-unsplash.jpg";#圖片位置
207
$conf["position"]="assets of img/celine-ruiz-rr4bawLxOjc-unsplash.jpg";#圖片位置
208
#可省略參數:
208
#可省略參數:
209
#$conf["id"]="";#圖片的id,沒有就不設定.
209
#$conf["id"]="";#圖片的id,沒有就不設定.
210
#$conf["alt"]="";#若沒有圖片要用什麼文字顯示。
210
#$conf["alt"]="";#若沒有圖片要用什麼文字顯示。
Line 240... Line 240...
240
	#無.
240
	#無.
241
	#備註:
241
	#備註:
242
	#無.
242
	#無.
243
	$record=logs::record($conf);
243
	$record=logs::record($conf);
244
	unset($conf);
244
	unset($conf);
245
	
245
 
246
	#結束執行
246
	#結束執行
247
	exit;
247
	exit;
248
}
248
}
249
 
249
 
250
#放置圖片的語法
250
#放置圖片的語法
Line 308... Line 308...
308
	#無.
308
	#無.
309
	#備註:
309
	#備註:
310
	#無.
310
	#無.
311
	$record=logs::record($conf);
311
	$record=logs::record($conf);
312
	unset($conf);
312
	unset($conf);
313
	
313
 
314
	#結束執行
314
	#結束執行
315
	exit;
315
	exit;
316
 
316
 
317
}#if end
317
}#if end
318
 
318
 
Line 380... Line 380...
380
	#無.
380
	#無.
381
	#備註:
381
	#備註:
382
	#無.
382
	#無.
383
	$record=logs::record($conf);
383
	$record=logs::record($conf);
384
	unset($conf);
384
	unset($conf);
385
	
385
 
386
	#結束執行
386
	#結束執行
387
	exit;
387
	exit;
388
}
388
}
389
 
389
 
390
#放置影片的語法
390
#放置影片的語法
Line 448... Line 448...
448
	#無.
448
	#無.
449
	#備註:
449
	#備註:
450
	#無.
450
	#無.
451
	$record=logs::record($conf);
451
	$record=logs::record($conf);
452
	unset($conf);
452
	unset($conf);
453
	
453
 
454
	#結束執行
454
	#結束執行
455
	exit;
455
	exit;
456
 
456
 
457
}#if end
457
}#if end
458
 
458
 
Line 469... Line 469...
469
#必填參數:
469
#必填參數:
470
#$conf["place"],字串,輪播區塊要在哪個元素裡面呈現,其區塊特徵為何?(請參閱javascript的querySelector函式).
470
#$conf["place"],字串,輪播區塊要在哪個元素裡面呈現,其區塊特徵為何?(請參閱javascript的querySelector函式).
471
$conf["place"]="div#slide";
471
$conf["place"]="div#slide";
472
#$conf["slideHtml"],字串陣列,每個投影片的html語法,其生成結構必須為 html > body > div > anyTag(content to show).
472
#$conf["slideHtml"],字串陣列,每個投影片的html語法,其生成結構必須為 html > body > div > anyTag(content to show).
473
$conf["slideHtml"]=array($oneLine["content"],$img,$video);
473
$conf["slideHtml"]=array($oneLine["content"],$img,$video);
474
#可省略參數:	
474
#可省略參數:
475
#$conf["sec"],字串,過幾秒就要置換成下一張投影片,預設為"3",代表每3秒就換一張投影片.
475
#$conf["sec"],字串,過幾秒就要置換成下一張投影片,預設為"3",代表每3秒就換一張投影片.
476
#$conf["sec"]="3";
476
#$conf["sec"]="3";
477
#參考資料:
477
#參考資料:
478
#無.
478
#無.
479
#備註:
479
#備註:
Line 505... Line 505...
505
	#無.
505
	#無.
506
	#備註:
506
	#備註:
507
	#無.
507
	#無.
508
	$record=logs::record($conf);
508
	$record=logs::record($conf);
509
	unset($conf);
509
	unset($conf);
510
	
510
 
511
	#結束執行
511
	#結束執行
512
	exit;
512
	exit;
513
}
513
}
514
 
514
 
515
#放置投影片的語法
515
#放置投影片的語法
516
echo $slideDivPlus["content"];
516
echo $slideDivPlus["content"];
517
 
517
 
518
?>
-
 
519
518
?>
-
 
519