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

This commit is contained in:
chicpro
2013-04-03 14:58:18 +09:00
6 changed files with 220 additions and 203 deletions

View File

@ -29,7 +29,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
<div id="btn_add">
<a href="./bannerform.php">배너추가</a>
</div>
<table class="frm_flb">
<table>
<colgroup>
<col class="grid_1">
<col class="grid_7">
@ -78,7 +78,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
$list = $i%2;
?>
<tr class="list<?=$list?> center">
<tr>
<td class="banner_center"><?=$row['bn_id']?></td>
<td><?=$bn_img?></td>
<td class="banner_center"><?=$row['bn_position']?></td>
@ -86,13 +86,13 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
<td><?=$bn_end_time?></td>
<td class="banner_center"><?=$row['bn_order']?></td>
<td class="banner_center"><?=$row['bn_hit']?></td>
<td class="banner_center"><a href="./bannerform.php">수정</a> <a href="./bannerformupdate.php">삭제</a></td>
<td class="banner_center"><a href="./bannerform.php?w=u&bn_id=<?=$row['bn_id']?>">수정</a> <a href="./bannerformupdate.php?w=d&bn_id=<?=$row['bn_id']?>">삭제</a></td>
</tr>
<?
}
if ($i == 0) {
echo "<tr><td colspan=\"8\"><span class=\"point\">자료가 한건도 없습니다.</span></td></tr>\n";
echo "<tr><td colspan=\"8\" class=\"banner_center\"><span>자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
</tbody>

View File

@ -23,30 +23,31 @@ $sql = "select * $sql_common order by co_id limit $from_record, {$config['cf_pag
$result = sql_query($sql);
?>
<style type="text/css">
#content_head{width:900px;height:35px;line-height:35px ;text-align:center}
#content_head th{text-align:center}
#content_fir{position:relative}
#content_fir span{position:absolute;top:-12;right:5px}
.content_center{text-align:center}
</style>
<section class="cbox">
<h2>내용관리</h2>
<?=$pg_anchor?>
<p id="content_fir">
<a href='<?=$_SERVER['PHP_SELF']?>'>처음</a>
<span>건수 : <? echo $total_count ?>&nbsp;</span>
<a href="<?=$_SERVER['PHP_SELF']?>">처음</a>
<span>건수 <? echo $total_count ?>&nbsp;</span>
</p>
<table class="frm_tbl">
<div id="btn_add">
<a href="./contentform.php">내용관리추가</a>
</div>
<table>
<colgroup>
<col class="grid_2">
<col class="gird_13">
<col class="grid_3">
<col class="gird_14">
<col class="grid_1">
</colgroup>
<thead id="content_head">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">제목</th>
<th><a href="./contentform.php"><img src="<?=G4_ADMIN_URL?>/img/icon_insert.gif" alt="내용입력버튼"></a></th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
@ -57,15 +58,16 @@ $result = sql_query($sql);
$s_vie = icon("보기", G4_SHOP_URL."/content.php?co_id={$row['co_id']}");
$list = $i%2;
echo "
<tr class='list$list ht'>
<td style=\"text-align:center\">{$row['co_id']}</td>
<td>".htmlspecialchars2($row['co_subject'])."</td>
<td>$s_mod $s_del $s_vie</td>
</tr>";
?>
<tr>
<td class="content_center"><?=$row['co_id']?></td>
<td><?=htmlspecialchars2($row['co_subject'])?></td>
<td class="content_center"><a href="./contentform.php?w=u&co_id=<?=$row['co_id']?>">수정</a> <a href="./contentformupdate.php?w=d&co_id=<?=$row['co_id']?>">삭제</a> <a href="<?=G4_SHOP_URL?>/content.php?co_id=<?=$row['co_id']?>">보기</a></td>
</tr>
<?
}
if ($i == 0) {
echo "<tr><td colspan=\"3\" align=\"center\" height=\"100\" bgcolor=\"#ffffff\"><span class=\"point\">자료가 한건도 없습니다.</span></td></tr>\n";
echo "<tr><td colspan=\"3\" class=\"content_center\"><span>자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
</tbody>

View File

@ -17,58 +17,61 @@ $total_count = $row['cnt'];
$sql = "select * $sql_common order by dl_order , dl_id desc ";
$result = sql_query($sql);
?>
<table width=100%>
<style type="text/css">
.deliverycode_center{text-align:center}
</style>
<section class="cbox">
<h2>배송회사관리</h2>
<p>건수 <? echo $total_count ?></p>
<div id="btn_add">
<a href="./deliverycodeform.php">배송회사추가</a>
</div>
<table>
<colgroup>
<col class="grid_1">
<col class="grid_11">
<col class="gird_2">
<col class="grid_1">
<col class="grid_3">
</colgroup>
<thead>
<tr>
<td width=20%>&nbsp;</td>
<td width=60% align=center>&nbsp;</td>
<td width=20% align=right>건수 : <? echo $total_count ?>&nbsp;</td>
<th scope="col">ID</th>
<th scope="col">배송회사명</th>
<th scope="col">고객센터</th>
<th scope="col">순서</th>
<th scope="col">관리</th>
</tr>
</table>
</thead>
<tbody>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$s_mod = icon("수정", "./deliverycodeform.php?w=u&dl_id={$row['dl_id']}");
$s_del = icon("삭제", "javascript:del('./deliverycodeformupdate.php?w=d&dl_id={$row['dl_id']}');");
$s_vie = icon("보기", $row['dl_url'], $target="_blank");
/*if ($i)
echo "<tr><td colspan=\"5\"></td></tr>"; 줄 없앰 김혜련 2013-04-03*/
<table cellpadding=0 cellspacing=0 width=100%>
<colgroup width=100>
<colgroup width=''>
<colgroup width=200>
<colgroup width=100>
<colgroup width=80>
<tr><td colspan=5 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td>ID</td>
<td>배송회사명</td>
<td>고객센터</td>
<td>순서</td>
<td><?=icon("입력", "./deliverycodeform.php");?></td>
</tr>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
$list = $i%2;
?>
<tr>
<td class="deliverycode_center"><?=$row['dl_id']?></td>
<td><?=stripslashes($row['dl_company'])?></td>
<td class="deliverycode_center"><?=$row['dl_tel']?></td>
<td class="deliverycode_center"><?=$row['dl_order']?></td>
<td class="deliverycode_center"><a href="./deliverycodeform.php?w=u&dl_id=<?=$row['dl_id']?>">수정</a> <a href="./deliverycodeformupdate.php?w=d&dl_id=<?=$row['dl_id']?>">삭제</a> <a href="<?=$row['dl_url']?>" target="_blank">보기</a></td>
</tr>
<?
}
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$s_mod = icon("수정", "./deliverycodeform.php?w=u&dl_id={$row['dl_id']}");
$s_del = icon("삭제", "javascript:del('./deliverycodeformupdate.php?w=d&dl_id={$row['dl_id']}');");
$s_vie = icon("보기", $row['dl_url'], $target="_blank");
if ($i)
echo "<tr><td colspan=5 height=1 bgcolor=F1F1F1></td></tr>";
$list = $i%2;
echo "
<tr class='list$list center ht'>
<td align=center>{$row['dl_id']}</td>
<td>". stripslashes($row['dl_company']) . "</td>
<td align=center>{$row['dl_tel']}</td>
<td align=center>{$row['dl_order']}</td>
<td align=center>$s_mod $s_del $s_vie</td>
</tr>";
}
if ($i == 0)
echo "<tr><td colspan=5 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
?>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
</table>
if ($i == 0)
echo "<tr><td colspan=\"5\" class=\"deliverycode_center\"><span>자료가 한건도 없습니다.</span></td></tr>\n";
?>
</tbody>
</table>
</section>
<?
include_once (G4_ADMIN_PATH.'/admin.tail.php');

