|
2021 |
||||
|
南 |
||||
|
5 |
1 |
3 |
||
|
東 |
4 |
6 |
8 |
西 |
|
9 |
2 |
7 |
||
|
北 |
<select id="ddlViewBy">
<option value="1">test1</option>
<option value="2" selected="selected">test2</option>
<option value="3">test3</option>
</select>
Running this code:var e = document.getElementById("ddlViewBy");
var strUser = e.options[e.selectedIndex].value;
Would make strUser be 2. If what you actually want is test2, then do this:var e = document.getElementById("ddlViewBy");
var strUser = e.options[e.selectedIndex].text;
Which would make strUser be test2
<?php if (version_compare(PHP_VERSION, '5.4.0') >= 0) { echo ' [OK] PHP version is newer than 5.4: '.phpversion(); } else { echo ' [ERROR] Your PHP version is too old for CKFinder 3.x.'; } if (!function_exists('gd_info')) { echo ' [ERROR] GD extension is NOT enabled.'; } else { echo ' [OK] GD extension is enabled.'; } if (!function_exists('finfo_file')) { echo ' [ERROR] Fileinfo extension is NOT enabled.'; } else { echo ' [OK] Fileinfo extension is enabled.'; } ?>
$config['authentication'] = function() { return false; };找到之後把裡面的false改成true。
$config['backends'][] = array( 'name' => 'default', 'adapter' => 'local', 'baseUrl' => '/ckfinder/userfiles/' );這裡的baseUrl可以變更檔案上傳後儲存的路徑。
<script src="ckfinder/ckfinder.js"></script>
<script> CKEDITOR.replace( 'content', {}); </script>,這時候如果我們把程式碼做一些簡單的修改,多加一行,改成這樣
<script> CKFinder.setupCKEditor(); CKEDITOR.replace( 'content', { }); </script>就可以把CKFinder和CKEditor整合在一起了。