@@ -5,6 +5,7 @@ | |||||
* @version $Id: album_add.php 1 8:26 2010年7月12日Z tianya $ | * @version $Id: album_add.php 1 8:26 2010年7月12日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -388,13 +389,13 @@ else if($dopost=='save') | |||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | $msg = " | ||||
请选择你的后续操作: | 请选择你的后续操作: | ||||
<a href='album_add.php?cid=$typeid'><u>继续发布图片</u></a> | |||||
<a href='album_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布图片</a> | |||||
| | ||||
<a href='archives_do.php?aid=".$arcID."&dopost=editArchives'><u>更改图集</u></a> | |||||
<a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-secondary btn-sm'>更改图集</a> | |||||
| | ||||
<a href='$artUrl' target='_blank'><u>预览文档</u></a> | |||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>预览文档</a> | |||||
| | ||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives'><u>已发布图片管理</u></a> | |||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>已发布图片管理</a> | |||||
| | ||||
$backurl | $backurl | ||||
"; | "; | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: album_edit.php 1 8:26 2010年7月12日Z tianya $ | * @version $Id: album_edit.php 1 8:26 2010年7月12日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -435,13 +436,13 @@ else if($dopost=='save') | |||||
//返回成功信息 | //返回成功信息 | ||||
$msg = | $msg = | ||||
" 请选择你的后续操作: | " 请选择你的后续操作: | ||||
<a href='album_add.php?cid=$typeid'><u>继续发布图片</u></a> | |||||
<a href='album_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布图片</a> | |||||
| | ||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives'><u>查看更改</u></a> | |||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-secondary btn-sm'>查看更改</a> | |||||
| | ||||
<a href='$arcUrl' target='_blank'><u>预览文档</u></a> | |||||
<a href='$arcUrl' target='_blank' class='btn btn-secondary btn-sm'>预览文档</a> | |||||
| | ||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives'><u>管理已发布图片</u></a> | |||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>管理已发布图片</a> | |||||
| | ||||
$backurl | $backurl | ||||
"; | "; | ||||
@@ -1,375 +0,0 @@ | |||||
<?php | |||||
require_once(dirname(__FILE__)."/config.php"); | |||||
CheckPurview('api_ucenter'); | |||||
if(!function_exists('file_put_contents')){ function file_put_contents($filename, $s) | |||||
{ | |||||
$fp = @fopen($filename, 'w'); | |||||
@fwrite($fp, $s); | |||||
@fclose($fp); | |||||
return TRUE; | |||||
}} | |||||
require_once(DEDEINC.'/dedetemplate.class.php'); | |||||
if(file_exists(DEDEROOT.'/uc_client/client.php')) | |||||
{ | |||||
if(!defined('UC_API')) define('UC_API', ''); | |||||
include_once DEDEROOT.'/uc_client/client.php'; | |||||
} | |||||
else | |||||
{ | |||||
ShowMsg('请安装UCenter模块!',-1); | |||||
exit(); | |||||
} | |||||
$dopost = api_gpc('dopost','R'); | |||||
$uc = new api_ucenter($dopost); | |||||
class api_ucenter | |||||
{ | |||||
var $action; | |||||
var $dtp; | |||||
var $config; | |||||
//php5构造函数PHP>=5.0 | |||||
function __construct($ac = '') | |||||
{ | |||||
$action = 'uc_'.(empty($ac)||(!in_array($ac,array('install','edit'))) ? 'show' : trim($ac)); | |||||
$this->dtp = new DedeTemplate(); | |||||
$this->config = DEDEINC.'/common.inc.php'; | |||||
$this->$action(); | |||||
} | |||||
//构造类成员PHP<5.0 | |||||
function api_ucenter($ac = '') | |||||
{ | |||||
$this->__construct($ac); | |||||
} | |||||
function uc_install() | |||||
{ | |||||
$uc_setings = api_gpc('uc_setings','P'); | |||||
if(!isset($uc_setings['authkey']) || empty($uc_setings['authkey'])) | |||||
{ | |||||
ShowMsg('请填写uc创始人密码!',-1); | |||||
exit(); | |||||
} | |||||
$uc_setings['ucapi'] = preg_replace("/\/$/", '', trim($uc_setings['ucapi'])); | |||||
if(empty($uc_setings['ucapi']) || !preg_match("/^(http:\/\/)/i", $uc_setings['ucapi'])) | |||||
{ | |||||
ShowMsg('请填正确的服务端地址以http://开头!',-1); | |||||
exit(); | |||||
} | |||||
else | |||||
{ | |||||
if(!$uc_setings['ucip']) | |||||
{ | |||||
$temp = @parse_url($uc_setings['ucapi']); | |||||
$uc_setings['ucapi'] = gethostbyname($temp['host']); | |||||
if(ip2long($uc_setings['ucapi']) == -1 || ip2long($uc_setings['ucapi']) === FALSE) | |||||
{ | |||||
$uc_setings['ucip'] = '127.0.0.1'; | |||||
} | |||||
} | |||||
} | |||||
$ucinfo = api_fopen($uc_setings['ucapi'].'/index.php?m=app&a=ucinfo', 500, '', '', 1, $uc_setings['ucip']); | |||||
list($status, $ucversion, $ucrelease, $uccharset, $ucdbcharset, $apptypes) = explode('|', $ucinfo); | |||||
if($status != 'UC_STATUS_OK') | |||||
{ | |||||
ShowMsg('uc服务端地址无效,请仔细检查您安装的uc服务端地址!',-1); | |||||
exit(); | |||||
} | |||||
else | |||||
{ | |||||
$ucdbcharset = strtolower($ucdbcharset ? str_replace('-', '', $ucdbcharset) : $ucdbcharset); | |||||
if(UC_CLIENT_VERSION > $ucversion) | |||||
{ | |||||
ShowMsg('uc服务端版本不一致,您当前的uc客服端版本为:'.UC_CLIENT_VERSION.',而服务端版本为:'.$ucversion.'!',-1); | |||||
exit(); | |||||
} | |||||
elseif($ucdbcharset != 'gbk') | |||||
{ | |||||
ShowMsg('uc服务端编码与DedeCMS编码不一致!要求您的uc服务端编码为:gbk编码.',-1); | |||||
exit(); | |||||
} | |||||
//标签应用模板 | |||||
$app_tagtemplates = 'apptagtemplates[template]='.urlencode('<a href="{url}" target="_blank">{title}</a>').'&'. | |||||
'apptagtemplates[fields][title]='.urlencode('标题').'&'. | |||||
'apptagtemplates[fields][writer]='.urlencode('作者').'&'. | |||||
'apptagtemplates[fields][pubdate]='.urlencode('时间').'&'. | |||||
'apptagtemplates[fields][url]='.urlencode('地址'); | |||||
$postdata = 'm=app&a=add&ucfounder=&ucfounderpw='.urlencode($uc_setings['authkey']).'&apptype=OTHER&appname='.urlencode($GLOBALS['cfg_webname']).'&appurl='.urlencode($GLOBALS['cfg_basehost']).'&appip=&appcharset=gbk&appdbcharset=gbk&'.$app_tagtemplates.'&release='.UC_CLIENT_RELEASE; | |||||
$ucconfig = api_fopen($uc_setings['ucapi'].'/index.php', 500, $postdata, '', 1, $uc_setings['ucip']); | |||||
if(strstr($ucconfig,'<?xml')) | |||||
{ | |||||
$temp = explode('<?xml', $ucconfig); | |||||
$ucconfig = $temp[0]; unset($temp); | |||||
} | |||||
if(empty($ucconfig)) | |||||
{ | |||||
ShowMsg('请填写有效的配置信息!',-1); | |||||
exit(); | |||||
} | |||||
elseif($ucconfig == '-1') | |||||
{ | |||||
ShowMsg('创始人密码错误!',-1); | |||||
exit(); | |||||
} | |||||
else | |||||
{ | |||||
list($appauthkey, $appid) = explode('|', $ucconfig); | |||||
if(empty($appauthkey) || empty($appid)) | |||||
{ | |||||
ShowMsg('数据获取失败!',-1); | |||||
exit(); | |||||
} | |||||
elseif($succeed = api_write_config($ucconfig."|".$uc_setings['ucapi']."|".$uc_setings['ucip'], $this->config)) | |||||
{ | |||||
ShowMsg('安装成功!',-1); | |||||
exit(); | |||||
} | |||||
else | |||||
{ | |||||
ShowMsg('写入配置数据失败!'.$this->config.' 请设置可写权限!',-1); | |||||
exit(); | |||||
} | |||||
} | |||||
} | |||||
} | |||||
function uc_edit() | |||||
{ | |||||
$uc_setings = api_gpc('uc_setings','P'); | |||||
$uc_dbpass = $uc_setings['dbpass'] == '********' ? UC_DBPW : $uc_setings['dbpass']; | |||||
$fp = fopen($this->config, 'r'); | |||||
$content = fread($fp, filesize($this->config)); | |||||
$content = trim($content); | |||||
$content = substr($content, -2) == '?>' ? substr($content, 0, -2) : $content; | |||||
$content = strstr($content, '_|cfg_|GLOBALS') ? str_replace('_|cfg_|GLOBALS','cfg_|GLOBALS',$content) : $content; | |||||
fclose($fp); | |||||
$connect = ''; | |||||
if($uc_setings['connect']) | |||||
{ | |||||
$uc_dblink = @mysql_connect($uc_setings['dbhost'], $uc_setings['dbuser'], $uc_dbpass, 1); | |||||
if(!$uc_dblink) | |||||
{ | |||||
ShowMsg('数据库连接失败!',-1); | |||||
exit(); | |||||
}else{ | |||||
mysql_close($uc_dblink); | |||||
} | |||||
$connect = 'mysql'; | |||||
$content = api_insert_config($content, "/define\('UC_DBHOST',\s*'.*?'\);/i", "define('UC_DBHOST', '".$uc_setings['dbhost']."');"); | |||||
$content = api_insert_config($content, "/define\('UC_DBUSER',\s*'.*?'\);/i", "define('UC_DBUSER', '".$uc_setings['dbuser']."');"); | |||||
$content = api_insert_config($content, "/define\('UC_DBPW',\s*'.*?'\);/i", "define('UC_DBPW', '".$uc_dbpass."');"); | |||||
$content = api_insert_config($content, "/define\('UC_DBNAME',\s*'.*?'\);/i", "define('UC_DBNAME', '".$uc_setings['dbname']."');"); | |||||
$content = api_insert_config($content, "/define\('UC_DBTABLEPRE',\s*'.*?'\);/i", "define('UC_DBTABLEPRE', '`".$uc_setings['dbname'].'`.'.$uc_setings['dbtablepre']."');"); | |||||
} | |||||
$content = api_insert_config($content, "/define\('UC_CONNECT',\s*'.*?'\);/i", "define('UC_CONNECT', '$connect');"); | |||||
$content = api_insert_config($content, "/define\('UC_KEY',\s*'.*?'\);/i", "define('UC_KEY', '".$uc_setings['authkey']."');"); | |||||
$content = api_insert_config($content, "/define\('UC_API',\s*'.*?'\);/i", "define('UC_API', '".$uc_setings['ucapi']."');"); | |||||
$content = api_insert_config($content, "/define\('UC_IP',\s*'.*?'\);/i", "define('UC_IP', '".$uc_setings['ucip']."');"); | |||||
$content = api_insert_config($content, "/define\('UC_APPID',\s*'?.*?'?\);/i", "define('UC_APPID', '".UC_APPID."');"); | |||||
$content .= '?>'; | |||||
if($fp = @fopen($this->config, 'w')) | |||||
{ | |||||
@fwrite($fp, trim($content)); | |||||
@fclose($fp); | |||||
ShowMsg('配置已经更改!',-1); | |||||
exit(); | |||||
}else{ | |||||
ShowMsg('写入配置数据失败!'.$this->config.' 请设置可写权限!',-1); | |||||
exit(); | |||||
} | |||||
} | |||||
function uc_show() | |||||
{ | |||||
$this->dtp->Assign('uc_config_file',$this->config); | |||||
if(!defined('UC_APPID')) | |||||
{ | |||||
$this->dtp->LoadTemplate(DEDEADMIN.'/templets/api_ucenter_install.htm'); | |||||
} | |||||
else | |||||
{ | |||||
$uc_api_open = false; | |||||
$ucapparray = uc_app_ls(); | |||||
foreach($ucapparray as $apparray) | |||||
{ | |||||
if($apparray['appid'] == UC_APPID) | |||||
{ | |||||
$uc_api_open = true; | |||||
break; | |||||
} | |||||
} | |||||
if(!$uc_api_open) | |||||
{ | |||||
ShowMsg("DedeCMS没找到正确的uc配置!",-1); | |||||
exit(); | |||||
} | |||||
list($dbname,$dbtablepre) = explode('.',str_replace('`','',UC_DBTABLEPRE)); | |||||
$uc_setings = array('appid' => UC_APPID, 'ucapi' => UC_API, 'connect' => UC_CONNECT, 'dbhost' => UC_DBHOST, 'dbuser' => UC_DBUSER,'dbpass' => UC_DBPW, 'dbname' => $dbname, 'dbtablepre' => $dbtablepre,'ucip' => UC_IP,'authkey' => UC_KEY); | |||||
$this->dtp->Assign('uc_setings',$uc_setings); | |||||
$this->dtp->LoadTemplate(DEDEADMIN.'/templets/api_ucenter_edit.htm'); | |||||
} | |||||
$this->dtp->Display(); | |||||
exit(); | |||||
} | |||||
} | |||||
/* | |||||
class uc_function{...} | |||||
*/ | |||||
function api_fopen($url, $limit = 0, $post = '', $cookie = '', $bysocket = FALSE, $ip = '', $timeout = 15, $block = TRUE) | |||||
{ | |||||
$return = ''; | |||||
$matches = parse_url($url); | |||||
$host = $matches['host']; | |||||
$path = $matches['path'] ? $matches['path'].($matches['query'] ? '?'.$matches['query'] : '') : '/'; | |||||
$port = !empty($matches['port']) ? $matches['port'] : 80; | |||||
if($post) | |||||
{ | |||||
$out = "POST $path HTTP/1.0\r\n"; | |||||
$out .= "Accept: */*\r\n"; | |||||
//$out .= "Referer: $boardurl\r\n"; | |||||
$out .= "Accept-Language: zh-cn\r\n"; | |||||
$out .= "Content-Type: application/x-www-form-urlencoded\r\n"; | |||||
$out .= "User-Agent: $_SERVER[HTTP_USER_AGENT]\r\n"; | |||||
$out .= "Host: $host\r\n"; | |||||
$out .= 'Content-Length: '.strlen($post)."\r\n"; | |||||
$out .= "Connection: Close\r\n"; | |||||
$out .= "Cache-Control: no-cache\r\n"; | |||||
$out .= "Cookie: $cookie\r\n\r\n"; | |||||
$out .= $post; | |||||
}else{ | |||||
$out = "GET $path HTTP/1.0\r\n"; | |||||
$out .= "Accept: */*\r\n"; | |||||
//$out .= "Referer: $boardurl\r\n"; | |||||
$out .= "Accept-Language: zh-cn\r\n"; | |||||
$out .= "User-Agent: $_SERVER[HTTP_USER_AGENT]\r\n"; | |||||
$out .= "Host: $host\r\n"; | |||||
$out .= "Connection: Close\r\n"; | |||||
$out .= "Cookie: $cookie\r\n\r\n"; | |||||
} | |||||
$fp = @fsockopen(($host ? $host : $ip), $port, $errno, $errstr, $timeout); | |||||
if(!$fp) | |||||
{ | |||||
return ''; | |||||
}else{ | |||||
stream_set_blocking($fp, $block); | |||||
stream_set_timeout($fp, $timeout); | |||||
@fwrite($fp, $out); | |||||
$status = stream_get_meta_data($fp); | |||||
if(!$status['timed_out']) | |||||
{ | |||||
while (!feof($fp)) | |||||
{ | |||||
if(($header = @fgets($fp)) && ($header == "\r\n" || $header == "\n")) | |||||
{ | |||||
break; | |||||
} | |||||
} | |||||
$stop = false; | |||||
while(!feof($fp) && !$stop) | |||||
{ | |||||
$data = fread($fp, ($limit == 0 || $limit > 8192 ? 8192 : $limit)); | |||||
$return .= $data; | |||||
if($limit) | |||||
{ | |||||
$limit -= strlen($data); | |||||
$stop = $limit <= 0; | |||||
} | |||||
} | |||||
} | |||||
@fclose($fp); | |||||
return $return; | |||||
} | |||||
} | |||||
function api_write_config($config, $file) | |||||
{ | |||||
$success = false; | |||||
list($appauthkey, $appid, $ucdbhost, $ucdbname, $ucdbuser, $ucdbpw, $ucdbcharset, $uctablepre, $uccharset, $ucapi, $ucip) = explode('|', $config); | |||||
if($content = file_get_contents($file)) | |||||
{ | |||||
$content = trim($content); | |||||
$content = substr($content, -2) == '?>' ? substr($content, 0, -2) : $content; | |||||
$content = strstr($content, '_|cfg_|GLOBALS') ? str_replace('_|cfg_|GLOBALS','cfg_|GLOBALS',$content) : $content; | |||||
$link = mysql_connect($ucdbhost, $ucdbuser, $ucdbpw, 1); | |||||
$uc_connnect = $link && mysql_select_db($ucdbname, $link) ? 'mysql' : ''; | |||||
$content = api_insert_config($content, "/define\('UC_CONNECT',\s*'.*?'\);/i", "define('UC_CONNECT', '$uc_connnect');"); | |||||
$content = api_insert_config($content, "/define\('UC_DBHOST',\s*'.*?'\);/i", "define('UC_DBHOST', '$ucdbhost');"); | |||||
$content = api_insert_config($content, "/define\('UC_DBUSER',\s*'.*?'\);/i", "define('UC_DBUSER', '$ucdbuser');"); | |||||
$content = api_insert_config($content, "/define\('UC_DBPW',\s*'.*?'\);/i", "define('UC_DBPW', '$ucdbpw');"); | |||||
$content = api_insert_config($content, "/define\('UC_DBNAME',\s*'.*?'\);/i", "define('UC_DBNAME', '$ucdbname');"); | |||||
$content = api_insert_config($content, "/define\('UC_DBCHARSET',\s*'.*?'\);/i", "define('UC_DBCHARSET', '$ucdbcharset');"); | |||||
$content = api_insert_config($content, "/define\('UC_DBTABLEPRE',\s*'.*?'\);/i", "define('UC_DBTABLEPRE', '`$ucdbname`.$uctablepre');"); | |||||
$content = api_insert_config($content, "/define\('UC_DBCONNECT',\s*'.*?'\);/i", "define('UC_DBCONNECT', '0');"); | |||||
$content = api_insert_config($content, "/define\('UC_KEY',\s*'.*?'\);/i", "define('UC_KEY', '$appauthkey');"); | |||||
$content = api_insert_config($content, "/define\('UC_API',\s*'.*?'\);/i", "define('UC_API', '$ucapi');"); | |||||
$content = api_insert_config($content, "/define\('UC_CHARSET',\s*'.*?'\);/i", "define('UC_CHARSET', '$uccharset');"); | |||||
$content = api_insert_config($content, "/define\('UC_IP',\s*'.*?'\);/i", "define('UC_IP', '$ucip');"); | |||||
$content = api_insert_config($content, "/define\('UC_APPID',\s*'?.*?'?\);/i", "define('UC_APPID', '$appid');"); | |||||
$content = api_insert_config($content, "/define\('UC_PPP',\s*'?.*?'?\);/i", "define('UC_PPP', '20');"); | |||||
$content .= "\r\n".'?>'; | |||||
if(@file_put_contents($file, $content)) | |||||
{ | |||||
$success = true; | |||||
} | |||||
} | |||||
return $success; | |||||
} | |||||
function api_insert_config($s, $find, $replace) | |||||
{ | |||||
if(preg_match($find, $s)) | |||||
{ | |||||
$s = preg_replace($find, $replace, $s); | |||||
}else{ | |||||
// 插入到最后一行 | |||||
$s .= "\r\n".$replace; | |||||
} | |||||
return $s; | |||||
} | |||||
function api_gpc($k, $var='R') | |||||
{ | |||||
switch($var) | |||||
{ | |||||
case 'G': $var = &$_GET; break; | |||||
case 'P': $var = &$_POST; break; | |||||
case 'C': $var = &$_COOKIE; break; | |||||
case 'R': $var = &$_REQUEST; break; | |||||
} | |||||
return isset($var[$k]) ? $var[$k] : NULL; | |||||
} | |||||
if(!function_exists('file_put_contents')){ function file_put_contents($filename, $s) | |||||
{ | |||||
$fp = @fopen($filename, 'w'); | |||||
@fwrite($fp, $s); | |||||
@fclose($fp); | |||||
return TRUE; | |||||
}} | |||||
?> |
@@ -5,6 +5,7 @@ | |||||
* @version $Id: archives_add.php 1 8:26 2010年7月12日Z tianya $ | * @version $Id: archives_add.php 1 8:26 2010年7月12日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -234,13 +235,13 @@ color,writer,source,litpic,pubdate,senddate,mid,voteid,notpost,description,keywo | |||||
ClearMyAddon($arcID, $title); | ClearMyAddon($arcID, $title); | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " 请选择你的后续操作: | $msg = " 请选择你的后续操作: | ||||
<a href='archives_add.php?cid=$typeid'><u>继续发布文档</u></a> | |||||
<a href='archives_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布文档</a> | |||||
| | ||||
<a href='$artUrl' target='_blank'><u>查看文档</u></a> | |||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文档</a> | |||||
| | ||||
<a href='archives_do.php?aid=".$arcID."&dopost=editArchives'><u>更改文档</u></a> | |||||
<a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-secondary btn-sm'>更改文档</a> | |||||
| | ||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives'><u>已发布文档管理</u></a> | |||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>已发布文档管理</a> | |||||
| | ||||
$backurl | $backurl | ||||
"; | "; | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: archives_do.php 1 8:26 2010年7月12日Z tianya $ | * @version $Id: archives_do.php 1 8:26 2010年7月12日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -619,9 +620,9 @@ else if($dopost=='quickEdit') | |||||
{ | { | ||||
if($trow->att=='j' || $trow->att=='p') continue; | if($trow->att=='j' || $trow->att=='p') continue; | ||||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | if(preg_match("#".$trow->att."#", $arcRow['flag'])) | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked' />{$trow->attname}.{$trow->att}"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked' /> {$trow->attname}.{$trow->att}</label> "; | |||||
else | else | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' />{$trow->attname}.{$trow->att}"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' /> {$trow->attname}.{$trow->att}</label> "; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -664,10 +665,10 @@ else if($dopost=='quickEdit') | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr height='32'> | <tr height='32'> | ||||
<td colspan='2' align='center' style='padding-top:12px'> | |||||
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer" /> | |||||
<td colspan='2' align='center' style='padding-top:12px' class='py-3'> | |||||
<button type="submit" class="btn btn-secondary">保存</button> | |||||
| | ||||
<img src="images/button_back.gif" width="60" height="22" border="0" onclick='HideObj("<?php echo $divname; ?>");ChangeFullDiv("hide");' style="cursor:pointer" /> | |||||
<button type="button" onclick='HideObj("<?php echo $divname; ?>");ChangeFullDiv("hide");' class="btn btn-secondary">关闭</button> | |||||
</td> | </td> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: archives_edit.php 1 8:26 2010年7月12日Z tianya $ | * @version $Id: archives_edit.php 1 8:26 2010年7月12日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -244,13 +245,13 @@ else if($dopost=='save') | |||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | $msg = " | ||||
请选择你的后续操作: | 请选择你的后续操作: | ||||
<a href='archives_add.php?cid=$typeid'><u>发布新文档</u></a> | |||||
<a href='archives_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新文档</a> | |||||
| | ||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives'><u>查看更改</u></a> | |||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-secondary btn-sm'>查看更改</a> | |||||
| | ||||
<a href='$artUrl' target='_blank'><u>查看文档</u></a> | |||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文档</a> | |||||
| | ||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives'><u>管理文档</u></a> | |||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>管理文档</a> | |||||
| | ||||
$backurl | $backurl | ||||
"; | "; | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: archives_sg_add.php 1 8:26 2010年7月12日Z tianya $ | * @version $Id: archives_sg_add.php 1 8:26 2010年7月12日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -191,15 +192,15 @@ else if($dopost=='save') | |||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | $msg = " | ||||
请选择你的后续操作: | 请选择你的后续操作: | ||||
<a href='archives_sg_add.php?cid=$typeid'><u>继续发布文档</u></a> | |||||
<a href='archives_sg_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布文档</a> | |||||
| | ||||
<a href='$artUrl' target='_blank'><u>查看文档</u></a> | |||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文档</a> | |||||
| | ||||
<a href='archives_do.php?aid=".$arcID."&dopost=editArchives'><u>更改文档</u></a> | |||||
<a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-secondary btn-sm'>更改文档</a> | |||||
| | ||||
<a href='content_sg_list.php?cid=$typeid&channelid={$channelid}&dopost=listArchives'><u>已发布文档管理</u></a> | |||||
<a href='content_sg_list.php?cid=$typeid&channelid={$channelid}&dopost=listArchives' class='btn btn-secondary btn-sm'>已发布文档管理</a> | |||||
| | ||||
<a href='catalog_main.php'><u>网站栏目管理</u></a> | |||||
<a href='catalog_main.php' class='btn btn-secondary btn-sm'>网站栏目管理</a> | |||||
"; | "; | ||||
$wintitle = "成功发布文档!"; | $wintitle = "成功发布文档!"; | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: archives_sg_edit.php 1 8:26 2010年7月12日Z tianya $ | * @version $Id: archives_sg_edit.php 1 8:26 2010年7月12日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -175,15 +176,15 @@ else if($dopost=='save') | |||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | $msg = " | ||||
请选择你的后续操作: | 请选择你的后续操作: | ||||
<a href='archives_sg_add.php?cid=$typeid'><u>发布新文档</u></a> | |||||
<a href='archives_sg_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新文档</a> | |||||
| | ||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives'><u>查看更改</u></a> | |||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-secondary btn-sm'>查看更改</a> | |||||
| | ||||
<a href='$artUrl' target='_blank'><u>查看文档</u></a> | |||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文档</a> | |||||
| | ||||
<a href='catalog_do.php?cid=$typeid&channelid={$channelid}&dopost=listArchives'><u>管理文档</u></a> | |||||
<a href='catalog_do.php?cid=$typeid&channelid={$channelid}&dopost=listArchives' class='btn btn-secondary btn-sm'>管理文档</a> | |||||
| | ||||
<a href='catalog_main.php'><u>网站栏目管理</u></a> | |||||
<a href='catalog_main.php' class='btn btn-secondary btn-sm'>网站栏目管理</a> | |||||
"; | "; | ||||
$wintitle = "成功更改文档!"; | $wintitle = "成功更改文档!"; | ||||
@@ -1,4 +1,14 @@ | |||||
<?php | <?php | ||||
/** | |||||
* 文档发布 | |||||
* | |||||
* @version $Id: article_add.php 2020年9月14日 tianya $ | |||||
* @package DedeCMS.Administrator | |||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | |||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | |||||
* @link http://www.dedecms.com | |||||
*/ | |||||
require_once(dirname(__FILE__).'/config.php'); | require_once(dirname(__FILE__).'/config.php'); | ||||
CheckPurview('a_New,a_AccNew'); | CheckPurview('a_New,a_AccNew'); | ||||
require_once(DEDEINC.'/customfields.func.php'); | require_once(DEDEINC.'/customfields.func.php'); | ||||
@@ -241,7 +251,7 @@ else if($dopost=='save') | |||||
//生成HTML | //生成HTML | ||||
InsertTags($tags,$arcID); | InsertTags($tags,$arcID); | ||||
if($cfg_remote_site=='Y' && $isremote=="1") | if($cfg_remote_site=='Y' && $isremote=="1") | ||||
{ | |||||
{ | |||||
if($serviterm!=""){ | if($serviterm!=""){ | ||||
list($servurl,$servuser,$servpwd) = explode(',',$serviterm); | list($servurl,$servuser,$servpwd) = explode(',',$serviterm); | ||||
$config=array( 'hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd,'debug' => 'TRUE'); | $config=array( 'hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd,'debug' => 'TRUE'); | ||||
@@ -278,13 +288,13 @@ else if($dopost=='save') | |||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " 请选择你的后续操作: | $msg = " 请选择你的后续操作: | ||||
<a href='article_add.php?cid=$typeid'><u>继续发布文章</u></a> | |||||
<a href='article_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布文章</a> | |||||
| | ||||
<a href='$artUrl' target='_blank'><u>查看文章</u></a> | |||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文章</a> | |||||
| | ||||
<a href='archives_do.php?aid=".$arcID."&dopost=editArchives'><u>更改文章</u></a> | |||||
<a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-secondary btn-sm'>更改文章</a> | |||||
| | ||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives'><u>已发布文章管理</u></a> | |||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>已发布文章管理</a> | |||||
| | ||||
$backurl | $backurl | ||||
"; | "; | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: article_allowurl_edit.php 1 11:36 2010年10月8日Z tianya $ | * @version $Id: article_allowurl_edit.php 1 11:36 2010年10月8日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: article_edit.php 1 14:12 2010年7月12日Z tianya $ | * @version $Id: article_edit.php 1 14:12 2010年7月12日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -261,13 +262,13 @@ else if($dopost=='save') | |||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | $msg = " | ||||
请选择你的后续操作: | 请选择你的后续操作: | ||||
<a href='article_add.php?cid=$typeid'><u>发布新文章</u></a> | |||||
<a href='article_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新文章</a> | |||||
| | ||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives'><u>查看更改</u></a> | |||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-secondary btn-sm'>查看更改</a> | |||||
| | ||||
<a href='$artUrl' target='_blank'><u>查看文章</u></a> | |||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文章</a> | |||||
| | ||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives'><u>管理文章</u></a> | |||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>管理文章</a> | |||||
| | ||||
$backurl | $backurl | ||||
"; | "; | ||||
@@ -47,7 +47,16 @@ background: url(../images/input.png) repeat-x scroll 0px 0px; | |||||
} | } | ||||
select { | select { | ||||
padding: 3px; | |||||
height: calc(1.5em + .75rem + 2px); | |||||
padding: .375rem .75rem; | |||||
font-size: 1rem; | |||||
font-weight: 400; | |||||
color: #495057; | |||||
background-color: #fff; | |||||
background-clip: padding-box; | |||||
border: 1px solid #ced4da; | |||||
border-radius: .25rem; | |||||
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; | |||||
} | } | ||||
input[type="button"],input[type="submit"],input[type="reset"] { | input[type="button"],input[type="submit"],input[type="reset"] { | ||||
@@ -62,11 +71,16 @@ cursor: pointer; | |||||
} | } | ||||
input[type="text"],input[type="password"] { | input[type="text"],input[type="password"] { | ||||
border-width: 1px; | |||||
border-style: solid; | |||||
border-color: #707070 #CECECE #CECECE #707070; | |||||
padding: 2px 4px; | |||||
height: 18px; | |||||
font-size: 1rem; | |||||
font-weight: 400; | |||||
color: #495057; | |||||
background-color: #fff; | |||||
background-clip: padding-box; | |||||
border: 1px solid #ced4da; | |||||
border-radius: .25rem; | |||||
height: calc(1.5em + .75rem + 2px); | |||||
padding: .375rem .75rem; | |||||
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; | |||||
line-height: 18px; | line-height: 18px; | ||||
vertical-align: middle; | vertical-align: middle; | ||||
} | } | ||||
@@ -80,6 +94,11 @@ box-shadow: 0 0 3px #A5C760; | |||||
outline: none; | outline: none; | ||||
} | } | ||||
label { | |||||
display: inline-block; | |||||
margin: .5rem 0; | |||||
} | |||||
.alltxt { | .alltxt { | ||||
height: 18px; | height: 18px; | ||||
line-height: 18px; | line-height: 18px; | ||||
@@ -91,14 +110,19 @@ border-color: #707070 #CECECE #CECECE #707070; | |||||
} | } | ||||
textarea { | textarea { | ||||
background: url(../images/input.png) #fff repeat-x scroll 0px 0px; | |||||
border-width: 1px; | |||||
border-style: solid; | |||||
border-color: #707070 #CECECE #CECECE #707070; | |||||
font-size: 1rem; | |||||
font-weight: 400; | |||||
color: #495057; | |||||
background-color: #fff; | |||||
background-clip: padding-box; | |||||
border: 1px solid #ced4da; | |||||
border-radius: .25rem; | |||||
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; | |||||
padding: 2px 4px; | padding: 2px 4px; | ||||
vertical-align: middle; | vertical-align: middle; | ||||
line-height: 16px; | line-height: 16px; | ||||
overflow: auto; | overflow: auto; | ||||
resize: vertical; | |||||
} | } | ||||
textarea:focus { | textarea:focus { | ||||
@@ -232,7 +256,7 @@ background-color: #E6E6E6 | |||||
.bline { | .bline { | ||||
border-bottom: 1px dotted #BCBCBC; | border-bottom: 1px dotted #BCBCBC; | ||||
height: 28px; | |||||
height: 36px; | |||||
background-color: #FFFFFF; | background-color: #FFFFFF; | ||||
} | } | ||||
@@ -368,7 +392,7 @@ filter: Alpha(opacity=50); | |||||
opacity: 0.5; | opacity: 0.5; | ||||
position: absolute; | position: absolute; | ||||
width: 100%; | width: 100%; | ||||
height: 2500px; | |||||
height: 120%; | |||||
} | } | ||||
.quicksel { | .quicksel { | ||||
@@ -612,7 +636,7 @@ padding-left: 23px; | |||||
} | } | ||||
#title { | #title { | ||||
background: url(../images/ruler.gif) repeat-x 0px 5px; | |||||
background: url(../images/ruler.gif) repeat-x 0px 10px; | |||||
} | } | ||||
.spec { | .spec { | ||||
@@ -636,10 +660,6 @@ img { | |||||
vertical-align: baseline; | vertical-align: baseline; | ||||
} | } | ||||
input, | |||||
select { | |||||
height: auto !important; | |||||
} | |||||
.maintable { | .maintable { | ||||
width: 98%!important; | width: 98%!important; | ||||
@@ -1,4 +1,5 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 图片选择框 | * 图片选择框 | ||||
* | * | ||||
@@ -8,282 +9,276 @@ | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | |||||
include(DEDEDATA.'/mark/inc_photowatermark_config.php'); | |||||
if(empty($activepath)) | |||||
{ | |||||
require_once(dirname(__FILE__) . "/config.php"); | |||||
include(DEDEDATA . '/mark/inc_photowatermark_config.php'); | |||||
if (empty($activepath)) { | |||||
$activepath = ''; | $activepath = ''; | ||||
} | } | ||||
if(empty($imgstick)) | |||||
{ | |||||
if (empty($imgstick)) { | |||||
$imgstick = ''; | $imgstick = ''; | ||||
} | } | ||||
$noeditor = isset($noeditor)? $noeditor : ''; | |||||
$noeditor = isset($noeditor) ? $noeditor : ''; | |||||
$activepath = str_replace('.', '', $activepath); | $activepath = str_replace('.', '', $activepath); | ||||
$activepath = preg_replace("#\/{1,}#", '/', $activepath); | $activepath = preg_replace("#\/{1,}#", '/', $activepath); | ||||
if(strlen($activepath) < strlen($cfg_medias_dir)) | |||||
{ | |||||
if (strlen($activepath) < strlen($cfg_medias_dir)) { | |||||
$activepath = $cfg_medias_dir; | $activepath = $cfg_medias_dir; | ||||
} | } | ||||
$inpath = $cfg_basedir.$activepath; | |||||
$activeurl = '..'.$activepath; | |||||
$inpath = $cfg_basedir . $activepath; | |||||
$activeurl = '..' . $activepath; | |||||
if(empty($f)) | |||||
{ | |||||
if (empty($f)) { | |||||
$f = 'form1.picname'; | $f = 'form1.picname'; | ||||
} | } | ||||
$f = RemoveXSS($f); | $f = RemoveXSS($f); | ||||
if(empty($v)) | |||||
{ | |||||
if (empty($v)) { | |||||
$v = 'picview'; | $v = 'picview'; | ||||
} | } | ||||
if(empty($comeback)) | |||||
{ | |||||
if (empty($comeback)) { | |||||
$comeback = ''; | $comeback = ''; | ||||
} | } | ||||
$addparm = ''; | $addparm = ''; | ||||
if (!empty($CKEditor)) | |||||
{ | |||||
$addparm = '&CKEditor='.$CKEditor; | |||||
if (!empty($CKEditor)) { | |||||
$addparm = '&CKEditor=' . $CKEditor; | |||||
$f = $CKEditor; | $f = $CKEditor; | ||||
} | } | ||||
if (!empty($CKEditorFuncNum)) | |||||
{ | |||||
$addparm .= '&CKEditorFuncNum='.$CKEditorFuncNum; | |||||
if (!empty($CKEditorFuncNum)) { | |||||
$addparm .= '&CKEditorFuncNum=' . $CKEditorFuncNum; | |||||
} | } | ||||
if (!empty($noeditor)) | |||||
{ | |||||
if (!empty($noeditor)) { | |||||
$addparm .= '&noeditor=yes'; | $addparm .= '&noeditor=yes'; | ||||
} | } | ||||
?> | ?> | ||||
<html> | <html> | ||||
<head> | <head> | ||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | |||||
<title>图片浏览器</title> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | |||||
.linerow {border-bottom: 1px solid #CBD8AC;} | |||||
.napisdiv {left:40;top:3;width:150px;height:100px;position:absolute;z-index:3;display:none;} | |||||
</style> | |||||
<script> | |||||
function nullLink(){ return; } | |||||
function ChangeImage(surl){ document.getElementById('picview').src = surl; } | |||||
</script> | |||||
</head> | |||||
<body background='img/allbg.gif' leftmargin='0' topmargin='0'> | |||||
<div id="floater" class="napisdiv"> | |||||
<a href="javascript:nullLink();" onClick="document.getElementById('floater').style.display='none';"><img src='img/picviewnone.gif' id='picview' border='0' alt='单击关闭预览'></a> | |||||
</div> | |||||
<SCRIPT language=JavaScript src="../js/float.js"></SCRIPT> | |||||
<SCRIPT language=JavaScript> | |||||
function nullLink(){ return; } | |||||
function ChangeImage(surl){ document.getElementById('floater').style.display='block';document.getElementById('picview').src = surl; } | |||||
function TNav() | |||||
{ | |||||
if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE'; | |||||
else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF'; | |||||
else return "OT"; | |||||
} | |||||
// 获取地址参数 | |||||
function getUrlParam(paramName) | |||||
{ | |||||
var reParam = new RegExp('(?:[\?&]|&)' + paramName + '=([^&]+)', 'i') ; | |||||
var match = window.location.search.match(reParam) ; | |||||
return (match && match.length > 1) ? match[1] : '' ; | |||||
} | |||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | |||||
<title>图片浏览器</title> | |||||
<link rel="stylesheet" href="../../static/css/bootstrap.min.css"> | |||||
<link href="../../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | |||||
.linerow { | |||||
border-bottom: 1px solid #CBD8AC; | |||||
} | |||||
function ReturnImg(reimg) | |||||
{ | |||||
var funcNum = getUrlParam('CKEditorFuncNum'); | |||||
if(funcNum > 1) | |||||
{ | |||||
var fileUrl = reimg; | |||||
window.opener.CKEDITOR.tools.callFunction(funcNum, fileUrl); | |||||
} | |||||
if(window.opener.document.<?php echo $f?> != null) | |||||
{ | |||||
window.opener.document.<?php echo $f?>.value=reimg; | |||||
if(window.opener.document.getElementById('div<?php echo $v?>')) | |||||
{ | |||||
if(TNav()=='IE'){ | |||||
//window.opener.document.getElementById('div<?php echo $v?>').filters.item('DXImageTransform.Microsoft.AlphaImageLoader').src = reimg; | |||||
window.opener.document.getElementById('div<?php echo $v?>').src = reimg; | |||||
window.opener.document.getElementById('div<?php echo $v?>').style.width = '150px'; | |||||
window.opener.document.getElementById('div<?php echo $v?>').style.height = '100px'; | |||||
} | |||||
else | |||||
window.opener.document.getElementById('div<?php echo $v?>').style.backgroundImage = "url("+reimg+")"; | |||||
} | |||||
else if(window.opener.document.getElementById('<?php echo $v?>')){ | |||||
window.opener.document.getElementById('<?php echo $v?>').src = reimg; | |||||
.napisdiv { | |||||
left: 40; | |||||
top: 3; | |||||
width: 150px; | |||||
height: 100px; | |||||
position: absolute; | |||||
z-index: 3; | |||||
display: none; | |||||
} | } | ||||
// 适配新的缩略图 | |||||
if (window.opener.document.getElementById('litPic')) | |||||
{ | |||||
window.opener.document.getElementById('litPic').src = reimg; | |||||
</style> | |||||
<script> | |||||
function nullLink() { | |||||
return; | |||||
} | } | ||||
if(document.all) window.opener=true; | |||||
} | |||||
window.close(); | |||||
} | |||||
</SCRIPT> | |||||
<table width='100%' border='0' cellspacing='0' cellpadding='0' align="center"> | |||||
<tr> | |||||
<td colspan='4' align='right'> | |||||
<table width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#CBD8AC'> | |||||
<tr bgcolor='#FFFFFF'> | |||||
<td colspan='4'> | |||||
<table width='100%' border='0' cellspacing='0' cellpadding='2'> | |||||
<tr bgcolor="#CCCCCC"> | |||||
<td width="8%" align="center" class='linerow' bgcolor='#EEF4EA'><strong>预览</strong></td> | |||||
<td width="47%" align="center" background="img/wbg.gif" class='linerow'><strong>点击名称选择图片</strong></td> | |||||
<td width="15%" align="center" bgcolor='#EEF4EA' class='linerow'><strong>文件大小</strong></td> | |||||
<td width="30%" align="center" background="img/wbg.gif" class='linerow'><strong>最后修改时间</strong></td> | |||||
</tr> | |||||
<tr> | |||||
<td class='linerow' colspan='4' bgcolor='#F9FBF0'> | |||||
点击“V”预览图片,点击图片名选择图片,显示图片后点击该图片关闭预览。 | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
$dh = dir($inpath); | |||||
$ty1=""; | |||||
$ty2=""; | |||||
while($file = $dh->read()) { | |||||
//-----计算文件大小和创建时间 | |||||
if($file!="." && $file!=".." && !is_dir("$inpath/$file")){ | |||||
$filesize = filesize("$inpath/$file"); | |||||
$filesize = $filesize / 1024; | |||||
if($filesize != "") | |||||
if($filesize < 0.1){ | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1.".".substr($ty2, 0, 2); | |||||
function ChangeImage(surl) { | |||||
document.getElementById('picview').src = surl; | |||||
} | } | ||||
else{ | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1.".".substr($ty2, 0, 1); | |||||
</script> | |||||
</head> | |||||
<body background='img/allbg.gif' leftmargin='0' topmargin='0'> | |||||
<div id="floater" class="napisdiv"> | |||||
<a href="javascript:nullLink();" onClick="document.getElementById('floater').style.display='none';"><img src='img/picviewnone.gif' id='picview' border='0' alt='单击关闭预览'></a> | |||||
</div> | |||||
<SCRIPT language=JavaScript src="../js/float.js"></SCRIPT> | |||||
<SCRIPT language=JavaScript> | |||||
function nullLink() { | |||||
return; | |||||
} | |||||
function ChangeImage(surl) { | |||||
document.getElementById('floater').style.display = 'block'; | |||||
document.getElementById('picview').src = surl; | |||||
} | } | ||||
$filetime = filemtime("$inpath/$file"); | |||||
$filetime = MyDate("Y-m-d H:i:s", $filetime); | |||||
} | |||||
if($file == ".") continue; | |||||
else if($file == "..") | |||||
{ | |||||
if($activepath == "") continue; | |||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | |||||
$line = "\n<tr> | |||||
<td class='linerow' colspan='2'> | |||||
<a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode($tmp).$addparm."'><img src=img/dir2.gif border=0 width=16 height=16 align=absmiddle>上级目录</a></td> | |||||
<td colspan='2' class='linerow'> 当前目录:$activepath</td> | |||||
</tr> | |||||
"; | |||||
echo $line; | |||||
} | |||||
else if(is_dir("$inpath/$file")) | |||||
{ | |||||
if(preg_match("#^_(.*)$#i", $file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录 | |||||
if(preg_match("#^\.(.*)$#i", $file)) continue; | |||||
$line = "\n<tr> | |||||
<td bgcolor='#F9FBF0' class='linerow' colspan='2'> | |||||
<a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode("$activepath/$file").$addparm."'><img src=img/dir.gif border=0 width=16 height=16 align=absmiddle>$file</a></td> | |||||
<td class='linerow'> </td> | |||||
<td bgcolor='#F9FBF0' class='linerow'> </td> | |||||
</tr>"; | |||||
echo "$line"; | |||||
} | |||||
else if(preg_match("#\.(".$cfg_imgtype.")#i", $file)) | |||||
{ | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if($cfg_remote_site=='Y' && $remoteuploads == 1) | |||||
{ | |||||
$reurl = $remoteupUrl.$reurl; | |||||
}else{ | |||||
$reurl = $reurl; | |||||
function TNav() { | |||||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||||
else return "OT"; | |||||
} | } | ||||
// 获取地址参数 | |||||
function getUrlParam(paramName) { | |||||
var reParam = new RegExp('(?:[\?&]|&)' + paramName + '=([^&]+)', 'i'); | |||||
var match = window.location.search.match(reParam); | |||||
return (match && match.length > 1) ? match[1] : ''; | |||||
} | |||||
function ReturnImg(reimg) { | |||||
var funcNum = getUrlParam('CKEditorFuncNum'); | |||||
if (funcNum > 1) { | |||||
var fileUrl = reimg; | |||||
window.opener.CKEDITOR.tools.callFunction(funcNum, fileUrl); | |||||
} | |||||
if (window.opener.document.<?php echo $f ?> != null) { | |||||
window.opener.document.<?php echo $f ?>.value = reimg; | |||||
if (window.opener.document.getElementById('div<?php echo $v ?>')) { | |||||
if (TNav() == 'IE') { | |||||
//window.opener.document.getElementById('div<?php echo $v ?>').filters.item('DXImageTransform.Microsoft.AlphaImageLoader').src = reimg; | |||||
window.opener.document.getElementById('div<?php echo $v ?>').src = reimg; | |||||
window.opener.document.getElementById('div<?php echo $v ?>').style.width = '150px'; | |||||
window.opener.document.getElementById('div<?php echo $v ?>').style.height = '100px'; | |||||
} else | |||||
window.opener.document.getElementById('div<?php echo $v ?>').style.backgroundImage = "url(" + reimg + ")"; | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
} else if (window.opener.document.getElementById('<?php echo $v ?>')) { | |||||
window.opener.document.getElementById('<?php echo $v ?>').src = reimg; | |||||
} | |||||
// 适配新的缩略图 | |||||
if (window.opener.document.getElementById('litPic')) { | |||||
window.opener.document.getElementById('litPic').src = reimg; | |||||
} | |||||
if (document.all) window.opener = true; | |||||
} | |||||
$line = "\n<tr> | |||||
<td align='center' class='linerow' bgcolor='#F9FBF0'> | |||||
<a href=\"#\" onClick=\"ChangeImage('$reurl');\"><img src='img/picviewnone.gif' width='16' height='16' border='0' align=absmiddle></a> | |||||
</td> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | |||||
<a href=# onclick=\"ReturnImg('$reurl');\" $lstyle><img src=img/gif.gif border=0 width=16 height=16 align=absmiddle>$file</a></td> | |||||
<td class='linerow'>$filesize KB</td> | |||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | |||||
</tr>"; | |||||
echo "$line"; | |||||
} | |||||
else if(preg_match("#\.(jpg)#i", $file)) | |||||
{ | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if($cfg_remote_site=='Y' && $remoteuploads == 1) | |||||
{ | |||||
$reurl = $remoteupUrl.$reurl; | |||||
}else{ | |||||
$reurl = $reurl; | |||||
window.close(); | |||||
} | } | ||||
</SCRIPT> | |||||
<table width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#CBD8AC' class="table maintable table-borderless" style="margin:0 auto"> | |||||
<tr bgcolor='#FFFFFF'> | |||||
<td colspan='4'> | |||||
<table width='100%' border='0' cellspacing='0' cellpadding='2'> | |||||
<tr bgcolor="#CCCCCC"> | |||||
<td width="8%" align="center" class='linerow' bgcolor='#EEF4EA'><strong>预览</strong></td> | |||||
<td width="47%" align="center" background="img/wbg.gif" class='linerow'><strong>点击名称选择图片</strong></td> | |||||
<td width="15%" align="center" bgcolor='#EEF4EA' class='linerow'><strong>文件大小</strong></td> | |||||
<td width="30%" align="center" background="img/wbg.gif" class='linerow'><strong>最后修改时间</strong></td> | |||||
</tr> | |||||
<tr> | |||||
<td class='linerow' colspan='4' bgcolor='#F9FBF0'> | |||||
点击“V”预览图片,点击图片名选择图片,显示图片后点击该图片关闭预览。 | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
$dh = dir($inpath); | |||||
$ty1 = ""; | |||||
$ty2 = ""; | |||||
while ($file = $dh->read()) { | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
//-----计算文件大小和创建时间 | |||||
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | |||||
$filesize = filesize("$inpath/$file"); | |||||
$filesize = $filesize / 1024; | |||||
if ($filesize != "") | |||||
if ($filesize < 0.1) { | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1 . "." . substr($ty2, 0, 2); | |||||
} else { | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1 . "." . substr($ty2, 0, 1); | |||||
} | |||||
$filetime = filemtime("$inpath/$file"); | |||||
$filetime = MyDate("Y-m-d H:i:s", $filetime); | |||||
} | |||||
$line = "\n<tr> | |||||
<td align='center' class='linerow' bgcolor='#F9FBF0'> | |||||
<a href=\"#\" onClick=\"ChangeImage('$reurl');\"><img src='img/picviewnone.gif' width='16' height='16' border='0' align=absmiddle></a> | |||||
</td> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | |||||
<a href=# onclick=\"ReturnImg('$reurl');\" $lstyle><img src=img/jpg.gif border=0 width=16 height=16 align=absmiddle>$file</a> | |||||
</td> | |||||
<td class='linerow'>$filesize KB</td> | |||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | |||||
</tr>"; | |||||
echo "$line"; | |||||
} | |||||
}//End Loop | |||||
$dh->close(); | |||||
?> | |||||
<tr> | |||||
<td colspan='4' bgcolor='#E8F1DE'> | |||||
if ($file == ".") continue; | |||||
else if ($file == "..") { | |||||
if ($activepath == "") continue; | |||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | |||||
$line = "\n<tr> | |||||
<td class='linerow' colspan='2'> | |||||
<a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=" . urlencode($tmp) . $addparm . "'><img src=img/dir2.gif border=0 width=16 height=16 align=absmiddle>上级目录</a></td> | |||||
<td colspan='2' class='linerow'> 当前目录:$activepath</td> | |||||
</tr> | |||||
"; | |||||
echo $line; | |||||
} else if (is_dir("$inpath/$file")) { | |||||
if (preg_match("#^_(.*)$#i", $file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录 | |||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | |||||
$line = "\n<tr> | |||||
<td bgcolor='#F9FBF0' class='linerow' colspan='2'> | |||||
<a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=" . urlencode("$activepath/$file") . $addparm . "'><img src=img/dir.gif border=0 width=16 height=16 align=absmiddle>$file</a></td> | |||||
<td class='linerow'> </td> | |||||
<td bgcolor='#F9FBF0' class='linerow'> </td> | |||||
</tr>"; | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(" . $cfg_imgtype . ")#i", $file)) { | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) { | |||||
$reurl = $remoteupUrl . $reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$line = "\n<tr> | |||||
<td align='center' class='linerow' bgcolor='#F9FBF0'> | |||||
<a href=\"#\" onClick=\"ChangeImage('$reurl');\"><img src='img/picviewnone.gif' width='16' height='16' border='0' align=absmiddle></a> | |||||
</td> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | |||||
<a href=# onclick=\"ReturnImg('$reurl');\" $lstyle><img src=img/gif.gif border=0 width=16 height=16 align=absmiddle>$file</a></td> | |||||
<td class='linerow'>$filesize KB</td> | |||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | |||||
</tr>"; | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(jpg)#i", $file)) { | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) { | |||||
$reurl = $remoteupUrl . $reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
<table width='100%'> | |||||
<form action='select_images_post.php' method='POST' enctype="multipart/form-data" name='myform'> | |||||
<?php $noeditor = !empty($noeditor)?"<input type='hidden' name='noeditor' value='yes'>":''; echo $noeditor;?> | |||||
<input type='hidden' name='activepath' value='<?php echo $activepath?>'> | |||||
<input type='hidden' name='f' value='<?php echo $f?>'> | |||||
<input type='hidden' name='v' value='<?php echo $v?>'> | |||||
<input type='hidden' name='imgstick' value='<?php echo $imgstick?>'> | |||||
<input type='hidden' name='CKEditorFuncNum' value='<?php echo isset($CKEditorFuncNum)? $CKEditorFuncNum : 1;?>'> | |||||
<input type='hidden' name='job' value='upload'> | |||||
<tr> | |||||
<td background="img/tbg.gif" bgcolor="#99CC00"> | |||||
上 传: <input type='file' name='imgfile' style='width:250px'/> | |||||
<input type='checkbox' name='needwatermark' value='1' class='np' <?php if($photo_markup=='1') echo "checked"; ?> />水印 | |||||
<input type='checkbox' name='resize' value='1' class='np' />缩小 | |||||
宽:<input type='text' style='width:30' name='iwidth' value='<?php echo $cfg_ddimg_width?>' /> | |||||
高:<input type='text' style='width:30' name='iheight' value='<?php echo $cfg_ddimg_height?>' /> | |||||
<input type='submit' name='sb1' value='确定' /> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
$line = "\n<tr> | |||||
<td align='center' class='linerow' bgcolor='#F9FBF0'> | |||||
<a href=\"#\" onClick=\"ChangeImage('$reurl');\"><img src='img/picviewnone.gif' width='16' height='16' border='0' align=absmiddle></a> | |||||
</td> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | |||||
<a href=# onclick=\"ReturnImg('$reurl');\" $lstyle><img src=img/jpg.gif border=0 width=16 height=16 align=absmiddle>$file</a> | |||||
</td> | |||||
<td class='linerow'>$filesize KB</td> | |||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | |||||
</tr>"; | |||||
echo "$line"; | |||||
} | |||||
} //End Loop | |||||
$dh->close(); | |||||
?> | |||||
<tr> | |||||
<td colspan='4' bgcolor='#E8F1DE'> | |||||
<table width='100%'> | |||||
<form action='select_images_post.php' method='POST' enctype="multipart/form-data" name='myform'> | |||||
<?php $noeditor = !empty($noeditor) ? "<input type='hidden' name='noeditor' value='yes'>" : ''; | |||||
echo $noeditor; ?> | |||||
<input type='hidden' name='activepath' value='<?php echo $activepath ?>'> | |||||
<input type='hidden' name='f' value='<?php echo $f ?>'> | |||||
<input type='hidden' name='v' value='<?php echo $v ?>'> | |||||
<input type='hidden' name='imgstick' value='<?php echo $imgstick ?>'> | |||||
<input type='hidden' name='CKEditorFuncNum' value='<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1; ?>'> | |||||
<input type='hidden' name='job' value='upload'> | |||||
<tr> | |||||
<td background="img/tbg.gif" bgcolor="#99CC00"> | |||||
上 传: <input type='file' name='imgfile' style='width:200px' /> | |||||
<label><input type='checkbox' name='needwatermark' value='1' class='np' <?php if ($photo_markup == '1') echo "checked"; ?> /> 水印 </label> | |||||
<label><input type='checkbox' name='resize' value='1' class='np' /> 缩小 </label> | |||||
宽:<input type='text' style='width:46px' name='iwidth' value='<?php echo $cfg_ddimg_width ?>' /> | |||||
高:<input type='text' style='width:46px' name='iheight' value='<?php echo $cfg_ddimg_height ?>' /> | |||||
<button type='submit' name='sb1' class="btn btn-secondary btn-sm">确定</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,4 +1,5 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 多媒体选择框 | * 多媒体选择框 | ||||
* | * | ||||
@@ -8,258 +9,231 @@ | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | |||||
if(empty($activepath)) | |||||
{ | |||||
require_once(dirname(__FILE__) . "/config.php"); | |||||
if (empty($activepath)) { | |||||
$activepath = ''; | $activepath = ''; | ||||
} | } | ||||
$noeditor = isset($noeditor)? $noeditor : ''; | |||||
$noeditor = isset($noeditor) ? $noeditor : ''; | |||||
$activepath = str_replace('.', '', $activepath); | $activepath = str_replace('.', '', $activepath); | ||||
$activepath = preg_replace("#\/{1,}#", '/', $activepath); | $activepath = preg_replace("#\/{1,}#", '/', $activepath); | ||||
if(strlen($activepath) < strlen($cfg_other_medias)) | |||||
{ | |||||
if (strlen($activepath) < strlen($cfg_other_medias)) { | |||||
$activepath = $cfg_other_medias; | $activepath = $cfg_other_medias; | ||||
} | } | ||||
$inpath = $cfg_basedir.$activepath; | |||||
$activeurl = '..'.$activepath; | |||||
if (!is_dir($inpath) ) | |||||
{ | |||||
$inpath = $cfg_basedir . $activepath; | |||||
$activeurl = '..' . $activepath; | |||||
if (!is_dir($inpath)) { | |||||
die('No Exsits Path'); | die('No Exsits Path'); | ||||
} | } | ||||
if(empty($f)) | |||||
{ | |||||
if (empty($f)) { | |||||
$f = 'form1.enclosure'; | $f = 'form1.enclosure'; | ||||
} | } | ||||
if(empty($comeback)) | |||||
{ | |||||
if (empty($comeback)) { | |||||
$comeback = ''; | $comeback = ''; | ||||
} | } | ||||
$addparm = ''; | $addparm = ''; | ||||
if (!empty($CKEditor)) | |||||
{ | |||||
$addparm = '&CKEditor='.$CKEditor; | |||||
if (!empty($CKEditor)) { | |||||
$addparm = '&CKEditor=' . $CKEditor; | |||||
} | } | ||||
if (!empty($CKEditorFuncNum)) | |||||
{ | |||||
$addparm .= '&CKEditorFuncNum='.$CKEditorFuncNum; | |||||
if (!empty($CKEditorFuncNum)) { | |||||
$addparm .= '&CKEditorFuncNum=' . $CKEditorFuncNum; | |||||
} | } | ||||
if (!empty($noeditor)) | |||||
{ | |||||
if (!empty($noeditor)) { | |||||
$addparm .= '&noeditor=yes'; | $addparm .= '&noeditor=yes'; | ||||
} | } | ||||
?> | ?> | ||||
<html> | <html> | ||||
<head> | <head> | ||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | |||||
<title>媒体文件管理器</title> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | |||||
.linerow {border-bottom: 1px solid #CBD8AC;} | |||||
</style> | |||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | |||||
<title>媒体文件管理器</title> | |||||
<link rel="stylesheet" href="../../static/css/bootstrap.min.css"> | |||||
<link href="../../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | |||||
.linerow { | |||||
border-bottom: 1px solid #CBD8AC; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body background='img/allbg.gif' leftmargin='0' topmargin='0'> | |||||
<SCRIPT language='JavaScript'> | |||||
function nullLink() | |||||
{ | |||||
return; | |||||
} | |||||
function ReturnValue(reimg) | |||||
{ | |||||
if(window.opener.document.<?php echo $f?> != null) | |||||
{ | |||||
window.opener.document.<?php echo $f?>.value=reimg; | |||||
} | |||||
var funcNum = <?php echo isset($CKEditorFuncNum)? $CKEditorFuncNum : 1;?>; | |||||
if(window.opener.CKEDITOR != null && funcNum != 1) | |||||
{ | |||||
window.opener.CKEDITOR.tools.callFunction(funcNum, reimg); | |||||
} | |||||
window.close(); | |||||
} | |||||
</SCRIPT> | |||||
<table width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#CBD8AC' align="center"> | |||||
<tr bgcolor='#FFFFFF'> | |||||
<td colspan='3'> | |||||
<!-- 开始文件列表 --> | |||||
<table width='100%' border='0' cellspacing='0' cellpadding='2'> | |||||
<tr bgcolor="#CCCCCC"> | |||||
<td width="55%" align="center" background="img/wbg.gif" class='linerow'><strong>点击名称选择文件</strong></td> | |||||
<td width="15%" align="center" bgcolor='#EEF4EA' class='linerow'><strong>文件大小</strong></td> | |||||
<td width="30%" align="center" background="img/wbg.gif" class='linerow'><strong>最后修改时间</strong></td> | |||||
</tr> | |||||
<?php | |||||
$dh = dir($inpath); | |||||
$ty1=""; | |||||
$ty2=""; | |||||
while($file = $dh->read()) { | |||||
//-----计算文件大小和创建时间 | |||||
if($file!="." && $file!=".." && !is_dir("$inpath/$file")){ | |||||
$filesize = filesize("$inpath/$file"); | |||||
$filesize = $filesize/1024; | |||||
if($filesize!="") | |||||
if($filesize<0.1) | |||||
{ | |||||
@list($ty1,$ty2) = split("\.", $filesize); | |||||
$filesize = $ty1.".".substr($ty2, 0, 2); | |||||
} | |||||
else{ | |||||
@list($ty1,$ty2) = split("\.", $filesize); | |||||
$filesize=$ty1.".".substr($ty2, 0, 1); | |||||
<body background='img/allbg.gif' leftmargin='0' topmargin='0'> | |||||
<SCRIPT language='JavaScript'> | |||||
function nullLink() { | |||||
return; | |||||
} | } | ||||
$filetime = filemtime("$inpath/$file"); | |||||
$filetime = MyDate("Y-m-d H:i:s", $filetime); | |||||
} | |||||
//------判断文件类型并作处理 | |||||
if($file == ".") continue; | |||||
else if($file == "..") | |||||
{ | |||||
if($activepath == "") continue; | |||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | |||||
$line = "\n<tr> | |||||
<td class='linerow'> <a href=select_media.php?f=$f&activepath=".urlencode($tmp).$addparm."><img src=img/dir2.gif border=0 width=16 height=16 align=absmiddle>上级目录</a></td> | |||||
function ReturnValue(reimg) { | |||||
if (window.opener.document.<?php echo $f ?> != null) { | |||||
window.opener.document.<?php echo $f ?>.value = reimg; | |||||
} | |||||
var funcNum = <?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1; ?>; | |||||
if (window.opener.CKEDITOR != null && funcNum != 1) { | |||||
window.opener.CKEDITOR.tools.callFunction(funcNum, reimg); | |||||
} | |||||
window.close(); | |||||
} | |||||
</SCRIPT> | |||||
<table width='100%' border='0' align="center" cellspacing='0' cellpadding='2' class="table maintable table-borderless" style="margin:0 auto"> | |||||
<tr bgcolor="#CCCCCC"> | |||||
<td width="55%" align="center" background="img/wbg.gif" class='linerow'><strong>点击名称选择文件</strong></td> | |||||
<td width="15%" align="center" bgcolor='#EEF4EA' class='linerow'><strong>文件大小</strong></td> | |||||
<td width="30%" align="center" background="img/wbg.gif" class='linerow'><strong>最后修改时间</strong></td> | |||||
</tr> | |||||
<?php | |||||
$dh = dir($inpath); | |||||
$ty1 = ""; | |||||
$ty2 = ""; | |||||
while ($file = $dh->read()) { | |||||
//-----计算文件大小和创建时间 | |||||
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | |||||
$filesize = filesize("$inpath/$file"); | |||||
$filesize = $filesize / 1024; | |||||
if ($filesize != "") | |||||
if ($filesize < 0.1) { | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1 . "." . substr($ty2, 0, 2); | |||||
} else { | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1 . "." . substr($ty2, 0, 1); | |||||
} | |||||
$filetime = filemtime("$inpath/$file"); | |||||
$filetime = MyDate("Y-m-d H:i:s", $filetime); | |||||
} | |||||
//------判断文件类型并作处理 | |||||
if ($file == ".") continue; | |||||
else if ($file == "..") { | |||||
if ($activepath == "") continue; | |||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | |||||
$line = "\n<tr> | |||||
<td class='linerow'> <a href=select_media.php?f=$f&activepath=" . urlencode($tmp) . $addparm . "><img src=img/dir2.gif border=0 width=16 height=16 align=absmiddle>上级目录</a></td> | |||||
<td colspan='2' class='linerow'> 当前目录:$activepath</td> | <td colspan='2' class='linerow'> 当前目录:$activepath</td> | ||||
</tr>\r\n"; | </tr>\r\n"; | ||||
echo $line; | |||||
} | |||||
else if(is_dir("$inpath/$file")) | |||||
{ | |||||
if(preg_match("#^_(.*)$#i", $file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录 | |||||
if(preg_match("#^\.(.*)$#i", $file)) continue; | |||||
$line = "\n<tr> | |||||
echo $line; | |||||
} else if (is_dir("$inpath/$file")) { | |||||
if (preg_match("#^_(.*)$#i", $file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录 | |||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | |||||
$line = "\n<tr> | |||||
<td bgcolor='#F9FBF0' class='linerow'> | <td bgcolor='#F9FBF0' class='linerow'> | ||||
<a href=select_media.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src=img/dir.gif border=0 width=16 height=16 align=absmiddle>$file</a> | |||||
<a href=select_media.php?f=$f&activepath=" . urlencode("$activepath/$file") . $addparm . "><img src=img/dir.gif border=0 width=16 height=16 align=absmiddle>$file</a> | |||||
</td> | </td> | ||||
<td class='linerow'>-</td> | <td class='linerow'>-</td> | ||||
<td bgcolor='#F9FBF0' class='linerow'>-</td> | <td bgcolor='#F9FBF0' class='linerow'>-</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} | |||||
else if(preg_match("#\.(swf|fly|fla|flv)#i", $file)){ | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if($cfg_remote_site=='Y' && $remoteuploads == 1) | |||||
{ | |||||
$reurl = $remoteupUrl.$reurl; | |||||
}else{ | |||||
$reurl = $reurl; | |||||
} | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$line = "\n<tr> | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(swf|fly|fla|flv)#i", $file)) { | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) { | |||||
$reurl = $remoteupUrl . $reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$line = "\n<tr> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\"><img src=img/flash.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\"><img src=img/flash.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
</td> | </td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} | |||||
else if(preg_match("#\.(wmv|avi)#i", $file)){ | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(wmv|avi)#i", $file)) { | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if($cfg_remote_site=='Y' && $remoteuploads == 1) | |||||
{ | |||||
$reurl = $remoteupUrl.$reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) { | |||||
$reurl = $remoteupUrl . $reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$line = "\n<tr> | |||||
$line = "\n<tr> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\"><img src=img/wmv.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\"><img src=img/wmv.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
</td> | </td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} | |||||
else if(preg_match("#\.(rm|rmvb)#i", $file)) | |||||
{ | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if($cfg_remote_site=='Y' && $remoteuploads == 1) | |||||
{ | |||||
$reurl = $remoteupUrl.$reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$line = "\n<tr> | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(rm|rmvb)#i", $file)) { | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) { | |||||
$reurl = $remoteupUrl . $reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$line = "\n<tr> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\"><img src=img/rm.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\"><img src=img/rm.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
</td> | </td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} | |||||
else if(preg_match("#\.(mp3|wma)#", $file)){ | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(mp3|wma)#", $file)) { | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if($cfg_remote_site=='Y' && $remoteuploads == 1) | |||||
{ | |||||
$reurl = $remoteupUrl.$reurl; | |||||
}else{ | |||||
$reurl = $reurl; | |||||
} | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) { | |||||
$reurl = $remoteupUrl . $reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$line = "\n<tr> | |||||
$line = "\n<tr> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\"><img src=img/mp3.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\"><img src=img/mp3.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
</td> | </td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} | |||||
}//End Loop | |||||
$dh->close(); | |||||
?> | |||||
<!-- 文件列表完 --> | |||||
<tr> | |||||
<td colspan='3' bgcolor='#E8F1DE'> | |||||
<table width='100%'> | |||||
<form action='select_media_post.php' method='POST' enctype="multipart/form-data" name='myform'> | |||||
<input type='hidden' name='activepath' value='<?php echo $activepath?>'> | |||||
<input type='hidden' name='f' value='<?php echo $f?>'> | |||||
<input type='hidden' name='job' value='upload'> | |||||
<input type='hidden' name='CKEditorFuncNum' value='<?php echo isset($CKEditorFuncNum)? $CKEditorFuncNum : 1;?>'> | |||||
<tr> | |||||
<td background="img/tbg.gif" bgcolor="#99CC00"> | |||||
上 传: <input type='file' name='uploadfile' style='width:320px'> <input type='submit' name='sb1' value='确定'> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
echo "$line"; | |||||
} | |||||
} //End Loop | |||||
$dh->close(); | |||||
?> | |||||
<!-- 文件列表完 --> | |||||
<tr> | |||||
<td colspan='3' bgcolor='#E8F1DE'> | |||||
<table width='100%'> | |||||
<form action='select_media_post.php' method='POST' enctype="multipart/form-data" name='myform'> | |||||
<input type='hidden' name='activepath' value='<?php echo $activepath ?>'> | |||||
<input type='hidden' name='f' value='<?php echo $f ?>'> | |||||
<input type='hidden' name='job' value='upload'> | |||||
<input type='hidden' name='CKEditorFuncNum' value='<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1; ?>'> | |||||
<tr> | |||||
<td background="img/tbg.gif" bgcolor="#99CC00"> | |||||
上 传: <input type='file' name='uploadfile' style='width:320px'> <button class="btn btn-secondary btn-sm" type='submit' name='sb1'>确定</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,4 +1,5 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 软件选择框 | * 软件选择框 | ||||
* | * | ||||
@@ -8,165 +9,150 @@ | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | |||||
if(empty($activepath)) | |||||
{ | |||||
require_once(dirname(__FILE__) . "/config.php"); | |||||
if (empty($activepath)) { | |||||
$activepath = ''; | $activepath = ''; | ||||
} | } | ||||
$activepath = str_replace('.','',$activepath); | |||||
$activepath = str_replace('.', '', $activepath); | |||||
$activepath = preg_replace("#\/{1,}#", '/', $activepath); | $activepath = preg_replace("#\/{1,}#", '/', $activepath); | ||||
if(strlen($activepath) < strlen($cfg_soft_dir)) | |||||
{ | |||||
if (strlen($activepath) < strlen($cfg_soft_dir)) { | |||||
$activepath = $cfg_soft_dir; | $activepath = $cfg_soft_dir; | ||||
} | } | ||||
$inpath = $cfg_basedir.$activepath; | |||||
$activeurl = '..'.$activepath; | |||||
if(empty($f)) | |||||
{ | |||||
$f='form1.enclosure'; | |||||
$inpath = $cfg_basedir . $activepath; | |||||
$activeurl = '..' . $activepath; | |||||
if (empty($f)) { | |||||
$f = 'form1.enclosure'; | |||||
} | } | ||||
if (!is_dir($inpath) ) | |||||
{ | |||||
if (!is_dir($inpath)) { | |||||
die('No Exsits Path'); | die('No Exsits Path'); | ||||
} | } | ||||
if(empty($comeback)) | |||||
{ | |||||
if (empty($comeback)) { | |||||
$comeback = ''; | $comeback = ''; | ||||
} | } | ||||
$addparm = ''; | $addparm = ''; | ||||
if (!empty($CKEditor)) | |||||
{ | |||||
$addparm = '&CKEditor='.$CKEditor; | |||||
if (!empty($CKEditor)) { | |||||
$addparm = '&CKEditor=' . $CKEditor; | |||||
} | } | ||||
if (!empty($CKEditorFuncNum)) | |||||
{ | |||||
$addparm .= '&CKEditorFuncNum='.$CKEditorFuncNum; | |||||
if (!empty($CKEditorFuncNum)) { | |||||
$addparm .= '&CKEditorFuncNum=' . $CKEditorFuncNum; | |||||
} | } | ||||
if (!empty($noeditor)) | |||||
{ | |||||
if (!empty($noeditor)) { | |||||
$addparm .= '&noeditor=yes'; | $addparm .= '&noeditor=yes'; | ||||
} | } | ||||
?> | ?> | ||||
<html> | <html> | ||||
<head> | <head> | ||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | |||||
<title>软件管理器</title> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | |||||
.linerow {border-bottom: 1px solid #CBD8AC;} | |||||
</style> | |||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | |||||
<title>软件管理器</title> | |||||
<link rel="stylesheet" href="../../static/css/bootstrap.min.css"> | |||||
<link href="../../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | |||||
.linerow { | |||||
border-bottom: 1px solid #CBD8AC; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body background='img/allbg.gif' leftmargin='5' topmargin='0'> | |||||
<SCRIPT language='JavaScript'> | |||||
function nullLink() | |||||
{ | |||||
return; | |||||
} | |||||
function ReturnValue(reimg) | |||||
{ | |||||
if(window.opener.document.<?php echo $f?> != null) | |||||
{ | |||||
window.opener.document.<?php echo $f?>.value=reimg; | |||||
} | |||||
var funcNum = <?php echo isset($CKEditorFuncNum)? $CKEditorFuncNum : 1;?>; | |||||
if(window.opener.CKEDITOR != null && funcNum != 1) | |||||
{ | |||||
window.opener.CKEDITOR.tools.callFunction(funcNum, reimg); | |||||
} | |||||
window.close(); | |||||
} | |||||
</SCRIPT> | |||||
<table width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#CBD8AC' align="center"> | |||||
<tr> | |||||
<td colspan='3' bgcolor='#E8F1DE' background="img/tbg.gif" height='28'> | |||||
<form action='select_soft_post.php' method='POST' enctype="multipart/form-data" name='myform'> | |||||
<input type='hidden' name='activepath' value='<?php echo $activepath?>' /> | |||||
<input type='hidden' name='f' value='<?php echo $f?>' /> | |||||
<input type='hidden' name='job' value='upload' /> | |||||
上 传: <input type='file' name='uploadfile' size='25' /> | |||||
| |||||
改 名:<input type='test' name='newname' style='width:90px' /> | |||||
| |||||
<input type='submit' name='sb1' value='确定' /> | |||||
</form> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor='#FFFFFF'> | |||||
<td colspan='3'> | |||||
<!-- 开始文件列表 --> | |||||
<table width='100%' border='0' cellspacing='0' cellpadding='2'> | |||||
<tr bgcolor="#CCCCCC" height="24"> | |||||
<td width="55%" align="center" background="img/wbg.gif" class='linerow'><strong>点击名称选择文件</strong></td> | |||||
<td width="15%" align="center" bgcolor='#EEF4EA' class='linerow'><strong>文件大小</strong></td> | |||||
<td width="30%" align="center" background="img/wbg.gif" class='linerow'><strong>最后修改时间</strong></td> | |||||
</tr> | |||||
<?php | |||||
$dh = dir($inpath); | |||||
$ty1 = $ty2 = ''; | |||||
while($file = $dh->read()) | |||||
{ | |||||
//-----计算文件大小和创建时间 | |||||
if($file != "." && $file != ".." && !is_dir("$inpath/$file")) | |||||
{ | |||||
$filesize = filesize("$inpath/$file"); | |||||
$filesize = $filesize / 1024; | |||||
if($filesize != "") | |||||
if($filesize < 0.1){ | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1.".".substr($ty2, 0, 2); | |||||
<body background='img/allbg.gif' leftmargin='5' topmargin='0'> | |||||
<SCRIPT language='JavaScript'> | |||||
function nullLink() { | |||||
return; | |||||
} | } | ||||
else{ | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1.".".substr($ty2, 0, 1); | |||||
function ReturnValue(reimg) { | |||||
if (window.opener.document.<?php echo $f ?> != null) { | |||||
window.opener.document.<?php echo $f ?>.value = reimg; | |||||
} | |||||
var funcNum = <?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1; ?>; | |||||
if (window.opener.CKEDITOR != null && funcNum != 1) { | |||||
window.opener.CKEDITOR.tools.callFunction(funcNum, reimg); | |||||
} | |||||
window.close(); | |||||
} | } | ||||
$filetime = filemtime("$inpath/$file"); | |||||
$filetime = MyDate("Y-m-d H:i:s", $filetime); | |||||
} | |||||
//------判断文件类型并作处理 | |||||
if($file == ".") continue; | |||||
else if($file == "..") | |||||
{ | |||||
if($activepath == "") continue; | |||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | |||||
$line = "\n<tr height='24'> | |||||
<td class='linerow'> <a href='select_soft.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src=img/dir2.gif border=0 width=16 height=16 align=absmiddle>上级目录</a></td> | |||||
</SCRIPT> | |||||
<table width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#CBD8AC' align="center" class="table maintable table-borderless"> | |||||
<tr> | |||||
<td colspan='3' bgcolor='#E8F1DE' background="img/tbg.gif" height='28'> | |||||
<form action='select_soft_post.php' method='POST' enctype="multipart/form-data" name='myform'> | |||||
<input type='hidden' name='activepath' value='<?php echo $activepath ?>' /> | |||||
<input type='hidden' name='f' value='<?php echo $f ?>' /> | |||||
<input type='hidden' name='job' value='upload' /> | |||||
上 传: <input type='file' name='uploadfile' size='25' /> | |||||
| |||||
改 名:<input type='test' name='newname' style='width:90px' /> | |||||
| |||||
<button type='submit' name='sb1' class="btn btn-secondary btn-sm">确定</button> | |||||
</form> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor='#FFFFFF'> | |||||
<td colspan='3'> | |||||
<!-- 开始文件列表 --> | |||||
<table width='100%' border='0' cellspacing='0' cellpadding='2'> | |||||
<tr bgcolor="#CCCCCC" height="24"> | |||||
<td width="55%" align="center" background="img/wbg.gif" class='linerow'><strong>点击名称选择文件</strong></td> | |||||
<td width="15%" align="center" bgcolor='#EEF4EA' class='linerow'><strong>文件大小</strong></td> | |||||
<td width="30%" align="center" background="img/wbg.gif" class='linerow'><strong>最后修改时间</strong></td> | |||||
</tr> | |||||
<?php | |||||
$dh = dir($inpath); | |||||
$ty1 = $ty2 = ''; | |||||
while ($file = $dh->read()) { | |||||
//-----计算文件大小和创建时间 | |||||
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | |||||
$filesize = filesize("$inpath/$file"); | |||||
$filesize = $filesize / 1024; | |||||
if ($filesize != "") | |||||
if ($filesize < 0.1) { | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1 . "." . substr($ty2, 0, 2); | |||||
} else { | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1 . "." . substr($ty2, 0, 1); | |||||
} | |||||
$filetime = filemtime("$inpath/$file"); | |||||
$filetime = MyDate("Y-m-d H:i:s", $filetime); | |||||
} | |||||
//------判断文件类型并作处理 | |||||
if ($file == ".") continue; | |||||
else if ($file == "..") { | |||||
if ($activepath == "") continue; | |||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | |||||
$line = "\n<tr height='24'> | |||||
<td class='linerow'> <a href='select_soft.php?f=$f&activepath=" . urlencode($tmp) . $addparm . "'><img src=img/dir2.gif border=0 width=16 height=16 align=absmiddle>上级目录</a></td> | |||||
<td colspan='2' class='linerow'> 当前目录:$activepath</td> | <td colspan='2' class='linerow'> 当前目录:$activepath</td> | ||||
</tr>\r\n"; | </tr>\r\n"; | ||||
echo $line; | |||||
} | |||||
else if(is_dir("$inpath/$file")) | |||||
{ | |||||
if(preg_match("#^_(.*)$#i", $file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录 | |||||
if(preg_match("#^\.(.*)$#i", $file)) continue; | |||||
$line = "\n<tr height='24'> | |||||
echo $line; | |||||
} else if (is_dir("$inpath/$file")) { | |||||
if (preg_match("#^_(.*)$#i", $file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录 | |||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | |||||
$line = "\n<tr height='24'> | |||||
<td bgcolor='#F9FBF0' class='linerow'> | <td bgcolor='#F9FBF0' class='linerow'> | ||||
<a href=select_soft.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src=img/dir.gif border=0 width=16 height=16 align=absmiddle>$file</a> | |||||
<a href=select_soft.php?f=$f&activepath=" . urlencode("$activepath/$file") . $addparm . "><img src=img/dir.gif border=0 width=16 height=16 align=absmiddle>$file</a> | |||||
</td> | </td> | ||||
<td class='linerow'>-</td> | <td class='linerow'>-</td> | ||||
<td bgcolor='#F9FBF0' class='linerow'>-</td> | <td bgcolor='#F9FBF0' class='linerow'>-</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} | |||||
else if(preg_match("#\.(zip|rar|tgr.gz)#i", $file)) | |||||
{ | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(zip|rar|tgr.gz)#i", $file)) { | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if($cfg_remote_site=='Y' && $remoteuploads == 1) | |||||
{ | |||||
$reurl = $remoteupUrl.$reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) { | |||||
$reurl = $remoteupUrl . $reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
$line = "\n<tr height='24'> | |||||
$line = "\n<tr height='24'> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/zip.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/zip.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
@@ -174,38 +160,40 @@ while($file = $dh->read()) | |||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} | |||||
else | |||||
{ | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ''; | |||||
echo "$line"; | |||||
} else { | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ''; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if($cfg_remote_site=='Y' && $remoteuploads == 1) | |||||
{ | |||||
$reurl = $remoteupUrl.$reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) { | |||||
$reurl = $remoteupUrl . $reurl; | |||||
} else { | |||||
$reurl = $reurl; | |||||
} | |||||
$line = "\n<tr height='24'> | |||||
$line = "\n<tr height='24'> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/exe.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/exe.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
</td> | </td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} | |||||
}//End Loop | |||||
$dh->close(); | |||||
?> | |||||
<!-- 文件列表完 --> | |||||
</table></td></tr> | |||||
<tr><td colspan='3' bgcolor='#E8F1DE' height='26'> 请点击要选择的文件,红色字样的为刚上传的文件。</td></tr> | |||||
</table> | |||||
echo "$line"; | |||||
} | |||||
} //End Loop | |||||
$dh->close(); | |||||
?> | |||||
<!-- 文件列表完 --> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan='3' bgcolor='#E8F1DE' height='26'> 请点击要选择的文件,红色字样的为刚上传的文件。</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,4 +1,5 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 模板选择框 | * 模板选择框 | ||||
* | * | ||||
@@ -8,254 +9,237 @@ | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | |||||
if(empty($activepath)) | |||||
{ | |||||
$activepath = ''; | |||||
require_once(dirname(__FILE__) . "/config.php"); | |||||
if (empty($activepath)) { | |||||
$activepath = ''; | |||||
} | } | ||||
$cfg_txttype = 'htm|html|tpl|txt|dtp'; | $cfg_txttype = 'htm|html|tpl|txt|dtp'; | ||||
$activepath = str_replace('.', '', $activepath); | $activepath = str_replace('.', '', $activepath); | ||||
$activepath = preg_replace("#\/{1,}#", '/', $activepath); | $activepath = preg_replace("#\/{1,}#", '/', $activepath); | ||||
$templetdir = $cfg_templets_dir; | $templetdir = $cfg_templets_dir; | ||||
if(strlen($activepath) < strlen($templetdir)) | |||||
{ | |||||
$activepath = $templetdir; | |||||
if (strlen($activepath) < strlen($templetdir)) { | |||||
$activepath = $templetdir; | |||||
} | } | ||||
$inpath = $cfg_basedir.$activepath; | |||||
$activeurl = '..'.$activepath; | |||||
if (!is_dir($inpath) ) | |||||
{ | |||||
die('No Exsits Path'); | |||||
$inpath = $cfg_basedir . $activepath; | |||||
$activeurl = '..' . $activepath; | |||||
if (!is_dir($inpath)) { | |||||
die('No Exsits Path'); | |||||
} | } | ||||
if(empty($f)) | |||||
{ | |||||
$f='form1.enclosure'; | |||||
if (empty($f)) { | |||||
$f = 'form1.enclosure'; | |||||
} | } | ||||
if(empty($comeback)) | |||||
{ | |||||
$comeback = ''; | |||||
if (empty($comeback)) { | |||||
$comeback = ''; | |||||
} | } | ||||
?> | ?> | ||||
<html> | <html> | ||||
<head> | <head> | ||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | |||||
<title>模板管理器</title> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | |||||
.linerow {border-bottom: 1px solid #CBD8AC;} | |||||
</style> | |||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | |||||
<title>模板管理器</title> | |||||
<link rel="stylesheet" href="../../static/css/bootstrap.min.css"> | |||||
<link href="../../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | |||||
.linerow { | |||||
border-bottom: 1px solid #CBD8AC; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body background='img/allbg.gif' leftmargin='0' topmargin='0'> | <body background='img/allbg.gif' leftmargin='0' topmargin='0'> | ||||
<SCRIPT language='JavaScript'> | |||||
function nullLink() | |||||
{ | |||||
return; | |||||
} | |||||
function ReturnValue(reimg) | |||||
{ | |||||
window.opener.document.<?php echo $f?>.value=reimg; | |||||
if(document.all) window.opener=true; | |||||
window.close(); | |||||
} | |||||
</SCRIPT> | |||||
<table width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#CBD8AC' align="center"> | |||||
<tr bgcolor='#FFFFFF'> | |||||
<td colspan='3'> | |||||
<!-- 开始文件列表 --> | |||||
<table width='100%' border='0' cellspacing='0' cellpadding='2'> | |||||
<tr bgcolor="#CCCCCC"> | |||||
<td width="55%" align="center" background="img/wbg.gif" class='linerow'><strong>点击名称选择文件</strong></td> | |||||
<td width="15%" align="center" bgcolor='#EEF4EA' class='linerow'><strong>文件大小</strong></td> | |||||
<td width="30%" align="center" background="img/wbg.gif" class='linerow'><strong>最后修改时间</strong></td> | |||||
</tr> | |||||
<?php | |||||
$dh = dir($inpath); | |||||
$ty1=""; | |||||
$ty2=""; | |||||
while($file = $dh->read()) { | |||||
//-----计算文件大小和创建时间 | |||||
if($file!="." && $file!=".." && !is_dir("$inpath/$file")){ | |||||
$filesize = filesize("$inpath/$file"); | |||||
$filesize = $filesize / 1024; | |||||
if($filesize != "") | |||||
if($filesize < 0.1) | |||||
{ | |||||
@list($ty1,$ty2) = split("\.", $filesize); | |||||
$filesize=$ty1.".".substr($ty2, 0, 2); | |||||
} else { | |||||
@list($ty1,$ty2) = split("\.", $filesize); | |||||
$filesize=$ty1.".".substr($ty2, 0, 1); | |||||
} | |||||
$filetime = filemtime("$inpath/$file"); | |||||
$filetime = MyDate("Y-m-d H:i:s", $filetime); | |||||
<SCRIPT language='JavaScript'> | |||||
function nullLink() { | |||||
return; | |||||
} | } | ||||
//------判断文件类型并作处理 | |||||
if($file == ".") continue; | |||||
else if($file == "..") | |||||
{ | |||||
if($activepath == "") continue; | |||||
$tmp = preg_replace("#[\/][^\/]*$#", "", $activepath); | |||||
$line = "\n<tr> | |||||
<td class='linerow'> <a href='select_templets.php?f=$f&activepath=".urlencode($tmp)."'><img src=img/dir2.gif border=0 width=16 height=16 align=absmiddle>上级目录</a></td> | |||||
function ReturnValue(reimg) { | |||||
window.opener.document.<?php echo $f ?>.value = reimg; | |||||
if (document.all) window.opener = true; | |||||
window.close(); | |||||
} | |||||
</SCRIPT> | |||||
<!-- 开始文件列表 --> | |||||
<table width='100%' border='0' align="center" cellspacing='0' cellpadding='2' class="table maintable table-bordered mt-3"> | |||||
<tr bgcolor="#CCCCCC"> | |||||
<td width="55%" align="center" background="img/wbg.gif" class='linerow'><strong>点击名称选择文件</strong></td> | |||||
<td width="15%" align="center" bgcolor='#EEF4EA' class='linerow'><strong>文件大小</strong></td> | |||||
<td width="30%" align="center" background="img/wbg.gif" class='linerow'><strong>最后修改时间</strong></td> | |||||
</tr> | |||||
<?php | |||||
$dh = dir($inpath); | |||||
$ty1 = ""; | |||||
$ty2 = ""; | |||||
while ($file = $dh->read()) { | |||||
//-----计算文件大小和创建时间 | |||||
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | |||||
$filesize = filesize("$inpath/$file"); | |||||
$filesize = $filesize / 1024; | |||||
if ($filesize != "") | |||||
if ($filesize < 0.1) { | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1 . "." . substr($ty2, 0, 2); | |||||
} else { | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1 . "." . substr($ty2, 0, 1); | |||||
} | |||||
$filetime = filemtime("$inpath/$file"); | |||||
$filetime = MyDate("Y-m-d H:i:s", $filetime); | |||||
} | |||||
//------判断文件类型并作处理 | |||||
if ($file == ".") continue; | |||||
else if ($file == "..") { | |||||
if ($activepath == "") continue; | |||||
$tmp = preg_replace("#[\/][^\/]*$#", "", $activepath); | |||||
$line = "\n<tr> | |||||
<td class='linerow'> <a href='select_templets.php?f=$f&activepath=" . urlencode($tmp) . "'><img src=img/dir2.gif border=0 width=16 height=16 align=absmiddle>上级目录</a></td> | |||||
<td colspan='2' class='linerow'> 当前目录:$activepath</td> | <td colspan='2' class='linerow'> 当前目录:$activepath</td> | ||||
</tr>\r\n"; | </tr>\r\n"; | ||||
echo $line; | |||||
} | |||||
else if(is_dir("$inpath/$file")) | |||||
{ | |||||
if(preg_match("#^_(.*)$#i", $file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录 | |||||
if(preg_match("#^\.(.*)$#i", $file)) continue; | |||||
$line = "\n<tr> | |||||
echo $line; | |||||
} else if (is_dir("$inpath/$file")) { | |||||
if (preg_match("#^_(.*)$#i", $file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录 | |||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | |||||
$line = "\n<tr> | |||||
<td bgcolor='#F9FBF0' class='linerow'> | <td bgcolor='#F9FBF0' class='linerow'> | ||||
<a href=select_templets.php?f=$f&activepath=".urlencode("$activepath/$file")."><img src=img/dir.gif border=0 width=16 height=16 align=absmiddle>$file</a> | |||||
<a href=select_templets.php?f=$f&activepath=" . urlencode("$activepath/$file") . "><img src=img/dir.gif border=0 width=16 height=16 align=absmiddle>$file</a> | |||||
</td> | </td> | ||||
<td class='linerow'>-</td> | <td class='linerow'>-</td> | ||||
<td bgcolor='#F9FBF0' class='linerow'>-</td> | <td bgcolor='#F9FBF0' class='linerow'>-</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} else if(preg_match("#\.(htm|html)#i", $file)) | |||||
{ | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(htm|html)#i", $file)) { | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#" . $templetdir . "\/#", "", $reurl); | |||||
$line = "\n<tr> | |||||
$line = "\n<tr> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/htm.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/htm.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
</td> | </td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} else if(preg_match("#\.(css)#i", $file)) | |||||
{ | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(css)#i", $file)) { | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#".$templetdir."/#", "", $reurl); | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#" . $templetdir . "/#", "", $reurl); | |||||
$line = "\n<tr> | |||||
$line = "\n<tr> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/css.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/css.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
</td> | </td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} else if(preg_match("#\.(js)#i", $file)) | |||||
{ | |||||
if( $file == $comeback ) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(js)#i", $file)) { | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#" . $templetdir . "\/#", "", $reurl); | |||||
$line = "\n<tr> | |||||
$line = "\n<tr> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/js.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/js.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
</td> | </td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} else if(preg_match("#\.(jpg)#i", $file)) | |||||
{ | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(jpg)#i", $file)) { | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#" . $templetdir . "\/#", "", $reurl); | |||||
$line = "\n<tr> | |||||
$line = "\n<tr> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/jpg.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/jpg.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
</td> | </td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} else if(preg_match("#\.(gif|png)#i", $file)) | |||||
{ | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(gif|png)#i", $file)) { | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#" . $templetdir . "\/#", "", $reurl); | |||||
$line = "\n<tr> | |||||
$line = "\n<tr> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/gif.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/gif.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
</td> | </td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} | |||||
else if(preg_match("#\.(txt)#i", $file)) | |||||
{ | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(txt)#i", $file)) { | |||||
if($file==$comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | |||||
$reurl = preg_replace("#\.\.#", "", $reurl); | |||||
$reurl = preg_replace("#" . $templetdir . "\/#", "", $reurl); | |||||
$line = "\n<tr> | |||||
$line = "\n<tr> | |||||
<td class='linerow' bgcolor='#F9FBF0'> | <td class='linerow' bgcolor='#F9FBF0'> | ||||
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/txt.gif border=0 width=16 height=16 align=absmiddle>$file</a> | <a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src=img/txt.gif border=0 width=16 height=16 align=absmiddle>$file</a> | ||||
</td> | </td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | <td align='center' class='linerow' bgcolor='#F9FBF0'>$filetime</td> | ||||
</tr>"; | </tr>"; | ||||
echo "$line"; | |||||
} | |||||
}//End Loop | |||||
$dh->close(); | |||||
?> | |||||
<!-- 文件列表完 --> | |||||
<tr> | |||||
<td colspan='3' bgcolor='#E8F1DE'> | |||||
<table width='100%'> | |||||
<form action='select_templets_post.php' method='POST' enctype="multipart/form-data" name='myform'> | |||||
<input type='hidden' name='activepath' value='<?php echo $activepath?>'> | |||||
<input type='hidden' name='f' value='<?php echo $f?>'> | |||||
<input type='hidden' name='job' value='upload'> | |||||
<tr> | |||||
<td background="img/tbg.gif" bgcolor="#99CC00"> | |||||
上 传: <input type='file' name='uploadfile' style='width:320px'> | |||||
改名:<input type='text' name='filename' value='' style='width:100px'> | |||||
<input type='submit' name='sb1' value='确定'> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
echo "$line"; | |||||
} | |||||
} //End Loop | |||||
$dh->close(); | |||||
?> | |||||
<!-- 文件列表完 --> | |||||
<tr> | |||||
<td colspan='3' bgcolor='#E8F1DE'> | |||||
<table width='100%'> | |||||
<form action='select_templets_post.php' method='POST' enctype="multipart/form-data" name='myform'> | |||||
<input type='hidden' name='activepath' value='<?php echo $activepath ?>'> | |||||
<input type='hidden' name='f' value='<?php echo $f ?>'> | |||||
<input type='hidden' name='job' value='upload'> | |||||
<tr> | |||||
<td background="img/tbg.gif" bgcolor="#99CC00"> | |||||
上 传: <input type='file' name='uploadfile' style='width:320px'> | |||||
改名:<input type='text' name='filename' value='' style='width:100px'> | |||||
<button type='submit' name='sb1' class="btn btn-secondary btn-sm">确定</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -5,6 +5,7 @@ | |||||
* @version $Id: file_manage_control.php 1 8:48 2010年7月13日Z tianya $ | * @version $Id: file_manage_control.php 1 8:48 2010年7月13日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: file_manage_main.php 1 8:48 2010年7月13日Z tianya $ | * @version $Id: file_manage_main.php 1 8:48 2010年7月13日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: file_manage_view.php 1 8:48 2010年7月13日Z tianya $ | * @version $Id: file_manage_view.php 1 8:48 2010年7月13日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -1,182 +0,0 @@ | |||||
<?php | |||||
/** | |||||
* 文件图片查看 | |||||
* | |||||
* @version $Id: file_pic_view.php 1 8:48 2010年7月13日Z tianya $ | |||||
* @package DedeCMS.Administrator | |||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | |||||
* @license http://help.dedecms.com/usersguide/license.html | |||||
* @link http://www.dedecms.com | |||||
*/ | |||||
require_once(dirname(__FILE__)."/config.php"); | |||||
CheckPurview('pic_view'); | |||||
if(empty($activepath)) $activepath=$cfg_medias_dir; | |||||
$activepath = preg_replace("#\/{1,}#", "/", $activepath); | |||||
$activepath = RemoveXSS($activepath); | |||||
$truePath = $cfg_basedir.$activepath; | |||||
$listSize=5; | |||||
include DedeInclude('templets/file_pic_view.htm'); | |||||
/** | |||||
* 获取上一级目录 | |||||
* | |||||
* @access public | |||||
* @param string $nowPath 当前目录 | |||||
* @return string | |||||
*/ | |||||
function GetPrePath($nowPath) | |||||
{ | |||||
if($nowPath=="" || $nowPath=="/") | |||||
{ | |||||
echo("当前为根目录\n"); | |||||
} | |||||
else | |||||
{ | |||||
$dirs = split("/", $nowPath); | |||||
$nowPath = ""; | |||||
for($i=1;$i < count($dirs)-1; $i++) | |||||
{ | |||||
$nowPath .= "/".$dirs[$i]; | |||||
} | |||||
echo("<a href=\"pic_view.php?activepath=".$nowPath."\">转到上级目录</a>\n"); | |||||
} | |||||
} | |||||
/** | |||||
* 列出图片 | |||||
* | |||||
* @access public | |||||
* @param string $truePath 真实地址 | |||||
* @param string $nowPath 当前地址 | |||||
* @return string | |||||
*/ | |||||
function ListPic($truePath, $nowPath) | |||||
{ | |||||
global $listSize; | |||||
$col=0; | |||||
$rowdd=0; | |||||
$rowdd++; | |||||
$imgfile=""; | |||||
$truePath = preg_replace("#\/$#", "", preg_replace("#\\\\{1,}#", "/", trim($truePath))); | |||||
$nowPath = preg_replace("#\/$#", "", preg_replace("#\/{1,}#", "/", trim($nowPath))); | |||||
$dh = dir($truePath); | |||||
echo("<tr align='center'>\n"); | |||||
while($filename=$dh->read()) | |||||
{ | |||||
if(!preg_match("#\.$#", $filename)) | |||||
{ | |||||
$fullName = $truePath."/".$filename; | |||||
$fileUrl = $nowPath."/".$filename; | |||||
if(is_dir($fullName)) | |||||
{ | |||||
if($col % $listSize == 0 && $col != 0) | |||||
{ | |||||
echo("</tr>\n<tr align='center'>\n"); | |||||
for($i=$rowdd-$listSize; $i<$rowdd; $i++) | |||||
{ | |||||
echo("<td>".$filelist[$i]."</td>\n"); | |||||
} | |||||
echo("</tr>\n<tr align='center'>\n"); | |||||
} | |||||
$line = " | |||||
<td> | |||||
<table width='106' height='106' border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'> | |||||
<tr><td align='center' bgcolor='#FFFFFF'> | |||||
<a href='pic_view.php?activepath=".$fileUrl."'> | |||||
<img src='images/pic_dir.gif' width='44' height='42' border='0'> | |||||
</a></td></tr></table></td>"; | |||||
$filelist[$rowdd] = $filename; | |||||
$col++; | |||||
$rowdd++; | |||||
echo $line; | |||||
} | |||||
else if(IsImg($filename)) | |||||
{ | |||||
if($col%$listSize==0&&$col!=0) | |||||
{ | |||||
echo("</tr>\n<tr align='center'>\n"); | |||||
for($i=$rowdd-$listSize;$i<$rowdd;$i++) | |||||
{ | |||||
echo("<td>".$filelist[$i]."</td>\n"); | |||||
} | |||||
echo("</tr>\n<tr align='center'>\n"); | |||||
} | |||||
$line = " | |||||
<td> | |||||
<table width='106' height='106' border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'> | |||||
<tr> | |||||
<td align='center' bgcolor='#FFFFFF'> | |||||
".GetImgFile($truePath,$nowPath,$filename)." | |||||
</td> | |||||
</tr></table></td>"; | |||||
$filelist[$rowdd] = $filename; | |||||
$col++; | |||||
$rowdd++; | |||||
echo $line; | |||||
} | |||||
} | |||||
} | |||||
echo("</tr>\n"); | |||||
if(!empty($filelist)) | |||||
{ | |||||
echo("<tr align='center'>\n"); | |||||
$t = ($rowdd-1)%$listSize; | |||||
if($t==0) | |||||
{ | |||||
$t=$listSize; | |||||
} | |||||
for($i=$rowdd-$t;$i<$rowdd;$i++) | |||||
{ | |||||
echo("<td>".$filelist[$i]."</td>\n"); | |||||
} | |||||
echo("</tr>\n"); | |||||
} | |||||
} | |||||
/** | |||||
* 获取图片文件 | |||||
* | |||||
* @access public | |||||
* @param string $truePath 真实地址 | |||||
* @param string $nowPath 当前地址 | |||||
* @param string $fileName 文件名称 | |||||
* @return string | |||||
*/ | |||||
function GetImgFile($truePath, $nowPath, $fileName) | |||||
{ | |||||
$toW=102; | |||||
$toH=102; | |||||
$srcFile = $truePath."/".$fileName; | |||||
$info = ""; | |||||
$data = GetImageSize($srcFile, $info); | |||||
$srcW=$data[0]; | |||||
$srcH=$data[1]; | |||||
if($toW>=$srcW&&$toH>=$srcH) | |||||
{ | |||||
$ftoW=$srcW; | |||||
$ftoH=$srcH; | |||||
} | |||||
else | |||||
{ | |||||
$toWH=$toW / $toH; | |||||
$srcWH=$srcW / $srcH; | |||||
if($toWH<=$srcWH) | |||||
{ | |||||
$ftoW=$toW; | |||||
$ftoH=$ftoW*($srcH/$srcW); | |||||
} | |||||
else | |||||
{ | |||||
$ftoH=$toH; | |||||
$ftoW=$ftoH*($srcW/$srcH); | |||||
} | |||||
} | |||||
return("<a href='".$nowPath."/".$fileName."' target='_blank'><img src='".$nowPath."/".$fileName."' width='".$ftoW."' height='".$ftoH."' border='0'></a>"); | |||||
} | |||||
function IsImg($fileName) | |||||
{ | |||||
if(preg_match("#\.(jpg|gif|png)$#", $fileName)) return 1; | |||||
else return 0; | |||||
} |
@@ -5,6 +5,7 @@ | |||||
* @version $Id: freelist_add.php 1 8:48 2010年7月13日Z tianya $ | * @version $Id: freelist_add.php 1 8:48 2010年7月13日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: freelist_edit.php 1 8:48 2010年7月13日Z tianya $ | * @version $Id: freelist_edit.php 1 8:48 2010年7月13日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: freelist_main.php 1 8:48 2010年7月13日Z tianya $ | * @version $Id: freelist_main.php 1 8:48 2010年7月13日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -40,7 +41,7 @@ if($dopost=='getlist') | |||||
else if($dopost=='del') | else if($dopost=='del') | ||||
{ | { | ||||
$aid = preg_replace("#[^0-9]#", "", $aid); | $aid = preg_replace("#[^0-9]#", "", $aid); | ||||
$dsql->ExecuteNoneQuery("DELETE FROM #@__freelist WHERE aid='$aid'; "); | |||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__freelist` WHERE aid='$aid'; "); | |||||
AjaxHead(); | AjaxHead(); | ||||
GetTagList($dsql,$pageno,$pagesize,$orderby); | GetTagList($dsql,$pageno,$pagesize,$orderby); | ||||
exit(); | exit(); | ||||
@@ -49,7 +50,7 @@ else if($dopost=='del') | |||||
//第一次进入这个页面 | //第一次进入这个页面 | ||||
if($dopost=='') | if($dopost=='') | ||||
{ | { | ||||
$row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM #@__freelist $addsql "); | |||||
$row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__freelist` $addsql "); | |||||
$totalRow = $row['dd']; | $totalRow = $row['dd']; | ||||
include(DEDEADMIN."/templets/freelist_main.htm"); | include(DEDEADMIN."/templets/freelist_main.htm"); | ||||
} | } | ||||
@@ -88,9 +89,9 @@ function GetTagList($dsql,$pageno,$pagesize,$orderby='aid') | |||||
<td> {$row['templet']} </td> | <td> {$row['templet']} </td> | ||||
<td> {$row['click']} </td> | <td> {$row['click']} </td> | ||||
<td>".MyDate("y-m-d",$row['edtime'])."</td> | <td>".MyDate("y-m-d",$row['edtime'])."</td> | ||||
<td> <a href='#' onclick='EditNote({$row['aid']})'>更改</a> | | |||||
<a href='#' onclick='CreateNote({$row['aid']})'>更新</a> | | |||||
<a href='#' onclick='DelNote({$row['aid']})'>删除</a> | |||||
<td> <a href='#' onclick='EditNote({$row['aid']})' class='btn btn-secondary btn-sm'> <i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i> 更改</a> | | |||||
<a href='#' onclick='CreateNote({$row['aid']})' class='btn btn-secondary btn-sm'> <i class=\"fa fa-refresh\" aria-hidden=\"true\"></i> 更新</a> | | |||||
<a href='#' onclick='DelNote({$row['aid']})' class='btn btn-secondary btn-sm'> <i class=\"fa fa-trash\" aria-hidden=\"true\"></i> 删除</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
echo $line; | echo $line; | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: inc_action_info.php 2 14:55 2010-11-11 tianya $ | * @version $Id: inc_action_info.php 2 14:55 2010-11-11 tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -398,12 +399,6 @@ $actionSearch[10] = array( | |||||
'purview' =>'sys_Log', | 'purview' =>'sys_Log', | ||||
'linkurl' =>'log_list.php' | 'linkurl' =>'log_list.php' | ||||
), | ), | ||||
4 => array( | |||||
'title' =>'验证安全设置', | |||||
'description' =>'对验证码和验证问题进行设置', | |||||
'purview' =>'sys_safe.php', | |||||
'linkurl' =>'sys_verify' | |||||
), | |||||
5 => array( | 5 => array( | ||||
'title' =>'图片水印设置', | 'title' =>'图片水印设置', | ||||
'description' =>'对于上传的图片添加的水印进行配置', | 'description' =>'对于上传的图片添加的水印进行配置', | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: inc_archives_functions.php 1 9:56 2010年7月21日Z tianya $ | * @version $Id: inc_archives_functions.php 1 9:56 2010年7月21日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -13,7 +14,7 @@ require_once(DEDEINC.'/image.func.php'); | |||||
require_once(DEDEINC.'/archives.func.php'); | require_once(DEDEINC.'/archives.func.php'); | ||||
require_once(DEDEINC.'/arc.partview.class.php'); | require_once(DEDEINC.'/arc.partview.class.php'); | ||||
$backurl = !empty($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : ''; | $backurl = !empty($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : ''; | ||||
$backurl = preg_match("#content_#", $backurl) ? "<a href='$backurl'>[<u>记忆的列表页</u>]</a> " : ''; | |||||
$backurl = preg_match("#content_#", $backurl) ? "<a href='$backurl' class='btn btn-secondary btn-sm'>记忆的列表页</a> " : ''; | |||||
if(!isset($_NOT_ARCHIVES)) | if(!isset($_NOT_ARCHIVES)) | ||||
{ | { | ||||
require_once(DEDEINC.'/customfields.func.php'); | require_once(DEDEINC.'/customfields.func.php'); | ||||
@@ -62,7 +62,6 @@ $adminMenu2 = "<m:top item='7_' name='模板管理' display='none' rank='temp_On | |||||
<m:item name='系统用户管理' link='sys_admin_user.php' rank='sys_User' target='main' /> | <m:item name='系统用户管理' link='sys_admin_user.php' rank='sys_User' target='main' /> | ||||
<m:item name='用户组设定' link='sys_group.php' rank='sys_Group' target='main' /> | <m:item name='用户组设定' link='sys_group.php' rank='sys_Group' target='main' /> | ||||
<m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' /> | <m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' /> | ||||
<m:item name='验证安全设置' link='sys_safe.php' rank='sys_verify' target='main' /> | |||||
<m:item name='图片水印设置' link='sys_info_mark.php' rank='sys_Edit' target='main' /> | <m:item name='图片水印设置' link='sys_info_mark.php' rank='sys_Edit' target='main' /> | ||||
<m:item name='自定义文档属性' link='content_att.php' rank='sys_Att' target='main' /> | <m:item name='自定义文档属性' link='content_att.php' rank='sys_Att' target='main' /> | ||||
<m:item name='软件频道设置' link='soft_config.php' rank='sys_SoftConfig' target='main' /> | <m:item name='软件频道设置' link='soft_config.php' rank='sys_SoftConfig' target='main' /> | ||||
@@ -115,7 +115,6 @@ $menusMain = " | |||||
<m:item name='系统用户管理' link='sys_admin_user.php' rank='sys_User' target='main' /> | <m:item name='系统用户管理' link='sys_admin_user.php' rank='sys_User' target='main' /> | ||||
<m:item name='用户组设定' link='sys_group.php' rank='sys_Group' target='main' /> | <m:item name='用户组设定' link='sys_group.php' rank='sys_Group' target='main' /> | ||||
<m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' /> | <m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' /> | ||||
<m:item name='验证安全设置' link='sys_safe.php' rank='sys_verify' target='main' /> | |||||
<m:item name='图片水印设置' link='sys_info_mark.php' rank='sys_Edit' target='main' /> | <m:item name='图片水印设置' link='sys_info_mark.php' rank='sys_Edit' target='main' /> | ||||
<m:item name='自定义文档属性' link='content_att.php' rank='sys_Att' target='main' /> | <m:item name='自定义文档属性' link='content_att.php' rank='sys_Att' target='main' /> | ||||
<m:item name='软件频道设置' link='soft_config.php' rank='sys_SoftConfig' target='main' /> | <m:item name='软件频道设置' link='soft_config.php' rank='sys_SoftConfig' target='main' /> | ||||
@@ -2,9 +2,10 @@ | |||||
/** | /** | ||||
* 快捷发布菜单 | * 快捷发布菜单 | ||||
* | * | ||||
* @version $Id: file_pic_view.php 1 23:44 2011/2/16 tianya $ | |||||
* @version $Id: index_memnu_module.php 1 23:44 2011/2/16 tianya $ | |||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -69,7 +69,7 @@ function delArc(aid){ | |||||
function QuickEdit(aid, e, obj) | function QuickEdit(aid, e, obj) | ||||
{ | { | ||||
LoadQuickDiv(e, 'archives_do.php?dopost=quickEdit&aid='+aid+'&rnd='+Math.random(), 'quickEdit', '450px', '300px'); | |||||
LoadQuickDiv(e, 'archives_do.php?dopost=quickEdit&aid='+aid+'&rnd='+Math.random(), 'quickEdit', 'auto', '300px'); | |||||
ChangeFullDiv('show'); | ChangeFullDiv('show'); | ||||
} | } | ||||
//上下文菜单 | //上下文菜单 | ||||
@@ -47,24 +47,24 @@ function ShowColor(e, o) { | |||||
function ShowHide(objname) { | function ShowHide(objname) { | ||||
var obj = $Obj(objname); | var obj = $Obj(objname); | ||||
if (obj.style.display != "none") obj.style.display = "none"; | if (obj.style.display != "none") obj.style.display = "none"; | ||||
else obj.style.display = "block"; | |||||
else obj.style.display = "inline-block"; | |||||
} | } | ||||
function ShowHideT(objname) { | function ShowHideT(objname) { | ||||
var obj = $Obj(objname); | var obj = $Obj(objname); | ||||
if (obj.style.display != "none") obj.style.display = "none"; | if (obj.style.display != "none") obj.style.display = "none"; | ||||
else obj.style.display = ($Nav() == "IE" ? "block" : "table"); | |||||
else obj.style.display = ($Nav() == "IE" ? "inline-block" : "table"); | |||||
} | } | ||||
function ShowObj(objname) { | function ShowObj(objname) { | ||||
var obj = $Obj(objname); | var obj = $Obj(objname); | ||||
if (obj == null) return false; | if (obj == null) return false; | ||||
obj.style.display = ($Nav() == "IE" ? "block" : "table"); | |||||
obj.style.display = ($Nav() == "IE" ? "inline-block" : "table"); | |||||
} | } | ||||
function ShowObjRow(objname) { | function ShowObjRow(objname) { | ||||
var obj = $Obj(objname); | var obj = $Obj(objname); | ||||
obj.style.display = ($Nav() == "IE" ? "block" : "table-row"); | |||||
obj.style.display = ($Nav() == "IE" ? "inline-block" : "table-row"); | |||||
} | } | ||||
function AddTypeid2() { | function AddTypeid2() { | ||||
@@ -244,7 +244,7 @@ function ChangeFullDiv(showhide, screenheigt) { | |||||
newobj.id = 'fullpagediv'; | newobj.id = 'fullpagediv'; | ||||
newobj.style.position = 'absolute'; | newobj.style.position = 'absolute'; | ||||
newobj.className = 'fullpagediv'; | newobj.className = 'fullpagediv'; | ||||
newobj.style.height = screenheigt + 'px'; | |||||
newobj.style.height = document.body.clientHeight + 50 + 'px'; | |||||
document.body.appendChild(newobj); | document.body.appendChild(newobj); | ||||
} | } | ||||
else { | else { | ||||
@@ -354,6 +354,7 @@ function CkRemote() { | |||||
//载入指定宽高的AJAX窗体 | //载入指定宽高的AJAX窗体 | ||||
function LoadQuickDiv(e, surl, oname, w, h) { | function LoadQuickDiv(e, surl, oname, w, h) { | ||||
console.log(e); | |||||
if ($Nav() == 'IE') { | if ($Nav() == 'IE') { | ||||
if (window.event) { | if (window.event) { | ||||
var posLeft = window.event.clientX - 20; | var posLeft = window.event.clientX - 20; | ||||
@@ -381,11 +382,12 @@ function LoadQuickDiv(e, surl, oname, w, h) { | |||||
newobj.style.position = 'absolute'; | newobj.style.position = 'absolute'; | ||||
newobj.className = 'pubdlg'; | newobj.className = 'pubdlg'; | ||||
newobj.style.width = w; | newobj.style.width = w; | ||||
newobj.style.height = h; | |||||
newobj.style.height = h+30; | |||||
document.body.appendChild(newobj); | document.body.appendChild(newobj); | ||||
} | } | ||||
if (posTop > 500) posTop = 500; | if (posTop > 500) posTop = 500; | ||||
if (posLeft < 50) posLeft = 50; | if (posLeft < 50) posLeft = 50; | ||||
newobj.style.minWidth = "450px"; | |||||
newobj.style.top = posTop + "px"; | newobj.style.top = posTop + "px"; | ||||
newobj.style.left = posLeft + "px"; | newobj.style.left = posLeft + "px"; | ||||
newobj.innerHTML = '<div style="margin-top:10px;margin-left:10px;"><img src="images/loadinglit.gif" /> Loading...</div>'; | newobj.innerHTML = '<div style="margin-top:10px;margin-left:10px;"><img src="images/loadinglit.gif" /> Loading...</div>'; | ||||
@@ -621,7 +623,7 @@ args = { | |||||
// 这里用到了一个展开语法 | // 这里用到了一个展开语法 | ||||
// https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax | // https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax | ||||
function ShowMsg(content, ...args) { | function ShowMsg(content, ...args) { | ||||
title = "DedeCMS"; | |||||
title = "DedeCMS信息提示"; | |||||
if (typeof content == "undefined") content = ""; | if (typeof content == "undefined") content = ""; | ||||
modalID = guid(); | modalID = guid(); | ||||
var footer = `<button type="button" class="btn btn-primary" onClick="CloseModal(\'GKModal${modalID}\')">Ok</button>`; | var footer = `<button type="button" class="btn btn-primary" onClick="CloseModal(\'GKModal${modalID}\')">Ok</button>`; | ||||
@@ -792,6 +794,7 @@ $(document).ready(function () { | |||||
"timePicker24Hour": true, | "timePicker24Hour": true, | ||||
"timePickerSeconds": true, | "timePickerSeconds": true, | ||||
"showCustomRangeLabel": false, | "showCustomRangeLabel": false, | ||||
"drops": "up", | |||||
ranges: { | ranges: { | ||||
'今日': [moment(), moment()], | '今日': [moment(), moment()], | ||||
'昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | ||||
@@ -810,6 +813,14 @@ $(document).ready(function () { | |||||
}, function (start) { | }, function (start) { | ||||
$(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | $(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | ||||
}); | }); | ||||
$('.datepicker').on('show.daterangepicker', function(ev, picker) { | |||||
if (picker.element.offset().top - $(window).scrollTop() + picker.container.outerHeight() > $(window).height()) { | |||||
picker.drops = 'up'; | |||||
} else { | |||||
picker.drops = 'down'; | |||||
} | |||||
picker.move(); | |||||
}) | |||||
} | } | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: search_keywords_main.php 1 15:46 2010年7月20日Z tianya $ | * @version $Id: search_keywords_main.php 1 15:46 2010年7月20日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -74,7 +75,7 @@ function GetKeywordList($dsql,$pageno,$pagesize,$orderby='aid') | |||||
<td width='5%'>选择</td> | <td width='5%'>选择</td> | ||||
<td width='6%' height='23'><a href='#' onclick=\"ReloadPage('aid')\"><u>ID</u></a></td> | <td width='6%' height='23'><a href='#' onclick=\"ReloadPage('aid')\"><u>ID</u></a></td> | ||||
<td width='20%'>关键字</td> | <td width='20%'>关键字</td> | ||||
<td width='35%'>分词结果</td> | |||||
<td width='30%'>分词结果</td> | |||||
<td width='6%'><a href='#' onclick=\"ReloadPage('count')\"><u>频率</u></a></td> | <td width='6%'><a href='#' onclick=\"ReloadPage('count')\"><u>频率</u></a></td> | ||||
<td width='6%'><a href='#' onclick=\"ReloadPage('result')\"><u>结果</u></a></td> | <td width='6%'><a href='#' onclick=\"ReloadPage('result')\"><u>结果</u></a></td> | ||||
<td width='15%'><a href='#' onclick=\"ReloadPage('lasttime')\"><u>最后搜索时间</u></a></td> | <td width='15%'><a href='#' onclick=\"ReloadPage('lasttime')\"><u>最后搜索时间</u></a></td> | ||||
@@ -98,8 +99,8 @@ function GetKeywordList($dsql,$pageno,$pagesize,$orderby='aid') | |||||
<td><a href='{$cfg_phpurl}/search.php?kwtype=0&keyword=".urlencode($row['keyword'])."&searchtype=titlekeyword' target='_blank'><u>{$row['result']}</u></a></td> | <td><a href='{$cfg_phpurl}/search.php?kwtype=0&keyword=".urlencode($row['keyword'])."&searchtype=titlekeyword' target='_blank'><u>{$row['result']}</u></a></td> | ||||
<td>".MyDate("Y-m-d H:i:s",$row['lasttime'])."</td> | <td>".MyDate("Y-m-d H:i:s",$row['lasttime'])."</td> | ||||
<td> | <td> | ||||
<a href='#' onclick='UpdateNote({$row['aid']})'>更新</a> | | |||||
<a href='#' onclick='DelNote({$row['aid']})'>删除</a> | |||||
<a href='#' onclick='UpdateNote({$row['aid']})' class='btn btn-secondary btn-sm'>更新</a> | | |||||
<a href='#' onclick='DelNote({$row['aid']})' class='btn btn-secondary btn-sm'>删除</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
"; | "; | ||||
@@ -107,9 +108,9 @@ function GetKeywordList($dsql,$pageno,$pagesize,$orderby='aid') | |||||
} | } | ||||
echo " <tr align='left' bgcolor='#ffffff' height='30'> | echo " <tr align='left' bgcolor='#ffffff' height='30'> | ||||
<td colspan='8' style='padding-left:10px;'> | <td colspan='8' style='padding-left:10px;'> | ||||
<a href='javascript:selAll()' class='coolbg np'>反选</a> | |||||
<a href='javascript:noselAll()' class='coolbg np'>取消</a> | |||||
<a href='javascript:delall()' class='coolbg np'>删除</a> | |||||
<a href='javascript:selAll()' class='btn btn-secondary btn-sm'>反选</a> | |||||
<a href='javascript:noselAll()' class='btn btn-secondary btn-sm'>取消</a> | |||||
<a href='javascript:delall()' class='btn btn-secondary btn-sm'>删除</a> | |||||
</td> | </td> | ||||
</tr>\r\n"; | </tr>\r\n"; | ||||
echo "</table></form>\r\n"; | echo "</table></form>\r\n"; |
@@ -5,6 +5,7 @@ | |||||
* @version $Id: soft_add.php 1 16:09 2010年7月20日Z tianya $ | * @version $Id: soft_add.php 1 16:09 2010年7月20日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -298,15 +299,15 @@ else if($dopost=='save') | |||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | $msg = " | ||||
请选择你的后续操作: | 请选择你的后续操作: | ||||
<a href='soft_add.php?cid=$typeid'><u>继续发布软件</u></a> | |||||
<a href='soft_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布软件</a> | |||||
| | ||||
<a href='$arcUrl' target='_blank'><u>查看软件</u></a> | |||||
<a href='$arcUrl' target='_blank' class='btn btn-secondary btn-sm'>查看软件</a> | |||||
| | ||||
<a href='archives_do.php?aid=".$arcID."&dopost=editArchives'><u>更改软件</u></a> | |||||
<a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-secondary btn-sm'>更改软件</a> | |||||
| | ||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives'><u>已发布软件管理</u></a> | |||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>已发布软件管理</a> | |||||
| | ||||
<a href='catalog_main.php'><u>网站栏目管理</u></a> | |||||
<a href='catalog_main.php' class='btn btn-secondary btn-sm'>网站栏目管理</a> | |||||
"; | "; | ||||
$msg = "<div style=\"line-height:36px;height:36px\">{$msg}</div>".GetUpdateTest(); | $msg = "<div style=\"line-height:36px;height:36px\">{$msg}</div>".GetUpdateTest(); | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: soft_edit.php 1 16:09 2010年7月20日Z tianya $ | * @version $Id: soft_edit.php 1 16:09 2010年7月20日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -64,7 +65,7 @@ if($dopost!='save') | |||||
{ | { | ||||
$islocal = $ctag->GetAtt('islocal'); | $islocal = $ctag->GetAtt('islocal'); | ||||
if($islocal != 1) $needmsg = "<input type='checkbox' name='del{$newRowStart}' value='1' />删除"; | if($islocal != 1) $needmsg = "<input type='checkbox' name='del{$newRowStart}' value='1' />删除"; | ||||
else $needmsg = '<input name="sel1" type="button" id="sel1" value="选取" onClick="SelectSoft(\'form1.softurl'.$newRowStart.'\')" />'; | |||||
else $needmsg = '<button name="sel1" class="btn btn-secondary btn-sm" type="button" id="sel1" onClick="SelectSoft(\'form1.softurl'.$newRowStart.'\')">选取</button>'; | |||||
$nForm .= "<div style='line-height:36px'>软件地址{$newRowStart}:<input type='text' name='softurl{$newRowStart}' style='width:280px' value='".trim($ctag->GetInnerText())."' /> | $nForm .= "<div style='line-height:36px'>软件地址{$newRowStart}:<input type='text' name='softurl{$newRowStart}' style='width:280px' value='".trim($ctag->GetInnerText())."' /> | ||||
服务器名称:<input type='text' name='servermsg{$newRowStart}' value='".$ctag->GetAtt("text")."' style='width:150px' /> | 服务器名称:<input type='text' name='servermsg{$newRowStart}' value='".$ctag->GetAtt("text")."' style='width:150px' /> | ||||
<input type='hidden' name='islocal{$newRowStart}' value='{$islocal}' /> | <input type='hidden' name='islocal{$newRowStart}' value='{$islocal}' /> | ||||
@@ -322,15 +323,15 @@ else if($dopost=='save') | |||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | $msg = " | ||||
请选择你的后续操作: | 请选择你的后续操作: | ||||
<a href='soft_add.php?cid=$typeid'><u>发布新软件</u></a> | |||||
<a href='soft_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新软件</a> | |||||
| | ||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives'><u>继续修改</u></a> | |||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-secondary btn-sm'>继续修改</a> | |||||
| | ||||
<a href='$arcUrl' target='_blank'><u>查看软件</u></a> | |||||
<a href='$arcUrl' target='_blank' class='btn btn-secondary btn-sm'>查看软件</a> | |||||
| | ||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives'><u>已发布软件管理</u></a> | |||||
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>已发布软件管理</a> | |||||
| | ||||
<a href='catalog_main.php'><u>网站栏目管理</u></a> | |||||
<a href='catalog_main.php' class='btn btn-secondary btn-sm'>网站栏目管理</a> | |||||
"; | "; | ||||
$wintitle = "成功修改一个软件!"; | $wintitle = "成功修改一个软件!"; | ||||
$wecome_info = "文章管理::修改软件"; | $wecome_info = "文章管理::修改软件"; | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: spec_add.php 1 16:22 2010年7月20日Z tianya $ | * @version $Id: spec_add.php 1 16:22 2010年7月20日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -230,11 +231,11 @@ else if($dopost=='save') | |||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | $msg = " | ||||
请选择你的后续操作: | 请选择你的后续操作: | ||||
<a href='spec_add.php?cid=$typeid'><u>创建新专题</u></a> | |||||
<a href='spec_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>创建新专题</a> | |||||
| | ||||
<a href='$artUrl' target='_blank'><u>查看专题</u></a> | |||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看专题</a> | |||||
| | ||||
<a href='content_s_list.php'><u>已发布专题管理</u></a> | |||||
<a href='content_s_list.php' class='btn btn-secondary btn-sm'>已发布专题管理</a> | |||||
"; | "; | ||||
$wintitle = "成功创建专题!"; | $wintitle = "成功创建专题!"; | ||||
$wecome_info = "文章管理::发布专题"; | $wecome_info = "文章管理::发布专题"; | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: spec_edit.php 1 16:22 2010年7月20日Z tianya $ | * @version $Id: spec_edit.php 1 16:22 2010年7月20日Z tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -273,13 +274,13 @@ else if($dopost=='save') | |||||
ClearMyAddon($id, $title); | ClearMyAddon($id, $title); | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " 请选择你的后续操作: | $msg = " 请选择你的后续操作: | ||||
<a href='spec_add.php?cid=$typeid'><u>发布新专题</u></a> | |||||
<a href='spec_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新专题</a> | |||||
| | ||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives'><u>查看更改</u></a> | |||||
<a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-secondary btn-sm'>查看更改</a> | |||||
| | ||||
<a href='$artUrl' target='_blank'><u>查看专题</u></a> | |||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看专题</a> | |||||
| | ||||
<a href='content_s_list.php'><u>已发布专题管理</u></a> "; | |||||
<a href='content_s_list.php' class='btn btn-secondary btn-sm'>已发布专题管理</a> "; | |||||
$wintitle = "成功更改一个专题!"; | $wintitle = "成功更改一个专题!"; | ||||
$wecome_info = "专题管理::更改专题"; | $wecome_info = "专题管理::更改专题"; | ||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
@@ -5,6 +5,7 @@ | |||||
* @version $Id: stepselect_main.php 2 13:23 2011-3-24 tianya $ | * @version $Id: stepselect_main.php 2 13:23 2011-3-24 tianya $ | ||||
* @package DedeCMS.Administrator | * @package DedeCMS.Administrator | ||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | ||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license http://help.dedecms.com/usersguide/license.html | * @license http://help.dedecms.com/usersguide/license.html | ||||
* @link http://www.dedecms.com | * @link http://www.dedecms.com | ||||
*/ | */ | ||||
@@ -1,76 +0,0 @@ | |||||
<?php | |||||
/** | |||||
* 系统密码提示问 | |||||
* | |||||
* @version $Id: sys_safe.php 1 22:28 2010年7月20日Z tianya $ | |||||
* @package DedeCMS.Administrator | |||||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | |||||
* @license http://help.dedecms.com/usersguide/license.html | |||||
* @link http://www.dedecms.com | |||||
*/ | |||||
require_once(dirname(__FILE__)."/config.php"); | |||||
CheckPurview('sys_Safe'); | |||||
$safeconfigfile = DEDEDATA."/safe/inc_safe_config.php"; | |||||
if(empty($dopost)) $dopost = ""; | |||||
if($dopost == "save") | |||||
{ | |||||
$configstr = $shortname = ""; | |||||
$gdopen = empty($gdopen)? "" : $gdopen; | |||||
$codetype = empty($codetype)? 1 : $codetype; | |||||
$gdtype = empty($gdtype)? 1 : $gdtype; | |||||
$gdstyle = empty($gdstyle)? "" : $gdstyle; | |||||
$gd_wwidth = empty($gd_wwidth)? 0 : $gd_wwidth; | |||||
$gd_wheight = empty($gd_wheight)? 0 : $gd_wheight; | |||||
$codelen = empty($codelen)? 4 : $codelen; | |||||
$gdfaq_reg = empty($gdfaq_reg)? 0 : $gdfaq_reg; | |||||
$gdfaq_send = empty($gdfaq_send)? 0 : $gdfaq_send; | |||||
$gdfaq_msg = empty($gdfaq_msg)? 0 : $gdfaq_msg; | |||||
if(is_array($gdopen)) | |||||
{ | |||||
$configstr = "\$safe_gdopen = '".implode(",",$gdopen)."';\r\n"; | |||||
} else { | |||||
$configstr = "\$safe_gdopen = '';\r\n"; | |||||
} | |||||
$configstr .= "\$safe_codetype = '".$codetype."';\r\n"; | |||||
$configstr .= "\$safe_gdtype = '".$gdtype."';\r\n"; | |||||
if(is_array($gdstyle)) | |||||
{ | |||||
$configstr .= "\$safe_gdstyle = '".implode(",",$gdstyle)."';\r\n"; | |||||
} else { | |||||
$configstr .= "\$safe_gdstyle = '';\r\n"; | |||||
} | |||||
$configstr .= "\$safe_wwidth = '".$gd_wwidth."';\r\n"; | |||||
$configstr .= "\$safe_wheight = '".$gd_wheight."';\r\n"; | |||||
$configstr .= "\$safe_codelen = '".$codelen."';\r\n"; | |||||
$configstr .= "\$safe_faq_reg = '".$gdfaq_reg."';\r\n"; | |||||
$configstr .= "\$safe_faq_send = '".$gdfaq_send."';\r\n"; | |||||
$configstr .= "\$safe_faq_msg = '".$gdfaq_msg."';\r\n"; | |||||
//保存问答数组 | |||||
$faqs = array(); | |||||
for ($i = 1; $i <= count($question)-1; $i++) | |||||
{ | |||||
$val = trim($question[$i]); | |||||
if($val) | |||||
{ | |||||
$faqs[$i]['question'] = str_replace("'","\"",stripslashes($val)); | |||||
$faqs[$i]['answer'] = stripslashes(trim($answer[$i])); | |||||
} | |||||
} | |||||
//print_r($question);exit(); | |||||
$configstr .= "\$safe_faqs = '".serialize($faqs)."';\r\n"; | |||||
$configstr = "<"."?php\r\n".$configstr."?".">\r\n"; | |||||
$fp = fopen($safeconfigfile, "w") or die("写入文件 $safeconfigfile 失败,请检查权限!"); | |||||
fwrite($fp, $configstr); | |||||
fclose($fp); | |||||
ShowMsg("修改配置成功!","sys_safe.php"); | |||||
exit; | |||||
} | |||||
require_once($safeconfigfile); | |||||
$safefaqs = unserialize($safe_faqs); | |||||
include DedeInclude('templets/sys_safe.htm'); |
@@ -54,11 +54,6 @@ | |||||
img { | img { | ||||
vertical-align: baseline; | vertical-align: baseline; | ||||
} | } | ||||
input, | |||||
select { | |||||
height: auto !important; | |||||
} | |||||
</style> | </style> | ||||
</head> | </head> | ||||
@@ -72,12 +67,12 @@ | |||||
<input name="maxwidth" type="hidden" id="maxwidth" size="10" value="<?php echo $cfg_album_width; ?>" /> | <input name="maxwidth" type="hidden" id="maxwidth" size="10" value="<?php echo $cfg_album_width; ?>" /> | ||||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | <input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | ||||
<input type="hidden" id="albums" name="albums" value=""> | <input type="hidden" id="albums" name="albums" value=""> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||||
<tr> | <tr> | ||||
<td width="65%" height="30"><img height=14 src="images/book1.gif" width="20" /> <a | <td width="65%" height="30"><img height=14 src="images/book1.gif" width="20" /> <a | ||||
href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>图集列表</u></a> | href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>图集列表</u></a> | ||||
>> 发布新图集</td> | >> 发布新图集</td> | ||||
<td width="30%" align='right'><?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a> </td> | |||||
<td width="30%" align='right'><?php echo $backurl; ?><a class="btn btn-secondary btn-sm" href="catalog_main.php">栏目管理</a> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | ||||
@@ -131,9 +126,9 @@ | |||||
while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
{ | { | ||||
if($trow->att=='j') | if($trow->att=='j') | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'>{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> "; | |||||
else | else | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'>{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -178,21 +173,20 @@ | |||||
<tr> | <tr> | ||||
<td height="30"> | <td height="30"> | ||||
<input name="picname" type="text" id="picname" style="width:240px" /> | <input name="picname" type="text" id="picname" style="width:240px" /> | ||||
<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" | |||||
onClick="SelectImage('form1.picname','small');" class='np coolbg' /> | |||||
<input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' />远程 | |||||
<span class="btn btn-success fileinput-button"> | |||||
<button type="button" | |||||
onClick="SelectImage('form1.picname','small');" class='btn btn-secondary btn-sm'>站内选择</button> | |||||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程</label> | |||||
<span class="btn btn-secondary btn-sm fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | <i class="glyphicon glyphicon-plus"></i> | ||||
选择图片 | 选择图片 | ||||
<input type="file" name="files[]" id="iptAddImages"> | <input type="file" name="files[]" id="iptAddImages"> | ||||
</span> | </span> | ||||
<button id="btnClearAll" type="button" class="btn btn-danger delete"> | |||||
<button id="btnClearAll" type="button" class="btn btn-sm btn-secondary delete"> | |||||
<i class="fa fa-trash-o"></i> | <i class="fa fa-trash-o"></i> | ||||
<span>清空</span> | <span>清空</span> | ||||
</button> | </button> | ||||
<br /> | <br /> | ||||
<input type='checkbox' class='np' name='ddisfirst' value='1' />使用图集的第一幅图 | |||||
<label><input type='checkbox' class='np' name='ddisfirst' value='1' /> 使用图集的第一幅图</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -224,7 +218,7 @@ | |||||
<?php | <?php | ||||
if($cfg_need_typeid2=='Y') | if($cfg_need_typeid2=='Y') | ||||
{ | { | ||||
echo "<a href='javascript:AddTypeid2();'>【<u>选择副栏目</u>】</a>"; | |||||
echo "<a href='javascript:AddTypeid2();' class='btn btn-secondary btn-sm'>选择副栏目</a>"; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -317,11 +311,11 @@ | |||||
<td width="90"> <b>上传方式:</b></td> | <td width="90"> <b>上传方式:</b></td> | ||||
<td> | <td> | ||||
<input name="isrm" class="np" type="hidden" id="isrm" value="1" /> | <input name="isrm" class="np" type="hidden" id="isrm" value="1" /> | ||||
<input name="byhand" class="np" type="checkbox" id="byhand" value="1" disabled="ture" checked /> | |||||
手工上传 | |||||
<input name="formzip" class="np" type="checkbox" id="formzip" value="1" | |||||
<label><input name="byhand" class="np" type="checkbox" id="byhand" value="1" disabled="ture" checked /> | |||||
手工上传</label> | |||||
<label><input name="formzip" class="np" type="checkbox" id="formzip" value="1" | |||||
onClick="showZipField(this,'zipff','htmlfield');" /> | onClick="showZipField(this,'zipff','htmlfield');" /> | ||||
从ZIP压缩包中解压图片 | |||||
从ZIP压缩包中解压图片</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -333,8 +327,8 @@ | |||||
<tr> | <tr> | ||||
<td width="90"> 压缩包文件:</td> | <td width="90"> 压缩包文件:</td> | ||||
<td><input type='text' name='zipfile' id='zipfile' style='width:300px'> | <td><input type='text' name='zipfile' id='zipfile' style='width:300px'> | ||||
<input name='addon_bt' type='button' class='inputbut' value='浏览...' | |||||
onClick="SelectSoft('form1.zipfile')"> | |||||
<button name='addon_bt' type='button' | |||||
onClick="SelectSoft('form1.zipfile')" class="btn btn-secondary btn-sm">浏览...</button> | |||||
<input name="delzip" type="checkbox" id="delzip" value="1" checked="checked" /> | <input name="delzip" type="checkbox" id="delzip" value="1" checked="checked" /> | ||||
处理后删除压缩文件 </td> | 处理后删除压缩文件 </td> | ||||
</tr> | </tr> | ||||
@@ -366,7 +360,7 @@ | |||||
<tr> | <tr> | ||||
<td width="80" height="40"> <b>手工上传:</b></td> | <td width="80" height="40"> <b>手工上传:</b></td> | ||||
<td> | <td> | ||||
<span class="btn btn-success fileinput-button"> | |||||
<span class="btn btn-secondary btn-sm fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | <i class="glyphicon glyphicon-plus"></i> | ||||
选择本地图片(支持多选) | 选择本地图片(支持多选) | ||||
<input type="file" name="files[]" id="iptAlbumImages" multiple> | <input type="file" name="files[]" id="iptAlbumImages" multiple> | ||||
@@ -408,11 +402,11 @@ | |||||
<tr> | <tr> | ||||
<td width="90"> 图集来源:</td> | <td width="90"> 图集来源:</td> | ||||
<td width="240"><input name="source" type="text" id="source" style="width:160px" value="" size="16"> | <td width="240"><input name="source" type="text" id="source" style="width:160px" value="" size="16"> | ||||
<input name="selsource" type="button" id="selsource" value="选择"></td> | |||||
<button name="selsource" type="button" id="selsource" class="btn btn-secondary btn-sm">选择</button></td> | |||||
<td width="90">作 者:</td> | <td width="90">作 者:</td> | ||||
<td> | <td> | ||||
<input name="writer" type="text" id="writer" style="width:120px" value=""> | <input name="writer" type="text" id="writer" style="width:120px" value=""> | ||||
<input name="selwriter" type="button" id="selwriter" value="选择"> | |||||
<button name="selwriter" type="button" id="selwriter" class="btn btn-secondary btn-sm">选择</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -424,11 +418,11 @@ | |||||
<tr> | <tr> | ||||
<td width="90" height="22" width="240"> 评论选项:</td> | <td width="90" height="22" width="240"> 评论选项:</td> | ||||
<td width="240"> | <td width="240"> | ||||
<input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> />允许评论 | |||||
<label><input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论</label> | |||||
| | ||||
<input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> />禁止评论 | |||||
<label><input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="90">浏览次数:</td> | <td width="90">浏览次数:</td> | ||||
<td> | <td> | ||||
@@ -456,7 +450,7 @@ | |||||
<td width="90">标题颜色:</td> | <td width="90">标题颜色:</td> | ||||
<td> | <td> | ||||
<input name="color" type="text" id="color" style="width:120px"> | <input name="color" type="text" id="color" style="width:120px"> | ||||
<input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)"> </td> | |||||
<button class="btn btn-secondary btn-sm" name="modcolor" type="button" id="modcolor" onClick="ShowColor(event,this)">选取</button></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -479,10 +473,10 @@ | |||||
</select> </td> | </select> </td> | ||||
<td width="90">发布选项:</td> | <td width="90">发布选项:</td> | ||||
<td> | <td> | ||||
<input name="ishtml" type="radio" class="np" value="1" checked> | |||||
生成HTML | |||||
<input type="radio" name="ishtml" class="np" value="0"> | |||||
仅动态浏览 | |||||
<label><input name="ishtml" type="radio" class="np" value="1" checked> | |||||
生成HTML</label> | |||||
<label><input type="radio" name="ishtml" class="np" value="0"> | |||||
仅动态浏览</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -510,9 +504,9 @@ | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 关键字:</td> | <td width="90"> 关键字:</td> | ||||
<td colspan="2"><input type='text' name="keywords" id="keywords" style="width:290px;" value="" /><input | |||||
type="button" name="Submit" value="浏览..." style="width:56;height:20" | |||||
onClick="SelectKeywords('form1.keywords');"></td> | |||||
<td colspan="2"><input type='text' name="keywords" id="keywords" style="width:290px;" value="" /> <button | |||||
type="button" name="Submit" | |||||
onClick="SelectKeywords('form1.keywords');" class="btn btn-secondary btn-sm">浏览...</button></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -521,7 +515,7 @@ | |||||
<td height="24" colspan="4" class="bline"> | <td height="24" colspan="4" class="bline"> | ||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 图集内容摘要:</td> | |||||
<td width="120"> 图集内容摘要:</td> | |||||
<td width="449"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td> | <td width="449"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td> | ||||
<td width="261"> </td> | <td width="261"> </td> | ||||
</tr> | </tr> | ||||
@@ -532,7 +526,7 @@ | |||||
<td height="24" colspan="4"> | <td height="24" colspan="4"> | ||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 自定义文件名:</td> | |||||
<td width="120"> 自定义文件名:</td> | |||||
<td width="449"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | <td width="449"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | ||||
<td width="261"> </td> | <td width="261"> </td> | ||||
</tr> | </tr> | ||||
@@ -541,7 +535,7 @@ | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | ||||
style="border:1px solid #cfcfcf;border-top:none;"> | |||||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
<tr> | <tr> | ||||
<td height="35"> | <td height="35"> | ||||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | <table width="100%" border="0" cellspacing="1" cellpadding="1"> | ||||
@@ -550,13 +544,11 @@ | |||||
<td width="83%"> | <td width="83%"> | ||||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | <table width="214" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="115"> | |||||
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0" | |||||
class="np" /> | |||||
<td width="115" class="py-3"> | |||||
<button type="submit" class="btn btn-secondary">保存</button> | |||||
</td> | </td> | ||||
<td width="99"> | |||||
<img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" | |||||
style="cursor:pointer;" /> | |||||
<td width="99" class="py-3"> | |||||
<button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -7,6 +7,7 @@ | |||||
body { | body { | ||||
background-image: url(images/allbg.gif); | background-image: url(images/allbg.gif); | ||||
} | } | ||||
</style> | </style> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | ||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | ||||
@@ -58,9 +59,8 @@ body { | |||||
vertical-align: baseline; | vertical-align: baseline; | ||||
} | } | ||||
input, | |||||
select { | |||||
height: auto !important; | |||||
.albEdit { | |||||
height: auto; | |||||
} | } | ||||
</style> | </style> | ||||
</head> | </head> | ||||
@@ -72,10 +72,10 @@ body { | |||||
<input type="hidden" name="dopost" value="save" /> | <input type="hidden" name="dopost" value="save" /> | ||||
<input type="hidden" id="albums" name="albums" value=""> | <input type="hidden" id="albums" name="albums" value=""> | ||||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | <input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||||
<tr> | <tr> | ||||
<td width="65%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a href="catalog_do.php?cid=<?php echo $arcRow["typeid"]?>&dopost=listArchives"><u>图集列表</u></a> >> 更改图集</td> | <td width="65%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a href="catalog_do.php?cid=<?php echo $arcRow["typeid"]?>&dopost=listArchives"><u>图集列表</u></a> >> 更改图集</td> | ||||
<td width="30%" align='right'><?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a> </td> | |||||
<td width="30%" align='right'><?php echo $backurl; ?><a class="btn btn-secondary btn-sm" href="catalog_main.php">栏目管理</a> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | ||||
@@ -121,9 +121,9 @@ body { | |||||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | ||||
else $jumpclick = ''; | else $jumpclick = ''; | ||||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | if(preg_match("#".$trow->att."#", $arcRow['flag'])) | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' />{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' /> {$trow->attname}[{$trow->att}]</label> "; | |||||
else | else | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} />{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
?></td> | ?></td> | ||||
</tr> | </tr> | ||||
@@ -154,16 +154,16 @@ body { | |||||
<tr> | <tr> | ||||
<td width="90" height="81"> 缩 略 图:<br/></td> | <td width="90" height="81"> 缩 略 图:<br/></td> | ||||
<td><input name="picname" type="text" id="picname" style="width:300px" | <td><input name="picname" type="text" id="picname" style="width:300px" | ||||
value="<?php echo $arcRow["litpic"]?>"><input type="button" name="Submit" value="浏览..." | |||||
style="width:70px" onClick="SelectImage('form1.picname','');"> | |||||
<input type='checkbox' class='np' name='ddisremote' value='1'> | |||||
远程 | |||||
<span class="btn btn-success fileinput-button"> | |||||
value="<?php echo $arcRow["litpic"]?>"> <button type="button" name="Submit" | |||||
class="btn btn-secondary btn-sm" onClick="SelectImage('form1.picname','');">浏览...</button> | |||||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> | |||||
远程</label> | |||||
<span class="btn btn-secondary btn-sm fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | <i class="glyphicon glyphicon-plus"></i> | ||||
选择图片 | 选择图片 | ||||
<input type="file" name="files[]" id="iptAddImages"> | <input type="file" name="files[]" id="iptAddImages"> | ||||
</span> | </span> | ||||
<button id="btnClearAll" type="button" class="btn btn-danger delete"> | |||||
<button id="btnClearAll" type="button" class="btn btn-secondary btn-sm delete"> | |||||
<i class="fa fa-trash-o"></i> | <i class="fa fa-trash-o"></i> | ||||
<span>清空</span> | <span>清空</span> | ||||
</button> </td> | </button> </td> | ||||
@@ -237,11 +237,12 @@ if($cfg_need_typeid2=='Y') { | |||||
评论选项: | 评论选项: | ||||
</td> | </td> | ||||
<td width="250"><input type='radio' name='notpost' class='np' value='0'<?php if($arcRow['notpost']==0) echo " checked='1' "; ?>/> | |||||
允许评论 | |||||
<td width="250"> | |||||
<label><input type='radio' name='notpost' class='np' value='0'<?php if($arcRow['notpost']==0) echo " checked='1' "; ?>/> | |||||
允许评论</label> | |||||
| | ||||
<input type='radio' name='notpost' class='np' value='1'<?php if($arcRow['notpost']==1) echo " checked='1' "; ?>/> | |||||
禁止评论 </td> | |||||
<label><input type='radio' name='notpost' class='np' value='1'<?php if($arcRow['notpost']==1) echo " checked='1' "; ?>/> | |||||
禁止评论</label></td> | |||||
<td width="90">浏览次数:</td> | <td width="90">浏览次数:</td> | ||||
<td><input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /></td> | <td><input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /></td> | ||||
</tr> | </tr> | ||||
@@ -265,7 +266,7 @@ if($cfg_need_typeid2=='Y') { | |||||
</select></td> | </select></td> | ||||
<td width="90">标题颜色:</td> | <td width="90">标题颜色:</td> | ||||
<td><input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>"> | <td><input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>"> | ||||
<input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)"></td> | |||||
<button name="modcolor" type="button" id="modcolor" class="btn btn-secondary btn-sm" onClick="ShowColor(event,this)">选取</button></td> | |||||
</tr> | </tr> | ||||
</table></td> | </table></td> | ||||
</tr> | </tr> | ||||
@@ -286,10 +287,10 @@ if($cfg_need_typeid2=='Y') { | |||||
?> | ?> | ||||
</select></td> | </select></td> | ||||
<td width="90">发布选项:</td> | <td width="90">发布选项:</td> | ||||
<td><input name="ishtml" type="radio" class="np" value="1"<?php if($arcRow["ismake"]!=-1) echo " checked";?>> | |||||
生成HTML | |||||
<input type="radio" name="ishtml" class="np" value="0"<?php if($arcRow["ismake"]==-1) echo " checked";?>> | |||||
仅动态浏览 </td> | |||||
<td><label><input name="ishtml" type="radio" class="np" value="1"<?php if($arcRow["ismake"]!=-1) echo " checked";?>> | |||||
生成HTML</label> | |||||
<label><input type="radio" name="ishtml" class="np" value="0"<?php if($arcRow["ismake"]==-1) echo " checked";?>> | |||||
仅动态浏览</label></td> | |||||
</tr> | </tr> | ||||
</table></td> | </table></td> | ||||
</tr> | </tr> | ||||
@@ -318,7 +319,7 @@ if($cfg_need_typeid2=='Y') { | |||||
<tr> | <tr> | ||||
<td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90" height="51"> 图集内容摘要:</td> | |||||
<td width="120" height="51"> 图集内容摘要:</td> | |||||
<td><textarea name="description" rows="3" id="description" style="width:60%"><?php echo $arcRow["description"]?></textarea></td> | <td><textarea name="description" rows="3" id="description" style="width:60%"><?php echo $arcRow["description"]?></textarea></td> | ||||
</tr> | </tr> | ||||
</table></td> | </table></td> | ||||
@@ -326,7 +327,7 @@ if($cfg_need_typeid2=='Y') { | |||||
<tr> | <tr> | ||||
<td height="24" colspan="4"><table width="800" border="0" cellspacing="0" cellpadding="0"> | <td height="24" colspan="4"><table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 自定义文件名:</td> | |||||
<td width="120"> 自定义文件名:</td> | |||||
<td width="449"><input type="text" name="filename" id="filename" value="<?php echo $arcRow["filename"]?>" /> | <td width="449"><input type="text" name="filename" id="filename" value="<?php echo $arcRow["filename"]?>" /> | ||||
(不包括后缀名如.html等)</td> | (不包括后缀名如.html等)</td> | ||||
<td width="261"> </td> | <td width="261"> </td> | ||||
@@ -355,7 +356,7 @@ if($cfg_need_typeid2=='Y') { | |||||
<tr id='cfgmulist' style='<?php if($pagestyle!=3) echo 'display:none'; ?>'> | <tr id='cfgmulist' style='<?php if($pagestyle!=3) echo 'display:none'; ?>'> | ||||
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td height="26"> 多列式参数:</td> | |||||
<td width="120"> 多列式参数:</td> | |||||
<td>行 | <td>行 | ||||
<input name="row" type="text" id="row" value="<?php echo $irow; ?>" size="6"> | <input name="row" type="text" id="row" value="<?php echo $irow; ?>" size="6"> | ||||
列 | 列 | ||||
@@ -393,10 +394,10 @@ if($cfg_need_typeid2=='Y') { | |||||
<tr> | <tr> | ||||
<td width="90"> 上传方式:</td> | <td width="90"> 上传方式:</td> | ||||
<td><input name="isrm" class="np" type="hidden" id="isrm" value="1" /> | <td><input name="isrm" class="np" type="hidden" id="isrm" value="1" /> | ||||
<input name="byhand" class="np" type="checkbox" id="byhand" value="1" disabled="ture" checked /> | |||||
手工上传 | |||||
<input name="formzip" class="np" type="checkbox" id="formzip" value="1" onClick="showZipField(this,'zipff','htmlfield');" /> | |||||
从ZIP压缩包中解压图片 | |||||
<label><input name="byhand" class="np" type="checkbox" id="byhand" value="1" disabled="ture" checked /> | |||||
手工上传</label> | |||||
<label><input name="formzip" class="np" type="checkbox" id="formzip" value="1" onClick="showZipField(this,'zipff','htmlfield');" /> | |||||
从ZIP压缩包中解压图片</label> | |||||
</tr> | </tr> | ||||
</table></td> | </table></td> | ||||
</tr> | </tr> | ||||
@@ -405,9 +406,9 @@ if($cfg_need_typeid2=='Y') { | |||||
<tr> | <tr> | ||||
<td width="90"> 压缩包文件:</td> | <td width="90"> 压缩包文件:</td> | ||||
<td><input type='text' name='zipfile' id='zipfile' style='width:300px'> | <td><input type='text' name='zipfile' id='zipfile' style='width:300px'> | ||||
<input name='addon_bt' type='button' class='inputbut' value='浏览...' onClick="SelectSoft('form1.zipfile')"> | |||||
<input name="delzip" type="checkbox" id="delzip" value="1" checked="checked" /> | |||||
处理后删除压缩文件 </td> | |||||
<button name='addon_bt' type='button' class='btn btn-secondary btn-sm' onClick="SelectSoft('form1.zipfile')">浏览...</button> | |||||
<label><input name="delzip" type="checkbox" id="delzip" value="1" checked="checked" /> | |||||
处理后删除压缩文件</label> </td> | |||||
</tr> | </tr> | ||||
</table></td> | </table></td> | ||||
</tr> | </tr> | ||||
@@ -478,7 +479,7 @@ if($cfg_need_typeid2=='Y') { | |||||
<tr> | <tr> | ||||
<td width="90"> <b>增加新图片:</b></td> | <td width="90"> <b>增加新图片:</b></td> | ||||
<td> | <td> | ||||
<span class="btn btn-success fileinput-button"> | |||||
<span class="btn btn-secondary btn-sm fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | <i class="glyphicon glyphicon-plus"></i> | ||||
选择本地图片(支持多选) | 选择本地图片(支持多选) | ||||
<input type="file" name="files[]" id="iptAlbumImages" multiple> | <input type="file" name="files[]" id="iptAlbumImages" multiple> | ||||
@@ -496,15 +497,16 @@ if($cfg_need_typeid2=='Y') { | |||||
</table></td> | </table></td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
<tr> | <tr> | ||||
<td height="35"><table width="100%" border="0" cellspacing="1" cellpadding="1"> | <td height="35"><table width="100%" border="0" cellspacing="1" cellpadding="1"> | ||||
<tr> | <tr> | ||||
<td width="10%"> </td> | <td width="10%"> </td> | ||||
<td><table width="214" border="0" cellspacing="0" cellpadding="0"> | <td><table width="214" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="115"><input name="imageField2" type="image" class="np" src="images/button_ok.gif" width="60" height="22" border="0" style="cursor:ponter" /></td> | |||||
<td width="99"><img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:ponter" /></td> | |||||
<td width="115" class="py-3"><button type="submit" class="btn btn-secondary">保存</button></td> | |||||
<td width="99" class="py-3"><button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button></td> | |||||
</tr> | </tr> | ||||
</table></td> | </table></td> | ||||
</tr> | </tr> | ||||
@@ -26,11 +26,11 @@ | |||||
<script language="javascript"> | <script language="javascript"> | ||||
function checkSubmit() { | function checkSubmit() { | ||||
if (document.form1.title.value == "") { | if (document.form1.title.value == "") { | ||||
alert("<?php echo $cInfos['titlename']; ?>不能为空!"); | |||||
ShowMsg("<?php echo $cInfos['titlename']; ?>不能为空!"); | |||||
return false; | return false; | ||||
} | } | ||||
if (document.form1.typeid.value == 0) { | if (document.form1.typeid.value == 0) { | ||||
alert("请选择档案的主栏目!"); | |||||
ShowMsg("请选择档案的主栏目!"); | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
@@ -48,12 +48,12 @@ | |||||
</head> | </head> | ||||
<body topmargin="8"> | <body topmargin="8"> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||||
<tr> | <tr> | ||||
<td width="65%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | <td width="65%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | ||||
href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文档列表</u></a> | href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文档列表</u></a> | ||||
>> 发布文档</td> | >> 发布文档</td> | ||||
<td width="30%" align='right'><?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a> </td> | |||||
<td width="30%" align='right'><?php echo $backurl; ?><a href="catalog_main.php" class="btn btn-secondary btn-sm">栏目管理</a> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -122,9 +122,9 @@ | |||||
while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
{ | { | ||||
if($trow->att=='j') | if($trow->att=='j') | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'>{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label>"; | |||||
else | else | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'>{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -169,15 +169,15 @@ | |||||
<tr> | <tr> | ||||
<td height="30"> | <td height="30"> | ||||
<input name="picname" type="text" id="picname" style="width:240px" /> | <input name="picname" type="text" id="picname" style="width:240px" /> | ||||
<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" | |||||
onClick="SelectImage('form1.picname','small');" class='np coolbg' /> | |||||
<input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' />远程 | |||||
<span class="btn btn-success fileinput-button"> | |||||
<button type="button" name="Submit2" class="btn btn-secondary" | |||||
onClick="SelectImage('form1.picname','small');" class='np coolbg'>站内选择</button> | |||||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程 </label> | |||||
<span class="btn btn-secondary fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | <i class="glyphicon glyphicon-plus"></i> | ||||
选择图片 | 选择图片 | ||||
<input type="file" name="files[]" id="iptAddImages"> | <input type="file" name="files[]" id="iptAddImages"> | ||||
</span> | </span> | ||||
<button id="btnClearAll" type="button" class="btn btn-danger delete"> | |||||
<button id="btnClearAll" type="button" class="btn btn-secondary delete"> | |||||
<i class="fa fa-trash-o"></i> | <i class="fa fa-trash-o"></i> | ||||
<span>清空</span> | <span>清空</span> | ||||
</button> | </button> | ||||
@@ -221,7 +221,7 @@ | |||||
<?php | <?php | ||||
if($cfg_need_typeid2=='Y') | if($cfg_need_typeid2=='Y') | ||||
{ | { | ||||
echo "<a href='javascript:AddTypeid2();'>【<u>选择副栏目</u>】</a>"; | |||||
echo "<a href='javascript:AddTypeid2();' class='btn btn-secondary btn-sm'>选择副栏目</a>"; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -254,18 +254,18 @@ | |||||
<tr> | <tr> | ||||
<td width="90"> 附加选项:</td> | <td width="90"> 附加选项:</td> | ||||
<td> | <td> | ||||
<input name="remote" type="checkbox" class="np" id="remote" value="1" | |||||
<label><input name="remote" type="checkbox" class="np" id="remote" value="1" | |||||
<?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?> /> | <?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?> /> | ||||
下载远程图片和资源 | |||||
<input name="dellink" type="checkbox" class="np" id="dellink" value="1" | |||||
下载远程图片和资源</label> | |||||
<label><input name="dellink" type="checkbox" class="np" id="dellink" value="1" | |||||
<?php if($cfg_arc_dellink=='Y') echo ' checked="1" '; ?> /> | <?php if($cfg_arc_dellink=='Y') echo ' checked="1" '; ?> /> | ||||
删除非站内链接 | |||||
<input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" | |||||
删除非站内链接</label> | |||||
<label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" | |||||
<?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?> /> | <?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?> /> | ||||
提取第一个图片为缩略图 | |||||
<input type='checkbox' name='needwatermark' value='1' class='np' | |||||
提取第一个图片为缩略图</label> | |||||
<label><input type='checkbox' name='needwatermark' value='1' class='np' | |||||
<?php if($photo_markup=='1') echo ' checked="1" '; ?> /> | <?php if($photo_markup=='1') echo ' checked="1" '; ?> /> | ||||
图片是否加水印 | |||||
图片是否加水印</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -281,11 +281,11 @@ | |||||
<tr> | <tr> | ||||
<td width="90" height="22" width="240"> 评论选项:</td> | <td width="90" height="22" width="240"> 评论选项:</td> | ||||
<td width="250"> | <td width="250"> | ||||
<input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> />允许评论 | |||||
<label><input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论</label> | |||||
| | ||||
<input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> />禁止评论 | |||||
<label><input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="90">浏览次数:</td> | <td width="90">浏览次数:</td> | ||||
<td> | <td> | ||||
@@ -303,10 +303,10 @@ | |||||
<tr> | <tr> | ||||
<td width="90"> 文档来源:</td> | <td width="90"> 文档来源:</td> | ||||
<td width="240"><input name="source" type="text" id="source" style="width:160px" value="" size="16"> | <td width="240"><input name="source" type="text" id="source" style="width:160px" value="" size="16"> | ||||
<input name="selsource" type="button" id="selsource" value="选择"></td> | |||||
<button name="selsource" type="button" id="selsource" class="btn btn-secondary btn-sm">选择</button></td> | |||||
<td width="90">作 者:</td> | <td width="90">作 者:</td> | ||||
<td> <input name="writer" type="text" id="writer" style="width:120px" value=""> | <td> <input name="writer" type="text" id="writer" style="width:120px" value=""> | ||||
<input name="selwriter" type="button" id="selwriter" value="选择"> </td> | |||||
<button name="selwriter" type="button" id="selwriter" class="btn btn-secondary btn-sm">选择</button> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<script language='javascript'>InitPage();</script> | <script language='javascript'>InitPage();</script> | ||||
@@ -328,7 +328,7 @@ | |||||
<td width="90">标题颜色:</td> | <td width="90">标题颜色:</td> | ||||
<td> | <td> | ||||
<input name="color" type="text" id="color" style="width:120px"> | <input name="color" type="text" id="color" style="width:120px"> | ||||
<input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)"> </td> | |||||
<button name="modcolor" type="button" id="modcolor" onClick="ShowColor(event,this)" class="btn btn-secondary btn-sm">选取</button> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -351,10 +351,10 @@ | |||||
</select> </td> | </select> </td> | ||||
<td width="90">发布选项:</td> | <td width="90">发布选项:</td> | ||||
<td> | <td> | ||||
<input name="ishtml" type="radio" class="np" value="1" checked> | |||||
生成HTML | |||||
<input type="radio" name="ishtml" class="np" value="0"> | |||||
仅动态浏览 </td> | |||||
<label><input name="ishtml" type="radio" class="np" value="1" checked> | |||||
生成HTML</label> | |||||
<label><input type="radio" name="ishtml" class="np" value="0"> | |||||
仅动态浏览</label> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -381,11 +381,12 @@ | |||||
<tr> | <tr> | ||||
<td width="90"> 关键字:</td> | <td width="90"> 关键字:</td> | ||||
<td width="448"><input type='text' name="keywords" id="keywords" style="width:80%" value="" /></td> | <td width="448"><input type='text' name="keywords" id="keywords" style="width:80%" value="" /></td> | ||||
<td width="262"><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" | |||||
<td width="262"><label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" | |||||
id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>> | id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>> | ||||
自动获取,手动填写用","分开<br /> | |||||
<input type="button" name="Submit" value="浏览..." style="width:56;height:20" | |||||
onClick="SelectKeywords('form1.keywords');"></td> | |||||
自动获取,手动填写用","分开</label><br /> | |||||
<button type="button" name="Submit" value="" class="btn btn-secondary btn-sm" | |||||
onClick="SelectKeywords('form1.keywords');">浏览...</button> | |||||
</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -405,7 +406,7 @@ | |||||
<td height="24" colspan="4"> | <td height="24" colspan="4"> | ||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 自定义文件名:</td> | |||||
<td width="120"> 自定义文件名:</td> | |||||
<td width="449"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | <td width="449"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | ||||
<td width="261"> </td> | <td width="261"> </td> | ||||
</tr> | </tr> | ||||
@@ -425,12 +426,10 @@ | |||||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | <table width="214" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="115"> | <td width="115"> | ||||
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" | |||||
border="0" style="cursor:pointer; "> | |||||
<button type="submit" class="btn btn-secondary">保存</button> | |||||
</td> | </td> | ||||
<td width="99"> | <td width="99"> | ||||
<img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" | |||||
style="cursor:pointer; "> | |||||
<button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -24,11 +24,11 @@ | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
<script src="../static/js/jquery.js"></script> | <script src="../static/js/jquery.js"></script> | ||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | <script language="javascript" src="../static/js/dedeajax2.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="js/main.js"></script> | <script language="javascript" src="js/main.js"></script> | ||||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | <link href="../static/css/daterangepicker.css" rel="stylesheet"> | ||||
<script type="text/javascript" src="../static/js/moment.min.js"></script> | <script type="text/javascript" src="../static/js/moment.min.js"></script> | ||||
<script type="text/javascript" src="../static/js/daterangepicker.js"></script> | <script type="text/javascript" src="../static/js/daterangepicker.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | <link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | ||||
<link href="../static/css/cropper.min.css" rel="stylesheet"> | <link href="../static/css/cropper.min.css" rel="stylesheet"> | ||||
<script src="../static/js/cropper.min.js"></script> | <script src="../static/js/cropper.min.js"></script> | ||||
@@ -417,11 +417,9 @@ if($cfg_need_typeid2=='Y') { | |||||
<td width="83%"> | <td width="83%"> | ||||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | <table width="214" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="115"><input name="imageField" type="image" src="images/button_ok.gif" width="60" | |||||
height="22" class="np" border="0" style="cursor:pointer"></td> | |||||
<td width="115"><button type="submit" class="btn btn-secondary">保存</button></td> | |||||
<td width="99"> | <td width="99"> | ||||
<img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" | |||||
style="cursor:pointer"> | |||||
<button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -10,12 +10,12 @@ body { background-image: url(images/allbg.gif); } | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | ||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | <script language="javascript" src="../static/js/jquery.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | <script language="javascript" src="../static/js/dedeajax2.js"></script> | ||||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | <link href="../static/css/daterangepicker.css" rel="stylesheet"> | ||||
<script type="text/javascript" src="../static/js/moment.min.js"></script> | <script type="text/javascript" src="../static/js/moment.min.js"></script> | ||||
<script type="text/javascript" src="../static/js/daterangepicker.js"></script> | <script type="text/javascript" src="../static/js/daterangepicker.js"></script> | ||||
<script language='javascript' src="js/main.js"></script> | <script language='javascript' src="js/main.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | <link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | ||||
<link href="../static/css/cropper.min.css" rel="stylesheet"> | <link href="../static/css/cropper.min.css" rel="stylesheet"> | ||||
<script src="../static/js/cropper.min.js"></script> | <script src="../static/js/cropper.min.js"></script> | ||||
@@ -23,11 +23,11 @@ body { background-image: url(images/allbg.gif); } | |||||
function checkSubmit() | function checkSubmit() | ||||
{ | { | ||||
if(document.form1.title.value==""){ | if(document.form1.title.value==""){ | ||||
alert("<?php echo $cInfos['titlename']; ?>不能为空!"); | |||||
ShowMsg("<?php echo $cInfos['titlename']; ?>不能为空!"); | |||||
return false; | return false; | ||||
} | } | ||||
if(document.form1.typeid.value==0){ | if(document.form1.typeid.value==0){ | ||||
alert("请选择档案的主栏目!"); | |||||
ShowMsg("请选择档案的主栏目!"); | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
@@ -44,10 +44,11 @@ function checkSubmit() | |||||
</style> | </style> | ||||
</head> | </head> | ||||
<body topmargin="8"> | <body topmargin="8"> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||||
<tr> | <tr> | ||||
<td width="65%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a href="content_sg_list.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文档列表</u></a> >> 发布文档</td> | |||||
<td width="30%" align='right'> <?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a> </td> | |||||
<td width="65%" height="30"><IMG height=14 src="images/book1.gif" width=20> | |||||
<a href="content_sg_list.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文档列表</u></a> >> 发布文档</td> | |||||
<td width="30%" align='right'> <?php echo $backurl; ?><a class="btn btn-secondary btn-sm" href="catalog_main.php">栏目管理</a> </td> | |||||
<td width="1%"> </td> | <td width="1%"> </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -94,7 +95,7 @@ function checkSubmit() | |||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
{ | { | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'>{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -112,15 +113,15 @@ function checkSubmit() | |||||
<tr> | <tr> | ||||
<td height="30"> | <td height="30"> | ||||
<input name="picname" type="text" id="picname" style="width:240px" /> | <input name="picname" type="text" id="picname" style="width:240px" /> | ||||
<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" | |||||
onClick="SelectImage('form1.picname','small');" class='np coolbg' /> | |||||
<input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' />远程 | |||||
<span class="btn btn-success fileinput-button"> | |||||
<button type="button" name="Submit2" | |||||
onClick="SelectImage('form1.picname','small');" class='btn btn-secondary btn-sm'>站内选择</button> | |||||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程 </label> | |||||
<span class="btn btn-secondary btn-sm fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | <i class="glyphicon glyphicon-plus"></i> | ||||
选择图片 | 选择图片 | ||||
<input type="file" name="files[]" id="iptAddImages"> | <input type="file" name="files[]" id="iptAddImages"> | ||||
</span> | </span> | ||||
<button id="btnClearAll" type="button" class="btn btn-danger delete"> | |||||
<button id="btnClearAll" type="button" class="btn btn-secondary btn-sm delete"> | |||||
<i class="fa fa-trash-o"></i> | <i class="fa fa-trash-o"></i> | ||||
<span>清空</span> | <span>清空</span> | ||||
</button> | </button> | ||||
@@ -180,8 +181,8 @@ function checkSubmit() | |||||
echo "</select>"; | echo "</select>"; | ||||
?></span> | ?></span> | ||||
<img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | <img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | ||||
<a href='catalog_main.php'>【<u>栏目管理</u>】</a> | |||||
<a href='catalog_add.php?listtype=all'>【<u>增加大栏目</u>】</a> | |||||
<a href='catalog_main.php' class='btn btn-secondary btn-sm'>栏目管理</a> | |||||
<a href='catalog_add.php?listtype=all' class='btn btn-secondary btn-sm'>增加大栏目</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table></td> | </table></td> | ||||
@@ -192,7 +193,7 @@ function checkSubmit() | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
<tr> | <tr> | ||||
<td height="35"> | <td height="35"> | ||||
<table width="98%" border="0" cellspacing="1" cellpadding="1"> | <table width="98%" border="0" cellspacing="1" cellpadding="1"> | ||||
@@ -200,11 +201,11 @@ function checkSubmit() | |||||
<td width="17%"> </td> | <td width="17%"> </td> | ||||
<td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0"> | <td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="115"> | |||||
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer; "> | |||||
<td width="115" class="py-3"> | |||||
<button type="submit" class="btn btn-secondary">保存</button> | |||||
</td> | </td> | ||||
<td width="99"> | |||||
<img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer; "> | |||||
<td width="99" class="py-3"> | |||||
<button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table></td> | </table></td> | ||||
@@ -23,7 +23,7 @@ body { background-image: url(images/allbg.gif); } | |||||
function checkSubmit() | function checkSubmit() | ||||
{ | { | ||||
if(document.form1.title.value==""){ | if(document.form1.title.value==""){ | ||||
alert("<?php echo $cInfos['titlename']; ?>不能为空!"); | |||||
ShowMsg("<?php echo $cInfos['titlename']; ?>不能为空!"); | |||||
document.form1.title.focus(); | document.form1.title.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
@@ -41,11 +41,11 @@ function checkSubmit() | |||||
</style> | </style> | ||||
</head> | </head> | ||||
<body topmargin="8"> | <body topmargin="8"> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||||
<tr> | <tr> | ||||
<td width="65%" height="30"><IMG height=14 src="images/book1.gif" width='20' /> | <td width="65%" height="30"><IMG height=14 src="images/book1.gif" width='20' /> | ||||
<a href="content_sg_list.php?cid=<?php echo $addRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文档列表</u></a> >> 更改文档</td> | <a href="content_sg_list.php?cid=<?php echo $addRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文档列表</u></a> >> 更改文档</td> | ||||
<td width="30%" align='right'> <?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a> </td> | |||||
<td width="30%" align='right'> <?php echo $backurl; ?><a class="btn btn-secondary btn-sm" href="catalog_main.php">栏目管理</a> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -89,9 +89,9 @@ function checkSubmit() | |||||
while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
{ | { | ||||
if(preg_match("#".$trow->att."#", $addRow['flag'])) | if(preg_match("#".$trow->att."#", $addRow['flag'])) | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked' />{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked' /> {$trow->attname}[{$trow->att}]</label> "; | |||||
else | else | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' />{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' /> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -130,16 +130,16 @@ function checkSubmit() | |||||
</td> | </td> | ||||
<td width="560"> | <td width="560"> | ||||
<input name="picname" type="text" id="picname" style="width:300px" | <input name="picname" type="text" id="picname" style="width:300px" | ||||
value="<?php echo $addRow["litpic"]?>"><input type="button" name="Submit" value="浏览..." | |||||
style="width:70px" onClick="SelectImage('form1.picname','');"> | |||||
<input type='checkbox' class='np' name='ddisremote' value='1'> | |||||
远程 | |||||
<span class="btn btn-success fileinput-button"> | |||||
value="<?php echo $addRow["litpic"]?>"><button class="btn btn-secondary btn-sm" type="button" name="Submit" | |||||
style="width:70px" onClick="SelectImage('form1.picname','');">浏览...</button> | |||||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> | |||||
远程</label> | |||||
<span class="btn btn-secondary btn-sm fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | <i class="glyphicon glyphicon-plus"></i> | ||||
选择图片 | 选择图片 | ||||
<input type="file" name="files[]" id="iptAddImages"> | <input type="file" name="files[]" id="iptAddImages"> | ||||
</span> | </span> | ||||
<button id="btnClearAll" type="button" class="btn btn-danger delete"> | |||||
<button id="btnClearAll" type="button" class="btn btn-secondary btn-sm delete"> | |||||
<i class="fa fa-trash-o"></i> | <i class="fa fa-trash-o"></i> | ||||
<span>清空</span> | <span>清空</span> | ||||
</button> | </button> | ||||
@@ -187,7 +187,7 @@ function checkSubmit() | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
<tr> | <tr> | ||||
<td height="35"> | <td height="35"> | ||||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | <table width="100%" border="0" cellspacing="1" cellpadding="1"> | ||||
@@ -195,9 +195,9 @@ function checkSubmit() | |||||
<td width="17%"> </td> | <td width="17%"> </td> | ||||
<td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0"> | <td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="115"><input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer"></td> | |||||
<td width="99"> | |||||
<img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer"> | |||||
<td width="115" class="py-3"><button type="submit" class="btn btn-secondary">保存</button></td> | |||||
<td width="99" class="py-3"> | |||||
<button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table></td> | </table></td> | ||||
@@ -64,12 +64,12 @@ | |||||
</head> | </head> | ||||
<body topmargin="8"> | <body topmargin="8"> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||||
<tr> | <tr> | ||||
<td width="60%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | <td width="60%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | ||||
href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文章列表</u></a> | href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文章列表</u></a> | ||||
>> 发布文章</td> | >> 发布文章</td> | ||||
<td width="30%" align='right'> <?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a> </td> | |||||
<td width="30%" align='right'> <?php echo $backurl; ?><a class="btn btn-secondary btn-sm" href="catalog_main.php">栏目管理</a> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -79,14 +79,14 @@ | |||||
<table width="800" border="0" cellpadding="0" cellspacing="0"> | <table width="800" border="0" cellpadding="0" cellspacing="0"> | ||||
<tr> | <tr> | ||||
<td width="84" height="24" align="center" background="images/itemnote1.gif"> 常规信息 </td> | <td width="84" height="24" align="center" background="images/itemnote1.gif"> 常规信息 </td> | ||||
<td><a href="#" onClick="ShowHide('getone')"> ●输入网址采集单个网页>></a></td> | |||||
<td><a href="#" class="btn btn-secondary btn-sm" onClick="ShowHide('getone')">单页采集...</a></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FBFCE2" id="getone" | |||||
style="<?php if(empty($geturl)) echo 'display:none'; ?>"> | |||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FBFCE2" id="getone" class="table table-borderless" | |||||
style="<?php if(empty($geturl)) echo 'display:none'; ?>;margin:0;"> | |||||
<form name="getonepage" action="article_add.php" method="get"> | <form name="getonepage" action="article_add.php" method="get"> | ||||
<input type="hidden" name="channelid" value="<?php echo $channelid; ?>" /> | <input type="hidden" name="channelid" value="<?php echo $channelid; ?>" /> | ||||
<input type="hidden" name="cid" value="<?php echo $cid; ?>" /> | <input type="hidden" name="cid" value="<?php echo $cid; ?>" /> | ||||
@@ -143,9 +143,9 @@ | |||||
while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
{ | { | ||||
if($trow->att=='j') | if($trow->att=='j') | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'>{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> "; | |||||
else | else | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'>{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -189,15 +189,15 @@ | |||||
<tr> | <tr> | ||||
<td height="30"> | <td height="30"> | ||||
<input name="picname" type="text" id="picname" style="width:240px" /> | <input name="picname" type="text" id="picname" style="width:240px" /> | ||||
<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" | |||||
onClick="SelectImage('form1.picname','small');" class='np coolbg' /> | |||||
<input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' />远程 | |||||
<span class="btn btn-success fileinput-button"> | |||||
<button type="button" name="Submit2" style="margin-left:8px;" | |||||
onClick="SelectImage('form1.picname','small');" class='btn btn-secondary btn-sm'>站内选择</button> | |||||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程</label> | |||||
<span class="btn btn-secondary btn-sm fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | <i class="glyphicon glyphicon-plus"></i> | ||||
选择图片 | 选择图片 | ||||
<input type="file" name="files[]" id="iptAddImages"> | <input type="file" name="files[]" id="iptAddImages"> | ||||
</span> | </span> | ||||
<button id="btnClearAll" type="button" class="btn btn-danger delete"> | |||||
<button id="btnClearAll" type="button" class="btn btn-secondary btn-sm delete"> | |||||
<i class="fa fa-trash-o"></i> | <i class="fa fa-trash-o"></i> | ||||
<span>清空</span> | <span>清空</span> | ||||
</button> | </button> | ||||
@@ -220,11 +220,11 @@ | |||||
<td width="240"> | <td width="240"> | ||||
<input name="source" type="text" id="source" style="width:160px" value="<?php echo $source; ?>" | <input name="source" type="text" id="source" style="width:160px" value="<?php echo $source; ?>" | ||||
size="16" /> | size="16" /> | ||||
<input name="selsource" type="button" id="selsource" value="选择"></td> | |||||
<button name="selsource" type="button" id="selsource" class="btn btn-secondary btn-sm">选择</button></td> | |||||
<td width="90">作 者:</td> | <td width="90">作 者:</td> | ||||
<td> | <td> | ||||
<input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $writer; ?>" /> | <input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $writer; ?>" /> | ||||
<input name="selwriter" type="button" id="selwriter" value="选择" /> | |||||
<button name="selwriter" type="button" id="selwriter" class="btn btn-secondary btn-sm">选择</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -250,7 +250,7 @@ | |||||
<?php | <?php | ||||
if($cfg_need_typeid2=='Y') | if($cfg_need_typeid2=='Y') | ||||
{ | { | ||||
echo "<a href='javascript:AddTypeid2();'>【<u>选择副栏目</u>】</a>"; | |||||
echo "<a href='javascript:AddTypeid2();' class='btn btn-secondary btn-sm'>选择副栏目</a>"; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -279,11 +279,11 @@ | |||||
<tr> | <tr> | ||||
<td width="90"> 关键字:</td> | <td width="90"> 关键字:</td> | ||||
<td width="448"><input type='text' name="keywords" id="keywords" style="width:80%" | <td width="448"><input type='text' name="keywords" id="keywords" style="width:80%" | ||||
value="<?php echo $keywords; ?>" /><input type="button" name="Submit" value="浏览..." | |||||
style="width:56;height:20" onClick="SelectKeywords('form1.keywords');" /></td> | |||||
<td><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" | |||||
value="<?php echo $keywords; ?>" /> <button type="button" name="Submit" | |||||
style="width:56;height:20" onClick="SelectKeywords('form1.keywords');" class='btn btn-secondary btn-sm'>浏览...</button></td> | |||||
<td><label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" | |||||
value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked="1" '; ?> /> | value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked="1" '; ?> /> | ||||
自动获取,手动填写用","分开<br /> | |||||
自动获取,手动填写用","分开</label><br /> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -308,12 +308,10 @@ | |||||
<td height="28" colspan="2" bgcolor="#F9FCEF" class="bline2"> | <td height="28" colspan="2" bgcolor="#F9FCEF" class="bline2"> | ||||
<div style='float:left;line-height:28px;'> <strong>文章内容:</strong></div> | <div style='float:left;line-height:28px;'> <strong>文章内容:</strong></div> | ||||
<div style='float:right;;padding-right:8px'> | <div style='float:right;;padding-right:8px'> | ||||
<img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" | |||||
style="cursor:pointer; " /> | |||||
<button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button> | |||||
</div> | </div> | ||||
<div style='float:right;padding-right:8px'> | <div style='float:right;padding-right:8px'> | ||||
<input name="imageField" type="image" src="images/button_save.gif" width="60" height="22" class="np" | |||||
border="0" style="cursor:pointer;" /> | |||||
<button type="submit" class="btn btn-secondary">保存</button> | |||||
</div> | </div> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -323,18 +321,18 @@ | |||||
<tr> | <tr> | ||||
<td width="90"> 附加选项:</td> | <td width="90"> 附加选项:</td> | ||||
<td> | <td> | ||||
<input name="remote" type="checkbox" class="np" id="remote" value="1" | |||||
<label><input name="remote" type="checkbox" class="np" id="remote" value="1" | |||||
<?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?> /> | <?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?> /> | ||||
下载远程图片和资源 | |||||
<input name="dellink" type="checkbox" class="np" id="dellink" value="1" | |||||
下载远程图片和资源</label> | |||||
<label><input name="dellink" type="checkbox" class="np" id="dellink" value="1" | |||||
<?php if($cfg_arc_dellink=='Y') echo ' checked="1" '; ?> /> | <?php if($cfg_arc_dellink=='Y') echo ' checked="1" '; ?> /> | ||||
删除非站内链接 <a href="javascript:OpenMyWin('article_allowurl_edit.php');">[设置]</a> | |||||
<input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" | |||||
删除非站内链接 </label><a href="javascript:OpenMyWin('article_allowurl_edit.php');">[设置]</a> | |||||
<label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" | |||||
<?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?> /> | <?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?> /> | ||||
提取第一个图片为缩略图 | |||||
<input type='checkbox' name='needwatermark' value='1' class='np' | |||||
提取第一个图片为缩略图</label> | |||||
<label><input type='checkbox' name='needwatermark' value='1' class='np' | |||||
<?php if($photo_markup=='1') echo "checked"; ?> /> | <?php if($photo_markup=='1') echo "checked"; ?> /> | ||||
图片是否加水印 | |||||
图片是否加水印</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -346,12 +344,12 @@ | |||||
<tr> | <tr> | ||||
<td width="90"> 分页方式:</td> | <td width="90"> 分页方式:</td> | ||||
<td> | <td> | ||||
<input name="sptype" type="radio" class="np" value="hand" | |||||
<label><input name="sptype" type="radio" class="np" value="hand" | |||||
<?php if($cfg_arcautosp=='N') echo " checked='1' "?> /> | <?php if($cfg_arcautosp=='N') echo " checked='1' "?> /> | ||||
手动 | |||||
<input type="radio" name="sptype" value="auto" class="np" | |||||
手动</label> | |||||
<label><input type="radio" name="sptype" value="auto" class="np" | |||||
<?php if($cfg_arcautosp=='Y') echo " checked='1' "?> /> | <?php if($cfg_arcautosp=='Y') echo " checked='1' "?> /> | ||||
自动 大小: | |||||
自动</label> 大小: | |||||
<input name="spsize" type="text" id="spsize" value="<?php echo $cfg_arcautosp_size?>" size="6" /> K | <input name="spsize" type="text" id="spsize" value="<?php echo $cfg_arcautosp_size?>" size="6" /> K | ||||
(分页符为: <font color="#FF0000">#p#分页标题#e# </font>) | (分页符为: <font color="#FF0000">#p#分页标题#e# </font>) | ||||
</td> | </td> | ||||
@@ -389,11 +387,11 @@ | |||||
<tr> | <tr> | ||||
<td width="90" height="22"> 评论选项:</td> | <td width="90" height="22"> 评论选项:</td> | ||||
<td width="240"> | <td width="240"> | ||||
<input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> />允许评论 | |||||
<label><input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论 </label> | |||||
| | ||||
<input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> />禁止评论 | |||||
<label><input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论 </label> | |||||
</td> | </td> | ||||
<td width="90">浏览次数:</td> | <td width="90">浏览次数:</td> | ||||
<td> | <td> | ||||
@@ -422,7 +420,7 @@ | |||||
<td width="90">标题颜色:</td> | <td width="90">标题颜色:</td> | ||||
<td> | <td> | ||||
<input name="color" type="text" id="color" style="width:120px" /> | <input name="color" type="text" id="color" style="width:120px" /> | ||||
<input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)" /> | |||||
<button class="btn btn-secondary btn-sm" name="modcolor" type="button" id="modcolor" onClick="ShowColor(event, this)">选取</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -464,10 +462,11 @@ | |||||
?> | ?> | ||||
</td> | </td> | ||||
<td width="90">发布选项:</td> | <td width="90">发布选项:</td> | ||||
<td width="379"><input name="ishtml" type="radio" class="np" value="1" checked="1" /> | |||||
生成HTML | |||||
<input type="radio" name="ishtml" class="np" value="0" /> | |||||
仅动态浏览 </td> | |||||
<td width="379"> | |||||
<label><input name="ishtml" type="radio" class="np" value="1" checked="1" /> | |||||
生成HTML</label> | |||||
<label><input type="radio" name="ishtml" class="np" value="0" /> | |||||
仅动态浏览</label> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -507,13 +506,12 @@ | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#F9FCEF" | <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#F9FCEF" | ||||
style="border:1px solid #cfcfcf;border-top:none;"> | |||||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
<tr height="35"> | <tr height="35"> | ||||
<td width="17%"> </td> | <td width="17%"> </td> | ||||
<td width="83%"><input name="imageField" type="image" src="images/button_save.gif" width="60" height="22" | |||||
class="np" border="0" style="cursor:pointer;" /> | |||||
<img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" | |||||
style="cursor:pointer; " /> | |||||
<td width="83%" class="py-3"> | |||||
<button type="submit" class="btn btn-secondary">保存</button> | |||||
<button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -1,98 +1,110 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>文档自动摘要、自动分页</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>文档自动摘要、自动分页</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body background="images/allbg.gif" leftmargin="8" topmargin="8"> | <body background="images/allbg.gif" leftmargin="8" topmargin="8"> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#CFCFCF" align="center"> | |||||
<form action="article_description_main.php" name="form1" target="stafrm" method="post"> | |||||
<tr> | |||||
<td height="28" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>文档自动摘要、自动分页:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="33" bgcolor="#FFFFFF"> 用于自动更新您系统没有填写摘要的文档的摘要信息或更新没分页的文档的自动分页标识(文档使用了自动分页后会降低HTML生成速度,并且在没人工干扰的情况下可能导致分页内容的HTML错误,请小心使用此功能)。</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="48" bgcolor="#FFFFFF"><table width="90%" border="0" cellpadding="2" cellspacing="2"> | |||||
<tr> | |||||
<td width="50%">频道ID: | |||||
<input name="channel" type="text" id="channel" value="1" size="10"> | |||||
(可在“<a href="mychannel_main.php"><u>频道模型管理</u></a>”处获得)</td> | |||||
<td width="50%">摘要大小: | |||||
<input name="dsize" type="text" id="dsize" size="15" value="<?php echo $cfg_auot_description?>"> | |||||
(最大250字节)</td> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#CFCFCF" align="center" class="table maintable table-bordered mt-3"> | |||||
<form action="article_description_main.php" name="form1" target="stafrm" method="post"> | |||||
<tr> | |||||
<td height="28" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>文档自动摘要、自动分页:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="33" bgcolor="#FFFFFF"> | |||||
用于自动更新您系统没有填写摘要的文档的摘要信息或更新没分页的文档的自动分页标识(文档使用了自动分页后会降低HTML生成速度,并且在没人工干扰的情况下可能导致分页内容的HTML错误,请小心使用此功能)。</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="48" bgcolor="#FFFFFF"> | |||||
<table width="90%" border="0" cellpadding="2" cellspacing="2" class="table table-borderless"> | |||||
<tr> | |||||
<td width="50%">频道ID: | |||||
<input name="channel" type="text" id="channel" value="1" size="10"> | |||||
(可在“<a href="mychannel_main.php"><u>频道模型管理</u></a>”处获得)</td> | |||||
<td width="50%">摘要大小: | |||||
<input name="dsize" type="text" id="dsize" size="15" value="<?php echo $cfg_auot_description?>"> | |||||
(最大250字节)</td> | |||||
</tr> | |||||
<tr> | |||||
<td>数据表: | |||||
<input name="table" type="text" id="table2" value="<?php echo $cfg_dbprefix?>addonarticle" size="20"> | |||||
</td> | |||||
<td>分析字段: | |||||
<input name="field" type="text" id="field2" value="body" size="15"></td> | |||||
</tr> | |||||
<tr> | |||||
<td>最小值: | |||||
<input name="msize" type="text" id="msize2" value="512" size="10"> | |||||
(字节,内容大于该值才分析)</td> | |||||
<td>每批处理: | |||||
<input name="pagesize" type="text" id="pagesize" value="100" size="10"> | |||||
条记录</td> | |||||
</tr> | |||||
<tr> | |||||
<td>开始ID: | |||||
<input name="sid" type="text" id="sid" size="8"> | |||||
结束ID: | |||||
<input name="eid" type="text" id="eid" size="8"></td> | |||||
<td> </td> | |||||
</tr> | |||||
<tr> | |||||
<td>操 作: | |||||
<label><input name="dojob" type="radio" class="np" value="des" checked> | |||||
自动摘要</label> | |||||
<label><input type="radio" name="dojob" class="np" value="page"> | |||||
自动分页</label> </td> | |||||
<td>(自动分页大小: | |||||
<?php echo $cfg_arcautosp_size?> | |||||
K,<a href='sys_info.php' class="btn btn-secondary btn-sm">修改系统参数</a>)</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="31" bgcolor="#ffffff" align="center"> | |||||
<button type="submit" name="Submit" class="btn btn-secondary">开始执行分析</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | |||||
<td width="74%"><strong>结果:</strong></td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td>数据表: | |||||
<input name="table" type="text" id="table2" value="<?php echo $cfg_dbprefix?>addonarticle" size="20"></td> | |||||
<td>分析字段: | |||||
<input name="field" type="text" id="field2" value="body" size="15"></td> | |||||
</tr> | |||||
<tr> | |||||
<td>最小值: | |||||
<input name="msize" type="text" id="msize2" value="512" size="10"> | |||||
(字节,内容大于该值才分析)</td> | |||||
<td>每批处理: | |||||
<input name="pagesize" type="text" id="pagesize" value="100" size="10"> | |||||
条记录</td> | |||||
</tr> | |||||
<tr> | |||||
<td>开始ID: | |||||
<input name="sid" type="text" id="sid" size="8"> | |||||
结束ID: | |||||
<input name="eid" type="text" id="eid" size="8"></td> | |||||
<td> </td> | |||||
</tr> | |||||
<tr> | |||||
<td>操 作: | |||||
<input name="dojob" type="radio" class="np" value="des" checked> | |||||
自动摘要 | |||||
<input type="radio" name="dojob" class="np" value="page"> | |||||
自动分页 </td> | |||||
<td>(自动分页大小: | |||||
<?php echo $cfg_arcautosp_size?> | |||||
K,<a href='sys_info.php'><u>修改系统参数</u></a>)</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="31" bgcolor="#ffffff" align="center"> | |||||
<input type="submit" name="Submit" value="开始执行分析" class="np coolbg" /> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20"> <table width="100%"> | |||||
<tr> | |||||
<td width="74%"><strong>结果:</strong></td> | |||||
<td width="26%" align="right"> <script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -43,21 +43,16 @@ | |||||
img { | img { | ||||
vertical-align: baseline; | vertical-align: baseline; | ||||
} | } | ||||
input, | |||||
select { | |||||
height: auto !important; | |||||
} | |||||
</style> | </style> | ||||
</head> | </head> | ||||
<body topmargin="8"> | <body topmargin="8"> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||||
<tr> | <tr> | ||||
<td width="60%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | <td width="60%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | ||||
href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文章列表</u></a> | href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文章列表</u></a> | ||||
>> 更改文章</td> | >> 更改文章</td> | ||||
<td width="30%" align='right'> <?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a></td> | |||||
<td width="30%" align='right'> <?php echo $backurl; ?><a class="btn btn-secondary btn-sm" href="catalog_main.php">栏目管理</a></td> | |||||
<td width="1%"> </td> | <td width="1%"> </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -129,12 +124,12 @@ | |||||
} | } | ||||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | if(preg_match("#".$trow->att."#", $arcRow['flag'])) | ||||
{ | { | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' />{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' /> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} />{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
} | } | ||||
?></td> | ?></td> | ||||
@@ -177,14 +172,14 @@ | |||||
<td><input name="picname" type="text" id="picname" style="width:300px" | <td><input name="picname" type="text" id="picname" style="width:300px" | ||||
value="<?php echo $arcRow["litpic"]?>"> | value="<?php echo $arcRow["litpic"]?>"> | ||||
<input type='checkbox' class='np' name='ddisremote' value='1' /> | |||||
远程 | |||||
<span class="btn btn-success fileinput-button"> | |||||
<label><input type='checkbox' class='np' name='ddisremote' value='1' /> | |||||
远程</label> | |||||
<span class="btn btn-secondary btn-sm fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | <i class="glyphicon glyphicon-plus"></i> | ||||
选择图片 | 选择图片 | ||||
<input type="file" name="files[]" id="iptAddImages"> | <input type="file" name="files[]" id="iptAddImages"> | ||||
</span> | </span> | ||||
<button id="btnClearAll" type="button" class="btn btn-danger delete"> | |||||
<button id="btnClearAll" type="button" class="btn btn-secondary btn-sm delete"> | |||||
<i class="fa fa-trash-o"></i> | <i class="fa fa-trash-o"></i> | ||||
<span>清空</span> | <span>清空</span> | ||||
</button> | </button> | ||||
@@ -205,11 +200,11 @@ | |||||
<td width="90"> 文章来源:</td> | <td width="90"> 文章来源:</td> | ||||
<td width="250"><input name="source" type="text" id="source" style="width:160px" | <td width="250"><input name="source" type="text" id="source" style="width:160px" | ||||
value="<?php echo $arcRow["source"]?>" size="16"> | value="<?php echo $arcRow["source"]?>" size="16"> | ||||
<input name="selsource" type="button" id="selsource" value="选择" /></td> | |||||
<button name="selsource" type="button" id="selsource" class="btn btn-secondary btn-sm">选择</button></td> | |||||
<td width="90">作 者:</td> | <td width="90">作 者:</td> | ||||
<td><input name="writer" type="text" id="writer" style="width:120px" | <td><input name="writer" type="text" id="writer" style="width:120px" | ||||
value="<?php echo $arcRow["writer"]?>"> | value="<?php echo $arcRow["writer"]?>"> | ||||
<input name="selwriter" type="button" id="selwriter" value="选择" /></td> | |||||
<button name="selwriter" type="button" id="selwriter" class="btn btn-secondary btn-sm">选择</button></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -229,7 +224,7 @@ | |||||
<img src='images/menusearch.gif' style='cursor:pointer' | <img src='images/menusearch.gif' style='cursor:pointer' | ||||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $arcRow['typeid']; ?>')" | onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $arcRow['typeid']; ?>')" | ||||
alt='快捷选择' title='快捷选择' /> | alt='快捷选择' title='快捷选择' /> | ||||
</td> | |||||
</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -266,10 +261,11 @@ if($cfg_need_typeid2=='Y') { | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 附加选项:</td> | <td width="90"> 附加选项:</td> | ||||
<td><input name="remote" type="checkbox" class="np" id="remote" value="1" checked> | |||||
下载远程图片和资源 | |||||
<input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" checked> | |||||
提取第一个图片为缩略图 </td> | |||||
<td> | |||||
<label><input name="remote" type="checkbox" class="np" id="remote" value="1" checked> | |||||
下载远程图片和资源</label> | |||||
<label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" checked> | |||||
提取第一个图片为缩略图</label> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -287,13 +283,14 @@ if($cfg_need_typeid2=='Y') { | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="110" height="22"> 评论选项:</td> | <td width="110" height="22"> 评论选项:</td> | ||||
<td width="250"><input type='radio' name='notpost' class='np' value='0' | |||||
<td width="250"> | |||||
<label><input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($arcRow['notpost']==0) echo " checked='1' "; ?> /> | <?php if($arcRow['notpost']==0) echo " checked='1' "; ?> /> | ||||
允许评论 | |||||
允许评论</label> | |||||
| | ||||
<input type='radio' name='notpost' class='np' value='1' | |||||
<label><input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($arcRow['notpost']==1) echo " checked='1' "; ?> /> | <?php if($arcRow['notpost']==1) echo " checked='1' "; ?> /> | ||||
禁止评论 </td> | |||||
禁止评论</label> </td> | |||||
<td width="90">浏览次数:</td> | <td width="90">浏览次数:</td> | ||||
<td><input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /></td> | <td><input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /></td> | ||||
</tr> | </tr> | ||||
@@ -319,7 +316,7 @@ if($cfg_need_typeid2=='Y') { | |||||
</select></td> | </select></td> | ||||
<td width="90">标题颜色:</td> | <td width="90">标题颜色:</td> | ||||
<td><input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>"> | <td><input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>"> | ||||
<input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)"></td> | |||||
<button name="modcolor" type="button" id="modcolor" onClick="ShowColor(event,this)" class="btn btn-secondary btn-sm">选取</button></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -342,12 +339,13 @@ if($cfg_need_typeid2=='Y') { | |||||
?> | ?> | ||||
</select></td> | </select></td> | ||||
<td width="90">发布选项:</td> | <td width="90">发布选项:</td> | ||||
<td><input name="ishtml" type="radio" class="np" value="1" | |||||
<td> | |||||
<label><input name="ishtml" type="radio" class="np" value="1" | |||||
<?php if($arcRow["ismake"]!=-1) echo " checked";?>> | <?php if($arcRow["ismake"]!=-1) echo " checked";?>> | ||||
生成HTML | |||||
<input type="radio" name="ishtml" class="np" value="0" | |||||
生成HTML</label> | |||||
<label><input type="radio" name="ishtml" class="np" value="0" | |||||
<?php if($arcRow["ismake"]==-1) echo " checked";?>> | <?php if($arcRow["ismake"]==-1) echo " checked";?>> | ||||
仅动态浏览 </td> | |||||
仅动态浏览</label></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -424,7 +422,7 @@ if($cfg_need_typeid2=='Y') { | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | ||||
style="border:1px solid #cfcfcf;border-top:none;"> | |||||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
<tr> | <tr> | ||||
<td height="35"> | <td height="35"> | ||||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | <table width="100%" border="0" cellspacing="1" cellpadding="1"> | ||||
@@ -433,10 +431,8 @@ if($cfg_need_typeid2=='Y') { | |||||
<td width="83%"> | <td width="83%"> | ||||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | <table width="214" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="115"><input name="imageField" type="image" src="images/button_ok.gif" width="60" | |||||
height="22" class="np" border="0" style="cursor:pointer"></td> | |||||
<td width="99"><img src="images/button_reset.gif" width="60" height="22" border="0" | |||||
onClick="location.reload();" style="cursor:pointer"></td> | |||||
<td width="115" class="py-3"><button type="submit" class="btn btn-secondary">保存</button></td> | |||||
<td width="99" class="py-3"><button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -1,118 +1,131 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>关键字管理</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<link href="div.css" rel="stylesheet" type="text/css"> | |||||
<style> | |||||
.nnpp{ | |||||
border-bottom:1px solid #666666; | |||||
border-top:1px solid #FFFFFF; | |||||
border-left:1px solid #FFFFFF; | |||||
border-right:1px solid #FFFFFF; | |||||
filter:alpha(opacity=50); | |||||
} | |||||
</style> | |||||
<script language='javascript'> | |||||
function selAll() | |||||
{ | |||||
var celements = document.getElementsByName('aids[]'); | |||||
for(i=0;i<celements.length;i++) | |||||
{ | |||||
if(!celements[i].checked) celements[i].checked = true; | |||||
else celements[i].checked = false; | |||||
} | |||||
} | |||||
</script> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>关键字管理</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<link href="div.css" rel="stylesheet" type="text/css"> | |||||
<style> | |||||
.nnpp { | |||||
border-bottom: 1px solid #666666; | |||||
border-top: 1px solid #FFFFFF; | |||||
border-left: 1px solid #FFFFFF; | |||||
border-right: 1px solid #FFFFFF; | |||||
filter: alpha(opacity=50); | |||||
} | |||||
</style> | |||||
<script language='javascript'> | |||||
function selAll() { | |||||
var celements = document.getElementsByName('aids[]'); | |||||
for (i = 0; i < celements.length; i++) { | |||||
if (!celements[i].checked) celements[i].checked = true; | |||||
else celements[i].checked = false; | |||||
} | |||||
} | |||||
</script> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<div class="main"> | |||||
<table width="98%" border="0" cellpadding="1" align='center' cellspacing="1" bgcolor="#D6D6D6"> | |||||
<tr> | |||||
<td height="26" colspan="6" background="images/tbg.gif"><table width="96%" border="0"> | |||||
<tr> | |||||
<td width="25%" style="padding-left:10px;"><strong>关键词维护</strong></td> | |||||
<form name='form1' action="article_keywords_main.php"> | |||||
<td width="75%" align="right"> | |||||
搜索:<input type='text' name='keyword' size='20' /> | |||||
<input type='submit' name='sb' value='确定' class="coolbg np" /> | |||||
| |||||
<input class="coolbg np" name="n1" type="button" id="n1" value="分析系统内的关键字" onClick="location='article_keywords_make.php';" style="width:130px" /> | |||||
| |||||
<input class="coolbg np" name="n11" type="button" id="n11" value="管理搜索的关键字" onClick="location='search_keywords_main.php';" style="width:125px" /> | |||||
</td></form> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<form name='form2' action="article_keywords_main.php"> | |||||
<input type='hidden' name='dopost' value='add' /> | |||||
<tr align="center" bgcolor="#ffffff"> | |||||
<td width="100%" height="30" colspan="6"> | |||||
<table border="0" cellspacing="0" cellpadding="0"> | |||||
<div class="main"> | |||||
<table width="98%" border="0" cellpadding="1" align='center' cellspacing="1" bgcolor="#D6D6D6" | |||||
class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td height="26" colspan="6" background="images/tbg.gif"> | |||||
<table width="96%" border="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="100" align="center">新增关键字:</td> | |||||
<td width="140"><input name="keyword" type="text" id="keyword" style="width:130px" /></td> | |||||
<td width="60">链接网址:</td> | |||||
<td width="140"><input name="rpurl" type="text" id="rpurl" style="width:130px" /></td> | |||||
<td width="40">频率:</td> | |||||
<td width="50"><input name="rank" type="text" id="rank" style="width:30px" value="30" /></td> | |||||
<td width="80"><input type="submit" name="Submit" value="保存" class="coolbg np" /></td> | |||||
<td width="25%" style="padding-left:10px;"><strong>关键词维护</strong></td> | |||||
<form name='form1' action="article_keywords_main.php"> | |||||
<td width="75%" align="right"> | |||||
搜索:<input type='text' name='keyword' size='20' /> | |||||
<button type='submit' name='sb' value='' class="btn btn-secondary btn-sm">确定</button> | |||||
| |||||
<button class="btn btn-secondary btn-sm" name="n1" type="button" id="n1" | |||||
onClick="location='article_keywords_make.php';">分析系统内的关键字</button> | |||||
| |||||
<button class="btn btn-secondary btn-sm" name="n11" type="button" id="n11" | |||||
onClick="location='search_keywords_main.php';">管理搜索的关键字</button> | |||||
</td> | |||||
</form> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | |||||
</tr> | |||||
<form name='form2' action="article_keywords_main.php"> | |||||
<input type='hidden' name='dopost' value='add' /> | |||||
<tr align="center" bgcolor="#ffffff"> | |||||
<td width="100%" height="30" colspan="6"> | |||||
<table border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="100" align="center">新增关键字:</td> | |||||
<td width="140"><input name="keyword" type="text" id="keyword"/></td> | |||||
<td width="100">链接网址:</td> | |||||
<td width="140"><input name="rpurl" type="text" id="rpurl"/></td> | |||||
<td width="80">频率:</td> | |||||
<td width="60"><input name="rank" type="text" id="rank" style="width:50px" value="30" /></td> | |||||
<td width="80"><button type="submit" name="Submit" class="btn btn-secondary btn-sm">保存</button></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr align="center" bgcolor="#FBFCE2" height="26"> | |||||
<td width="8%">选择</td> | |||||
<td width="25%">关键字</td> | |||||
<td width="35%">链接网址</td> | |||||
<td width="10%">频率</td> | |||||
<td width="22%">管理</td> | |||||
</tr> | |||||
<form name='form3' action="article_keywords_main.php" method="post"> | |||||
<input type='hidden' name='dopost' value='saveall' /> | |||||
{dede:datalist} | |||||
<tr align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" | |||||
onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td height="24"> | |||||
<input name="aids[]" type="checkbox" value="{dede:field.aid/}" class="np" checked='1' /> | |||||
</td> | |||||
<td> | |||||
<input type='hidden' value='{dede:field.keyword/}' name='keyword_{dede:field.aid/}' /> | |||||
{dede:field.keyword/} | |||||
</td> | |||||
<td style="padding:5px 0;"> | |||||
<input type='hidden' value='{dede:field.rpurl/}' name='rpurlold_{dede:field.aid/}' /> | |||||
<input type='text' style='width:90%' class='nnpp' value='{dede:field.rpurl/}' | |||||
name='rpurl_{dede:field.aid/}' /> | |||||
</td> | |||||
<td> | |||||
<input type='text' size='5' class='nnpp' value='{dede:field.rank/}' name='rank_{dede:field.aid/}' /> | |||||
</td> | |||||
<td> | |||||
<input type='hidden' name='staold_{dede:field.aid/}' value='{dede:field.sta/}' /> | |||||
<input type='checkbox' name='isnouse_{dede:field.aid/}' class='np' value='1' {dede:field.sta | |||||
function="GetSta(@me)" /} /> | |||||
禁用 | |||||
| |||||
<input type='checkbox' name='isdel_{dede:field.aid/}' class='np' value='1' /> | |||||
删除 | |||||
</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr bgcolor="#ffffff"> | |||||
<td height="28" colspan="6"> | |||||
| |||||
<button type="button" name="dl1" class="btn btn-secondary btn-sm" onClick="selAll()">反选</button> | |||||
| |||||
<button type="button" name="dl2" class="btn btn-secondary btn-sm" onClick="this.form.submit();">保存更改</button> | |||||
</td> | </td> | ||||
</tr> | |||||
</form> | |||||
<tr align="center" bgcolor="#F9FCEF"> | |||||
<td height="28" colspan="6"> | |||||
{dede:pagelist listsize=3/} | |||||
</td> | |||||
</tr> | </tr> | ||||
</form> | |||||
<tr align="center" bgcolor="#FBFCE2" height="26"> | |||||
<td width="8%">选择</td> | |||||
<td width="25%">关键字</td> | |||||
<td width="35%">链接网址</td> | |||||
<td width="10%">频率</td> | |||||
<td width="22%">管理</td> | |||||
</tr> | |||||
<form name='form3' action="article_keywords_main.php" method="post"> | |||||
<input type='hidden' name='dopost' value='saveall' /> | |||||
{dede:datalist} | |||||
<tr align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td height="24"> | |||||
<input name="aids[]" type="checkbox" value="{dede:field.aid/}" class="np" checked='1' /> | |||||
</td> | |||||
<td> | |||||
<input type='hidden' value='{dede:field.keyword/}' name='keyword_{dede:field.aid/}' /> | |||||
{dede:field.keyword/} | |||||
</td> | |||||
<td style="padding:5px 0;"> | |||||
<input type='hidden' value='{dede:field.rpurl/}' name='rpurlold_{dede:field.aid/}' /> | |||||
<input type='text' style='width:90%' class='nnpp' value='{dede:field.rpurl/}' name='rpurl_{dede:field.aid/}' /> | |||||
</td> | |||||
<td> | |||||
<input type='text' size='5' class='nnpp' value='{dede:field.rank/}' name='rank_{dede:field.aid/}' /> | |||||
</td> | |||||
<td> | |||||
<input type='hidden' name='staold_{dede:field.aid/}' value='{dede:field.sta/}' /> | |||||
<input type='checkbox' name='isnouse_{dede:field.aid/}' class='np' value='1'{dede:field.sta function="GetSta(@me)"/} /> | |||||
禁用 | |||||
| |||||
<input type='checkbox' name='isdel_{dede:field.aid/}' class='np' value='1' /> | |||||
删除 | |||||
</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr bgcolor="#ffffff"> | |||||
<td height="28" colspan="6"> | |||||
| |||||
<input type="button" name="dl1" class="coolbg np" value="反选" onClick="selAll()" /> | |||||
| |||||
<input type="button" name="dl2" class="coolbg np" value="保存更改" onClick="this.form.submit();" /> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr align="center" bgcolor="#F9FCEF"> | |||||
<td height="28" colspan="6"> | |||||
{dede:pagelist listsize=3/} | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</div> | |||||
</table> | |||||
</div> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,35 +1,42 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>重复文档检测</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>重复文档检测</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<div class="bodytitle"> | |||||
<div class="bodytitleleft"></div> | |||||
<div class="bodytitletxt" style="padding-left:10px;">批量管理</div> | |||||
</div> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;"> | |||||
<form action="article_test_same.php" name="form1" target="stafrm"> | |||||
<input type='hidden' name='dopost' value='analyse'> | |||||
<tr> | |||||
<td height="20" bgcolor="#EDF9D5" background="images/tbg.gif"> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18"><strong> 重复文档检测:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="31" align="center" bgcolor="#FFFFFF"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="20%" height="30" align="left">频道类型:</td> | |||||
<td align="left"> | |||||
<select name="channelid"> | |||||
<?php | |||||
<div class="bodytitle mt-3"> | |||||
<div class="bodytitleleft"></div> | |||||
<div class="bodytitletxt" style="padding-left:10px;">批量管理</div> | |||||
</div> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered" | |||||
style=" background:#CFCFCF;"> | |||||
<form action="article_test_same.php" name="form1" target="stafrm"> | |||||
<input type='hidden' name='dopost' value='analyse'> | |||||
<tr> | |||||
<td height="20" bgcolor="#EDF9D5" background="images/tbg.gif"> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18"><strong> 重复文档检测:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="31" align="center" bgcolor="#FFFFFF"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="20%" height="30" align="left">频道类型:</td> | |||||
<td align="left"> | |||||
<select name="channelid"> | |||||
<?php | |||||
if(!empty($channelinfos)) | if(!empty($channelinfos)) | ||||
{ | { | ||||
foreach($channelinfos as $rs) | foreach($channelinfos as $rs) | ||||
@@ -38,44 +45,45 @@ | |||||
} | } | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="20%" height="30" align="left">删除选项:</td> | |||||
<td align="left"> | |||||
<input name="deltype" type="radio" value="delnew" class='np' checked='1'/> | |||||
保留最旧的一条 | |||||
<input type="radio" name="deltype" value="delold" class='np' /> | |||||
保留最新的一条 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="left">每排列出记录:</td> | |||||
<td align="left"><input name="pagesize" type="text" id="pagesize" value="100" size="10"> | |||||
条</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</select> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="20%" height="30" align="left">删除选项:</td> | |||||
<td align="left"> | |||||
<label><input name="deltype" type="radio" value="delnew" class='np' checked='1' /> | |||||
保留最旧的一条</label> | |||||
<label><input type="radio" name="deltype" value="delold" class='np' /> | |||||
保留最新的一条</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="left">每排列出记录:</td> | |||||
<td align="left"><input name="pagesize" type="text" id="pagesize" value="100" size="10"> | |||||
条</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="31" bgcolor="#ffffff" align="center" style="padding-top:6px"> | |||||
<button type="submit" name="Submit" class="btn btn-secondary">分析标题重复的文档</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="30"> | |||||
<strong>结果:</strong> | |||||
</td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="31" bgcolor="#ffffff" align="center" style="padding-top:6px"> | |||||
<input type="submit" name="Submit" value="分析标题重复的文档" class="np coolbg"/> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> | |||||
<div id='mdv' style='width:100%;height:420px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="30"> | |||||
<strong>结果:</strong> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> | |||||
<div id='mdv' style='width:100%;height:420px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,34 +1,42 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>点卡生成向导</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>点卡生成向导</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;"> | |||||
<form action="cards_make.php" name="form1" target="stafrm"> | |||||
<input type="hidden" name="dopost" value="make" /> | |||||
<tr> | |||||
<td height="20" bgcolor="#EDF9D5" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="30%" style="padding-left:10px;"><strong>点卡生成向导:</strong> </td> | |||||
<td align="right"> | |||||
<input type="button" name="ss1" value="点卡产品分类" style="width:90px;margin-right:6px" onClick="location='cards_type.php';" class='np coolbg' /> | |||||
<input type="button" name="ss2" value="点卡使用记录" style="width:90px" onClick="location='cards_manage.php';" class='np coolbg' /> | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<table width="90%" border="0" cellpadding="2" cellspacing="2"> | |||||
<tr> | |||||
<td width="90">点卡类型:</td> | |||||
<td> | |||||
<select name='cardtype' style='width:120px'> | |||||
<?php | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3" | |||||
style=" background:#CFCFCF;"> | |||||
<form action="cards_make.php" name="form1" target="stafrm"> | |||||
<input type="hidden" name="dopost" value="make" /> | |||||
<tr> | |||||
<td height="20" bgcolor="#EDF9D5" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" style="padding-left:10px;"><strong>点卡生成向导:</strong> </td> | |||||
<td align="right"> | |||||
<button type="button" name="ss1" onClick="location='cards_type.php';" class='btn btn-secondary btn-sm'>点卡产品分类</button> | |||||
<button type="button" name="ss2" onClick="location='cards_manage.php';" | |||||
class='btn btn-secondary btn-sm'>点卡使用记录</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<table width="90%" border="0" cellpadding="2" cellspacing="2" class="table table-borderless"> | |||||
<tr> | |||||
<td width="90">点卡类型:</td> | |||||
<td> | |||||
<select name='cardtype' style='width:120px'> | |||||
<?php | |||||
$dsql->SetQuery("Select * From #@__moneycard_type"); | $dsql->SetQuery("Select * From #@__moneycard_type"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while($row=$dsql->GetArray()){ | while($row=$dsql->GetArray()){ | ||||
@@ -36,64 +44,68 @@ while($row=$dsql->GetArray()){ | |||||
} | } | ||||
$dsql->Close(); | $dsql->Close(); | ||||
?> | ?> | ||||
</select> | |||||
</td> | |||||
<td width="90">生成数量:</td> | |||||
<td> | |||||
<input name="mnum" type="text" id="mnum" style='width:120px' value="100" class='pubinputs' /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td>点卡前缀:</td> | |||||
<td> | |||||
<input name="snprefix" type="text" id="snprefix" style='width:120px' value="SN" class='pubinputs'/> | |||||
</td> | |||||
<td>密码长度:</td> | |||||
<td><input name="pwdlen" type="text" id="pwdlen" style='width:120px' value="4" class='pubinputs' /> | |||||
</td> | |||||
</tr> | |||||
</select> | |||||
</td> | |||||
<td width="90">生成数量:</td> | |||||
<td> | |||||
<input name="mnum" type="text" id="mnum" style='width:120px' value="100" class='pubinputs' /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td>点卡前缀:</td> | |||||
<td> | |||||
<input name="snprefix" type="text" id="snprefix" style='width:120px' value="SN" class='pubinputs' /> | |||||
</td> | |||||
<td>密码长度:</td> | |||||
<td><input name="pwdlen" type="text" id="pwdlen" style='width:120px' value="4" class='pubinputs' /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td>密码类型:</td> | |||||
<td> | |||||
<label><input type="radio" name="ctype" value="1" class='np' /> | |||||
纯数字</label> | |||||
<label><input name="ctype" type="radio" value="2" checked='1' class='np' /> | |||||
大写字母</label></td> | |||||
<td>密码组数:</td> | |||||
<td><input name="pwdgr" type="text" id="pwdgr" style='width:120px' value="3" class='np' /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="31" bgcolor="#ffffff" align="center"> | |||||
<button type="submit" name="Submit" class='btn btn-secondary'>开始生成点卡</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td>密码类型:</td> | |||||
<td><input type="radio" name="ctype" value="1" class='np' /> | |||||
纯数字 | |||||
<input name="ctype" type="radio" value="2" checked='1' class='np' /> | |||||
大写字母</td> | |||||
<td>密码组数:</td> | |||||
<td><input name="pwdgr" type="text" id="pwdgr" style='width:120px' value="3" class='np' /> | |||||
<td width="74%"><strong>结果:</strong></td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="31" bgcolor="#ffffff" align="center"> | |||||
<input type="submit" name="Submit" value="开始生成点卡" class='np coolbg' /> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20"> <table width="100%"> | |||||
<tr> | |||||
<td width="74%"><strong>结果:</strong></td> | |||||
<td width="26%" align="right"> <script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,30 +1,37 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>自定义属性管理</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>自定义属性管理</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' > | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name="form1" action="content_att.php" method="post"> | |||||
<input type="hidden" name="dopost" value="save" /> | |||||
<tr> | |||||
<td height="28" colspan="3" background='images/tbg.gif' style="padding-left:10px;"><strong>文档自定义属性管理</strong> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="34" colspan="3" bgcolor="#FFFFFF" style="line-height:20px;"> | |||||
<b>自定义属性的意义和使用说明:</b><br> | |||||
在以往的版本中,网站主页、频道封面的设计,都只能单调的用 arclist 标记把某栏目最新或按特定排序方式的文档无选择的读出来,这样做法存在很大的不足,例如,我希望在最顶部的地方显示我想要的文档,在以往的版本中是无法做到的,但使用自定义属性之后,只要给arclist 标记加上 att='自定义属性的ID' 的属性,然后在发布的时候对适合的文档选择专门的属性,那么使用arclist的地方就会按您的意愿显示指定的文档。<br> | |||||
<b>注意事项:</b>这个版本中att对应的字段是SET类型字段,因此为了数据安全起见不允许用户增加其它类型,但调用时允许使用组合条件,如:att='c,p'表示推荐图片新闻。 </td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2" align="center"> | |||||
<td width="15%" height="24"><b>ID</b></td> | |||||
<td width="15%" height="24"><b>排序</b></td> | |||||
<td width="70%" align="left"><b>属性名称</b></td> | |||||
</tr> | |||||
<?php | |||||
<body background='images/allbg.gif' leftmargin='8'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="content_att.php" method="post"> | |||||
<input type="hidden" name="dopost" value="save" /> | |||||
<tr> | |||||
<td height="28" colspan="3" background='images/tbg.gif' style="padding-left:10px;"><strong>文档自定义属性管理</strong> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="34" colspan="3" bgcolor="#FFFFFF" style="line-height:20px;"> | |||||
<b>自定义属性的意义和使用说明:</b><br> | |||||
在以往的版本中,网站主页、频道封面的设计,都只能单调的用 arclist | |||||
标记把某栏目最新或按特定排序方式的文档无选择的读出来,这样做法存在很大的不足,例如,我希望在最顶部的地方显示我想要的文档,在以往的版本中是无法做到的,但使用自定义属性之后,只要给arclist 标记加上 | |||||
att='自定义属性的ID' 的属性,然后在发布的时候对适合的文档选择专门的属性,那么使用arclist的地方就会按您的意愿显示指定的文档。<br> | |||||
<b>注意事项:</b>这个版本中att对应的字段是SET类型字段,因此为了数据安全起见不允许用户增加其它类型,但调用时允许使用组合条件,如:att='c,p'表示推荐图片新闻。 </td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2" align="center"> | |||||
<td width="15%" height="24"><b>ID</b></td> | |||||
<td width="15%" height="24"><b>排序</b></td> | |||||
<td width="70%" align="left"><b>属性名称</b></td> | |||||
</tr> | |||||
<?php | |||||
$dsql->SetQuery(" Select * From `#@__arcatt` order by sortid asc "); | $dsql->SetQuery(" Select * From `#@__arcatt` order by sortid asc "); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
$k=0; | $k=0; | ||||
@@ -32,31 +39,34 @@ | |||||
{ | { | ||||
$k++; | $k++; | ||||
?> | ?> | ||||
<input type="hidden" name="att_<?php echo $k?>" value="<?php echo $row->att?>" /> | |||||
<tr bgcolor="#FFFFFF" height="24"> | |||||
<td align="center"> | |||||
<?php echo $row->att; ?> | |||||
</td> | |||||
<td style="padding:3px;"> | |||||
<input name="sortid_<?php echo $k?>" value="<?php echo $row->sortid; ?>" type="text" id="sortid_<?php echo $k?>" class='pubinputs' style='width:50%' /> | |||||
</td> | |||||
<td style="padding-left:5px;"> | |||||
<input name="attname_<?php echo $k?>" value="<?php echo $row->attname; ?>" type="text" id="attname_<?php echo $k?>" size="30" class='pubinputs' /> | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
<input type="hidden" name="att_<?php echo $k?>" value="<?php echo $row->att?>" /> | |||||
<tr bgcolor="#FFFFFF" height="24"> | |||||
<td align="center"> | |||||
<?php echo $row->att; ?> | |||||
</td> | |||||
<td style="padding:3px;"> | |||||
<input name="sortid_<?php echo $k?>" value="<?php echo $row->sortid; ?>" type="text" | |||||
id="sortid_<?php echo $k?>" class='pubinputs' style='width:50%' /> | |||||
</td> | |||||
<td style="padding-left:5px;"> | |||||
<input name="attname_<?php echo $k?>" value="<?php echo $row->attname; ?>" type="text" | |||||
id="attname_<?php echo $k?>" size="30" class='pubinputs' /> | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
<input type="hidden" name="idend" value="<?php echo $k?>" /> | |||||
<tr> | |||||
<td height="24" colspan="3" bgcolor="#F9FCEF"> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="34" colspan="3" align="center" bgcolor="#FFFFFF"> | |||||
<input name="imageField" type="image" src="images/button_ok.gif" class="np" width="60" height="22" border="0" /> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
<input type="hidden" name="idend" value="<?php echo $k?>" /> | |||||
<tr> | |||||
<td height="24" colspan="3" bgcolor="#F9FCEF"> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="34" colspan="3" align="center" bgcolor="#FFFFFF"> | |||||
<button type="submit" class="btn btn-secondary">确定</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -5,6 +5,8 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>文档批量管理</title> | <title>文档批量管理</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | <link href="../static/css/daterangepicker.css" rel="stylesheet"> | ||||
<script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script> | <script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script> | ||||
@@ -59,12 +61,12 @@ | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="content_batchup_action.php" target="stafrm" method="post"> | <form name="form1" action="content_batchup_action.php" target="stafrm" method="post"> | ||||
<input type="hidden" name="dopost" value="go"> | <input type="hidden" name="dopost" value="go"> | ||||
<tr> | <tr> | ||||
<td height="28" colspan="2" background='images/tbg.gif'> | <td height="28" colspan="2" background='images/tbg.gif'> | ||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="177" height="18" style="padding-left:10px;"><strong>文档批量管理:</strong></td> | <td width="177" height="18" style="padding-left:10px;"><strong>文档批量管理:</strong></td> | ||||
<td align="right"> </td> | <td align="right"> </td> | ||||
@@ -95,7 +97,7 @@ | |||||
<tr> | <tr> | ||||
<td height="20" align="center" bgcolor="#FFFFFF">档案发布时间:</td> | <td height="20" align="center" bgcolor="#FFFFFF">档案发布时间:</td> | ||||
<td height="20" bgcolor="#FFFFFF"> | <td height="20" bgcolor="#FFFFFF"> | ||||
<table width="500" border="0" cellspacing="0" cellpadding="0"> | |||||
<table width="500" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td colspan="2"> <label> | <td colspan="2"> <label> | ||||
<input name="seltime" type="checkbox" class="np" id="seltime" value="1" onClick="ShowHideTime()"> | <input name="seltime" type="checkbox" class="np" id="seltime" value="1" onClick="ShowHideTime()"> | ||||
@@ -105,11 +107,11 @@ | |||||
<td width="250">开始: | <td width="250">开始: | ||||
<?php $nowtime = GetDateTimeMk(time()-(24*3600*30)); ?> | <?php $nowtime = GetDateTimeMk(time()-(24*3600*30)); ?> | ||||
<input name="starttime" value="<?php echo $nowtime; ?>" type="text" id="starttime" | <input name="starttime" value="<?php echo $nowtime; ?>" type="text" id="starttime" | ||||
style="width:120px" class="datepicker" /> | |||||
class="datepicker" /> | |||||
</td> | </td> | ||||
<td width="250">结束: | <td width="250">结束: | ||||
<?php $nowtime = GetDateTimeMk(time()); ?> | <?php $nowtime = GetDateTimeMk(time()); ?> | ||||
<input name="endtime" value="<?php echo $nowtime; ?>" type="text" id="endtime" style="width:120px" class="datepicker" /> | |||||
<input name="endtime" value="<?php echo $nowtime; ?>" type="text" id="endtime" class="datepicker" /> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -123,15 +125,15 @@ | |||||
<tr> | <tr> | ||||
<td height="20" align="center" bgcolor="#FFFFFF">操作:</td> | <td height="20" align="center" bgcolor="#FFFFFF">操作:</td> | ||||
<td height="20" bgcolor="#FFFFFF"> | <td height="20" bgcolor="#FFFFFF"> | ||||
<input name="action" type="radio" class="np" id="checkradio" onClick="ShowHideMove()" value="check" | |||||
<label><input name="action" type="radio" class="np" id="checkradio" onClick="ShowHideMove()" value="check" | |||||
checked='1' /> | checked='1' /> | ||||
审核文档 | |||||
<input name="action" type="radio" class="np" value="makehtml" id="makehtmlradio" onClick="ShowHideMove()" /> | |||||
更新HTML | |||||
<input name="action" type="radio" class="np" value="move" id="moveradio" onClick="ShowHideMove()" /> | |||||
移动文档 | |||||
<input name="action" type="radio" class="np" id="delradio" value="del" onClick="ShowHideMove()" /> | |||||
删除文档</td> | |||||
审核文档</label> | |||||
<label><input name="action" type="radio" class="np" value="makehtml" id="makehtmlradio" onClick="ShowHideMove()" /> | |||||
更新HTML</label> | |||||
<label><input name="action" type="radio" class="np" value="move" id="moveradio" onClick="ShowHideMove()" /> | |||||
移动文档</label> | |||||
<label><input name="action" type="radio" class="np" id="delradio" value="del" onClick="ShowHideMove()" /> | |||||
删除文档</label></td> | |||||
</tr> | </tr> | ||||
<tr height="20" bgcolor="#FFFFFF"> | <tr height="20" bgcolor="#FFFFFF"> | ||||
<td height="20" align="center" bgcolor="#FFFFFF">移动选项:</td> | <td height="20" align="center" bgcolor="#FFFFFF">移动选项:</td> | ||||
@@ -141,21 +143,21 @@ | |||||
echo "<select name='newtypeid' style='width:250;'>\r\n"; | echo "<select name='newtypeid' style='width:250;'>\r\n"; | ||||
echo $typeOptions; | echo $typeOptions; | ||||
echo "</select>"; | echo "</select>"; | ||||
echo "<br/>"; | |||||
echo "标题关键字:<input id='movekeyword' type='text' name='keyword' value='' style='width:220;'></span>"; | |||||
echo "<hr>"; | |||||
echo "标题关键字:<input id='movekeyword' type='text' name='keyword' value='' ></span>"; | |||||
?> | ?> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="31" colspan="2" bgcolor="#ffffff" align="center"> | <td height="31" colspan="2" bgcolor="#ffffff" align="center"> | ||||
<input name="b112" type="button" value="开始操作" onClick="document.form1.submit();" style="width:100px" | |||||
class="coolbg np" /> | |||||
<button name="b112" type="button" onClick="document.form1.submit();" | |||||
class="btn btn-secondary">开始操作</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | </form> | ||||
<tr bgcolor="#F9FCEF"> | <tr bgcolor="#F9FCEF"> | ||||
<td height="20" colspan="2"> | <td height="20" colspan="2"> | ||||
<table width="100%"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="74%">进行状态: </td> | <td width="74%">进行状态: </td> | ||||
<td width="26%" align="right"> | <td width="26%" align="right"> | ||||
@@ -182,7 +184,7 @@ | |||||
<input type="hidden" name="dopost" value="go"> | <input type="hidden" name="dopost" value="go"> | ||||
<tr> | <tr> | ||||
<td height="20" colspan="2" background='images/tbg.gif'> | <td height="20" colspan="2" background='images/tbg.gif'> | ||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="30%" height="18" style="padding-left:10px;"><strong>错误文档修正:</strong></td> | <td width="30%" height="18" style="padding-left:10px;"><strong>错误文档修正:</strong></td> | ||||
<td width="70%" align="right"> </td> | <td width="70%" align="right"> </td> | ||||
@@ -192,18 +194,18 @@ | |||||
</tr> | </tr> | ||||
<tr height="20" bgcolor="#FFFFFF"> | <tr height="20" bgcolor="#FFFFFF"> | ||||
<td height="20" colspan="2" align="center" bgcolor="#FFFFFF"> | <td height="20" colspan="2" align="center" bgcolor="#FFFFFF"> | ||||
<input type='radio' value='delnulltitle' name='action' class='np' /> | |||||
删除空标题的文章 | |||||
<input type='radio' value='delnullbody' name='action' class='np' /> | |||||
删除内容为空的文章 | |||||
<input type='radio' value='modddpic' name='action' class='np' /> | |||||
更正缩图错误 | |||||
<label><input type='radio' value='delnulltitle' name='action' class='np' /> | |||||
删除空标题的文章</label> | |||||
<label><input type='radio' value='delnullbody' name='action' class='np' /> | |||||
删除内容为空的文章</label> | |||||
<label><input type='radio' value='modddpic' name='action' class='np' /> | |||||
更正缩图错误</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="31" colspan="2" bgcolor="#F9FCEF" align="center"> | <td height="31" colspan="2" bgcolor="#F9FCEF" align="center"> | ||||
<input name="b112" type="button" value="开始操作" onClick="document.form2.submit();" style="width:100px" | |||||
class="coolbg np" /> | |||||
<button name="b112" type="button" onClick="document.form2.submit();" | |||||
class="btn btn-secondary">开始操作</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | </form> | ||||
@@ -143,8 +143,7 @@ | |||||
关键字: | 关键字: | ||||
</td> | </td> | ||||
<td width='160'> | <td width='160'> | ||||
<input type='text' name='keyword' value='{dede:global.keyword/}' | |||||
style='width:150px;height:20px;' /> | |||||
<input type='text' name='keyword' value='{dede:global.keyword/}'/> | |||||
</td> | </td> | ||||
<td width='110'> | <td width='110'> | ||||
<select name='orderby' style='width:80px'> | <select name='orderby' style='width:80px'> | ||||
@@ -91,13 +91,9 @@ | |||||
<td>{dede:field.arcrank function="GetRankName(@me)"/}</td> | <td>{dede:field.arcrank function="GetRankName(@me)"/}</td> | ||||
<td>{dede:field.mid function=GetMemberName(@me)/}</td> | <td>{dede:field.mid function=GetMemberName(@me)/}</td> | ||||
<td> | <td> | ||||
<img src='images/trun.gif' title="编辑属性" alt="编辑属性" | |||||
onClick="QuickEdit({dede:field.id/}, event, this);" style='cursor:pointer' border='0' width='16' | |||||
height='16' /> | |||||
<img src='images/gtk-edit.png' title="编辑" alt="编辑" onClick="editArc({dede:field.id/});" | |||||
style='cursor:pointer' border='0' width='16' height='16' /> | |||||
<img src='images/part-list.gif' title="预览" alt="预览" onClick="viewArc({dede:field.id/});" | |||||
style='cursor:pointer' border='0' width='16' height='16' /> | |||||
<a href="javascript:;" title="编辑属性" class="btn btn-secondary btn-sm" onClick="QuickEdit('{dede:field.id/}', event, this);"> <i class="fa fa-cogs" aria-hidden="true"></i></a> | |||||
<a href="javascript:;" title="编辑" class="btn btn-secondary btn-sm" onClick="editArc({dede:field.id/});"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i></a> | |||||
<a href="javascript:;" title="预览" class="btn btn-secondary btn-sm" onClick="viewArc({dede:field.id/});"> <i class="fa fa-globe" aria-hidden="true"></i></a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
{/dede:datalist} | {/dede:datalist} | ||||
@@ -9,6 +9,7 @@ | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | ||||
<link rel="stylesheet" type="text/css" href="css/base.css"> | <link rel="stylesheet" type="text/css" href="css/base.css"> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | <script language="javascript" src="../static/js/jquery.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | <script language="javascript" src="../static/js/dedeajax2.js"></script> | ||||
<script language="javascript" src="js/ieemu.js"></script> | <script language="javascript" src="js/ieemu.js"></script> | ||||
<script language="javascript" src="js/context_menu.js"></script> | <script language="javascript" src="js/context_menu.js"></script> | ||||
@@ -44,6 +45,10 @@ | |||||
} | } | ||||
function delArc(aid) { | function delArc(aid) { | ||||
var qstr = getCheckboxItem(); | var qstr = getCheckboxItem(); | ||||
if (qstr == '') { | |||||
ShowMsg('必须选择一个或多个文档!'); | |||||
return; | |||||
} | |||||
if (aid == 0) aid = getOneItem(); | if (aid == 0) aid = getOneItem(); | ||||
location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=delArchives"; | location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=delArchives"; | ||||
} | } | ||||
@@ -55,7 +60,7 @@ | |||||
function moveArc(e, obj, cid) { | function moveArc(e, obj, cid) { | ||||
var qstr = getCheckboxItem(); | var qstr = getCheckboxItem(); | ||||
if (qstr == '') { | if (qstr == '') { | ||||
alert('必须选择一个或多个文档!'); | |||||
ShowMsg('必须选择一个或多个文档!'); | |||||
return; | return; | ||||
} | } | ||||
LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr=' + qstr + '&channelid=' + cid + '&rnd=' + Math.random(), 'moveArchives', '450px', '180px'); | LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr=' + qstr + '&channelid=' + cid + '&rnd=' + Math.random(), 'moveArchives', '450px', '180px'); | ||||
@@ -205,8 +210,8 @@ | |||||
<td>{dede:field.click/}</td> | <td>{dede:field.click/}</td> | ||||
<td>{dede:field.mid function=GetMemberName(@me)/}</td> | <td>{dede:field.mid function=GetMemberName(@me)/}</td> | ||||
<td> | <td> | ||||
<a href="javascript:editArc({dede:field.aid/})">编辑</a> | | |||||
<a href="javascript:viewArc({dede:field.aid/})">预览</a> | |||||
<a href="javascript:editArc({dede:field.aid/})" class="btn btn-secondary btn-sm" title="编辑"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> </a> | | |||||
<a href="javascript:viewArc({dede:field.aid/})" class="btn btn-secondary btn-sm" title="预览"> <i class="fa fa-globe" aria-hidden="true"></i></a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
{/dede:datalist} | {/dede:datalist} | ||||
@@ -5,14 +5,17 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>修改自定义表单</title> | <title>修改自定义表单</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | <link href="css/base.css" rel="stylesheet" type="text/css" /> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | <script language="javascript" src="../static/js/jquery.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="js/main.js"></script> | <script language="javascript" src="js/main.js"></script> | ||||
<script language="javascript" src="js/diy.js"></script> | <script language="javascript" src="js/diy.js"></script> | ||||
<script language="javascript"> | <script language="javascript"> | ||||
function checkSubmit() { | function checkSubmit() { | ||||
if (document.form1.typename.value == '') { | if (document.form1.typename.value == '') { | ||||
alert("自定义表单名称不能为空!"); | |||||
ShowMsg("自定义表单名称不能为空!"); | |||||
return false; | return false; | ||||
} | } | ||||
return true; | return true; | ||||
@@ -42,11 +45,11 @@ | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<div class="bodytitle"> | |||||
<div class="bodytitle mt-3"> | |||||
<div class="bodytitleleft"></div> | <div class="bodytitleleft"></div> | ||||
<div class="bodytitletxt" style="padding-left:10px;">自定义表单管理</div> | <div class="bodytitletxt" style="padding-left:10px;">自定义表单管理</div> | ||||
</div> | </div> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3" | |||||
style="background:#CFCFCF;"> | style="background:#CFCFCF;"> | ||||
<form name="form1" action="diy_edit.php" method="post" onSubmit="return checkSubmit();"> | <form name="form1" action="diy_edit.php" method="post" onSubmit="return checkSubmit();"> | ||||
<input type='hidden' name='diyid' value='<?php echo $diyid;?>'> | <input type='hidden' name='diyid' value='<?php echo $diyid;?>'> | ||||
@@ -90,9 +93,9 @@ | |||||
信息索引类字段系统已经加入,<br /> | 信息索引类字段系统已经加入,<br /> | ||||
您只需要增加其它个性化字段即可。</td> | 您只需要增加其它个性化字段即可。</td> | ||||
<td bgcolor="#F9FCEF"> | <td bgcolor="#F9FCEF"> | ||||
<input name="fset" type="button" id="fset" value="添加新字段" | |||||
onClick="location.href='diy_field_add.php?diyid=<?php echo $diyid; ?>'" class="np coolbg" | |||||
style="margin-top:5px" /> | |||||
<button name="fset" type="button" id="fset" | |||||
onClick="location.href='diy_field_add.php?diyid=<?php echo $diyid; ?>'" class="btn btn-secondary btn-sm" | |||||
>添加新字段</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -145,9 +148,9 @@ foreach($dtp->CTags as $ctag) | |||||
?> | ?> | ||||
</td> | </td> | ||||
<td> | <td> | ||||
<a href="diy_field_edit.php?diyid=<?php echo $diyid;?>&fname=<?php echo $ctag->GetTagName()?>">[修改]</a> | |||||
<a href="diy_field_edit.php?diyid=<?php echo $diyid;?>&fname=<?php echo $ctag->GetTagName()?>" class="btn btn-secondary btn-sm"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> 修改</a> | |||||
<a | <a | ||||
href="diy_field_edit.php?diyid=<?php echo $diyid;?>&action=delete&fname=<?php echo $ctag->GetTagName()?>">[删除]</a> | |||||
href="diy_field_edit.php?diyid=<?php echo $diyid;?>&action=delete&fname=<?php echo $ctag->GetTagName()?>" class="btn btn-secondary btn-sm"> <i class="fa fa-globe" aria-hidden="true"></i> 删除</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<?php | <?php | ||||
@@ -182,24 +185,24 @@ foreach($dtp->CTags as $ctag) | |||||
<td height="28" align="left" bgcolor="#FFFFFF">前台列表和内容页公开?:</td> | <td height="28" align="left" bgcolor="#FFFFFF">前台列表和内容页公开?:</td> | ||||
<td bgcolor="#FFFFFF"> | <td bgcolor="#FFFFFF"> | ||||
<label><input name="public" type="radio" value="2" <?php echo $row['public'] == 2 ? 'checked' : '';?> | <label><input name="public" type="radio" value="2" <?php echo $row['public'] == 2 ? 'checked' : '';?> | ||||
class='np' />完全公开</label> | |||||
class='np' /> 完全公开 </label> | |||||
<label><input name="public" type="radio" value="1" <?php echo $row['public'] == 1 ? 'checked' : '';?> | <label><input name="public" type="radio" value="1" <?php echo $row['public'] == 1 ? 'checked' : '';?> | ||||
class='np' />公开审核过的</label> | |||||
class='np' /> 公开审核过的 </label> | |||||
<label><input name="public" type="radio" value="0" <?php echo $row['public'] == 0 ? 'checked' : '';?> | <label><input name="public" type="radio" value="0" <?php echo $row['public'] == 0 ? 'checked' : '';?> | ||||
class='np' />不公开</label> | |||||
class='np' /> 不公开 </label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr bgcolor="#F9FCEF"> | <tr bgcolor="#F9FCEF"> | ||||
<td height="28" colspan="2"> | <td height="28" colspan="2"> | ||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="26%" height="45"> </td> | <td width="26%" height="45"> </td> | ||||
<td width="15%"> | <td width="15%"> | ||||
<input type="submit" name="button" id="button" value="确定" class='np coolbg' /> | |||||
<button type="submit" name="button" id="button" class='btn btn-secondary'>确定</button> | |||||
</td> | </td> | ||||
<td width="59%"> | <td width="59%"> | ||||
<input name="按钮" type="button" class='np coolbg' id="button2" onclick="location='diy_main.php';" | |||||
value="返回" /> | |||||
<button type="button" class='btn btn-secondary' id="button2" onclick="location='diy_main.php';" | |||||
value="">返回</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -3,7 +3,12 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>增加字段</title> | <title>增加字段</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | <link href="css/base.css" rel="stylesheet" type="text/css" /> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language='javascript' src="js/main.js"></script> | |||||
<script language="javascript"> | <script language="javascript"> | ||||
var notAllow = " <?php echo $f; ?> "; | var notAllow = " <?php echo $f; ?> "; | ||||
function GetFields() | function GetFields() | ||||
@@ -26,27 +31,27 @@ function GetFields() | |||||
if(itemname=="") | if(itemname=="") | ||||
{ | { | ||||
alert("表单提示名称不能为空!"); | |||||
ShowMsg("表单提示名称不能为空!"); | |||||
theform.itemname.focus(); | theform.itemname.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
if(fieldname=="") | if(fieldname=="") | ||||
{ | { | ||||
alert("字段名称不能为空!"); | |||||
ShowMsg("字段名称不能为空!"); | |||||
theform.fieldname.focus(); | theform.fieldname.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
if(notAllow.indexOf(" "+fieldname+" ") >-1 ) | if(notAllow.indexOf(" "+fieldname+" ") >-1 ) | ||||
{ | { | ||||
alert("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||||
ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||||
return false; | return false; | ||||
} | } | ||||
if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | ||||
{ | { | ||||
alert("你选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)!"); | |||||
ShowMsg("你选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)!"); | |||||
return false; | return false; | ||||
} | } | ||||
@@ -61,28 +66,26 @@ function GetFields() | |||||
} | } | ||||
</script> | </script> | ||||
<style type="text/css"> | <style type="text/css"> | ||||
<!-- | |||||
td{ padding:2px; padding-left:6px; line-height:150%; } | td{ padding:2px; padding-left:6px; line-height:150%; } | ||||
.STYLE1 {color: #FF3300} | .STYLE1 {color: #FF3300} | ||||
.STYLE2 {color: #666666} | .STYLE2 {color: #666666} | ||||
.nw { float:left; width:150px; } | .nw { float:left; width:150px; } | ||||
.cls { clear:both; } | .cls { clear:both; } | ||||
--> | |||||
</style> | </style> | ||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;"> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3" style="background:#CFCFCF;"> | |||||
<form name="form1" action="diy_field_add.php" method="post" onSubmit="return GetFields();"> | <form name="form1" action="diy_field_add.php" method="post" onSubmit="return GetFields();"> | ||||
<input type='hidden' name='action' value='save'> | <input type='hidden' name='action' value='save'> | ||||
<input type='hidden' name='diyid' value='<?php echo $diyid?>'> | <input type='hidden' name='diyid' value='<?php echo $diyid?>'> | ||||
<input type='hidden' name='fieldstring' value=''> | <input type='hidden' name='fieldstring' value=''> | ||||
<tr> | <tr> | ||||
<td height="20" colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif"> | <td height="20" colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif"> | ||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="30%"> <b><a href="diy_main.php">自定义表单管理</a> >> 增加新字段:</b> </td> | <td width="30%"> <b><a href="diy_main.php">自定义表单管理</a> >> 增加新字段:</b> </td> | ||||
<td align="right" style="padding-top:6px;"> | <td align="right" style="padding-top:6px;"> | ||||
<input type="button" name="ss1" value="当前表单信息" onClick="location='diy_edit.php?diyid=<?php echo $diyid; ?>&dopost=edit';" class="nbt"/> | |||||
<button type="button" name="ss1" onClick="location='diy_edit.php?diyid=<?php echo $diyid; ?>&dopost=edit';" class="btn btn-secondary btn-sm">当前表单信息</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> </td> | </table> </td> | ||||
@@ -115,11 +118,11 @@ td{ padding:2px; padding-left:6px; line-height:150%; } | |||||
</td> | </td> | ||||
<td bgcolor="#FFFFFF"> | <td bgcolor="#FFFFFF"> | ||||
<input name="isnull" type="hidden" value="1" /> | <input name="isnull" type="hidden" value="1" /> | ||||
<input name="spage" type="radio" value="split" class='np' /> | |||||
是 | |||||
<label><input name="spage" type="radio" value="split" class='np' /> | |||||
是</label> | |||||
| | ||||
<input name="spage" type="radio" value="no" class='np' checked='1' /> | |||||
否 | |||||
<label><input name="spage" type="radio" value="no" class='np' checked='1' /> | |||||
否</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -127,22 +130,22 @@ td{ padding:2px; padding-left:6px; line-height:150%; } | |||||
<strong>数据类型:</strong> | <strong>数据类型:</strong> | ||||
</td> | </td> | ||||
<td bgcolor="#FFFFFF"> | <td bgcolor="#FFFFFF"> | ||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype1' value="text" checked='1'>单行文本(varchar)</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype2' value="textchar">单行文本(char)</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype3' value="multitext">多行文本</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype4' value="htmltext">HTML文本</div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype1' value="text" checked='1'> 单行文本(varchar)</label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype2' value="textchar"> 单行文本(char)</label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype3' value="multitext"> 多行文本</label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype4' value="htmltext"> HTML文本</label></div> | |||||
<br class='cls' /> | <br class='cls' /> | ||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype6' value="int">整数类型</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype7' value="float">小数类型</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype8' value="datetime">时间类型</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype13' value="select">使用option下拉框</div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype6' value="int"> 整数类型</label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype7' value="float"> 小数类型</label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype8' value="datetime"> 时间类型</label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype13' value="select"> 使用option下拉框</label></div> | |||||
<br class='cls' /> | <br class='cls' /> | ||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype14' value="radio">使用radio选项卡</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype15' value="checkbox">Checkbox多选框</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype9' value="img">图片</div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype14' value="radio"> 使用radio选项卡</label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype15' value="checkbox"> Checkbox多选框</label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype9' value="img"> 图片</label></div> | |||||
<!--div class='nw'><input type='radio' class='np' name='dtype' id='dtype10' value="imgfile">图片(仅网址)</div--> | <!--div class='nw'><input type='radio' class='np' name='dtype' id='dtype10' value="imgfile">图片(仅网址)</div--> | ||||
<!--div class='nw'><input type='radio' class='np' name='dtype' id='dtype11' value="media">多媒体文件</div--> | <!--div class='nw'><input type='radio' class='np' name='dtype' id='dtype11' value="media">多媒体文件</div--> | ||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype12' value="addon">附件类型</div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype12' value="addon"> 附件类型</label></div> | |||||
<!--div class='nw'><input type='radio' class='np' name='dtype' id='dtype16' value="stepselect">联动类型</div--> | <!--div class='nw'><input type='radio' class='np' name='dtype' id='dtype16' value="stepselect">联动类型</div--> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -180,14 +183,14 @@ td{ padding:2px; padding-left:6px; line-height:150%; } | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="28" colspan="2" bgcolor="#F9FDF0"> | <td height="28" colspan="2" bgcolor="#F9FDF0"> | ||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="26%" height="45"> </td> | <td width="26%" height="45"> </td> | ||||
<td width="10%"> | <td width="10%"> | ||||
<input type="submit" name="button1" id="button1" value="确定" class="coolbg np" /> | |||||
<button type="submit" class="btn btn-secondary">确定</button> | |||||
</td> | </td> | ||||
<td> | <td> | ||||
<input type="reset" name="button2" id="button2" value="重置" class="coolbg np" /> | |||||
<button type="reset" class="btn btn-secondary">重置</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -3,7 +3,12 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>更改字段</title> | <title>更改字段</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | <link href="css/base.css" rel="stylesheet" type="text/css" /> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language='javascript' src="js/main.js"></script> | |||||
<script language="javascript"> | <script language="javascript"> | ||||
function GetFields() | function GetFields() | ||||
{ | { | ||||
@@ -20,14 +25,14 @@ function GetFields() | |||||
if(itemname=="") | if(itemname=="") | ||||
{ | { | ||||
alert("表单提示名称不能为空!"); | |||||
ShowMsg("表单提示名称不能为空!"); | |||||
theform.itemname.focus(); | theform.itemname.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
if((dtype=="radio"||dtype=="select"||dtype=="checkbox") && vdefault=="") | if((dtype=="radio"||dtype=="select"||dtype=="checkbox") && vdefault=="") | ||||
{ | { | ||||
alert("你选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)!"); | |||||
ShowMsg("你选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)!"); | |||||
return false; | return false; | ||||
} | } | ||||
@@ -43,17 +48,15 @@ function GetFields() | |||||
} | } | ||||
</script> | </script> | ||||
<style type="text/css"> | <style type="text/css"> | ||||
<!-- | |||||
td{ padding:2px; padding-left:6px; } | td{ padding:2px; padding-left:6px; } | ||||
.STYLE1 {color: #FF3300} | .STYLE1 {color: #FF3300} | ||||
.STYLE2 {color: #666666} | .STYLE2 {color: #666666} | ||||
.nw { float:left; width:150px; } | .nw { float:left; width:150px; } | ||||
.cls { clear:both; } | .cls { clear:both; } | ||||
--> | |||||
</style> | </style> | ||||
</head> | </head> | ||||
<body topmargin=8 background='images/allbg.gif'> | <body topmargin=8 background='images/allbg.gif'> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;"> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3" style=" background:#CFCFCF;"> | |||||
<form name="form1" action="diy_field_edit.php" method="post" onSubmit="return GetFields();"> | <form name="form1" action="diy_field_edit.php" method="post" onSubmit="return GetFields();"> | ||||
<input type='hidden' name='action' value='save'> | <input type='hidden' name='action' value='save'> | ||||
<input type='hidden' name='diyid' value='<?php echo $diyid?>'> | <input type='hidden' name='diyid' value='<?php echo $diyid?>'> | ||||
@@ -62,11 +65,11 @@ td{ padding:2px; padding-left:6px; } | |||||
<input type='hidden' name='fieldstring' value=''> | <input type='hidden' name='fieldstring' value=''> | ||||
<tr> | <tr> | ||||
<td height="20" colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif"> | <td height="20" colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif"> | ||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="30%" style="padding-left:10px;"><b><a href="diy_main.php">自定义表单管理</a> >> 修改字段:</b> </td> | <td width="30%" style="padding-left:10px;"><b><a href="diy_main.php">自定义表单管理</a> >> 修改字段:</b> </td> | ||||
<td align="right" style="padding-top:6px;"> | <td align="right" style="padding-top:6px;"> | ||||
<input type="button" name="ss1" value="当前表单信息" onClick="location='diy_edit.php?diyid=<?php echo $diyid; ?>&dopost=edit';" class="nbt"/> | |||||
<button type="button" name="ss1" onClick="location='diy_edit.php?diyid=<?php echo $diyid; ?>&dopost=edit';" class="btn btn-secondary btn-sm">当前表单信息</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> </td> | </table> </td> | ||||
@@ -132,10 +135,10 @@ td{ padding:2px; padding-left:6px; } | |||||
<span class="STYLE2">如果内容需要分页符,不论何种内容,都可以用#P#副标题#e#作为分页符号实现内容分页,但一个模型里仅允许一个这样的字段!</span></td> | <span class="STYLE2">如果内容需要分页符,不论何种内容,都可以用#P#副标题#e#作为分页符号实现内容分页,但一个模型里仅允许一个这样的字段!</span></td> | ||||
<td bgcolor="#FFFFFF"> | <td bgcolor="#FFFFFF"> | ||||
<input name="isnull" type="hidden" value="1" /> | <input name="isnull" type="hidden" value="1" /> | ||||
<input name="spage" type="radio" value="split"<?php if($ctag->GetAtt('page')=='split') echo " checked='1' "; ?> class='np' /> | |||||
是 | |||||
<input name="spage" type="radio" value="no"<?php if($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo " checked='1' "; ?> class='np' /> | |||||
否 </td> | |||||
<label><input name="spage" type="radio" value="split"<?php if($ctag->GetAtt('page')=='split') echo " checked='1' "; ?> class='np' /> | |||||
是 </label> | |||||
<label><input name="spage" type="radio" value="no"<?php if($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo " checked='1' "; ?> class='np' /> | |||||
否</label></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td bgcolor="#FFFFFF"><strong>默认值:</strong><br> | <td bgcolor="#FFFFFF"><strong>默认值:</strong><br> | ||||
@@ -158,12 +161,15 @@ td{ padding:2px; padding-left:6px; } | |||||
<td bgcolor="#FFFFFF"><textarea name="vinnertext" cols="45" rows="5" id="vinnertext" style="width:70%; height:120px;"><?php echo $ctag->GetInnerText(); ?></textarea></td> | <td bgcolor="#FFFFFF"><textarea name="vinnertext" cols="45" rows="5" id="vinnertext" style="width:70%; height:120px;"><?php echo $ctag->GetInnerText(); ?></textarea></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="28" colspan="2" bgcolor="#F9FCEF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<td height="28" colspan="2" bgcolor="#F9FCEF"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless mb-3"> | |||||
<tr> | <tr> | ||||
<td width="26%" height="45"> </td> | <td width="26%" height="45"> </td> | ||||
<td width="10%"><input type="submit" name="button1" id="button1" value="确定" class="coolbg np" /> | |||||
<td width="10%" class="py-3"> | |||||
<button type="submit" class="btn btn-secondary">确定</button> | |||||
</td> | </td> | ||||
<td><input type="reset" name="button3" id="button3" value="重置" class="coolbg np" /> | |||||
<td class="py-3"> | |||||
<button type="reset" class="btn btn-secondary">重置</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table></td> | </table></td> | ||||
@@ -23,12 +23,8 @@ | |||||
<td bgcolor="#EDF9D5" class="tbtitletxt" background="images/tbg.gif"> | <td bgcolor="#EDF9D5" class="tbtitletxt" background="images/tbg.gif"> | ||||
<table width='96%' border="0" cellpadding='0' cellspacing='0'> | <table width='96%' border="0" cellpadding='0' cellspacing='0'> | ||||
<tr> | <tr> | ||||
<td width='30%' style="padding-left:10px;">[<a href="diy_add.php"><u>增加新的自定义表单</u></a>]</td> | |||||
<td width='30%' class="py-3"><a href="diy_add.php" class="btn btn-secondary btn-sm ml-3">增加新的自定义表单</a></td> | |||||
<td align='right'> | <td align='right'> | ||||
[图片说明: | |||||
<img src='images/manage1.gif' valign="middle" alt='更改' />更改 | |||||
<img src='images/file_del.gif' valign="middle" alt='删除' />删除 | |||||
] | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -51,12 +47,9 @@ | |||||
<td><a href="diy_list.php?action=list&diyid={dede:field.diyid/}"><u>{dede:field.name/}</u></a></td> | <td><a href="diy_list.php?action=list&diyid={dede:field.diyid/}"><u>{dede:field.name/}</u></a></td> | ||||
<td>{dede:field.table/}</td> | <td>{dede:field.table/}</td> | ||||
<td> | <td> | ||||
<a href='diy_edit.php?diyid={dede:field.diyid/}&dopost=edit'><img src='images/manage1.gif' | |||||
alt='更改' /></a> | | |||||
<a href='diy_edit.php?diyid={dede:field.diyid/}&dopost=delete'><img src='images/file_del.gif' | |||||
alt='删除' /></a> | | |||||
<a href="../plus/diy.php?action=list&diyid={dede:field.diyid/}" target="_blank"><img | |||||
src='images/gtk-tmp.png' title='预览' alt='预览' />前台预览</a> | |||||
<a href='diy_edit.php?diyid={dede:field.diyid/}&dopost=edit' class="btn btn-secondary btn-sm"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 更改</a> | | |||||
<a href='diy_edit.php?diyid={dede:field.diyid/}&dopost=delete' class="btn btn-secondary btn-sm"> <i class="fa fa-trash" aria-hidden="true"></i> 删除 </a> | | |||||
<a href="../plus/diy.php?action=list&diyid={dede:field.diyid/}" class="btn btn-secondary btn-sm" target="_blank"> <i class="fa fa-globe" aria-hidden="true"></i> 前台预览</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
{/dede:datalist} | {/dede:datalist} | ||||
@@ -5,6 +5,9 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>评论管理</title> | <title>评论管理</title> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script type="text/javascript" src="js/main.js"></script> | |||||
<script language='javascript'> | <script language='javascript'> | ||||
//获得选中文件的文件名 | //获得选中文件的文件名 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
@@ -41,22 +44,22 @@ | |||||
} | } | ||||
function delFeedback() { | function delFeedback() { | ||||
var qstr = getCheckboxItem(); | var qstr = getCheckboxItem(); | ||||
if (qstr == "") alert("你没选中任何内容!"); | |||||
if (qstr == "") ShowMsg("你没选中任何内容!"); | |||||
else if (window.confirm('你确定要删除这些评论吗?')) location.href = "feedback_main.php?job=del&fid=" + qstr; | else if (window.confirm('你确定要删除这些评论吗?')) location.href = "feedback_main.php?job=del&fid=" + qstr; | ||||
} | } | ||||
function delFeedbackIP() { | function delFeedbackIP() { | ||||
var qstr = getCheckboxItem(); | var qstr = getCheckboxItem(); | ||||
if (qstr == "") alert("你没选中任何内容!"); | |||||
if (qstr == "") ShowMsg("你没选中任何内容!"); | |||||
else if (window.confirm('你确定要删除这些评论吗?')) location.href = "feedback_main.php?job=delall&fid=" + qstr; | else if (window.confirm('你确定要删除这些评论吗?')) location.href = "feedback_main.php?job=delall&fid=" + qstr; | ||||
} | } | ||||
function checkFeedback() { | function checkFeedback() { | ||||
var qstr = getCheckboxItem(); | var qstr = getCheckboxItem(); | ||||
if (qstr == "") alert("您没选中任何内容!"); | |||||
if (qstr == "") ShowMsg("您没选中任何内容!"); | |||||
else location.href = "feedback_main.php?job=check&fid=" + qstr; | else location.href = "feedback_main.php?job=check&fid=" + qstr; | ||||
} | } | ||||
function editFeedback() { | function editFeedback() { | ||||
var qstr = getCheckboxItem(); | var qstr = getCheckboxItem(); | ||||
if (qstr == "") alert("您没选中任何内容!"); | |||||
if (qstr == "") ShowMsg("您没选中任何内容!"); | |||||
else location.href = "feedback_edit.php?job=edit&fid=" + qstr; | else location.href = "feedback_edit.php?job=edit&fid=" + qstr; | ||||
} | } | ||||
</script> | </script> | ||||
@@ -66,7 +69,8 @@ | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" align="center" cellspacing="1" bgcolor="#D6D6D6" class="table table-bordered maintable mt-3"> | |||||
<table width="98%" border="0" cellpadding="3" align="center" cellspacing="1" bgcolor="#D6D6D6" | |||||
class="table table-bordered maintable mt-3"> | |||||
<tr> | <tr> | ||||
<td height="28" background='images/tbg.gif' style="padding-left:10px;"> | <td height="28" background='images/tbg.gif' style="padding-left:10px;"> | ||||
<div style="float:left;"> | <div style="float:left;"> | ||||
@@ -88,11 +92,12 @@ | |||||
<form name='feedback'> | <form name='feedback'> | ||||
<tr> | <tr> | ||||
<td height="215" bgcolor="#FFFFFF" valign="top"> | <td height="215" bgcolor="#FFFFFF" valign="top"> | ||||
<table width='100%' border='0' cellpadding='0' cellspacing='0' class="table table-borderless"> | |||||
<table width='100%' border='0' cellpadding='0' cellspacing='0' class="table table-borderless"> | |||||
{dede:datalist} | {dede:datalist} | ||||
<tr height='25'> | <tr height='25'> | ||||
<td> | <td> | ||||
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEF7D2" class="table table-borderless"> | |||||
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEF7D2" | |||||
class="table table-borderless"> | |||||
<tr bgcolor="#F4FAE4"> | <tr bgcolor="#F4FAE4"> | ||||
<td width="9%"> | <td width="9%"> | ||||
选择 <input name="fid" type="checkbox" class="np" id="fid" | 选择 <input name="fid" type="checkbox" class="np" id="fid" | ||||
@@ -105,7 +110,10 @@ | |||||
文档:<a href='feedback_main.php?aid={dede:field.aid/}'><u>{dede:field.arctitle | 文档:<a href='feedback_main.php?aid={dede:field.aid/}'><u>{dede:field.arctitle | ||||
function="RemoveXSS(@me)"/}</u></a> (<a | function="RemoveXSS(@me)"/}</u></a> (<a | ||||
href="{dede:global.cfg_phpurl /}/view.php?aid={dede:field.aid/}" | href="{dede:global.cfg_phpurl /}/view.php?aid={dede:field.aid/}" | ||||
target="_blank"><u>浏览</u></a>) <?php if($fields['replycount'] > 0) { ?><a href='feedback_main.php?fid={dede:field.id/}'>({dede:field.replycount/}条回复)</a> <?php } ?> | |||||
target="_blank"><u>浏览</u></a>) | |||||
<?php if($fields['replycount'] > 0) { ?><a | |||||
href='feedback_main.php?fid={dede:field.id/}'>({dede:field.replycount/}条回复)</a> | |||||
<?php } ?> | |||||
</td> | </td> | ||||
<td width="18%" align="center"> | <td width="18%" align="center"> | ||||
IP地址:<a | IP地址:<a | ||||
@@ -115,7 +123,9 @@ | |||||
时间:{dede:field.dtime function="GetDateTimeMK(@me)" /} | 时间:{dede:field.dtime function="GetDateTimeMK(@me)" /} | ||||
</td> | </td> | ||||
<td width="10%" align="center"> | <td width="10%" align="center"> | ||||
<a href='feedback_edit.php?id={dede:field.id/}'><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 编辑</a> | |||||
<a class="btn btn-secondary btn-sm" | |||||
href='feedback_edit.php?id={dede:field.id/}'><i | |||||
class="fa fa-pencil-square-o" aria-hidden="true"></i> 编辑</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr align="center" bgcolor="#FFFFFF"> | <tr align="center" bgcolor="#FFFFFF"> | ||||
@@ -152,8 +162,8 @@ | |||||
class="btn btn-secondary btn-sm">反选</button> | class="btn btn-secondary btn-sm">反选</button> | ||||
</td> | </td> | ||||
<td align="right"> | <td align="right"> | ||||
<button type='button' name='db' | |||||
onClick="delFeedbackIP()" class="btn btn-secondary btn-sm">删除相同IP的所有评论</button> | |||||
<button type='button' name='db' onClick="delFeedbackIP()" | |||||
class="btn btn-secondary btn-sm">删除相同IP的所有评论</button> | |||||
<button type='button' name='db' onClick="delFeedback()" | <button type='button' name='db' onClick="delFeedback()" | ||||
class="btn btn-secondary btn-sm">删除评论</button> | class="btn btn-secondary btn-sm">删除评论</button> | ||||
<button type='button' name='db2' onClick="checkFeedback()" | <button type='button' name='db2' onClick="checkFeedback()" | ||||
@@ -65,7 +65,7 @@ while(($file = $dh->read()) !== false) | |||||
</td> | </td> | ||||
<td colspan='3' bgcolor='#ffffff'> | <td colspan='3' bgcolor='#ffffff'> | ||||
当前目录:$activepath | 当前目录:$activepath | ||||
<a href='file_pic_view.php?activepath=".urlencode($activepath)."' style='color:red'>[图片浏览器]</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$dirs[] = $line; | $dirs[] = $line; | ||||
@@ -80,9 +80,9 @@ while(($file = $dh->read()) !== false) | |||||
<td> </td> | <td> </td> | ||||
<td> </td> | <td> </td> | ||||
<td> | <td> | ||||
<a href=file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&fmdo=rename>[改名]</a> | |||||
<a href=file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&fmdo=rename class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href=file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&type=dir&fmdo=del>[删除]</a> | |||||
<a href=file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&type=dir&fmdo=del class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
</td> | </td> | ||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
@@ -96,11 +96,11 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'><i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'><i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -113,11 +113,11 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center' class='linerow'>$filetime</td> | <td align='center' class='linerow'>$filetime</td> | ||||
<td > | <td > | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -130,11 +130,11 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -147,11 +147,11 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -164,11 +164,11 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td > | <td > | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -181,11 +181,11 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -198,11 +198,11 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -215,11 +215,11 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center' class='linerow'>$filetime</td> | <td align='center' class='linerow'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -233,13 +233,13 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='$edurl'>[编辑]</a> | |||||
<a href='$edurl' class='btn btn-secondary btn-sm'> <i class='fa fa-pencil-square-o' aria-hidden='true'></i> 编辑</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -253,13 +253,13 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='$edurl'>[编辑]</a> | |||||
<a href='$edurl' class='btn btn-secondary btn-sm'> <i class='fa fa-pencil-square-o' aria-hidden='true'></i> 编辑</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -273,13 +273,13 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='$edurl'>[编辑]</a> | |||||
<a href='$edurl' class='btn btn-secondary btn-sm'> <i class='fa fa-pencil-square-o' aria-hidden='true'></i> 编辑</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -293,13 +293,13 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='$edurl'>[编辑]</a> | |||||
<a href='$edurl' class='btn btn-secondary btn-sm'> <i class='fa fa-pencil-square-o' aria-hidden='true'></i> 编辑</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'><i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -313,13 +313,13 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='$edurl'>[编辑]</a> | |||||
<a href='$edurl' class='btn btn-secondary btn-sm'> <i class='fa fa-pencil-square-o' aria-hidden='true'></i> 编辑</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -331,11 +331,11 @@ while(($file = $dh->read()) !== false) | |||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
<td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
<td> | <td> | ||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[改名]</a> | |||||
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-address-card-o' aria-hidden='true'></i> 改名</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[删除]</a> | |||||
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-trash' aria-hidden='true'></i> 删除</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."'>[移动]</a> | |||||
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-secondary btn-sm'> <i class='fa fa-share-square' aria-hidden='true'></i> 移动</a> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
$files[] = $line; | $files[] = $line; | ||||
@@ -353,15 +353,15 @@ foreach ($files as $file) | |||||
?> | ?> | ||||
<tr> | <tr> | ||||
<td colspan="4" height='26' bgcolor='#F9FCEF'> | <td colspan="4" height='26' bgcolor='#F9FCEF'> | ||||
<a href='file_manage_main.php'>[根目录]</a> | |||||
<a href='file_manage_main.php' class="btn btn-secondary btn-sm">根目录</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=newfile&activepath=<?php echo urlencode($activepath)?>'>[新建文件]</a> | |||||
<a href='file_manage_view.php?fmdo=newfile&activepath=<?php echo urlencode($activepath)?>' class="btn btn-secondary btn-sm">新建文件</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=newdir&activepath=<?php echo urlencode($activepath)?>'>[新建目录]</a> | |||||
<a href='file_manage_view.php?fmdo=newdir&activepath=<?php echo urlencode($activepath)?>' class="btn btn-secondary btn-sm">新建目录</a> | |||||
| | ||||
<a href='file_manage_view.php?fmdo=upload&activepath=<?php echo urlencode($activepath)?>'>[文件上传]</a> | |||||
<a href='file_manage_view.php?fmdo=upload&activepath=<?php echo urlencode($activepath)?>' class="btn btn-secondary btn-sm">文件上传</a> | |||||
| | ||||
<a href='file_manage_control.php?fmdo=space&activepath=<?php echo urlencode($activepath)?>'>[空间检查]</a> | |||||
<a href='file_manage_control.php?fmdo=space&activepath=<?php echo urlencode($activepath)?>' class="btn btn-secondary btn-sm">空间检查</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -1,57 +0,0 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||||
<head> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>图片浏览器</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language="javascript"> | |||||
function getPic(str) | |||||
{ | |||||
var ss = new Array(3); | |||||
ss = str.split("@"); | |||||
window.opener.document.form1.imgsrc.value=ss[0]; | |||||
window.opener.document.form1.imgwidth.value=ss[1]; | |||||
window.opener.document.form1.imgheight.value=ss[2]; | |||||
window.opener.document.form1.picview.src=ss[0]; | |||||
window.opener=true; | |||||
window.close(); | |||||
} | |||||
</script> | |||||
</head> | |||||
<body leftmargin="0" topmargin="0"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<form name="form1"> | |||||
<tr> | |||||
<td height="10" colspan="<?php echo $listSize?>"></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="<?php echo $listSize?>"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> | |||||
<tr> | |||||
<td width="4%" align="center" bgcolor="#F9F9F7" height="24"><img src="images/file_dir.gif" width="16" height="16"></td> | |||||
<td width="55%" align="center" bgcolor="#F9F9F7"><input name="activepath" type="text" id="path" size="30" style="height:15pt" value="<?php echo $activepath?>"></td> | |||||
<td width="20%" bgcolor="#F9F9F7"> | |||||
<table width="100%" border="0" cellspacing="1" cellpadding="0"> | |||||
<tr> | |||||
<td width="6%"> </td> | |||||
<td width="44%"><input name="imageField" type="image" src="images/next.gif" width="52" height="20" border="0" style="border:0;height:20"></td> | |||||
<td width="50%"><a href="file_manage_main.php?activepath=<?php echo $activepath?>"><img src="images/file_view.gif" width="60" height="20" border="0"></a></td> | |||||
</tr> | |||||
</table></td> | |||||
<td width="22%" bgcolor="#F9F9F7"> | |||||
<table width="100%" border="0" cellspacing="1" cellpadding="0"> | |||||
<tr> | |||||
<td width="18%" align="right"><img src="images/file_topdir.gif" width="18" height="17"></td> | |||||
<td width="82%"><?php GetPrePath($activepath); ?></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr><td height="4" colspan="<?php echo $listSize?>"></td></tr> | |||||
<?php ListPic($truePath,$activepath); ?> | |||||
</form> | |||||
</table> | |||||
</body> | |||||
</html> |
@@ -105,8 +105,9 @@ | |||||
<td bgcolor="#CFCFCF" class="tbtitletxt" background="images/tbg.gif"> | <td bgcolor="#CFCFCF" class="tbtitletxt" background="images/tbg.gif"> | ||||
<table width='100%' border="0" cellpadding='0' cellspacing='0' class="maintable"> | <table width='100%' border="0" cellpadding='0' cellspacing='0' class="maintable"> | ||||
<tr> | <tr> | ||||
<td width='36%' class="tbtitletxt" style="padding-left:10px;"><strong>自由列表管理</strong> [<a | |||||
href="freelist_add.php"><u>增加列表</u></a>]</td> | |||||
<td width='36%' class="py-3" style="padding-left:10px;"><strong>自由列表管理</strong> | |||||
<a href="freelist_add.php" class="btn btn-secondary btn-sm">增加列表</a> | |||||
</td> | |||||
<td width="29%"> </td> | <td width="29%"> </td> | ||||
<td width="35%" align='right'> </td> | <td width="35%" align='right'> </td> | ||||
</tr> | </tr> | ||||
@@ -132,14 +133,14 @@ | |||||
value="<?php echo $keyword?>" /> | value="<?php echo $keyword?>" /> | ||||
</td> | </td> | ||||
<td width="80" align="left"> | <td width="80" align="left"> | ||||
<input type="submit" name="Submit2" value="搜索" class="coolbg np" /> | |||||
<button type="submit" name="Submit2" class="btn btn-secondary btn-sm">搜索</button> | |||||
</td> | </td> | ||||
<td align="left"> | <td align="left"> | ||||
<input type="button" name="bt1" value="增加列表" style="width:70px" | |||||
onclick="location='freelist_add.php';" class="coolbg np" /> | |||||
<button type="button" name="bt1" | |||||
onclick="location='freelist_add.php';" class="btn btn-secondary btn-sm">增加列表</button> | |||||
| | ||||
<input type="button" name="bt2" value="更新所有列表HTML" style="width:180px" | |||||
onclick="location='makehtml_freelist.php';" class="coolbg np" /> | |||||
<button type="button" name="bt2" | |||||
onclick="location='makehtml_freelist.php';" class="btn btn-secondary btn-sm">更新所有列表HTML</button> | |||||
</td> | </td> | ||||
<td width="200"> | <td width="200"> | ||||
@@ -65,7 +65,7 @@ | |||||
echo "<div class='updatedvt'><b>您系统版本最后更新时间为:{$oktime} </b><br/>"; | echo "<div class='updatedvt'><b>您系统版本最后更新时间为:{$oktime} </b><br/>"; | ||||
echo " <a href='javascript:LoadUpdateInfos();' class='np coolbg'>进行在线更新</a> \r\n"; | echo " <a href='javascript:LoadUpdateInfos();' class='np coolbg'>进行在线更新</a> \r\n"; | ||||
echo " <a href='sys_repair.php' class='np coolbg'>系统错误修复</a></div>\r\n"; | echo " <a href='sys_repair.php' class='np coolbg'>系统错误修复</a></div>\r\n"; | ||||
echo "<iframe name='stafrm' src='{$offUrl}&uptime={$oktime}' frameborder='0' id='stafrm' width='98%' height='50'></iframe>"; | |||||
echo "<iframe name='stafrm' src='{$offUrl}&uptime={$oktime}' frameborder='0' id='stafrm' width='98%' height='80'></iframe>"; | |||||
?> | ?> | ||||
</div> | </div> | ||||
<!--/.card-body--> | <!--/.card-body--> | ||||
@@ -125,7 +125,7 @@ | |||||
</div> | </div> | ||||
<!--/.card-header--> | <!--/.card-header--> | ||||
<div class="card-body"> | <div class="card-body"> | ||||
<table width="98%" class="dboxtable"> | |||||
<table width="98%" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="25%" class='nline' style="text-align:right">您的级别:</td> | <td width="25%" class='nline' style="text-align:right">您的级别:</td> | ||||
<td class='nline'> | <td class='nline'> | ||||
@@ -138,7 +138,7 @@ | |||||
echo "信息采集员或其它管理员"; | echo "信息采集员或其它管理员"; | ||||
} | } | ||||
?> | ?> | ||||
[<a href="javascript:showMore()">查看更多</a>]</td> | |||||
<a href="javascript:showMore()" class="btn btn-secondary btn-sm">查看更多</a></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="2" class='nline' id="allInfoTD" style="display:none"> | <td colspan="2" class='nline' id="allInfoTD" style="display:none"> | ||||
@@ -3,7 +3,8 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>一键更新</title> | <title>一键更新</title> | ||||
<!-- <link rel="stylesheet" href="../static/css/bootstrap.min.css"> --> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | <link href="css/base.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | <link href="../static/css/daterangepicker.css" rel="stylesheet"> | ||||
<script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script> | <script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script> | ||||
@@ -60,7 +61,7 @@ function SelUp(){ | |||||
</script> | </script> | ||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="makehtml_all.php" target="stafrm" method="post"> | <form name="form1" action="makehtml_all.php" target="stafrm" method="post"> | ||||
<input type="hidden" name="action" value="make" /> | <input type="hidden" name="action" value="make" /> | ||||
<tr> | <tr> | ||||
@@ -71,12 +72,12 @@ function SelUp(){ | |||||
<tr> | <tr> | ||||
<td width="30%" height="30" bgcolor="#FFFFFF"> 更新选项:</td> | <td width="30%" height="30" bgcolor="#FFFFFF"> 更新选项:</td> | ||||
<td valign="top" bgcolor="#FFFFFF"> | <td valign="top" bgcolor="#FFFFFF"> | ||||
<input name="uptype" id="uptype1" type="radio" class="np" value="time" onClick="SelUp()" checked="checked" /> | |||||
指定时间的所有更新 | |||||
<input name="uptype" id="uptype2" type="radio" class="np" onClick="SelUp()" value="id" /> | |||||
指定ID文档的所有更新 | |||||
<input name="uptype" id="uptype3" type="radio" class="np" onClick="SelUp()" value="mkall" /> | |||||
更新所有 | |||||
<label><input name="uptype" id="uptype1" type="radio" class="btn btn-secondary btn-sm" value="time" onClick="SelUp()" checked="checked" /> | |||||
指定时间的所有更新</label> | |||||
<label><input name="uptype" id="uptype2" type="radio" class="btn btn-secondary btn-sm" onClick="SelUp()" value="id" /> | |||||
指定ID文档的所有更新</label> | |||||
<label><input name="uptype" id="uptype3" type="radio" class="btn btn-secondary btn-sm" onClick="SelUp()" value="mkall" /> | |||||
更新所有</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr id='seltime'> | <tr id='seltime'> | ||||
@@ -93,13 +94,13 @@ function SelUp(){ | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="31" colspan="2" bgcolor="#ffffff" align="center" style="padding-top:6px"> | <td height="31" colspan="2" bgcolor="#ffffff" align="center" style="padding-top:6px"> | ||||
<input type="submit" name="Submit" value="开始更新" class="coolbg" /> | |||||
<button type="submit" name="Submit" class="btn btn-secondary">开始更新</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | </form> | ||||
<tr bgcolor="#F9FCEF"> | <tr bgcolor="#F9FCEF"> | ||||
<td height="20" colspan="2"> | <td height="20" colspan="2"> | ||||
<table width="100%"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="74%">进行状态: </td> | <td width="74%">进行状态: </td> | ||||
<td width="26%" align="right"> | <td width="26%" align="right"> | ||||
@@ -1,31 +1,38 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>生成HTML</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>生成HTML</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name='form2' action='content_list.php' method="get" target='stafrm'> | |||||
<input type='hidden' name='nullfield' value='ok'> | |||||
</form> | |||||
<form name="form1" action="makehtml_archives_action.php" method="get" target='stafrm'> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>更新文档HTML:</strong></td> | |||||
<td width="70%" align="right"> | |||||
<a href="makehtml_list.php?typeid=<?php echo (isset($typeid) ? $typeid : 0); ?>" class="np coolbg">更新栏目HTML</a> | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="108" valign="top" bgcolor="#FFFFFF">选择栏目:</td> | |||||
<td width="377" valign="top" bgcolor="#FFFFFF"> | |||||
<?php | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name='form2' action='content_list.php' method="get" target='stafrm'> | |||||
<input type='hidden' name='nullfield' value='ok'> | |||||
</form> | |||||
<form name="form1" action="makehtml_archives_action.php" method="get" target='stafrm'> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>更新文档HTML:</strong></td> | |||||
<td width="70%" align="right"> | |||||
<a href="makehtml_list.php?typeid=<?php echo (isset($typeid) ? $typeid : 0); ?>" | |||||
class="btn btn-secondary btn-sm">更新栏目HTML</a> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="108" valign="top" bgcolor="#FFFFFF">选择栏目:</td> | |||||
<td width="377" valign="top" bgcolor="#FFFFFF"> | |||||
<?php | |||||
if(empty($cid)) $cid="0"; | if(empty($cid)) $cid="0"; | ||||
$tl = new TypeLink($cid); | $tl = new TypeLink($cid); | ||||
$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0); | $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0); | ||||
@@ -34,54 +41,58 @@ | |||||
echo $typeOptions; | echo $typeOptions; | ||||
echo "</select>"; | echo "</select>"; | ||||
?> | ?> | ||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">起始ID:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"><input name="startid" type="text" id="startid" size="10"> | |||||
(空或0表示从头开始)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">结束ID:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"><input name="endid" type="text" id="endid" size="10"> | |||||
(空或0表示直到结束ID) </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" bgcolor="#FFFFFF">每页生成:</td> | |||||
<td height="20" bgcolor="#FFFFFF"> <input name="pagesize" type="text" id="pagesize" value="20" size="8"> | |||||
个文件</td> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">起始ID:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"><input name="startid" type="text" id="startid" size="10"> | |||||
(空或0表示从头开始)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">结束ID:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"><input name="endid" type="text" id="endid" size="10"> | |||||
(空或0表示直到结束ID) </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" bgcolor="#FFFFFF">每页生成:</td> | |||||
<td height="20" bgcolor="#FFFFFF"> <input name="pagesize" type="text" id="pagesize" value="20" size="8"> | |||||
个文件</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<button name="b112" type="button" class='btn btn-secondary' onClick="document.form1.submit();" | |||||
>开始生成HTML</button> | |||||
| |||||
<button type="button" name="b113" class='btn btn-secondary' onClick="document.form2.submit();" | |||||
>查看所有文档</button></td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<input name="b112" type="button" class='coolbg np' value="开始生成HTML" onClick="document.form1.submit();" style="width:100"> | |||||
| |||||
<input type="button" name="b113" value="查看所有文档" class='coolbg np' onClick="document.form2.submit();" style="width:100"></td> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | </tr> | ||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> <table width="100%"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,120 +1,113 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>主页更新向导</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<link rel="stylesheet" type="text/css" media="all" href="../static/js/calendar/calendar-win2k-1.css" title="win2k-1" /> | |||||
<script type="text/javascript" src="../static/js/calendar/calendar.js"></script> | |||||
<script type="text/javascript" src="../static/js/calendar/calendar-cn.js"></script> | |||||
<script language="javascript"> | |||||
function SelectTemplets(fname) | |||||
{ | |||||
var posLeft = 200; | |||||
var posTop = 300; | |||||
window.open("./dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop); | |||||
} | |||||
</script> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>主页更新向导</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language="javascript"> | |||||
function SelectTemplets(fname) { | |||||
var posLeft = 200; | |||||
var posTop = 300; | |||||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left=" + posLeft + ", top=" + posTop); | |||||
} | |||||
</script> | |||||
</head> | </head> | ||||
<body background="images/allbg.gif" leftmargin="8" topmargin="8"> | <body background="images/allbg.gif" leftmargin="8" topmargin="8"> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name="form1" action="makehtml_homepage.php" target="stafrm" method="post"> | |||||
<input type="hidden" name="dopost" value="make"> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>主页更新向导:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="makehtml_homepage.php" target="stafrm" method="post"> | |||||
<input type="hidden" name="dopost" value="make"> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>主页更新向导:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="177" valign="top" bgcolor="#FFFFFF">选择主页模板:</td> | |||||
<td width="791" valign="top" bgcolor="#FFFFFF"> | |||||
<input name="templet" type="text" id="templet" style="width:300" value="<?php echo $row['templet']?>"> | |||||
<button class="btn btn-secondary btn-sm" type="button" name="set4" value="" onClick="SelectTemplets('form1.templet');">浏览...</button> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" colspan="2" valign="top" bgcolor="#FFFFFF"> | |||||
默认的情况下,生成的主页文件放在CMS的安装目录,如果您的CMS不是安装在网站根目录的,又想把主页创建到网站根目录,那么请用相对路径来表示“主页位置”。<br /> | |||||
例:您的CMS安装在 | |||||
http://www.abc.com/dedecms/ 目录,您想生成的主页为 http://www.abc.com/index.html,那么主页位置就应该用: | |||||
“../index.html”。</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">主页位置:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"><input name="position" type="text" id="position" | |||||
value="<?php echo $row['position']?>" size="30"> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">相关选项:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"> | |||||
<label><input name="saveset" type="radio" value="0" class="np"> | |||||
不保存当前选项</label> | |||||
<label><input name="saveset" type="radio" class="np" value="1" checked> | |||||
保存当前选项</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">首页模式:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"> | |||||
<label><input name="showmod" type="radio" value="0" class="np" | |||||
<?php echo ($row['showmod']==0)? "checked='checked'" : "";?> /> | |||||
动态浏览</label> | |||||
<label><input name="showmod" type="radio" class="np" value="1" | |||||
<?php echo ($row['showmod']==1)? "checked='checked'" : "";?> /> | |||||
生成静态 (或者手动删除根目录下index.html文件)</label></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="31" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<button name="view" class='btn btn-secondary' type="button" id="view" | |||||
onClick="window.open('makehtml_homepage.php?dopost=view&templet='+form1.templet.value);">预览主页</button> | |||||
<button type="submit" class='btn btn-secondary' name="Submit">更新主页HTML</button> | |||||
| |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="177" valign="top" bgcolor="#FFFFFF">选择主页模板:</td> | |||||
<td width="791" valign="top" bgcolor="#FFFFFF"> | |||||
<input name="templet" type="text" id="templet" style="width:300" value="<?php echo $row['templet']?>"> | |||||
<input type="button" name="set4" value="浏览..." style="width:60" onClick="SelectTemplets('form1.templet');"> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="20" colspan="2" valign="top" bgcolor="#FFFFFF">默认的情况下,生成的主页文件放在CMS的安装目录,如果您的CMS不是安装在网站根目录的,又想把主页创建到网站根目录,那么请用相对路径来表示“主页位置”。<br /> | |||||
例:您的CMS安装在 | |||||
http://www.abc.com/dedecms/ 目录,您想生成的主页为 http://www.abc.com/index.html,那么主页位置就应该用: | |||||
“../index.html”。</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">主页位置:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"><input name="position" type="text" id="position" value="<?php echo $row['position']?>" size="30"> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<?php | |||||
if($cfg_remote_site=='Y') | |||||
{ | |||||
?> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFCC">远程发布:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFCC"><input name="remotepos" type="text" id="remotepos" value="/index.html" size="30"> | |||||
(“/”相对远程站点根目录) </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" colspan="2" valign="top" bgcolor="#FFFFCC">您已经启用远程发布,请确保正确 [<a href="sys_info.php" style="color:red">配置FTP</a>]</td> | |||||
</tr> | |||||
<?php | |||||
} | |||||
?> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">相关选项:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"> | |||||
<input name="saveset" type="radio" value="0" class="np"> | |||||
不保存当前选项 | |||||
<input name="saveset" type="radio" class="np" value="1" checked> | |||||
保存当前选项 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">首页模式:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"><input name="showmod" type="radio" value="0" class="np" <?php echo ($row['showmod']==0)? "checked='checked'" : "";?>/> | |||||
动态浏览 | |||||
<input name="showmod" type="radio" class="np" value="1" <?php echo ($row['showmod']==1)? "checked='checked'" : "";?> /> | |||||
生成静态 (或者手动删除根目录下index.html文件)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="31" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<input name="view" class='coolbg np' type="button" id="view" value="预览主页" onClick="window.open('makehtml_homepage.php?dopost=view&templet='+form1.templet.value);" /> | |||||
<input type="submit" class='coolbg np' name="Submit" value="更新主页HTML" /> | |||||
| |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"><table width="100%"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table> </td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,40 +1,46 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>生成HTML</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language="javascript"> | |||||
function SelectTemplets(fname) | |||||
{ | |||||
if(document.all){ | |||||
var posLeft = window.event.clientY-100; | |||||
var posTop = window.event.clientX-400; | |||||
} | |||||
else{ | |||||
var posLeft = 100; | |||||
var posTop = 100; | |||||
} | |||||
window.open("./dialog/select_templets.php?&activepath=<?php echo urlencode($cfg_templets_dir.'/plus')?>&f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop); | |||||
} | |||||
</script> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>生成HTML</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language="javascript"> | |||||
function SelectTemplets(fname) { | |||||
if (document.all) { | |||||
var posLeft = window.event.clientY - 100; | |||||
var posTop = window.event.clientX - 400; | |||||
} | |||||
else { | |||||
var posLeft = 100; | |||||
var posTop = 100; | |||||
} | |||||
window.open("./dialog/select_templets.php?&activepath=<?php echo urlencode($cfg_templets_dir.'/plus')?>&f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left=" + posLeft + ", top=" + posTop); | |||||
} | |||||
</script> | |||||
</head> | </head> | ||||
<body background="images/allbg.gif" leftmargin="8" topmargin="8"> | <body background="images/allbg.gif" leftmargin="8" topmargin="8"> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name="form1" action="makehtml_js_action.php" method="get" target='stafrm'> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> <table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>获取栏目JS文件:</strong></td> | |||||
<td width="70%" align="right"><a href="catalog_main.php"><u>栏目管理</u></a> | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="108" valign="top" bgcolor="#FFFFFF">选择栏目:</td> | |||||
<td width="377" valign="top" bgcolor="#FFFFFF"> | |||||
<?php | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="makehtml_js_action.php" method="get" target='stafrm'> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>获取栏目JS文件:</strong></td> | |||||
<td width="70%" align="right"><a href="catalog_main.php" class="btn btn-secondary btn-sm">栏目管理</a> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="108" valign="top" bgcolor="#FFFFFF">选择栏目:</td> | |||||
<td width="377" valign="top" bgcolor="#FFFFFF"> | |||||
<?php | |||||
if(empty($cid)) $cid="0"; | if(empty($cid)) $cid="0"; | ||||
$tl = new TypeLink($cid); | $tl = new TypeLink($cid); | ||||
$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1); | $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1); | ||||
@@ -43,60 +49,65 @@ function SelectTemplets(fname) | |||||
echo $typeOptions; | echo $typeOptions; | ||||
echo "</select>"; | echo "</select>"; | ||||
?> | ?> | ||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="40" bgcolor="#FFFFFF">JS文件:</td> | |||||
<td height="40" bgcolor="#FFFFFF"> | |||||
<font color="#660000"> | |||||
<?php echo "<script src='".$cfg_cmspath."/data/js/".$cid.".js' language='javascript'></script>"; ?> | |||||
</font> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">模板文件:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"><input name="templet" type="text" id="templet" style="width:300" | |||||
value="plus/js.htm"> | |||||
<button type="button" class="btn btn-secondary btn-sm" name="set4" onClick="SelectTemplets('form1.templet');">浏览...</button> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">更新选项:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"> | |||||
<label><input type="radio" name="uptype" value="all" class="np"> | |||||
更新所有栏目</label> | |||||
<label><input name="uptype" type="radio" value="onlyme" class="np" checked> | |||||
仅当前文件</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<button name="b112" type="button" class="btn btn-secondary" onClick="document.form1.submit();" | |||||
>生成/更新JS文件</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="40" bgcolor="#FFFFFF">JS文件:</td> | |||||
<td height="40" bgcolor="#FFFFFF"> | |||||
<font color="#660000"> | |||||
<?php echo "<script src='".$cfg_cmspath."/data/js/".$cid.".js' language='javascript'></script>"; ?> | |||||
</font> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">模板文件:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"><input name="templet" type="text" id="templet" style="width:300" value="plus/js.htm"> | |||||
<input type="button" name="set4" value="浏览..." style="width:60" onClick="SelectTemplets('form1.templet');"> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">更新选项:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"> | |||||
<input type="radio" name="uptype" value="all" class="np"> | |||||
更新所有栏目 | |||||
<input name="uptype" type="radio" value="onlyme" class="np" checked> | |||||
仅当前文件 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<input name="b112" type="button" class="coolbg np" value="生成/更新JS文件" onClick="document.form1.submit();" style="width:120px"> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> <table width="100%"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> <script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -1,30 +1,36 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更新栏目HTML</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更新栏目HTML</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body background="images/allbg.gif" leftmargin='8' topmargin='8'> | <body background="images/allbg.gif" leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name="form1" action="makehtml_list_action.php" method="get" target='stafrm'> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>更新栏目HTML:</strong></td> | |||||
<td width="70%" align="right"> | |||||
<a href="makehtml_archives.php?typeid=<?php echo (isset($typeid) ? $typeid : 0); ?>" class="np coolbg">更新文档HTML</a> | |||||
<a href="catalog_main.php" class="np coolbg">栏目管理</a> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="108" valign="top" bgcolor="#FFFFFF">选择栏目:</td> | |||||
<td width="377" valign="top" bgcolor="#FFFFFF"> | |||||
<?php | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="makehtml_list_action.php" method="get" target='stafrm'> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>更新栏目HTML:</strong></td> | |||||
<td width="70%" align="right"> | |||||
<a href="makehtml_archives.php?typeid=<?php echo (isset($typeid) ? $typeid : 0); ?>" | |||||
class="btn btn-secondary btn-sm">更新文档HTML</a> | |||||
<a href="catalog_main.php" class="btn btn-secondary btn-sm">栏目管理</a> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="108" valign="top" bgcolor="#FFFFFF">选择栏目:</td> | |||||
<td width="377" valign="top" bgcolor="#FFFFFF"> | |||||
<?php | |||||
if(empty($cid)) $cid=0; | if(empty($cid)) $cid=0; | ||||
$tl = new TypeLink($cid); | $tl = new TypeLink($cid); | ||||
$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1); | $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1); | ||||
@@ -33,51 +39,55 @@ | |||||
echo $typeOptions; | echo $typeOptions; | ||||
echo "</select>"; | echo "</select>"; | ||||
?> | ?> | ||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">每次最大创建页数:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"><input name="maxpagesize" type="text" id="maxpagesize" value="50" | |||||
size="10"> | |||||
个文件 </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">是否更新子栏目:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"> | |||||
<label><input name="upnext" type="radio" class="np" value="1" checked='1' /> | |||||
更新子级栏目</label> | |||||
<label><input type="radio" name="upnext" class="np" value="0" /> | |||||
仅更新所选栏目</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<button name="b112" type="button" class="btn btn-secondary" onClick="document.form1.submit();">开始生成HTML</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">每次最大创建页数:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"><input name="maxpagesize" type="text" id="maxpagesize" value="50" size="10"> | |||||
个文件 </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF">是否更新子栏目:</td> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"> | |||||
<input name="upnext" type="radio" class="np" value="1" checked='1' /> | |||||
更新子级栏目 | |||||
<input type="radio" name="upnext" class="np" value="0" /> | |||||
仅更新所选栏目 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<input name="b112" type="button" class="coolbg np" value="开始生成HTML" onClick="document.form1.submit();" style="width:100px"> | |||||
</td> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | </tr> | ||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> <table width="100%"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> <script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -1,61 +1,71 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更新网站地图</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更新网站地图</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body background="images/allbg.gif" leftmargin='8' topmargin='8'> | <body background="images/allbg.gif" leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name="form1" action="makehtml_map.php" method="get" target='stafrm'> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>更新网站地图:</strong></td> | |||||
<td width="70%" align="right"></td> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="makehtml_map.php" method="get" target='stafrm'> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>更新网站地图:</strong></td> | |||||
<td width="70%" align="right"></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr height="20" bgcolor="#FFFFFF"> | |||||
<td width="25%">地图类型:</td> | |||||
<td> | |||||
<label><input name="dopost" type="radio" id="mdopost" class="np" value="site" checked> | |||||
普通地图</label> | |||||
| |||||
<label><input name="dopost" type="radio" id="mdopost" class="np" value="rss"> | |||||
RSS地图</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<button name="b112" type="button" class="btn btn-secondary" onClick="document.form1.submit();" | |||||
>开始更新</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | </tr> | ||||
</table></td> | |||||
</tr> | |||||
<tr height="20" bgcolor="#FFFFFF"> | |||||
<td width="25%">地图类型:</td> | |||||
<td> | |||||
<input name="dopost" type="radio" id="mdopost" class="np" value="site" checked> | |||||
普通地图 | |||||
| |||||
<input name="dopost" type="radio" id="mdopost" class="np" value="rss"> | |||||
RSS地图 | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<input name="b112" type="button" class="coolbg np" value="开始更新" onClick="document.form1.submit();" style="width:100px"> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> <table width="100%"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> <script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -1,56 +1,67 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更新RSS文件</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更新RSS文件</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body background="images/allbg.gif" leftmargin='8' topmargin='8'> | <body background="images/allbg.gif" leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name="form1" action="makehtml_rss_action.php" method="get" target='stafrm'> | |||||
<tr> | |||||
<td height="28" colspan="2" background="images/tbg.gif"> <table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>更新RSS文件:</strong></td> | |||||
<td width="70%" align="right"></td> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="makehtml_rss_action.php" method="get" target='stafrm'> | |||||
<tr> | |||||
<td height="28" colspan="2" background="images/tbg.gif"> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>更新RSS文件:</strong></td> | |||||
<td width="70%" align="right"></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr height="20" bgcolor="#FFFFFF"> | |||||
<td width="25%">单个类目最大记录数:</td> | |||||
<td> | |||||
<input name="maxrecord" type="text" id="maxrecord" value="50" size="8"> 条 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<button name="b112" type="button" class="btn btn-secondary" onClick="document.form1.submit();" | |||||
>开始更新</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | </tr> | ||||
</table></td> | |||||
</tr> | |||||
<tr height="20" bgcolor="#FFFFFF"> | |||||
<td width="25%">单个类目最大记录数:</td> | |||||
<td> | |||||
<input name="maxrecord" type="text" id="maxrecord" value="50" size="8"> 条 | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||||
<input name="b112" type="button" class="coolbg np" value="开始更新" onClick="document.form1.submit();" style="width:100px" /> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> <table width="100%"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> <script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -1,57 +1,69 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>生成专题列表HTML</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>生成专题列表HTML</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body background="images/allbg.gif" leftmargin='8' topmargin='8'> | <body background="images/allbg.gif" leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name="form1" action="makehtml_spec.php" method="get" target='stafrm'> | |||||
<input type="hidden" name="dopost" value="ok"> | |||||
<tr> | |||||
<td height="28" background='images/tbg.gif'> <table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>生成专题列表HTML:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="makehtml_spec.php" method="get" target='stafrm'> | |||||
<input type="hidden" name="dopost" value="ok"> | |||||
<tr> | |||||
<td height="28" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>生成专题列表HTML:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"> | |||||
说明:为了安全起见,专题目录建议设置仅可读写权限,发布专题后需要手动更新,默认文件为 | |||||
<br /> | |||||
<?php echo $cfg_cmspath.$cfg_special."/index.html"?> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" bgcolor="#ffffff" align="center"> | |||||
<button name="b112" type="button" class="btn btn-secondary" | |||||
onClick="document.form1.submit();">开始生成HTML</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | </tr> | ||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF"> | |||||
说明:为了安全起见,专题目录建议设置仅可读写权限,发布专题后需要手动更新,默认文件为 | |||||
<br /> | |||||
<?php echo $cfg_cmspath.$cfg_special."/index.html"?> | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="20" bgcolor="#ffffff" align="center"> <input name="b112" type="button" class="coolbg np" value="开始生成HTML" onClick="document.form1.submit();" style="width:100"> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20"> <table width="100%"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> <script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -3,33 +3,35 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>更新TAG HTML</title> | <title>更新TAG HTML</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D1DDAA" align="center"> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D1DDAA" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="makehtml_tag_action_list.php" method="get" target='stafrm'> | <form name="form1" action="makehtml_tag_action_list.php" method="get" target='stafrm'> | ||||
<tr> | <tr> | ||||
<td height="28" colspan="2" background='images/tbg.gif'> | <td height="28" colspan="2" background='images/tbg.gif'> | ||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="30%" height="18"><strong>更新TAG HTML</strong> </td> | |||||
<td width="30%" height="18"><strong>更新Tag HTML</strong> </td> | |||||
<td width="70%" align="right"> | <td width="70%" align="right"> | ||||
<a href="tags_main.php" class="coolbg np">TAG标签管理</a> | |||||
<a href="tags_main.php" class="btn btn-secondary btn-sm">Tag标签管理</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="300" valign="top" bgcolor="#FFFFFF">选择TAG:</td> | |||||
<td width="300" valign="top" bgcolor="#FFFFFF">选择Tag:</td> | |||||
<td width="377" valign="top" bgcolor="#FFFFFF"> | <td width="377" valign="top" bgcolor="#FFFFFF"> | ||||
<?php | <?php | ||||
$dd = $dsql->GetOne("SELECT ROUND(AVG(total)) as tt FROM `#@__tagindex`"); // 取一个平均 | $dd = $dsql->GetOne("SELECT ROUND(AVG(total)) as tt FROM `#@__tagindex`"); // 取一个平均 | ||||
$sql="select * from #@__tagindex where total > {$dd['tt']} order by tag asc"; | $sql="select * from #@__tagindex where total > {$dd['tt']} order by tag asc"; | ||||
$dsql->Execute('al',$sql); | $dsql->Execute('al',$sql); | ||||
echo "<select name='tagid' style='width:300px'>\r\n"; | echo "<select name='tagid' style='width:300px'>\r\n"; | ||||
if($tid == 0) echo "<option value='0' selected='1'>更新所有TAG...</option>\r\n"; | |||||
if($tid == 0) echo "<option value='0' selected='1'>更新所有Tag...</option>\r\n"; | |||||
while($row=$dsql->GetObject('al')){ | while($row=$dsql->GetObject('al')){ | ||||
if($tid > 0 && $tid == $row->id) echo "<option value='".$row->id."' selected='1'>".$row->tag."</option>"; | if($tid > 0 && $tid == $row->id) echo "<option value='".$row->id."' selected='1'>".$row->tag."</option>"; | ||||
@@ -57,15 +59,15 @@ | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="20" colspan="2" bgcolor="#FAFAF1" align="center"> | <td height="20" colspan="2" bgcolor="#FAFAF1" align="center"> | ||||
<input name="b112" type="button" class="coolbg np" value="生成TAG HTML" | |||||
onClick="document.form1.action='makehtml_taglist_action.php';document.form1.submit();" style="width:120px"> | |||||
<button name="b112" type="button" class="btn btn-secondary btn-sm" | |||||
onClick="document.form1.action='makehtml_taglist_action.php';document.form1.submit();">生成Tag HTML</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | </form> | ||||
<tr bgcolor="#F9FCEF"> | <tr bgcolor="#F9FCEF"> | ||||
<td height="20" colspan="2"> | <td height="20" colspan="2"> | ||||
<table width="100%"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="74%">进行状态: </td> | <td width="74%">进行状态: </td> | ||||
<td width="26%" align="right"> | <td width="26%" align="right"> | ||||
@@ -19,7 +19,7 @@ | |||||
} | } | ||||
.pubinputs { | .pubinputs { | ||||
height: 22px; | |||||
height: auto; | |||||
margin-top: 5px; | margin-top: 5px; | ||||
} | } | ||||
</style> | </style> | ||||
@@ -56,7 +56,7 @@ | |||||
<tr> | <tr> | ||||
<td width="2%" align="center" valign="middle"><img src="images/item_tt2.gif" width="7" height="15" /></td> | <td width="2%" align="center" valign="middle"><img src="images/item_tt2.gif" width="7" height="15" /></td> | ||||
<td width="44%"><strong>上传新文件:</strong></td> | <td width="44%"><strong>上传新文件:</strong></td> | ||||
<td width="54%" align="right">[<a href='media_main.php'><u>附件/媒体数据管理</u></a>]</td> | |||||
<td width="54%" align="right"><a href='media_main.php' class="btn btn-secondary btn-sm">附件/媒体数据管理</a></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -77,14 +77,14 @@ | |||||
<tr> | <tr> | ||||
<td width="15%" height="30" align="center" bgcolor="#FFFFFF" class='bline'>媒体类型:</td> | <td width="15%" height="30" align="center" bgcolor="#FFFFFF" class='bline'>媒体类型:</td> | ||||
<td width="85%" height="25" bgcolor="#FFFFFF" class='bline' style="text-align:left;"> | <td width="85%" height="25" bgcolor="#FFFFFF" class='bline' style="text-align:left;"> | ||||
<input name="mediatype" type="radio" class="np" value="1" checked='1' /> | |||||
图片 | |||||
<input type="radio" name="mediatype" class="np" value="2" /> | |||||
FLASH | |||||
<input type="radio" name="mediatype" class="np" value="3" /> | |||||
视频/音频 | |||||
<input type="radio" name="mediatype" class="np" value="4" /> | |||||
附件/其它 | |||||
<label><input name="mediatype" type="radio" class="np" value="1" checked='1' /> | |||||
图片 </label> | |||||
<label><input type="radio" name="mediatype" class="np" value="2" /> | |||||
FLASH </label> | |||||
<label><input type="radio" name="mediatype" class="np" value="3" /> | |||||
视频/音频 </label> | |||||
<label><input type="radio" name="mediatype" class="np" value="4" /> | |||||
附件/其它 </label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -113,9 +113,9 @@ | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>上传文件:</td> | <td height="30" align="center" bgcolor="#FFFFFF" class='bline'>上传文件:</td> | ||||
<td bgcolor="#FFFFFF" class='bline' style="text-align:left;">数量: | <td bgcolor="#FFFFFF" class='bline' style="text-align:left;">数量: | ||||
<input name="picnum" type="text" id="picnum" value="5" size="6" /> | <input name="picnum" type="text" id="picnum" value="5" size="6" /> | ||||
<input type="button" name="Submit" value="增加" onClick="MakeUpload()" /> | |||||
<button type="button" name="Submit" class="btn btn-secondary btn-sm" onClick="MakeUpload()">增加</button> | |||||
| | ||||
<input type="button" name="Submit" value="恢复" onClick="ResetUpload()" /> | |||||
<button type="button" name="Submit" class="btn btn-secondary btn-sm" onClick="ResetUpload()">恢复</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -1,95 +1,117 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更改文件</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<style> | |||||
.coolbg2 { | |||||
border: 1px solid #000000; | |||||
background-color: #F2F5E9; | |||||
height:18px | |||||
} | |||||
</style> | |||||
<script language='javascript'> | |||||
function CheckSubmit() | |||||
{ | |||||
if(document.form1.title.value==""){ | |||||
alert("请设定媒体标题!"); | |||||
document.form1.title.focus(); | |||||
return false; | |||||
} | |||||
} | |||||
</script> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更改文件</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script language="javascript" src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="js/main.js"></script> | |||||
<style> | |||||
.coolbg2 { | |||||
border: 1px solid #000000; | |||||
background-color: #F2F5E9; | |||||
height: 18px | |||||
} | |||||
</style> | |||||
<script language='javascript'> | |||||
function CheckSubmit() { | |||||
if (document.form1.title.value == "") { | |||||
ShowMsg("请设定媒体标题!"); | |||||
document.form1.title.focus(); | |||||
return false; | |||||
} | |||||
} | |||||
</script> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="99%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<tr> | |||||
<td height="19" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="2%" align="center" valign="middle"><img src="images/item_tt2.gif" width="7" height="15"></td> | |||||
<td width="44%"><strong>更改媒体:</strong></td> | |||||
<td width="54%" align="right">[<a href='media_main.php'><u>附件/媒体数据管理</u></a>]</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="19" bgcolor="#ffffff"> | |||||
<img src="images/help.gif" border="0"> | |||||
提示:图片类型仅支持jpg、png、gif、wbmp格式,flash为.swf格式,视音频和附件为限定扩展名的类型(可在系统参数中修改)。 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="69" align="center" valign="top" bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellpadding="0" cellspacing="0"> | |||||
<form enctype="multipart/form-data" name='form1' action="media_edit.php" method="POST" onSubmit="return CheckSubmit();"> | |||||
<input type="hidden" name="dopost" value="save"> | |||||
<input type="hidden" name="token" value="<?php echo make_hash();?>" /> | |||||
<input type="hidden" name="aid" value="<?php echo $aid?>"> | |||||
<tr> | |||||
<td width="15%" height="30" align="left" bgcolor="#FFFFFF"class='bline'>媒体类型:</td> | |||||
<td width="85%" height="25" align="left" bgcolor="#FFFFFF"class='bline'> | |||||
<input type="radio" name="mediatype" class="np" value="1"<?php if($myrow['mediatype']==1) echo " checked"; ?>> | |||||
图片 | |||||
<input type="radio" name="mediatype" class="np" value="2"<?php if($myrow['mediatype']==2) echo " checked"; ?>> | |||||
FLASH | |||||
<input type="radio" name="mediatype" class="np" value="3"<?php if($myrow['mediatype']==3) echo " checked"; ?>> | |||||
视频/音频 | |||||
<input type="radio" name="mediatype" class="np" value="4"<?php if($myrow['mediatype']==4) echo " checked"; ?>> | |||||
附件/其它 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF"class='bline'>说明标题:</td> | |||||
<td height="25" align="left" bgcolor="#FFFFFF"class='bline'> | |||||
<input name="title" type="text" id="title" size="30" value="<?php echo $myrow['title']?>"> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF"class='bline'>参数说明:</td> | |||||
<td height="30" colspan='2' align="left" bgcolor="#FFFFFF"class='bline'>图片不需要指定“宽”、“高”,其它附加参数仅方便多媒体文件管理,没其它含义</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>附加参数:</td> | |||||
<td height="25" align="left" bgcolor="#FFFFFF" class='bline'> | |||||
宽: | |||||
<input name="mediawidth" type="text" id="mediawidth" size="5" value="<?php echo $myrow['width']?>"> | |||||
(像素) 高: | |||||
<input name="mediaheight" type="text" id="mediaheight" size="5" value="<?php echo $myrow['height']?>"> | |||||
(像素) 播放时间: | |||||
<input name="playtime" type="text" id="playtime" size="5" value="<?php echo $myrow['playtime']?>"> | |||||
(分钟) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF"class='bline'>原文件:</td> | |||||
<td align="left" bgcolor="#FFFFFF"class='bline'> | |||||
<input name="filename" type="text" id="filename" style='width:350px' value="<?php echo $myrow['url']?>" > | |||||
<a href='<?php echo $myrow['url']?>' target='_blank'>[查看]</a> | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
<table width="99%" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" | |||||
class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td height="19" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="2%" align="center" valign="middle"><img src="images/item_tt2.gif" width="7" | |||||
height="15"></td> | |||||
<td width="44%"><strong>更改媒体:</strong></td> | |||||
<td width="54%" align="right"><a href='media_main.php' class="btn btn-secondary btn-sm">附件/媒体数据管理</a></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="19" bgcolor="#ffffff"> | |||||
<div class="alert alert-info" role="alert"> | |||||
<i class="fa fa-info-circle" aria-hidden="true"></i> 提示:图片类型仅支持jpg、png、gif、wbmp格式,flash为.swf格式,视音频和附件为限定扩展名的类型(可在系统参数中修改)。 | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="69" align="center" valign="top" bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellpadding="0" cellspacing="0"> | |||||
<form enctype="multipart/form-data" name='form1' action="media_edit.php" method="POST" | |||||
onSubmit="return CheckSubmit();"> | |||||
<input type="hidden" name="dopost" value="save"> | |||||
<input type="hidden" name="token" value="<?php echo make_hash();?>" /> | |||||
<input type="hidden" name="aid" value="<?php echo $aid?>"> | |||||
<tr> | |||||
<td width="15%" height="30" align="left" bgcolor="#FFFFFF" class='bline'>媒体类型:</td> | |||||
<td width="85%" height="25" align="left" bgcolor="#FFFFFF" class='bline'> | |||||
<label><input type="radio" name="mediatype" class="np" value="1" | |||||
<?php if($myrow['mediatype']==1) echo " checked"; ?>> | |||||
图片</label> | |||||
<label><input type="radio" name="mediatype" class="np" value="2" | |||||
<?php if($myrow['mediatype']==2) echo " checked"; ?>> | |||||
FLASH</label> | |||||
<label><input type="radio" name="mediatype" class="np" value="3" | |||||
<?php if($myrow['mediatype']==3) echo " checked"; ?>> | |||||
视频/音频</label> | |||||
<label><input type="radio" name="mediatype" class="np" value="4" | |||||
<?php if($myrow['mediatype']==4) echo " checked"; ?>> | |||||
附件/其它</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>说明标题:</td> | |||||
<td height="25" align="left" bgcolor="#FFFFFF" class='bline'> | |||||
<input name="title" type="text" id="title" size="30" | |||||
value="<?php echo $myrow['title']?>"> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>参数说明:</td> | |||||
<td height="30" colspan='2' align="left" bgcolor="#FFFFFF" class='bline'> | |||||
图片不需要指定“宽”、“高”,其它附加参数仅方便多媒体文件管理,没其它含义</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>附加参数:</td> | |||||
<td height="25" align="left" bgcolor="#FFFFFF" class='bline'> | |||||
宽: | |||||
<input name="mediawidth" type="text" id="mediawidth" size="5" | |||||
value="<?php echo $myrow['width']?>"> | |||||
(像素) 高: | |||||
<input name="mediaheight" type="text" id="mediaheight" size="5" | |||||
value="<?php echo $myrow['height']?>"> | |||||
(像素) 播放时间: | |||||
<input name="playtime" type="text" id="playtime" size="5" | |||||
value="<?php echo $myrow['playtime']?>"> | |||||
(分钟) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>原文件:</td> | |||||
<td align="left" bgcolor="#FFFFFF" class='bline'> | |||||
<input name="filename" type="text" id="filename" style='width:350px' | |||||
value="<?php echo $myrow['url']?>"> | |||||
<a href='<?php echo $myrow['url']?>' target='_blank'>[查看]</a> | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
if($myrow['mediatype']==1) | if($myrow['mediatype']==1) | ||||
{ | { | ||||
$fullfilename = $cfg_basedir.$myrow['url']; | $fullfilename = $cfg_basedir.$myrow['url']; | ||||
@@ -100,36 +122,39 @@ if($myrow['mediatype']==1) | |||||
if($sizes[0]>200) $w=200; | if($sizes[0]>200) $w=200; | ||||
else $w = $sizes[0]; | else $w = $sizes[0]; | ||||
?> | ?> | ||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF"class='bline'>预览:</td> | |||||
<td align="left" bgcolor="#FFFFFF"class='bline'> | |||||
<a href='<?php echo $myrow['url']?>' target='_blank'><img src='<?php echo $myrow['url']."?q=".time()?>' width='<?php echo $w?>' border='0' id='picview'></a> | |||||
</td> | |||||
</tr> | |||||
<?php } } } ?> | |||||
<tr> | |||||
<td height="25" align="center" bgcolor="#FFFFFF"class='bline'> | |||||
更改文件: | |||||
</td> | |||||
<td align="left" bgcolor="#FFFFFF"class='bline'> | |||||
<input name="upfile" type="file" id="upfile" style='width:300px' size='30' > | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="62" colspan="2" bgcolor="#FFFFFF"class='bline'> | |||||
<table width="60%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td align="center" height='48'> | |||||
<input class="np" name="imageField" type="image" src="images/button_save.gif" width="60" height="22" border="0"> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>预览:</td> | |||||
<td align="left" bgcolor="#FFFFFF" class='bline'> | |||||
<a href='<?php echo $myrow['url']?>' target='_blank'><img | |||||
src='<?php echo $myrow['url']."?q=".time()?>' width='<?php echo $w?>' border='0' | |||||
id='picview'></a> | |||||
</td> | |||||
</tr> | |||||
<?php } } } ?> | |||||
<tr> | |||||
<td height="25" align="center" bgcolor="#FFFFFF" class='bline'> | |||||
更改文件: | |||||
</td> | |||||
<td align="left" bgcolor="#FFFFFF" class='bline'> | |||||
<input name="upfile" type="file" id="upfile" style='width:300px' size='30'> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="62" colspan="2" bgcolor="#FFFFFF" class='bline'> | |||||
<table width="60%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | |||||
<td align="center" height='48'> | |||||
<button type="submit" class="btn btn-secondary">保存</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -72,7 +72,7 @@ | |||||
<tr> | <tr> | ||||
<td width='30%'><b>附件数据管理</b></td> | <td width='30%'><b>附件数据管理</b></td> | ||||
<td align='right'> | <td align='right'> | ||||
[<a href="media_add.php"><u>上传新文件</u></a>] | |||||
<a href="media_add.php" class="btn btn-secondary btn-sm">上传新文件</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -104,8 +104,7 @@ | |||||
</select> | </select> | ||||
</td> | </td> | ||||
<td> | <td> | ||||
<input class="np" name="imageField" type="image" src="images/button_search.gif" width="60" height="22" | |||||
border="0" /> | |||||
<button type="submit" class="btn btn-secondary">搜索</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | </form> | ||||
@@ -138,17 +137,17 @@ | |||||
<td>{dede:field.uptime function="MyDate('Y-m-d H:i',@me)"/}</td> | <td>{dede:field.uptime function="MyDate('Y-m-d H:i',@me)"/}</td> | ||||
<td>{dede:field.mediatype function="MediaType(@me,$fields['url'])"/}</td> | <td>{dede:field.mediatype function="MediaType(@me,$fields['url'])"/}</td> | ||||
<td> | <td> | ||||
<a href='media_edit.php?aid={dede:field.aid/}&dopost=edit'>更改</a> | |||||
<a href='media_edit.php?aid={dede:field.aid/}&dopost=edit' class="btn btn-secondary btn-sm"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 更改</a> | |||||
| | | | ||||
<a href='media_edit.php?aid={dede:field.aid/}&dopost=del'>删除</a> | |||||
<a href='media_edit.php?aid={dede:field.aid/}&dopost=del' class="btn btn-secondary btn-sm"><i class="fa fa-trash" aria-hidden="true"></i> 删除</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
{/dede:datalist} | {/dede:datalist} | ||||
<tr bgcolor="#ffffff" height="28"> | <tr bgcolor="#ffffff" height="28"> | ||||
<td colspan="7"> | <td colspan="7"> | ||||
<input type="button" name="b4" value="全选" class="coolbg np" style="width:40px" onClick="AllSel();" /> | |||||
<input type="button" name="b5" value="取消" class="coolbg np" style="width:40px" onClick="NoneSel();" /> | |||||
<input type="button" name="b6" value="删除所选" class="coolbg np" style="width:80px" onClick="DelSel();" /> | |||||
<button type="button" name="b4" class="btn btn-secondary btn-sm" onClick="AllSel();">全选</button> | |||||
<button type="button" name="b5" class="btn btn-secondary btn-sm" onClick="NoneSel();">取消</button> | |||||
<button type="button" name="b6" class="btn btn-secondary btn-sm" onClick="DelSel();">删除所选</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr bgcolor="#F9FCEF" height="36"> | <tr bgcolor="#F9FCEF" height="36"> | ||||
@@ -6,8 +6,8 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>网站会员管理</title> | <title>网站会员管理</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
<script language="javascript" src="js/member.js"></script> | <script language="javascript" src="js/member.js"></script> | ||||
<style type="text/css"> | <style type="text/css"> | ||||
@@ -72,7 +72,8 @@ | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<form name="form2"> | <form name="form2"> | ||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf" class="table table-bordered maintable"> | |||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf" | |||||
class="table table-bordered maintable"> | |||||
<tr> | <tr> | ||||
<td height="28" colspan="9" background="images/tbg.gif"> | <td height="28" colspan="9" background="images/tbg.gif"> | ||||
<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | <table width="99%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | ||||
@@ -95,7 +96,7 @@ | |||||
<td width="16%">email/昵称</td> | <td width="16%">email/昵称</td> | ||||
<td width="5%">性别</td> | <td width="5%">性别</td> | ||||
<td width="8%">会员等级</td> | <td width="8%">会员等级</td> | ||||
<td width="20%">会员属性</td> | |||||
<td width="15%">会员属性</td> | |||||
<td width="14%">最后登录</td> | <td width="14%">最后登录</td> | ||||
<td>操作</td> | <td>操作</td> | ||||
</tr> | </tr> | ||||
@@ -136,10 +137,10 @@ | |||||
【{dede:field.loginip /}】 | 【{dede:field.loginip /}】 | ||||
</td> | </td> | ||||
<td align="center"> | <td align="center"> | ||||
<a href="member_view.php?id={dede:field.mid/}">修改</a> | | |||||
<a href="member_do.php?id={dede:field.mid/}&dopost=delmember">删除</a> | | |||||
<a href="content_list.php?mid={dede:field.mid/}" target="_blank">文档</a> | | |||||
<a href="member_toadmin.php?id={dede:field.mid/}" target="_self">提升</a> | |||||
<a href="member_view.php?id={dede:field.mid/}" class="btn btn-secondary btn-sm">修改</a> | |||||
<a href="member_do.php?id={dede:field.mid/}&dopost=delmember" class="btn btn-secondary btn-sm">删除</a> | |||||
<a href="content_list.php?mid={dede:field.mid/}" target="_blank" class="btn btn-secondary btn-sm">文档</a> | |||||
<a href="member_toadmin.php?id={dede:field.mid/}" target="_self" class="btn btn-secondary btn-sm">提升</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
{/dede:datalist} | {/dede:datalist} | ||||
@@ -1,72 +1,79 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>提升为管理员</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language='javascript'src='../data/enums/area.js'></script> | |||||
<script> | |||||
function checkSubmit() | |||||
{ | |||||
if(document.form2.email.value=="") | |||||
{ | |||||
document.form2.email.focus(); | |||||
alert("Email不能为空!"); | |||||
return false; | |||||
} | |||||
if(document.form2.uname.value=="") | |||||
{ | |||||
document.form2.uname.focus(); | |||||
alert("用户昵称不能为空!"); | |||||
return false; | |||||
} | |||||
} | |||||
</script> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>提升为管理员</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language='javascript' src='../data/enums/area.js'></script> | |||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script language="javascript" src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="js/main.js"></script> | |||||
<script> | |||||
function checkSubmit() { | |||||
if (document.form2.email.value == "") { | |||||
document.form2.email.focus(); | |||||
ShowMsg("Email不能为空!"); | |||||
return false; | |||||
} | |||||
if (document.form2.uname.value == "") { | |||||
document.form2.uname.focus(); | |||||
ShowMsg("用户昵称不能为空!"); | |||||
return false; | |||||
} | |||||
} | |||||
</script> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<tr> | |||||
<td height="19" background="images/tbg.gif" style="padding-left:10px;"><a href='<?php echo $ENV_GOBACK_URL; ?>'><b>会员管理</b></a> >> 提升为管理员</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="200" bgcolor="#FFFFFF" align='center'><?php | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td height="19" background="images/tbg.gif" style="padding-left:10px;"><a | |||||
href='<?php echo $ENV_GOBACK_URL; ?>'><b>会员管理</b></a> >> 提升为管理员</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="200" bgcolor="#FFFFFF" align='center'><?php | |||||
if($row['matt']==10) | if($row['matt']==10) | ||||
{ | { | ||||
echo "<font color='red'>已经是管理员了,不要再提升了!</font>"; | echo "<font color='red'>已经是管理员了,不要再提升了!</font>"; | ||||
}else{ | }else{ | ||||
?> | ?> | ||||
<table width="98%" border="0" cellspacing="0" cellpadding="6"> | |||||
<tr> | |||||
<td colspan="2" height="10" ></td> | |||||
</tr> | |||||
<form name="form2" action="member_toadmin.php" method="post" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="dopost" value="toadmin" /> | |||||
<input type="hidden" name="userid" value="<?php echo $row['userid']?>" /> | |||||
<input type="hidden" name="id" value="<?php echo $id?>" /> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="6" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="17%" align="right" class='bline'>用户名:</td> | |||||
<td width="83%" class='bline' align="left"><?php | |||||
<td colspan="2" height="10"></td> | |||||
</tr> | |||||
<form name="form2" action="member_toadmin.php" method="post" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="dopost" value="toadmin" /> | |||||
<input type="hidden" name="userid" value="<?php echo $row['userid']?>" /> | |||||
<input type="hidden" name="id" value="<?php echo $id?>" /> | |||||
<tr> | |||||
<td width="17%" align="right" class='bline'>用户名:</td> | |||||
<td width="83%" class='bline' align="left"><?php | |||||
echo "<b>".$row['userid']."</b>"; | echo "<b>".$row['userid']."</b>"; | ||||
if($row['face']!='') { | if($row['face']!='') { | ||||
echo "<br /><img src='{$row['face']}' width='80'/>"; | echo "<br /><img src='{$row['face']}' width='80'/>"; | ||||
} | } | ||||
?></td> | ?></td> | ||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">用户笔名:</td> | |||||
<td align="left"> | |||||
<input name="uname" type="text" id="uname" size="16" value="<?php echo $row['uname']?>" style="width:200px" /> (发布文章后显示责任编辑的名字) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">用户密码:</td> | |||||
<td align="left"><input name="pwd" type="text" id="pwd" size="16" style="width:200px" /> | |||||
(留空则不修改,只能用'0-9a-zA-Z.@_-!'以内范围的字符) </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">用户类型:</td> | |||||
<td align="left"><select name='usertype' style='width:200px'> | |||||
<?php | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">用户笔名:</td> | |||||
<td align="left"> | |||||
<input name="uname" type="text" id="uname" size="16" value="<?php echo $row['uname']?>" | |||||
style="width:200px" /> (发布文章后显示责任编辑的名字) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">用户密码:</td> | |||||
<td align="left"><input name="pwd" type="text" id="pwd" size="16" style="width:200px" /> | |||||
(留空则不修改,只能用'0-9a-zA-Z.@_-!'以内范围的字符) </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">用户类型:</td> | |||||
<td align="left"><select name='usertype' style='width:200px'> | |||||
<?php | |||||
$dsql->SetQuery("Select * from #@__admintype order by rank asc"); | $dsql->SetQuery("Select * from #@__admintype order by rank asc"); | ||||
$dsql->Execute("ut"); | $dsql->Execute("ut"); | ||||
while($myrow = $dsql->GetObject("ut")) | while($myrow = $dsql->GetObject("ut")) | ||||
@@ -75,45 +82,48 @@ function checkSubmit() | |||||
else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>\r\n"; | else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">负责频道:</td> | |||||
<td align="left"><select name="typeids[]" id="typeid" size='10' style="width:200px" multiple="true"> | |||||
<option value="0" class='alltype'>--所有频道--</option> | |||||
<?php echo $typeOptions?> | |||||
</select> | |||||
(按 Ctrl 可以进行多选) </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">真实姓名:</td> | |||||
<td align="left"><input name="tname" type="text" id="tname" size="16" style="width:200px" value="" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">电子邮箱:</td> | |||||
<td align="left"><input name="email" type="text" id="email" size="16" style="width:200px" value="<?php echo $row['email']?>" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">安全验证串:</td> | |||||
<td align="left"><input name="safecode" type="text" id="safecode" size="16" style="width:200px" /> | |||||
<input name="randcode" type="hidden" value="<?php echo $randcode; ?>" /> | |||||
| |||||
(复制本代码: <font color='red'><?php echo $safecode; ?></font> ) </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="67" align="right" > </td> | |||||
<td height="67" align="left"><input type="submit" name="Submit" value="确定提升" class='coolbg' /> | |||||
| |||||
<input type="reset" name="Submit22" value="重置表单" class='coolbg' /></td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
<?php | |||||
</select></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">负责频道:</td> | |||||
<td align="left"><select name="typeids[]" id="typeid" size='10' style="width:200px;height: 200px;" multiple="true"> | |||||
<option value="0" class='alltype'>--所有频道--</option> | |||||
<?php echo $typeOptions?> | |||||
</select> | |||||
(按 Ctrl 可以进行多选) </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">真实姓名:</td> | |||||
<td align="left"><input name="tname" type="text" id="tname" size="16" style="width:200px" value="" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">电子邮箱:</td> | |||||
<td align="left"><input name="email" type="text" id="email" size="16" style="width:200px" | |||||
value="<?php echo $row['email']?>" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="right">安全验证串:</td> | |||||
<td align="left"><input name="safecode" type="text" id="safecode" size="16" style="width:200px" /> | |||||
<input name="randcode" type="hidden" value="<?php echo $randcode; ?>" /> | |||||
| |||||
(复制本代码: <font color='red'><?php echo $safecode; ?></font> ) </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="67" align="right"> </td> | |||||
<td height="67" align="left"><button type="submit" name="Submit" class='btn btn-secondary'>确定提升</button> | |||||
| |||||
<button type="reset" name="Submit22" class='btn btn-secondary'>重置表单</button></td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
</tr> | |||||
</table> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -3,28 +3,33 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>查看会员</title> | <title>查看会员</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script language="javascript" src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language='javascript'src='../data/enums/area.js'></script> | <script language='javascript'src='../data/enums/area.js'></script> | ||||
<script language="javascript" src="js/main.js"></script> | |||||
<script> | <script> | ||||
function checkSubmit() | function checkSubmit() | ||||
{ | { | ||||
if(document.form2.email.value=="") | if(document.form2.email.value=="") | ||||
{ | { | ||||
document.form2.email.focus(); | document.form2.email.focus(); | ||||
alert("Email不能为空!"); | |||||
ShowMsg("Email不能为空!"); | |||||
return false; | return false; | ||||
} | } | ||||
if(document.form2.uname.value=="") | if(document.form2.uname.value=="") | ||||
{ | { | ||||
document.form2.uname.focus(); | document.form2.uname.focus(); | ||||
alert("用户昵称不能为空!"); | |||||
ShowMsg("用户昵称不能为空!"); | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
</script> | </script> | ||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||||
<tr> | <tr> | ||||
<td height="19" background="images/tbg.gif" style="padding-left:10px;"><a href='<?php echo $ENV_GOBACK_URL; ?>'><b>会员管理</b></a> >> 查看会员</td> | <td height="19" background="images/tbg.gif" style="padding-left:10px;"><a href='<?php echo $ENV_GOBACK_URL; ?>'><b>会员管理</b></a> >> 查看会员</td> | ||||
</tr> | </tr> | ||||
@@ -33,7 +38,7 @@ function checkSubmit() | |||||
<?php | <?php | ||||
if($row['matt']==10) echo "<font color='red'>当前用户是网站管理员关连的帐号,请小心操作!</font>"; | if($row['matt']==10) echo "<font color='red'>当前用户是网站管理员关连的帐号,请小心操作!</font>"; | ||||
?> | ?> | ||||
<table width="98%" border="0" cellspacing="0" cellpadding="6" > | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="6" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td colspan="2" height="10" ></td> | <td colspan="2" height="10" ></td> | ||||
</tr> | </tr> | ||||
@@ -95,12 +100,12 @@ function checkSubmit() | |||||
<tr> | <tr> | ||||
<td align="right" class='bline'>性 别:</td> | <td align="right" class='bline'>性 别:</td> | ||||
<td class='bline' style="text-align:left;"> | <td class='bline' style="text-align:left;"> | ||||
<input type="radio" name="sex" class="np" value="男"<?php if($row['sex']=="男" ) echo" checked='1'" ;?> /> | |||||
男 | |||||
<input type="radio" name="sex" class="np" value="女"<?php if($row['sex']=="女" ) echo" checked='1'" ;?> /> | |||||
女 | |||||
<input type="radio" name="sex" class="np" value=""<?php if($row['sex']=="" ) echo" checked='1'" ;?> /> | |||||
保密 | |||||
<label><input type="radio" name="sex" class="np" value="男"<?php if($row['sex']=="男" ) echo" checked='1'" ;?> /> | |||||
男</label> | |||||
<label><input type="radio" name="sex" class="np" value="女"<?php if($row['sex']=="女" ) echo" checked='1'" ;?> /> | |||||
女</label> | |||||
<label><input type="radio" name="sex" class="np" value=""<?php if($row['sex']=="" ) echo" checked='1'" ;?> /> | |||||
保密</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -119,7 +124,7 @@ function checkSubmit() | |||||
while($nrow = $dsql->GetObject('n')){ | while($nrow = $dsql->GetObject('n')){ | ||||
$MemberTypes[$nrow->rank] = $nrow->membername; | $MemberTypes[$nrow->rank] = $nrow->membername; | ||||
} | } | ||||
$options = "<select name='rank' style='width:80px'>\r\n"; | |||||
$options = "<select name='rank' style='width:120px'>\r\n"; | |||||
foreach($MemberTypes as $k=>$v) | foreach($MemberTypes as $k=>$v) | ||||
{ | { | ||||
if($k!=$row['rank']) $options .= "<option value='$k'>$v</option>\r\n"; | if($k!=$row['rank']) $options .= "<option value='$k'>$v</option>\r\n"; | ||||
@@ -192,9 +197,9 @@ function checkSubmit() | |||||
<tr> | <tr> | ||||
<td height="67" align="right" > </td> | <td height="67" align="right" > </td> | ||||
<td height="67" align="left"> | <td height="67" align="left"> | ||||
<input type="submit" name="Submit" value="确定修改" class='coolbg' /> | |||||
<button type="submit" name="Submit" class='btn btn-secondary'>确定修改</button> | |||||
| | ||||
<input type="reset" name="Submit22" value="重置表单" class='coolbg' /> | |||||
<button type="reset" name="Submit22" class='btn btn-secondary'>重置表单</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | </form> | ||||
@@ -1,132 +1,136 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>新增频道</title> | |||||
<style type="text/css"> | |||||
<!-- | |||||
body { background-image: url(images/allbg.gif); } | |||||
.STYLE2 { color: #666666; } | |||||
--> | |||||
</style> | |||||
<script language="javascript"> | |||||
<!-- | |||||
function $Obj(objname) | |||||
{ | |||||
return document.getElementById(objname); | |||||
} | |||||
function ShowHide2(objname) | |||||
{ | |||||
var obj = $Obj(objname); | |||||
if(obj.style.display != 'block'){ obj.style.display = 'block' } | |||||
else{ obj.style.display = 'none'; } | |||||
} | |||||
function PublicDefault() | |||||
{ | |||||
if($Obj('is1').checked || $Obj('is2').checked) | |||||
{ | |||||
$Obj("addcon").value = "archives_add.php"; | |||||
$Obj("editcon").value = "archives_edit.php"; | |||||
$Obj("mancon").value = "content_list.php"; | |||||
$Obj("useraddcon").value = "archives_add.php"; | |||||
$Obj("usereditcon").value = "archives_edit.php"; | |||||
$Obj("usermancon").value = "content_list.php"; | |||||
} | |||||
else | |||||
{ | |||||
$Obj("addcon").value = "archives_sg_add.php"; | |||||
$Obj("editcon").value = "archives_sg_edit.php"; | |||||
$Obj("mancon").value = "content_sg_list.php"; | |||||
$Obj("useraddcon").value = "archives_sg_add.php"; | |||||
$Obj("usereditcon").value = "archives_sg_edit.php"; | |||||
$Obj("usermancon").value = "content_sg_list.php"; | |||||
} | |||||
} | |||||
--> | |||||
</script> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>新增频道</title> | |||||
<style type="text/css"> | |||||
body { | |||||
background-image: url(images/allbg.gif); | |||||
} | |||||
.STYLE2 { | |||||
color: #666666; | |||||
} | |||||
</style> | |||||
<script language="javascript"> | |||||
function $Obj(objname) { | |||||
return document.getElementById(objname); | |||||
} | |||||
function ShowHide2(objname) { | |||||
var obj = $Obj(objname); | |||||
if (obj.style.display != 'block') { obj.style.display = 'block' } | |||||
else { obj.style.display = 'none'; } | |||||
} | |||||
function PublicDefault() { | |||||
if ($Obj('is1').checked || $Obj('is2').checked) { | |||||
$Obj("addcon").value = "archives_add.php"; | |||||
$Obj("editcon").value = "archives_edit.php"; | |||||
$Obj("mancon").value = "content_list.php"; | |||||
$Obj("useraddcon").value = "archives_add.php"; | |||||
$Obj("usereditcon").value = "archives_edit.php"; | |||||
$Obj("usermancon").value = "content_list.php"; | |||||
} | |||||
else { | |||||
$Obj("addcon").value = "archives_sg_add.php"; | |||||
$Obj("editcon").value = "archives_sg_edit.php"; | |||||
$Obj("mancon").value = "content_sg_list.php"; | |||||
$Obj("useraddcon").value = "archives_sg_add.php"; | |||||
$Obj("usereditcon").value = "archives_sg_edit.php"; | |||||
$Obj("usermancon").value = "content_sg_list.php"; | |||||
} | |||||
} | |||||
</script> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body topmargin="8"> | <body topmargin="8"> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<form name="form1" action="mychannel_add.php" method="post"> | |||||
<input type='hidden' name='action' value='add'> | |||||
<tr> | |||||
<td height="28" colspan="2" background="images/tbg.gif" style="padding-left:10px;"> | |||||
<a href="mychannel_main.php"><b>内容模型管理</b></a> | |||||
<b> > 新增内容模型:</b> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="35%" bgcolor="#FFFFFF"> | |||||
<b>频道ID</b><br /> | |||||
<span class="STYLE2" id='help1'>数字,创建后不可更改,并具有唯一性。</span> | |||||
</td> | |||||
<td width="65%" bgcolor="#FFFFFF"> | |||||
<input name="id" type="text" id="id" size="10" value="<?php echo $newid; ?>" class="pubinputs" /> * | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>名字标识</b><br /> | |||||
<span class="STYLE2" id="help2">与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,频道默认文档模板是 “default/article_名字标识.htm”,列表模板、封面模板类推。 </span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="nid" type="text" id="nid" value="ch<?php echo $newid; ?>" class="pubinputs" /> * | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>频道名称</b><br /> | |||||
<span class="STYLE2" id="help3">频道的中文名称,在后台管理,前台发布等均使用此名字。</span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="typename" type="text" id="typename" value="频道<?php echo $newid; ?>" class="pubinputs" /> * | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>附加表</b><br /> | |||||
<span class="STYLE2" id="help4">频道除主表以外其它自定义类型数据存放数据的表,如果您不使用主表关连的各种特性(推荐、会员权限等),也可以使用完全以附加表作为存储数据。</span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="addtable" type="text" id="addtable" value="<?php echo $cfg_dbprefix,'addon',$newid; ?>" class="pubinputs" /> | |||||
必须由英文、数字、下划线组成 * | |||||
<input name="isdel" type="checkbox" class="np" id="isdel" value="1" /> | |||||
删除已有表 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>模型性质</b><br /> | |||||
<span class="STYLE2" id="help5">如果为<u>系统模型</u>将禁止删除,此选项不可更改,对于独立模型,系统强制创建字段aid,typeid,senddate,title, mid, channel,独立模型的文档内容必须点击栏目进入列表才能管理。</span> </td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input type="radio" name="issystem" id='is1' class="np" value="0" onClick="PublicDefault()" checked='1' /> | |||||
自动模型 | |||||
<input type="radio" name="issystem" id='is2' value="1" onClick="PublicDefault()" class="np" /> | |||||
系统模型 | |||||
<input type="radio" name="issystem" id='is3' value="-1" onClick="PublicDefault()" class="np" /> | |||||
独立模型(不使用主表) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>是否支持会员投稿</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="issend" type="radio" class="np" value="0" checked='1' /> | |||||
不支持 | |||||
<input type="radio" name="issend" class="np" value="1" /> | |||||
支持 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>会员许可投稿级别</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<select name='sendrank' id='sendrank' style='width:120px'> | |||||
<option value='0'>游客</option> | |||||
<?php | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="mychannel_add.php" method="post"> | |||||
<input type='hidden' name='action' value='add'> | |||||
<tr> | |||||
<td height="28" colspan="2" background="images/tbg.gif" style="padding-left:10px;"> | |||||
<a href="mychannel_main.php"><b>内容模型管理</b></a> | |||||
<b> > 新增内容模型:</b> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="35%" bgcolor="#FFFFFF"> | |||||
<b>频道ID</b><br /> | |||||
<span class="STYLE2" id='help1'>数字,创建后不可更改,并具有唯一性。</span> | |||||
</td> | |||||
<td width="65%" bgcolor="#FFFFFF"> | |||||
<input name="id" type="text" id="id" size="10" value="<?php echo $newid; ?>" class="pubinputs" /> * | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>名字标识</b><br /> | |||||
<span class="STYLE2" id="help2">与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,频道默认文档模板是 | |||||
“default/article_名字标识.htm”,列表模板、封面模板类推。 </span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="nid" type="text" id="nid" value="ch<?php echo $newid; ?>" class="pubinputs" /> * | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>频道名称</b><br /> | |||||
<span class="STYLE2" id="help3">频道的中文名称,在后台管理,前台发布等均使用此名字。</span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="typename" type="text" id="typename" value="频道<?php echo $newid; ?>" class="pubinputs" /> * | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>附加表</b><br /> | |||||
<span class="STYLE2" id="help4">频道除主表以外其它自定义类型数据存放数据的表,如果您不使用主表关连的各种特性(推荐、会员权限等),也可以使用完全以附加表作为存储数据。</span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="addtable" type="text" id="addtable" value="<?php echo $cfg_dbprefix,'addon',$newid; ?>" | |||||
class="pubinputs" /> | |||||
必须由英文、数字、下划线组成 * | |||||
<label><input name="isdel" type="checkbox" class="np" id="isdel" value="1" /> | |||||
删除已有表</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>模型性质</b><br /> | |||||
<span class="STYLE2" id="help5">如果为<u>系统模型</u>将禁止删除,此选项不可更改,对于独立模型,系统强制创建字段aid,typeid,senddate,title, mid, | |||||
channel,独立模型的文档内容必须点击栏目进入列表才能管理。</span> </td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input type="radio" name="issystem" id='is1' class="np" value="0" onClick="PublicDefault()" checked='1' /> | |||||
自动模型 </label> | |||||
<label><input type="radio" name="issystem" id='is2' value="1" onClick="PublicDefault()" class="np" /> | |||||
系统模型 </label> | |||||
<label><input type="radio" name="issystem" id='is3' value="-1" onClick="PublicDefault()" class="np" /> | |||||
独立模型(不使用主表) </label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>是否支持会员投稿</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="issend" type="radio" class="np" value="0" checked='1' /> | |||||
不支持 </label> | |||||
<label><input type="radio" name="issend" class="np" value="1" /> | |||||
支持 </label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>会员许可投稿级别</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<select name='sendrank' id='sendrank' style='width:120px'> | |||||
<option value='0'>游客</option> | |||||
<?php | |||||
$urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
$dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And rank>=10"); | $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And rank>=10"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
@@ -135,154 +139,155 @@ function PublicDefault() | |||||
echo " <option value='".$row2->rank."'>".$row2->membername."</option>\r\n"; | echo " <option value='".$row2->rank."'>".$row2->membername."</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>许可投稿会员组</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<?php | |||||
</select> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>许可投稿会员组</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<?php | |||||
$dsql->SetQuery("Select * from `#@__member_model`"); | $dsql->SetQuery("Select * from `#@__member_model`"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while($row3 = $dsql->GetObject()) | while($row3 = $dsql->GetObject()) | ||||
{ | { | ||||
echo "<input name='usertype' class='np' type='radio' value=".$row3->name." />".$row3->name."\r\n"; | |||||
echo "<label><input name='usertype' class='np' type='radio' value=".$row3->name." /> ".$row3->name." </label>\r\n"; | |||||
} | } | ||||
?> | ?> | ||||
<input name="usertype" class="np" type="radio" value="" checked='1' /> | |||||
不限 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>会员稿件默认状态</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="arcsta" class="np" type="radio" value="-1" checked='1' /> | |||||
未审核 | |||||
<input name="arcsta" class="np" type="radio" value="0" /> | |||||
已审核(自动生成HTML) | |||||
<input name="arcsta" class="np" type="radio" value="1" /> | |||||
已审核(仅使用动态文档)</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>投稿标题使用名称</b></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="titlename" type="text" id="titlename" value="标题" class="pubinputs" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>投稿是否使用摘要</b><br/> | |||||
<span class="STYLE2">如果不使用主表(独立模型),缩略图设置同。</span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="needdes" type="radio" class="np" value="1" checked='1' /> | |||||
使用 | |||||
<input name="needdes" type="radio" class="np" value="0" /> | |||||
不使用 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>投稿是否使用缩图</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="needpic" type="radio" class="np" value="1" checked='1' /> | |||||
使用 | |||||
<input name="needpic" type="radio" class="np" value="0" /> | |||||
不使用 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>默认栏目ID</b><br /> | |||||
<span class="STYLE2" id="help8">与投稿是唯一性结合可以用模型设计自定义表单</span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="dfcid" type="text" id="dfcid" value="0" class="pubinputs" style="width:80px;" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>投稿具有唯一性</b><br /> | |||||
<span class="STYLE2" id="help9">如果投稿是唯一的(会员只能在这个模型对应的栏目中发布单篇文档),其作用相当于自定义表单</span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="onlyone" type="radio" class="np" value="1" /> | |||||
是 | |||||
<input name="onlyone" type="radio" class="np" value="0" checked='1'/> | |||||
不是 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>档案发布程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="addcon" type="text" id="addcon" value="archives_add.php" class="pubinputs" /> | |||||
* | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>档案修改程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="editcon" type="text" id="editcon" value="archives_edit.php" class="pubinputs" /> | |||||
* | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>档案管理程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="mancon" type="text" id="mancon" value="content_list.php" class="pubinputs" /> | |||||
* | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>前台会员发布程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="useraddcon" type="text" id="useraddcon" value="archives_add.php" class="pubinputs" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>前台会员修改程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="usereditcon" type="text" id="usereditcon" value="archives_edit.php" class="pubinputs" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>前台会员管理程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="usermancon" type="text" id="usermancon" value="content_list.php" class="pubinputs" /> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="32" colspan="2"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="26%"> </td> | |||||
<td width="15%"> | |||||
<input name="imageField" class="np" type="image" src="images/button_ok.gif" width="60" height="22" border="0" /> | |||||
</td> | |||||
<td width="59%"> | |||||
<img src="images/button_back.gif" width="60" height="22" onClick="location='mychannel_main.php';" style="cursor:pointer" /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
<label><input name="usertype" class="np" type="radio" value="" checked='1' /> | |||||
不限 </label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>会员稿件默认状态</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="arcsta" class="np" type="radio" value="-1" checked='1' /> | |||||
未审核 </label> | |||||
<label><input name="arcsta" class="np" type="radio" value="0" /> | |||||
已审核(自动生成HTML)</label> | |||||
<label><input name="arcsta" class="np" type="radio" value="1" /> | |||||
已审核(仅使用动态文档)</label></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>投稿标题使用名称</b></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="titlename" type="text" id="titlename" value="标题" class="pubinputs" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>投稿是否使用摘要</b><br /> | |||||
<span class="STYLE2">如果不使用主表(独立模型),缩略图设置同。</span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="needdes" type="radio" class="np" value="1" checked='1' /> | |||||
使用 </label> | |||||
<label><input name="needdes" type="radio" class="np" value="0" /> | |||||
不使用 </label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>投稿是否使用缩图</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="needpic" type="radio" class="np" value="1" checked='1' /> | |||||
使用 </label> | |||||
<label><input name="needpic" type="radio" class="np" value="0" /> | |||||
不使用 </label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>默认栏目ID</b><br /> | |||||
<span class="STYLE2" id="help8">与投稿是唯一性结合可以用模型设计自定义表单</span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="dfcid" type="text" id="dfcid" value="0" class="pubinputs" style="width:80px;" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>投稿具有唯一性</b><br /> | |||||
<span class="STYLE2" id="help9">如果投稿是唯一的(会员只能在这个模型对应的栏目中发布单篇文档),其作用相当于自定义表单</span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="onlyone" type="radio" class="np" value="1" /> | |||||
是 </label> | |||||
<label><input name="onlyone" type="radio" class="np" value="0" checked='1' /> | |||||
不是 </label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>档案发布程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="addcon" type="text" id="addcon" value="archives_add.php" class="pubinputs" /> | |||||
* | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>档案修改程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="editcon" type="text" id="editcon" value="archives_edit.php" class="pubinputs" /> | |||||
* | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>档案管理程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="mancon" type="text" id="mancon" value="content_list.php" class="pubinputs" /> | |||||
* | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>前台会员发布程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="useraddcon" type="text" id="useraddcon" value="archives_add.php" class="pubinputs" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>前台会员修改程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="usereditcon" type="text" id="usereditcon" value="archives_edit.php" class="pubinputs" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<b>前台会员管理程序</b> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="usermancon" type="text" id="usermancon" value="content_list.php" class="pubinputs" /> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="32" colspan="2"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="26%"> </td> | |||||
<td width="15%"> | |||||
<button type="submit" class="btn btn-secondary">确定</button> | |||||
</td> | |||||
<td width="59%"> | |||||
<button type="button" onClick="location='mychannel_main.php';" class="btn btn-secondary">返回</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,162 +1,176 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更改内容模型</title> | |||||
<style type="text/css"> | |||||
<!-- | |||||
body { background-image: url(images/allbg.gif); } | |||||
.STYLE2 { color: #666666; } | |||||
--> | |||||
</style> | |||||
<script language="javascript"> | |||||
<!-- | |||||
function Nav() { | |||||
if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE'; | |||||
else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF'; | |||||
else return "OT"; | |||||
} | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更改内容模型</title> | |||||
<style type="text/css"> | |||||
body { | |||||
background-image: url(images/allbg.gif); | |||||
} | |||||
function $Obj(objname) { | |||||
return document.getElementById(objname); | |||||
} | |||||
.STYLE2 { | |||||
color: #666666; | |||||
} | |||||
</style> | |||||
<script language="javascript"> | |||||
function Nav() { | |||||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||||
else return "OT"; | |||||
} | |||||
function ShowHide2(objname) { | |||||
var obj = $Obj(objname); | |||||
if(obj.style.display != 'block'){ obj.style.display = 'block' } | |||||
else{ obj.style.display = 'none'; } | |||||
} | |||||
function $Obj(objname) { | |||||
return document.getElementById(objname); | |||||
} | |||||
//删除 | |||||
function DelNote(gourl) { | |||||
if(!window.confirm("你确认要删除这个字段么!")){ return false; } | |||||
location.href=gourl; | |||||
} | |||||
function ShowHide2(objname) { | |||||
var obj = $Obj(objname); | |||||
if (obj.style.display != 'block') { obj.style.display = 'block' } | |||||
else { obj.style.display = 'none'; } | |||||
} | |||||
function ShowObj(objname) { | |||||
var obj = document.getElementById(objname); | |||||
if(Nav()=='IE') {obj.style.display = "block";obj.style.display = "block";} | |||||
else obj.style.display = "table"; | |||||
} | |||||
//删除 | |||||
function DelNote(gourl) { | |||||
if (!window.confirm("你确认要删除这个字段么!")) { return false; } | |||||
location.href = gourl; | |||||
} | |||||
function HideObj(objname) { | |||||
var obj = document.getElementById(objname); | |||||
obj.style.display = "none"; | |||||
} | |||||
function ShowObj(objname) { | |||||
var obj = document.getElementById(objname); | |||||
if (Nav() == 'IE') { obj.style.display = "block"; obj.style.display = "block"; } | |||||
else obj.style.display = "table"; | |||||
} | |||||
function ShowItem1() { | |||||
ShowObj('head1'); ShowObj('needset'); | |||||
HideObj('head2'); HideObj('adset'); | |||||
} | |||||
function HideObj(objname) { | |||||
var obj = document.getElementById(objname); | |||||
obj.style.display = "none"; | |||||
} | |||||
function ShowItem2() { | |||||
ShowObj('head2'); ShowObj('adset'); | |||||
HideObj('head1'); HideObj('needset'); | |||||
} | |||||
function ShowItem1() { | |||||
ShowObj('head1'); ShowObj('needset'); | |||||
HideObj('head2'); HideObj('adset'); | |||||
} | |||||
--> | |||||
</script> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
function ShowItem2() { | |||||
ShowObj('head2'); ShowObj('adset'); | |||||
HideObj('head1'); HideObj('needset'); | |||||
} | |||||
</script> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body topmargin="8"> | <body topmargin="8"> | ||||
<form name="form1" action="mychannel_edit.php" method="post"> | |||||
<input type='hidden' name='id' value='<?php echo $id?>'> | |||||
<input type='hidden' name='dopost' value='save'> | |||||
<input type='hidden' name='issystem' value='<?php echo $row['issystem']; ?>'> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" style="margin-bottom:8px;"> | |||||
<tr> | |||||
<td height="28" colspan="2" background="images/tbg.gif" style="padding-left:10px;"> | |||||
<a href="mychannel_main.php"><b>内容模型管理</b></a> | |||||
<b> > 更改内容模型:</b> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<form name="form1" action="mychannel_edit.php" method="post"> | |||||
<input type='hidden' name='id' value='<?php echo $id?>'> | |||||
<input type='hidden' name='dopost' value='save'> | |||||
<input type='hidden' name='issystem' value='<?php echo $row['issystem']; ?>'> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" | |||||
style="margin-bottom:8px;" class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td height="28" colspan="2" background="images/tbg.gif" style="padding-left:10px;"> | |||||
<a href="mychannel_main.php"><b>内容模型管理</b></a> | |||||
<b> > 更改内容模型:</b> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" cellspacing="0" id="head1" cellpadding="0" align="center" style="display:block"> | |||||
<tr> | |||||
<td colspan="2"> | |||||
<table border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" height="24" align="center" background="images/itemnote1.gif"> 基本设置 </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()"><u>字段管理</u></a> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" cellspacing="0" id="head1" cellpadding="0" align="center" style="display:block"> | |||||
<tr> | |||||
<td colspan="2"> | |||||
<table border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" height="24" align="center" background="images/itemnote1.gif"> 基本设置 </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" | |||||
onClick="ShowItem2()"><u>字段管理</u></a> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" cellspacing="0" id="head2" cellpadding="0" style="display:none" align="center"> | |||||
<tr> | |||||
<td colspan="2"> | |||||
<table border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" height="24" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" onClick="ShowItem1()"><u>基本设置</u></a> </td> | |||||
<td width="84" align="center" background="images/itemnote1.gif">字段管理 </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" id='needset' border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" style="display:block"> | |||||
<?php | |||||
<table width="98%" border="0" cellspacing="0" id="head2" cellpadding="0" style="display:none" align="center"> | |||||
<tr> | |||||
<td colspan="2"> | |||||
<table border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" height="24" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" | |||||
onClick="ShowItem1()"><u>基本设置</u></a> </td> | |||||
<td width="84" align="center" background="images/itemnote1.gif">字段管理 </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" id='needset' border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" | |||||
style="display:block" class="table maintable table-bordered"> | |||||
<?php | |||||
if($row['issystem'] == 1) | if($row['issystem'] == 1) | ||||
{ | { | ||||
?> | ?> | ||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF" style="color:red"> 您目前所展开的是系统模型,系统模型一般对发布程序和管理程序已经固化,如果您胡乱更改系统模型将会导致使用这种内容类型的频道可能崩溃。 </td> | |||||
</tr> | |||||
<?php | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF" style="color:red"> | |||||
您目前所展开的是系统模型,系统模型一般对发布程序和管理程序已经固化,如果您胡乱更改系统模型将会导致使用这种内容类型的频道可能崩溃。 </td> | |||||
</tr> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>模型性质</b><br /> | |||||
<span class="STYLE2" id="help5">如果为<u>系统模型</u>将禁止删除,此选项不可更改,对于独立模型,系统强制创建字段aid、栏目ID、发布时间、文档标题。</span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<?php | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>模型性质</b><br /> | |||||
<span class="STYLE2" id="help5">如果为<u>系统模型</u>将禁止删除,此选项不可更改,对于独立模型,系统强制创建字段aid、栏目ID、发布时间、文档标题。</span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<?php | |||||
if($row['issystem']==0) echo "自动模型"; | if($row['issystem']==0) echo "自动模型"; | ||||
else if($row['issystem']==1) echo "系统模型"; | else if($row['issystem']==1) echo "系统模型"; | ||||
else if($row['issystem']==-1) echo "独立模型"; | else if($row['issystem']==-1) echo "独立模型"; | ||||
?> | ?> | ||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="35%" bgcolor="#FFFFFF"><b>频道ID</b><br /> | |||||
<span class="STYLE2" id='help1'>数字,创建后不可更改,并具有唯一性。</span></td> | |||||
<td width="65%" bgcolor="#FFFFFF"> | |||||
<?php echo $row['id']; ?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>名字标识</b><br /> | |||||
<span class="STYLE2" id="help2">与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,频道默认文档模板是 “default/article_名字标识.htm”,列表模板、封面模板类推。 </span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<?php echo $row['nid']; ?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>频道名称</b><br /> | |||||
<span class="STYLE2" id="help3">频道的中文名称,在后台管理,前台发布等均使用此名字。</span></td> | |||||
<td bgcolor="#FFFFFF"><input name="typename" type="text" id="typename" value="<?php echo $row['typename']; ?>" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>附加表</b><br /> | |||||
<span class="STYLE2" id="help4">频道除主表以外其它自定义类型数据存放数据的表,如果您不使用主表关连的各种特性(推荐、会员权限等),也可以使用完全以附加表作为存储数据。</span></td> | |||||
<td bgcolor="#FFFFFF"><input name="addtable" type="text" id="addtable" value="<?php echo $row['addtable']; ?>" class="pubinputs" /> | |||||
( #@__ 是表示数据表前缀)</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>是否支持会员投稿</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="issend" type="radio" class="np" value="0"<?php if($row['issend']==0) echo " checked='1' "; ?> /> | |||||
不支持 | |||||
<input type="radio" name="issend" class="np" value="1"<?php if($row['issend']==1) echo " checked='1' "; ?> /> | |||||
支持 </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>会员许可投稿级别</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<select name="sendrank" id="sendrank" style="width:120px"> | |||||
<option value='0'>游客</option> | |||||
<?php | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="35%" bgcolor="#FFFFFF"><b>频道ID</b><br /> | |||||
<span class="STYLE2" id='help1'>数字,创建后不可更改,并具有唯一性。</span></td> | |||||
<td width="65%" bgcolor="#FFFFFF"> | |||||
<?php echo $row['id']; ?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>名字标识</b><br /> | |||||
<span class="STYLE2" id="help2">与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,频道默认文档模板是 | |||||
“default/article_名字标识.htm”,列表模板、封面模板类推。 </span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<?php echo $row['nid']; ?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>频道名称</b><br /> | |||||
<span class="STYLE2" id="help3">频道的中文名称,在后台管理,前台发布等均使用此名字。</span></td> | |||||
<td bgcolor="#FFFFFF"><input name="typename" type="text" id="typename" value="<?php echo $row['typename']; ?>" | |||||
class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>附加表</b><br /> | |||||
<span class="STYLE2" id="help4">频道除主表以外其它自定义类型数据存放数据的表,如果您不使用主表关连的各种特性(推荐、会员权限等),也可以使用完全以附加表作为存储数据。</span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"><input name="addtable" type="text" id="addtable" value="<?php echo $row['addtable']; ?>" | |||||
class="pubinputs" /> | |||||
( #@__ 是表示数据表前缀)</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>是否支持会员投稿</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="issend" type="radio" class="np" value="0" <?php if($row['issend']==0) echo " checked='1' "; ?> /> | |||||
不支持 </label> | |||||
<label><input type="radio" name="issend" class="np" value="1" <?php if($row['issend']==1) echo " checked='1' "; ?> /> | |||||
支持 </label> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>会员许可投稿级别</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<select name="sendrank" id="sendrank" style="width:120px"> | |||||
<option value='0'>游客</option> | |||||
<?php | |||||
$urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
$dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And rank>=10"); | $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And rank>=10"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
@@ -166,136 +180,154 @@ function ShowItem2() { | |||||
else echo " <option value='".$row2->rank."'>".$row2->membername."</option>\r\n"; | else echo " <option value='".$row2->rank."'>".$row2->membername."</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>许可投稿会员组</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<?php | |||||
</select> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>许可投稿会员组</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<?php | |||||
$dsql->SetQuery("Select * from `#@__member_model`"); | $dsql->SetQuery("Select * from `#@__member_model`"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while($row3 = $dsql->GetObject()) | while($row3 = $dsql->GetObject()) | ||||
{ | { | ||||
echo "<input name='usertype' class='np' type='radio' value=".$row3->name." />".$row3->name."\r\n"; | |||||
echo "<label><input name='usertype' class='np' type='radio' value=".$row3->name." /> ".$row3->name."</label> \r\n"; | |||||
} | } | ||||
?> | ?> | ||||
<input name="usertype" class="np" type="radio" value=""<?php if($row['usertype']=='') echo " checked='1' ";?> /> | |||||
不限 </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>会员稿件默认状态</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="arcsta" class="np" type="radio" value="-1"<?php if($row['arcsta']==-1) echo " checked='1' ";?>> | |||||
未审核 | |||||
<input name="arcsta" class="np" type="radio" value="0"<?php if($row['arcsta']==0) echo " checked='1' ";?>> | |||||
已审核(自动生成HTML) | |||||
<input name="arcsta" class="np" type="radio" value="1"<?php if($row['arcsta']==1) echo " checked='1' ";?>> | |||||
已审核(仅使用动态文档)</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>档案发布程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="addcon" type="text" id="addcon" value="<?php echo $row['addcon']; ?>" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>档案修改程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="editcon" type="text" id="editcon" value="<?php echo $row['editcon']; ?>" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>档案管理程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="mancon" type="text" id="mancon" value="<?php echo $row['mancon']; ?>" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>前台会员发布程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="useraddcon" type="text" id="useraddcon" value="<?php echo $row['useraddcon']; ?>" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>前台会员修改程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="usereditcon" type="text" id="usereditcon" value="<?php echo $row['usereditcon']; ?>" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>前台会员管理程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="usermancon" type="text" id="usermancon" value="<?php echo $row['usermancon']; ?>" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>列表附加字段</strong><br /> | |||||
<label><input name="usertype" class="np" type="radio" value="" | |||||
<?php if($row['usertype']=='') echo " checked='1' ";?> /> | |||||
不限</label></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>会员稿件默认状态</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="arcsta" class="np" type="radio" value="-1" <?php if($row['arcsta']==-1) echo " checked='1' ";?>> | |||||
未审核</label> | |||||
<label><input name="arcsta" class="np" type="radio" value="0" <?php if($row['arcsta']==0) echo " checked='1' ";?>> | |||||
已审核(自动生成HTML)</label> | |||||
<label><input name="arcsta" class="np" type="radio" value="1" <?php if($row['arcsta']==1) echo " checked='1' ";?>> | |||||
已审核(仅使用动态文档)</label> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>档案发布程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="addcon" type="text" id="addcon" value="<?php echo $row['addcon']; ?>" | |||||
class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>档案修改程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="editcon" type="text" id="editcon" value="<?php echo $row['editcon']; ?>" | |||||
class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>档案管理程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="mancon" type="text" id="mancon" value="<?php echo $row['mancon']; ?>" | |||||
class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>前台会员发布程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="useraddcon" type="text" id="useraddcon" | |||||
value="<?php echo $row['useraddcon']; ?>" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>前台会员修改程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="usereditcon" type="text" id="usereditcon" | |||||
value="<?php echo $row['usereditcon']; ?>" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>前台会员管理程序</strong></td> | |||||
<td bgcolor="#FFFFFF"><input name="usermancon" type="text" id="usermancon" | |||||
value="<?php echo $row['usermancon']; ?>" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>列表附加字段</strong><br /> | |||||
<span class="STYLE2" id="help6">用","分开,可以在列表模板{dede:list}{/dede:list}中用[field:name /]调用</span></td> | <span class="STYLE2" id="help6">用","分开,可以在列表模板{dede:list}{/dede:list}中用[field:name /]调用</span></td> | ||||
<td bgcolor="#FFFFFF"> | |||||
<input name="listfields" type="text" id="listfields" size="50" value="<?php echo $row['listfields']; ?>" class="pubinputs" style="width:80%;" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>投稿标题使用名称</b></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="titlename" type="text" id="titlename" value="<?php echo $row['titlename']; ?>" class="pubinputs" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<strong>投稿是否使用摘要</strong> | |||||
<br/> | |||||
<span class="STYLE2">如果不使用主表(独立模型),缩略图设置同。</span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="needdes" type="radio" class="np" value="1"<?php if($row['needdes']==1) echo " checked='1'"; ?> /> | |||||
使用 | |||||
<input name="needdes" type="radio" class="np" value="0"<?php if($row['needdes']==0) echo " checked='1'"; ?> /> | |||||
不使用 </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>投稿是否使用缩图</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="needpic" type="radio" class="np" value="1"<?php if($row['needpic']==1) echo " checked='1'"; ?> /> | |||||
使用 | |||||
<input name="needpic" type="radio" class="np" value="0"<?php if($row['needpic']==0) echo " checked='1'"; ?> /> | |||||
不使用 </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>默认栏目ID</b><br /> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="listfields" type="text" id="listfields" size="50" value="<?php echo $row['listfields']; ?>" | |||||
class="pubinputs" style="width:80%;" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>投稿标题使用名称</b></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="titlename" type="text" id="titlename" value="<?php echo $row['titlename']; ?>" | |||||
class="pubinputs" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<strong>投稿是否使用摘要</strong> | |||||
<br /> | |||||
<span class="STYLE2">如果不使用主表(独立模型),缩略图设置同。</span> | |||||
</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="needdes" type="radio" class="np" value="1" | |||||
<?php if($row['needdes']==1) echo " checked='1'"; ?> /> | |||||
使用</label> | |||||
<label><input name="needdes" type="radio" class="np" value="0" | |||||
<?php if($row['needdes']==0) echo " checked='1'"; ?> /> | |||||
不使用 </label></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>投稿是否使用缩图</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="needpic" type="radio" class="np" value="1" | |||||
<?php if($row['needpic']==1) echo " checked='1'"; ?> /> | |||||
使用 </label> | |||||
<label><input name="needpic" type="radio" class="np" value="0" | |||||
<?php if($row['needpic']==0) echo " checked='1'"; ?> /> | |||||
不使用 </label></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>默认栏目ID</b><br /> | |||||
<span class="STYLE2" id="help8">与投稿是唯一性结合可以用模型设计自定义表单</span> </td> | <span class="STYLE2" id="help8">与投稿是唯一性结合可以用模型设计自定义表单</span> </td> | ||||
<td bgcolor="#FFFFFF"> | |||||
<input name="dfcid" type="text" id="dfcid" value="<?php echo $row['dfcid']; ?>" class="pubinputs" style="width:80px" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>投稿具有唯一性</b><br /> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="dfcid" type="text" id="dfcid" value="<?php echo $row['dfcid']; ?>" class="pubinputs" | |||||
style="width:80px" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><b>投稿具有唯一性</b><br /> | |||||
<span class="STYLE2" id="help9">如果投稿是唯一的(会员只能在这个模型对应的栏目中发布单篇文档),其作用相当于自定义表单</span> </td> | <span class="STYLE2" id="help9">如果投稿是唯一的(会员只能在这个模型对应的栏目中发布单篇文档),其作用相当于自定义表单</span> </td> | ||||
<td bgcolor="#FFFFFF"> | |||||
<input name="onlyone" type="radio" class="np" value="1" <?php if($row['onlyone']==1) echo " checked='1'"; ?> /> | |||||
是 | |||||
<input name="onlyone" type="radio" class="np" value="0" <?php if($row['onlyone']==0) echo " checked='1'"; ?> /> | |||||
不是 </td> | |||||
</tr> | |||||
</table> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="onlyone" type="radio" class="np" value="1" | |||||
<?php if($row['onlyone']==1) echo " checked='1'"; ?> /> | |||||
是 </label> | |||||
<label><input name="onlyone" type="radio" class="np" value="0" | |||||
<?php if($row['onlyone']==0) echo " checked='1'"; ?> /> | |||||
不是 </label></td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" id='adset' border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" style='display:none'> | |||||
<tr> | |||||
<td height="28" bgcolor="#ffffff"><strong>模型字段配置(可视化模式)</strong></td> | |||||
<td bgcolor="#ffffff"> | |||||
<input name="fset" type="button" id="fset" value="添加新字段" onClick="location.href='mychannel_field_add.php?id=<?php echo $id; ?>'" class="coolbg np" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan='2' bgcolor="#FFFFFF" style="padding:6px"> | |||||
<table width="100%" border="0" cellpadding="1" cellspacing="1" align="center" style="background:#cfcfcf;"> | |||||
<tr align="center" bgcolor="#FBFCE2" height="24"> | |||||
<td width="28%">表单提示文字</td> | |||||
<td width="18%">数据字段名</td> | |||||
<td width="20%">数据类型</td> | |||||
<td width="18%">表单类型</td> | |||||
<td>维护</td> | |||||
</tr> | |||||
<?php | |||||
<table width="98%" id='adset' border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" | |||||
style='display:none' class="table maintable table-bordered"> | |||||
<tr> | |||||
<td height="28" bgcolor="#ffffff"><strong>模型字段配置(可视化模式)</strong></td> | |||||
<td bgcolor="#ffffff"> | |||||
<button name="fset" type="button" id="fset" | |||||
onClick="location.href='mychannel_field_add.php?id=<?php echo $id; ?>'" class="btn btn-secondary btn-sm">添加新字段</button> </td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan='2' bgcolor="#FFFFFF" style="padding:6px"> | |||||
<table width="100%" border="0" cellpadding="1" cellspacing="1" align="center" style="background:#cfcfcf;"> | |||||
<tr align="center" bgcolor="#FBFCE2" height="24"> | |||||
<td width="28%">表单提示文字</td> | |||||
<td width="18%">数据字段名</td> | |||||
<td width="20%">数据类型</td> | |||||
<td width="18%">表单类型</td> | |||||
<td>维护</td> | |||||
</tr> | |||||
<?php | |||||
if($row['issystem']==-1) | if($row['issystem']==-1) | ||||
{ | { | ||||
?> | ?> | ||||
<tr bgcolor="#ffffff" height="24"> | |||||
<td colspan='5'>aid 和 typeid 是强制使用字段,这里不列出。</td> | |||||
</tr> | |||||
<?php | |||||
<tr bgcolor="#ffffff" height="24"> | |||||
<td colspan='5'>aid 和 typeid 是强制使用字段,这里不列出。</td> | |||||
</tr> | |||||
<?php | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
?> | ?> | ||||
<tr bgcolor="#ffffff" height="24"> | |||||
<td colspan='5'>下面列出的字段是附加表的字段,除此外,它还包含主表dede_archives的所有字段</td> | |||||
</tr> | |||||
<?php | |||||
<tr bgcolor="#ffffff" height="24"> | |||||
<td colspan='5'>下面列出的字段是附加表的字段,除此外,它还包含主表dede_archives的所有字段</td> | |||||
</tr> | |||||
<?php | |||||
} | } | ||||
$ds = file(DEDEADMIN."/inc/fieldtype.txt"); | $ds = file(DEDEADMIN."/inc/fieldtype.txt"); | ||||
foreach($ds as $d){ | foreach($ds as $d){ | ||||
@@ -309,23 +341,24 @@ $dtp->LoadSource($fieldset); | |||||
if(is_array($dtp->CTags)){ | if(is_array($dtp->CTags)){ | ||||
foreach($dtp->CTags as $ctag) | foreach($dtp->CTags as $ctag) | ||||
{ | { | ||||
?> <tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="24"> | |||||
<td> | |||||
<?php | |||||
?> <tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" | |||||
onMouseOut="javascript:this.bgColor='#FFFFFF';" height="24"> | |||||
<td> | |||||
<?php | |||||
$itname = $ctag->GetAtt('itemname'); | $itname = $ctag->GetAtt('itemname'); | ||||
if($itname=='') echo "没指定"; | if($itname=='') echo "没指定"; | ||||
else echo $itname; | else echo $itname; | ||||
?> </td> | |||||
<td> | |||||
<?php echo $ctag->GetTagName(); ?> </td> | |||||
<td> | |||||
<?php | |||||
?> </td> | |||||
<td> | |||||
<?php echo $ctag->GetTagName(); ?> </td> | |||||
<td> | |||||
<?php | |||||
$ft = $ctag->GetAtt('type'); | $ft = $ctag->GetAtt('type'); | ||||
if(isset($fieldtypes[$ft])) echo $fieldtypes[$ft]; | if(isset($fieldtypes[$ft])) echo $fieldtypes[$ft]; | ||||
else echo "系统专用类型"; | else echo "系统专用类型"; | ||||
?> </td> | |||||
<td> | |||||
<?php | |||||
?> </td> | |||||
<td> | |||||
<?php | |||||
$ft = $ctag->GetAtt('autofield'); | $ft = $ctag->GetAtt('autofield'); | ||||
if($ft=='' || $ft==0) { | if($ft=='' || $ft==0) { | ||||
echo "固化字段"; | echo "固化字段"; | ||||
@@ -334,60 +367,67 @@ foreach($dtp->CTags as $ctag) | |||||
echo "自动表单"; | echo "自动表单"; | ||||
} | } | ||||
?> | ?> | ||||
</td> | |||||
<td> | |||||
<?php | |||||
</td> | |||||
<td> | |||||
<?php | |||||
if($ft==1) | if($ft==1) | ||||
{ | { | ||||
?> | ?> | ||||
<a href='mychannel_field_edit.php?id=<?php echo $id; ?>&fname=<?php echo $ctag->GetTagName(); ?>&issystem=<?php echo $row['issystem']; ?>'><img src='images/gtk-edit.png' alt='更改' title='更改' /></a> | |||||
<?php if($row['issystem']!=1){ ?> | |||||
| <a href='#' onClick='javascript:DelNote("mychannel_field_edit.php?id=<?php echo $id; ?>&fname=<?php echo $ctag->GetTagName(); ?>&action=delete");'><img src='images/gtk-del.png' alt='删除' title='删除' /></a> | |||||
<?php } ?> | |||||
<?php | |||||
<a | |||||
href='mychannel_field_edit.php?id=<?php echo $id; ?>&fname=<?php echo $ctag->GetTagName(); ?>&issystem=<?php echo $row['issystem']; ?>'><img | |||||
src='images/gtk-edit.png' alt='更改' title='更改' /></a> | |||||
<?php if($row['issystem']!=1){ ?> | |||||
| <a href='#' | |||||
onClick='javascript:DelNote("mychannel_field_edit.php?id=<?php echo $id; ?>&fname=<?php echo $ctag->GetTagName(); ?>&action=delete");'><img | |||||
src='images/gtk-del.png' alt='删除' title='删除' /></a> | |||||
<?php } ?> | |||||
<?php | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
echo "禁止修改"; | echo "禁止修改"; | ||||
} | } | ||||
?> | ?> | ||||
</td> | |||||
</tr> | |||||
<?php | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
}} | }} | ||||
?> | ?> | ||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" width="35%" bgcolor="#FFFFFF"> | |||||
<strong>模型字段配置(文本模式) </strong><br /> | |||||
修改配置文本可调整字段顺序,但不会更改字段属性! | |||||
</td> | |||||
<td width="65%" bgcolor="#FFFFFF"> | |||||
<textarea name="fieldset" style="width:99%;height:300px" rows="10" id="fieldset"><?php echo $row['fieldset']; ?></textarea> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" id='' style='margin-top:6px'> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="36" colspan="2"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="26%"> </td> | |||||
<td width="15%"><input name="imageField" class="np" type="image" src="images/button_ok.gif" width="60" height="22" border="0" /></td> | |||||
<td width="59%"><img src="images/button_back.gif" width="60" height="22" onClick="location='mychannel_main.php';" style="cursor:pointer" /></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
<?php | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" width="35%" bgcolor="#FFFFFF"> | |||||
<strong>模型字段配置(文本模式) </strong><br /> | |||||
修改配置文本可调整字段顺序,但不会更改字段属性! | |||||
</td> | |||||
<td width="65%" bgcolor="#FFFFFF"> | |||||
<textarea name="fieldset" style="width:99%;height:300px" rows="10" | |||||
id="fieldset"><?php echo $row['fieldset']; ?></textarea> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" | |||||
style='margin-top:6px' class="mb-3"> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="36" colspan="2"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="26%"> </td> | |||||
<td width="15%" class="py-3"><button type="submit" class="btn btn-secondary">确定</button></td> | |||||
<td width="59%" class="py-3"><button type="button" onClick="location='mychannel_main.php';" class="btn btn-secondary">返回</button></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
<?php | |||||
if(!empty($openfield)) | if(!empty($openfield)) | ||||
{ | { | ||||
echo "<script language='javascript'>ShowItem2();</script>"; | echo "<script language='javascript'>ShowItem2();</script>"; | ||||
} | } | ||||
?> | ?> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -3,7 +3,12 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>增加字段</title> | <title>增加字段</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | <link href="css/base.css" rel="stylesheet" type="text/css" /> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="js/main.js"></script> | |||||
<script language="javascript"> | <script language="javascript"> | ||||
var notAllow = " <?php echo $f; ?> "; | var notAllow = " <?php echo $f; ?> "; | ||||
function GetFields() | function GetFields() | ||||
@@ -29,27 +34,27 @@ function GetFields() | |||||
if(itemname=="") | if(itemname=="") | ||||
{ | { | ||||
alert("表单提示名称不能为空!"); | |||||
ShowMsg("表单提示名称不能为空!"); | |||||
theform.itemname.focus(); | theform.itemname.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
if(fieldname=="") | if(fieldname=="") | ||||
{ | { | ||||
alert("字段名称不能为空!"); | |||||
ShowMsg("字段名称不能为空!"); | |||||
theform.fieldname.focus(); | theform.fieldname.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
if(notAllow.indexOf(" "+fieldname+" ") >-1 ) | if(notAllow.indexOf(" "+fieldname+" ") >-1 ) | ||||
{ | { | ||||
alert("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||||
ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||||
return false; | return false; | ||||
} | } | ||||
if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | ||||
{ | { | ||||
alert("你选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)!"); | |||||
ShowMsg("你选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)!"); | |||||
return false; | return false; | ||||
} | } | ||||
@@ -65,13 +70,11 @@ function GetFields() | |||||
} | } | ||||
</script> | </script> | ||||
<style type="text/css"> | <style type="text/css"> | ||||
<!-- | |||||
td{ padding:2px; padding-left:6px; line-height:150%; } | td{ padding:2px; padding-left:6px; line-height:150%; } | ||||
.STYLE1 {color: #FF3300} | .STYLE1 {color: #FF3300} | ||||
.STYLE2 {color: #666666} | .STYLE2 {color: #666666} | ||||
.nw { float:left; width:150px; } | .nw { float:left; width:150px; } | ||||
.cls { clear:both; } | .cls { clear:both; } | ||||
--> | |||||
</style> | </style> | ||||
</head> | </head> | ||||
<body topmargin=8> | <body topmargin=8> | ||||
@@ -79,24 +82,29 @@ td{ padding:2px; padding-left:6px; line-height:150%; } | |||||
<input type='hidden' name='action' value='save' /> | <input type='hidden' name='action' value='save' /> | ||||
<input type='hidden' name='id' value='<?php echo $id?>' /> | <input type='hidden' name='id' value='<?php echo $id?>' /> | ||||
<input type='hidden' name='fieldstring' value='' /> | <input type='hidden' name='fieldstring' value='' /> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;"> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" style="background:#CFCFCF;" | |||||
class="table maintable table-bordered mt-3"> | |||||
<tr> | <tr> | ||||
<td colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif"> | <td colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif"> | ||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="30%" style="padding-left:10px;"> | <td width="30%" style="padding-left:10px;"> | ||||
<a href="mychannel_main.php"><b>频道管理</b></a> <b> >> 增加新字段:</b> | <a href="mychannel_main.php"><b>频道管理</b></a> <b> >> 增加新字段:</b> | ||||
</td> | </td> | ||||
<td align="right"> | <td align="right"> | ||||
<input type="button" name="ss1" value="当前模型信息" onClick="location='mychannel_edit.php?id=<?php echo $id?>&dopost=edit';" class="nbt"/> | |||||
<input type="button" name="ss12" value="内容模型管理" onClick="location='mychannel_main.php';" class="nbt"/> | |||||
<button type="button" name="ss1" onClick="location='mychannel_edit.php?id=<?php echo $id?>&dopost=edit';" class="btn btn-secondary btn-sm">当前模型信息</button> | |||||
<button type="button" name="ss12" onClick="location='mychannel_main.php';" class="btn btn-secondary btn-sm">内容模型管理</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="2" bgcolor="#FFFFFF"><span class="STYLE1">所有填写的内容不允许包含双引号[<strong>"</strong>],否则配置将无法写入。</span></td> | |||||
<td colspan="2" bgcolor="#FFFFFF"> | |||||
<div class="alert alert-danger" role="alert"> | |||||
所有填写的内容不允许包含双引号[<strong>"</strong>],否则配置将无法写入。 | |||||
</div> | |||||
</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td bgcolor="#FFFFFF"><strong>表单提示文字:</strong><br> | <td bgcolor="#FFFFFF"><strong>表单提示文字:</strong><br> | ||||
@@ -119,10 +127,10 @@ td{ padding:2px; padding-left:6px; line-height:150%; } | |||||
<tr> | <tr> | ||||
<td bgcolor="#FFFFFF"><strong>字段类型:</strong></td> | <td bgcolor="#FFFFFF"><strong>字段类型:</strong></td> | ||||
<td bgcolor="#FFFFFF"> | <td bgcolor="#FFFFFF"> | ||||
<input name="autofield" type="radio" value="1" class="np" checked="checked" /> | |||||
系统自动生成表单字段 | |||||
<input type="radio" name="autofield" class="np" value="0" /> | |||||
已经固化在发布表单中字段 | |||||
<label><input name="autofield" type="radio" value="1" class="np" checked="checked" /> | |||||
系统自动生成表单字段</label> | |||||
<label><input type="radio" name="autofield" class="np" value="0" /> | |||||
已经固化在发布表单中字段</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -130,10 +138,10 @@ td{ padding:2px; padding-left:6px; line-height:150%; } | |||||
<strong>前台参数:</strong> | <strong>前台参数:</strong> | ||||
</td> | </td> | ||||
<td bgcolor="#FFFFFF"> | <td bgcolor="#FFFFFF"> | ||||
<input name="islist" type="checkbox" class="np" id="islist" value="1" /> | |||||
使字段可以在列表的底层模板中获得(自定义字段默认仅能在文档模板显示,启用此选项将使列表查询变慢,如无必要请不要选择)<br /> | |||||
<input name="notsend" type="checkbox" class="np" id="notsend" value="1" /> | |||||
前台投稿及采集规则禁用本字段 | |||||
<label><input name="islist" type="checkbox" class="np" id="islist" value="1" /> | |||||
使字段可以在列表的底层模板中获得(自定义字段默认仅能在文档模板显示,启用此选项将使列表查询变慢,如无必要请不要选择)</label><br /> | |||||
<label><input name="notsend" type="checkbox" class="np" id="notsend" value="1" /> | |||||
前台投稿及采集规则禁用本字段</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -143,11 +151,11 @@ td{ padding:2px; padding-left:6px; line-height:150%; } | |||||
</td> | </td> | ||||
<td bgcolor="#FFFFFF"> | <td bgcolor="#FFFFFF"> | ||||
<input name="isnull" type="hidden" value="1" /> | <input name="isnull" type="hidden" value="1" /> | ||||
<input name="spage" type="radio" value="split" class='np' /> | |||||
是 | |||||
<label><input name="spage" type="radio" value="split" class='np' /> | |||||
是</label> | |||||
| | ||||
<input name="spage" type="radio" value="no" class='np' checked='1' /> | |||||
否 | |||||
<label><input name="spage" type="radio" value="no" class='np' checked='1' /> | |||||
否</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -155,25 +163,25 @@ td{ padding:2px; padding-left:6px; line-height:150%; } | |||||
<strong>数据类型:</strong> | <strong>数据类型:</strong> | ||||
</td> | </td> | ||||
<td bgcolor="#FFFFFF"> | <td bgcolor="#FFFFFF"> | ||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype1' value="text" checked='1'>单行文本(varchar)</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype2' value="textchar">单行文本(char)</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype3' value="multitext">多行文本</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype4' value="htmltext">HTML文本</div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype1' value="text" checked='1'> 单行文本(varchar) </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype2' value="textchar"> 单行文本(char) </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype3' value="multitext"> 多行文本 </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype4' value="htmltext"> HTML文本 </label></div> | |||||
<br class='cls' /> | <br class='cls' /> | ||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype5' value="textdata">文本保存HTML数据</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype6' value="int">整数类型</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype7' value="float">小数类型</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype8' value="datetime">时间类型</div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype5' value="textdata"> 文本保存HTML数据 </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype6' value="int"> 整数类型 </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype7' value="float"> 小数类型 </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype8' value="datetime"> 时间类型 </label></div> | |||||
<br class='cls' /> | <br class='cls' /> | ||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype9' value="img">图片</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype10' value="imgfile">图片(仅网址)</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype11' value="media">多媒体文件</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype12' value="addon">附件类型</div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype9' value="img"> 图片 </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype10' value="imgfile"> 图片(仅网址) </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype11' value="media"> 多媒体文件 </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype12' value="addon"> 附件类型 </label></div> | |||||
<br class='cls' /> | <br class='cls' /> | ||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype13' value="select">使用option下拉框</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype14' value="radio">使用radio选项卡</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype15' value="checkbox">Checkbox多选框</div> | |||||
<div class='nw'><input type='radio' class='np' name='dtype' id='dtype16' value="stepselect">联动类型</div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype13' value="select"> 使用option下拉框 </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype14' value="radio"> 使用radio选项卡 </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype15' value="checkbox"> Checkbox多选框 </label></div> | |||||
<div class='nw'><label><input type='radio' class='np' name='dtype' id='dtype16' value="stepselect"> 联动类型 </label></div> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -210,14 +218,14 @@ td{ padding:2px; padding-left:6px; line-height:150%; } | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="28" colspan="2" bgcolor="#F9FCEF"> | <td height="28" colspan="2" bgcolor="#F9FCEF"> | ||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="26%" height="45"> </td> | <td width="26%" height="45"> </td> | ||||
<td width="10%"> | <td width="10%"> | ||||
<input type="submit" name="button1" id="button1" value="确定" class="coolbg np" /> | |||||
<button type="submit" name="button1" id="button1" class="btn btn-secondary btn-sm">确定</button> | |||||
</td> | </td> | ||||
<td> | <td> | ||||
<input type="reset" name="button2" id="button2" value="重置" class="coolbg np" /> | |||||
<button type="reset" name="button2" id="button2" class="btn btn-secondary btn-sm">重置</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -1,122 +1,150 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更改字段</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | |||||
<script language="javascript"> | |||||
function GetFields() | |||||
{ | |||||
var theform = document.form1; | |||||
var itemname = theform.itemname.value; | |||||
var fieldname = theform.fname.value; | |||||
var dtype = theform.dtype.value; | |||||
var isnull = theform.isnull.value; | |||||
var vdefault = theform.vdefault.value; | |||||
var maxlength = theform.maxlength.value; | |||||
var vinnertext = theform.vinnertext.value; | |||||
var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||||
var sisnull = (isnull==0 ? "false" : "true"); | |||||
var autofield = (theform.autofield[0].checked ? theform.autofield[0].value : theform.autofield[1].value); | |||||
var islist = (theform.islist.checked ? 1 : 0); | |||||
var notsend = (theform.notsend.checked ? 1 : 0); | |||||
if(itemname=="") | |||||
{ | |||||
alert("表单提示名称不能为空!"); | |||||
theform.itemname.focus(); | |||||
return false; | |||||
} | |||||
if((dtype=="radio"||dtype=="select"||dtype=="checkbox") && vdefault=="") | |||||
{ | |||||
alert("你选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)!"); | |||||
return false; | |||||
} | |||||
if(spage=="no") spage = ""; | |||||
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\""+autofield+"\" notsend=\""+notsend+"\" type=\""+dtype+"\""; | |||||
revalue += " isnull=\""+sisnull+"\" islist=\""+islist+"\" default=\""+vdefault+"\" "; | |||||
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">\r\n"+vinnertext+"</field:"+fieldname+">\r\n"; | |||||
document.form1.fieldstring.value = revalue; | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更改字段</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | |||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="js/main.js"></script> | |||||
<script language="javascript"> | |||||
function GetFields() { | |||||
var theform = document.form1; | |||||
var itemname = theform.itemname.value; | |||||
var fieldname = theform.fname.value; | |||||
var dtype = theform.dtype.value; | |||||
var isnull = theform.isnull.value; | |||||
var vdefault = theform.vdefault.value; | |||||
var maxlength = theform.maxlength.value; | |||||
var vinnertext = theform.vinnertext.value; | |||||
var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||||
var sisnull = (isnull == 0 ? "false" : "true"); | |||||
var autofield = (theform.autofield[0].checked ? theform.autofield[0].value : theform.autofield[1].value); | |||||
var islist = (theform.islist.checked ? 1 : 0); | |||||
var notsend = (theform.notsend.checked ? 1 : 0); | |||||
if (itemname == "") { | |||||
ShowMsg("表单提示名称不能为空!"); | |||||
theform.itemname.focus(); | |||||
return false; | |||||
} | |||||
if ((dtype == "radio" || dtype == "select" || dtype == "checkbox") && vdefault == "") { | |||||
ShowMsg("你选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)!"); | |||||
return false; | |||||
} | |||||
if (spage == "no") spage = ""; | |||||
revalue = "<field:" + fieldname + " itemname=\"" + itemname + "\" autofield=\"" + autofield + "\" notsend=\"" + notsend + "\" type=\"" + dtype + "\""; | |||||
revalue += " isnull=\"" + sisnull + "\" islist=\"" + islist + "\" default=\"" + vdefault + "\" "; | |||||
revalue += " maxlength=\"" + maxlength + "\" page=\"" + spage + "\">\r\n" + vinnertext + "</field:" + fieldname + ">\r\n"; | |||||
document.form1.fieldstring.value = revalue; | |||||
return true; | |||||
return true; | |||||
} | |||||
</script> | |||||
<style type="text/css"> | |||||
<!-- | |||||
td{ padding:2px; padding-left:6px; } | |||||
.STYLE1 {color: #FF3300} | |||||
.STYLE2 {color: #666666} | |||||
.nw { float:left; width:150px; } | |||||
.cls { clear:both; } | |||||
--> | |||||
</style> | |||||
} | |||||
</script> | |||||
<style type="text/css"> | |||||
td { | |||||
padding: 2px; | |||||
padding-left: 6px; | |||||
} | |||||
.STYLE1 { | |||||
color: #FF3300 | |||||
} | |||||
.STYLE2 { | |||||
color: #666666 | |||||
} | |||||
.nw { | |||||
float: left; | |||||
width: 150px; | |||||
} | |||||
.cls { | |||||
clear: both; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body topmargin=8> | <body topmargin=8> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;"> | |||||
<form name="form1" action="mychannel_field_edit.php" method="post" onSubmit="return GetFields();"> | |||||
<input type='hidden' name='action' value='save' /> | |||||
<input type='hidden' name='id' value='<?php echo $id?>' /> | |||||
<input type='hidden' name='fname' value='<?php echo $fname?>' /> | |||||
<input type='hidden' name='issystem' value='<?php echo $issystem?>' /> | |||||
<input type='hidden' name='fieldstring' value='' /> | |||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="30%" style="padding-left:10px;"> | |||||
<a href="mychannel_main.php"><b>频道管理</b></a> <b>>> 查看/修改字段:</b> | |||||
</td> | |||||
<td align="right" style="padding-top:6px;"> | |||||
<input type="button" name="ss1" value="当前模型信息" onClick="location='mychannel_edit.php?id=<?php echo $id?>&dopost=edit';" class="nbt" /> | |||||
<input type="button" name="ss12" value="内容模型管理" onClick="location='mychannel_main.php';" class="nbt" /> </td> | |||||
</tr> | |||||
</table> </td> | |||||
</tr> | |||||
<?php if($row['issystem']==1){ ?> | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF"> | |||||
<span class="STYLE1">您当前操作的字段属于系统模型字段:修改系统模型有风险,请不要随便改动系统模型的字段相关的属性。</span> </td> | |||||
</tr> | |||||
<?php } ?> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>表单提示文字:</strong><br> | |||||
<span class="STYLE2">发布内容时显示的提示文字</span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="itemname" type="text" id="itemname" value="<?php echo $ctag->GetAtt('itemname')?>" class="pubinputs"> | |||||
*(发布内容时显示的项名字) </td> | |||||
</tr> | |||||
<tr> | |||||
<td width="28%" bgcolor="#FFFFFF"><strong>字段名称:</strong><br> | |||||
<span class="STYLE2">只能用英文字母或数字,数据表的真实字段名</span></td> | |||||
<td width="72%" bgcolor="#FFFFFF" style="table-layout:fixed;word-break:break-all"> | |||||
<?php echo $fname?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>字段类型:</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="autofield" type="radio" class="np" value="1" checked="checked"<?php echo ($ctag->GetAtt('autofield')==1 ? " checked":""); ?>/> | |||||
系统自动生成表单字段 | |||||
<input name="autofield" type="radio" class="np" value="0"<?php echo ( ($ctag->GetAtt('autofield')==''||$ctag->GetAtt('autofield')=='0') ? " checked":""); ?>/> | |||||
已经固化在发布表单中字段 </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>前台参数:</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="islist" type="checkbox" class="np" id="islist" value="1"<?php echo ($ctag->GetAtt('islist')==1 ? " checked":""); ?>/> | |||||
使字段可以在列表的底层模板中获得(自定义字段默认仅能在文档模板显示,启用此选项将使列表查询变慢,如无必要请不要选择) | |||||
<br /> | |||||
<input name="notsend" type="checkbox" class="np" id="notsend" value="1"<?php echo ($ctag->GetAtt('notsend')==1 ? " checked":""); ?>/> | |||||
前台投稿及采集规则禁用本字段 </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>数据类型:</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<select name="dtype" id="type" style="width:200px"> | |||||
<?php | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3" | |||||
style=" background:#CFCFCF;"> | |||||
<form name="form1" action="mychannel_field_edit.php" method="post" onSubmit="return GetFields();"> | |||||
<input type='hidden' name='action' value='save' /> | |||||
<input type='hidden' name='id' value='<?php echo $id?>' /> | |||||
<input type='hidden' name='fname' value='<?php echo $fname?>' /> | |||||
<input type='hidden' name='issystem' value='<?php echo $issystem?>' /> | |||||
<input type='hidden' name='fieldstring' value='' /> | |||||
<tr> | |||||
<td height="20" colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" style="padding-left:10px;"> | |||||
<a href="mychannel_main.php"><b>频道管理</b></a> <b>>> 查看/修改字段:</b> | |||||
</td> | |||||
<td align="right" style="padding-top:6px;"> | |||||
<button type="button" name="ss1" class="btn btn-secondary btn-sm" | |||||
onClick="location='mychannel_edit.php?id=<?php echo $id?>&dopost=edit';">当前模型信息</button> | |||||
<button type="button" name="ss12" onClick="location='mychannel_main.php';" class="btn btn-secondary btn-sm">内容模型管理</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<?php if($row['issystem']==1){ ?> | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF"> | |||||
<span class="STYLE1">您当前操作的字段属于系统模型字段:修改系统模型有风险,请不要随便改动系统模型的字段相关的属性。</span> </td> | |||||
</tr> | |||||
<?php } ?> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>表单提示文字:</strong><br> | |||||
<span class="STYLE2">发布内容时显示的提示文字</span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="itemname" type="text" id="itemname" value="<?php echo $ctag->GetAtt('itemname')?>" | |||||
class="pubinputs"> | |||||
*(发布内容时显示的项名字) </td> | |||||
</tr> | |||||
<tr> | |||||
<td width="28%" bgcolor="#FFFFFF"><strong>字段名称:</strong><br> | |||||
<span class="STYLE2">只能用英文字母或数字,数据表的真实字段名</span></td> | |||||
<td width="72%" bgcolor="#FFFFFF" style="table-layout:fixed;word-break:break-all"> | |||||
<?php echo $fname?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>字段类型:</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="autofield" type="radio" class="np" value="1" checked="checked" | |||||
<?php echo ($ctag->GetAtt('autofield')==1 ? " checked":""); ?> /> | |||||
系统自动生成表单字段</label> | |||||
<label><input name="autofield" type="radio" class="np" value="0" | |||||
<?php echo ( ($ctag->GetAtt('autofield')==''||$ctag->GetAtt('autofield')=='0') ? " checked":""); ?> /> | |||||
已经固化在发布表单中字段</label></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>前台参数:</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input name="islist" type="checkbox" class="np" id="islist" value="1" | |||||
<?php echo ($ctag->GetAtt('islist')==1 ? " checked":""); ?> /> | |||||
使字段可以在列表的底层模板中获得(自定义字段默认仅能在文档模板显示,启用此选项将使列表查询变慢,如无必要请不要选择)</label> | |||||
<br /> | |||||
<label><input name="notsend" type="checkbox" class="np" id="notsend" value="1" | |||||
<?php echo ($ctag->GetAtt('notsend')==1 ? " checked":""); ?> /> | |||||
前台投稿及采集规则禁用本字段</label></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>数据类型:</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<select name="dtype" id="type" style="width:200px"> | |||||
<?php | |||||
$dtype = $ctag->GetAtt('type'); | $dtype = $ctag->GetAtt('type'); | ||||
if($dtype!='' && isset($fieldtypes[$dtype])) | if($dtype!='' && isset($fieldtypes[$dtype])) | ||||
{ | { | ||||
@@ -131,69 +159,78 @@ td{ padding:2px; padding-left:6px; } | |||||
if($canchange) | if($canchange) | ||||
{ | { | ||||
?> | ?> | ||||
<option value="text">单行文本(varchar)</option> | |||||
<option value="textchar">单行文本(char)</option> | |||||
<option value="multitext">多行文本</option> | |||||
<option value="htmltext">HTML文本</option> | |||||
<option value="textdata">文本保存HTML数据</option> | |||||
<option value="int">整数类型</option> | |||||
<option value="float">小数类型</option> | |||||
<option value="datetime">时间类型</option> | |||||
<option value="img">图片</option> | |||||
<option value="imgfile">图片(仅网址)</option> | |||||
<option value="media">多媒体文件</option> | |||||
<option value="addon">附件类型</option> | |||||
<option value="select">使用option下拉框</option> | |||||
<option value="radio">使用radio选项卡</option> | |||||
<option value="checkbox">Checkbox多选框</option> | |||||
<option value="stepselect">联动类型</option> | |||||
<?php | |||||
<option value="text">单行文本(varchar)</option> | |||||
<option value="textchar">单行文本(char)</option> | |||||
<option value="multitext">多行文本</option> | |||||
<option value="htmltext">HTML文本</option> | |||||
<option value="textdata">文本保存HTML数据</option> | |||||
<option value="int">整数类型</option> | |||||
<option value="float">小数类型</option> | |||||
<option value="datetime">时间类型</option> | |||||
<option value="img">图片</option> | |||||
<option value="imgfile">图片(仅网址)</option> | |||||
<option value="media">多媒体文件</option> | |||||
<option value="addon">附件类型</option> | |||||
<option value="select">使用option下拉框</option> | |||||
<option value="radio">使用radio选项卡</option> | |||||
<option value="checkbox">Checkbox多选框</option> | |||||
<option value="stepselect">联动类型</option> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
</select> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>内容是否需要分页符:</strong><br/> | |||||
<span class="STYLE2">如果内容需要分页符,不论何种内容,都可以用#P#副标题#e#作为分页符号实现内容分页,但一个模型里仅允许一个这样的字段!</span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="isnull" type="hidden" value="1" /> | |||||
<input name="spage" type="radio" value="split"<?php if($ctag->GetAtt('page')=='split') echo " checked='1' "; ?> class='np' /> | |||||
是 | |||||
<input name="spage" type="radio" value="no"<?php if($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo " checked='1' "; ?> class='np' /> | |||||
否 </td> | |||||
</select> </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>内容是否需要分页符:</strong><br /> | |||||
<span class="STYLE2">如果内容需要分页符,不论何种内容,都可以用#P#副标题#e#作为分页符号实现内容分页,但一个模型里仅允许一个这样的字段!</span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="isnull" type="hidden" value="1" /> | |||||
<label><input name="spage" type="radio" value="split" | |||||
<?php if($ctag->GetAtt('page')=='split') echo " checked='1' "; ?> class='np' /> | |||||
是</label> | |||||
<label><input name="spage" type="radio" value="no" | |||||
<?php if($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo " checked='1' "; ?> class='np' /> | |||||
否</label></td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>默认值:</strong><br> | |||||
<span class="STYLE2"> 如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(用“,”分开,如“男,女,人妖”),如果为联动选框,这里填写联动选框项目名称。</span></td> | |||||
<td bgcolor="#FFFFFF"><textarea name="vdefault" type="text" id="vdefault" style="width:70%;height:60px"><?php echo $ctag->GetAtt('default'); ?></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>最大长度:</strong><br> | |||||
<span class="STYLE2"> 文本数据必须填写,大于255为text类型 </span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="maxlength" type="text" id="maxlength" value="<?php echo $ctag->GetAtt('maxlength')?>" style="width:80px;height:24px;padding-top:3px;"></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>自定义表单HTML:</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
◆自定义表单HTML用~name~表示提示文字,~form~表示表单元素<br> </td> | |||||
</tr> | |||||
<tr> | |||||
<td align="center" bgcolor="#FFFFFF"><br> </td> | |||||
<td bgcolor="#FFFFFF"><textarea name="vinnertext" cols="45" rows="5" id="vinnertext" style="width:70%; height:120px;"><?php echo $ctag->GetInnerText(); ?></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28" colspan="2" bgcolor="#F9FCEF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="26%" height="45"> </td> | |||||
<td width="10%"><input type="submit" name="button1" id="button1" value="确定" class="coolbg np" /> | |||||
</td> | |||||
<td><input type="reset" name="button3" id="button3" value="重置" class="coolbg np" /> | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>默认值:</strong><br> | |||||
<span class="STYLE2"> | |||||
如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(用“,”分开,如“男,女,人妖”),如果为联动选框,这里填写联动选框项目名称。</span></td> | |||||
<td bgcolor="#FFFFFF"><textarea name="vdefault" type="text" id="vdefault" | |||||
style="width:70%;height:60px"><?php echo $ctag->GetAtt('default'); ?></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>最大长度:</strong><br> | |||||
<span class="STYLE2"> 文本数据必须填写,大于255为text类型 </span></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input name="maxlength" type="text" id="maxlength" value="<?php echo $ctag->GetAtt('maxlength')?>" | |||||
style="width:80px;height:24px;padding-top:3px;"></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"><strong>自定义表单HTML:</strong></td> | |||||
<td bgcolor="#FFFFFF"> | |||||
◆自定义表单HTML用~name~表示提示文字,~form~表示表单元素<br> </td> | |||||
</tr> | |||||
<tr> | |||||
<td align="center" bgcolor="#FFFFFF"><br> </td> | |||||
<td bgcolor="#FFFFFF"><textarea name="vinnertext" cols="45" rows="5" id="vinnertext" | |||||
style="width:70%; height:120px;"><?php echo $ctag->GetInnerText(); ?></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28" colspan="2" bgcolor="#F9FCEF"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="26%" height="45"> </td> | |||||
<td width="10%"><button type="submit" name="button1" id="button1" class="btn btn-secondary btn-sm">确定</button> | |||||
</td> | |||||
<td><button type="reset" name="button3" id="button3" class="btn btn-secondary btn-sm">重置</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,30 +1,34 @@ | |||||
{dede:config name='pagesize' value='30' /} | {dede:config name='pagesize' value='30' /} | ||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>内容模型管理</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>内容模型管理</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table table-bordered maintable mt-3"> | |||||
<tr> | |||||
<td height="28" colspan="7" background="images/tbg.gif"> | |||||
<table width='96%' cellpadding='0' cellspacing='0' class="table table-borderless"> | |||||
<tr> | |||||
<td width='20%' style="padding-left:10px;"><b>内容模型管理</b></td> | |||||
<td align='right'> | |||||
<a href="mychannel_add.php" class='np coolbg'>增加新模型</a> | |||||
<a href="mychannel_edit.php?dopost=exportin" class='np coolbg'>导入模型</a> | |||||
<a href="stepselect_main.php" class='np coolbg'>联动类别管理</a> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr align="center" bgcolor="#FBFCE2" height="28"> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" | |||||
class="table table-bordered maintable mt-3"> | |||||
<tr> | |||||
<td height="28" colspan="7" background="images/tbg.gif"> | |||||
<table width='96%' cellpadding='0' cellspacing='0' class="table table-borderless"> | |||||
<tr> | |||||
<td width='20%' style="padding-left:10px;"><b>内容模型管理</b></td> | |||||
<td align='right'> | |||||
<a href="mychannel_add.php" class="btn btn-secondary btn-sm">增加新模型</a> | |||||
<a href="mychannel_edit.php?dopost=exportin" class="btn btn-secondary btn-sm">导入模型</a> | |||||
<a href="stepselect_main.php" class="btn btn-secondary btn-sm">联动类别管理</a> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr align="center" bgcolor="#FBFCE2" height="28"> | |||||
<td width="6%">id号</td> | <td width="6%">id号</td> | ||||
<td width="16%">频道名称</td> | <td width="16%">频道名称</td> | ||||
<td width="12%">识别id</td> | <td width="12%">识别id</td> | ||||
@@ -32,47 +36,54 @@ | |||||
<td width="12%">状态</td> | <td width="12%">状态</td> | ||||
<td width="8%">模型</td> | <td width="8%">模型</td> | ||||
<td>管理</td> | <td>管理</td> | ||||
</tr> | |||||
{dede:datalist} | |||||
<tr align="center" bgcolor="#FFFFFF" height="24" | |||||
onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td>{dede:field.id /}</td> | |||||
<td> | |||||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=edit'><u>{dede:field.typename /}</u></a> | |||||
</td> | |||||
<td>{dede:field.nid /}</td> | |||||
<td>{dede:field.addtable function="str_replace('#@__',$cfg_dbprefix,@me)" /}</td> | |||||
<td>{dede:field.isshow function="GetSta(@me,$fields['id'])" /}</td> | |||||
<td>{dede:field.issystem function='IsSystem(@me)'/}</td> | |||||
<td> | |||||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=copystart'><img src='images/gtk-copy.png' title='复制' alt='复制' /></a> | |||||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=gettemplets'><img src='images/gtk-tmp.png' title='模板' alt='模板' /></a> | |||||
<a href='mychannel_edit.php?id={dede:field.id /}&dopost=export'><img src='images/gtk-ex.png' title='导出' alt='导出' /></a> | |||||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=edit'><img src='images/gtk-edit.png' alt='更改' title='更改' /></a> | |||||
<a href='mychannel_edit.php?mid={dede:field.id/}&dopost=modifysearch'><img src='images/gtk-search.png' alt='自定义搜索' title='自定义搜索' /></a> | |||||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=delete'><img src='images/gtk-del.png' alt='删除' title='删除' /></a> | |||||
</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr align="center" bgcolor="#F9FCEF" height="28"> | |||||
</tr> | |||||
{dede:datalist} | |||||
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';" | |||||
onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td>{dede:field.id /}</td> | |||||
<td> | |||||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=edit'><u>{dede:field.typename /}</u></a> | |||||
</td> | |||||
<td>{dede:field.nid /}</td> | |||||
<td>{dede:field.addtable function="str_replace('#@__',$cfg_dbprefix,@me)" /}</td> | |||||
<td>{dede:field.isshow function="GetSta(@me,$fields['id'])" /}</td> | |||||
<td>{dede:field.issystem function='IsSystem(@me)'/}</td> | |||||
<td> | |||||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=copystart'><img src='images/gtk-copy.png' title='复制' | |||||
alt='复制' /></a> | |||||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=gettemplets'><img src='images/gtk-tmp.png' title='模板' | |||||
alt='模板' /></a> | |||||
<a href='mychannel_edit.php?id={dede:field.id /}&dopost=export'><img src='images/gtk-ex.png' title='导出' | |||||
alt='导出' /></a> | |||||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=edit'><img src='images/gtk-edit.png' alt='更改' | |||||
title='更改' /></a> | |||||
<a href='mychannel_edit.php?mid={dede:field.id/}&dopost=modifysearch'><img src='images/gtk-search.png' | |||||
alt='自定义搜索' title='自定义搜索' /></a> | |||||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=delete'><img src='images/gtk-del.png' alt='删除' | |||||
title='删除' /></a> | |||||
</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr align="center" bgcolor="#F9FCEF" height="28"> | |||||
<td colspan="7"> | <td colspan="7"> | ||||
{dede:pagelist listsize="5"/} | |||||
{dede:pagelist listsize="5"/} | |||||
</td> | </td> | ||||
</tr> | |||||
<tr align="center" bgcolor="#ffffff" height="32"> | |||||
</tr> | |||||
<tr align="center" bgcolor="#ffffff" height="32"> | |||||
<td colspan="7"> | <td colspan="7"> | ||||
图标说明: | |||||
<img src='images/gtk-copy.png' title='复制' alt='复制' /> 复制 | |||||
图标说明: | |||||
<img src='images/gtk-copy.png' title='复制' alt='复制' /> 复制 | |||||
<img src='images/gtk-tmp.png' title='模板' alt='模板' /> 模板 | <img src='images/gtk-tmp.png' title='模板' alt='模板' /> 模板 | ||||
<img src='images/gtk-ex.png' title='导出' alt='导出' /> 导出 | <img src='images/gtk-ex.png' title='导出' alt='导出' /> 导出 | ||||
<img src='images/gtk-edit.png' alt='更改' title='更改' /> 修改 | <img src='images/gtk-edit.png' alt='更改' title='更改' /> 修改 | ||||
<img src='images/gtk-search.png' alt='自定义搜索' title='自定义搜索' /> 自定义搜索 | <img src='images/gtk-search.png' alt='自定义搜索' title='自定义搜索' /> 自定义搜索 | ||||
<img src='images/gtk-del.png' alt='删除' title='删除' /> 删除 | <img src='images/gtk-del.png' alt='删除' title='删除' /> 删除 | ||||
</td> | </td> | ||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -104,10 +104,10 @@ | |||||
<tr bgcolor="#ffffff"> | <tr bgcolor="#ffffff"> | ||||
<td height="24" colspan="7"> | <td height="24" colspan="7"> | ||||
| | ||||
<a href="javascript:selAll()" class="coolbg">全选</a> | |||||
<a href="javascript:noSelAll()" class="coolbg">取消</a> | |||||
<a href="javascript:moveArc(0)" class="coolbg"> 还原 </a> | |||||
<a href="javascript:delArc(0)" class="coolbg"> 删除 </a></td> | |||||
<a href="javascript:selAll()" class="btn btn-secondary btn-sm">全选</a> | |||||
<a href="javascript:noSelAll()" class="btn btn-secondary btn-sm">取消</a> | |||||
<a href="javascript:moveArc(0)" class="btn btn-secondary btn-sm"> 还原 </a> | |||||
<a href="javascript:delArc(0)" class="btn btn-secondary btn-sm"> 删除 </a></td> | |||||
</tr> | </tr> | ||||
</form> | </form> | ||||
<tr align="right" bgcolor="#F9FCEF"> | <tr align="right" bgcolor="#F9FCEF"> | ||||
@@ -5,8 +5,11 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>搜索关键字管理</title> | <title>搜索关键字管理</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | <script language="javascript" src="../static/js/jquery.js"></script> | ||||
<script language="javascript" src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="js/key.js"></script> | <script language="javascript" src="js/key.js"></script> | ||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | <script language="javascript" src="../static/js/dedeajax2.js"></script> | ||||
<script language='javascript' src='js/main.js'></script> | <script language='javascript' src='js/main.js'></script> | ||||
@@ -54,7 +57,9 @@ | |||||
elseif(strtolower(substr($cfg_soft_lang, 0, 2)) == 'gb') { | elseif(strtolower(substr($cfg_soft_lang, 0, 2)) == 'gb') { | ||||
echo 'myajax.SendGet2("search_keywords_main.php?dopost=update&aid="+nid+"&keyword="+kw+"&spwords="+kws+"&count="+ct+"&pageno="+pageno+"&orderby="+orderby);'; | echo 'myajax.SendGet2("search_keywords_main.php?dopost=update&aid="+nid+"&keyword="+kw+"&spwords="+kws+"&count="+ct+"&pageno="+pageno+"&orderby="+orderby);'; | ||||
} | } | ||||
?> | ?> | ||||
ShowMsg('成功更新关键词'); | |||||
//myajax.SendGet("search_keywords_main.php?dopost=update&aid="+nid+"&keyword="+kw+"&spwords="+kws+"&count="+ct+"&pageno="+pageno); | //myajax.SendGet("search_keywords_main.php?dopost=update&aid="+nid+"&keyword="+kw+"&spwords="+kws+"&count="+ct+"&pageno="+pageno); | ||||
} | } | ||||
//删除关键词 | //删除关键词 | ||||
@@ -119,16 +124,16 @@ | |||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<div class="main" align='center'> | <div class="main" align='center'> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#D6D6D6" style="margin-bottom:3px"> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#D6D6D6" style="margin-bottom:3px" class="table maintable table-bordered mt-3"> | |||||
<tr> | <tr> | ||||
<td height="26" colspan="8" background="images/tbg.gif"> | <td height="26" colspan="8" background="images/tbg.gif"> | ||||
<table width="100%" border="0"> | |||||
<table width="100%" border="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="31%" align="left" style="padding-left:10px;"><strong>搜索关键词维护</strong></td> | <td width="31%" align="left" style="padding-left:10px;"><strong>搜索关键词维护</strong></td> | ||||
<td align="right"> | <td align="right"> | ||||
| | ||||
<input class="np coolbg" name="n1" type="button" id="n1" value="文档关键字维护" | |||||
onClick="location='article_keywords_main.php';" style="width:135"> | |||||
<button class="btn btn-secondary btn-sm" name="n1" type="button" id="n1" | |||||
onClick="location='article_keywords_main.php';">文档关键字维护</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -1,108 +1,123 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>配送方式配置</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>配送方式配置</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | |||||
</head> | </head> | ||||
<style> | <style> | ||||
.fontOrange { COLOR: #ff4e00} | |||||
.npvar { width:90% } | |||||
.fontOrange { | |||||
COLOR: #ff4e00 | |||||
} | |||||
.npvar { | |||||
width: 90% | |||||
} | |||||
</style> | </style> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<center> | |||||
<form action="shops_delivery.php" method="post" name="form1"> | |||||
<input type="hidden" name="do" value="add"> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" style="margin-bottom:8px;" > | |||||
<tr> | |||||
<td> | |||||
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#cfcfcf" class="sysinfo"> | |||||
<tr align="center" height="24"> | |||||
<td height="30" colspan="2" align="left" bgcolor="#EDF9D5" background='images/tbg.gif' style="padding-left:10px;"> | |||||
<strong>增加一个配送方式</strong> | |||||
</td> | |||||
</tr> | |||||
<tr align="center" height="24" bgcolor="#FFFFFF"> | |||||
<td width="13%" height="30" align="right" bgcolor="#FFFFFF"> | |||||
名称: | |||||
</td> | |||||
<td align="left" bgcolor="#FFFFFF"><input name="dname" style="margin-left:6px;" type="text" id="dname" /> | |||||
*此处填写配送方式名称</td> | |||||
</tr> | |||||
<tr align="center" height="24" bgcolor="#ECF8FF"> | |||||
<td width="13%" height="30" align="right" bgcolor="#FFFFFF"> | |||||
手续费: | |||||
</td> | |||||
<td align="left" bgcolor="#FFFFFF"> | |||||
<input name="price" type="text" id="price" style="margin-left:6px;" value="0.00" size="6" maxlength="6"/> | |||||
元 | |||||
*发货时所用的手续费,若要收取,请填写(精确到小数位两位)! | |||||
</td> | |||||
</tr> | |||||
<tr align="center" height="24" bgcolor="#ECF8FF"> | |||||
<td width="13%" height="30" align="right" bgcolor="#FFFFFF"> | |||||
简要说明: | |||||
</td> | |||||
<td align="left" bgcolor="#FFFFFF"> | |||||
<textarea name="des" id="des" style="margin-left:6px;height:50px;width:320px;"></textarea> | |||||
最多100个文字内,简要说明一下。 | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#F3FFDD"> | |||||
<td height="50" colspan="3" align="center" bgcolor="#FFFFFF"> | |||||
<table width="200" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr align="center"> | |||||
<td> | |||||
<input name="imageField" type="submit" value="确认" class='np coolbg' /> | |||||
</td> | |||||
<td align="center"> | |||||
<input type="reset" name="button" value="重置" class='np coolbg' /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
<form action="shops_delivery.php" method="post" name="form2"> | |||||
<input type="hidden" name="do" value="edit" /> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#cfcfcf;"> | |||||
<tr> | |||||
<td height="28" colspan="3" align="left" bgcolor="#EDF9D5" background='images/tbg.gif'> | |||||
<strong> 已有配送方式列表<strong></strong></strong> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#F3FFDD"> | |||||
<td height="50" colspan="3" align="center" bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellpadding="1" cellspacing="2" style="BORDER: #CCC 1px solid;"> | |||||
<?php foreach($deliveryarr as $rs) { ?> | |||||
<input type="hidden" name="pid[]" value="<?php echo $rs['pid'];?>" /> | |||||
<tr> | |||||
<td width="23%" height="24" align="left" bgcolor="#F0F0F0" style="padding-left:5px;"> | |||||
<input name="m_dname<?php echo $rs['pid'];?>" type="text" value="<?php echo $rs['dname'];?>" /> | |||||
<div style="background-color:#FFFFFF; padding:3px;BORDER-TOP: #CCC 1px solid;"><a href="shops_delivery.php?do=del&id=<?php echo $rs['pid'];?>" onClick="return(confirm('删除后无法恢复,您确定删除吗?'))">删除</a></div> | |||||
</td> | |||||
<td width="77%" align="left" valign="top" bgcolor="#F0F0F0" style="BORDER-BOTTOM: #CCC 1px solid;padding-left:5px;"> | |||||
手续费: | |||||
<input name="m_price<?php echo $rs['pid'];?>" type="text" id="m_price<?php echo $rs['pid'];?>" style="margin-left:6px;" value="<?php echo $rs['price'];?>" size="6" maxlength="6"/> | |||||
元 | |||||
<div style="background-color:#FFFFFF; padding:3px;BORDER-TOP: #CCC 1px solid;"><textarea name="m_des<?php echo $rs['pid'];?>" id="m_des<?php echo $rs['pid'];?>" style="margin-left:6px; width:320px;"><?php echo $rs['des'];?></textarea></div> | |||||
</td> | |||||
</tr> | |||||
<?php }?> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#F3FFDD"> | |||||
<td height="36" colspan="3" align="left" bgcolor="#FFFFFF"> | |||||
<input name="imageField2" type="submit" class="np coolbg" value="修改" /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</center> | |||||
<center> | |||||
<form action="shops_delivery.php" method="post" name="form1"> | |||||
<input type="hidden" name="do" value="add"> | |||||
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#cfcfcf" class="table maintable table-bordered mt-3 sysinfo"> | |||||
<tr align="center" height="24"> | |||||
<td height="30" colspan="2" align="left" bgcolor="#EDF9D5" background='images/tbg.gif' | |||||
style="padding-left:10px;"> | |||||
<strong>增加一个配送方式</strong> | |||||
</td> | |||||
</tr> | |||||
<tr align="center" height="24" bgcolor="#FFFFFF"> | |||||
<td width="13%" height="30" align="right" bgcolor="#FFFFFF"> | |||||
名称: | |||||
</td> | |||||
<td align="left" bgcolor="#FFFFFF"><input name="dname" style="margin-left:6px;" type="text" | |||||
id="dname" /> | |||||
*此处填写配送方式名称</td> | |||||
</tr> | |||||
<tr align="center" height="24" bgcolor="#ECF8FF"> | |||||
<td width="13%" height="30" align="right" bgcolor="#FFFFFF"> | |||||
手续费: | |||||
</td> | |||||
<td align="left" bgcolor="#FFFFFF"> | |||||
<input name="price" type="text" id="price" style="margin-left:6px;" value="0.00" size="6" | |||||
maxlength="6" /> | |||||
元 | |||||
*发货时所用的手续费,若要收取,请填写(精确到小数位两位)! | |||||
</td> | |||||
</tr> | |||||
<tr align="center" height="24" bgcolor="#ECF8FF"> | |||||
<td width="13%" height="30" align="right" bgcolor="#FFFFFF"> | |||||
简要说明: | |||||
</td> | |||||
<td align="left" bgcolor="#FFFFFF"> | |||||
<textarea name="des" id="des" style="margin-left:6px;height:50px;width:320px;"></textarea> | |||||
最多100个文字内,简要说明一下。 | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#F3FFDD"> | |||||
<td height="50" colspan="3" align="center" bgcolor="#FFFFFF"> | |||||
<table width="200" border="0" cellspacing="1" cellpadding="1" class="table table-borderless"> | |||||
<tr align="center"> | |||||
<td> | |||||
<button type="submit" class='btn btn-secondary'>确认</button> | |||||
</td> | |||||
<td align="center"> | |||||
<button type="reset" name="button" class='btn btn-secondary'>重置</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
<form action="shops_delivery.php" method="post" name="form2"> | |||||
<input type="hidden" name="do" value="edit" /> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" | |||||
style="background:#cfcfcf;"> | |||||
<tr> | |||||
<td height="28" colspan="3" align="left" bgcolor="#EDF9D5" background='images/tbg.gif'> | |||||
<strong> 已有配送方式列表<strong></strong></strong> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#F3FFDD"> | |||||
<td height="50" colspan="3" align="center" bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellpadding="1" cellspacing="2" style="BORDER: #CCC 1px solid;" class="table table-striped"> | |||||
<?php foreach($deliveryarr as $rs) { ?> | |||||
<input type="hidden" name="pid[]" value="<?php echo $rs['pid'];?>" /> | |||||
<tr> | |||||
<td width="23%" height="24" align="left" style="padding-left:5px;"> | |||||
<input name="m_dname<?php echo $rs['pid'];?>" type="text" value="<?php echo $rs['dname'];?>" /> | |||||
<div style="padding:3px;BORDER-TOP: #CCC 1px solid;"><a class="btn btn-secondary btn-sm" | |||||
href="shops_delivery.php?do=del&id=<?php echo $rs['pid'];?>" | |||||
onClick="return(confirm('删除后无法恢复,您确定删除吗?'))">删除</a></div> | |||||
</td> | |||||
<td width="77%" align="left" valign="top" | |||||
style="BORDER-BOTTOM: #CCC 1px solid;padding-left:5px;"> | |||||
手续费: | |||||
<input name="m_price<?php echo $rs['pid'];?>" type="text" id="m_price<?php echo $rs['pid'];?>" | |||||
style="margin-left:6px;" value="<?php echo $rs['price'];?>" size="6" maxlength="6" /> | |||||
元 | |||||
<div style="padding:3px;BORDER-TOP: #CCC 1px solid;"><textarea | |||||
name="m_des<?php echo $rs['pid'];?>" id="m_des<?php echo $rs['pid'];?>" | |||||
style="margin-left:6px; width:320px;"><?php echo $rs['des'];?></textarea></div> | |||||
</td> | |||||
</tr> | |||||
<?php }?> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#F3FFDD"> | |||||
<td height="36" colspan="3" align="left" bgcolor="#FFFFFF"> | |||||
<button name="imageField2" type="submit" class="btn btn-secondary">修改</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</center> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -63,13 +63,13 @@ | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>" /> | <input type="hidden" name="channelid" value="<?php echo $channelid?>" /> | ||||
<input type="hidden" name="cid" value="<?php echo $cid; ?>" /> | <input type="hidden" name="cid" value="<?php echo $cid; ?>" /> | ||||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | <input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||||
<tr> | <tr> | ||||
<td width="64%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | <td width="64%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | ||||
href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>软件列表</u></a>>>发布新软件 | href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>软件列表</u></a>>>发布新软件 | ||||
</td> | </td> | ||||
<td align="right"> <a href="catalog_main.php">[<u>栏目管理</u>]</a> | |||||
[<a href="soft_config.php"><u>下载频道参数设定</u></a>] </td> | |||||
<td align="right"> <a href="catalog_main.php" class="btn btn-secondary btn-sm">栏目管理</a> | |||||
<a href="soft_config.php" class="btn btn-secondary btn-sm">下载频道参数设定</a> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -128,9 +128,9 @@ | |||||
while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
{ | { | ||||
if($trow->att=='j') | if($trow->att=='j') | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'>{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> "; | |||||
else | else | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'>{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
?> </td> | ?> </td> | ||||
</tr> | </tr> | ||||
@@ -173,15 +173,15 @@ | |||||
<tr> | <tr> | ||||
<td height="30"> | <td height="30"> | ||||
<input name="picname" type="text" id="picname" style="width:240px" /> | <input name="picname" type="text" id="picname" style="width:240px" /> | ||||
<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" | |||||
onClick="SelectImage('form1.picname','small');" class='np coolbg' /> | |||||
<input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' />远程 | |||||
<span class="btn btn-success fileinput-button"> | |||||
<button type="button" name="Submit2" | |||||
onClick="SelectImage('form1.picname','small');" class='btn btn-secondary btn-sm'>站内选择</button> | |||||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程 </label> | |||||
<span class="btn btn-secondary fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | <i class="glyphicon glyphicon-plus"></i> | ||||
选择图片 | 选择图片 | ||||
<input type="file" name="files[]" id="iptAddImages"> | <input type="file" name="files[]" id="iptAddImages"> | ||||
</span> | </span> | ||||
<button id="btnClearAll" type="button" class="btn btn-danger delete"> | |||||
<button id="btnClearAll" type="button" class="btn btn-secondary delete"> | |||||
<i class="fa fa-trash-o"></i> | <i class="fa fa-trash-o"></i> | ||||
<span>清空</span> | <span>清空</span> | ||||
</button> | </button> | ||||
@@ -231,7 +231,7 @@ | |||||
<?php | <?php | ||||
if($cfg_need_typeid2=='Y') | if($cfg_need_typeid2=='Y') | ||||
{ | { | ||||
echo "<a href='javascript:AddTypeid2();'>【<u>选择副栏目</u>】</a>"; | |||||
echo "<a href='javascript:AddTypeid2();' class='btn btn-secondary btn-sm'>选择副栏目</a>"; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -349,8 +349,8 @@ | |||||
<option value="KB">KB</option> | <option value="KB">KB</option> | ||||
<option value="GB">GB</option> | <option value="GB">GB</option> | ||||
</select> | </select> | ||||
<input name="autosize" type="checkbox" class="np" id="autosize" value="1" checked> | |||||
自动获得 (必须包含一个本地软件) </td> | |||||
<label><input name="autosize" type="checkbox" class="np" id="autosize" value="1" checked> | |||||
自动获得 (必须包含一个本地软件)</label> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -386,8 +386,8 @@ | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="26" colspan="4" style="border-top:1px dashed #8EAF61"> <span | <td height="26" colspan="4" style="border-top:1px dashed #8EAF61"> <span | ||||
class="STYLE1">(如果设定了下载限制,[<a href="soft_config.php" | |||||
target="_blank"><u>软件频道设置</u></a>]中“附件下载方式:”必须选择“链接到跳转页面”) </span></td> | |||||
class="STYLE1">(如果设定了下载限制,<a class='btn btn-secondary btn-sm' href="soft_config.php" | |||||
target="_blank">软件频道设置</a>中“附件下载方式:”必须选择“链接到跳转页面”) </span></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -402,7 +402,7 @@ | |||||
<td width="90" height="30"> 本地地址:</td> | <td width="90" height="30"> 本地地址:</td> | ||||
<td> | <td> | ||||
<input name="softurl1" type="text" id="softurl1" size="35" /> | <input name="softurl1" type="text" id="softurl1" size="35" /> | ||||
<input name="sel1" type="button" id="sel1" value="选取" onClick="SelectSoft('form1.softurl1')" /> | |||||
<button class='btn btn-secondary btn-sm' name="sel1" type="button" id="sel1" onClick="SelectSoft('form1.softurl1')">选取</button> | |||||
服务器名称: | 服务器名称: | ||||
<input name="servermsg1" type="text" id="servermsg1" value="本地下载" style="width:150px" /> | <input name="servermsg1" type="text" id="servermsg1" value="本地下载" style="width:150px" /> | ||||
</td> | </td> | ||||
@@ -438,7 +438,7 @@ | |||||
<input type='text' name='softurl<?php echo $startNum; ?>' style='width:120px' value='' /> | <input type='text' name='softurl<?php echo $startNum; ?>' style='width:120px' value='' /> | ||||
<input type='text' name='servermsg<?php echo $startNum; ?>' style='width:150px' | <input type='text' name='servermsg<?php echo $startNum; ?>' style='width:150px' | ||||
value='<?php echo $sitename; ?>' /> | value='<?php echo $sitename; ?>' /> | ||||
<input type='checkbox' name='need<?php echo $startNum; ?>' class='np' value='1' checked />启用 | |||||
<label><input type='checkbox' name='need<?php echo $startNum; ?>' class='np' value='1' checked /> 启用 </label> | |||||
<br /> | <br /> | ||||
<?php | <?php | ||||
$startNum++; | $startNum++; | ||||
@@ -460,9 +460,9 @@ | |||||
<td width="90">其它地址:</td> | <td width="90">其它地址:</td> | ||||
<td> | <td> | ||||
<input name="picnum" type="text" id="picnum" size="8" value="5" /> | <input name="picnum" type="text" id="picnum" size="8" value="5" /> | ||||
<input name='kkkup' type='button' id='kkkup2' value='增加地址' onClick="MakeUpload();" /> | |||||
<button name='kkkup' class='btn btn-secondary btn-sm' type='button' id='kkkup2' onClick="MakeUpload();">增加地址</button> | |||||
| | ||||
<input type="button" name="Submit3" id="btsh3" value="隐藏地址" onClick="ShowHideAddr();" /> | |||||
<button type="button" class='btn btn-secondary btn-sm' name="Submit3" id="btsh3" onClick="ShowHideAddr();">隐藏地址</button> | |||||
(最多为30个链接) | (最多为30个链接) | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -480,15 +480,17 @@ | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 附加选项:</td> | <td width="90"> 附加选项:</td> | ||||
<td><input name="remote" type="checkbox" class="np" id="remote" value="1" | |||||
<td> | |||||
<label><input name="remote" type="checkbox" class="np" id="remote" value="1" | |||||
<?php if($cfg_rm_remote=='Y') echo ' checked'; ?>> | <?php if($cfg_rm_remote=='Y') echo ' checked'; ?>> | ||||
下载远程图片和资源 | |||||
<input name="dellink" type="checkbox" class="np" id="dellink" value="1" | |||||
下载远程图片和资源</label> | |||||
<label><input name="dellink" type="checkbox" class="np" id="dellink" value="1" | |||||
<?php if($cfg_arc_dellink=='Y') echo ' checked'; ?>> | <?php if($cfg_arc_dellink=='Y') echo ' checked'; ?>> | ||||
删除非站内链接 <a href="javascript:OpenMyWin('article_allowurl_edit.php');">[设置]</a> | |||||
<input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" | |||||
删除非站内链接</label> <a class='btn btn-secondary btn-sm' href="javascript:OpenMyWin('article_allowurl_edit.php');">设置</a> | |||||
<label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" | |||||
<?php if($cfg_arc_autopic=='Y') echo ' checked'; ?>> | <?php if($cfg_arc_autopic=='Y') echo ' checked'; ?>> | ||||
提取第一个图片为缩略图 </td> | |||||
提取第一个图片为缩略图</label> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -510,11 +512,11 @@ | |||||
<tr> | <tr> | ||||
<td width="90" height="22" width="240"> 评论选项:</td> | <td width="90" height="22" width="240"> 评论选项:</td> | ||||
<td width="240"> | <td width="240"> | ||||
<input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> />允许评论 | |||||
<label><input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论 </label> | |||||
| | ||||
<input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> />禁止评论 | |||||
<label><input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论 </label> | |||||
</td> | </td> | ||||
<td width="90">浏览次数:</td> | <td width="90">浏览次数:</td> | ||||
<td> | <td> | ||||
@@ -542,7 +544,7 @@ | |||||
<td width="90">标题颜色:</td> | <td width="90">标题颜色:</td> | ||||
<td> | <td> | ||||
<input name="color" type="text" id="color" style="width:120px"> | <input name="color" type="text" id="color" style="width:120px"> | ||||
<input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)"> </td> | |||||
<button name="modcolor" type="button" id="modcolor" class='btn btn-secondary btn-sm' onClick="ShowColor(event,this)">选取</button> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -560,10 +562,10 @@ | |||||
</td> | </td> | ||||
<td width="90">发布选项:</td> | <td width="90">发布选项:</td> | ||||
<td> | <td> | ||||
<input name="ishtml" type="radio" class="np" value="1" checked> | |||||
生成HTML | |||||
<input type="radio" name="ishtml" class="np" value="0"> | |||||
仅动态浏览 | |||||
<label><input name="ishtml" type="radio" class="np" value="1" checked> | |||||
生成HTML</label> | |||||
<label><input type="radio" name="ishtml" class="np" value="0"> | |||||
仅动态浏览</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -593,11 +595,11 @@ | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 关键字:</td> | <td width="90"> 关键字:</td> | ||||
<td colspan="2"><input type='text' name="keywords" id="keywords" style="width:290px;" value="" /><input | |||||
<td colspan="2"><input type='text' name="keywords" id="keywords" style="width:290px;" value="" /> | |||||
<button type="button" name="Submit" class='btn btn-secondary btn-sm' | |||||
onClick="SelectKeywords('form1.keywords');">浏览...</button> <label><input | |||||
name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" | name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" | ||||
<?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>> | |||||
<input type="button" name="Submit" value="浏览..." style="width:56;height:20" | |||||
onClick="SelectKeywords('form1.keywords');"> 自动获取,手动填写用","分开</td> | |||||
<?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>> 自动获取,手动填写用","分开</label></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -606,7 +608,7 @@ | |||||
<td height="24" colspan="4" class="bline"> | <td height="24" colspan="4" class="bline"> | ||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 内容摘要:</td> | |||||
<td width="120"> 内容摘要:</td> | |||||
<td width="449"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td> | <td width="449"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td> | ||||
<td width="261"> </td> | <td width="261"> </td> | ||||
</tr> | </tr> | ||||
@@ -617,7 +619,7 @@ | |||||
<td height="24" colspan="4"> | <td height="24" colspan="4"> | ||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 自定义文件名:</td> | |||||
<td width="120"> 自定义文件名:</td> | |||||
<td width="449"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | <td width="449"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | ||||
<td width="261"> </td> | <td width="261"> </td> | ||||
</tr> | </tr> | ||||
@@ -627,7 +629,7 @@ | |||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | ||||
style="border:1px solid #cfcfcf;border-top:none;"> | |||||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
<tr> | <tr> | ||||
<td height="35"> | <td height="35"> | ||||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | <table width="100%" border="0" cellspacing="1" cellpadding="1"> | ||||
@@ -636,10 +638,8 @@ | |||||
<td width="83%"> | <td width="83%"> | ||||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | <table width="214" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="115"><input name="imageField" type="image" src="images/button_ok.gif" width="60" | |||||
height="22" class="np" border="0"></td> | |||||
<td width="99"><img src="images/button_reset.gif" width="60" height="22" border="0" | |||||
onClick="location.reload();" style="cursor:pointer;"></td> | |||||
<td width="115" class="py-3"><button type="submit" class="btn btn-secondary">保存</button></td> | |||||
<td width="99" class="py-3"><button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -1,82 +1,102 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>软件频道设置</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language="JavaScript"> | |||||
function AddServer() | |||||
{ | |||||
if(document.form1.serverurl.value==""||document.form1.serverurl.value=="http://"){ alert('服务器网址不能为空!'); return ;} | |||||
if(document.form1.servername.value==""){ alert('服务器名称不能为空!'); return ;} | |||||
if(document.form1.servertype.value==""){ alert('服务器类型不能为空!'); return ;} | |||||
document.form1.sites.value += document.form1.serverurl.value+" | "+document.form1.servername.value+" | "+document.form1.servertype.value+"\r\n"; | |||||
} | |||||
</script> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>软件频道设置</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language='javascript' src="js/main.js"></script> | |||||
<script language="JavaScript"> | |||||
function AddServer() { | |||||
if (document.form1.serverurl.value == "" || document.form1.serverurl.value == "http://") { ShowMsg('服务器网址不能为空!'); return; } | |||||
if (document.form1.servername.value == "") { ShowMsg('服务器名称不能为空!'); return; } | |||||
if (document.form1.servertype.value == "") { ShowMsg('服务器类型不能为空!'); return; } | |||||
document.form1.sites.value += document.form1.serverurl.value + " | " + document.form1.servername.value + " | " + document.form1.servertype.value + "\r\n"; | |||||
} | |||||
</script> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name="form1" action="soft_config.php" method="post"> | |||||
<input type="hidden" name="dopost" value="save" /> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> <table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>软件频道设置:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF" width="200">链接显示方式:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input type="radio" name="downtype" class="np" value="0"<?php if($row['downtype']==0) echo " checked='checked' ";?>/> | |||||
直接显示地址列表 | |||||
<input name="downtype" type="radio" value="1" class="np"<?php if($row['downtype']==1) echo " checked='checked' ";?>/> | |||||
要求进入下载地址列表页 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">附件下载方式:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input type="radio" name="gotojump" class="np" value="0"<?php if($row['gotojump']==0) echo " checked='checked' ";?>/> | |||||
链接到真实软件地址 | |||||
<input name="gotojump" type="radio" class="np" value="1"<?php if($row['gotojump']==1) echo " checked='checked' ";?>/> | |||||
链接到跳转页面 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">是否启用镜像站点:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input type="radio" name="ismoresite" class="np" value="1"<?php if($row['ismoresite']==1) echo " checked='checked' ";?>/> | |||||
启用 | |||||
<input name="ismoresite" type="radio" class="np" value="0"<?php if($row['ismoresite']==0) echo " checked='checked' ";?>/> | |||||
不启用 </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">启用镜像站点后是否保留本地下载:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input type="radio" name="islocal" class="np" value="1"<?php if($row['islocal']==1) echo " checked='checked' ";?>/> | |||||
保留 | |||||
<input name="islocal" type="radio" class="np" value="0"<?php if($row['islocal']==0) echo " checked='checked' ";?>/> | |||||
不保留 </td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">镜像处理方式:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input type="radio" name="moresitedo" class="np" value="1"<?php if($row['moresitedo']==1) echo " checked='checked' ";?>/> | |||||
根据本地地址和服务器列表自动生成 | |||||
<input name="moresitedo" type="radio" class="np" value="0"<?php if($row['moresitedo']==0) echo " checked='checked' ";?>/> | |||||
发布时按服务器生成列表由我手工填写 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#F9FCEF" colspan='2' style="padding-left:10px;"><b>不管是全局,还是具体某软件设置了下面的参数,附件下载方式都必须链接到中转页,否则无效!</b></td> | |||||
</td> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">下载默认等级:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<select name="dfrank" id="dfrank" style="width:150px"> | |||||
<?php | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="soft_config.php" method="post"> | |||||
<input type="hidden" name="dopost" value="save" /> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>软件频道设置:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF" width="200">链接显示方式:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input type="radio" name="downtype" class="np" value="0" | |||||
<?php if($row['downtype']==0) echo " checked='checked' ";?> /> | |||||
直接显示地址列表</label> | |||||
<label><input name="downtype" type="radio" value="1" class="np" | |||||
<?php if($row['downtype']==1) echo " checked='checked' ";?> /> | |||||
要求进入下载地址列表页</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">附件下载方式:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input type="radio" name="gotojump" class="np" value="0" | |||||
<?php if($row['gotojump']==0) echo " checked='checked' ";?> /> | |||||
链接到真实软件地址</label> | |||||
<label><input name="gotojump" type="radio" class="np" value="1" | |||||
<?php if($row['gotojump']==1) echo " checked='checked' ";?> /> | |||||
链接到跳转页面</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">是否启用镜像站点:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input type="radio" name="ismoresite" class="np" value="1" | |||||
<?php if($row['ismoresite']==1) echo " checked='checked' ";?> /> | |||||
启用</label> | |||||
<label><input name="ismoresite" type="radio" class="np" value="0" | |||||
<?php if($row['ismoresite']==0) echo " checked='checked' ";?> /> | |||||
不启用</label></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">启用镜像站点后是否保留本地下载:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input type="radio" name="islocal" class="np" value="1" | |||||
<?php if($row['islocal']==1) echo " checked='checked' ";?> /> | |||||
保留</label> | |||||
<label><input name="islocal" type="radio" class="np" value="0" | |||||
<?php if($row['islocal']==0) echo " checked='checked' ";?> /> | |||||
不保留</label></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">镜像处理方式:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input type="radio" name="moresitedo" class="np" value="1" | |||||
<?php if($row['moresitedo']==1) echo " checked='checked' ";?> /> | |||||
根据本地地址和服务器列表自动生成</label> | |||||
<label><input name="moresitedo" type="radio" class="np" value="0" | |||||
<?php if($row['moresitedo']==0) echo " checked='checked' ";?> /> | |||||
发布时按服务器生成列表由我手工填写</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#F9FCEF" colspan='2' style="padding-left:10px;"><b>不管是全局,还是具体某软件设置了下面的参数,附件下载方式都必须链接到中转页,否则无效!</b> | |||||
</td> | |||||
</td> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">下载默认等级:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<select name="dfrank" id="dfrank" style="width:150px"> | |||||
<?php | |||||
$urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
$dsql->SetQuery("Select * from `#@__arcrank` where `rank`>=0 "); | $dsql->SetQuery("Select * from `#@__arcrank` where `rank`>=0 "); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
@@ -87,52 +107,56 @@ function AddServer() | |||||
else echo " <option value='{$nrow['rank']}'>{$nrow['membername']}</option>\r\n"; | else echo " <option value='{$nrow['rank']}'>{$nrow['membername']}</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">下载默认金币:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input type="text" name="dfywboy" class="np" value="<?php echo $row['dfywboy']; ?>" style='width:80px;' /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">参数限制方式:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input type="radio" name="argrange" class="np" value="0"<?php if($row['argrange']==0) echo " checked='checked' ";?>/>允许发布时重新选择权限 | |||||
<input type="radio" name="argrange" class="np" value="2"<?php if($row['argrange']==1) echo " checked='checked' ";?>/>所有软件均使用此权限 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" colspan="2" bgcolor="#F9FCEF" style="padding-left:10px;"> | |||||
<strong>镜像服务器列表: </strong></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF">服务器网址: | |||||
<input name="serverurl" type="text" id="serverurl" value="http://" /> | |||||
服务器名称: | |||||
<input name="servername" type="text" id="servername" /> | |||||
服务器类型: | |||||
<input name="servertype" type="text" id="servertype" value="默认" /> | |||||
<input type="button" name="Submit" value="增加一项" onClick="AddServer()" class="coolbg np" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="62" colspan="2" bgcolor="#FFFFFF"><textarea name="sites" id="sites" style="width:99%;height:150px"><?php echo $row['sites']; ?></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" colspan="2" bgcolor="#F9FCEF" style="padding-left:10px;"><strong>下载说明:</strong></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="62" colspan="2" bgcolor="#FFFFFF"><?php GetEditor('downmsg',$row['downmsg'],250); ?></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="41" colspan="2" bgcolor="#F9FCEF" align="center"> | |||||
<input type="submit" name="Submit" value="保存设置" class="coolbg np" /> | |||||
<input type="reset" name="rset" id="rset" value="重置" class="coolbg np" /> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</select> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">下载默认金币:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<input type="text" name="dfywboy" class="np" value="<?php echo $row['dfywboy']; ?>" style='width:80px;' /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF">参数限制方式:</td> | |||||
<td bgcolor="#FFFFFF"> | |||||
<label><input type="radio" name="argrange" class="np" value="0" | |||||
<?php if($row['argrange']==0) echo " checked='checked' ";?> /> 允许发布时重新选择权限</label> | |||||
<label><input type="radio" name="argrange" class="np" value="2" | |||||
<?php if($row['argrange']==1) echo " checked='checked' ";?> /> 所有软件均使用此权限</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" colspan="2" bgcolor="#F9FCEF" style="padding-left:10px;"> | |||||
<strong>镜像服务器列表: </strong></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF">服务器网址: | |||||
<input name="serverurl" type="text" id="serverurl" value="http://" /> | |||||
服务器名称: | |||||
<input name="servername" type="text" id="servername" /> | |||||
服务器类型: | |||||
<input name="servertype" type="text" id="servertype" value="默认" /> | |||||
<button type="button" name="Submit" onClick="AddServer()" class="btn btn-secondary btn-sm">增加一项</button> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="62" colspan="2" bgcolor="#FFFFFF"><textarea name="sites" id="sites" | |||||
style="width:99%;height:150px"><?php echo $row['sites']; ?></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" colspan="2" bgcolor="#F9FCEF" style="padding-left:10px;"><strong>下载说明:</strong></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="62" colspan="2" bgcolor="#FFFFFF"><?php GetEditor('downmsg',$row['downmsg'],250); ?></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="41" colspan="2" bgcolor="#F9FCEF" align="center"> | |||||
<button type="submit" name="Submit" class="btn btn-secondary">保存设置</button> | |||||
<button type="reset" name="rset" id="rset" class="btn btn-secondary">重置</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -53,13 +53,13 @@ | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>" /> | <input type="hidden" name="channelid" value="<?php echo $channelid?>" /> | ||||
<input type="hidden" name="id" value="<?php echo $aid?>" /> | <input type="hidden" name="id" value="<?php echo $aid?>" /> | ||||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | <input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||||
<tr> | <tr> | ||||
<td width="85%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | <td width="85%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | ||||
href="catalog_do.php?cid=<?php echo $arcRow["typeid"]?>&dopost=listArchives"></a><a | href="catalog_do.php?cid=<?php echo $arcRow["typeid"]?>&dopost=listArchives"></a><a | ||||
href="catalog_do.php?cid=<?php echo $arcRow["typeid"]?>&dopost=listArchives"><u>软件列表</u></a>>>更改软件 | href="catalog_do.php?cid=<?php echo $arcRow["typeid"]?>&dopost=listArchives"><u>软件列表</u></a>>>更改软件 | ||||
</td> | </td> | ||||
<td align="right"> <a href="catalog_main.php">[<u>栏目管理</u>]</a> </td> | |||||
<td align="right"> <a href="catalog_main.php" class="btn btn-secondary btn-sm">栏目管理</a> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | ||||
@@ -118,9 +118,9 @@ | |||||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | ||||
else $jumpclick = ''; | else $jumpclick = ''; | ||||
if(preg_match("#".$trow->att."#",$arcRow['flag'])) | if(preg_match("#".$trow->att."#",$arcRow['flag'])) | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' />{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' /> {$trow->attname}[{$trow->att}]</label> "; | |||||
else | else | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} />{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
?> </td> | ?> </td> | ||||
</tr> | </tr> | ||||
@@ -165,16 +165,16 @@ | |||||
</td> | </td> | ||||
<td width="560"> | <td width="560"> | ||||
<input name="picname" type="text" id="picname" style="width:300px" | <input name="picname" type="text" id="picname" style="width:300px" | ||||
value="<?php echo $arcRow["litpic"]?>"><input type="button" name="Submit" value="浏览..." | |||||
style="width:70px" onClick="SelectImage('form1.picname','');"> | |||||
<input type='checkbox' class='np' name='ddisremote' value='1'> | |||||
远程 | |||||
<span class="btn btn-success fileinput-button"> | |||||
value="<?php echo $arcRow["litpic"]?>"> <button type="button" name="Submit" class="btn btn-secondary btn-sm" | |||||
onClick="SelectImage('form1.picname','');">浏览...</button> | |||||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> | |||||
远程 </label> | |||||
<span class="btn btn-secondary btn-sm fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | <i class="glyphicon glyphicon-plus"></i> | ||||
选择图片 | 选择图片 | ||||
<input type="file" name="files[]" id="iptAddImages"> | <input type="file" name="files[]" id="iptAddImages"> | ||||
</span> | </span> | ||||
<button id="btnClearAll" type="button" class="btn btn-danger delete"> | |||||
<button id="btnClearAll" type="button" class="btn btn-secondary btn-sm delete"> | |||||
<i class="fa fa-trash-o"></i> | <i class="fa fa-trash-o"></i> | ||||
<span>清空</span> | <span>清空</span> | ||||
</button> | </button> | ||||
@@ -400,9 +400,9 @@ if($cfg_need_typeid2=='Y') { | |||||
<td width="72"> 其它地址:</td> | <td width="72"> 其它地址:</td> | ||||
<td> | <td> | ||||
<input name="picnum" type="text" id="picnum" size="8" value="5" /> | <input name="picnum" type="text" id="picnum" size="8" value="5" /> | ||||
<input name='kkkup' type='button' id='kkkup2' value='增加数量' onClick="MakeUpload();" /> | |||||
<button class='btn btn-secondary btn-sm' name='kkkup' type='button' id='kkkup2' onClick="MakeUpload();">增加数量</button> | |||||
| | ||||
<input type="button" name="Submit3" id="btsh3" value="隐藏地址" onClick="ShowHideAddr();" /> | |||||
<button class='btn btn-secondary btn-sm' type="button" name="Submit3" id="btsh3" onClick="ShowHideAddr();">隐藏地址</button> | |||||
(最多为30个链接) | (最多为30个链接) | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -428,10 +428,10 @@ if($cfg_need_typeid2=='Y') { | |||||
<tr> | <tr> | ||||
<td width="90"> 附加选项:</td> | <td width="90"> 附加选项:</td> | ||||
<td> | <td> | ||||
<input name="remote" type="checkbox" class="np" id="remote" value="1" checked> | |||||
下载远程图片和资源 | |||||
<input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" checked> | |||||
提取第一个图片为缩略图 </td> | |||||
<label><input name="remote" type="checkbox" class="np" id="remote" value="1" checked> | |||||
下载远程图片和资源 </label> | |||||
<label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" checked> | |||||
提取第一个图片为缩略图 </label></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -453,11 +453,11 @@ if($cfg_need_typeid2=='Y') { | |||||
<tr> | <tr> | ||||
<td width="90" height="22" width="240"> 评论选项:</td> | <td width="90" height="22" width="240"> 评论选项:</td> | ||||
<td width="250"> | <td width="250"> | ||||
<input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($arcRow['notpost']==0) echo " checked='1' "; ?> />允许评论 | |||||
<label><input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($arcRow['notpost']==0) echo " checked='1' "; ?> /> 允许评论 </label> | |||||
| | ||||
<input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($arcRow['notpost']==1) echo " checked='1' "; ?> />禁止评论 | |||||
<label><input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($arcRow['notpost']==1) echo " checked='1' "; ?> /> 禁止评论 </label> | |||||
</td> | </td> | ||||
<td width="90">浏览次数:</td> | <td width="90">浏览次数:</td> | ||||
<td> | <td> | ||||
@@ -486,8 +486,8 @@ if($cfg_need_typeid2=='Y') { | |||||
</select> </td> | </select> </td> | ||||
<td width="90">标题颜色:</td> | <td width="90">标题颜色:</td> | ||||
<td><input name="color" type="text" id="color" style="width:120" | <td><input name="color" type="text" id="color" style="width:120" | ||||
value="<?php echo $arcRow["color"]?>"><input name="modcolor" type="button" id="modcolor" value="选取" | |||||
onClick="ShowColor(event,this)"></td> | |||||
value="<?php echo $arcRow["color"]?>"> <button class='btn btn-secondary btn-sm' name="modcolor" type="button" id="modcolor" | |||||
onClick="ShowColor(event,this)">选取</button></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -506,12 +506,12 @@ if($cfg_need_typeid2=='Y') { | |||||
</select> | </select> | ||||
</td> | </td> | ||||
<td width="90">发布选项:</td> | <td width="90">发布选项:</td> | ||||
<td> <input name="ishtml" type="radio" class="np" value="1" | |||||
<?php if($arcRow["ismake"]!=-1) echo " checked";?>> | |||||
生成HTML | |||||
<input type="radio" name="ishtml" class="np" value="0" | |||||
<?php if($arcRow["ismake"]==-1) echo " checked";?>> | |||||
仅动态浏览 </td> | |||||
<td> <label><input name="ishtml" type="radio" class="np" value="1" | |||||
<?php if($arcRow["ismake"]!=-1) echo " checked";?>> | |||||
生成HTML </label> | |||||
<label><input type="radio" name="ishtml" class="np" value="0" | |||||
<?php if($arcRow["ismake"]==-1) echo " checked";?>> | |||||
仅动态浏览</label> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -564,7 +564,7 @@ if($cfg_need_typeid2=='Y') { | |||||
<td height="24" colspan="4"> | <td height="24" colspan="4"> | ||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 自定义文件名:</td> | |||||
<td width="120"> 自定义文件名:</td> | |||||
<td width="449"><input type="text" name="filename" id="filename" | <td width="449"><input type="text" name="filename" id="filename" | ||||
value="<?php echo $arcRow["filename"]?>" />(不包括后缀名如.html等)</td> | value="<?php echo $arcRow["filename"]?>" />(不包括后缀名如.html等)</td> | ||||
<td width="261"> </td> | <td width="261"> </td> | ||||
@@ -574,7 +574,7 @@ if($cfg_need_typeid2=='Y') { | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | ||||
style="border:1px solid #cfcfcf;border-top:none;"> | |||||
style="border:1px solid #cfcfcf;border-top:none;mb-3"> | |||||
<tr> | <tr> | ||||
<td height="35"> | <td height="35"> | ||||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | <table width="100%" border="0" cellspacing="1" cellpadding="1"> | ||||
@@ -583,13 +583,11 @@ if($cfg_need_typeid2=='Y') { | |||||
<td width="83%"> | <td width="83%"> | ||||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | <table width="214" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="115"> | |||||
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0" | |||||
class="np" /> | |||||
<td width="115" class="py-3"> | |||||
<button type="submit" class="btn btn-secondary">保存</button> | |||||
</td> | </td> | ||||
<td width="99"> | |||||
<img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" | |||||
style="cursor:pointer" /> | |||||
<td width="99" class="py-3"> | |||||
<button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -1,304 +1,353 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>专题发布向导</title> | |||||
<style type="text/css"> | |||||
body { | |||||
background-image: url(images/allbg.gif); | |||||
} | |||||
</style> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||||
<link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | |||||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | |||||
<script type="text/javascript" src="../static/js/moment.min.js"></script> | |||||
<script type="text/javascript" src="../static/js/daterangepicker.js"></script> | |||||
<script language='javascript' src='js/main.js'></script> | |||||
<link href="../static/css/cropper.min.css" rel="stylesheet"> | |||||
<script src="../static/js/cropper.min.js"></script> | |||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript"> | |||||
function checkSubmit(){ | |||||
if(document.form1.title.value==""){ | |||||
alert("专题名称不能为空!"); | |||||
return false; | |||||
} | |||||
for(i=1;i<=6;i++){ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>专题发布向导</title> | |||||
<style type="text/css"> | |||||
body { | |||||
background-image: url(images/allbg.gif); | |||||
} | |||||
</style> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||||
<link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | |||||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | |||||
<script type="text/javascript" src="../static/js/moment.min.js"></script> | |||||
<script type="text/javascript" src="../static/js/daterangepicker.js"></script> | |||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language='javascript' src='js/main.js'></script> | |||||
<link href="../static/css/cropper.min.css" rel="stylesheet"> | |||||
<script src="../static/js/cropper.min.js"></script> | |||||
<script language="javascript"> | |||||
function checkSubmit() { | |||||
if (document.form1.title.value == "") { | |||||
ShowMsg("专题名称不能为空!"); | |||||
return false; | |||||
} | |||||
for (i = 1; i <= 6; i++) { | |||||
$val = CheckVal(i); | $val = CheckVal(i); | ||||
if($val == false) | |||||
{ | |||||
return false; | |||||
if ($val == false) { | |||||
return false; | |||||
} | } | ||||
} | |||||
} | } | ||||
} | |||||
function SelectArcList(fname){ | |||||
var posLeft = 10; | |||||
var posTop = 10; | |||||
window.open("content_select_list.php?f="+fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=700,height=500,left="+posLeft+", top="+posTop); | |||||
} | |||||
function SelectArcList(fname) { | |||||
var posLeft = 10; | |||||
var posTop = 10; | |||||
window.open("content_select_list.php?f=" + fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=500,left=" + posLeft + ", top=" + posTop); | |||||
} | |||||
function SelectImage(fname,vlist){ | |||||
var posLeft = 10; | |||||
var posTop = 10; | |||||
window.open("./dialog/select_images.php?f="+fname+"&imgstick="+vlist, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop); | |||||
} | |||||
function SelectImage(fname, vlist) { | |||||
var posLeft = 10; | |||||
var posTop = 10; | |||||
window.open("./dialog/select_images.php?f=" + fname + "&imgstick=" + vlist, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left=" + posLeft + ", top=" + posTop); | |||||
} | |||||
function SelectTemplets(fname){ | |||||
var posLeft = 10; | |||||
var posTop = 10; | |||||
window.open("./dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop); | |||||
} | |||||
function CheckVal(id){ | |||||
var notename = $DE('notename'+id); | |||||
var arcid = $DE('arcid'+id); | |||||
if(arcid.value != "") | |||||
{ | |||||
if(notename.value == "") | |||||
{ | |||||
$DE('notename'+id).focus(); | |||||
alert('你的节点'+id+'名称不能为空'); | |||||
return false; | |||||
} | |||||
} | |||||
} | |||||
</script> | |||||
<style> | |||||
img { | |||||
vertical-align: baseline; | |||||
} | |||||
function SelectTemplets(fname) { | |||||
var posLeft = 10; | |||||
var posTop = 10; | |||||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left=" + posLeft + ", top=" + posTop); | |||||
} | |||||
function CheckVal(id) { | |||||
var notename = $DE('notename' + id); | |||||
var arcid = $DE('arcid' + id); | |||||
if (arcid.value != "") { | |||||
if (notename.value == "") { | |||||
$DE('notename' + id).focus(); | |||||
ShowMsg('你的节点' + id + '名称不能为空'); | |||||
return false; | |||||
} | |||||
} | |||||
} | |||||
</script> | |||||
<style> | |||||
img { | |||||
vertical-align: baseline; | |||||
} | |||||
input, | |||||
select { | |||||
height: auto !important; | |||||
} | |||||
</style> | |||||
input, | |||||
select { | |||||
height: auto !important; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body topmargin="8"> | <body topmargin="8"> | ||||
<form name="form1" action="spec_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="dopost" value="save" /> | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>" /> | |||||
<input type="hidden" name="arcrank" value="0" /> | |||||
<input type="hidden" name="source" value="本站" /> | |||||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="85%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a href="content_s_list.php"><u>专题列表</u></a><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"></a> >> 发布专题</td> | |||||
<td width="10%" align="right"> <a href="makehtml_spec.php">[<u>更新HTML</u>]</a> </td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" > | |||||
<tr> | |||||
<td colspan="2"><table width="168" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" height="24" align="center" background="images/itemnote1.gif"> 常规参数 </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()"><u>专题文档</u></a> </td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none"> | |||||
<tr> | |||||
<td colspan="2"><table width="168" height="24" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem1()"><u>常规参数</u></a> </td> | |||||
<td width="84" align="center" background="images/itemnote1.gif">专题文档</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;"> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 专题名称:</td> | |||||
<td width='408'><input name="title" type="text" id="title" value="" style="width:388px" /></td> | |||||
<td width="90"> 简略标题:</td> | |||||
<td><input name="shorttitle" type="text" id="shorttitle" style="width:150px" /></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 自定义属性:</td> | |||||
<td><?php | |||||
<form name="form1" action="spec_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="dopost" value="save" /> | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>" /> | |||||
<input type="hidden" name="arcrank" value="0" /> | |||||
<input type="hidden" name="source" value="本站" /> | |||||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||||
<tr> | |||||
<td width="85%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | |||||
href="content_s_list.php"><u>专题列表</u></a><a | |||||
href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"></a> | |||||
>> 发布专题</td> | |||||
<td width="10%" align="right"> <a href="makehtml_spec.php" class="btn btn-secondary btn-sm">更新HTML</a> </td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | |||||
<tr> | |||||
<td colspan="2"> | |||||
<table width="168" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" height="24" align="center" background="images/itemnote1.gif"> 常规参数 </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" | |||||
onClick="ShowItem2()"><u>专题文档</u></a> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none"> | |||||
<tr> | |||||
<td colspan="2"> | |||||
<table width="168" height="24" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" | |||||
onClick="ShowItem1()"><u>常规参数</u></a> </td> | |||||
<td width="84" align="center" background="images/itemnote1.gif">专题文档</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" | |||||
style="border:1px solid #cfcfcf;background:#ffffff;"> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 专题名称:</td> | |||||
<td width='408'><input name="title" type="text" id="title" value="" style="width:388px" /></td> | |||||
<td width="90"> 简略标题:</td> | |||||
<td><input name="shorttitle" type="text" id="shorttitle" style="width:150px" /></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 自定义属性:</td> | |||||
<td><?php | |||||
$dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
{ | { | ||||
if($trow->att!='j') | if($trow->att!='j') | ||||
{ | { | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'>{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}] </label> "; | |||||
} | } | ||||
} | } | ||||
?></td> | ?></td> | ||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr id="pictable"> | |||||
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 缩 略 图:</td> | |||||
<td width="560"><table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td height="30"><input name="picname" type="text" id="picname" style="width:240px" /> | |||||
<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" | |||||
onClick="SelectImage('form1.picname','small');" class='np coolbg' /> | |||||
<input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' />远程 | |||||
<span class="btn btn-success fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | |||||
选择图片 | |||||
<input type="file" name="files[]" id="iptAddImages"> | |||||
</span> | |||||
<button id="btnClearAll" type="button" class="btn btn-danger delete"> | |||||
<i class="fa fa-trash-o"></i> | |||||
<span>清空</span> | |||||
</button> | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
<td width="150" align="center"><img id="litPic" src="../static/defaultpic.gif" style="height: 80px"></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 责任编辑:</td> | |||||
<td width="240"><input name="writer" type="text" id="writer"></td> | |||||
<td width="90">发布选项:</td> | |||||
<td><input name="ishtml" type="radio" class="np" value="1" checked='1' /> | |||||
生成HTML | |||||
<input type="radio" name="ishtml" class="np" value="0" /> | |||||
仅动态浏览 </td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90" height="22"> 内容排序:</td> | |||||
<td width="240"><select name="sortup" id="sortup" style="width:150px"> | |||||
<option value="0" selected>默认排序</option> | |||||
<option value="7">置顶一周</option> | |||||
<option value="30">置顶一个月</option> | |||||
<option value="90">置顶三个月</option> | |||||
<option value="180">置顶半年</option> | |||||
<option value="360">置顶一年</option> | |||||
</select></td> | |||||
<td width="90">标题颜色:</td> | |||||
<td width="159"><input name="color" type="text" id="color" style="width:120px" /></td> | |||||
<td><input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)" /></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 主分类:</td> | |||||
<td><?php | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr id="pictable"> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 缩 略 图:</td> | |||||
<td width="560"> | |||||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td height="30"><input name="picname" type="text" id="picname" style="width:240px" /> | |||||
<button type="button" name="Submit2" class="btn btn-secondary" | |||||
onClick="SelectImage('form1.picname','small');" >站内选择</button> | |||||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程 </label> | |||||
<span class="btn btn-secondary fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | |||||
选择图片 | |||||
<input type="file" name="files[]" id="iptAddImages"> | |||||
</span> | |||||
<button id="btnClearAll" type="button" class="btn btn-secondary delete"> | |||||
<i class="fa fa-trash-o"></i> | |||||
<span>清空</span> | |||||
</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
<td width="150" align="center"><img id="litPic" src="../static/defaultpic.gif" style="height: 80px"></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 责任编辑:</td> | |||||
<td width="240"><input name="writer" type="text" id="writer"></td> | |||||
<td width="90">发布选项:</td> | |||||
<td> | |||||
<label><input name="ishtml" type="radio" class="np" value="1" checked='1' /> | |||||
生成HTML </label> | |||||
<label><input type="radio" name="ishtml" class="np" value="0" /> | |||||
仅动态浏览 </label></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90" height="22"> 内容排序:</td> | |||||
<td width="240"><select name="sortup" id="sortup" style="width:150px"> | |||||
<option value="0" selected>默认排序</option> | |||||
<option value="7">置顶一周</option> | |||||
<option value="30">置顶一个月</option> | |||||
<option value="90">置顶三个月</option> | |||||
<option value="180">置顶半年</option> | |||||
<option value="360">置顶一年</option> | |||||
</select></td> | |||||
<td width="90">标题颜色:</td> | |||||
<td width="159"><input name="color" type="text" id="color" style="width:120px" /></td> | |||||
<td><button name="modcolor" type="button" id="modcolor" class="btn btn-secondary btn-sm" onClick="ShowColor(event,this)">选取</button></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 主分类:</td> | |||||
<td><?php | |||||
$typeOptions = GetOptionList($cid, $cuserLogin->getUserChannel(), 0); | $typeOptions = GetOptionList($cid, $cuserLogin->getUserChannel(), 0); | ||||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | ||||
echo "<option value='0'>请选择主分类...</option>\r\n"; | echo "<option value='0'>请选择主分类...</option>\r\n"; | ||||
echo $typeOptions; | echo $typeOptions; | ||||
echo "</select>"; | echo "</select>"; | ||||
?> | ?> | ||||
<img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, 0, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 关键字:</td> | |||||
<td width="500"><input type='text' name="keywords" id="keywords" style="width:80%" value="" /></td> | |||||
<td width="202"><input name="autokey" type="checkbox" onClick="ShowHide('keywords');"; class="np" id="autokey" value="1"<?php if($cfg_arc_autokeyword=='Y') echo ' checked="1" '; ?>/> | |||||
自动获取,手动填写用","分开<br/> | |||||
<input type="button" name="Submit" value="浏览..." style="width:56px;height:20px" onClick="SelectKeywords('form1.keywords');" /></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 专题简介:</td> | |||||
<td width="520"><textarea name="description" rows="5" id="description" style="width:80%;height:60px"></textarea></td> | |||||
<td> </td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 发布时间:</td> | |||||
<td><?php | |||||
<img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, 0, 'typeid')" | |||||
alt='快捷选择' title='快捷选择' /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 关键字:</td> | |||||
<td width="500"><input type='text' name="keywords" id="keywords" style="width:80%" value="" /></td> | |||||
<td width="202"><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" | |||||
id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked="1" '; ?> /> | |||||
自动获取,手动填写用","分开<br /> | |||||
<button type="button" name="Submit" class="btn btn-secondary btn-sm" | |||||
onClick="SelectKeywords('form1.keywords');">浏览...</button></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 专题简介:</td> | |||||
<td width="520"><textarea name="description" rows="5" id="description" | |||||
style="width:80%;height:60px"></textarea></td> | |||||
<td> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 发布时间:</td> | |||||
<td><?php | |||||
$nowtime = GetDateTimeMk(time()); | $nowtime = GetDateTimeMk(time()); | ||||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200px\" class='datepicker'/>"; | echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200px\" class='datepicker'/>"; | ||||
?> | ?> | ||||
</td> | </td> | ||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90" height="22" width="240"> | |||||
评论选项: | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90" height="22" width="240"> | |||||
评论选项: | |||||
</td> | |||||
<td width="250"> | |||||
<label><input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> | |||||
允许评论 </label> | |||||
| |||||
<label><input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> | |||||
禁止评论 </label> </td> | |||||
<td width="90">浏览次数:</td> | |||||
<td><input type='text' name='click' | |||||
value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' | |||||
style='width:100px;' /></td> | |||||
</tr> | |||||
</table> | |||||
</td> | </td> | ||||
<td width="250"><input type='radio' name='notpost' class='np' value='0' <?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> | |||||
允许评论 | |||||
| |||||
<input type='radio' name='notpost' class='np' value='1' <?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> | |||||
禁止评论 </td> | |||||
<td width="90">浏览次数:</td> | |||||
<td><input type='text' name='click' value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' style='width:100px;' /></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 专题模板:</td> | |||||
<td><input name="templet" type="text" id="templet" style="width:250px" value="<?php echo $cfg_df_style?>/article_spec.htm" /> | |||||
<input type="button" name="set3" value="浏览..." style="width:60px" onClick="SelectTemplets('form1.templet');" /></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="105"> 自定义文件名:</td> | |||||
<td width="695"><input type="text" name="filename" id="filename" /> | |||||
(不包括后缀名如.html等) </td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td><?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield'); ?></td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="2" style="border:1px solid #cfcfcf;background:#ffffff;display:none;" cellspacing="2" id="adset"> | |||||
<tr> | |||||
<td height="24" class="bline2"><strong>专题节点列表:</strong> <br> | |||||
1、文章列表用ID1,ID2,ID3这样形式分开,系统会自动排除不同节点的相同文章;<br/> | |||||
2、关于单条记录模板里的[field:fieldname /]标记的使用,请参考关于系统帮助关于 arclist 标记的说明;<br> | |||||
3、节点ID是节点的唯一标识,专题模板中用{dede:field.note noteid='标识'/}这样来表示单个节点,不指定noteid时为所有节点列表。<br> | |||||
4、正常的情况下,每个节点显示的是“节点文章列表”里的文档,如果您指定为“自动获取模式”,那么必须指定关键字和栏目ID。 </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" valign="top"><table width="800" border="0" cellspacing="2" cellpadding="2"> | |||||
<?php | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4" class="bline"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> 专题模板:</td> | |||||
<td><input name="templet" type="text" id="templet" style="width:250px" | |||||
value="<?php echo $cfg_df_style?>/article_spec.htm" /> | |||||
<button type="button" name="set3" class="btn btn-secondary btn-sm" | |||||
onClick="SelectTemplets('form1.templet');">浏览...</button></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="4"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="105"> 自定义文件名:</td> | |||||
<td width="695"><input type="text" name="filename" id="filename" /> | |||||
(不包括后缀名如.html等) </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td><?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield'); ?></td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="2" | |||||
style="border:1px solid #cfcfcf;background:#ffffff;display:none;" cellspacing="2" id="adset"> | |||||
<tr> | |||||
<td height="24" class="bline2"><strong>专题节点列表:</strong> <br> | |||||
1、文章列表用ID1,ID2,ID3这样形式分开,系统会自动排除不同节点的相同文章;<br /> | |||||
2、关于单条记录模板里的[field:fieldname /]标记的使用,请参考关于系统帮助关于 arclist 标记的说明;<br> | |||||
3、节点ID是节点的唯一标识,专题模板中用{dede:field.note noteid='标识'/}这样来表示单个节点,不指定noteid时为所有节点列表。<br> | |||||
4、正常的情况下,每个节点显示的是“节点文章列表”里的文档,如果您指定为“自动获取模式”,那么必须指定关键字和栏目ID。 </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" valign="top"> | |||||
<table width="800" border="0" cellspacing="2" cellpadding="2"> | |||||
<?php | |||||
$speclisttmp = GetSysTemplets("spec_arclist.htm"); | $speclisttmp = GetSysTemplets("spec_arclist.htm"); | ||||
$nodename = $nodeid = ''; | $nodename = $nodeid = ''; | ||||
for($i=1;$i<=$cfg_specnote;$i++) | for($i=1;$i<=$cfg_specnote;$i++) | ||||
@@ -313,80 +362,101 @@ function CheckVal(id){ | |||||
$nodename = $nodeid = ''; | $nodename = $nodeid = ''; | ||||
} | } | ||||
?> | ?> | ||||
<tr bgcolor="#FBFCE2"> | |||||
<td width="113">节点 <?php echo $i?> 名称:</td> | |||||
<td colspan="2"><table width="600" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="310"><input name="notename<?php echo $i?>" type="text" value="<?php echo $nodename; ?>" id="notename<?php echo $i?>" style="width:300px"></td> | |||||
<td width="90" align="center">节点标识:</td> | |||||
<td width="200"><input name="noteid<?php echo $i?>" type="text" value="<?php echo $nodeid; ?>" id="noteid<?php echo $i?>" style="width:100"></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td>节点文章列表:</td> | |||||
<td width="479"><textarea name="arcid<?php echo $i?>" onblur='CheckVal(<?php echo $i ?>)' rows="3" id="arcid<?php echo $i?>" style="width:90%"></textarea></td> | |||||
<td width="188"><input name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" value="选择节点文章" style="width:100" onClick="SelectArcList('form1.arcid<?php echo $i?>');"></td> | |||||
</tr> | |||||
<tr> | |||||
<td>文档来源:</td> | |||||
<td colspan="2"><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="0" class="np" checked> | |||||
按文章列表 | |||||
<input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" class="np"> | |||||
自动获取文档 | |||||
| |||||
关键字: | |||||
<input name="keywords<?php echo $i?>" type="text" id="keywords<?php echo $i?>" value="" size="16"> | |||||
(逗号分开) | |||||
栏目ID: | |||||
<input name="typeid<?php echo $i?>" type="text" id="typeid<?php echo $i?>" value="0" size="4"></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="51" rowspan="2" valign="top">节点布局: </td> | |||||
<td colspan="2"> 列数: | |||||
<input name="col<?php echo $i?>" type="text" id="col<?php echo $i?>" value="1" size="3"> | |||||
图片宽: | |||||
<input name="imgwidth<?php echo $i?>" type="text" id="imgwidth<?php echo $i?>" value="120" size="3"> | |||||
图片高: | |||||
<input name="imgheight<?php echo $i?>" type="text" id="imgheight<?php echo $i?>" value="90" size="3"> | |||||
标题长: | |||||
<input name="titlelen<?php echo $i?>" type="text" id="titlelen<?php echo $i?>" value="60" size="3"> | |||||
简介长: | |||||
<input name="infolen<?php echo $i?>" type="text" id="infolen<?php echo $i?>" value="160" size="3"> | |||||
文档数: | |||||
<input name="rownum<?php echo $i?>" type="text" id="rownum<?php echo $i?>" value="10" size="3"></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2">单条记录的模板:<br/> | |||||
<textarea name="listtmp<?php echo $i?>" rows="3" id="listtmp<?php echo $i?>" style="width:60%"><?php echo $speclisttmp?></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td>节点容器模板:</td> | |||||
<td colspan="2"><input name="notetemplet<?php echo $i?>" type="text" id="notetemplet<?php echo $i?>" value="system/channel_spec_note.htm" style="width:300"> | |||||
<input type="button" name="selno<?php echo $i?>" value="浏览..." style="width:70" onClick="SelectTemplets('form1.notetemplet<?php echo $i?>');"></td> | |||||
</tr> | |||||
<?php | |||||
<tr bgcolor="#FBFCE2"> | |||||
<td width="113">节点 <?php echo $i?> 名称:</td> | |||||
<td colspan="2"> | |||||
<table width="600" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="310"><input name="notename<?php echo $i?>" type="text" value="<?php echo $nodename; ?>" | |||||
id="notename<?php echo $i?>" style="width:300px"></td> | |||||
<td width="90" align="center">节点标识:</td> | |||||
<td width="200"><input name="noteid<?php echo $i?>" type="text" value="<?php echo $nodeid; ?>" | |||||
id="noteid<?php echo $i?>" style="width:100"></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td>节点文章列表:</td> | |||||
<td width="479"><textarea name="arcid<?php echo $i?>" onblur='CheckVal(<?php echo $i ?>)' rows="3" | |||||
id="arcid<?php echo $i?>" style="width:90%"></textarea></td> | |||||
<td width="188"> | |||||
<button name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" class="btn btn-secondary btn-sm" | |||||
onClick="SelectArcList('form1.arcid<?php echo $i?>');">选择节点文章</button> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td>文档来源:</td> | |||||
<td colspan="2"> | |||||
<label><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="0" | |||||
class="np" checked> | |||||
按文章列表</label> | |||||
<label><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" class="np"> | |||||
自动获取文档</label> | |||||
| |||||
<label>关键字: | |||||
<input name="keywords<?php echo $i?>" type="text" id="keywords<?php echo $i?>" value="" size="16"> | |||||
(逗号分开)</label> | |||||
栏目ID: | |||||
<label><input name="typeid<?php echo $i?>" type="text" id="_typeid<?php echo $i?>" value="0" size="4"></label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="51" rowspan="2" valign="top">节点布局: </td> | |||||
<td colspan="2"> 列数: | |||||
<input name="col<?php echo $i?>" type="text" id="col<?php echo $i?>" value="1" size="3"> | |||||
图片宽: | |||||
<input name="imgwidth<?php echo $i?>" type="text" id="imgwidth<?php echo $i?>" value="120" size="3"> | |||||
图片高: | |||||
<input name="imgheight<?php echo $i?>" type="text" id="imgheight<?php echo $i?>" value="90" size="3"> | |||||
标题长: | |||||
<input name="titlelen<?php echo $i?>" type="text" id="titlelen<?php echo $i?>" value="60" size="3"> | |||||
简介长: | |||||
<input name="infolen<?php echo $i?>" type="text" id="infolen<?php echo $i?>" value="160" size="3"> | |||||
文档数: | |||||
<input name="rownum<?php echo $i?>" type="text" id="rownum<?php echo $i?>" value="10" size="3"></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2">单条记录的模板:<br /> | |||||
<textarea name="listtmp<?php echo $i?>" rows="3" id="listtmp<?php echo $i?>" | |||||
style="width:60%"><?php echo $speclisttmp?></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td>节点容器模板:</td> | |||||
<td colspan="2"><input name="notetemplet<?php echo $i?>" type="text" id="notetemplet<?php echo $i?>" | |||||
value="system/channel_spec_note.htm" style="width:300"> | |||||
<button type="button" name="selno<?php echo $i?>" class="btn btn-secondary btn-sm" | |||||
onClick="SelectTemplets('form1.notetemplet<?php echo $i?>');">浏览...</button></td> | |||||
</tr> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
</table></td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;"> | |||||
<tr> | |||||
<td height="35"><table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td width="17%"> </td> | |||||
<td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="115"><input name="imageField" type="image" src="images/button_ok.gif" class='np' width="60" height="22" border="0"></td> | |||||
<td width="99"><img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer;"></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
<script language='javascript'>InitPage();</script> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||||
style="border:1px solid #cfcfcf;border-top:none;"> | |||||
<tr> | |||||
<td height="35"> | |||||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td width="17%"> </td> | |||||
<td width="83%"> | |||||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="115"><button type="submit" class="btn btn-secondary">保存</button></td> | |||||
<td width="99"><button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
<script language='javascript'>InitPage();</script> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -48,7 +48,7 @@ | |||||
} | } | ||||
function checkSubmit() { | function checkSubmit() { | ||||
if (document.form1.title.value == "") { | if (document.form1.title.value == "") { | ||||
alert("专题名称不能为空!"); | |||||
ShowMsg("专题名称不能为空!"); | |||||
return false; | return false; | ||||
} | } | ||||
for (i = 1; i <= 6; i++) { | for (i = 1; i <= 6; i++) { | ||||
@@ -65,7 +65,7 @@ | |||||
if (arcid.value != "") { | if (arcid.value != "") { | ||||
if (notename.value == "") { | if (notename.value == "") { | ||||
$DE('notename' + id).focus(); | $DE('notename' + id).focus(); | ||||
alert('你的节点' + id + '名称不能为空'); | |||||
ShowMsg('你的节点' + id + '名称不能为空'); | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
@@ -75,7 +75,7 @@ | |||||
img { | img { | ||||
vertical-align: baseline; | vertical-align: baseline; | ||||
} | } | ||||
input, | input, | ||||
select { | select { | ||||
height: auto !important; | height: auto !important; | ||||
@@ -92,13 +92,13 @@ | |||||
<input type="hidden" name="source" value="本站" /> | <input type="hidden" name="source" value="本站" /> | ||||
<input type="hidden" name="dopost" value="save" /> | <input type="hidden" name="dopost" value="save" /> | ||||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | <input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||||
<tr> | <tr> | ||||
<td width="85%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | <td width="85%" height="30"><IMG height=14 src="images/book1.gif" width=20> <a | ||||
href="content_s_list.php"><u>专题列表</u></a><a | href="content_s_list.php"><u>专题列表</u></a><a | ||||
href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"></a> | href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"></a> | ||||
>> 修改专题</td> | >> 修改专题</td> | ||||
<td width="10%" align="right"><a href="makehtml_spec.php">[<u>更新HTML</u>]</a> </td> | |||||
<td width="10%" align="right"><a href="makehtml_spec.php" class="btn btn-secondary btn-sm">更新HTML</a> </td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | ||||
@@ -160,9 +160,9 @@ | |||||
{ | { | ||||
if($trow->att=='j') continue; | if($trow->att=='j') continue; | ||||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | if(preg_match("#".$trow->att."#", $arcRow['flag'])) | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked' />{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked' /> {$trow->attname}[{$trow->att}]</label> "; | |||||
else | else | ||||
echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' />{$trow->attname}[{$trow->att}]"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' /> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -179,24 +179,24 @@ | |||||
</td> | </td> | ||||
<td width="560"> | <td width="560"> | ||||
<input name="picname" type="text" id="picname" style="width:300px" | <input name="picname" type="text" id="picname" style="width:300px" | ||||
value="<?php echo $arcRow["litpic"]?>"><input type="button" name="Submit" value="浏览..." | |||||
style="width:70px" onClick="SelectImage('form1.picname','');"> | |||||
<input type='checkbox' class='np' name='ddisremote' value='1'> | |||||
远程 | |||||
<span class="btn btn-success fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | |||||
选择图片 | |||||
<input type="file" name="files[]" id="iptAddImages"> | |||||
</span> | |||||
<button id="btnClearAll" type="button" class="btn btn-danger delete"> | |||||
<i class="fa fa-trash-o"></i> | |||||
<span>清空</span> | |||||
</button> | |||||
value="<?php echo $arcRow["litpic"]?>"> <button type="button" name="Submit" class="btn btn-secondary" | |||||
onClick="SelectImage('form1.picname','');">浏览...</button> | |||||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> | |||||
远程 </label> | |||||
<span class="btn btn-secondary fileinput-button"> | |||||
<i class="glyphicon glyphicon-plus"></i> | |||||
选择图片 | |||||
<input type="file" name="files[]" id="iptAddImages"> | |||||
</span> | |||||
<button id="btnClearAll" type="button" class="btn btn-secondary delete"> | |||||
<i class="fa fa-trash-o"></i> | |||||
<span>清空</span> | |||||
</button> | |||||
</td> | </td> | ||||
<td align="center"> | <td align="center"> | ||||
<img id="litPic" | <img id="litPic" | ||||
src="<?php if($arcRow["litpic"]!="") echo $arcRow["litpic"]; else echo "../static/defaultpic.gif";?>" | |||||
style="height: 80px"> | |||||
src="<?php if($arcRow["litpic"]!="") echo $arcRow["litpic"]; else echo "../static/defaultpic.gif";?>" | |||||
style="height: 80px"> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -210,8 +210,8 @@ | |||||
<td> | <td> | ||||
<input name="templet" type="text" id="templet" style="width:250px" | <input name="templet" type="text" id="templet" style="width:250px" | ||||
value="<?php echo $addRow["templet"]?>" /> | value="<?php echo $addRow["templet"]?>" /> | ||||
<input type="button" name="set3" value="浏览..." style="width:60px" | |||||
onClick="SelectTemplets('form1.templet');" /> | |||||
<button type="button" name="set3" class="btn btn-secondary btn-sm" | |||||
onClick="SelectTemplets('form1.templet');">浏览...</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -226,12 +226,13 @@ | |||||
<input name="writer" type="text" id="writer" value="<?php echo $arcRow["writer"]?>" /> | <input name="writer" type="text" id="writer" value="<?php echo $arcRow["writer"]?>" /> | ||||
</td> | </td> | ||||
<td width="75">发布选项:</td> | <td width="75">发布选项:</td> | ||||
<td width="421"> <input name="ishtml" type="radio" class="np" value="1" | |||||
<?php if($arcRow["ismake"]!=-1) echo " checked='1'";?> /> | |||||
生成HTML | |||||
<input type="radio" name="ishtml" class="np" value="0" | |||||
<?php if($arcRow["ismake"]==-1) echo " checked='1'";?> /> | |||||
仅动态浏览 </td> | |||||
<td width="421"> | |||||
<label><input name="ishtml" type="radio" class="np" value="1" | |||||
<?php if($arcRow["ismake"]!=-1) echo " checked='1'";?> /> | |||||
生成HTML </label> | |||||
<label><input type="radio" name="ishtml" class="np" value="0" | |||||
<?php if($arcRow["ismake"]==-1) echo " checked='1'";?> /> | |||||
仅动态浏览 </label></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -259,7 +260,7 @@ | |||||
<input name="color" type="text" id="color" style="width:120px" value="<?php echo $arcRow["color"]?>" /> | <input name="color" type="text" id="color" style="width:120px" value="<?php echo $arcRow["color"]?>" /> | ||||
</td> | </td> | ||||
<td width="293"> | <td width="293"> | ||||
<input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)" /> | |||||
<button name="modcolor" type="button" id="modcolor" value="" onClick="ShowColor(event,this)" class="btn btn-secondary btn-sm">选取</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -280,7 +281,7 @@ | |||||
?> | ?> | ||||
<img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, 0, 'typeid')" | <img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, 0, 'typeid')" | ||||
alt='快捷选择' title='快捷选择' /> | alt='快捷选择' title='快捷选择' /> | ||||
</td> | |||||
</td> | |||||
<td width="100" align="center"> </td> | <td width="100" align="center"> </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -316,11 +317,11 @@ | |||||
<tr> | <tr> | ||||
<td width="90" height="22" width="240"> 评论选项:</td> | <td width="90" height="22" width="240"> 评论选项:</td> | ||||
<td width="250"> | <td width="250"> | ||||
<input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($arcRow['notpost']==0) echo " checked='1' "; ?> />允许评论 | |||||
<label><input type='radio' name='notpost' class='np' value='0' | |||||
<?php if($arcRow['notpost']==0) echo " checked='1' "; ?> /> 允许评论 </label> | |||||
| | ||||
<input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($arcRow['notpost']==1) echo " checked='1' "; ?> />禁止评论 | |||||
<label><input type='radio' name='notpost' class='np' value='1' | |||||
<?php if($arcRow['notpost']==1) echo " checked='1' "; ?> /> 禁止评论 </label> | |||||
</td> | </td> | ||||
<td width="90">浏览次数:</td> | <td width="90">浏览次数:</td> | ||||
<td> | <td> | ||||
@@ -442,25 +443,25 @@ | |||||
<td>节点文章列表:</td> | <td>节点文章列表:</td> | ||||
<td><textarea name="arcid<?php echo $i?>" rows="3" onblur='CheckVal(<?php echo $i ?>)' | <td><textarea name="arcid<?php echo $i?>" rows="3" onblur='CheckVal(<?php echo $i ?>)' | ||||
id="arcid<?php echo $i?>" style="width:90%"><?php echo $idlist?></textarea></td> | id="arcid<?php echo $i?>" style="width:90%"><?php echo $idlist?></textarea></td> | ||||
<td align="center"><input name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" | |||||
value="选择节点文章" style="width:100" onClick="SelectArcList('form1.arcid<?php echo $i?>');"></td> | |||||
<td align="center"><button class="btn btn-secondary btn-sm" name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" | |||||
onClick="SelectArcList('form1.arcid<?php echo $i?>');">选择节点文章</button></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>文档来源:</td> | <td>文档来源:</td> | ||||
<td colspan="2"> | <td colspan="2"> | ||||
<input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="0" class="np" | |||||
<?php if($isauto==0) echo " checked";?>> | |||||
按文章列表 | |||||
<input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" class="np" | |||||
<?php if($isauto==1) echo " checked";?>> | |||||
自动获取文档 | |||||
<label><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="0" class="np" | |||||
<?php if($isauto==0) echo " checked";?>> | |||||
按文章列表 </label> | |||||
<label><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" class="np" | |||||
<?php if($isauto==1) echo " checked";?>> | |||||
自动获取文档 </label> | |||||
| | ||||
关键字: | |||||
<label>关键字: | |||||
<input name="keywords<?php echo $i?>" type="text" value="<?php echo $keywords?>" | <input name="keywords<?php echo $i?>" type="text" value="<?php echo $keywords?>" | ||||
id="keywords<?php echo $i?>" value="" size="16">(逗号分开) | |||||
栏目ID: | |||||
id="keywords<?php echo $i?>" value="" size="16">(逗号分开)</label> | |||||
<label>栏目ID: | |||||
<input name="typeid<?php echo $i?>" type="text" value="<?php echo $typeid?>" id="typeid<?php echo $i?>" | <input name="typeid<?php echo $i?>" type="text" value="<?php echo $typeid?>" id="typeid<?php echo $i?>" | ||||
value="0" size="4"> | |||||
value="0" size="4"></label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -515,22 +516,22 @@ | |||||
<td>节点文章列表:</td> | <td>节点文章列表:</td> | ||||
<td><textarea name="arcid<?php echo $i?>" rows="3" onblur='CheckVal(<?php echo $i ?>)' | <td><textarea name="arcid<?php echo $i?>" rows="3" onblur='CheckVal(<?php echo $i ?>)' | ||||
id="arcid<?php echo $i?>" style="width:90%"></textarea></td> | id="arcid<?php echo $i?>" style="width:90%"></textarea></td> | ||||
<td align="center"><input name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" | |||||
value="选择节点文章" style="width:100" onClick="SelectArcList('form1.arcid<?php echo $i?>');"></td> | |||||
<td align="center"><button name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" | |||||
class="btn btn-secondary btn-sm" onClick="SelectArcList('form1.arcid<?php echo $i?>');">选择节点文章</button></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>文档来源:</td> | <td>文档来源:</td> | ||||
<td colspan="2"> | <td colspan="2"> | ||||
<input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="0" class="np" | |||||
<label><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="0" class="np" | |||||
checked> | checked> | ||||
按文章列表 | |||||
<input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" class="np"> | |||||
自动获取文档 | |||||
按文章列表</label> | |||||
<label><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" class="np"> | |||||
自动获取文档</label> | |||||
| | ||||
关键字: | |||||
<input name="keywords<?php echo $i?>" type="text" id="keywords<?php echo $i?>" value="" size="16">(空格分开) | |||||
栏目ID: | |||||
<input name="typeid<?php echo $i?>" type="text" id="typeid<?php echo $i?>" value="0" size="4"> | |||||
<label>关键字: | |||||
<input name="keywords<?php echo $i?>" type="text" id="keywords<?php echo $i?>" value="" size="16">(空格分开)</label> | |||||
<label>栏目ID: | |||||
<input name="typeid<?php echo $i?>" type="text" id="_typeid<?php echo $i?>" value="0" size="4"></label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -561,7 +562,7 @@ | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | ||||
style="border:1px solid #cfcfcf;border-top:none;"> | |||||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
<tr> | <tr> | ||||
<td height="35"> | <td height="35"> | ||||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | <table width="100%" border="0" cellspacing="1" cellpadding="1"> | ||||
@@ -570,10 +571,8 @@ | |||||
<td width="83%"> | <td width="83%"> | ||||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | <table width="214" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="115"><input name="imageField" type="image" class='np' src="images/button_ok.gif" | |||||
width="60" height="22" border="0"></td> | |||||
<td width="99"><img src="images/button_reset.gif" width="60" height="22" border="0" | |||||
onClick="location.reload();" style="cursor:pointer"></td> | |||||
<td width="115" class="py-3"><button type="submit" class="btn btn-secondary">保存</button></td> | |||||
<td width="99" class="py-3"><button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -6,8 +6,8 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>联动枚举管理</title> | <title>联动枚举管理</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
<style> | <style> | ||||
li { | li { | ||||
@@ -38,6 +38,9 @@ | |||||
} | } | ||||
</style> | </style> | ||||
<SCRIPT LANGUAGE="JavaScript" src="../static/js/dedeajax2.js"></SCRIPT> | <SCRIPT LANGUAGE="JavaScript" src="../static/js/dedeajax2.js"></SCRIPT> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language='javascript' src='js/main.js'></script> | |||||
<SCRIPT LANGUAGE="JavaScript"> | <SCRIPT LANGUAGE="JavaScript"> | ||||
var loadhtml = "<center><img src='../static/loadinglit.gif' style='padding:30px' /></center>"; | var loadhtml = "<center><img src='../static/loadinglit.gif' style='padding:30px' /></center>"; | ||||
function updateItem(aid) { | function updateItem(aid) { | ||||
@@ -62,7 +65,7 @@ | |||||
function AddEnum() { | function AddEnum() { | ||||
var id = GetSelType(); | var id = GetSelType(); | ||||
if (id == 0) { | if (id == 0) { | ||||
alert("必须选择一个类别!"); | |||||
ShowMsg("必须选择一个类别!"); | |||||
return false; | return false; | ||||
} | } | ||||
var myajax = new DedeAjax($DE('edsta')); | var myajax = new DedeAjax($DE('edsta')); | ||||
@@ -73,7 +76,7 @@ | |||||
function EditType() { | function EditType() { | ||||
var id = GetSelType(); | var id = GetSelType(); | ||||
if (id == 0) { | if (id == 0) { | ||||
alert("必须选择一个类别!"); | |||||
ShowMsg("必须选择一个类别!"); | |||||
return false; | return false; | ||||
} | } | ||||
var myajax = new DedeAjax($DE('edsta')); | var myajax = new DedeAjax($DE('edsta')); | ||||
@@ -84,7 +87,7 @@ | |||||
function ViewType() { | function ViewType() { | ||||
var id = GetSelType(); | var id = GetSelType(); | ||||
if (id == 0) { | if (id == 0) { | ||||
alert("必须选择一个类别!"); | |||||
ShowMsg("必须选择一个类别!"); | |||||
return false; | return false; | ||||
} | } | ||||
var myajax = new DedeAjax($DE('edsta')); | var myajax = new DedeAjax($DE('edsta')); | ||||
@@ -96,7 +99,7 @@ | |||||
if (window.confirm("你确实要删除这个分类吗?") == false) return false; | if (window.confirm("你确实要删除这个分类吗?") == false) return false; | ||||
var id = GetSelType(); | var id = GetSelType(); | ||||
if (id == 0) { | if (id == 0) { | ||||
alert("必须选择一个类别!"); | |||||
ShowMsg("必须选择一个类别!"); | |||||
return false; | return false; | ||||
} | } | ||||
location.href = 'stepselect_main.php?action=del&id=' + id; | location.href = 'stepselect_main.php?action=del&id=' + id; | ||||
@@ -147,17 +150,17 @@ | |||||
<center><img src='../static/loadinglit.gif' /></center> | <center><img src='../static/loadinglit.gif' /></center> | ||||
</div> | </div> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" | <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" | ||||
style="margin-bottom:6px" class="table maintable "> | |||||
style="margin-bottom:6px" class="table maintable mt-3"> | |||||
<tr> | <tr> | ||||
<td height="28" background="images/wbg.gif" colspan="6" style="padding-left:10px;"> | <td height="28" background="images/wbg.gif" colspan="6" style="padding-left:10px;"> | ||||
<div style="float:left"><b>·联动枚举组管理</b></div> | <div style="float:left"><b>·联动枚举组管理</b></div> | ||||
<div style="float:right"><a href='stepselect_main.php?action=upallcache'>[<u>更新所有枚举缓存</u>]</a> | |||||
<div style="float:right"><a href='stepselect_main.php?action=upallcache' class="btn btn-secondary btn-sm">更新所有枚举缓存</a> | |||||
</div> | </div> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="30" bgcolor="#ffffff" style="padding:6px;"> | <td height="30" bgcolor="#ffffff" style="padding:6px;"> | ||||
<table width="800" border="0" cellspacing="0" cellpadding="0" class="table maintable"> | |||||
<table width="800" border="0" cellspacing="0" cellpadding="0" class="table maintable table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="85"><strong>请选择组别:</strong></td> | <td width="85"><strong>请选择组别:</strong></td> | ||||
<td width="264"> | <td width="264"> | ||||
@@ -181,16 +184,16 @@ | |||||
</select> | </select> | ||||
</td> | </td> | ||||
<td width="350"> | <td width="350"> | ||||
<input type="button" name="gedit" id="gedit" value="修改" class="np coolbg" | |||||
onClick="EditType()" /> | |||||
<input type="button" name="gdel" id="gdel" value="删除" class="np coolbg" | |||||
onClick="DelType()" /> | |||||
<input type="button" name="gview" id="gview" value="预览" class="np coolbg" | |||||
onClick="ViewType()" /> | |||||
<button type="button" name="gedit" id="gedit" class="btn btn-secondary btn-sm" | |||||
onClick="EditType()">修改</button> | |||||
<button type="button" name="gdel" id="gdel" class="btn btn-secondary btn-sm" | |||||
onClick="DelType()">删除</button> | |||||
<button type="button" name="gview" id="gview" class="btn btn-secondary btn-sm" | |||||
onClick="ViewType()">预览</button> | |||||
</td> | </td> | ||||
<td align="right"> | <td align="right"> | ||||
<input type="button" name="addnew" id="addnew" value="新增类别组" class="np coolbg" | |||||
onClick="AddType()" /> | |||||
<button type="button" name="addnew" id="addnew" class="btn btn-secondary btn-sm" | |||||
onClick="AddType()">新增类别组</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -256,7 +259,7 @@ if(!empty($egroup)) | |||||
<b> 分类名称:</b><INPUT TYPE="text" NAME="ename" class="iptxt" style='width:350px' /> | <b> 分类名称:</b><INPUT TYPE="text" NAME="ename" class="iptxt" style='width:350px' /> | ||||
</div> | </div> | ||||
<div style='float:left;padding-left:6px'> | <div style='float:left;padding-left:6px'> | ||||
<INPUT TYPE="submit" name='sb2' value="增加分类" class="np coolbg" /> | |||||
<button TYPE="submit" name='sb2' class="btn btn-secondary btn-sm">增加分类</button> | |||||
</div> | </div> | ||||
<div style='clear:both;color:#333333;line-height:24px;'> | <div style='clear:both;color:#333333;line-height:24px;'> | ||||
<img src='images/help.gif' /> 如果没选择隶属分类则表示增加的是顶级分类,用半角逗号","分开可以一次增加多个分类。 | <img src='images/help.gif' /> 如果没选择隶属分类则表示增加的是顶级分类,用半角逗号","分开可以一次增加多个分类。 | ||||
@@ -265,7 +268,8 @@ if(!empty($egroup)) | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered"> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" | |||||
class="table maintable table-bordered"> | |||||
<tr> | <tr> | ||||
<td height="28" background="images/tbg.gif" colspan="8"> | <td height="28" background="images/tbg.gif" colspan="8"> | ||||
<div style="float:left"> | <div style="float:left"> | ||||
@@ -329,8 +333,8 @@ if(!empty($egroup)) | |||||
if(!empty($egroup)) | if(!empty($egroup)) | ||||
{ | { | ||||
?> | ?> | ||||
<a href='javascript:updateItem({dede:field.id/});'>[更新]</a> | |||||
<a href='stepselect_main.php?action=delenum&id={dede:field.id/}'>[删除]</a> | |||||
<a href='javascript:updateItem({dede:field.id/});' class="btn btn-secondary btn-sm"> <i class="fa fa-refresh" aria-hidden="true"></i> 更新</a> | |||||
<a href='stepselect_main.php?action=delenum&id={dede:field.id/}' class="btn btn-secondary btn-sm"> <i class="fa fa-trash" aria-hidden="true"></i> 删除</a> | |||||
<?php | <?php | ||||
} | } | ||||
else | else | ||||
@@ -345,9 +349,9 @@ if(!empty($egroup)) | |||||
<tr height="24"> | <tr height="24"> | ||||
<td colspan="8" bgcolor="#ffffff"> | <td colspan="8" bgcolor="#ffffff"> | ||||
| | ||||
<a href='javascript:TogSel();' class='np coolbg'>全选/反选</a> | |||||
<a href='javascript:TogSel();' class='btn btn-secondary btn-sm'>全选/反选</a> | |||||
| | ||||
<a href='javascript:DelSel();' class='np coolbg'>删除所选</a> | |||||
<a href='javascript:DelSel();' class='btn btn-secondary btn-sm'>删除所选</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr align="center" bgcolor="#F9FCEF" height="28"> | <tr align="center" bgcolor="#F9FCEF" height="28"> | ||||
@@ -361,7 +365,8 @@ if(!empty($egroup)) | |||||
else | else | ||||
{ | { | ||||
?> | ?> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered"> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" | |||||
class="table maintable table-bordered"> | |||||
<tr> | <tr> | ||||
<td height="28" background="images/tbg.gif" colspan="8"> | <td height="28" background="images/tbg.gif" colspan="8"> | ||||
<div style="float:left"> | <div style="float:left"> | ||||
@@ -403,8 +408,8 @@ else | |||||
<td> {dede:field.issystem function="@me==1 ? '是' : '否'" /} </td> | <td> {dede:field.issystem function="@me==1 ? '是' : '否'" /} </td> | ||||
<td>{dede:field.egroup /}</td> | <td>{dede:field.egroup /}</td> | ||||
<td> | <td> | ||||
<a href='stepselect_main.php?action=upallcache&egroup={dede:field.egroup /}'>[更新缓存]</a> | |||||
<a href='stepselect_main.php?egroup={dede:field.egroup /}'>[查看子分类]</a> | |||||
<a href='stepselect_main.php?action=upallcache&egroup={dede:field.egroup /}' class="btn btn-secondary btn-sm"> <i class="fa fa-refresh" aria-hidden="true"></i> 更新缓存</a> | |||||
<a href='stepselect_main.php?egroup={dede:field.egroup /}' class="btn btn-secondary btn-sm"> <i class="fa fa-list-ul" aria-hidden="true"></i> 查看子分类</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
{/dede:datalist} | {/dede:datalist} | ||||
@@ -19,11 +19,9 @@ | |||||
<tr> | <tr> | ||||
<td width="24%" style="padding-left:10px;"><b>管理员帐号</b> </td> | <td width="24%" style="padding-left:10px;"><b>管理员帐号</b> </td> | ||||
<td width="76%" align="right"><b> | <td width="76%" align="right"><b> | ||||
<a href="sys_admin_user_tj.php"><u>编辑绩效统计</u></a> | |||||
| | |||||
<a href="sys_admin_user_add.php"><u>增加管理员</u></a> | |||||
| | |||||
<a href="sys_group.php"><u>用户组管理</u></a> | |||||
<a href="sys_admin_user_tj.php" class="btn btn-secondary btn-sm">编辑绩效统计</a> | |||||
<a href="sys_admin_user_add.php" class="btn btn-secondary btn-sm">增加管理员</a> | |||||
<a href="sys_group.php" class="btn btn-secondary btn-sm">用户组管理</a> | |||||
</b> | </b> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -31,7 +29,10 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr bgcolor="#FFFFFF"> | <tr bgcolor="#FFFFFF"> | ||||
<td height="24" colspan="5"> §为了防止错误操作,系统不允许在管理界面删除超级管理员,如果确实要删除,请自行在数据表dede_admin中删除。</td> | |||||
<td height="24" colspan="5"> | |||||
<div class="alert alert-info" role="alert"> | |||||
<i class="fa fa-info-circle" aria-hidden="true"></i> 为了防止错误操作,系统不允许在管理界面删除超级管理员,如果确实要删除,请自行在数据表dede_admin中删除。 | |||||
</div></td> | |||||
</tr> | </tr> | ||||
<tr bgcolor="#FBFCE2"> | <tr bgcolor="#FBFCE2"> | ||||
<td width="18%" height="24" align="center">登录ID</td> | <td width="18%" height="24" align="center">登录ID</td> | ||||
@@ -47,9 +48,9 @@ | |||||
<td>{dede:field.usertype function="GetUserType(@me)"/}</td> | <td>{dede:field.usertype function="GetUserType(@me)"/}</td> | ||||
<td>{dede:field.typename function="GetChannel(@me)"/}</td> | <td>{dede:field.typename function="GetChannel(@me)"/}</td> | ||||
<td rowspan="2"> | <td rowspan="2"> | ||||
<a href='sys_admin_user_edit.php?id={dede:field.id/}&dopost=edit'><u>更改</u></a> | | |||||
<a href='sys_admin_user_edit.php?id={dede:field.id/}&userid={dede:field.userid/}&dopost=delete'><u>删除</u></a> | | |||||
<a href='content_list.php?mid={dede:field.id/}'><u>文档</u></a> | |||||
<a href='sys_admin_user_edit.php?id={dede:field.id/}&dopost=edit' class="btn btn-secondary btn-sm">更改</a> | |||||
<a href='sys_admin_user_edit.php?id={dede:field.id/}&userid={dede:field.userid/}&dopost=delete' class="btn btn-secondary btn-sm">删除</a> | |||||
<a href='content_list.php?mid={dede:field.id/}' class="btn btn-secondary btn-sm">文档</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -8,20 +8,23 @@ | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | ||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | ||||
<link href='css/base.css' rel='stylesheet' type='text/css'> | <link href='css/base.css' rel='stylesheet' type='text/css'> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script language="javascript" src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="js/main.js"></script> | |||||
<script language='javascript'> | <script language='javascript'> | ||||
function checkSubmit() { | function checkSubmit() { | ||||
if (document.form1.userid.value == "") { | if (document.form1.userid.value == "") { | ||||
alert("用户ID不能为空!"); | |||||
ShowMsg("用户ID不能为空!"); | |||||
document.form1.userid.focus(); | document.form1.userid.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
if (document.form1.uname.value == "") { | if (document.form1.uname.value == "") { | ||||
alert("用户名不能为空!"); | |||||
ShowMsg("用户名不能为空!"); | |||||
document.form1.uname.focus(); | document.form1.uname.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
if (document.form1.pwd.value == "") { | if (document.form1.pwd.value == "") { | ||||
alert("用户密码不能为空!"); | |||||
ShowMsg("用户密码不能为空!"); | |||||
document.form1.pwd.focus(); | document.form1.pwd.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
@@ -37,7 +40,7 @@ | |||||
<table width="96%" border="0" cellspacing="1" cellpadding="1" class="table table-borderless"> | <table width="96%" border="0" cellspacing="1" cellpadding="1" class="table table-borderless"> | ||||
<tr> | <tr> | ||||
<td width="24%" style="padding-left:10px;"><b><strong>新增帐号</strong></b> </td> | <td width="24%" style="padding-left:10px;"><b><strong>新增帐号</strong></b> </td> | ||||
<td width="76%" align="right"><strong><a href="sys_admin_user.php"><u>管理帐号</u></a></strong></td> | |||||
<td width="76%" align="right"><strong><a href="sys_admin_user.php" class="btn btn-secondary btn-sm">管理帐号</a></strong></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -79,13 +82,13 @@ | |||||
?> | ?> | ||||
</select> | </select> | ||||
| | ||||
【<a href='sys_group.php'><u>用户组设定</u></a>】 | |||||
<a href='sys_group.php' class='btn btn-secondary btn-sm'>用户组设定</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="30">授权栏目:</td> | <td height="30">授权栏目:</td> | ||||
<td style="text-align:left;"> | <td style="text-align:left;"> | ||||
<select name="typeids[]" id="typeid" size='10' style="width:200px" multiple="true"> | |||||
<select name="typeids[]" id="typeid" size='10' style="width:200px;height: 200px;" multiple="true"> | |||||
<option value="0" class='alltype' selected>--所有频道--</option> | <option value="0" class='alltype' selected>--所有频道--</option> | ||||
<?php echo $typeOptions?> | <?php echo $typeOptions?> | ||||
</select> | </select> | ||||
@@ -1,49 +1,57 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>管理员帐号--更改帐号</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>管理员帐号--更改帐号</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<tr> | |||||
<td height="19" background="images/tbg.gif" bgcolor="#E7E7E7"> | |||||
<table width="96%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td width="24%" style="padding-left:10px;"><b><strong>更改帐号</strong></b> </td> | |||||
<td width="76%" align="right"><strong><a href="sys_admin_user.php"><u>管理帐号</u></a></strong></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="215" align="center" valign="top" bgcolor="#FFFFFF"> | |||||
<form name="form1" action="sys_admin_user_edit.php" method="post"> | |||||
<input type="hidden" name="dopost" value="saveedit" /> | |||||
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>"> | |||||
<input type="hidden" name="id" value="<?php echo $row['id']?>" /> | |||||
<table width="98%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td width="16%" height="30">用户登录ID:</td> | |||||
<td width="84%" style="text-align:left;"><?php echo $row['userid']?></td> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td height="19" background="images/tbg.gif" bgcolor="#E7E7E7"> | |||||
<table width="96%" border="0" cellspacing="1" cellpadding="1" class="table table-borderless"> | |||||
<tr> | |||||
<td width="24%" style="padding-left:10px;"><b><strong>更改帐号</strong></b> </td> | |||||
<td width="76%" align="right"><a href="sys_admin_user.php" class="btn btn-secondary btn-sm">管理帐号</a></td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="30">用户笔名:</td> | |||||
<td style="text-align:left;"> | |||||
<input name="uname" type="text" id="uname" size="16" value="<?php echo $row['uname']?>" style="width:200px" /> (发布文章后显示责任编辑的名字) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">用户密码:</td> | |||||
<td style="text-align:left;"> | |||||
<input name="pwd" type="text" id="pwd" size="16" style="width:200px" /> (留空则不修改,只能用'0-9a-zA-Z.@_-!'以内范围的字符) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">用户类型:</td> | |||||
<td style="text-align:left;"> | |||||
<select name='usertype' style='width:200px'> | |||||
<?php | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="215" align="center" valign="top" bgcolor="#FFFFFF"> | |||||
<form name="form1" action="sys_admin_user_edit.php" method="post"> | |||||
<input type="hidden" name="dopost" value="saveedit" /> | |||||
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>"> | |||||
<input type="hidden" name="id" value="<?php echo $row['id']?>" /> | |||||
<table width="98%" border="0" cellspacing="1" cellpadding="1" class="table table-borderless"> | |||||
<tr> | |||||
<td width="16%" height="30">用户登录ID:</td> | |||||
<td width="84%" style="text-align:left;"><?php echo $row['userid']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">用户笔名:</td> | |||||
<td style="text-align:left;"> | |||||
<input name="uname" type="text" id="uname" size="16" value="<?php echo $row['uname']?>" | |||||
style="width:200px" /> (发布文章后显示责任编辑的名字) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">用户密码:</td> | |||||
<td style="text-align:left;"> | |||||
<input name="pwd" type="text" id="pwd" size="16" style="width:200px" /> | |||||
(留空则不修改,只能用'0-9a-zA-Z.@_-!'以内范围的字符) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">用户类型:</td> | |||||
<td style="text-align:left;"> | |||||
<select name='usertype' style='width:200px'> | |||||
<?php | |||||
$dsql->SetQuery("Select * from #@__admintype order by rank asc"); | $dsql->SetQuery("Select * from #@__admintype order by rank asc"); | ||||
$dsql->Execute("ut"); | $dsql->Execute("ut"); | ||||
while($myrow = $dsql->GetObject("ut")) | while($myrow = $dsql->GetObject("ut")) | ||||
@@ -52,45 +60,48 @@ | |||||
else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>\r\n"; | else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">负责频道:</td> | |||||
<td style="text-align:left;"> | |||||
<select name="typeids[]" id="typeid" size='10' style="width:200px" multiple="true"> | |||||
<option value="0" class='alltype'>--所有频道--</option> | |||||
<?php echo $typeOptions?> | |||||
</select>(按 Ctrl 可以进行多选) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">真实姓名:</td> | |||||
<td style="text-align:left;"><input name="tname" type="text" id="tname" size="16" style="width:200px" value="<?php echo $row['tname']?>" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">电子邮箱:</td> | |||||
<td style="text-align:left;"><input name="email" type="text" id="email" size="16" style="width:200px" value="<?php echo $row['email']?>" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">安全验证串:</td> | |||||
<td style="text-align:left;"> | |||||
<input name="safecode" type="text" id="safecode" size="16" style="width:200px" /> | |||||
<input name="randcode" type="hidden" value="<?php echo $randcode; ?>" /> | |||||
| |||||
(复制本代码: <font color='red'><?php echo $safecode; ?></font> ) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="60"> </td> | |||||
<td> | |||||
<input type="submit" name="Submit" value=" 保存用户 " class="coolbg np" /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</select> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">负责频道:</td> | |||||
<td style="text-align:left;"> | |||||
<select name="typeids[]" id="typeid" size='10' style="width:200px;height: 200px;" multiple="true"> | |||||
<option value="0" class='alltype'>--所有频道--</option> | |||||
<?php echo $typeOptions?> | |||||
</select> (按 Ctrl 可以进行多选) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">真实姓名:</td> | |||||
<td style="text-align:left;"><input name="tname" type="text" id="tname" size="16" style="width:200px" | |||||
value="<?php echo $row['tname']?>" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">电子邮箱:</td> | |||||
<td style="text-align:left;"><input name="email" type="text" id="email" size="16" style="width:200px" | |||||
value="<?php echo $row['email']?>" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">安全验证串:</td> | |||||
<td style="text-align:left;"> | |||||
<input name="safecode" type="text" id="safecode" size="16" style="width:200px" /> | |||||
<input name="randcode" type="hidden" value="<?php echo $randcode; ?>" /> | |||||
| |||||
(复制本代码: <font color='red'><?php echo $safecode; ?></font> ) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="60"> </td> | |||||
<td> | |||||
<button type="submit" name="Submit" class="btn btn-secondary">保存用户</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -3,6 +3,8 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>管理员帐号--绩效统计</title> | <title>管理员帐号--绩效统计</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
<script language='javascript' src='../static/js/dedeajax2.js'></script> | <script language='javascript' src='../static/js/dedeajax2.js'></script> | ||||
<script language='javascript'> | <script language='javascript'> | ||||
@@ -27,7 +29,7 @@ | |||||
<div id='loaddiv' style='display:none'> | <div id='loaddiv' style='display:none'> | ||||
<p align='center'><img src='images/loadinglit.gif' /> 请稍后,正在载入中...</p> | <p align='center'><img src='images/loadinglit.gif' /> 请稍后,正在载入中...</p> | ||||
</div> | </div> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||||
<tr> | <tr> | ||||
<td height="28" background="images/tbg.gif" bgcolor="#E7E7E7"> | <td height="28" background="images/tbg.gif" bgcolor="#E7E7E7"> | ||||
<a href="sys_admin_user.php" style="padding-left:10px;"><strong><u>管理员帐号</u></strong></a> > <strong>编辑绩效统计</strong> | <a href="sys_admin_user.php" style="padding-left:10px;"><strong><u>管理员帐号</u></strong></a> > <strong>编辑绩效统计</strong> | ||||
@@ -1,66 +1,77 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更新系统缓存</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>更新系统缓存</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name="form1" action="sys_cache_up.php" method="get" target='stafrm'> | |||||
<input type="hidden" name="dopost" value="ok"> | |||||
<tr> | |||||
<td height="20" background='images/tbg.gif'> <table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>更新系统缓存:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="sys_cache_up.php" method="get" target='stafrm'> | |||||
<input type="hidden" name="dopost" value="ok"> | |||||
<tr> | |||||
<td height="20" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>更新系统缓存:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF" style="line-height:20px;"> | |||||
本程序作默认会执行下面的操作: | |||||
<br /> | |||||
1、更新栏目缓存 | |||||
2、更新枚举缓存 | |||||
3、清理arclist调用缓存 | |||||
4、清理过期会员访问历史 | |||||
5、删除过期短信 | |||||
<br /> | |||||
<label><input name="uparc" type="checkbox" class="np" value="1" /> 检测并清理错误文档 </label> | |||||
<br /> | |||||
(该项操作很占资源,如果没有出现页码不正确、无法解析文档等情况,不要执行本操作) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" bgcolor="#ffffff" align="center"> | |||||
<button name="b112" type="button" class="btn btn-secondary" value="" onClick="document.form1.submit();" | |||||
>开始执行</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | </tr> | ||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="20" valign="top" bgcolor="#FFFFFF" style="line-height:20px;"> | |||||
本程序作默认会执行下面的操作: | |||||
<br /> | |||||
1、更新栏目缓存 | |||||
2、更新枚举缓存 | |||||
3、清理arclist调用缓存 | |||||
4、清理过期会员访问历史 | |||||
5、删除过期短信 | |||||
<br /> | |||||
<input name="uparc" type="checkbox" class="np" value="1" />检测并清理错误文档 | |||||
<br /> | |||||
(该项操作很占资源,如果没有出现页码不正确、无法解析文档等情况,不要执行本操作) | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="20" bgcolor="#ffffff" align="center"> | |||||
<input name="b112" type="button" class="coolbg np" value="开始执行" onClick="document.form1.submit();" style="width:100px" /> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20"> <table width="100%"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> <script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> | |||||
<div id='mdv' style='width:100%;height:350px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -1,158 +1,161 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>数据库维护</title> | |||||
<link href='css/base.css' rel='stylesheet' type='text/css'> | |||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||||
<script language="javascript"> | |||||
var myajax; | |||||
var newobj; | |||||
var posLeft = 200; | |||||
var posTop = 150; | |||||
function LoadUrl(surl){ | |||||
newobj = document.getElementById('_mydatainfo'); | |||||
if(!newobj){ | |||||
newobj = document.createElement("DIV"); | |||||
newobj.id = '_mydatainfo'; | |||||
newobj.style.position='absolute'; | |||||
newobj.className = "dlg"; | |||||
newobj.style.top = posTop; | |||||
newobj.style.left = posLeft; | |||||
document.body.appendChild(newobj); | |||||
}else{ | |||||
newobj.style.display = "block"; | |||||
} | |||||
myajax = new DedeAjax(newobj); | |||||
myajax.SendGet("sys_data.php?"+surl); | |||||
} | |||||
function HideObj(objname){ | |||||
var obj = document.getElementById(objname); | |||||
obj.style.display = "none"; | |||||
} | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>数据库维护</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href='css/base.css' rel='stylesheet' type='text/css'> | |||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||||
<script language="javascript"> | |||||
var myajax; | |||||
var newobj; | |||||
var posLeft = 200; | |||||
var posTop = 150; | |||||
function LoadUrl(surl) { | |||||
newobj = document.getElementById('_mydatainfo'); | |||||
if (!newobj) { | |||||
newobj = document.createElement("DIV"); | |||||
newobj.id = '_mydatainfo'; | |||||
newobj.style.position = 'absolute'; | |||||
newobj.className = "dlg"; | |||||
newobj.style.top = posTop; | |||||
newobj.style.left = posLeft; | |||||
document.body.appendChild(newobj); | |||||
} else { | |||||
newobj.style.display = "block"; | |||||
} | |||||
myajax = new DedeAjax(newobj); | |||||
myajax.SendGet("sys_data.php?" + surl); | |||||
} | |||||
function HideObj(objname) { | |||||
var obj = document.getElementById(objname); | |||||
obj.style.display = "none"; | |||||
} | |||||
//获得选中文件的数据表 | |||||
//获得选中文件的数据表 | |||||
function getCheckboxItem(){ | |||||
var myform = document.form1; | |||||
var allSel=""; | |||||
if(myform.tables.value) return myform.tables.value; | |||||
for(i=0;i<myform.tables.length;i++) | |||||
{ | |||||
if(myform.tables[i].checked){ | |||||
if(allSel=="") | |||||
allSel=myform.tables[i].value; | |||||
else | |||||
allSel=allSel+","+myform.tables[i].value; | |||||
} | |||||
} | |||||
return allSel; | |||||
} | |||||
function getCheckboxItem() { | |||||
var myform = document.form1; | |||||
var allSel = ""; | |||||
if (myform.tables.value) return myform.tables.value; | |||||
for (i = 0; i < myform.tables.length; i++) { | |||||
if (myform.tables[i].checked) { | |||||
if (allSel == "") | |||||
allSel = myform.tables[i].value; | |||||
else | |||||
allSel = allSel + "," + myform.tables[i].value; | |||||
} | |||||
} | |||||
return allSel; | |||||
} | |||||
//反选 | |||||
function ReSel(){ | |||||
var myform = document.form1; | |||||
for(i=0;i<myform.tables.length;i++){ | |||||
if(myform.tables[i].checked) myform.tables[i].checked = false; | |||||
else myform.tables[i].checked = true; | |||||
} | |||||
} | |||||
//反选 | |||||
function ReSel() { | |||||
var myform = document.form1; | |||||
for (i = 0; i < myform.tables.length; i++) { | |||||
if (myform.tables[i].checked) myform.tables[i].checked = false; | |||||
else myform.tables[i].checked = true; | |||||
} | |||||
} | |||||
//全选 | |||||
function SelAll(){ | |||||
var myform = document.form1; | |||||
for(i=0;i<myform.tables.length;i++){ | |||||
myform.tables[i].checked = true; | |||||
} | |||||
} | |||||
//全选 | |||||
function SelAll() { | |||||
var myform = document.form1; | |||||
for (i = 0; i < myform.tables.length; i++) { | |||||
myform.tables[i].checked = true; | |||||
} | |||||
} | |||||
//取消 | |||||
function NoneSel(){ | |||||
var myform = document.form1; | |||||
for(i=0;i<myform.tables.length;i++){ | |||||
myform.tables[i].checked = false; | |||||
} | |||||
} | |||||
//取消 | |||||
function NoneSel() { | |||||
var myform = document.form1; | |||||
for (i = 0; i < myform.tables.length; i++) { | |||||
myform.tables[i].checked = false; | |||||
} | |||||
} | |||||
function checkSubmit() | |||||
{ | |||||
var myform = document.form1; | |||||
myform.tablearr.value = getCheckboxItem(); | |||||
return true; | |||||
} | |||||
function checkSubmit() { | |||||
var myform = document.form1; | |||||
myform.tablearr.value = getCheckboxItem(); | |||||
return true; | |||||
} | |||||
</script> | |||||
</script> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="99%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<tr> | |||||
<td height="19" colspan="8" background="images/tbg.gif" bgcolor="#E7E7E7"> | |||||
<table width="96%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td width="24%" style="padding-left:10px;"><strong>数据库管理</strong></td> | |||||
<td width="76%" align="right"> | |||||
<b><a href="sys_data_revert.php"><u>数据还原</u></a></b> | | |||||
<b><a href="sys_sql_query.php"><u>SQL命令行工具</u></a></b> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<form name="form1" onSubmit="checkSubmit()" action="sys_data_done.php?dopost=bak" method="post" target="stafrm"> | |||||
<input type='hidden' name='tablearr' value='' /> | |||||
<tr bgcolor="#F7F8ED"> | |||||
<td height="24" colspan="8"><strong>DedeCMS默认系统表:</strong></td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2" align="center"> | |||||
<td height="24" width="5%">选择</td> | |||||
<td width="20%">表名</td> | |||||
<td width="8%">记录数</td> | |||||
<td width="17%">操作</td> | |||||
<td width="5%">选择</td> | |||||
<td width="20%">表名</td> | |||||
<td width="8%">记录数</td> | |||||
<td width="17%">操作</td> | |||||
</tr> | |||||
<?php | |||||
<table width="99%" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td height="19" colspan="8" background="images/tbg.gif" bgcolor="#E7E7E7"> | |||||
<table width="96%" border="0" cellspacing="1" cellpadding="1" class="table table-borderless"> | |||||
<tr> | |||||
<td width="24%" style="padding-left:10px;"><strong>数据库管理</strong></td> | |||||
<td width="76%" align="right"> | |||||
<a href="sys_data_revert.php" class="btn btn-secondary btn-sm">数据还原</a> | |||||
<a href="sys_sql_query.php" class="btn btn-secondary btn-sm">SQL命令行工具</a> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<form name="form1" onSubmit="checkSubmit()" action="sys_data_done.php?dopost=bak" method="post" target="stafrm"> | |||||
<input type='hidden' name='tablearr' value='' /> | |||||
<tr bgcolor="#F7F8ED"> | |||||
<td height="24" colspan="8"><strong>DedeCMS默认系统表:</strong></td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2" align="center"> | |||||
<td height="24" width="5%">选择</td> | |||||
<td width="20%">表名</td> | |||||
<td width="8%">记录数</td> | |||||
<td width="17%">操作</td> | |||||
<td width="5%">选择</td> | |||||
<td width="20%">表名</td> | |||||
<td width="8%">记录数</td> | |||||
<td width="17%">操作</td> | |||||
</tr> | |||||
<?php | |||||
for($i=0; isset($dedeSysTables[$i]); $i++) | for($i=0; isset($dedeSysTables[$i]); $i++) | ||||
{ | { | ||||
$t = $dedeSysTables[$i]; | $t = $dedeSysTables[$i]; | ||||
echo "<tr align='center' bgcolor='#FFFFFF' height='24'>\r\n"; | echo "<tr align='center' bgcolor='#FFFFFF' height='24'>\r\n"; | ||||
?> | |||||
<td> | |||||
<input type="checkbox" name="tables" value="<?php echo $t; ?>" class="np" checked /> | |||||
</td> | |||||
<td> | |||||
<?php echo $t; ?> | |||||
</td> | |||||
<td> | |||||
<?php echo TjCount($t,$dsql); ?> | |||||
</td> | |||||
<td> | |||||
<a href="#" onClick="LoadUrl('dopost=opimize&tablename=<?php echo $t; ?>');">优化</a> | | |||||
<a href="#" onClick="LoadUrl('dopost=repair&tablename=<?php echo $t; ?>');">修复</a> | | |||||
<a href="#" onClick="LoadUrl('dopost=viewinfo&tablename=<?php echo $t; ?>');">结构</a> | |||||
</td> | |||||
<?php | |||||
?> | |||||
<td> | |||||
<input type="checkbox" name="tables" value="<?php echo $t; ?>" class="np" checked /> | |||||
</td> | |||||
<td> | |||||
<?php echo $t; ?> | |||||
</td> | |||||
<td> | |||||
<?php echo TjCount($t,$dsql); ?> | |||||
</td> | |||||
<td> | |||||
<a href="#" onClick="LoadUrl('dopost=opimize&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">优化</a> | |||||
<a href="#" onClick="LoadUrl('dopost=repair&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">修复</a> | |||||
<a href="#" onClick="LoadUrl('dopost=viewinfo&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">结构</a> | |||||
</td> | |||||
<?php | |||||
$i++; | $i++; | ||||
if(isset($dedeSysTables[$i])) { | if(isset($dedeSysTables[$i])) { | ||||
$t = $dedeSysTables[$i]; | $t = $dedeSysTables[$i]; | ||||
?> | ?> | ||||
<td> | |||||
<input type="checkbox" name="tables" value="<?php echo $t; ?>" class="np" checked /> | |||||
</td> | |||||
<td> | |||||
<?php echo $t; ?> | |||||
</td> | |||||
<td> | |||||
<?php echo TjCount($t,$dsql); ?> | |||||
</td> | |||||
<td> | |||||
<a href="#" onClick="LoadUrl('dopost=opimize&tablename=<?php echo $t; ?>');">优化</a> | | |||||
<a href="#" onClick="LoadUrl('dopost=repair&tablename=<?php echo $t; ?>');">修复</a> | | |||||
<a href="#" onClick="LoadUrl('dopost=viewinfo&tablename=<?php echo $t; ?>');">结构</a> | |||||
</td> | |||||
<?php | |||||
<td> | |||||
<input type="checkbox" name="tables" value="<?php echo $t; ?>" class="np" checked /> | |||||
</td> | |||||
<td> | |||||
<?php echo $t; ?> | |||||
</td> | |||||
<td> | |||||
<?php echo TjCount($t,$dsql); ?> | |||||
</td> | |||||
<td> | |||||
<a href="#" onClick="LoadUrl('dopost=opimize&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">优化</a> | |||||
<a href="#" onClick="LoadUrl('dopost=repair&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">修复</a> | |||||
<a href="#" onClick="LoadUrl('dopost=viewinfo&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">结构</a> | |||||
</td> | |||||
<?php | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -161,119 +164,122 @@ function checkSubmit() | |||||
echo "</tr>\r\n"; | echo "</tr>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="24" colspan="8"><strong>其它数据表:</strong></td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2" align="center"> | |||||
<td height="24" width="5%">选择</td> | |||||
<td width="20%">表名</td> | |||||
<td width="8%">记录数</td> | |||||
<td width="17%">操作</td> | |||||
<td width="5%">选择</td> | |||||
<td width="20%">表名</td> | |||||
<td width="8%">记录数</td> | |||||
<td width="17%">操作</td> | |||||
</tr> | |||||
<?php | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="24" colspan="8"><strong>其它数据表:</strong></td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2" align="center"> | |||||
<td height="24" width="5%">选择</td> | |||||
<td width="20%">表名</td> | |||||
<td width="8%">记录数</td> | |||||
<td width="17%">操作</td> | |||||
<td width="5%">选择</td> | |||||
<td width="20%">表名</td> | |||||
<td width="8%">记录数</td> | |||||
<td width="17%">操作</td> | |||||
</tr> | |||||
<?php | |||||
for($i=0; isset($otherTables[$i]); $i++) | for($i=0; isset($otherTables[$i]); $i++) | ||||
{ | { | ||||
$t = $otherTables[$i]; | $t = $otherTables[$i]; | ||||
echo "<tr align='center' bgcolor='#FFFFFF' height='24'>\r\n"; | echo "<tr align='center' bgcolor='#FFFFFF' height='24'>\r\n"; | ||||
?> | |||||
<td> | |||||
<input type="checkbox" name="tables" value="<?php echo $t; ?>" class="np" /> | |||||
</td> | |||||
<td> | |||||
<?php echo $t; ?> | |||||
</td> | |||||
<td> | |||||
<?php echo TjCount($t,$dsql); ?> | |||||
</td> | |||||
<td> | |||||
<a href="#" onClick="LoadUrl('dopost=opimize&tablename=<?php echo $t; ?>');">优化</a> | | |||||
<a href="#" onClick="LoadUrl('dopost=repair&tablename=<?php echo $t; ?>');">修复</a> | | |||||
<a href="#" onClick="LoadUrl('dopost=viewinfo&tablename=<?php echo $t; ?>');">结构</a> | |||||
</td> | |||||
<?php | |||||
?> | |||||
<td> | |||||
<input type="checkbox" name="tables" value="<?php echo $t; ?>" class="np" /> | |||||
</td> | |||||
<td> | |||||
<?php echo $t; ?> | |||||
</td> | |||||
<td> | |||||
<?php echo TjCount($t,$dsql); ?> | |||||
</td> | |||||
<td> | |||||
<a href="#" onClick="LoadUrl('dopost=opimize&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">优化</a> | |||||
<a href="#" onClick="LoadUrl('dopost=repair&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">修复</a> | |||||
<a href="#" onClick="LoadUrl('dopost=viewinfo&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">结构</a> | |||||
</td> | |||||
<?php | |||||
$i++; | $i++; | ||||
if(isset($otherTables[$i])) { | if(isset($otherTables[$i])) { | ||||
$t = $otherTables[$i]; | $t = $otherTables[$i]; | ||||
?> | ?> | ||||
<td> | |||||
<input type="checkbox" name="tables" value="<?php echo $t; ?>" class="np" /> | |||||
</td> | |||||
<td> | |||||
<?php echo $t; ?> | |||||
</td> | |||||
<td> | |||||
<?php echo TjCount($t,$dsql); ?> | |||||
</td> | |||||
<td> | |||||
<a href="#" onClick="LoadUrl('dopost=opimize&tablename=<?php echo $t; ?>');">优化</a> | | |||||
<a href="#" onClick="LoadUrl('dopost=repair&tablename=<?php echo $t; ?>');">修复</a> | | |||||
<a href="#" onClick="LoadUrl('dopost=viewinfo&tablename=<?php echo $t; ?>');">结构</a> | |||||
</td> | |||||
<?php | |||||
<td> | |||||
<input type="checkbox" name="tables" value="<?php echo $t; ?>" class="np" /> | |||||
</td> | |||||
<td> | |||||
<?php echo $t; ?> | |||||
</td> | |||||
<td> | |||||
<?php echo TjCount($t,$dsql); ?> | |||||
</td> | |||||
<td> | |||||
<a href="#" onClick="LoadUrl('dopost=opimize&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">优化</a> | |||||
<a href="#" onClick="LoadUrl('dopost=repair&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">修复</a> | |||||
<a href="#" onClick="LoadUrl('dopost=viewinfo&tablename=<?php echo $t; ?>');" class="btn btn-secondary btn-sm">结构</a> | |||||
</td> | |||||
<?php | |||||
}else{ | }else{ | ||||
echo "<td></td><td></td><td></td><td></td>\r\n"; | echo "<td></td><td></td><td></td><td></td>\r\n"; | ||||
} | } | ||||
echo "</tr>\r\n"; | echo "</tr>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
<tr bgcolor="#ffffff"> | |||||
<td height="24" colspan="8"> | |||||
| |||||
<input name="b1" type="button" id="b1" class="coolbg np" onClick="SelAll()" value="全选" /> | |||||
| |||||
<input name="b2" type="button" id="b2" class="coolbg np" onClick="ReSel()" value="反选" /> | |||||
| |||||
<input name="b3" type="button" id="b3" class="coolbg np" onClick="NoneSel()" value="取消" /> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="24" colspan="8"><strong>数据备份选项:</strong></td> | |||||
</tr> | |||||
<tr align="center" bgcolor="#FFFFFF"> | |||||
<td height="50" colspan="8"> | |||||
<table width="90%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td height="30">当前数据库版本: <?php echo $mysql_version?></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30"> | |||||
指定备份数据格式: | |||||
<input name="datatype" type="radio" class="np" value="4.0"<?php if($mysql_version<4.1) echo " checked='1'";?> /> | |||||
MySQL3.x/4.0.x 版本 | |||||
<input type="radio" name="datatype" value="4.1" class="np"<?php if($mysql_version>=4.1) echo " checked='1'";?> /> | |||||
MySQL4.1.x/5.x 版本 | |||||
<tr bgcolor="#ffffff"> | |||||
<td height="24" colspan="8"> | |||||
| |||||
<button name="b1" type="button" id="b1" class="btn btn-secondary btn-sm" onClick="SelAll()">全选</button> | |||||
| |||||
<button name="b2" type="button" id="b2" class="btn btn-secondary btn-sm" onClick="ReSel()">反选</button> | |||||
| |||||
<button name="b3" type="button" id="b3" class="btn btn-secondary btn-sm" onClick="NoneSel()">取消</button> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="24" colspan="8"><strong>数据备份选项:</strong></td> | |||||
</tr> | |||||
<tr align="center" bgcolor="#FFFFFF"> | |||||
<td height="50" colspan="8"> | |||||
<table width="90%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | |||||
<td height="30">当前数据库版本: <?php echo $mysql_version?></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30"> | |||||
指定备份数据格式: | |||||
<label><input name="datatype" type="radio" class="np" value="4.0" | |||||
<?php if($mysql_version<4.1) echo " checked='1'";?> /> | |||||
MySQL3.x/4.0.x 版本</label> | |||||
<label><input type="radio" name="datatype" value="4.1" class="np" | |||||
<?php if($mysql_version>=4.1) echo " checked='1'";?> /> | |||||
MySQL4.1.x/5.x 版本</label> | |||||
</td> | </td> | ||||
</tr> | |||||
<tr> | |||||
<td height="30"> | |||||
分卷大小: | |||||
<input name="fsize" type="text" id="fsize" value="2048" size="6" /> | |||||
K , | |||||
<input name="isstruct" type="checkbox" class="np" id="isstruct" value="1" checked='1' /> | |||||
备份表结构信息 | |||||
<?php if(@function_exists('gzcompress') && false) { ?> | |||||
<input name="iszip" type="checkbox" class="np" id="iszip" value="1" checked='1' /> | |||||
完成后压缩成ZIP | |||||
<?php } ?> | |||||
<input type="submit" name="Submit" value="提交" class="coolbg np" /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</tr> | |||||
<tr> | |||||
<td height="30"> | |||||
分卷大小: | |||||
<input name="fsize" type="text" id="fsize" value="2048" size="6" /> | |||||
K , | |||||
<label><input name="isstruct" type="checkbox" class="np" id="isstruct" value="1" checked='1' /> | |||||
备份表结构信息</label> | |||||
<?php if(@function_exists('gzcompress') && false) { ?> | |||||
<input name="iszip" type="checkbox" class="np" id="iszip" value="1" checked='1' /> | |||||
完成后压缩成ZIP | |||||
<?php } ?> | |||||
<button type="submit" name="Submit" class="btn btn-secondary btn-sm">提交</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="24" colspan="8"><strong>进行状态:</strong></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="180" colspan="8"> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</td> | </td> | ||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="24" colspan="8"><strong>进行状态:</strong></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="180" colspan="8"> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,158 +1,173 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>数据批量替换</title> | |||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script language='javascript' src='js/main.js'></script> | |||||
<script language='javascript' src='../static/js/dedeajax2.js'></script> | |||||
<script language='javascript'> | |||||
function ShowFields(){ | |||||
var exptable = $DE('exptable').options[$DE('exptable').selectedIndex].value; | |||||
var queryUrl = "sys_data_replace.php?exptable="+exptable+"&action=getfields"; | |||||
var myajax = new DedeAjax($DE('fields'),true,true,'','x','...'); | |||||
myajax.SendGet(queryUrl); | |||||
} | |||||
function CheckSubmit(){ | |||||
if($DE('rpfield').value==""){ | |||||
alert("你选择的操作为手工指定字段,但你并没指定!"); | |||||
return false; | |||||
} | |||||
if($DE('rpstring').value==""){ | |||||
alert("你没指定要替换的字符串!"); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
function pf(v){ | |||||
$DE('rpfield').value = v; | |||||
} | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>数据批量替换</title> | |||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script language="javascript" src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="js/main.js"></script> | |||||
<script language='javascript' src='../static/js/dedeajax2.js'></script> | |||||
<script language='javascript'> | |||||
function ShowFields() { | |||||
var exptable = $DE('exptable').options[$DE('exptable').selectedIndex].value; | |||||
var queryUrl = "sys_data_replace.php?exptable=" + exptable + "&action=getfields"; | |||||
var myajax = new DedeAjax($DE('fields'), true, true, '', 'x', '...'); | |||||
myajax.SendGet(queryUrl); | |||||
} | |||||
function CheckSubmit() { | |||||
if ($DE('rpfield').value == "") { | |||||
ShowMsg("你选择的操作为手工指定字段,但你并没指定!"); | |||||
return false; | |||||
} | |||||
if ($DE('rpstring').value == "") { | |||||
ShowMsg("你没指定要替换的字符串!"); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
function pf(v) { | |||||
$DE('rpfield').value = v; | |||||
} | |||||
</script> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | |||||
</script> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<div class="bodytitle"> | |||||
<div class="bodytitleleft"></div> | |||||
<div class="bodytitletxt" style="padding-left:10px;">批量管理</div> | |||||
</div> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;"> | |||||
<form action="sys_data_replace.php" name="form1" method="post" target="stafrm" onSubmit="return CheckSubmit()"> | |||||
<input type='hidden' name='action' value='apply'> | |||||
<tr> | |||||
<td height="28" bgcolor="#EDF9D5" background="images/tbg.gif" style="padding-left:10px;"> | |||||
<strong>数据库内容替换:</strong> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellpadding="2" cellspacing="2"> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" style="line-height:180%"> | |||||
<img src="images/help.gif" width="16" height="16" /> 程序用于批量替换数据库中某字段的内容,此操作极为危险,请小心使用。 | |||||
</td> | |||||
</tr> | |||||
<div class="bodytitle mt-3"> | |||||
<div class="bodytitleleft"></div> | |||||
<div class="bodytitletxt" style="padding-left:10px;">批量管理</div> | |||||
</div> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered" | |||||
style=" background:#CFCFCF;"> | |||||
<form action="sys_data_replace.php" name="form1" method="post" target="stafrm" onSubmit="return CheckSubmit()"> | |||||
<input type='hidden' name='action' value='apply'> | |||||
<tr> | |||||
<td height="28" bgcolor="#EDF9D5" background="images/tbg.gif" style="padding-left:10px;"> | |||||
<strong>数据库内容替换:</strong> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellpadding="2" cellspacing="2" class="table table-borderless"> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" style="line-height:180%"> | |||||
<div class="alert alert-info" role="alert"> | |||||
<i class="fa fa-info-circle" aria-hidden="true"></i> 程序用于批量替换数据库中某字段的内容,此操作极为危险,请小心使用。 | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
<tr id='datasel'> | |||||
<td width="15%" height="66"> 选择数据表与字段:</td> | |||||
<td> <table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td id="tables"> | |||||
<?php | |||||
<tr id='datasel'> | |||||
<td width="15%" height="66"> 选择数据表与字段:</td> | |||||
<td> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td id="tables"> | |||||
<?php | |||||
$dsql->SetQuery("Show Tables"); | $dsql->SetQuery("Show Tables"); | ||||
$dsql->Execute('t'); | $dsql->Execute('t'); | ||||
if($dsql->GetError()!=''){ | if($dsql->GetError()!=''){ | ||||
echo "<font color='red'>找不到你所指定的数据库! $dbname</font><br>"; | echo "<font color='red'>找不到你所指定的数据库! $dbname</font><br>"; | ||||
echo $qbutton; | echo $qbutton; | ||||
} | } | ||||
echo "<select name='exptable' id='exptable' size='10' style='width:60%' onchange='ShowFields()'>\r\n"; | |||||
echo "<select name='exptable' id='exptable' size='10' style='width:60%;height: 220px;' onchange='ShowFields()'>\r\n"; | |||||
while($row = $dsql->GetArray('t',MYSQL_BOTH)){ | while($row = $dsql->GetArray('t',MYSQL_BOTH)){ | ||||
echo "<option value='{$row[0]}'>{$row[0]}</option>\r\n"; | echo "<option value='{$row[0]}'>{$row[0]}</option>\r\n"; | ||||
} | } | ||||
echo "</select>\r\n"; | echo "</select>\r\n"; | ||||
$dsql->Close(); | $dsql->Close(); | ||||
?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td id='fields'></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28"> 要替换的字段: | |||||
<input name="rpfield" type="text" id="rpfield" class="alltxt" /> | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2"> | |||||
<td> 替换方式:</td> | |||||
<td> | |||||
<input name="rptype" type="radio" id="ot1" value="replace" checked='1' class='np' /> | |||||
普通替换 | |||||
<input type="radio" name="rptype" id="ot2" value="regex" class='np' /> | |||||
正则表达式 主键字段: | |||||
<input name="keyfield" type="text" id="keyfield" size="12" class="alltxt"/> | |||||
(正则模式必须指定) | |||||
</td> | |||||
</tr> | |||||
?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td id='fields'></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28"> 要替换的字段: | |||||
<input name="rpfield" type="text" id="rpfield" class="alltxt" /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2"> | |||||
<td> 替换方式:</td> | |||||
<td> | |||||
<label><input name="rptype" type="radio" id="ot1" value="replace" checked='1' class='np' /> | |||||
普通替换</label> | |||||
<label><input type="radio" name="rptype" id="ot2" value="regex" class='np' /> | |||||
正则表达式</label> 主键字段: | |||||
<input name="keyfield" type="text" id="keyfield" size="12" class="alltxt" /> | |||||
(正则模式必须指定) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td> 被替换内容:</td> | |||||
<td><textarea name="rpstring" id="rpstring" class="alltxt" style="width:60%;height:50px"></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td> 替换为:</td> | |||||
<td><textarea name="tostring" id="tostring" class="alltxt" style="width:60%;height:50px"></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="29"> 替换条件:</td> | |||||
<td><input name="condition" type="text" id="condition" style="width:45%" class="alltxt" /> | |||||
(空完全替换)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="29"> 安全确认码:</td> | |||||
<td> | |||||
<table width="300" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> | |||||
<input type="text" name="validate" class="alltxt" style="width:80px;text-transform: uppercase;" /> | |||||
</td> | |||||
<td> | |||||
<img src='../plus/vdimgck.php' /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="31" bgcolor="#ffffff" align="center"> | |||||
<button type="submit" name="Submit" class="btn btn-secondary">开始替换数据</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td> 被替换内容:</td> | |||||
<td><textarea name="rpstring" id="rpstring" class="alltxt" style="width:60%;height:50px"></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td> 替换为:</td> | |||||
<td><textarea name="tostring" id="tostring" class="alltxt" style="width:60%;height:50px"></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="29"> 替换条件:</td> | |||||
<td><input name="condition" type="text" id="condition" style="width:45%" class="alltxt" /> | |||||
(空完全替换)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="29"> 安全确认码:</td> | |||||
<td> | |||||
<table width="300" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90"> | |||||
<input type="text" name="validate" class="alltxt" style="width:80px;text-transform: uppercase;" /> | |||||
</td> | |||||
<td> | |||||
<img src='../plus/vdimgck.php' /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
<td width="74%"><strong>结果:</strong></td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="31" bgcolor="#ffffff" align="center"> | |||||
<input type="submit" name="Submit" value="开始替换数据" class="np coolbg" /> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" > <table width="100%"> | |||||
<tr> | |||||
<td width="74%"><strong>结果:</strong></td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] </td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> <div id='mdv' style='width:100%;height:250px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td id="mtd"> | |||||
<div id='mdv' style='width:100%;height:250px;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | </td> | ||||
</tr> | |||||
</table> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -1,84 +1,86 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>数据库维护--数据还原</title> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language="javascript"> | |||||
//获得选中文件的数据表 | |||||
function getCheckboxItem(){ | |||||
var myform = document.form1; | |||||
var allSel=""; | |||||
if(myform.bakfile.value) return myform.bakfile.value; | |||||
for(i=0;i<myform.bakfile.length;i++) | |||||
{ | |||||
if(myform.bakfile[i].checked){ | |||||
if(allSel=="") | |||||
allSel=myform.bakfile[i].value; | |||||
else | |||||
allSel=allSel+","+myform.bakfile[i].value; | |||||
} | |||||
} | |||||
return allSel; | |||||
} | |||||
//反选 | |||||
function ReSel(){ | |||||
var myform = document.form1; | |||||
for(i=0;i<myform.bakfile.length;i++){ | |||||
if(myform.bakfile[i].checked) myform.bakfile[i].checked = false; | |||||
else myform.bakfile[i].checked = true; | |||||
} | |||||
} | |||||
//全选 | |||||
function SelAll(){ | |||||
var myform = document.form1; | |||||
for(i=0;i<myform.bakfile.length;i++){ | |||||
myform.bakfile[i].checked = true; | |||||
} | |||||
} | |||||
//取消 | |||||
function NoneSel(){ | |||||
var myform = document.form1; | |||||
for(i=0;i<myform.bakfile.length;i++){ | |||||
myform.bakfile[i].checked = false; | |||||
} | |||||
} | |||||
// | |||||
function checkSubmit() | |||||
{ | |||||
var myform = document.form1; | |||||
myform.bakfiles.value = getCheckboxItem(); | |||||
return true; | |||||
} | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>数据库维护--数据还原</title> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<script language="javascript"> | |||||
//获得选中文件的数据表 | |||||
function getCheckboxItem() { | |||||
var myform = document.form1; | |||||
var allSel = ""; | |||||
if (myform.bakfile.value) return myform.bakfile.value; | |||||
for (i = 0; i < myform.bakfile.length; i++) { | |||||
if (myform.bakfile[i].checked) { | |||||
if (allSel == "") | |||||
allSel = myform.bakfile[i].value; | |||||
else | |||||
allSel = allSel + "," + myform.bakfile[i].value; | |||||
} | |||||
} | |||||
return allSel; | |||||
} | |||||
//反选 | |||||
function ReSel() { | |||||
var myform = document.form1; | |||||
for (i = 0; i < myform.bakfile.length; i++) { | |||||
if (myform.bakfile[i].checked) myform.bakfile[i].checked = false; | |||||
else myform.bakfile[i].checked = true; | |||||
} | |||||
} | |||||
//全选 | |||||
function SelAll() { | |||||
var myform = document.form1; | |||||
for (i = 0; i < myform.bakfile.length; i++) { | |||||
myform.bakfile[i].checked = true; | |||||
} | |||||
} | |||||
//取消 | |||||
function NoneSel() { | |||||
var myform = document.form1; | |||||
for (i = 0; i < myform.bakfile.length; i++) { | |||||
myform.bakfile[i].checked = false; | |||||
} | |||||
} | |||||
// | |||||
function checkSubmit() { | |||||
var myform = document.form1; | |||||
myform.bakfiles.value = getCheckboxItem(); | |||||
return true; | |||||
} | |||||
</script> | |||||
</script> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="99%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<tr> | |||||
<td height="19" colspan="4" background="images/tbg.gif" bgcolor="#E7E7E7"> | |||||
<table width="96%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td width="24%"><strong>数据还原</strong></td> | |||||
<td width="76%" align="right"> | |||||
<b><a href="sys_data.php"><u>数据备份</u></a></b> | |||||
| | |||||
<b><a href="sys_sql_query.php"><u>SQL命令行工具</u></a></b> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<form name="form1" onSubmit="checkSubmit()" action="sys_data_done.php" method="post" target="stafrm"> | |||||
<input type='hidden' name='dopost' value='redat' /> | |||||
<input type='hidden' name='bakfiles' value='' /> | |||||
<tr bgcolor="#F7F8ED"> | |||||
<td height="24" colspan="4" valign="top"> | |||||
<strong>发现的备份文件:</strong> | |||||
<?php if(count($filelists)==0) echo " 没找到任何备份文件... "; ?> | |||||
<table width="99%" border="0" cellpadding="3" cellspacing="1" align="center" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td height="19" colspan="4" background="images/tbg.gif" bgcolor="#E7E7E7"> | |||||
<table width="96%" border="0" cellspacing="1" cellpadding="1" class="table table-borderless"> | |||||
<tr> | |||||
<td width="24%"><strong>数据还原</strong></td> | |||||
<td width="76%" align="right"> | |||||
<a href="sys_data.php" class="btn btn-secondary btn-sm">数据备份</a> | |||||
<a href="sys_sql_query.php" class="btn btn-secondary btn-sm">SQL命令行工具</a> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<?php | |||||
<form name="form1" onSubmit="checkSubmit()" action="sys_data_done.php" method="post" target="stafrm"> | |||||
<input type='hidden' name='dopost' value='redat' /> | |||||
<input type='hidden' name='bakfiles' value='' /> | |||||
<tr bgcolor="#F7F8ED"> | |||||
<td height="24" colspan="4" valign="top"> | |||||
<strong>发现的备份文件:</strong> | |||||
<?php if(count($filelists)==0) echo " 没找到任何备份文件... "; ?> | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
for($i=0;$i<count($filelists);$i++) | for($i=0;$i<count($filelists);$i++) | ||||
{ | { | ||||
echo "<tr bgcolor='#FFFFFF' align='center' height='24'>\r\n"; | echo "<tr bgcolor='#FFFFFF' align='center' height='24'>\r\n"; | ||||
@@ -101,43 +103,45 @@ function checkSubmit() | |||||
echo "</tr>\r\n"; | echo "</tr>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
<tr align="center" bgcolor="#FDFDEA"> | |||||
<td height="24" colspan="4"> | |||||
| |||||
<input name="b1" type="button" id="b1" onClick="SelAll()" value="全选" /> | |||||
| |||||
<input name="b2" type="button" id="b2" onClick="ReSel()" value="反选" /> | |||||
| |||||
<input name="b3" type="button" id="b3" onClick="NoneSel()" value="取消" /> | |||||
</td> | |||||
<tr align="center" bgcolor="#FDFDEA"> | |||||
<td height="24" colspan="4"> | |||||
| |||||
<button name="b1" type="button" id="b1" onClick="SelAll()" class="btn btn-secondary btn-sm">全选</button> | |||||
| |||||
<button name="b2" type="button" id="b2" onClick="ReSel()" class="btn btn-secondary btn-sm">反选</button> | |||||
| |||||
<button name="b3" type="button" id="b3" onClick="NoneSel()" class="btn btn-secondary btn-sm">取消</button> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#F7F8ED"> | |||||
<td height="24" colspan="4" valign="top"> | |||||
<strong>附加参数:</strong> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24" colspan="4"> | |||||
<label><input name="structfile" type="checkbox" class="np" id="structfile" value="<?php echo $structfile?>" | |||||
checked='1' /> | |||||
还原表结构信息(<?php echo $structfile?>)</label> | |||||
<label><input name="delfile" type="checkbox" class="np" id="delfile" value="1" /> | |||||
还原后删除备份文件</label></td> | |||||
</tr> | |||||
<tr bgcolor="#E3F4BB"> | |||||
<td height="33" colspan="4"> | |||||
| |||||
<button type="submit" name="Submit" class="btn btn-secondary">开始还原数据</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F7F8ED"> | |||||
<td height="24" colspan="4"><strong>进行状态: </strong></td> | |||||
</tr> | </tr> | ||||
<tr bgcolor="#F7F8ED"> | |||||
<td height="24" colspan="4" valign="top"> | |||||
<strong>附加参数:</strong> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="180" colspan="4"> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24" colspan="4"> | |||||
<input name="structfile" type="checkbox" class="np" id="structfile" value="<?php echo $structfile?>" checked='1' /> | |||||
还原表结构信息(<?php echo $structfile?>) | |||||
<input name="delfile" type="checkbox" class="np" id="delfile" value="1" /> | |||||
还原后删除备份文件 </td> | |||||
</tr> | |||||
<tr bgcolor="#E3F4BB"> | |||||
<td height="33" colspan="4"> | |||||
| |||||
<input type="submit" name="Submit" value="开始还原数据" class="coolbg np" /> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F7F8ED"> | |||||
<td height="24" colspan="4"><strong>进行状态: </strong></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="180" colspan="4"> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |