#121 에 따른 등록된 상품이 없을 경우 처리 코드 추가

This commit is contained in:
chicpro
2013-05-03 10:00:10 +09:00
parent 72e4a9f677
commit 0ed73e65c1
9 changed files with 34 additions and 8 deletions

View File

@ -219,9 +219,11 @@ function display_type($type, $skin_file, $list_mod, $list_row, $img_width, $img_
$sql .= " order by it_order, it_id desc
limit $items ";
$result = sql_query($sql);
/*
if (!mysql_num_rows($result)) {
return false;
}
*/
$file = G4_SHOP_PATH.'/'.$skin_file;
if (!file_exists($file)) {

View File

@ -39,6 +39,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
<a href="<?php echo $sns_send; ?>&amp;sns=google" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo.png" alt="구글플러스에 공유"></a>
</div>
</li>
<?php }
<?php
}
if ($i > 1) echo '</ul>';
if($i == 1) echo '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
?>

View File

@ -39,6 +39,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
<a href="<?php echo $sns_send; ?>&amp;sns=google" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo.png" alt="구글플러스에 공유"></a>
</div>
</li>
<?php }
<?php
}
if ($i > 1) echo '</ul>';
if($i == 1) echo '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
?>

View File

@ -39,6 +39,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
<a href="<?php echo $sns_send; ?>&amp;sns=google" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo.png" alt="구글플러스에 공유"></a>
</div>
</li>
<?php }
<?php
}
if ($i > 1) echo '</ul>';
if($i == 1) echo '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
?>

View File

@ -42,6 +42,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
<a href="<?php echo $sns_send; ?>&amp;sns=google" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo.png" alt="구글플러스에 공유"></a>
</div>
</li>
<?php }
<?php
}
if ($i > 1) echo '</ul>';
if($i == 1) echo '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
?>

View File

@ -33,6 +33,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
<a href="<?php echo $sns_send; ?>&amp;sns=google" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo.png" alt="구글플러스에 공유"></a>
</div>
</li>
<?php }
<?php
}
if ($i > 1) echo '</ul>';
if($i == 1) echo '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
?>

View File

@ -33,6 +33,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
<a href="<?php echo $sns_send; ?>&amp;sns=google" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo.png" alt="구글플러스에 공유"></a>
</div>
</li>
<?php }
<?php
}
if ($i > 1) echo '</ul>';
if($i == 1) echo '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
?>

View File

@ -35,6 +35,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
<a href="<?php echo $sns_send; ?>&amp;sns=google" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo.png" alt="구글플러스에 공유"></a>
</div>
</li>
<?php }
<?php
}
if ($i > 1) echo '</ul>';
if($i == 1) echo '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
?>

View File

@ -38,6 +38,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
<a href="<?php echo $sns_send; ?>&amp;sns=google" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo.png" alt="구글플러스에 공유"></a>
</div>
</li>
<?php }
<?php
}
if ($i > 1) echo '</ul>';
if($i == 1) echo '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
?>