MINI MINI MANI MO
<? include "$DOCUMENT_ROOT/admin/inc/header.php"; ?>
<?
if($idx)
{
if (!$connect) $connect=dbconn();
$sql = "select * from home_main where idx = ".$idx;
$r = mysql_query($sql,$connect)or die(mysql_error());
$data_mo = mysql_fetch_assoc($r);
}
?>
<script>
function del_ok(a){
if(confirm('정말 삭제하시겠습니까?')){
location.href="main_bn_del.php?idx="+a;
}
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" height='100%'>
<tr>
<td width='150' height='100%' valign='top' bgcolor="#ededed">
<!--레프트메뉴--><!--/레프트메뉴--> <? include "$DOCUMENT_ROOT/admin/inc/sub10.php"; ?></td>
<td width='1' bgcolor='#78858c'></td>
<td align="left" valign='top'><? include "$DOCUMENT_ROOT/admin/inc/qna.php"; ?>
<table width="1000" border="0" cellspacing="0" cellpadding="0" align="left" style="margin:20px;">
<tr>
<td width="33%" height="20" align="left" class="title"><img src="/admin/img/icon_1.jpg" style='vertical-align:middle'> <strong>모바일메인</strong></td>
<td width="33%" align="left" > </td>
<td width="33%" align="right" > </td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
<tr>
<td colspan="3">
<form name="subMain" method="post" action="mobile_main_ok.php" enctype="multipart/form-data">
<input type="hidden" name="qcommon" value="<?=$qcommon?>">
<input type="hidden" name="idx" value="<?=$data_mo["idx"]?>">
<table width="1000" cellspacing="0" border="1" bordercolor=#a0a0a0 align="left" style="border-collapse:collapse">
<tr>
<td width="118" height="40" align="center" bgcolor="f6f6f6"><span class="style3"><strong>정렬순서</strong></span></td>
<td width="765" style="padding-left:10px;"><table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="24"><input type="radio" name="list_num" value="1" <?if($data_mo[list_num]=="1")echo "checked";?>/></td>
<td width="15"><span class="style4">1</span></td>
<td width="23"><input type="radio" name="list_num" value="2" <?if($data_mo[list_num]=="2")echo "checked";?>/></td>
<td width="16"><span class="style4">2</span></td>
<td width="23"><input type="radio" name="list_num" value="3" <?if($data_mo[list_num]=="3")echo "checked";?>/></td>
<td width="16"><span class="style4">3</span></td>
<td width="22"><input type="radio" name="list_num" value="4" <?if($data_mo[list_num]=="4")echo "checked";?>/></td>
<td width="17"><span class="style4">4</span></td>
<td width="22"><input type="radio" name="list_num" value="5" <?if($data_mo[list_num]=="5")echo "checked";?>/></td>
<td width="22"><span class="style4">5</span></td>
</tr>
</table></td>
<td width="103" rowspan="3" align="center"><input type="submit" value="등록하기" class="btn_red"></td>
</tr>
<tr>
<td height="40" align="center" bgcolor="f6f6f6"><span class="style3"><strong>사진(640*320)</strong></span></td>
<td width="765" style="padding-left:10px;"><input type="file" name="imgfile" size="100"></td>
</tr>
<tr>
<td height="40" align="center" bgcolor="f6f6f6"><span class="style3"><strong> 링크주소</strong></span></td>
<td style="padding-left:10px;"><input type="text" size="80" value="<?=$data_mo["imgurl"]?>" name="imgUrl"></td>
</tr>
</table>
</form>
<table width="1000" cellspacing="0" border="1" bordercolor=#a0a0a0 align="left" style="border-collapse:collapse; margin-top:20px;">
<tr>
<td width="81" height="40" align="center" bgcolor="f6f6f6"><strong>정렬번호</strong></td>
<td width="822" align="center" bgcolor="f6f6f6"><strong>이미지</strong></td>
<td width="83" align="center" bgcolor="f6f6f6"><strong>관리</strong></td>
</tr>
<?
$sql="select * from home_main where type='2' order by list_num asc";
$result=mysql_query($sql);
while ($data=mysql_fetch_array($result)){
?>
<tr height=25 align=center onMouseOver="this.bgColor='#F4FCFF'" onMouseOut="this.bgColor=''">
<td height="320"><?=$data[list_num]?></td>
<td height="320"><img src="/data/submain/<?=$data[imgfile]?>" width="640" height="320" /></td>
<td><input name="submit" type="button" class="btn_red" value="수정" onclick="location.href='list02.php?idx=<?=$data[idx]?>';"/><br /><input name="submit2" type="button" class="btn_blue" value="삭제" onclick="del_ok('<?=$data[idx]?>')"/></td>
</tr>
<?
}
?>
</table>
<br /><br />
</form></td>
</tr>
</table>
</td></tr></table>
<? include "$DOCUMENT_ROOT/admin/inc/footer.php"; ?>
OHA YOOOO