| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <?php
- include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
- include $_SERVER['DOCUMENT_ROOT'].ADMIN_PATH.'common/auth_chk.php';
- $mp = "21"; //set top nav
- $cd_dealer = $_REQUEST["cd_dealer"];
- ?>
- <? include("../inc/inc_top.php") ?>
- <? include("../inc/inc_header.php") ?>
- <section id="contents">
- <h2>딜러 / AAP 회원관리</h2>
- <? include("../inc/inc_header_aap.php") ?>
- <div class="tbl_wrap">
- <table class="tbl_list ty2">
- <colgroup>
- <col width="7%">
- <col width="*">
- <col width="13%">
- <col width="13%">
- </colgroup>
- <thead>
- <tr>
- <th>번호</th>
- <th>제목</th>
- <th>작성일</th>
- <th>답변여부</th>
- </tr>
- </thead>
- <?
- $cd_board = "02";
- $ds_kind = "D";
- $cd_user = $cd_dealer;
- if (empty($PageNo)) {$PageNo=1;}else{$PageNo=$PageNo;}
- $PageSize=2; //목록개수설정
- $pagestartpoint=($PageNo-1)*$PageSize;
- $sql = "where cd_board='$cd_board' and ds_delind='N'";
- $sql = $sql." and ds_kind='$ds_kind' ";
- $sql = $sql." and cd_user='$cd_user' ";
- if($searchword != ""){
- if($searchtype=="" || $searchtype==null){
- $sql = $sql. " and (nm_title like '$searchword%' or nm_content like '$searchword%' or cd_userid like '$searchword%')";
- }else{
- $sql = $sql. " and $searchtype like '$searchword%'";
- }
- }
- $totalrows = @mysql_result(mysql_query("select count(*) from board_master $sql"),0,0);
- if($totalrows>0) {
- $r = mysql_query("SELECT * FROM board_master $sql ORDER BY ds_top desc, no_famally ASC, no_order ASC LIMIT 0,2");
- $i=1;
- while($col = mysql_fetch_array($r)) {
- $date = strtotime ($col[dt_insert]);
- $view_date = strtotime ("-1 day",time());
- if($date >= $view_date) {
- $newicon = " <img src='".ADMIN_PATH."img/i_new.gif' style='margin-top:1px;' /> ";
- } else {
- $newicon = "";
- }
- if($col[no_step]>0){
- $padding = $col[no_step] * 8;
- $step = "<span style=\"padding-left:".$padding."px\"/>";
- }
- $tmpNum =$totalrows-($PageSize*($PageNo-1));
- $no = ($tmpNum - $i)+1;
- ?>
- <tr onclick="location.href='./dealer_view6_detail.php?cd_board=<?=$cd_board?>&ds_kind=<?=$ds_kind?>&cd_seq=<?=$col[cd_seq]?>&cd_dealer=<?=$cd_dealer?>&PageNo=1';" style="cursor: pointer; cursor: hand;">
- <td><?=$no?></td>
- <? if($cd_board=="99"){?>
- <td width="10%" align="center" class="list03"><img src="<?=UPLOAD_PATH?>board/board_<?=$cd_board?>/<?=$col[nm_file]?>" width="50"/></td>
- <?}?>
- <td class="subject"><?=text_cut($col[nm_title],50)?></td>
- <td><?=$col[dt_insert]?></td>
- <? if($cd_board=="02"){?>
- <td><?=($col[nm_reply] == "") ? "미답변" : "답변완료" ?></td>
- <?}?>
- </tr>
- <?
- $i++;
- }
- }else{
- ?>
- <tr>
- <td colspan="4">등록된 정보가 없습니다.</td>
- </tr>
- <?
- }
- ?>
- </table>
- </div>
- <div class="paging">
- <?
- $url = "./dealer_view6.php?searchtype=$searchtype&searchword=$searchword&dt_start=$dt_start&dt_end=$dt_end&cd_dealer=$cd_dealer";
- ListPg1($url ,$PageNo,$PageSize,10,$totalrows,$leftboard[1],$rootpath);
- ?>
- </div>
- </section>
- <? include("../inc/inc_footer.php") ?>
- <? include("../inc/inc_bottom.php") ?>
- <?
- mysql_close($connect);
- ?>
|