} </script> <div style="clear:both;height:30px;margin-top:10px;"> <a href="javascript:void(0);" class="but_enter" onclick="window.returnValue='';window.close();">取消</a> <a href="javascript:void(0);" class="but_enter" onclick="window.close();">确定</a> </div> <?php $p = isset($_GET['p']) && is_numeric($_GET['p']) ? intval($_GET['p']) : 1; $dbm = new db_mysql(); $where = ""; $suffix = ""; $suffix .= " order by id desc "; $suffix .= $dbm->get_limit_sql(15, $p); $params = array('table_name' => TB_PREFIX . 'resource_list', 'where' => $where, 'pagesize' => 15, 'count' => 1, 'suffix' => $suffix); $rs = $dbm->single_query($params); function get_alt_txt($url) { $file = pathinfo($url); switch ($file['extension']) { case 'jpg': case 'jpeg': case 'gif': case 'png': case 'ico': case 'bmp': return '图片不存在'; case 'swf': case 'flv': return 'FLASH文件'; case 'txt':