/home/mjc1/public_html/html/millennium/customeretcpds2.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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<?php include_once("./_common2.php"); ?>
<?
 
include("../../manage/category/common.php");
 
//include('./include/_Head.php');
/*
    {
    
         $hitSel     =  " select hit from mBoard_etc_store WHERE uid = '$uid' union select hit from mBoard_pro_store WHERE uid = '$uid'";
         $hitResult  =    mysql_query($hitSel);
         $hitRow     =    mysql_fetch_array($hitResult);
         $plus_hit   =    $hitRow[0] + 1;
         $plus_hit2   =    $hitRow[0] + 1;
         $hitUp  =  " UPDATE mBoard_etc_store SET hit = '$plus_hit' WHERE uid = '$uid' ";
         $hitUp2  =     " UPDATE mBoard_pro_store SET hit = '$plus_hit2' WHERE uid = '$uid' ";
                      MYSQL_QUERY($hitUp );
                      MYSQL_QUERY($hitUp2 );
      
         setcookie("etc_storeUid_$uid",$uid,0);
      }    
  */  
   
   
$cm_nCount          =      15;
   
$cm_item_nCount     =      30;          
   
    function 
pageListing($cur_page$total_page$n$url$mode$searchCode ,$keyword ,$boardId  ) {

  
$retValue .= "<table height=15 style='text-align:center' border=0 cellspacing=0 cellpadding=0><tr>";
  if (
$cur_page 1) {

      
$retValue .= "<td width=80 align=left><a href='" $url . ($cur_page-1) ."&mode=".$mode."&searchCode=".$searchCode."&keyword=".$keyword."&boardId=".$boardId."' ><img src=./img/customer/prev_bt.jpg border=0 valign=bottom></a></td>";
  } else {
    
$retValue .= "&nbsp;";
    
$retValue .= "&nbsp;";
  }
  
$retValue .= "&nbsp;";
  
$start_page = ( ( (int)( ($cur_page ) / 10 ) ) * 10 ) + 1;
  
//echo (int)(($cur_page - 1) / 10);
  
$end_page $start_page 9;
  if (
$end_page >= $total_page$end_page $total_page;
  if (
$start_page 1$retValue .= "<td width=80 align=left> <span style=font-size:9pt;><font face=Verdana><a href='" $url . ($start_page-1) . "'><img src=./img/customer/prev10_bt.jpg border=0 valign=bottom></a></font></span></td> ";
  if (
$total_page 1)
    for (
$k=$start_page;$k<=$end_page;$k++)
      if (
$cur_page != $k$retValue .= "<td>&nbsp;<span style=font-size:9pt;padding:0px 100px 100px 5px;><font face=Verdana><a href='$url$k'>$k</a>&nbsp;</font></span></td>";
      else 
$retValue .= "<td valign=middle><span style=font-size:10pt;><font face=Verdana color=f6822f>&nbsp;[$k]</font></span></td>";
  if (
$total_page $end_page$retValue .= "<td width=80 align=right><a href='" $url . ($end_page+1) . "'><img src=./img/customer/next10_bt.jpg border=0 valign=bottom></a></td> ";
  
$retValue .= "&nbsp;&nbsp;";
  if (
$cur_page $total_page) {
    
$retValue .= "<td width=80 align=right><a href='$url. ($cur_page+1) ."'><img src=./img/customer/next_bt.jpg border=0 valign=bottom></a></td>";

  } else {
    
$retValue .= "&nbsp;";
    
$retValue .= "&nbsp;";
  }
  
$retValue .= "</tr></table>";
  return 
$retValue;
}
?>

<head>
    <meta http-equiv="content-type" content="application/xhtml+xml; charset=euc-kr" />
    <meta http-equiv="Content-Language" content="ko-KR" />
    <link href="./css/style.css" rel="stylesheet" type="text/css">
    <link href="./newcss/style.css" rel="stylesheet" type="text/css">
    <script language='javascript' src='./js/img.js'></script>

    <!--  ½ºÅ©¸³Æ® ¿À·ù¹æÁö (¿À·ù³ªµµ Ç¥½Ã ÇÏÁö ¾Ê±â) -->

    <script language="JavaScript"> 
        <!-- 
            function blockError(){return true;} 
            window.onerror = blockError; 
        //--> 
    </script>
</head>


<body topmargin="0" marginwidth="0" marginheight="0">
<div id="content">
<table width="970" border="0" cellspacing="0" cellpadding="0" align="center" >
  <tr>
    <td>
    <!-- »ó´Ü Å¾¸Þ´º, Ç÷¡½Ã ¸Þ´º --------------  ½ÃÀÛ -->
        <? include("topnav.php"); ?>
    <!-- »ó´Ü Å¾¸Þ´º, Ç÷¡½Ã ¸Þ´º --------------  Á¾·á -->  
        </td>
    </tr>

    <!-- »ó´Ü ¿©¹é -->
    <tr><td height="15"></td></tr>

    <tr>
        <td>
        <!-- ¸ÞÀΠ½ÃÀÛ -->

        <table width="930" border="0" cellspacing="0" cellpadding="0">
            <tr>

                <!-- ÁÂÃø³×ºñ : jÄõ¸® topnav.php -->
                <td valign="top" class="leftnavi" height="700">
                    <img src="http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/leftnavi_top5.jpg" alt="°í°´Áö¿ø" />
                    <a href="./customerfaq.php"><img src="http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/leftnavi_menu5_1.jpg" alt="leftnavi_menu5_1" class="image_rollover" /></a>
                    <a href="./customerupgrade.php"><img src="http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/leftnavi_menu5_2.jpg" alt="leftnavi_menu5_2" class="image_rollover" /></a>
                    <a href="./customermovie.php"><img src="http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/leftnavi_menu5_3.jpg" alt="leftnavi_menu5_3" class="image_rollover" /></a>
                    <a href="./customercomputer.php"><img src="http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/leftnavi_menu5_4.jpg" alt="leftnavi_menu5_4" class="image_rollover" /></a>
                    <a href="./customeretcpds.php"><img src="http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/leftnavi_menu5_5.jpg" alt="leftnavi_menu5_5" class="image_rollover" /></a>
                    <a href="./customeras.php"><img src="http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/leftnavi_menu5_6.jpg" alt="leftnavi_menu5_6" class="image_rollover" /></a>
                    <a href="./customerbuild.php"><img src="http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/leftnavi_menu5_7.jpg" alt="leftnavi_menu5_7" class="image_rollover" /></a>
                    <a href="./customermanual.php"><img src="http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/leftnavi_menu5_8.jpg" alt="leftnavi_menu5_8" class="image_rollover" /></a>
                    <a href="./customerdemo.php"><img src="http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/leftnavi_menu5_9.jpg" alt="leftnavi_menu5_9" class="image_rollover" /></a>
                </td>

                <!-- ¸Þ´º Æø ¿©¹é -->    
                <td width="50"></td>



                <td valign="top">
            <!-- »ó´Ü ¿©¹é¿ë Å×ÀÌºí ½ÃÀÛ----------------->
                <table cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td height="15"></td>
                    </tr>


                    
                    <!-------------- »ó´Ü Å¸ÀÌÆ² ½ÃÀÛ --------------->
                    <tr>
                        <td>
                            <table width="710">
                                <tr valign="bottom">
                                    <td width="153" height="30">
                                    <img src="./img/titlebar/customeretcpds.jpg">
                                    </td>
                                    <td>
                                        <table align="right">
                                            <tr>
                                                <td class="txt01"><a href="intro.php">Home</td>
                                                <td  class="txt01"><font color="999999">&nbsp;    > &nbsp;°í°´¼¾ÅÍ &nbsp; > &nbsp;<font color="494949">ÀÚ·á½Ç</td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>



                <!-- Å¸ÀÌÆ²°ú Á¦Ç°»ó¼¼ »çÀÌ ¼± -->
                    <tr>
                        <td height="5"></td>
                    </tr>
                    <tr>
                        <td width="710" height="1" bgcolor="#cecece"></td>
                    </tr>


                <!-- ¸ÞÀΠÅÇ ³»¿ë »çÀÌ ¿©¹é------------->
                    <tr>
                        <td height="20">
                        </td>
                    </tr>



                    <!-- ¸ÞÀΠ³»¿ë ½ÃÀÛ ------------->
    
                    <tr>
                        <td align="center"  valign="top">
                            <table width="710" border="0" cellpadding="0" cellspacing="0" >
                                <tr> 
                                    <td><img src="./img/customer/pds_top.jpg">
                                    </td>
                                </tr>
                                <tr><td height="15"></td></tr>
                            </table>

<?
    $dbtable   
=  "mBoard_etc_store";
      
$dbtable   =  "mBoard_pro_store";

 

  if( isset(
$uid) && $uid !== ""){
    
    
$oneQry     =   " select * from mBoard_etc_store  WHERE uid = '$uid' union select * from mBoard_pro_store WHERE uid = '$uid' ";

    
$oneResult  =     mysql_query($oneQry);
    
    
$oneRow     =     mysql_fetch_array($oneResult);
     
$content nl2br(stripslashes($oneRow[content]));

?>            



                            <table width="710" border="0" cellspacing="0" cellpadding="0">
                                <tr><td height="15"></td></tr>
                                <tr><td height="2" bgcolor="#627aaf" colspan="2"></td></tr>
                                <tr height="30" align="center"> 
                                    <td width="110"><b>¹øÈ£</td>
                                    <td width="600" align="left"><b>Á¦&nbsp;&nbsp;¸ñ</td>
                                </tr>
                                <tr><td height="1" bgcolor="#c3c3c3" colspan="2"></td></tr>
                                <tr height="30" align="center"> 
                                    <td width="110"><b><strong><?=$oneRow[uid];?></strong></td>
                                    <td width="600" align="left"><b><strong><?=stripcslashes($oneRow[subject]);?></strong></td>
                                </tr>
                                <tr><td height="1" bgcolor="#c3c3c3" colspan="2"></td></tr>

                                <tr height="30" bgcolor="#f8f8f8">
                                    <td width="110" height="40" align="center"><b>÷ºÎÆÄÀÏ</td>
                                    <td align="left"><strong><a href='fileDownLoad.php?type=etc_store&filename=<?=$oneRow[add_file];?>'><img src='./img/customer/file.gif' border="0" valign="bottom">[ ÆÄÀÏ´Ù¿î·Îµå ]</a></td>
                                </tr>
                                <tr><td height="2" bgcolor="#627aaf" colspan="2"></td></tr>

                                <tr><td colspan="2" valign="top" style="padding:10px;"><?=$content;?></td></tr>
                                <tr><td height="1" bgcolor="#e7e7e7" colspan="2"></td></tr>

                            </table>                                 
                                 
                                 
                        <a href="customeretcpds.php"><img src="./img/mypage/list_bt.jpg" vspace="15" border="0"></a>

                        <br>

<?
   
}
?>                    
                        <table width="710" border="0" cellspacing="0" cellpadding="0">

                            <tr><td height="15"></td></tr>
                            <tr><td height="2" bgcolor="#627aaf" colspan="4"></td></tr>
                            <tr height="30" align="center"> 
                                <td width="90"><b>¹øÈ£</td>
                                <td width="420"><b>Á¦¸ñ</td>
                                <td width="100"><b>ÀÛ¼ºÀÏ</td>
                                <td width="100"><b>Á¶È¸¼ö</td>
                            </tr>
                            <tr><td height="1" bgcolor="#c3c3c3" colspan="4"></td></tr>
                        </table>




                        <table width="710" border="0" cellspacing="0" cellpadding="0" align="center" >
<?
      
if( isset($keyword) && $keyword !== ""){
        
          if( 
$searchCode == '1')  $Code =  " and subject like  '%$keyword%' ";
          if( 
$searchCode == '2')  $Code =  " and content like '%$keyword%' ";
        
        }
           
  
$total_sql  =   " select * from mBoard_etc_store union select * from mBoard_pro_store ";
    
 
  
$result      mysql_query($total_sql) or die (mysql_error());
  
$nTotalCount mysql_num_rows($result);
  
$nPage       ceil($nTotalCount $cm_nCount);
  if (
$pg == ""$pg 1;
  
$nFrom = ($pg 1) * $cm_nCount;
 
  
$sql    $total_sql "  order by uid DESC limit $nFrom$cm_nCount ";
 
  
$result mysql_query($sql) or die (mysql_error());
  
   if( 
mysql_num_rows($result) > ){ 
     
    while (
$Row =  mysql_fetch_array($result)){ 

?>              
                            <tr <? if($Row[0] == $uid ){ echo "bgcolor=#ecf0f9";} else{ echo "bgcolor=ffffff";}?> class="txt03"> 
                                <td width="90" height="30" align="center"><?=$Row[uid];?></td>
                                <td width="420"> &nbsp;&nbsp;&nbsp;<a href='customeretcpds.php?uid=<?=$Row[uid];?>&pg=<?=$pg;?>&boardId=<?=$boardId;?>'><?=stripcslashes($Row[subject]);?></td>
                                <td width="100" align="center"><?=date('Y-m-d',$Row[reg_date]);?></td>
                                <td width="100" align="center"><?=$Row[hit];?></td>
                            </tr>
                            <tr bgcolor="EEEEEE"> 
                                <td height="1" colspan="4"></td>
                            </tr>
<?
    
}
  }  
?>              

                        </table>
                        
                        <br >
                        
                        <div><?=pageListing($pg$nPage$cm_nCount"customeretcpds.php?pg=" $mode$searchCode ,$keyword ,$boardId );?></div>
                <!-- ¸ÞÀΠ³»¿ë ³¡ ------------->
                        </td>
                    </tr>
                </table>
            <!-- »ó´Ü ¿©¹é¿ë Å×ÀÌºí ³¡----------------->

                </td>
              </tr>
            </table>

        <!-- ¸ÞÀΠÁ¾·á --------------------------------->

        </td>
    </tr>

    <tr>
        <td height="20">
        <!-- ÇÏ´Ü¿©¹é -->
        </td>
    </tr>


    <tr>
        <td><? include('bottom.php'); ?></td>
    </tr>
</table>
</div>
</body>


<script type="text/javascript">
    $("img.image_rollover").mouseover(function(){
                var temp = $(this).attr("src");
                var length = temp.length;
                var file_type = temp.substring(length-6).substring(3);
                var filePath = "http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/";
                var fileName = $(this).attr("alt");
                $(this).attr("src", filePath + fileName + "_on." + file_type);
    }).mouseout(function(){
                var temp = $(this).attr("src");
                var length = temp.length;
                var file_type = temp.substring(length-6).substring(3);
                var filePath = "http://www.mijinsoft.co.kr/html/millennium/img/leftnavi/";
                var fileName = $(this).attr("alt");
                $(this).attr("src", filePath + fileName + "." + file_type);
    });
 </script>
<!-- //ÁÂÃø³×ºñ -->