- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
//проверяем расширение
$rashirenie= substr($result_img['url'], strrpos($result_img['url'], '.') + 1);
$rashirenie=trim($rashirenie) ;
if($rashirenie=='jpg' or $rashirenie=='JPG' )
{
echo "<a href='".$path.$uploads.$result_img['url']."' target='_blank'><img src='img/jpg.png'></a><a href='del_img.php?id_image=".$result_img['id_image']."'><img src='img/del2.png' align='top'></a>" ;
}
if($rashirenie=='png' or $rashirenie=='PNG' )
{
echo "<a href='".$path.$uploads.$result_img['url']."' target='_blank'><img src='img/png.png'></a><a href='del_img.php?id_image=".$result_img['id_image']."'><img src='img/del2.png' align='top'></a>" ;
}
if($rashirenie=='gif' or $rashirenie=='GIF' )
{
echo "<a href='".$path.$uploads.$result_img['url']."' target='_blank'><img src='img/gif.png'></a><a href='del_img.php?id_image=".$result_img['id_image']."'><img src='img/del2.png' align='top'></a>" ;
}
if($rashirenie=='doc' or $rashirenie=='docx' )
{
echo "<a href='".$path.$uploads.$result_img['url']."' target='_blank'><img src='img/word.png'></a><a href='del_img.php?id_image=".$result_img['id_image']."'><img src='img/del2.png' align='top'></a>" ;
}
if($rashirenie=='xls' )
{
echo "<a href='".$path.$uploads.$result_img['url']."' target='_blank'><img src='img/exel.png'></a><a href='del_img.php?id_image=".$result_img['id_image']."'><img src='img/del2.png' align='top'></a>" ;
}
if($rashirenie=='txt' )
{
echo "<a href='".$path.$uploads.$result_img['url']."' target='_blank'><img src='img/txt.png'><a href='del_img.php?id_image=".$result_img['id_image']."'><img src='img/del2.png' align='top'></a></a>" ;
}
if($rashirenie=='pdf' )
{
echo "<a href='".$path.$uploads.$result_img['url']."' target='_blank'><img src='img/pdf.png'><a href='del_img.php?id_image=".$result_img['id_image']."'><img src='img/del2.png' align='top'></a></a>" ;
}
if($rashirenie=='zip' )
{
echo "<a href='".$path.$uploads.$result_img['url']."' target='_blank'><img src='img/zip.png'><a href='del_img.php?id_image=".$result_img['id_image']."'><img src='img/del2.png' align='top'></a></a>" ;
}
if($rashirenie=='rar' )
{
echo "<a href='".$path.$uploads.$result_img['url']."' target='_blank'><img src='img/rar.png'><a href='del_img.php?id_image=".$result_img['id_image']."'><img src='img/del2.png' align='top'></a></a>" ;
}
}
Int 05.04.2011 10:38 # 0
scalar4eblo4no 05.04.2011 11:11 # 0
Lure Of Chaos 05.04.2011 15:29 # +1
жпг, млять.
Vasiliy 06.04.2011 21:19 # 0
а за это img src='img/del2.png' align='top'></a></a> голову. афтору она все ровно не к чему.
Lure Of Chaos 06.04.2011 22:40 # +1
точно
> не к чему
не могу не согласиться.
bugmenot 06.04.2011 22:34 # 0
= $phimosis
Uchkuma 28.04.2011 12:52 # 0
bugmenot 28.04.2011 13:32 # 0
http://bash.org/?5300
begmst 24.08.2021 01:03 # 0
utinger 24.08.2021 02:10 # 0