Blame | Last modification | View Log | RSS feed
<?php#使用命名空間namespace qbpwcf;#匯入外部套件include("../allInOne.php");/*#提示當前執行的函數echo "<hr>frame::createIframe - testCase 1<br>";#涵式說明:#建立一個 iframe 框架#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:$conf["webPage"]="frameT-frame.php";#爲放入 iframe 網頁網址。$conf["name"]="frameT";#爲該 iframe 的名稱。$conf["br"]="true";#爲放置完該iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。#可省略的參數#$conf["class"],字串陣列,爲該 iframe 要套用的css樣式類別名稱.#$conf["class"]=array("");#$conf["scrolling"],字串,是否要取消滾軸功能,"false"代表取消滾軸功能.#$conf["scrolling"]="";#$conf["width"],字串,iframe的寬度.#$conf["width"]="";#$conf["height"],字串,iframe的高度.#$conf["height"]="";$createIframe=frame::createIframe($conf);unset($conf);#如果建立失敗if($createIframe["status"]==="false"){#印出結果var_dump($createIframe);#結束程式exit;}#if end#印出內容echo $createIframe["content"];*//*#提示當前執行的函數echo "<hr>frame::createIframe - testCase 2<br>";#涵式說明:#建立一個 iframe 框架#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:$conf["webPage"]="frameT-frame.php";#爲放入 iframe 網頁網址。$conf["name"]="frameT";#爲該 iframe 的名稱。$conf["br"]="true";#爲放置完該iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。#可省略的參數#$conf["class"]="";#爲該 iframe 要套用的css樣式類別名稱,可省略。$conf["scrolling"]="false";#是否要取消滾軸功能,"false"代表取消滾軸功能.#$conf["width"],字串,iframe的寬度.#$conf["width"]="";#$conf["height"],字串,iframe的高度.#$conf["height"]="";$createIframe=frame::createIframe($conf);unset($conf);#如果建立失敗if($createIframe["status"]==="false"){#印出結果var_dump($createIframe);#結束程式exit;}#if end#印出內容echo $createIframe["content"];*//*#提示當前執行的函數echo "<hr>frame::createIframe - testCase 3<br>";#涵式說明:#建立一個 iframe 框架#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:$conf["webPage"]="frameT-frame.php";#爲放入 iframe 網頁網址。$conf["name"]="frameT";#爲該 iframe 的名稱。$conf["br"]="true";#爲放置完該iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。#可省略的參數#$conf["class"]="";#爲該 iframe 要套用的css樣式類別名稱,可省略。#$conf["scrolling"]="false";#是否要取消滾軸功能,"false"代表取消滾軸功能.#$conf["width"],字串,iframe的寬度.$conf["width"]="50%";#$conf["height"],字串,iframe的高度.$conf["height"]="100%";$createIframe=frame::createIframe($conf);unset($conf);#如果建立失敗if($createIframe["status"]==="false"){#印出結果var_dump($createIframe);#結束程式exit;}#if end#印出內容echo $createIframe["content"];*//*#提示當前執行的函數echo "<hr>frame::createIframe - testCase 4<br>";#涵式說明:#透過javaScript傳送get數值到特定頁面,並且取得頁面的回應,將之結果放置在特定的區塊裏面。#回傳的內容:#$result["status"],執行正確與否,"true"代表執行正確,"false"代表執行失敗.#$result["error"],錯誤訊息陣列.#$result["content"],JavaScript的語法#$result["function"],當前執行的函數名稱#必填的參數:$conf["javaScript::ajaxSendGetValue"]["receivePage"]="frameT/createIframe-testCase-4.php";#字串,要接收數值的頁面。$conf["javaScript::ajaxSendGetValue"]["var"]=array("createIframeT4"=>"true");#陣列,要傳送的變數名稱與內容,$conf["var"]["name"]=$value,代表變數名為$name,值為$value.$conf["javaScript::ajaxSendGetValue"]["jsFunctionName"]="createIframeT4";#字串,ajax裏面的js涵式名稱,使用該function的範例 jsFunction(this.value) ,這樣就會把表單的數值傳進去$conf["javaScript::ajaxSendGetValue"]["responsePalaceId"]="createIframeT4";#字串,回傳的內容要呈現於哪個<span id = ? ></span>、<div id= ? ></div>區塊之間。#參考資料來源:#http://www.w3school.com.cn/php/php_ajax_suggest.asp#http://www.w3schools.com/php/php_ajax_php.asp$ajaxSendGetValue=javaScript::ajaxSendGetValue($conf["javaScript::ajaxSendGetValue"]);unset($conf["javaScript::ajaxSendGetValue"]);#印出語法echo $ajaxSendGetValue["content"];#觸發ajax的按鈕echo "<button onclick=createIframeT4() type=\"button\">ajax</button>";#取得回饋的按鈕echo "<div id=\"createIframeT4\"></div>";#涵式說明:#建立一個 iframe 框架#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:#$conf["webPage"],字串,爲放入 iframe 網頁網址.$conf["webPage"]="frameT/createIframe-testCase-4-1.php";#$conf["name"],爲該 iframe 的名稱.$conf["name"]="createIframe-testCase-4-1";#$conf["br"],字串,爲放置完該iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。$conf["br"]="true";#可省略的參數#$conf["class"],字串陣列,爲該 iframe 要套用的css樣式類別名稱.#$conf["class"]=array("");#$conf["scrolling"],字串,是否要取消滾軸功能,"false"代表取消滾軸功能.#$conf["scrolling"]="";#$conf["width"],字串,iframe的寬度.#$conf["width"]="";#$conf["height"],字串,iframe的高度.#$conf["height"]="";$createIframe=frame::createIframe($conf);unset($conf);#如果建立 iframe 失敗if($createIframe["status"]==="false"){#印出結果var_dump($createIframe);#結束執行exit;}#if end#印出 iframeecho $createIframe["content"];*//*#提示當前執行的函數echo "<hr>frame::createIframe - testCase 5<br>";#涵式說明:#建立一個 iframe 框架#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:#$conf["webPage"],字串,爲放入 iframe 網頁網址.$conf["webPage"]="https://start.fedoraproject.org/";#$conf["name"],爲該 iframe 的名稱.$conf["name"]="t5";#$conf["br"],字串,爲放置完該iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。$conf["br"]="true";#可省略的參數#$conf["class"],字串陣列,爲該 iframe 要套用的css樣式類別名稱.#$conf["class"]=array("");#$conf["scrolling"],字串,是否要取消滾軸功能,"false"代表取消滾軸功能.#$conf["scrolling"]="";#$conf["width"],字串,iframe的寬度.$conf["width"]="100%";#$conf["height"],字串,iframe的高度.$conf["height"]="100%";#$conf["minWidth"],字串,最小的寬度.$conf["minWidth"]="400px";#$conf["maxWidth"],字串,最大寬度.$conf["maxWidth"]="800px";#$conf["minHeight"],字串,最小的高度.$conf["minHeight"]="100px";#$conf["maxHeight"],字串,最大的高度.$conf["maxHeight"]="100px";$createIframe=frame::createIframe($conf);unset($conf);#如果建立ifame失敗if($createIframe["status"]==="false"){#印出內容var_dump($createIframe);#停止執行exit;}#if end#印出語法echo $createIframe["content"];*//*#提示當前執行的函數echo "<hr>frame::createIframe - testCase 6<br>";#涵式說明:#建立一個 iframe 框架#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:#$conf["webPage"],字串,爲放入 iframe 網頁網址.$conf["webPage"]="https://169.254.1.2";#$conf["name"],爲該 iframe 的名稱.$conf["name"]="top";#$conf["br"],字串,爲放置完該iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。$conf["br"]="false";#可省略的參數#$conf["class"],字串陣列,爲該 iframe 要套用的css樣式類別名稱.#$conf["class"]=array("");#$conf["scrolling"],字串,是否要取消滾軸功能,"false"代表取消滾軸功能.#$conf["scrolling"]="";#$conf["width"],字串,iframe的寬度.#$conf["width"]="";#$conf["height"],字串,iframe的高度.$conf["height"]="100px";#$conf["minWidth"],字串,最小的寬度.#$conf["minWidth"]="";#$conf["maxWidth"],字串,最大寬度.#$conf["maxWidth"]="100px";#$conf["minHeight"],字串,最小的高度.#$conf["minHeight"]="100px";#$conf["maxHeight"],字串,最大的高度.#$conf["maxHeight"]="10%";$createIframe=frame::createIframe($conf);unset($conf);#如果建立iframe失敗if($createIframe["status"]==="false"){#印出內容var_dump($createIframe);#停止執行exit;}#if end#印出內容echo $createIframe["content"];*//*#提示當前執行的函數echo "<hr>frame::createIframe - testCase 7<br>";#涵式說明:#建立一個 iframe 框架#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:#$conf["webPage"],字串,爲放入 iframe 網頁網址.$conf["webPage"]="https://169.254.1.2";#$conf["name"],爲該 iframe 的名稱.$conf["name"]="top";#$conf["br"],字串,爲放置完該iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。$conf["br"]="true";#可省略的參數#$conf["class"],字串陣列,爲該 iframe 要套用的css樣式類別名稱.#$conf["class"]=array("");#$conf["scrolling"],字串,是否要取消滾軸功能,"false"代表取消滾軸功能.#$conf["scrolling"]="";#$conf["width"],字串,iframe的寬度.#$conf["width"]="";#$conf["height"],字串,iframe的高度.$conf["height"]="100px";#$conf["minWidth"],字串,最小的寬度.#$conf["minWidth"]="";#$conf["maxWidth"],字串,最大寬度.#$conf["maxWidth"]="";#$conf["minHeight"],字串,最小的高度.#$conf["minHeight"]="100px";#$conf["maxHeight"],字串,最大的高度.#$conf["maxHeight"]="10%";$createIframe=frame::createIframe($conf);unset($conf);#如果建立iframe失敗if($createIframe["status"]==="false"){#印出內容var_dump($createIframe);#停止執行exit;}#if end#印出內容echo $createIframe["content"];#涵式說明:#建立一個 iframe 框架#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:#$conf["webPage"],字串,爲放入 iframe 網頁網址.$conf["webPage"]="https://169.254.1.2";#$conf["name"],爲該 iframe 的名稱.$conf["name"]="bottom";#$conf["br"],字串,爲放置完該iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。$conf["br"]="true";#可省略的參數#$conf["class"],字串陣列,爲該 iframe 要套用的css樣式類別名稱.#$conf["class"]=array("");#$conf["scrolling"],字串,是否要取消滾軸功能,"false"代表取消滾軸功能.#$conf["scrolling"]="";#$conf["width"],字串,iframe的寬度.#$conf["width"]="";#$conf["height"],字串,iframe的高度.#$conf["height"]="100px";#$conf["minWidth"],字串,最小的寬度.#$conf["minWidth"]="";#$conf["maxWidth"],字串,最大寬度.#$conf["maxWidth"]="";#$conf["minHeight"],字串,最小的高度.#$conf["minHeight"]="100px";#$conf["maxHeight"],字串,最大的高度.#$conf["maxHeight"]="10%";#$conf["soucreId"],字串,如果要跟該function建立出來的ifame來動態調整高度為用戶看到的高度減去其高度,請給予來源iframe的id,此參數僅在$conf["br"]為"true"時生效.$conf["soucreId"]="top";$createIframe=frame::createIframe($conf);unset($conf);#如果建立iframe失敗if($createIframe["status"]==="false"){#印出內容var_dump($createIframe);#停止執行exit;}#if end#印出內容echo $createIframe["content"];echo "<script>var changeEleHeightToFullLessSource=function(){var bottomDiv=document.getElementById('bottom').parentElement;var bottomDivH=bottomDiv.clientHeight;var windowH=document.body.clientHeight;var topDiv=document.getElementById('top').parentElement;var topDivH=topDiv.clientHeight;var bottomDivStyle=window.getComputedStyle(bottomDiv,null);//console.log(bottomDivStyle.toSource());console.log('original height is '+bottomDivStyle['height']);console.log('var windowH is '+windowH);console.log('var topDivH is '+topDivH);var newBottomDivH=windowH-topDivH+'px';bottomDiv.style.height=windowH-topDivH+'px';console.log('altered height is '+newBottomDivH);};window.addEventListener('resize',changeEleHeightToFullLessSource);</script>";*//*#提示當前執行的函數echo "<hr>frame::createIframe - testCase 8<br>";#涵式說明:#建立一個 iframe 框架#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:#$conf["webPage"],字串,爲放入 iframe 網頁網址.$conf["webPage"]="https://egg-roll.qbpwcf.org";#$conf["name"],爲該 iframe 的名稱.$conf["name"]="egg-roll";#$conf["br"],字串,爲放置完該iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。$conf["br"]="true";#可省略的參數#$conf["class"],字串陣列,爲該 iframe 要套用的css樣式類別名稱.#$conf["class"]=array("");#$conf["scrolling"],字串,是否要取消滾軸功能,"false"代表取消滾軸功能.#$conf["scrolling"]="";#$conf["width"],字串,iframe的寬度.#$conf["width"]="";#$conf["height"],字串,iframe的高度.#$conf["height"]="";#$conf["minWidth"],字串,最小的寬度.#$conf["minWidth"]="";#$conf["maxWidth"],字串,最大寬度.#$conf["maxWidth"]="";#$conf["minHeight"],字串,最小的高度.#$conf["minHeight"]="";#$conf["maxHeight"],字串,最大的高度.#$conf["maxHeight"]="";#$conf["soucreId"],字串,如果要跟該function建立出來的ifame來動態調整高度為用戶看到的高度減去其高度,請給予來源iframe的id,此參數僅在$conf["br"]為"true"時生效.#$conf["soucreId"]="";#$conf["extraAttrAndValue"],字串陣列,每個額外的屬性與其對應的數值,key為屬性名稱,value為屬性數值.$conf["extraAttrAndValue"]=array("style"=>"text-align:center;");#$conf["frameExtraAttrAndValue"],字串陣列,frame每個額外的屬性與其對應的數值,key為屬性名稱,value為屬性數值.$conf["frameExtraAttrAndValue"]=array("style"=>"width:80vw;height:80vh;");$createIframe=frame::createIframe($conf);unset($conf);#如果建立iframe失敗if($createIframe["status"]==="false"){#印出內容var_dump($createIframe);#停止執行exit;}#if end#印出內容echo $createIframe["content"];*//*#提示當前執行的函數echo "<hr>frame::createMultiIframe - testCase 1<br>";#涵式說明:#建立多個 iframe#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:#$conf["webPage"],字串陣列,爲每個要放入 iframe 的網頁網址.$conf["webPage"]=array("frameT-frame.php","frameT-frame.php","frameT-frame.php");#$conf["name"],字串陣列,爲每個 iframe 的名稱與id.$conf["name"]=array("frameT-frame1","frameT-frame2","frameT-frame3");#$conf["br"],字串陣列,爲放置完各個iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。$conf["br"]=array("true","true","true");#可省略的參數#$conf["class"],字串陣列,爲各個 iframe 要套用的css樣式類別名稱.#$conf["class"]=array(array(""));#$conf["scrolling"],字串陣列,是否要取消各個iframe的滾軸功能,"false"代表取消滾軸功能.#$conf["scrolling"]=array("false");#$conf["width"],字串陣列,各個iframe的寬度.#$conf["width"]=array("");#$conf["height"],字串陣列,各個iframe的高度.$conf["height"]=array("33%","33%","33%");#$conf["minWidth"],字串陣列,各個iframe最小的寬度.#$conf["minWidth"]=array("");#$conf["maxWidth"],字串陣列,各個iframe最大寬度.#$conf["maxWidth"]=array("");#$conf["minHeight"],字串陣列,各個iframe最小的高度.#$conf["minHeight"]=array("");#$conf["maxHeight"],字串陣列,各個最大的高度.#$conf["maxHeight"]=array("");#$conf["soucreId"],字串陣列,各個iframe如果要跟該function建立出來的ifame來動態調整高度為用戶看到的高度減去其高度,請給予來源iframe的id,此參數僅在$conf["br"]為"true"時生效.#$conf["soucreId"]=array("");var_dump(frame::createMultiIframe($conf));unset($conf);*//*#提示當前執行的函數echo "<hr>frame::createMultiIframe - testCase 2<br>";#涵式說明:#建立多個 iframe#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:#$conf["webPage"],字串陣列,爲每個要放入 iframe 的網頁網址.$conf["webPage"]=array("frameT/createMultiIframe1.php","frameT/createMultiIframe2.php");#$conf["name"],字串陣列,爲每個 iframe 的名稱與id.$conf["name"]=array("createMultiIframe1","createMultiIframe2");#$conf["br"],字串陣列,爲放置完各個iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。$conf["br"]=array("true","true");#可省略的參數#$conf["class"],字串陣列,爲各個 iframe 要套用的css樣式類別名稱.#$conf["class"]=array(array(""));#$conf["scrolling"],字串陣列,是否要取消各個iframe的滾軸功能,"false"代表取消滾軸功能.#$conf["scrolling"]=array("false");#$conf["width"],字串陣列,各個iframe的寬度.#$conf["width"]=array("");#$conf["height"],字串陣列,各個iframe的高度.$conf["height"]=array("50%","50%");#$conf["minWidth"],字串陣列,各個iframe最小的寬度.#$conf["minWidth"]=array("");#$conf["maxWidth"],字串陣列,各個iframe最大寬度.#$conf["maxWidth"]=array("");#$conf["minHeight"],字串陣列,各個iframe最小的高度.#$conf["minHeight"]=array("");#$conf["maxHeight"],字串陣列,各個最大的高度.#$conf["maxHeight"]=array("");#$conf["soucreId"],字串陣列,各個iframe如果要跟該function建立出來的ifame來動態調整高度為用戶看到的高度減去其高度,請給予來源iframe的id,此參數僅在$conf["br"]為"true"時生效.#$conf["soucreId"]=array("");var_dump(frame::createMultiIframe($conf));unset($conf);*//*#提示當前執行的函數echo "<hr>frame::createMultiIframe - testCase 3<br>";#涵式說明:#建立多個 iframe#回傳的結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗。#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示#$result["content"],iframe的語法#必填的參數:#$conf["webPage"],字串陣列,爲每個要放入 iframe 的網頁網址.$conf["webPage"]=array("frameT/top.html","frameT/bottom.html");#$conf["name"],字串陣列,爲每個 iframe 的名稱與id.$conf["name"]=array("top","bottom");#$conf["br"],字串陣列,爲放置完各個iframe後是否要換行,"true"爲要換行;"flase"爲不要換行。$conf["br"]=array("true","true");#可省略的參數#$conf["class"],字串陣列,爲各個 iframe 要套用的css樣式類別名稱.#$conf["class"]=array(array(""));#$conf["scrolling"],字串陣列,是否要取消各個iframe的滾軸功能,"false"代表取消滾軸功能.#$conf["scrolling"]=array("false");#$conf["width"],字串陣列,各個iframe的寬度.#$conf["width"]=array("");#$conf["height"],字串陣列,各個iframe的高度.$conf["height"]=array("100px","500px");#$conf["minWidth"],字串陣列,各個iframe最小的寬度.#$conf["minWidth"]=array("");#$conf["maxWidth"],字串陣列,各個iframe最大寬度.#$conf["maxWidth"]=array("");#$conf["minHeight"],字串陣列,各個iframe最小的高度.#$conf["minHeight"]=array("");#$conf["maxHeight"],字串陣列,各個最大的高度.#$conf["maxHeight"]=array("");#$conf["soucreId"],字串陣列,各個iframe如果要跟該function建立出來的ifame來動態調整高度為用戶看到的高度減去其高度,請給予來源iframe的id,此參數僅在$conf["br"]為"true"時生效.$conf["soucreId"]=array(null,"top");$createMultiIframe=frame::createMultiIframe($conf);unset($conf);#如果建立多個iframe失敗if($createMultiIframe["status"]==="false"){#印出結果var_dump($createMultiIframe);#結束執行exit;}#if end#印出語法echo $createMultiIframe["content"];*//*#提示當前執行的函數echo "<hr>frame::div - testCase 1<br>";#函式說明:#用div做成的frame.#回傳結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗.#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示.#$result["content"],div frame的語法.#必填參數:#$conf["id"],字串,div frmae的id.$conf["id"]="div_t_1";#可省略參數:#$conf["content"],字串陣列,要放入到frame的內容,預設不使用.$conf["content"]=array("<div>A</div>","<div>B</div>","<div>C</div>","<div>D</div>","<div>E</div>","<div>F</div>","<div>G</div>","<div>H</div>","<div>I</div>","<div>J</div>","<div>K</div>","<div>L</div>","<div>M</div>","<div>N</div>","<div>O</div>","<div>P</div>","<div>Q</div>");#$conf["oneScreenSize"],字串,是否要為視窗的高度,"true"代表要;"false"代表不要.#$conf["oneScreenSize"]="";#$conf["height"],字串,frame的高度,若 "oneScreenSize" 設置為 "true",則忽略本參數.$conf["height"]="200px";#備註:#建構中...$div=frame::div($conf);unset($conf);#如果執行失敗if($div["status"]==="false"){#印出內容var_dump($div);#停止執行exit;}#if end#印出內容echo $div["content"];*//*#提示當前執行的函數echo "<hr>frame::div - testCase 2<br>";#函式說明:#用div做成的frame.#回傳結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗.#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示.#$result["content"],div frame的語法.#必填參數:#$conf["id"],字串,div frmae的id.$conf["id"]="div_t_1";#可省略參數:#$conf["content"],字串陣列,要放入到frame的內容,預設不使用.$conf["content"]=array("<div>A</div>","<div>B</div>","<div>C</div>","<div>D</div>","<div>E</div>","<div>F</div>","<div>G</div>","<div>H</div>","<div>I</div>","<div>J</div>","<div>K</div>","<div>L</div>","<div>M</div>","<div>N</div>","<div>O</div>","<div>P</div>","<div>Q</div>");#$conf["oneScreenSize"],字串,是否要為視窗的高度,"true"代表要;"false"代表不要.$conf["oneScreenSize"]="true";#$conf["height"],字串,frame的高度,若 "oneScreenSize" 設置為 "true",則忽略本參數.$conf["height"]="200px";#備註:#建構中...$div=frame::div($conf);unset($conf);#如果執行失敗if($div["status"]==="false"){#印出內容var_dump($div);#停止執行exit;}#if end#印出內容echo $div["content"];*//*#提示當前執行的函數echo "<hr>frame::multiDiv - testCase 1<br>";#函式說明:#建立多個用div做成的frame.#回傳結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗.#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示.#$result["content"],div frame的語法.#必填參數:#$conf["id"],字串陣列,每個div frame的id.$conf["id"]=array("A","B");#可省略參數:#$conf["content"],二維字串陣列,要放入到每個frame的內容,預設不使用,若有個要放有的不要放內容,則不放內容的元素設為null.#$conf["content"]=array(array());#$conf["oneScreenSize"],字串陣列,各個frame是否要為視窗的高度,"true"代表要;"false"代表不要。裡面的div元素也會變成跟視窗一樣高.內部的div要使用line-height:normal樣式來取消效果.#$conf["oneScreenSize"]=array("");#$conf["height"],字串陣列,各個frame的高度,若不設置則請給予null,若 "oneScreenSize" 設置為 "true",則忽略本參數.#$conf["height"]=array("");#$conf["div2heightIsSeeHeightLessDiv1height"],字串,"true"代表第2個 div frame如果要跟第1個 div frame 來動態調整高度為用戶看到的高度減去第1個 div frame高度;預設為"false"代表不使用.若 "content" 的元素數量不等於2則會強制為"false".#$conf["div2heightIsSeeHeightLessDiv1height"]="false";$multiDiv=frame::multiDiv($conf);unset($conf);#如果設置失敗if($multiDiv["status"]==="false"){#印出內容var_dump($multiDiv);#停止執行exit;}#if end#印出內容echo $multiDiv["content"];*//*#提示當前執行的函數echo "<hr>frame::multiDiv - testCase 2<br>";#函式說明:#建立多個用div做成的frame.#回傳結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗.#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示.#$result["content"],div frame的語法.#必填參數:#$conf["id"],字串陣列,每個div frame的id.$conf["id"]=array("A","B");#可省略參數:#$conf["content"],二維字串陣列,要放入到每個frame的內容,預設不使用,若有個要放有的不要放內容,則不放內容的元素設為null.$conf["content"][]=array("a<br>","a<br>","a<br>","a<br>");$conf["content"][]=array("b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>");#$conf["oneScreenSize"],字串陣列,各個frame是否要為視窗的高度,"true"代表要;"false"代表不要。裡面的div元素也會變成跟視窗一樣高.內部的div要使用line-height:normal樣式來取消效果.#$conf["oneScreenSize"]=array("");#$conf["height"],字串陣列,各個frame的高度,若不設置則請給予null,若 "oneScreenSize" 設置為 "true",則忽略本參數.#$conf["height"]=array("");#$conf["div2heightIsSeeHeightLessDiv1height"],字串,"true"代表第2個 div frame如果要跟第1個 div frame 來動態調整高度為用戶看到的高度減去第1個 div frame高度;預設為"false"代表不使用.若 "content" 的元素數量不等於2則會強制為"false".#$conf["div2heightIsSeeHeightLessDiv1height"]="false";$multiDiv=frame::multiDiv($conf);unset($conf);#如果設置失敗if($multiDiv["status"]==="false"){#印出內容var_dump($multiDiv);#停止執行exit;}#if end#印出內容echo $multiDiv["content"];*//*#提示當前執行的函數echo "<hr>frame::multiDiv - testCase 3<br>";#函式說明:#建立多個用div做成的frame.#回傳結果:#$result["status"],執行成功或失敗,成功為"true";"false"為失敗.#$result["functin"],字串,當前函數的名稱.#$result["error"],錯誤訊息提示.#$result["content"],div frame的語法.#必填參數:#$conf["id"],字串陣列,每個div frame的id.$conf["id"]=array("A","B");#可省略參數:#$conf["content"],二維字串陣列,要放入到每個frame的內容,預設不使用,若有個要放有的不要放內容,則不放內容的元素設為null.$conf["content"][]=array("a<br>","a<br>","a<br>","a<br>");$conf["content"][]=array("b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>","b<br>");#$conf["oneScreenSize"],字串陣列,各個frame是否要為視窗的高度,"true"代表要;"false"代表不要。裡面的div元素也會變成跟視窗一樣高.內部的div要使用line-height:normal樣式來取消效果.#$conf["oneScreenSize"]=array("");#$conf["height"],字串陣列,各個frame的高度,若不設置則請給予null,若 "oneScreenSize" 設置為 "true",則忽略本參數.$conf["height"]=array("100px",null);#$conf["div2heightIsSeeHeightLessDiv1height"],字串,"true"代表第2個 div frame如果要跟第1個 div frame 來動態調整高度為用戶看到的高度減去第1個 div frame高度;預設為"false"代表不使用.若 "content" 的元素數量不等於2則會強制為"false".$conf["div2heightIsSeeHeightLessDiv1height"]="true";$multiDiv=frame::multiDiv($conf);unset($conf);#如果設置失敗if($multiDiv["status"]==="false"){#印出內容var_dump($multiDiv);#停止執行exit;}#if end#印出內容echo $multiDiv["content"];*/?>