관리자모드와 비모드

관리자모드와 비모드

QA

관리자모드와 비모드

본문

PC에서는 정상적으로 보이는데 모바일에서의 모습입니다.
 
111.jpg

관리자로 로그인했을시 모습인데- 이미지가 약간 길죽하게 들어가고 ~ 근데 이점까지는
 
괜찮습니다~
 
근데 문제는 로그아웃 했을시
 
222.jpg
빨간 네모칸처럼 체크박스 영역이 그대로 남아있습니다~
 
 
 
관리자로 로그인하면 체크박스부분이 보이고
 
로그아웃하면 안보이면서 다른부분이 영역을 차지해야하는데
 
위와같이 공간이 남습니다~~
 
 
아래는 list.skin.php 소스입니다.
 
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$board_skin_path/skin.lib.php");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");
$img_width = 110;
$img_height = 75;
$img_quality = 100;
if (!$img_width) alert("게시판 설정 : 여분 필드 1 에 목록에서 보여질 이미지의 폭을 설정하십시오. (픽셀 단위)");
if (!$img_height) alert("게시판 설정 : 여분 필드 2 에 목록에서 보여질 이미지의 높이를 설정하십시오. (픽셀 단위)");
if (!$img_quality) alert("게시판 설정 : 여분 필드 3 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumbs';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 4;
//if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<style>
a{color:#353535;}
a:link {color:#353535;}
a:actived{color:#353535;}
a:hover {color:e73535;text-decoration:underline;}
.board_top { clear:both; }
.board_list { clear:both; width:100%; table-layout:fixed; margin:5px 0 0 0; }
.board_list th { font-weight:bold; font-size:12px; }
.board_list th { background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; }
.board_list th { white-space:nowrap; height:34px; overflow:hidden; text-align:center; }
.board_list th { border-top:2px solid #ddd; border-bottom:1px solid #ddd; }
.board_list tr.bg0 { background-color:#fafafa; }
.board_list tr.bg1 { background-color:#ffffff; }
.board_list td { padding:.5em; }
.board_list td { border-bottom:1px solid #ddd; }
.board_list td.num { color:#999999; text-align:center; }
.board_list td.checkbox { text-align:center; width:5%; }
.board_list td.subject { overflow:hidden; }
.board_list td.name { padding:0 0 0 10px; }
.board_list td.datetime { font:normal 11px tahoma; color:#BABABA; text-align:center; }
.board_list td.hit { font:normal 11px tahoma; color:#BABABA; text-align:center; }
.board_list td.good { font:normal 11px tahoma; color:#BABABA; text-align:center; }
.board_list td.nogood { font:normal 11px tahoma; color:#BABABA; text-align:center; }
.board_list .notice { font-weight:normal; }
.board_list .current { font:bold 11px tahoma; color:#E15916; }
.board_list .comment { font-family:Tahoma; font-size:10px; color:#EE5A00; }
.board_button { clear:both; margin:10px 0 0 0;width:100%; }
.board_page { clear:both; text-align:center; margin:3px 0 0 0; }
.board_page a:link { color:#777; }
.board_search { text-align:center; margin:0px 0 0 0; }
.board_search .stx { height:21px; border:1px solid #9A9A9A; border-right:1px solid #D8D8D8; border-bottom:1px solid #D8D8D8; }
#Chart_mall_pd_board_name {font-size:13pt;font-family:dotum;font-weight:bold;}
#Chart_mall_pd_board_name a {color:#3a3a3a;font-size:13pt;}
#Chart_mall_pd_board_name a:hover {text-decoration:none;color:#ff4a9b;font-size:13pt;}
</style>
<style>
.dm-hit { text-align:center; font:bold; font-size:14px; color:#e95eee; }
img{border:none;}
.imgWrapTag img{<?=$img_width?>; <?=$img_height?>;margin-left:5px;margin-top:3px;}
.imgWrapTag a:hover img{<?=$img_width?>; <?=$img_height?>;}
</style>

<style type="text/css">
img { max-width:100%; height:auto;}
</style>

<script type="text/javascript">
$(function(){
 $('.imgWrapTag img').hover(function(){
  $(this).css('opacity', 0.7);
 },function(){
  $(this).css('opacity', 1);
 });
});
</script>
<? function readableTime($datetime) {
  $sec = time() - strtotime($datetime);
  if($sec < 60) return $time . '초';
  $min = $sec / 60;
  if($min < 60) return intval($min) . '분';
  $hour = $min / 60;
  if($hour < 24) return intval($hour) . '시간';
  $day = $hour / 24;
  if($day < 7) return intval($day) . '일';
  $week = $day / 7;
  if($time < 5) return intval($week) . '주';
  $month = $day / 30;
  if($month < 24) return intval($month) . '개월';
  $year = $day / 365;
  return intval($year) . '년';
} ?>
<?
$gdata = get_group($board[gr_id])// $gdata = get_group($gr_id);
?>
<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>
 <div id='Chart_mall_pd_board_name'>
<a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$board['bo_table']?>"><?=$gdata[gr_subject]?> - <?=$board[bo_subject]?></a>
</div>
<div style="height:10px;border-bottom:2px solid #555;"></div>
 <!--/여기부터/-->
<table width="100%"  border="0" align="center" cellpadding="14" cellspacing="0" bgcolor="#F7F7F7">
          <tr>
            <td bgcolor="#FCFCFA"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><? if ($is_category) {
//echo "<table width='100%' cellpadding='0' cellspacing='0' style='margin:0 0 0 0;border:solid #55cc55 1px;'>"; //★ (카테고리목록의 테이블 길이를 100%로 할 경우)
echo "<table width='100%' cellpadding='0' cellspacing='0'>"; //◆
 
$ca_menu = explode("|",$board[bo_category_list]);
$ca_td_num = "4"; //가로칸수. 원하는 칸수만큼 지정해주면 됩니다.
$ca_td_width = "100%" / $ca_td_num ; //★ <td width='%'>값
 
for ($c=0, $cnt=count($ca_menu); $c<$cnt; $c++) {
if (($c == "0") || (($c >= $ca_td_num) && ($c % $ca_td_num == "0"))) { echo "<tr>"; }
//echo "<td width='".$ca_td_width."%'>"; //★
echo "<td align='center' style='padding:2 2 2 2;'>"; //◆
 
//★표와 ◆표는 어느 한쪽을 쓸 경우 다른 쪽을 주석처리하면 됩니다.
 
if ($sca == $ca_menu[$c]) { $bcoral = "<b style='color:#FB6104'>"; } else { $bcoral = ""; }
$sqlCnum = " select count(*) as Cnum from $write_table where wr_is_comment = 0 and ca_name = '$ca_menu[$c]'";
$rowCnum = sql_fetch($sqlCnum);
echo "<a href='".$g4['bbs_path']."/board.php?bo_table=".$bo_table."&sca=".urlencode($ca_menu[$c])."'>";
echo $bcoral.$ca_menu[$c]." <span style='font-size:11px;color:#ff4a9b;'>[".$rowCnum[Cnum]."]</span></a>";
echo "</td>";
}
echo "</tr></table>";
} ?></td>
                </tr>
            </table></td>
          </tr>
        </table>

<!--/여기까지/-->
<div class="board_button">
        <div style="float:left;">
  <? if ($is_category) { ?>
<? if (!$wr_id) {  ?>
<?  
    $cnt_bo_1 = $bo_1[0] ? $bo_1[0] : 10; // 한줄당 분류 갯수(현재:10)
    $cnt = 1;
    $cnt0 = 0;
    $bb_s=""; $bb_e="";
    $b_s=""; $b_e="";
    $arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
    $str = " <span style='font-size:11px; color:#D2D2D2;'>|</span> ";
    for ($i=0; $i<count($arr); $i++)
        if (trim($arr[$i]))  {
        if ($sca == $arr[$i]) { $cnt0++; $b_s="<b>"; $b_e="</b>"; } else {$b_s=""; $b_e="";}
            $str .= " <a href='./board.php?bo_table=$bo_table&sca=".urlencode($arr[$i])."'>$b_s$arr[$i]$b_e</a>  <span style='font-size:11px; color:#D2D2D2;'>|</span> ";
    if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
    $cnt++;
    }
    if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
  <?echo "  ";echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'>전체</a><?=$bb_e?> <span style="font-size:8pt; color=#AEAEAE;">(<?=number_format($total_count)?>)</span>
  <?=$str?></td>
  <? } ?>
  <? } ?>
        </div>
    </div>
   
    <!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
    <div class="board_top">
        <div style="float:left;">
            <form name="fcategory" method="get" style="margin:0px;">
            <? if ($is_category) { ?>
           
            <select name=sca onchange="location='<?=$category_location?>'+<?=strtolower($g4[charset])=='utf-8' ? "encodeURIComponent(this.value)" : "this.value"?>;">
            <option value=''>전체</option>
            <?=$category_option?>
            </select>
            <? } ?>
            </form>
        </div>
        <div style="float:right;">
            <img src="<?=$board_skin_path?>/img/store.png" align="absmiddle" border='0'>
            <span style="color:#e73535; font-weight:bold;"><?=number_format($total_count)?></span><b>개의 업체가 등록 되었습니다.</b>
                      <?
if ($is_member){  // 로그인했는지 확인
echo" <a href='logout.php'> ";
echo" <span style='font-size:8pt;'><font face='Tahoma' color='#999999'>로그아웃</font></span> ";
echo" </a> ";
} else{    // 로그인 안했다면
echo" <a href='login.php' target='_blank'> ";
echo" <span style='font-size:8pt;'><font face='Tahoma' color='#999999'>관리자 로그인</font></span> ";
echo" </a> ";
}
?> 
          <? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
          <? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" border="0" align="absmiddle"></a><?}?>
        </div>
    </div>
 
    <!-- 제목 -->
    <form name="fboardlist" method="post">
    <input type='hidden' name='bo_table' value='<?=$bo_table?>'>
    <input type='hidden' name='sfl'  value='<?=$sfl?>'>
    <input type='hidden' name='stx'  value='<?=$stx?>'>
    <input type='hidden' name='spt'  value='<?=$spt?>'>
    <input type='hidden' name='page' value='<?=$page?>'>
    <input type='hidden' name='sw'   value=''>
 <!-- 검색 만들기 -->
    <table cellspacing="0" cellpadding="0" class="board_list"  width=<?=$width?>>
     <tr>
      <td width="100%" colspan="4">     
    <col width="5%" /><? if ($is_checkbox) { ?> <? } ?>   
    <col width="35%" />
    <col width="45%" />
    <col width="20%" />
    </td>
    <tr>   
       <th><? if ($is_checkbox) { ?><input onclick="if(this.checked) all_checked(true); else all_checked(false);" type="checkbox"><?}?></th>
  <th>이미지</th>
        <th>기본 정보</th>
        <th><a href="<?=$write["wr_5"]?>">전화</a></th>   
      </tr>
    <?
    for ($i=0; $i<count($list); $i++) {
        $bg = $i%2 ? 0 : 1;
    ?>
    <tr class="bg<?=$bg?>">
     <td class="checkbox">
        <? if ($is_checkbox) { ?><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"><? } ?></td>
  <!-- 썸네일 위 스티커 부착 작용 시작 -->
  <td>
  <?
$img = "$g4[path]/data/file/$bo_table/thumb/{$list[$i][wr_id]}";
if (!@file_exists($img)) $img = "$board_skin_path/img/noimage.png";
if (!$list[$i][wr_id]) $img = "$board_skin_path/img/noimage.png";
if (@is_dir($img)) $img = "$board_skin_path/img/noimage.png";
?>
  <?php
  //NEW표시
  //  if ($list[$i][is_notice]) // 공지사항을 premium으로
          //      echo "<img src='$board_skin_path/img/premium.png' style='position:absolute;margin-top:-1px;margin-left:-1px;'>";
  //  if ($list[$i][icon_new]) // New는 신규 입점 업소
         //       echo "<img src='$board_skin_path/img/new.png'style='position:absolute;margin-left:40px;'>";
    //if ($list[$i][icon_hot]) //hot은 인기 업소
                //echo "<img src='$board_skin_path/img/new.png'style='position:absolute;margin-left:115px;'>";
    echo "<a href='{$list[$i][href]}'><img src='{$img}' style='-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;
  -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.7);
  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.7);
  box-shadow: 0 1px 3px rgba(0,0,0,0.7);width:100px;height:75px;' ></a>";
   
   ?>
  </td>
        <td class="subject">
            <?
            echo $nobr_begin;
            echo $list[$i][reply];
            echo $list[$i][icon_reply];
            if ($is_category && $list[$i][ca_name]) {
                echo "<span class=small  style='font-size:17px;'><b>[<a href='{$list[$i][ca_name_href]}'>{$list[$i][ca_name]}</a>]</b></span> ";
            }
            if ($list[$i][is_notice])
                echo "<a href='{$list[$i][href]}'><span class='notice'  style='font-size:17px;'><b>{$list[$i][subject]}</b></span></a>";
            else
                echo "<a href='{$list[$i][href]}'><b><span style='font-size:17px;'>{$list[$i][subject]}</span></b></a>";
            if ($list[$i][comment_cnt])
                echo " <a href=\"{$list[$i][comment_href]}\"><span class='comment'>{$list[$i][comment_cnt]}</span></a>";
            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
            echo " " . $list[$i][icon_new];
            //echo " " . $list[$i][icon_file];
   //echo " " . $list[$i][icon_image];
            //echo " " . $list[$i][icon_link];
            //echo " " . $list[$i][icon_hot];
            //echo " " . $list[$i][icon_secret];
            echo $nobr_end;
            ?><Br>
   <?=$list[$i][wr_6]?>
   <p>
     <?
     $cmtpoint ='0';
     $totalcount = '0';
     $userrating = '0';
     $tbl = "{$g4[write_prefix]}{$bo_table}";
     $sql2 = " select wr_3 from $tbl  where wr_is_comment > 0 && wr_parent = '{$list[$i][wr_id]}' && wr_3 > '0' ";
     $result2 = sql_query($sql2);
     while($row2 = mysql_fetch_array($result2)  ) {
     $point=$row2[0];
     $cmtpoint=$cmtpoint + $point;
     $totalcount++;
     }
     if ($totalcount!=0) {
     $cmtpoint= $cmtpoint/$totalcount;
     $cmtpoint= number_format($cmtpoint,2);
     }
     ?>
        <? if ($cmtpoint > "9"){?>
           <img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif">
           <? } else if ($cmtpoint > "8"){?>
           <img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st2.gif">
           <? } else if ($cmtpoint > "7"){?>
           <img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st3.gif">
           <? } else if ($cmtpoint > "6"){?>
           <img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st2.gif"><img src="<?=$board_skin_path?>/img/st3.gif">
           <? } else if ($cmtpoint > "5"){?>
           <img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif">
           <? } else if ($cmtpoint > "4"){?>
           <img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st2.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif">
           <? } else if ($cmtpoint > "3"){?>
           <img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif">
           <? } else if ($cmtpoint > "2"){?>
           <img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st2.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif">
           <? } else if ($cmtpoint > "1"){?>
           <img src="<?=$board_skin_path?>/img/st1.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif">
           <? } else if ($cmtpoint > "0"){?>
           <img src="<?=$board_skin_path?>/img/st2.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif">
           <? } else {?>
           <img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif"><img src="<?=$board_skin_path?>/img/st3.gif">
         <? }?><br /><span style='font:normal 11px tahoma; color:#BABABA;margin-bottom:5px;'>(총 <?=$totalcount?> 명 참여)</span>
         <!-- SNS 글보내기 by 운지 -->
<!--// SNS 글보내기 by 운지 -->
  </td>
        <td align="center"><font style="size:12px;"><b><a href="tel:<?=$list[$i][wr_5]?>"><?=$list[$i][wr_5]?></a></b></font>
       
        <p>
<a href="<?=$board_skin_path?>/sendsns.php?go=twitter&url=<?=urlencode($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);?>&title=<?=urlencode(cut_hangul_last(get_text($list[$i][wr_subject])));?>" target="_blank"><img src="<?=$board_skin_path?>/img/twitter.png" border="0" alt="이 글을 트위터로 보내기" align='absmiddle'></a>
<a href="<?=$board_skin_path?>/sendsns.php?go=facebook&url=<?=urlencode($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);?>&title=<?=urlencode(cut_hangul_last(get_text($list[$i][wr_subject])));?>" target="_blank"><img src="<?=$board_skin_path?>/img/facebook.png" border="0" alt="이 글을 페이스북으로 보내기" align='absmiddle'></a>
<a href="<?=$board_skin_path?>/sendsns.php?go=me2day&url=<?=urlencode($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);?>&title=<?=urlencode(cut_hangul_last(get_text($list[$i][wr_subject])));?>"  target="_blank"><img src="<?=$board_skin_path?>/img/me2day.png"  border="0" alt="이 글을 미투데이로 보내기" align='absmiddle'></a>
<a href="<?=$board_skin_path?>/sendsns.php?go=yozm&url=<?=urlencode($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);?>&title=<?=urlencode(cut_hangul_last(get_text($list[$i][wr_subject])));?>" target="_blank"><img src="<?=$board_skin_path?>/img/yozm.png" alt="이 글을 요즘으로 보내기" border="0" align='absmiddle'></a>
</p>
        </td>
      
      
    </tr>
    <? } // end for ?>
    <? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
    </table>
    </form>
   
    <!-- 페이지 -->
    <div class="board_page">
        <? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/page_search_prev.gif' border='0' align=absmiddle title='이전검색'></a>"; } ?>
        <?
        // 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
        //echo $write_pages;
        $write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
        $write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
        $write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
        $write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
        //$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "$1", $write_pages);
        $write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
        ?>
        <?=$write_pages?>
        <? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/page_search_next.gif' border='0' align=absmiddle title='다음검색'></a>"; } ?>
    </div>
    <!-- 검색 -->
    <div class="board_search">
        <form name="fsearch" method="get">
        <input type="hidden" name="bo_table" value="<?=$bo_table?>">
        <input type="hidden" name="sca"      value="<?=$sca?>">
        <select name="sfl">
            <option value="wr_subject">업소명</option>
            <option value="wr_content">상세정보</option>
            <option value="wr_subject||wr_content">업소명+정보</option>
        </select>
        <input name="stx" class="stx" maxlength="15" itemname="검색어" required value='<?=stripslashes($stx)?>' style="height:22px;">
        <input type="image" src="<?=$board_skin_path?>/img/btn_search.png" style="border:1px solid #ddd;" border='0' align="absmiddle">
      <!--  <input type="radio" name="sop" value="and">and
        <input type="radio" name="sop" value="or">or-->
        </form>
    </div>
</td></tr></table>
<script type="text/javascript">
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
if ('<?=$stx?>') {
    document.fsearch.sfl.value = '<?=$sfl?>';
    //if ('<?=$sop?>' == 'and')
      //  document.fsearch.sop[0].checked = true;
    //if ('<?=$sop?>' == 'or')
      //  document.fsearch.sop[1].checked = true;
} //else {
    //document.fsearch.sop[0].checked = true;
//}
</script>
<? if ($is_checkbox) { ?>
<script type="text/javascript">
function all_checked(sw) {
    var f = document.fboardlist;
    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]")
            f.elements[i].checked = sw;
    }
}
function check_confirm(str) {
    var f = document.fboardlist;
    var chk_count = 0;
    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
            chk_count++;
    }
    if (!chk_count) {
        alert(str + "할 게시물을 하나 이상 선택하세요.");
        return false;
    }
    return true;
}
// 선택한 게시물 삭제
function select_delete() {
    var f = document.fboardlist;
    str = "삭제";
    if (!check_confirm(str))
        return;
    if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
        return;
    f.action = "./delete_all.php";
    f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw) {
    var f = document.fboardlist;
    if (sw == "copy")
        str = "복사";
    else
        str = "이동";
                      
    if (!check_confirm(str))
        return;
    var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");
    f.sw.value = sw;
    f.target = "move";
    f.action = "./move.php";
    f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->

 
 
 
 
 
 
 

 
 
관리자로 로그인 했을시 화면입니다.
 
 
보시는것과 같이 관리자로 로그인하면 좌측에 체크박스가 생깁니다.
 
pc에서는 상관없이 잘뜨는데~
 
 
모바일에서는
 
 

이 질문에 댓글 쓰기 :

답변 3


 <!-- 검색 만들기 -->
    <table cellspacing="0" cellpadding="0" class="board_list"  width=<?=$width?>>
     <tr>
      <td width="100%" colspan="4">      
    <? if ($is_checkbox) { ?><col width="5%" /> <? } ?>    
    <col width="35%" />
    <col width="45%" />
    <col width="20%" /> 
    </td>
    <tr>    
       <? if ($is_checkbox) { ?><th><input onclick="if(this.checked) all_checked(true); else all_checked(false);" type="checkbox"></th><?}?>
  <th>이미지</th>
        <th>기본 정보</th>
        <th><a href="<?=$write["wr_5"]?>">전화</a></th>    
      </tr>
    <? 
    for ($i=0; $i<count($list); $i++) { 
        $bg = $i%2 ? 0 : 1;
    ?>
    <tr class="bg<?=$bg?>"> 
     <? if ($is_checkbox) { ?>
	<td class="checkbox">
        <input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
  <!-- 썸네일 위 스티커 부착 작용 시작 -->


이런식으로.. 중간에서 if($is_checkbox){} 부분이 th와 td까지 감싸게 바꿔보세요..

pc에서도 관리자로 로그인하면 체크박스가 보이구요~

로그아웃 하면 체크박스부분이 안보여요~ 근데 pc에서는

체크박스 부분이 공간이 조금차지해서 ~ 아마 공간이 있어도 티가 안나는거 같아요~

답변을 작성하시기 전에 로그인 해주세요.
전체 48
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT