/home/mjc1/public_html/html/carmate/customeras.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<? include("./include/header.php"); ?>

<script>
 function asLink(f,id){
   
   if(f == 'y'){
   location.href = "mypageqna_03_01.php?uid="+id;  
     }
   }
 
</script>


<table style="margin:0 auto;width:942px;">
    <tr>
        <td style="height:30px;" colspan="3"></td>
    </tr>
    <tr>
        <td width="212" valign="top">
            <table>
                <caption class="sound_only">ÁÂÃø¸Þ´º</caption>
                <tr>
                    <td>
                        <? include("./include/aside_cscenter.html"?>
                    </td>
                </tr>
                <tr>
                    <td height="25">
                    </td>
                </tr>
            </table>
        </td>
        
        <td width="12"><span class="sound_only">¸Þ´º¿©¹é</span></td>
        
        <td valign="top">
            <table>
                <caption class="sound_only">³»¿ë¿µ¿ª</caption>
                <tr>
                    <td>
                        <table background="../carmate/img/titlebar/customerqna.gif" width="718" height="44">
                            <tr>
                                <td class="txt04" style="text-align:right">HOME > <font color="000000"><b>Áú¹®°ú´äº¯</b></td>
                            </tr>
                            <tr>
                                <td colspan="2" height="12"></td>
                            </tr>
                        </table>                    
                    </td>
                </tr>
                <tr>
                    <td>
                        <!-- Á¦Ç°¼Ò°³»ó´Ü -->
                        <div class="asSection">
                            <table class="vertiTable txt03">
                                <caption>¹®Àdz»¿ª</caption>
                                <colgroup>
                                    <col style="width:62px;" /><col style="width:153px;" /><col style="width:205px;" />
                                    <col style="width:110px;" /><col style="width:71px;" /><col style="width:97px;" />
                                </colgroup>
                                <tr> 
                                    <th colspan="6"><img src="./img/customer/as_01.gif" alt="¹øÈ£"><img src="./img/customer/as_02.gif" alt="Á¦¸ñ"><img src="./img/customer/as_03.gif" alt="´äº¯ÀÚ"><img src="./img/customer/as_04.gif" alt="»óÅÂ"><img src="./img/customer/as_05.gif" alt="ÀÛ¼ºÀÏ"><img src="./img/customer/as_06.gif" alt="ÀÛ¼ºÀÏ"></th>
                                </tr>
<?
  
/* ·Î±×ÀΠÇÏÁö ¾ÊÀ¸¸é Àüü ±Û º¸ÀÓ, ·Î±×ÀÎÇϸé Àڱ⠱۸¸ º¸ÀÓ */
  
if ($_COOKIE['USERID'] == ""){
  
$sql         =     " select a.uid , b.Madd,  b.Mcompany,  a.proResult, b.Mid, a.fid , b.Mname , a.reg_date from mBoard_as a, member b WHERE  a.id = b.Mid and b.Madd != ''  and a.thread = 'A' order by a.uid desc limit 20 ";
  
$result      =       mysql_query($sql) or die (mysql_error());
  } else {
  
$sql         =     " select a.uid , b.Madd,  b.Mcompany,  a.proResult, b.Mid, a.fid , b.Mname , a.reg_date from mBoard_as a, member b WHERE  a.id = b.Mid and a.id = '$_COOKIE[USERID]' and a.thread = 'A' order by a.uid desc limit 20 ";
  
$result      =       mysql_query($sql) or die (mysql_error());
  }
  
   if( 
mysql_num_rows($result) > ){ 
     
    while (
$Row =  mysql_fetch_array($result)){ 
 
      if( 
$Row[3] == "A")  $proResult  =  "´ë±â";
      if( 
$Row[3] == "B")  $proResult  =  "Á¢¼ö";
      if( 
$Row[3] == "C")  $proResult  =  "ó¸®";
      if( 
$Row[3] == "D")  $proResult  =  "º¸·ù";
      if( 
$Row[3] == "E")  $proResult  =  "¿Ï·á";
      if( 
$Row[3] == "F")  $proResult  =  "Áú¹®";
      if( 
$Row[3] == "G")  $proResult  =  "¿äû";

    
$addr      =  explode(" "$Row[1] );
    
       
$replyQry      =   " select uid,name from mBoard_as where fid = '$Row[5]' and thread = 'AA' ";   
       
$replyResult   =     mysql_query$replyQry);
      if( 
mysql_num_rows($replyResult) > 0){ 
       
$replyRow      =  mysql_fetch_array($replyResult);
       }
       
      if(
$Row[2] == ""){  //ȸ»ç¸íÀÌ ¾øÀº°æ¿ìó¸®.
        
         
$_disName =  $Row[6];
        }
       else{
         
$_disName =  $Row[2];
         }  
    
     
$reg_date  date('Y-m-d' ,$Row['reg_date']);
?> 
        
                                <tr <? //if($Row[4] == $_COOKIE['USERID'] && $replyRow[0] !== "" && $Row[3] == "E"){ echo "onClick=\"asLink('y','$replyRow[0]');\" style='cursor:pointer;' bgcolor=ffffff ";} ?>>
                                    <td><?=$Row[0];?></td>
                                    <td><?=$_disName;?></td>
                                    <td><?=$addr[0]." ".$addr[1];?></td>
                                    <td><?=$replyRow[1];?></td>
                                    <td><?=$proResult;?></td>
                                    <td><?=$reg_date;?></td>
                                </tr>
<?
        
}
    }  
?> 
                            </table>

                            <div class="btnArea"><a href="#" <?  if($_COOKIE['USERID'] !== "" && isset($_COOKIE['USERID'])){ echo "onClick=\"location.href = 'mypageqna.php'\"";} else{ echo "onClick=\"javascript:window.open('outlogin.php','','width=420,height=350,menubar=no,location=no,toolbar=no,scrollbar=no')\"";} ?>><img src="../carmate/img/customer/asadd_bt.gif" alt="Áú¹®µî·Ï"></a></td>
                </TR>
            </table>

    <!-- ³»¿ë ---------------  ³¡ ----->
                    </td>
                </tr>
            </table>
    <!-- Áß°£ --------------  ³¡ -->
        </td>
    </tr>

<? include('./include/footer.php'); ?>