📄 fck_wulist.php~
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php
define( 'ROOT' , dirname(__FILE__) . '/../../../../' );
include_once( ROOT . 'lib/db.function.php' );
include_once( ROOT . 'lib/core.function.php' );
include_once( ROOT . 'lib/biz.function.php' );
include_once( ROOT . 'lib/plugin.function.php' );
include_once( ROOT . 'plugin/plugin.meta.php' );
//print_r( $_REQUEST );
$list = get_plugin_list();
$modules = get_active_modules();
$sees = get_see_list();
if( !empty( $_REQUEST['Lid'] ) )
$type_now = $_REQUEST['Lid'];
else
$type_now = basename($_REQUEST['type']);
foreach( $modules as $module )
{
if( $module['id'] == intval( $_REQUEST['Mid'] ) )
$mhtml[] = '<option value="' . $module['id'] . '" selected>' . $module['dy_module_name'] . '</option>';
else
$mhtml[] = '<option value="' . $module['id'] . '" >' . $module['dy_module_name'] . '</option>';
}
foreach( $list as $key=>$item )
{
if( $item['en_name'] == $type_now )
$ohtml[] = '<option value="' . $item['en_name'] . '" selected>' . $item['name'] . '</option>';
else
$ohtml[] = '<option value="' . $item['en_name'] . '">' . $item['name'] . '</option>';
}
foreach( $sees as $key=>$item )
{
if( $key == intval( $_REQUEST['Sid'] ) )
$shtml[] = '<option value="' . $key . '" selected>' . $item . '</option>';
else
$shtml[] = '<option value="' . $key . '">' . $item . '</option>';
}
//header( "Location : ../../../../?a=login" );
?>
<script>
var oEditor = window.parent.InnerDialogLoaded() ;
var FCKLang = oEditor.FCKLang ;
var FCKwulists = oEditor.FCKwulists ;
window.onload = function ()
{
// First of all, translate the dialog box texts
oEditor.FCKLanguageManager.TranslatePage( document ) ;
LoadSelected() ;
<?php if( strlen($type_now) > 0 ) : ?>
// Show the "Ok" button.
window.parent.SetOkButton( true ) ;
<?php endif; ?>
}
var eSelected = oEditor.FCKSelection.GetSelectedElement() ;
function LoadSelected()
{
if ( !eSelected )
return ;
if ( eSelected.tagName == 'DIV' && eSelected._fckwulist )
{
//document.getElementById('list_type').value = eSelected._fckwulist ;
<?php if( $_REQUEST['a'] != 'set' ) :?>
location = '?a=set&' + eSelected._fckwulist;
<?php endif; ?>
}
else
eSelected == null ;
}
function Ok()
{
var sVaule = 'Lid=' + document.getElementById('list_type').value ;
<?php if( $list[$type_now]['module_on'] ) : ?>
sVaule = sVaule + '&Mid=' + document.getElementById('module_id').value;
<?php endif; ?>
<?php if( $list[$type_now]['template_on'] ) : ?>
sVaule = sVaule + '&Tid=' + document.getElementById('tpl_id').value;
<?php endif; ?>
<?php if( $list[$type_now]['all_on'] ) : ?>
sVaule = sVaule + '&All=' + document.getElementById('item_all').value;
<?php endif; ?>
<?php if( $list[$type_now]['row_on'] ) : ?>
sVaule = sVaule + '&Row=' + document.getElementById('item_row').value;
<?php endif; ?>
<?php if( $list[$type_now]['see_on'] ) : ?>
sVaule = sVaule + '&Sid=' + document.getElementById('see_id').value;
<?php endif; ?>
<?php if( $list[$type_now]['tag_on'] ) : ?>
sVaule = sVaule + '&Tag=' + document.getElementById('riki_tag').value;
<?php endif; ?>
<?php if( $list[$type_now]['txt_on'] ) : ?>
sVaule = sVaule + '&Txt=' + encodeURIComponent(document.getElementById('txt_tag').value);
<?php endif; ?>
<?php if( $list[$type_now]['cache_on'] ) : ?>
sVaule = sVaule + '&Cache=' + encodeURIComponent(document.getElementById('cache_time').value);
<?php endif; ?>
FCKwulists.Add( sVaule );
return true;
}
function insert_it()
{
alert( 'he' );
}
</script>
</head>
<body>
<?php
//print_r( $_REQUEST );
//exit;
//print_r( $type_now );
//print_r( $list[$type_now] );
?>
<form action="" method="POST">
<table cellspacing="5" cellpadding="5" >
<tr>
<td width="80px">
<font color=red>鍒楄〃璁剧疆</font>
</td>
<td >
<a href="fck_wuword.php">鍙橀噺璁剧疆</a>
</td>
</tr>
<tr>
<td>
鏄剧ず鍐呭
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -