svnno****@sourc*****
svnno****@sourc*****
2009年 1月 18日 (日) 13:46:58 JST
Revision: 98 http://svn.sourceforge.jp/view?root=swfed&view=rev&rev=98 Author: yoya Date: 2009-01-18 13:46:58 +0900 (Sun, 18 Jan 2009) Log Message: ----------- 画像ブロックの詳細データカラムに replace(画像入れ替え) のリンクを追加 Modified Paths: -------------- trunk/www/index.php -------------- next part -------------- Modified: trunk/www/index.php =================================================================== --- trunk/www/index.php 2009-01-18 04:46:08 UTC (rev 97) +++ trunk/www/index.php 2009-01-18 04:46:58 UTC (rev 98) @@ -86,7 +86,18 @@ if (@$header_info['version'] < 6) { // for flash lite $detail_str = mb_convert_encoding($detail_str, "UTF-8", "SJIS-win"); } - echo "<td> ".htmlspecialchars($detail_str)."</td>"; + $detail_str = htmlspecialchars($detail_str); + switch ($tag) { + case 6: // 'DefineBitsJPEG' + case 21: // 'DefineBitsJPEG2' + case 35: // 'DefineBitsJPEG3' + case 20: // 'DefineBitsLossless' + case 36: // 'DefineBitsLossless2' + $image_id = $detail_info['image_id']; + $detail_str .= " <a href=\"swfimagereplace.php?id=$id&image_id=$image_id\"> replace </a>"; + break; + } + echo "<td> $detail_str </td>"; } else { echo "<td> - </td>"; }