Merge branch 'master' of github.com:gnuboard/yc4s

This commit is contained in:
whitedot
2013-04-22 16:36:41 +09:00
4 changed files with 55 additions and 8 deletions

View File

@ -44,8 +44,14 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$bimg_str = "";
$bimg = G4_DATA_PATH."/banner/{$bn['bn_id']}";
if (file_exists($bimg) && $bn['bn_id']) {
$size = @getimagesize($bimg);
if($size[0] && $size[0] > 750)
$width = 750;
else
$width = $size[0];
echo '<input type="checkbox" name="bn_bimg_del" value="1" id="bn_bimg_del"> <label for="bn_bimg_del">삭제</label>';
$bimg_str = '<img src="'.G4_DATA_URL.'/banner/'.$bn['bn_id'].'">';
$bimg_str = '<img src="'.G4_DATA_URL.'/banner/'.$bn['bn_id'].'" width="'.$width.'">';
//$size = getimagesize($bimg);
//echo "<img src='$g4[admin_path]/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('bimg', $size[0], $size[1]);\"><input type=checkbox name=bn_bimg_del value='1'>삭제";
//echo "<div id='bimg' style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='$bimg' border=1></div>";

View File

@ -82,8 +82,14 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<?
$himg = G4_DATA_PATH.'/content/'.$co['co_id'].'_h';
if (file_exists($himg)) {
$size = @getimagesize($himg);
if($size[0] && $size[0] > 750)
$width = 750;
else
$width = $size[0];
echo '<input type="checkbox" name="co_himg_del" value="1" id="co_himg_del"> <label for="co_himg_del">삭제</label>';
$himg_str = '<img src="'.G4_DATA_URL.'/content/'.$co['co_id'].'_h" alt="">';
$himg_str = '<img src="'.G4_DATA_URL.'/content/'.$co['co_id'].'_h" width="'.$width.'" alt="">';
}
if ($himg_str) {
echo '<div class="banner_or_img">';
@ -100,8 +106,14 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<?
$timg = G4_DATA_PATH.'/content/'.$co['co_id'].'_t';
if (file_exists($timg)) {
$size = @getimagesize($timg);
if($size[0] && $size[0] > 750)
$width = 750;
else
$width = $size[0];
echo '<input type="checkbox" name="co_timg_del" value="1" id="co_timg_del"> <label for="co_timg_del">삭제</label>';
$timg_str = '<img src="'.G4_DATA_URL.'/content/'.$co['co_id'].'_t" alt="">';
$timg_str = '<img src="'.G4_DATA_URL.'/content/'.$co['co_id'].'_t" width="'.$width.'" alt="">';
}
if ($timg_str) {
echo '<div class="banner_or_img">';

View File

@ -54,8 +54,14 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<?
$himg = G4_DATA_PATH.'/faq/'.$fm['fm_id'].'_h';
if (file_exists($himg)) {
$size = @getimagesize($himg);
if($size[0] && $size[0] > 750)
$width = 750;
else
$width = $size[0];
echo '<input type="checkbox" name="fm_himg_del" value="1" id="fm_himg_del"> <label for="fm_himg_del">삭제</label>';
$himg_str = '<img src="'.G4_DATA_URL.'/faq/'.$fm['fm_id'].'_h" alt="">';
$himg_str = '<img src="'.G4_DATA_URL.'/faq/'.$fm['fm_id'].'_h" width="'.$width.'" alt="">';
}
if ($himg_str) {
echo '<div class="banner_or_img">';
@ -72,8 +78,14 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<?
$timg = G4_DATA_PATH.'/faq/'.$fm['fm_id'].'_t';
if (file_exists($timg)) {
$size = @getimagesize($timg);
if($size[0] && $size[0] > 750)
$width = 750;
else
$width = $size[0];
echo '<input type="checkbox" name="fm_timg_del" value="1" id="fm_timg_del"><label for="fm_timg_del">삭제</label>';
$timg_str = '<img src="'.G4_DATA_URL.'/faq/'.$fm['fm_id'].'_t" alt="">';
$timg_str = '<img src="'.G4_DATA_URL.'/faq/'.$fm['fm_id'].'_t" width="'.$width.'" alt="">';
}
if ($timg_str) {
echo '<div class="banner_or_img">';

View File

@ -116,8 +116,14 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$mimg_str = "";
$mimg = G4_DATA_PATH.'/event/'.$ev['ev_id'].'_m';
if (file_exists($mimg)) {
$size = @getimagesize($mimg);
if($size[0] && $size[0] > 750)
$width = 750;
else
$width = $size[0];
echo '<input type="checkbox" name="ev_mimg_del" value="1" id="ev_mimg_del"> <label for="ev_mimg_del">삭제</label>';
$mimg_str = '<img src="'.G4_DATA_URL.'/event/'.$ev['ev_id'].'_m" alt="">';
$mimg_str = '<img src="'.G4_DATA_URL.'/event/'.$ev['ev_id'].'_m" width="'.$width.'" alt="">';
}
if ($mimg_str) {
echo '<div class="banner_or_img">';
@ -136,8 +142,14 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$himg_str = "";
$himg = G4_DATA_PATH.'/event/'.$ev['ev_id'].'_h';
if (file_exists($himg)) {
$size = @getimagesize($himg);
if($size[0] && $size[0] > 750)
$width = 750;
else
$width = $size[0];
echo '<input type="checkbox" name="ev_himg_del" value="1" id="ev_himg_del"> <label for="ev_himg_del">삭제</label>';
$himg_str = '<img src="'.G4_DATA_URL.'/event/'.$ev['ev_id'].'_h" alt="">';
$himg_str = '<img src="'.G4_DATA_URL.'/event/'.$ev['ev_id'].'_h" width="'.$width.'" alt="">';
}
if ($himg_str) {
echo '<div class="banner_or_img">';
@ -156,8 +168,13 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$timg_str = "";
$timg = G4_DATA_PATH.'/event/'.$ev['ev_id'].'_t';
if (file_exists($timg)) {
$size = @getimagesize($timg);
if($size[0] && $size[0] > 750)
$width = 750;
else
$width = $size[0];
echo '<input type="checkbox" name="ev_timg_del" value="1" id="ev_timg_del"> <label for="ev_timg_del">삭제</label>';
$timg_str = '<img src="'.G4_DATA_URL.'/event/'.$ev['ev_id'].'_t" alt="">';
$timg_str = '<img src="'.G4_DATA_URL.'/event/'.$ev['ev_id'].'_t" width="'.$width.'" alt="">';
}
if ($timg_str) {
echo '<div class="banner_or_img">';