This repository has been archived on 2026-06-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
EDT/pc/module/manage/dp_pic_preview.php
wsh5485 7e47ce238b chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
2025-06-15 13:04:37 +08:00

24 lines
828 B
PHP

<?php
if(THIS_IN!="edt_c")
exit("错误的访问!");
$uid=check_cookie();
$db=_mysql_connect();
$msg_login_user=get_db_msg("select * from ".$table_pre."user where id='".$uid."'");
$tmp=explode(",",$_v);
$pic=array();
for($i=0;$i<count($tmp);$i++){
$pic[$i]=$tmp[$i];
}
$content="<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" bgcolor=\"#cccccc\">";
for($i=0;$i<ceil(count($pic)/4);$i++){
$content.="<tr bgcolor=\"#ffffff\">";
for($j=0;$j<4;$j++){
$url="../attachments/dp/mini/".$pic[$i*4+$j];
$url=is_file($url)?out_good_pic($url,150,200,' border=0'):"&nbsp;";
$content.="<td align=\"center\" valign=\"middle\" width=\"25%\"><a href=\"../attachments/dp/big/".$pic[$i*4+$j]."\" target=\"_blank\">".$url."</a></td>";
}
$content.="</tr>";
}
$_title_="图片预览";
include template("blank");
?>