/home/mjc1/public_html/faq/index.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
<?
 
include("../manage/category/common.php");

    if (!isset(
$mode)) $mode "";
    if (!isset(
$Code)) $Code "";
    if (!isset(
$keyword)) $keyword "";
    if (!isset(
$searchCode)) $searchCode "";
    if (!isset(
$SearchMswQry)) $SearchMswQry "";
    if (!isset(
$SearchMswQry2)) $SearchMswQry2 "";
    if (!isset(
$total_sql)) $total_sql "";
    if (!isset(
$pg)) $pg "";
    if (!isset(
$uid)) $uid "";
    if (!isset(
$SearchMsw1)) $SearchMsw1 "";
    if (!isset(
$SearchMsw2)) $SearchMsw2 "";



    if( isset(
$uid) && $uid !== ""){

    if( !isset(${
"faqBoardUid_".$uid}) ){

      
$hitSel     =  " SELECT hit FROM cs3_manualBoard WHERE uid = '$uid' ";
      
$hitResult  =    mysql_query($hitSel);
      
$hitRow     =    mysql_fetch_array($hitResult);
      
$plus_hit   =    $hitRow[0] + 1;
      
      
$hitUp  =  " UPDATE cs3_manualBoard SET hit = '$plus_hit' WHERE uid = '$uid' ";
                    
MYSQL_QUERY($hitUp );
      
      
setcookie("faqBoardUid_$uid",$uid,0);
      }  
    }

   
$cm_nCount          =      10;
   
$cm_item_nCount     =      50;          
   
   function 
