我该怎么办的图片请看图片,没毛病

图片无法查看啊,老铁,没毛病啊!
&?phprequire_once 'dir.func.php';require_once 'file.func.php';require_once 'common.func.php';$path = "file";$act = $_REQUEST['act'];$filename = $_REQUEST['filename'];$info = readDirectory($path);// print_r($info);$redirect = "index.php?path={$path}";if ($act == "createFile") {
// 创建文件 查看文件
$mes = createFile($path . "/" . $filename);
alertMes($mes, $redirect);} else if ($act == "showContent") {
// 查看文件内容
$content = file_get_contents($filename);
// cho "&textarea readonly='raedonly' clos='100' rows='20'&$c&/textarea&" ;
// 高亮显示PHP代码
if (strlen($content)) {
// 高亮显示字符串中的PHP代码
$newContent = highlight_string($content, true);
// 高亮显示文件中的PHP代码
// highlight_file($filename);
$str = &&&XGG
width="100%" height="10%" bgcolor="pink"&
&tr&&td&{$newContent}&/td&&/tr&
&/table&XGG;
alertMes("这个文件没有内容,请编辑再查看!", "$redirect");
}}else if($act=='editContent'){
//修改文件内容
"编辑文件";
//得到文件内容
$content=file_get_contents($filename);
$str=&&&XGG
&form action='index.php?act=doEdit' method='post'&
&textarea name='content' cols='190' rows='10'
&{$content}&/textarea&&br/&
&input type='hidden' name='filename' value='{$filename}' /&
&input type="submit" value="修改文件内容" /&
&/form&XGG;
echo $}else if ($act=="doEdit"){
//修改文件内容的操作
$content=$_REQUEST['content'];
if(file_put_contents($filename,$content)){
$mes="文件修改成功";
$mes="文件修改失败";
alertMes($mes, $redirect);}?&&!DOCTYPE html &&html&&meta http-equiv="Content-Type" content="text/html" charset="GB2312"&&title&Insert title here&/title&&link type="text/css" rel="stylesheet" href="style.css"&&/link&&--从官网下载到本地的文件加载的--&&script type="text/javascript" src="jquery-ui-1.12.1.custom/jquery-ui.js"&&/script&&script type="text/javascript" src="jquery-ui-1.12.1.custom/external/jquery/jquery.js"&&/script&&script type="text/javascript" src="jquery-ui-1.12.1.custom/jquery-ui.min.js"&&/script&&/head&&body& &h1&在线文件管理器&/h1& &div&
&li&&a href="index.php" title="主目录"&&span style="margin-left: 8px, margin-top:0px"&&/span&&img alt="" src="images/zhuye.png" /&&/a&&/li&
&li&&a href="#" onclick="show('createFile')" title="新建文件"&&span style="margin-left: 5"&&/span&&img alt="" src="images/xinjianwenjian.png" /&&/a&&/li&
&li&&a href="#" onclick="show('createFolder')" title="新建文件夹"&&span style="margin-left: 5"&&/span&&img alt="" src="images/xinjianwenjianjia.png" /&&/a&&/li&
&li&&a href="#" onclick="show('uploadFile')" title="上传文件"&&span style="margin-left: 5"&&/span&&img alt="" src="images/shangchuan.png" /&&/a&&/li&
&li&&a href="#" title="返回上级目录" onclick="back('&?php //echo $?&')"&&span style="margin-left: 5"&&/span&&img alt="" src="images/fanhui.png" /&&/a&&/li&
&/ul& &/div&&script type="text/javascript"&function show(dis){document.getElementById(dis).style.display="block";}function delFile(path,filename){ if(window.confirm("删除之后无法恢复,您确定要删除吗?")){
location.href="index.pnp?act=delFile&path="+path+"&filename="+
}}function showDetail(t,filename){
$("showImg").attr("src",filename);
$("showDetail").dialog({
height:"auto",
width:"auto",
position:{my:"center",at:"center",collision:"fit"},
modal:false,//是否模式对话框
draggable:true,//是否允许拖拽
resizable:true,//是否允许拖动
title:t,//对话框标题
show:"slide",
hide:"explode"
});}&/script& &form action="index.php" method="post"&
&tr id="createFile" style="display: none"&
&td&请输入文件名称&/td&
&td&&input type="text" name="filename" /& &input type="hidden" name="path" value="&?php echo $path?&" /& &input type="hidden"
name="act" value="createFile" /& &input type="submit" value="创建文件" /&
&tr id="createFolder" style="display: none"&
&td&请输入文件夹名称&/td&
&td&&input type="text" name="dirname" /& &input type="submit" name="act" value="创建文件夹" /&&/td&
&tr id="uploadFile" style="display: none"&
&td&请选择要上传的文件&/td&
&td&&input type="file" name="filename" /& &input type="submit" name="act" value="上传文件" /&&/td&
&td&编号&/td&
&td&名称&/td&
&td&类型&/td&
&td&大小&/td&
&td&可读&/td&
&td&可写&/td&
&td&可执行&/td&
&td&创建时间&/td&
&td&修改时间&/td&
&td&访问时间&/td&
&td&操作&/td&
&/tr&&?phpif ($info ['file']) {
foreach ($info ['file'] as $val) {
$p = $path . "/" . $?&
&td&&?php echo $i;?&
&td&&?php echo $?&&/td&
$src=filetype($p)=="file"?"file_ico.png":"folder_ico.png";?&&img
src="images/&?php echo $src ?&" alt=" " title="文件" /&&/td&
&td&&?php echo transByte(filesize("$p"))?&&/td&
&td&&?php $src=is_readable($p)?"correct.png":"error.png";?&&img
src="images/&?php echo $ ?&" alt=" " /&&/td&
&td&&?php $src=is_writable($p)?"correct.png":"error.png";?&&img
src="images/&?php echo $ ?&" alt=" " /&&/td&
&td&&?php $src=is_executable($p)?"correct.png":"error.png";?&&img
src="images/&?php echo $ ?&" alt=" " /&&/td&
&td&&?php echo date("Y-m-d H:i:s",filectime($p));?&&/td&
&td&&?php echo date("Y-m-d H:i:s",filemtime($p));?&&/td&
&td&&?php echo date("Y-m-d H:i:s",fileatime($p));?&&/td&
$tmp_name=explode(".", $val);
$ext = strtolower(end($tmp_name));
$imageExt = array(
if (in_array($ext, $imageExt)) {
&a href="#"
onclick="showDetail('&?php echo $?&','&?php echo $p;?&')"&&img
alt="" src="images/show.png" title="查看" /&&/a&
&a href="index.php?act=showContent&filename=&?php echo $p;?&"&&img
alt="" src="images/show.png" title="查看" /&&/a&
&a href="index.php?act=editContent&filename=&?php echo $p;?&"&&img
alt="" src="images/edit.png" title="修改" /&&/a& &a
href="index.php?act=renameFile&path=&?php echo $p;?&"&&img alt=""
src="images/rename.png" title="重命名" /&&/a& &a
href="index.php?act=copyFile&path=&?php echo $p;?&"&&img alt=""
src="images/copy.png" title="复制" /&&/a& &a
href="index.php?act=moveFile&path=&?php echo $p;?&"&&img alt=""
src="images/cut.png" title="剪切" /&&/a& &a href="#"
onclick="delFile('&?php echo $p;?&','&?php echo $p.'/'.$?&')"&&img
alt="" src="images/delete.png" title="删除" /&&/a& &a
href="index.php?act=downFile&path=&?php echo $p;?&&filename&?php echo $p.'/'.$?&"&&img
alt="" src="images/download.png" title="下载" /&&/a&
}}?& &/table& &/form&&/body&&/html&
非常感谢!
大神仰慕你!!
写下你的评论...
Copyright (C)
All Rights Reserved | 京ICP备 号-2没毛病?要不要去鉴定一下
责编:王俊杰
支持键盘翻页
本图集所有图片已播放完毕
环球时报系产品相关文章推荐
修改之前的代码
webView.getSettings().setSupportZoom(true);
//扩大比例的缩放
//webView.getSettings...
对于大家来讲WebView肯定很熟悉,因为我们在日常开发中经常用到它。所以对于它的一些基本用法我就不在这啰嗦了,直接进入正题。
我遇到的问题就是在使用WebView加载网页的时候图片不显示(我手机系...
android.util.Log.i("url", "htmlDetails: "+url);
WebSettings webSettings = webView.getSettings();
WebView加载网页图片显示不全或显示不完整:
--------------
解决办法:
/有可能是DOM储存API没有打开
webView.getSettings().setDomSto...
项目搞到一半,突然发现个诡异的问题,H5登录的后的头像居然不见了,本人用的是Android6.0,平常都没什么感觉有bug,webview套h5,登录方式有2种,一种是普通手机号登录,一种是第三方登录...
在Android开发过程中,会遇到需要显示网页的需求,或者需要用webview控件来达到某个效果。我这段时间在做CSDN博客的客户端,使用webview来显示博文内容,一是因为解析博文内容再适配比较麻...
对于大家来讲WebView肯定很熟悉,因为我们在日常开发中经常用到它。所以对于它的一些基本用法我就不在这啰嗦了,直接进入正题。
我遇到的问题就是在使用WebView加载网页的时候图片不显示(我手机系...
今天遇到一个问题就是在使用WebView加载网页的时候图片不显示,当这个问题一出现我就想当然的以为是后端提供和H5页面的问题。
可蛋疼的是在IOS中显示是正常的,这就。。。。
我当时就想是不是因为...
前言:android开发要经常和图片打交道。关于如何缓存,如何加载网上有很多框架。但是当我加载640*6149的长图时,实现起来效果并不理想,我用的是fresco加载。由于OpenGL渲染系统限制,A...
关于webview加载本地图片的四种方案,利用一个缓存系统+压缩模块+多线程工作来完成优化...
他的最新文章
他的热门文章
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)2011被浏览1618703分享邀请回答2.2K156 条评论分享收藏感谢收起2.3K130 条评论分享收藏感谢收起44岁眼睛花咋办,上医院医生说我的眼睛没毛病_百度知道
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。
44岁眼睛花咋办,上医院医生说我的眼睛没毛病
44岁眼睛花咋办,上医院医生说我的眼睛没毛病
提示该问题下回答为网友贡献,仅供参考。
我有更好的答案
家里的风水不好!
这跟风水有什么关系吗
是的有关系。你看与火有关系的东西看太多了。或者你火气太大!。你家房子有路冲你家!
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包

我要回帖

更多关于 凯迪拉克ct6小毛病多 的文章

 

随机推荐