/home/mjc1/public_html/html/carmate/ecarbookreserve.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?
    
exit;
    if(( 
$_COOKIE['CUSERID'] == "" ) && ( $_COOKIE['COMID'] == "" )) { 
?>

<script>
    alert("Á¤ºñÁ¶È¸ ·Î±×ÀΠÈÄ¿¡ À̿밡´ÉÇÕ´Ï´Ù.");
    location.href = "./ecarbook.php";
</script>

<?     
    
}
    
    include(
"./include/header.php");
    include(
"../../manage/category/mscommon.php");

    
$msQry       =  "SELECT * From app_priv WHERE user_id = '$_COOKIE[COMID]' and app_id = '11'";
    
$msResult    =    MYSQL_QUERY($msQry);
    
mysql_close;

    
$msRow  =  MYSQL_FETCH_ARRAY($msResult);
    
    
$sa_uid $msRow[user_id];
    
$sa_dbip $msRow[app_dbip];
    
$sa_dbname $msRow[app_dbname];

if( 
MYSQL_NUM_ROWS($msResult) > 0){

    include(
"./common.php");

    
$cm_nCount          =      15;
    
$cm_item_nCount     =      30;          
    
    
$qry    =  "SELECT * FROM custom WHERE cus_carnum = '$_COOKIE[CUSERID]' AND cus_hp = '$_COOKIE[CUSERID2]'";
    
$result    =       mysql_query($qry) or die (mysql_error());
    
    if( 
mysql_num_rows($result) > 0){
    
$row    mysql_fetch_array($result);
    
//    mysql_close();
    
$sacode $row[sa_code];
    
$cuscode $row[cus_code];
    
}
?>

<script>
function carlogout(){
  carlogin_ifm.location.href =  "carlogout.php";
}
</script>

<iframe name='carlogin_ifm' width=0 height=0 style="border:0px;"></iframe>
<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_book.html"?>
                    </td>
                </tr>
                <tr>
                    <td height="25"></td>
                </tr>
                <tr>
                    <td>
                    <!-- ¹è³Ê -->
                    <? include("./leftbannerprocs.php"?>
                    </td>
                </tr>
            </table>
        </td>
        
        <td width="12"></td>
        
        <td valign="top">
            <table>
                <caption class="sound_only">³»¿ë¿µ¿ª</caption>
                <tr>
                    <td>
                        <table background="./img/titlebar/ecarbook.gif" width="718" height="44">
                            <tr>
                                <td class="txt04" style="text-align:right">HOME > <font color="000000">ÀÎÅͳÝÂ÷°èºÎ</td>
                            </tr>
                            <tr>
                                <td colspan="2" height="12"></td>
                            </tr>
                        </table>                    
                    </td>
                </tr>
                <tr>
                    <td>
                        <!-- Á¦Ç°¼Ò°³»ó´Ü -->
                        <div class="swSection">
                            <div class="imgArea">
                                <img src="./img/carbook/ebox.gif" alt="Á¦Ç°À̹ÌÁö">
                            </div>
                            <div class="textArea">
                                <h3><img src="./img/carbook/etitle.gif" alt="Â÷°èºÎ"></h3>
                                <div class="swText"><? include("./ecarinfo.php"); ?></div>
                                <div class="btnArea">
<!--·Î±×ÀΠÀü-->
<? if(  $_COOKIE['CUSERID'] == "") { ?>
<img src="./img/carbook/ecar1_bt.gif" style="cursor:pointer;" alt="³»Á¤ºñÈ®ÀÎ" onClick="javascript:window.open('caroutlogin.php','','width=420,height=350,menubar=no,location=no,toolbar=no,scrollbar=no')"><img src="./img/carbook/ecar2_bt.gif" style="cursor:pointer;" alt="Á¤ºñ¿¹¾àµî·Ï" onClick="javascript:window.open('car2outlogin.php','','width=420,height=350,menubar=no,location=no,toolbar=no,scrollbar=no')">

<!--·Î±×ÀΠÈÄ-->        
<? } else { ?>
<a href="./ecarbooklist.php"><img src="./img/carbook/ecar1_bt.gif" alt="³»Á¤ºñÈ®ÀÎ"></a><a href="./ecarbookreserve.php"><img src="./img/carbook/ecar2_bt.gif" alt="¿¹¾àÁ¤ºñµî·Ï"></a><a style="cursor:pointer;" onClick="carlogout();"><img src="./img/carbook/ecar0_bt2.gif" alt="Á¤ºñÁ¶È¸ ·Î±×¾Æ¿ô"></a>
<? ?>
                                </div><!--//btnArea-->
                            </div>
                        </div><!--//swSection-->

                        <table class="vertiTable txt03">
                            <caption><img src="./img/titlebar/ecar2-1.gif" alt="Á¤ºñ¿¹¾à"></caption>
                            <colgroup>
                                <col style="width:100px;"><col style="width:390px;">
                                <col style="width:100px;"><col style="width:110px;">
                            </colgroup>
                            <tr> 
                                <th><img src="./img/ecarbook/rtab1.gif" alt="Á¤ºñÀÏÀÚ"></th>
                                <th><img src="./img/ecarbook/rtab2.gif" alt="Á¤ºñ³»¿ª"></th>
                                <th><img src="./img/ecarbook/rtab3.gif" alt="ÁÖÇà°Å¸®"></th>
                                <th><img src="./img/ecarbook/rtab4.gif" alt="´ã´çÀÚ"></th>
                            </tr>

<?
    $total_sql  
=  "select * from res_fix WHERE cus_code = '$cuscode' AND sa_code = '$sacode' AND res_Online = 'Online'";
    
$result      mysql_query($total_sql) or die (mysql_error());
    
$nTotalCount mysql_num_rows($result);
    
    
$sql    $total_sql " order by res_fix_date desc";
    
    
$result mysql_query($sql) or die (mysql_error());
    
    if( 
mysql_num_rows($result) > ){ 
    
        while (
$Row =  mysql_fetch_array($result)){ 
        
            if( 
$Row[res_fix_Check] == "0")  $proResult  =  "<font color='#000000'>Á¢¼öÁß";
            if( 
$Row[res_fix_Check] == "1")  $proResult  =  "<font color='#3333CC'>Á¢¼ö¿Ï·á";
            if( 
$Row[res_fix_Check] == "3")  $proResult  =  "<font color='#FF0000'>Á¤ºñ¿Ï·á";
        
            
$Reg_date    date('Y-m-d',$row[reg_date] );
?>
                            <tr> 
                                <td><?=$Row[res_fix_date];?></td>
                                <td>
                                <? if( $Row[res_fix_Check] == "3") { ?>
                                    <?=$Row[res_fix_detail];?>
                                <? } else {?>
                                    <a href='ecarbookadd_01.php?pType=up&uid=<?=$Row[res_fix_code];?>'><?=$Row[res_fix_detail];?><? ?>
                                </td>
                                <td><?=$Row[res_date];?></td>
                                <td><?=$proResult;?></td>
                            </tr>

<? 
    

}
?>
                        </table>
                            <div class="btnArea"><a href="./ecarbookadd.php"><img src="./img/ecarbook/res_bt.gif" alt="0"></div>

    <!-- ³»¿ë ---------------  ³¡ ----->
                    </td>
                </tr>
            </table>
    <!-- Áß°£ --------------  ³¡ -->
        </td>
    </tr>
    
<? include('./include/footer.php'); ?>

<? ?>