| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <?php
- include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
- include $_SERVER['DOCUMENT_ROOT'].'/common/dealer_chk.php';
- $s_cd_dealer = $_SESSION['s_cd_dealer'];
- $s_cd_dealer_p = $_SESSION['s_cd_dealer_p'];
- $s_ds_type = $_SESSION['s_ds_type'];
- $PageNo =$_REQUEST['pageno'];
- $PageSize =$_REQUEST['PageSize'];
- if (empty($PageNo)) {$PageNo=1;}else{$PageNo=$PageNo;}
- if (empty($PageSize)) {
- $PageSize=10; //목록개수설정
- }else{$PageSize=$PageSize;}
- $pagestartpoint=($PageNo-1)*$PageSize;
- $sql = "where ds_delind='N'";
- $searchtype = $_REQUEST['searchtype'];
- $searchword = $_REQUEST['searchword'];
- $dt_start = $_REQUEST['dt_start'];
- $dt_end = $_REQUEST['dt_end'];
- $ds_type = "D1";
- $sql = $sql. " and ds_type = '$ds_type' ";
- //관리자만 들어올 수 있는 메뉴로 관리자의 cd_dealer값으로 변경하여 하위 부관리자를 가져오게 변경
- // $sql = $sql. " and cd_dealer_p = '$s_cd_dealer_p' ";
- $sql = $sql. " and cd_dealer_p = '$s_cd_dealer' ";
- if($searchword != ""){
- if($searchtype=="" || $searchtype==null){
- $sql = $sql. " and (nm_name like '$searchword%' or nm_email like '$searchword%') ";
- }else{
- $sql = $sql. " and $searchtype like '$searchword%'";
- }
- }
- if($dt_start != "" && $dt_end != ""){
- $sql = $sql. " and dt_insert between '$dt_start' and '$dt_end' ";
- }
- $totalrows = @mysql_result(mysql_query("select count(*) from dealer_master $sql"),0,0);
- ?>
- <? include("../include/inc_top.php") ?>
- <? include("../include/inc_header.php") ?>
- <section id="wrap">
- <section id="visual" class="visual_mypage">
- <h2>마이페이지</h2>
- <p>쉽고 간편한 내차팔기, 견적산출, 최종 매각까지 어떤 수수료도 요구하지 않습니다.</p>
- </section>
- <section id="content">
- <ul class="location">
- <li><a href="/" class="home">홈</a></li>
- <li><span class="depth1">마이페이지</span>
- <ul class="sub_depth">
- <li><a href="#">마이페이지</a></li>
- <li><a href="#">입찰정보</a></li>
- <li><a href="#">차량정보</a></li>
- <li><a href="#">문의내역</a></li>
- </ul>
- </li>
- <li><span class="depth2">딜러</span></li>
- </ul>
- <? include("./inc_menu_dealer.php") ?>
- <h3>관리자 관리</h3>
- <table class="tbl_v">
- <colgroup>
- <col width="7%">
- <col width="18%">
- <col width="16%">
- <col width="*">
- <col width="17%">
- <col width="15%">
- </colgroup>
- <thead>
- <tr>
- <th>번호</th>
- <th>아이디</th>
- <th>이름</th>
- <th>부서</th>
- <th>연락처</th>
- <th>등록일</th>
- </tr>
- </thead>
- <tbody>
- <?
- if($totalrows>0) {
- $r = mysql_query("SELECT * FROM dealer_master $sql ORDER BY cd_dealer desc LIMIT $pagestartpoint,$PageSize");
- $i=1;
- while($col = mysql_fetch_array($r)) {
- ?>
- <tr onclick="location.href='./dealer_manager_form.php?cd_dealer=<?=$col[cd_dealer]?>&PageNo=<?=$PageNo?>';" style="cursor: pointer; cursor: hand;">
- <td><?=$i?></td>
- <td><?=$col[cd_dealerid]?></td>
- <td><?=$col[nm_name]?></td>
- <td><?=$col[nm_title]?></td>
- <td><?=$col[nm_hp_01]."-".$col[nm_hp_02]."-".$col[nm_hp_03]?></td>
- <td><?=$col[dt_insert]?></td>
- </tr>
- <?
- $i++;
- }
- }else{
- ?>
- <tr>
- <td colspan="6">데이터가 존재 하지 않습니다.</td>
- </tr>
- <?
- }
- ?>
- </tbody>
- </table>
- <div class="paging">
- <?
- $url = "./dealer_manager.php?searchtype=$searchtype&searchword=$searchword&ds_status=$ds_status&dt_start=$dt_start&dt_end=$dt_end";
- ListPg1($url ,$PageNo,$PageSize,10,$totalrows,$leftboard[1],$rootpath);
- ?>
- </div>
- <div class="btn_right">
- <a href="./dealer_manager_form.php" class="button">관리자 등록</a>
- </div>
- </section>
- </section>
- <? include("../include/inc_footer.php") ?>
- <? include("../include/inc_bottom.php") ?>
- <?
- mysql_close($connect);
- ?>
|