@@ -41,9 +41,9 @@ if ($mediatype > 1) { | |||||
$addsql .= " AND u.mediatype='$membertype' "; | $addsql .= " AND u.mediatype='$membertype' "; | ||||
} | } | ||||
$sql = "SELECT u.aid,u.title,u.url,u.mediatype,u.filesize,u.mid,u.uptime,a.userid AS adminname,m.userid AS membername | $sql = "SELECT u.aid,u.title,u.url,u.mediatype,u.filesize,u.mid,u.uptime,a.userid AS adminname,m.userid AS membername | ||||
FROM #@__uploads u | |||||
LEFT JOIN #@__admin a ON a.id = u.mid | |||||
LEFT JOIN #@__member m ON m.mid = u.mid | |||||
FROM `#@__uploads` u | |||||
LEFT JOIN `#@__admin` a ON a.id = u.mid | |||||
LEFT JOIN `#@__member` m ON m.mid = u.mid | |||||
$addsql ORDER BY u.aid DESC"; | $addsql ORDER BY u.aid DESC"; | ||||
$dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
$dlist->pageSize = 20; | $dlist->pageSize = 20; | ||||
@@ -56,7 +56,7 @@ $dlist->Display(); | |||||
function MediaType($tid, $nurl) | function MediaType($tid, $nurl) | ||||
{ | { | ||||
if ($tid == 1) { | if ($tid == 1) { | ||||
return "图片<a href=\"javascript:;\" onClick=\"ChangeImage('$nurl');\"><img src='../static/web/img/picviewnone.gif' name='picview' border='0' alt='预览'></a>"; | |||||
return "图片<a href=\"$nurl\" target=\"_blank\"><i class='fa fa-picture-o' name='picview' border='0' alt='预览'></i></a>"; | |||||
} else if ($tid == 2) { | } else if ($tid == 2) { | ||||
return "FLASH"; | return "FLASH"; | ||||
} else if ($tid == 3) { | } else if ($tid == 3) { | ||||
@@ -1,28 +0,0 @@ | |||||
<?php | |||||
/** | |||||
* 通行证设置 | |||||
* | |||||
* @version $Id: sys_passport.php 1 22:28 2010年7月20日Z tianya $ | |||||
* @package DedeBIZ.Administrator | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | |||||
* @link https://www.dedebiz.com | |||||
*/ | |||||
require_once(dirname(__FILE__)."/config.php"); | |||||
if (!isset($dopost)) $dopost = ""; | |||||
if ($dopost == 'save') { | |||||
$ConfigFile = DEDEINC."/config_passport.php"; | |||||
$vars = array('cfg_pp_need', 'cfg_pp_encode', 'cfg_pp_login', 'cfg_pp_exit', 'cfg_pp_reg'); | |||||
$configstr = ""; | |||||
foreach ($vars as $v) { | |||||
${$v} = str_replace("'", "", ${$v}); | |||||
$configstr .= "\${$v} = '".str_replace("'", "", stripslashes(${'edit___'.$v}))."';\r\n"; | |||||
} | |||||
$configstr = '<'.'?'."\r\n".$configstr.'?'.'>'; | |||||
$fp = fopen($ConfigFile, "w") or die("写入文件 $ConfigFile 失败,请检查权限"); | |||||
fwrite($fp, $configstr); | |||||
fclose($fp); | |||||
echo "<script>alert('修改通行证配置成功');window.location='sys_passport.php?".time()."';</script>\r\n"; | |||||
} | |||||
include DedeInclude('templets/sys_passport.htm'); |
@@ -28,11 +28,11 @@ | |||||
if($row[$field]=='') continue; | if($row[$field]=='') continue; | ||||
if($fielddata[1]=='img') | if($fielddata[1]=='img') | ||||
{ | { | ||||
$row[$field] = "<input name='photo' type='file'> <a href='{$row[$field]}' target='_blank'><img src='../static/web/img/channeladd.gif' border='0'> 浏览原图</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原图</a>"; | |||||
$row[$field] = "<input name='photo' type='file'> <a href='{$row[$field]}' target='_blank'><i class='fa fa-picture-o'></i> 浏览原图</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原图</a>"; | |||||
} | } | ||||
else if($fielddata[1]=='addon') | else if($fielddata[1]=='addon') | ||||
{ | { | ||||
$row[$field] = "<input name='file' type='file'> <a href='{$row[$field]}' target='_blank'><img src='../static/web/img/channeladd.gif' border='0'> 浏览原附件</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原附件</a>"; | |||||
$row[$field] = "<input name='file' type='file'> <a href='{$row[$field]}' target='_blank'><i class='fa fa-file-text-o'></i> 浏览原附件</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原附件</a>"; | |||||
} else { | } else { | ||||
if(!in_array($fielddata[1],$allowhtml)){ | if(!in_array($fielddata[1],$allowhtml)){ | ||||
$row[$field] = dede_htmlspecialchars($row[$field]); | $row[$field] = dede_htmlspecialchars($row[$field]); | ||||
@@ -28,10 +28,10 @@ | |||||
{ | { | ||||
if($fields[$field]=='') continue; | if($fields[$field]=='') continue; | ||||
if($fielddata[1]=='img'){ | if($fielddata[1]=='img'){ | ||||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='../static/web/img/channeladd.gif' border='0'>图片附件</a>"; | |||||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><i class='fa fa-picture-o'></i> 图片附件</a>"; | |||||
} | } | ||||
else if($fielddata[1]=='addon'){ | else if($fielddata[1]=='addon'){ | ||||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='../static/web/img/channeladd.gif' border='0'>其它附件</a>"; | |||||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><i class='fa fa-file-text-o'></i> 其它附件</a>"; | |||||
} else { | } else { | ||||
if(!in_array($fielddata[1],$allowhtml)){ | if(!in_array($fielddata[1],$allowhtml)){ | ||||
$fields[$field] = dede_htmlspecialchars($fields[$field]); | $fields[$field] = dede_htmlspecialchars($fields[$field]); | ||||
@@ -17,7 +17,6 @@ | |||||
} | } | ||||
</style> | </style> | ||||
<script> | <script> | ||||
function ChangeImage(surl) { document.getElementById('picview').src = surl; } | |||||
//获得选中文件的文件名 | //获得选中文件的文件名 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | var allSel = ""; | ||||
@@ -56,12 +55,6 @@ | |||||
</script> | </script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<div id="floater" class="napisdiv"> | |||||
<a href="javascript:;" onClick="ChangeImage('../static/web/img/picviewnone.gif');"> | |||||
<img src='../static/web/img/picviewnone.gif' id='picview' name='picview' border='0' alt='单击关闭预览' style='z-index:10000'> | |||||
</a> | |||||
</div> | |||||
<SCRIPT src="js/float.js"></SCRIPT> | |||||
<table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | ||||
<tr> | <tr> | ||||
<td height="26" colspan="7" background="../static/web/img/tbg.gif"> | <td height="26" colspan="7" background="../static/web/img/tbg.gif"> | ||||
@@ -4,15 +4,16 @@ | |||||
<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/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<table width="98%" align="center" cellpadding="3" cellspacing="1"> | |||||
<table width="98%" align="center" cellpadding="3" cellspacing="1" class="table maintable mt-3 mb-3"> | |||||
<tr> | <tr> | ||||
<td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="mytag_main.php">自定义标记管理</a> > 修改标记</td> | <td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="mytag_main.php">自定义标记管理</a> > 修改标记</td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="200"> | <td height="200"> | ||||
<table width="100%" cellspacing="4" cellpadding="4"> | |||||
<table width="100%" cellspacing="4" cellpadding="4" class="table table-borderless"> | |||||
<form action="mytag_edit.php" method="post" enctype="multipart/form-data" name="form1"> | <form action="mytag_edit.php" method="post" enctype="multipart/form-data" name="form1"> | ||||
<input type='hidden' name='aid' value='<?php echo $aid?>'> | <input type='hidden' name='aid' value='<?php echo $aid?>'> | ||||
<input type='hidden' name='dopost' value='saveedit'> | <input type='hidden' name='dopost' value='saveedit'> | ||||
@@ -65,7 +66,9 @@ | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="53" align="center"></td> | <td height="53" align="center"></td> | ||||
<td colspan="2"><input name="imageField" type="image" src="../static/web/img/button_ok.gif"></td> | |||||
<td colspan="2"> | |||||
<button type='submit' name='B1' class='btn btn-success btn-sm'>确定</button> | |||||
</td> | |||||
</tr> | </tr> | ||||
</form> | </form> | ||||
</table> | </table> | ||||
@@ -1,71 +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 rel="stylesheet" href="../static/web/css/admin.css"> | |||||
</head> | |||||
<body> | |||||
<table width="98%" cellpadding="2" cellspacing="1" align="center"> | |||||
<tr> | |||||
<td height="26" background="../static/web/img/tbg.gif">通行证设置:</td> | |||||
</tr> | |||||
<tr> | |||||
<td> | |||||
<table width="100%" cellspacing="1" cellpadding="1"> | |||||
<form action="sys_passport.php" method="post" name="form1"> | |||||
<input type="hidden" name="dopost" value="save"> | |||||
<tr align="center" bgcolor="#E6F7CA" height="26"> | |||||
<td width="25%">参数说明</td> | |||||
<td width="75%">参数值</td> | |||||
</tr> | |||||
<tr height="26" align="center" bgcolor="#F4FCDC"> | |||||
<td> 是否使用通行证:</td> | |||||
<td align="left"> | |||||
<input type='radio' class='np' name='edit___cfg_pp_need' value='Y'<?php if($cfg_pp_need=='Y') echo " checked"; ?>> | |||||
是 | |||||
<input type='radio' class='np' name='edit___cfg_pp_need' value='N'<?php if($cfg_pp_need=='N') echo " checked"; ?>> | |||||
否</td> | |||||
</tr> | |||||
<tr height="26" align="center" bgcolor="#F4FCDC"> | |||||
<td> 通行证加密码:</td> | |||||
<td align="left"> | |||||
<?php | |||||
if($cfg_pp_encode=='') $cfg_pp_encode = chr(mt_rand(ord('A'),ord('Z'))).chr(mt_rand(ord('a'),ord('z'))).chr(mt_rand(ord('A'),ord('Z'))).chr(mt_rand(ord('A'),ord('Z'))).chr(mt_rand(ord('a'),ord('z'))).mt_rand(1000,9999).chr(mt_rand(ord('A'),ord('Z'))); | |||||
?> | |||||
<input type='text' name='edit___cfg_pp_encode' id='edit___cfg_pp_encode' style='width:80%' value='<?php echo $cfg_pp_encode?>'> | |||||
</td> | |||||
</tr> | |||||
<tr height="26" align="center"> | |||||
<td> 登录通行证网址:</td> | |||||
<td align="left"> | |||||
<input type='text' name='edit___cfg_pp_login' id='edit___cfg_pp_login' style='width:80%' value='<?php echo $cfg_pp_login?>'></td> | |||||
</tr> | |||||
<tr height="26" align="center" bgcolor="#F4FCDC"> | |||||
<td>退出通行证网址:</td> | |||||
<td align="left"><input name="edit___cfg_pp_exit" type='text' id="edit___cfg_pp_exit" style='width:80%' value='<?php echo $cfg_pp_exit?>'></td> | |||||
</tr> | |||||
<tr height="26" align="center"> | |||||
<td>注册通行证帐号网址:</td> | |||||
<td align="left"> | |||||
<input type='text' name='edit___cfg_pp_reg' id='edit___cfg_pp_reg' style='width:80%' value='<?php echo $cfg_pp_reg?>'> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="50" colspan="2"> <table width="98%" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td width="11%"></td> | |||||
<td width="11%"><input name="imageField" type="image" src="../static/web/img/button_ok.gif" class="np"></td> | |||||
<td width="78%"><img src="../static/web/img/button_reset.gif" width="60" height="26" style="cursor:pointer" onClick="document.form1.reset()"></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<center> | |||||
</center> | |||||
</body> | |||||
</html> |
@@ -227,7 +227,7 @@ else if ($action == 'savetagfile') { | |||||
<input type='hidden' name='dopost' value='make' /> | <input type='hidden' name='dopost' value='make' /> | ||||
测试标签:(需要使用环境变量的不能在此测试)<br> | 测试标签:(需要使用环境变量的不能在此测试)<br> | ||||
<textarea name='partcode' cols='150' rows='6' style='width:90%;'>{dede:{$tagname} }{/dede:{$tagname}}</textarea><br> | <textarea name='partcode' cols='150' rows='6' style='width:90%;'>{dede:{$tagname} }{/dede:{$tagname}}</textarea><br> | ||||
<input name='imageField1' type='image' class='np' src='../static/web/img/button_ok.gif' width='60' height='26' border='0' /> | |||||
<button type='submit' name='B1' class='btn btn-success btn-sm'>确定</button> | |||||
</form> | </form> | ||||
"; | "; | ||||
$wintitle = "成功修改/创建文件"; | $wintitle = "成功修改/创建文件"; | ||||
@@ -1,6 +1,6 @@ | |||||
<ul style="padding:0;margin:0;list-style-type: none;"> | <ul style="padding:0;margin:0;list-style-type: none;"> | ||||
<li style='float:left;padding-left:3px;padding-right:3px;'> | <li style='float:left;padding-left:3px;padding-right:3px;'> | ||||
<img src='../static/web/img/channellist.gif'> | |||||
▪ | |||||
</li> | </li> | ||||
<li style='float:left'> | <li style='float:left'> | ||||
<a href="[field:typelink/]">[field:typename/]</a> | <a href="[field:typelink/]">[field:typename/]</a> | ||||
@@ -4,7 +4,7 @@ | |||||
{dede:type} | {dede:type} | ||||
<table cellpadding="0" cellspacing="0" width="98%"> | <table cellpadding="0" cellspacing="0" width="98%"> | ||||
<tr> | <tr> | ||||
<td width='10%'><img src='../static/web/img/channellist.gif'></td> | |||||
<td width='10%'>▪</td> | |||||
<td width='60%'> | <td width='60%'> | ||||
<a href="[field:typelink /]">[field:typename /]</a> | <a href="[field:typelink /]">[field:typename /]</a> | ||||
</td> | </td> | ||||