pageListing($cur_page$total_page$n$url$mode$searchCode ,$keyword ,$SearchMsw1  ) {



/*  °Ô½ÃÆÇ ÆäÀÌÁö À̵¿  */
  
$retValue "<div class='paging'>";
  if (
$cur_page 1) {

      
$retValue .= "<a href='" $url . ($cur_page-1) ."&mode=".$mode."&searchCode=".$searchCode."&keyword=".$keyword."&SearchMsw1=".$SearchMsw1."' class='btn_prev'><span class='sound-only'>ÀÌÀü</span></a>";
  } 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 .= "<a href='" . $url . ($start_page-1) . "&mode=".$mode."&searchCode=".$searchCode."&keyword=".$keyword."&SearchMsw1=".$SearchMsw1."' class='btn_prev10'><span class='sound-only'>ÀÌÀü 10°³</span></a>";
  
if ($total_page 1)
    for (
$k=$start_page;$k<=$end_page;$k++)
      if (
$cur_page != $k$retValue .= "<a href='$url$k&mode=".$mode."&searchCode=".$searchCode."&keyword=".$keyword."&SearchMsw1=".$SearchMsw1."'>$k</a>";

      else 
$retValue .= "<a class='here'>$k</a>";

  
//if ($total_page > $end_page) $retValue .= "<a href='" . $url . ($end_page+1) . "&mode=".$mode."&searchCode=".$searchCode."&keyword=".$keyword."&SearchMsw1=".$SearchMsw1."' class='btn_next10'><span class='sound-only'>´ÙÀ½ 10°³</span></a>";
  
$retValue .= "&nbsp;&nbsp;";
  if (
$cur_page $total_page) {
    
$retValue .= "<a href='$url. ($cur_page+1) ."&mode=".$mode."&searchCode=".$searchCode."&keyword=".$keyword."&SearchMsw1=".$SearchMsw1."' class='btn_next'><span class='sound-only'>´ÙÀ½</span></a>";

  } else {
    
$retValue .= "&nbsp;";
    
$retValue .= "&nbsp;";
  }
  
$retValue .= "</div>";
  return 
$retValue;
}

?>

<html>
    <head>
    <meta http-equiv="content-type" content="application/xhtml+xml; charset=euc-kr"/>
    <link href="./css/import.css" rel="stylesheet" type="text/css">
    <script src="../mjmall/js/jquery-1.7.2.min.js"></script>
    <title>¿Â¶óÀθŴº¾ó</title>
    <style>
    .paging { width:365px;padding:20px 0 0;margin:0 auto;text-align:center;}
    .paging a { display:inline-block;float:left;width:32px;height:32px;line-height:32px;}
    .paging a.here { color:#FFF;border-radius:32px;background:#ff7600;}

    .paging .btn_prev { background:url('./images/common/page_prev.png') center no-repeat;}
    .paging .btn_next { background:url('./images/common/page_next.png') center no-repeat;}
    .paging .btn_prev10 { background:url('./images/common/page_rewind.png') center no-repeat;}
    .paging .btn_next10 { background:url('./images/common/page_forward.png') center no-repeat;}
    </style>

    <script type="text/javascript">
    /* FAQ º¸ÀÌ°í ¾Èº¸ÀÌ°í ½ÃÀÛ */
    (function(W, D){
        var lastchild = null;

        // script by styliss
        // http://www.qurx.net
        if(W.addEventListener)
            W.addEventListener('load', setup, false);
        else
            W.attachEvent('onload', setup);
        return;

        function setup(){
            var parents = byClass('toggleChild');
            for(var i=0, c=parents.length, parent, button; i<c; i++){
                parent = parents[i];
                button = byClass('button', parent)[0];
                button.child = byClass('child', parent)[0];
                //button.child.style.display = 'none';
                button.onclick = toggle;
                button.child.onclick = toggle2;
            }
        }
        
        function toggle(){
            if (lastchild != null && lastchild != this.child) {
                lastchild.style.display = 'none';
            }

            this.child.style.display = this.child.style.display=='none' ? '' : 'none';
            lastchild = this.child;
        }

        function toggle2(){
            this.style.display = this.style.display=='none' ? '' : 'none';
        }
        
        function byClass(className, parent, tag){
            var all = (parent || D).getElementsByTagName(tag || '*')
              , classes
              , result = []
              ;
            for(var i=0, c=all.length; i<c; i++){
                classes = all[i].className.split(/\s+/);
                while(classes.length)
                    if(classes.shift()==className)
                        result.push(all[i]);
            }
            return result;
                
        }
    })(window, document);
    /*FAQ º¸ÀÌ°í ¾Èº¸ÀÌ°í ¸¶Ä§*/

    /* ÇÁ¸°Æ® Ã¼Å© */
    function printChk(num , uid){                             
        window.open("http://mjsoft.co/html/millennium/webmanual_print.php?uid=" +num, "" , "width=790, scrollbars=yes" );
    }
    </script>
</head>

<body>

<!-- »ó¼¼±Û ³»¿ë -->
<?
  
if( isset($uid) && $uid !== ""){
    
    
$oneQry        =    " select * from cs3_manualBoard WHERE uid = '$uid' ";
    
$oneResult    =    mysql_query($oneQry);
    
    
$oneRow        =    mysql_fetch_array($oneResult);
    
$content    =    nl2br(stripslashes($oneRow['content']));
?>

<?     ?>

<style>

</style>
<div class="wrap">
    <div class="header" style="min-height:1500px;">
        <h2><a href="./index.php" id="logo"><span class="sound-only">¿¥Á¦À̼ÒÇÁÆ® ¿Â¶óÀθŴº¾ó</span></a></h2>
        <div class="navi">
            <h2 class="sound-only">ÃÅ³â°æ¿µ3¸Þ´º</h2>
            <?php include("./left_navi.php"); ?>
        </div>
        <div class="cscenter">
            <a href="http://mjsoft.co/html/millennium/customernovice.php" target="_blank" class="simple"><span class="sound-only">óÀ½ ¿À¼Ì´Ù¸é 10ºÐOK</span></a>
            <p class="tel">02-401-5121</p>
            <p class="tel">1566-8680</p>
            <a href="mailto:mjsoft@mijinsoft.co.kr" class="mail"> mjsoft@mijinsoft.co.kr</a>
        </div>

    </div><!--//header-->

    <div class="contents">
        <div class="inner-top-border">
            <div class="inner-top-contents">
                <div class="gnb">
                    <ul>
                        <li><a>¼³Ä¡¹æ¹ý</a></li>
                        <li><a>°èÁ¤°ü¸®</a></li>
                        <li class="on"><a>È­¸é¸Å´º¾ó</a></li>
                    </ul>
                </div>
                <div class="contents-sch">
                    <form name="searchFrm" method="post">
                        <fieldset>
                            <legend class="sound-only">¸Å´º¾ó °Ë»ö¾î ÀÔ·ÂÆû</legend>
                            <div class="box-sch">
                                <input type="text" name="keyword" placeholder="õ³â°æ¿µ °Ë»ö">
                                <button type="submit" class="ico btn-sch">
                                    <span class="sound-only">°Ë»ö</span>
                                </button>
                            </div>
                        </fieldset>
                    </form>
                </div>
            </div><!--//inner-top-contents-->
        </div><!--//inner-top-border-->

<style>
.inner-contents {
    margin:30px 0;
    width:1000px;min-height:1300px;
    border:1px solid #e7e7e7;border-top:1px solid #CDCDCD;
    background:#fff;
}
</style>
        <div id="inner-cate-contents">
            <iframe class='inner-contents' name='faq_iframe' src='faq_contents.php' scrolling="no"></iframe>
        </div>

    </div><!--//contents-->
</div>

</body>
</html>