View File

@ -24,33 +24,35 @@ $result = sql_query($sql);
?>
<style type="text/css">
#faq_box th{height:35px;line-height:35px;text-align:center}
#faq_box p{position:relative}
#faq_box span{position:absolute;top:-12;right:5px}
#faq_box span{position:absolute;top:-12;right:30px}
#faq_register h2{color:#18abff}
#faq_register ul{list-style:none;padding-left:0}
#faq_register ul li{height:25px;line-height:25px}
.faq_center{text-align:center}
</style>
<section id="faq_box" class="cbox">
<h2>FAQ관리</h2>
<?=$pg_anchor?>
<p><a href="<?=$_SERVER['PHP_SELF']?>">처음</a><span>건수 : <? echo $total_count ?></span></p>
<table class="frm_tbl">
<p><a href="<?=$_SERVER['PHP_SELF']?>">처음</a><span>건수 <? echo $total_count ?></span></p>
<div id="btn_add">
<a href="./faqmasterform.php">FAQ추가</a>
</div>
<table>
<colgroup>
<col class="grid_3">
<col class="grid_1">
<col class="grid_11">
<col class="grid_2">
<col class="gird_2">
<col class="grid_1">
<col class="gird_1">
<col class="grid_3">
</colgroup>
<thead>
<tr>
<th scope="row">ID</th>
<th scope="row">제목</th>
<th scope="row">FAQ수</th>
<th scope="row">상세보기</th>
<th scope="row"><a href='./faqmasterform.php'><img src="<?=G4_ADMIN_URL?>/img/icon_insert.gif" alt="등록"></a></th>
<th scope="col">ID</th>
<th scope="col">제목</th>
<th scope="col">FAQ수</th>
<th scope="col">상세보기</th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
@ -66,20 +68,20 @@ $result = sql_query($sql);
$s_mod = icon("수정", "./faqmasterform.php?w=u&fm_id={$row['fm_id']}");
$s_del = icon("삭제", "javascript:del('./faqmasterformupdate.php?w=d&fm_id={$row['fm_id']}');");
$s_vie = icon("보기", G4_SHOP_URL."/faq.php?fm_id={$row['fm_id']}");
$list = $i%2;
echo "
<tr class='list$list ht'>
<td style=\"text-align:center\">{$row['fm_id']}</td>
<td>" . stripslashes($row['fm_subject']) . "</td>
<td style=\"text-align:center\">$cnt</td>
<td style=\"text-align:center\">$s_detail_vie</td>
<td style=\"text-align:center\">$s_mod $s_del $s_vie</td>
</tr>";
?>
<tr>
<td class="faq_center"><?=$row['fm_id']?></td>
<td><?=stripslashes($row['fm_subject']) ?></td>
<td class="faq_center"><?=$cnt?></td>
<td class="faq_center"><a href="./faqlist.php?fm_id=<?=$row['fm_id']?>">상세보기</a></td>
<td class="faq_center"><a href="">수정</a> <a href="./faqmasterformupdate.php?w=d&fm_id=<?=$row['fm_id']?>">삭제</a> <a href="<?=G4_SHOP_URL?>/faq.php?fm_id=<?=$row['fm_id']?>">보기</a></td>
</tr>
<?
}
if ($i == 0)
echo "<tr><td colspan=\"5\" align=\"center\" height=\"100\" bgcolor=#ffffff><span class=\"point\">자료가 한건도 없습니다.</span></td></tr>\n";
echo "<tr><td colspan=\"5\" class=\"faq_center\"><span>자료가 한건도 없습니다.</span></td></tr>\n";
?>
</tbody>
</table>

