|
|
@ -10,6 +10,25 @@
|
|
|
|
<link rel="shortcut icon" href="/bootstrap/img/glyphicons_290_skull.png">
|
|
|
|
<link rel="shortcut icon" href="/bootstrap/img/glyphicons_290_skull.png">
|
|
|
|
|
|
|
|
|
|
|
|
<script language="javascript">
|
|
|
|
<script language="javascript">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//资源文件上传管理
|
|
|
|
|
|
|
|
function openKCFinder_singleFile_res() {
|
|
|
|
|
|
|
|
window.KCFinder = {};
|
|
|
|
|
|
|
|
window.KCFinder.callBack = function(url) {
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
switch ($this->config->item('site_code')) {
|
|
|
|
|
|
|
|
case 'ah':
|
|
|
|
|
|
|
|
echo "alert(url.replace('/kcfinder/upload/ah/','https://data.asiahighlights.com/'));";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:echo 'alert(url);';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
window.KCFinder = null;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
window.open('/kcfinder/browse.php?type=<?php echo $this->config->item('site_code'); ?>', 'kcfinder_textbox', 'status=0, toolbar=0, location=0, menubar=0, directories=0,resizable=1, scrollbars=0, width=800, height=600' );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//快速图片上传
|
|
|
|
//快速图片上传
|
|
|
|
function openKCFinder_fast() {
|
|
|
|
function openKCFinder_fast() {
|
|
|
|
window.CallBack = oopenKCFinder_fast_callback;
|
|
|
|
window.CallBack = oopenKCFinder_fast_callback;
|
|
|
@ -75,7 +94,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button class="btn btn-default btn-sm" type="submit">搜索</button>
|
|
|
|
<button class="btn btn-default btn-sm" type="submit">搜索</button>
|
|
|
|
<a href="#" onclick="openKCFinder_fast();" class="btn btn-default btn-sm" title="快速上传图片" ><span class="glyphicon glyphicon-picture"></span></a>
|
|
|
|
<a href="#" onclick="openKCFinder_singleFile_res();" class="btn btn-default btn-sm" title="快速上传图片" ><span class="glyphicon glyphicon-picture"></span></a>
|
|
|
|
<a href="#" title="静态化更新" class="btn btn-default btn-sm" data-toggle="modal" data-target="#cache_refresh_modal" ><span class="glyphicon glyphicon-repeat"></span></a>
|
|
|
|
<a href="#" title="静态化更新" class="btn btn-default btn-sm" data-toggle="modal" data-target="#cache_refresh_modal" ><span class="glyphicon glyphicon-repeat"></span></a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|