/home/mjc1/public_html/apphelp/admincs/notice.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
<? session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META http-equiv=Content-Type content="text/html; charset=euc-kr">
<HTML>
<HEAD>
<link rel="stylesheet" type="text/css" href="../onlinecs/css/style.css" >
<TITLE>°øÁö»çÇ×</TITLE> 
<?

    
if(( $id == "" ) && ( $sid == "" )) { 
?>
<script type="text/javascript">
    alert("e¼ö¹ßÁÖ ·Î±×ÀΠÈÄ¿¡ À̿밡´ÉÇÕ´Ï´Ù.");
    location.href = "../onlinecs/intro.php";
</script>
<?     
     
}

 include(
"../onlinecs/commonST.php");
 
        

    
$qry    =  "SELECT * FROM customer WHERE loginid = '$id'";
    
$result    =       mysql_query($qry) or die (mysql_error());
    
    if( 
mysql_num_rows($result) > 0){
    
$row    mysql_fetch_array($result);
//    mysql_close();
    
$sacode $row[ocode];
    
$cuscode $row[code];

    }    

?>




<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" >
<table border="0" cellpadding="0" cellspacing="0" width="600">
    <tr>
        <td>
            <img src="../onlinecs/img/title/notice.gif">
        </td>
    </tr>
    <tr>
        <td>
            <table width="600" height="25" border="0" cellpadding="0" cellspacing="0" background="../onlinecs/img/tab/tab_bg.gif">
                <tr>
                    <td width="2">
                        <img src="../onlinecs/img/tab/tabl.gif"> 
                    </td>
                    <td width="596" class="txt07" valign="middle">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="txt07">
                            <tr>
                                <td width="63" align="center" valign="middle">
                                    ¹øÈ£
                                </td>
                                <td><img src="../onlinecs/img/tab/tab.gif"  valign="absmiddle"></td>
                                <td width="91" align="center" valign="middle">
                                    ÀÏÀÚ    
                                </td>
                                 <td><img src="../onlinecs/img/tab/tab.gif"  valign="absmiddle"></td>
                                <td width="91" align="center" valign="middle">
                                    ½Ã°£    
                                </td>
                                <td><img src="../onlinecs/img/tab/tab.gif"  valign="absmiddle"></td>
                                <td width="354" align="center" valign="middle">
                                    Á¦¸ñ
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td width="2">
                        <img src="../onlinecs/img/tab/tabr.gif">
                    </td>
                </tr>
            </table>

        </td>
    </tr>


    <tr>
        <td>
            <div style="overflow-y:auto; width:598; height:180;border:#a5c1ff solid 1px;">
            <table border="0" cellpadding="0" cellspacing="0" width="580" class="txt03">
<? 
    $nqry 
"SELECT noticeno, ocode, part, regdate, title, ccode FROM ordnotice WHERE part = '$part' AND (ccode = '' or ccode = '$cuscode') order by regdate desc";
    
$nresult mysql_query($nqry);
    while(
$nrow mysql_fetch_array($nresult)){

?>
                <tr height="23" onMouseOver=this.style.backgroundColor='#d1eaff' onMouseOut=this.style.backgroundColor='#ffffff' style="cursor:hand;" onclick="location.href='notice.php?cuscode=<?=$cuscode?>&ocode=<?=$ocode?>&part=<?=$part?>&detail=<?=$nrow[noticeno]?>'">
                    <td width="63" align="center" valign="middle">
                        <?=$nrow[noticeno]?>
                    </td>
                    <td width="91" align="center" valign="middle">
                        <?=substr($nrow[regdate],0,10);?>
                    </td>
                    <td width="91" align="center" valign="middle">
                        <?=substr($nrow[regdate],10,15);?>    
                    </td>
                    <td width="334" align="left" valign="middle" style="padding:0 0 0 15;">
                        <?=$nrow[title]?>
                    </td>
                </tr>
                <tr height="1" bgcolor="#efefef">
                    <td colspan="4">
                    </td>
                </tr>
            </a>
<? ?>
            </table>
        </td>
    </tr>
    <tr>
        <td height="10">
        </td>
    </tr>
<? if($detail "0"){ 
    
    
$dqry "SELECT noticeno, regdate, title, cont FROM ordnotice WHERE noticeno = '$detail'";
    
$dresult mysql_query($dqry);
    
$drow mysql_fetch_array($dresult);
    
?>
    <tr>
        <td>
                <table width="600" border="0" cellpadding="3" cellspacing="1" bgcolor="d9d9d9">
                    <tr bgcolor="#5076a9"> 
                        <td height="2"  colspan="4">
                        </td>
                    </tr>
                    <tr bgcolor="#f0f0f0"> 
                        <td class="txt03" width="67" height="22" align="center" valign="middle">
                            <B>¹ø È£</B>
                        </td>
                        <td class="txt03" width="219" bgcolor="#ffffff"  style="padding:0 10px;">
                            <?=$drow[noticeno];?>
                        </td>
                        <td class="txt03" width="67" height="22" align="center" valign="middle">
                            <B>ÀÏ ÀÚ</B>
                        </td>
                        <td class="txt03" width="219" bgcolor="#ffffff"  style="padding:0 10px;">
                            <?=$drow[regdate]?>
                        </td>
                    </tr>
                    <tr bgcolor="#f0f0f0">
                        <td class="txt03" width="67" height="22" align="center" valign="middle">
                            <B>Á¦ ¸ñ</B>
                        </td>
                        <td class="txt03" width="532" bgcolor="#ffffff"  style="padding:3 10px;" colspan="3">
                            <?=$drow[title]?>
                        </td>
                    </tr>
                    <tr bgcolor="#f0f0f0" height="150">
                        <td class="txt03" width="67" height="22" align="center" valign="middle">
                            <B>³» ¿ë</B>
                        </td>
                        <td class="txt03" width="532" bgcolor="#ffffff"  style="padding:3 10px;" colspan="3">
                            <textarea name="detail" rows="9" cols="70" readonly style="width:511px;height:140px;"><?=$drow[cont]?>
                            </textarea>
                        </td>
                    </tr>
                </table>
        
        </td>
    </tr>
<? ?>
</table>
</body>
</html>