View File

@ -17,65 +17,70 @@ $total_count = $row['cnt'];
$sql = "select * $sql_common order by ev_id desc ";
$result = sql_query($sql);
?>
<style type="text/css">
.itemevent_center{text-align:center}
</style>
<table width=100%>
<tr>
<td width=20%>&nbsp;</td>
<td width=60% align=center>&nbsp;</td>
<td width=20% align=right>건수 : <? echo $total_count ?>&nbsp;</td>
</tr>
</table>
<section class="cbox">
<h2>이벤트관리</h2>
<p>건수 <? echo $total_count ?></p>
<div id="btn_add">
<a href="./itemeventform.php">이벤트관리추가</a>
</div>
<table>
<colgroup>
<col class="grid_2">
<col class="gird_10">
<col class="grid_2">
<col class="grid_1">
<col class="grid_3">
</colgroup>
<thead>
<tr>
<th scope="col">이벤트 번호</th>
<th scope="col">제목</th>
<th scope="col">연결 상품</th>
<th scope="col">사용</th>
<th scope="col">구분</th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$s_mod = icon("수정", "./itemeventform.php?w=u&ev_id={$row['ev_id']}");
$s_del = icon("삭제", "javascript:del('./itemeventformupdate.php?w=d&ev_id={$row['ev_id']}');");
$s_vie = icon("보기", G4_SHOP_URL."/event.php?ev_id={$row['ev_id']}");
$href = "";
$sql = " select count(ev_id) as cnt from {$g4['yc4_event_item_table']} where ev_id = '{$row['ev_id']}' ";
$ev = sql_fetch($sql);
if ($ev[cnt]) {
$href = "<a href='javascript:;' onclick='itemeventwin({$row['ev_id']});'>";
}
<table cellpadding=0 cellspacing=0 width=100% border=0>
<colgroup width=100>
<colgroup width=''>
<colgroup width=80>
<colgroup width=40>
<colgroup width=80>
<tr><td colspan=5 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td>이벤트번호</td>
<td>제목</td>
<td>연결상품</td>
<td>사용</td>
<td><a href='./itemeventform.php'><img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' border=0 title='등록'></a></td>
</tr>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$s_mod = icon("수정", "./itemeventform.php?w=u&ev_id={$row['ev_id']}");
$s_del = icon("삭제", "javascript:del('./itemeventformupdate.php?w=d&ev_id={$row['ev_id']}');");
$s_vie = icon("보기", G4_SHOP_URL."/event.php?ev_id={$row['ev_id']}");
$href = "";
$sql = " select count(ev_id) as cnt from {$g4['yc4_event_item_table']} where ev_id = '{$row['ev_id']}' ";
$ev = sql_fetch($sql);
if ($ev[cnt]) {
$href = "<a href='javascript:;' onclick='itemeventwin({$row['ev_id']});'>";
$list = $i%2;
?>
<tr>
<td class="itemevent_center"><?=$row['ev_id']?></td>
<td><?=$row['ev_subject']?></td>
<td class="itemevent_center"><?=$href?><?=$ev['cnt']?></td>
<td class="itemevent_center"><?=$row['ev_use'] ? "예" : "아니오"?></td>
<td class="itemevent_center"><a href="./itemeventform.php?w=u&ev_id=<?=$row['ev_id']?>">수정</a> <a href="./itemeventformupdate.php?w=d&ev_id=<?=$row['ev_id']?>">삭제</a> <a href="<?=G4_SHOP_URL?>/event.php?ev_id=<?=$row['ev_id']?>">보기</a></td>
</tr>
<?
}
$list = $i%2;
echo "
<tr class='list$list center ht'>
<td>{$row['ev_id']}</td>
<td align=left>{$row['ev_subject']}</td>
<td>$href<U>{$ev['cnt']}</U></a></td>
<td>".($row['ev_use'] ? "예" : "아니오")."</td>
<td>$s_mod $s_del $s_vie</td>
</tr><tr><td colspan=5 height=1 bgcolor=F5F5F5></td></tr>";
}
if ($i == 0) {
echo "<tr><td colspan=\"5\" class=\"itemevent_center\"><span>자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
</tbody>
</table>
</section>
if ($i == 0) {
echo "<tr><td colspan=5 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
<tr><td colspan=5 height=1 bgcolor=CCCCCC></td></tr>
</table>
<SCRIPT LANGUAGE="JavaScript">
<SCRIPT>
function itemeventwin(ev_id)
{
window.open("./itemeventwin.php?ev_id="+ev_id, "itemeventwin", "left=10,top=10,width=500,height=600,scrollbars=1");

View File

@ -18,69 +18,74 @@ $sql = "select * $sql_common order by nw_id desc ";
$result = sql_query($sql);
?>
<table width=100%>
<tr>
<td width=20%>&nbsp;</td>
<td width=60% align=center>&nbsp;</td>
<td width=20% align=right>건수 : <? echo $total_count ?>&nbsp;</td>
</tr>
</table>
<style type="text/css">
.newwin_center{text-align:center}
</style>
<section class="cbox">
<h2>새창관리</h2>
<p>건수 <? echo $total_count ?></p>
<div id="btn_add">
<a href="./newwinform.php">새창관리추가</a>
</div>
<table>
<colgroup>
<col class="grid_1">
<col class="grid_2">
<col class="grid_2">
<col class="grid_1">
<col class="grid_1">
<col class="grid_1">
<col class="grid_1">
<col class="grid_1">
<col class="grid_6">
<col class="grid_2">
</colgroup>
<thead>
<tr>
<th scope="col">번호</th>
<th scope="col">시작일시</th>
<th scope="col">종료일시</th>
<th scope="col">시간</th>
<th scope="col">Left</th>
<th scope="col">Top</th>
<th scope="col">Height</th>
<th scope="col">Width</th>
<th scope="col">제목</th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$s_mod = icon("수정", "./newwinform.php?w=u&nw_id={$row['nw_id']}");
$s_del = icon("삭제", "javascript:del('./newwinformupdate.php?w=d&nw_id={$row['nw_id']}');");
<table cellpadding=0 cellspacing=0 width=100% border=0>
<colgroup width=40>
<colgroup width=100>
<colgroup width=100>
<colgroup width=40>
<colgroup width=50>
<colgroup width=50>
<colgroup width=50>
<colgroup width=50>
<colgroup width=''>
<colgroup width=80>
<tr><td colspan=10 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td>번호</td>
<td>시작일시</td>
<td>종료일시</td>
<td>시간</td>
<td>Left</td>
<td>Top</td>
<td>Height</td>
<td>Width</td>
<td>제목</td>
<td><a href='./newwinform.php'><img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' border=0></a></td>
</tr>
<tr><td colspan=10 height=1 bgcolor=#CCCCCC></td></tr>
$list = $i%2;
?>
<tr>
<td class="newwin_center"><?=$row['nw_id']?></td>
<td><?=substr($row['nw_begin_time'],2,14)?></td>
<td><?=substr($row['nw_end_time'],2,14)?></td>
<td class="newwin_center"><?=$row['nw_disable_hours']?></td>
<td class="newwin_center"><?=$row['nw_left']?></td>
<td class="newwin_center"><?=$row['nw_top']?></td>
<td class="newwin_center"><?=$row['nw_height']?></td>
<td class="newwin_center"><?=$row['nw_width']?></td>
<td><?=$row['nw_subject']?></td>
<td class="newwin_center"><a href="./newwinform.php?w=u&nw_id=<?=$row['nw_id']?>">수정</a> <a href="./newwinformupdate.php?w=d&nw_id=<?=$row['nw_id']?>">삭제</a></td>
</tr>
<?
}
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$s_mod = icon("수정", "./newwinform.php?w=u&nw_id={$row['nw_id']}");
$s_del = icon("삭제", "javascript:del('./newwinformupdate.php?w=d&nw_id={$row['nw_id']}');");
$list = $i%2;
echo "
<tr class='list$list center ht'>
<td>".$row['nw_id']."</td>
<td>".substr($row['nw_begin_time'],2,14)."</td>
<td>".substr($row['nw_end_time'],2,14)."</td>
<td>".$row['nw_disable_hours']."</td>
<td>".$row['nw_left']."</td>
<td>".$row['nw_top']."</td>
<td>".$row['nw_height']."</td>
<td>".$row['nw_width']."</td>
<td align=left>".$row['nw_subject']."</td>
<td>$s_mod $s_del</td>
</tr>";
}
if ($i == 0) {
echo "<tr><td colspan=10 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
<tr><td colspan=10 height=1 bgcolor=CCCCCC></td></tr>
</table>
if ($i == 0) {
echo "<tr><td colspan=\"10\" class=\"newwin_center\"><span>자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
</tbody>
</table>
</section>
<?