html5中文学习网

您的位置: 首页 > 网络编程 > PHP编程 » 正文

ImageList――图片列表类_PHP教程_编程技术

[ ] 已经帮助:人解决问题
<?php
class ImageList {
var $images = array(
'm_other.gif'=>'eNpz93SzME9UYVBheMzA8P///7S0NAYGhjNnzvwHUmkMIA5IGMzBADogAqSXgeWiwAnP1Xt3tJ3d/f2maEuEwoQrHVnPuFasE+HR5TquXDtp++pXe24cUdEQc7ZdmLJBW1PX58lmobMq+seeLXnFk7pZZF3HIlYJziangzt0s0+kfZZcG2d+dNqT6Qf8V/d752mKsIgy1bqV5QYJt/ZlsMXnNPa01GS4sjNxcExmqMgXZm9jYp81Z255k7PI4nWzli2f0zB/tZHYxg2z3FZ2hxWkcE7asqBZWP1EwvEj2/TF4iVWTQ3eejn46JorU/bfunrn1o3tdx/qMz97/uLlq+dnD797v+Xup89fnAQZrAEVaHY9',
'm_asp.gif'=>'eNpz93SzME9UYVBheMzA8P//fwYgmDnTeObMtDP/087MPHPm/5kzQOr/mf//jc/MZEAFOiACpJeB5ZfACc/VeyVazu7+flO05YZb0OPI3pc3VwX9Stt865qYX521z3c7QYMdUkLqVkv8D+TwsZyc0RWQETV74YolDAY268/FdxgoNqxtDuqwtqw5eLVEz3mdwgHmloVaM5K52MQ42DljOVo54uvEfFnZRTg5WDmEy8NcxcNYWoS5fHKqEzUkehlYK1vZfJgbGab5zOhhillfuYxpijAn+6SNokxc0eFcHDvF1nrN3Bnnx9oqVF11YZ/INqGJe0RX9R69InxAcWHCsaAlDRLrw7s3bWY52n49vfbe1YR+oXkZTor5Pt+3L7qW+CJ9zTQJobATmos+LnzIxsgcIVmx/GnH0W4J47gOBgZrAMrQftY=',
'm_bmp.gif'=>'eNpz93SzME9UYVBheMzA8P///5kzZzIwMKSlpZ05c8bY2DgNKMgAEQARYCUMDMYMZxjSzvw/owOSAullYPkncMJz9V6L12cdfyRodN0VmRKisEDdgOXwrlqj68ec5rK23Nq6U6ZxgeXXkhlijgECPN1Ct3yMcuyMD+YcFV/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Hf9I5f7l42ernt+8ubtt+/eHX386fPjV984GawBBwlxHg=='
);
var $tpl = '<span style="width:70;height:42;"><center style="margin:5;height:100%;border:0 solid #000000">{$图}<br>{$文}</center></span>';

function ImageList() {
foreach($this->images as $k=>$v)
$this->images[$k] = gzuncompress(base64_decode($v));
}
function display($v="m_other.gif") {
if($_GET['img']) {
$v = $_GET['img'];
if(! in_array($v,array_keys($this->images))) $v = 'm_other.gif';
echo $this->images[$v];
exit;
}
foreach($this->images as $k=>$v) {
$文 = $k;
$图 = "<img src='?img=$k'>";
echo eval("return /"".AddSlashes($this->tpl)."/";");
}
}
}

$p = new ImageList;
$p->display();

?>
Wx2HTML5中文学习网 - HTML5先行者学习网
Wx2HTML5中文学习网 - HTML5先行者学习网
(责任编辑:)
推荐书籍
推荐资讯
关于HTML5先行者 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助