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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
|
<? session_start(); ?> <?php include_once("_common.php");?> <head> <? if( $adminid == "" ){ ?> <SCRIPT LANGUAGE='JavaScript'> alert("°ü¸®ÀÚ ·Î±×ÀÎ ÈÄ¿¡ À̿밡´ÉÇÕ´Ï´Ù."); location.href = "../onlinecs/adminintro.php"; </script> <? }
$admin = str_replace("admin+","",$adminid); include("../onlinecs/commonSTADMIN.php");
?> <!-- ºÒ·®Á¢¼ÓÀÚ Ã¼Æ® --> <? include('../html/poorman.php'); ?> <? include('../onlinecs/_Head.php'); ?>
<META http-equiv=Content-Type content="text/html; charset=euc-kr"> <script> window.name ="parentWindow"; </script> <script src="Scripts/swfobject_modified.js" type="text/javascript"></script> <META content="MSHTML 6.00.2900.3429" name=GENERATOR>
<script language="javascript" src="okplugin_js.php?txtid=txt2"></script>
<link href="../onlinecs/css/style.css" rel="stylesheet" type="text/css"> <!-- À©µµ¿ì À̸§ÁöÁ¤ ½ºÅ©¸³Æ® : À̸§À» ÁöÁ¤ÇÏ¿© Ÿ°Ù¿¡ »ç¿ë --> <script> window.name ="parentWindow"; </script> <script language="javascript"> /* ' ------------------------------------------------------------------ ' Function : fc_chk_byte(aro_name) ' Description : ÀÔ·ÂÇÑ ±ÛÀÚ¼ö¸¦ üũ ' Argument : Object Name(±ÛÀÚ¼ö¸¦ Á¦ÇÑÇÒ ÄÁÆ®·Ñ) ' Return : ' ------------------------------------------------------------------ */ function fc_chk_byte(aro_name,ari_max) {
var ls_str = aro_name.value; // À̺¥Æ®°¡ ÀÏ¾î³ ÄÁÆ®·ÑÀÇ value °ª var li_str_len = ls_str.length; // Àüü±æÀÌ
// º¯¼öÃʱâÈ var li_max = ari_max; // Á¦ÇÑÇÒ ±ÛÀÚ¼ö Å©±â var i = 0; // for¹®¿¡ »ç¿ë var li_byte = 0; // ÇѱÛÀϰæ¿ì´Â 2 ±×¹Ü¿¡´Â 1À» ´õÇÔ var li_len = 0; // substringÇϱâ À§Çؼ »ç¿ë var ls_one_char = ""; // ÇѱÛÀÚ¾¿ °Ë»çÇÑ´Ù var ls_str2 = ""; // ±ÛÀÚ¼ö¸¦ ÃʰúÇϸé Á¦ÇÑÇÒ¼ö ±ÛÀÚÀü±îÁö¸¸ º¸¿©ÁØ´Ù.
for(i=0; i< li_str_len; i++) { // ÇѱÛÀÚÃßÃâ ls_one_char = ls_str.charAt(i);
// ÇѱÛÀ̸é 2¸¦ ´õÇÑ´Ù. if (escape(ls_one_char).length > 4) { li_byte += 2; } // ±×¹ÜÀÇ °æ¿ì´Â 1À» ´õÇÑ´Ù. else { li_byte++; }
// Àüü Å©±â°¡ li_max¸¦ ³ÑÁö¾ÊÀ¸¸é if(li_byte <= li_max) { li_len = i + 1; } }
// Àüü±æÀ̸¦ ÃʰúÇϸé if(li_byte > li_max) { alert( li_max + " ±ÛÀÚ¸¦ Ãʰú ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù. \n ÃʰúµÈ ³»¿ëÀº ÀÚµ¿À¸·Î »èÁ¦ µË´Ï´Ù. "); ls_str2 = ls_str.substr(0, li_len); aro_name.value = ls_str2;
} aro_name.focus(); }
/* ' ------------------------------------------------------------------ ' Function : fc_chk2() ' Description : Enter۸¦ ¸øÄ¡°ÔÇÑ´Ù. ' Argument : ' Return : ' ------------------------------------------------------------------ */ function fc_chk2() { if(event.keyCode == 13) event.returnValue=false; } </script>
<!-- »õâÀ¸·Î ¶ç¿ì´Â ½ºÅ©¸³Æ®(ÁÖ¼ÒÇ¥½ÃÁÙ,µµ±¸¸·´ë ÀüºÎ ¾ø¾Ö±â) ½ÃÀÛ --> <SCRIPT LANGUAGE="JavaScript"> function submitForm_jepum( siteURL ) { var win = window.open( siteURL, 'newWin', 'status=0,toolbar=0,scrollbars=1,resizable=0,width=600,height=620' ); document.forms.search.action = siteURL; document.forms.search.target = 'newWin'; document.forms.search.submit(); } function chgpass() {
var passwin = window.open( 'adminchgpwd.php', 'passWin', 'status=0,toolbar=0,resizable=1,scrollbar=no,width=304,height=184' ); // document.forms.r_detail.submit();
}
</SCRIPT> <SCRIPT language="javascript"> function bookmark(){ window.external.AddFavorite('http://www.mijinsoft.co.kr/onlinecs/adminintro.php', 'e¼ö¹ßÁÖ°ü¸®ÀÚ') }
function postpop() { window.open( 'findpost.php', 'postWin', 'status=0,toolbar=0,resizable=1,scrollbar=no,width=421,height=378' ); } </SCRIPT> <SCRIPT LANGUAGE="JavaScript"> var handled=false; function Upper(e,r) { r.value = r.value.toUpperCase(); }
function selectstop(){ //񃧯 var sale = document.getElementsByName('salestop'); var salevalue = document.getElementsByName('salestopvalue'); sale[0].checked = true; sale[1].checked = false; sale[2].checked = false; salevalue[0].value = 0; }
function selectstop1(){ //ÇѵµÀϽÃÇØÁ¦ var sale = document.getElementsByName('salestop'); var salevalue = document.getElementsByName('salestopvalue'); sale[0].checked = false; sale[1].checked = true; sale[2].checked = false; salevalue[0].value = 2; }
function selectstop2(){ //°Å·¡ÁßÁö var sale = document.getElementsByName('salestop'); var salevalue = document.getElementsByName('salestopvalue'); sale[0].checked = false; sale[1].checked = false; sale[2].checked = true; salevalue[0].value = 1; } function editnotice(){ //°øÁö ¼öÁ¤
if(customerdetail.title.value == ""){ alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); customerdetail.title.focus(); return; } if(customerdetail.cont.value == ""){ alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); customerdetail.cont.focus(); return; }
document.forms.customerdetail.action = "editnoticeProcess.php"; document.forms.customerdetail.method = "post"; document.forms.customerdetail.submit();
}
function addnotice(){ //°øÁö Ãß°¡
if(customeradd.title.value == ""){ alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); customeradd.compname.focus(); return; } if(customeradd.cont.value == ""){ alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); customeradd.contdd.focus(); return; }
document.forms.customeradd.action = "addnoticeProcess.php"; document.forms.customeradd.method = "post"; // document.forms.customeradd.target = 'saveiframe'; document.forms.customeradd.submit();
}
function formatCurrency(numstr) //¼¼ÀÚ¸®ÄÞ¸¶ { numstr = numstr.replace(/,/gi,""); numstr = String(numstr); var re0 = /^(-?\d+)(\d{3})($|\..*$)/; if (re0.test(numstr)) return numstr.replace(re0, function(str,p1,p2,p3) { return formatCurrency(p1) + "," + p2 + p3; } ); else return numstr; } function basebuy() { var basebuynum = document.getElementsByName("cust_base_buy")[0].value;
newbasebuynum = formatCurrency(basebuynum); document.getElementsByName("cust_base_buy")[0].value = newbasebuynum;
//alert(newbasebuynum); }
function basesale() { var basesalenum = document.getElementsByName("cust_base_sale")[0].value;
newbasesalenum = formatCurrency(basesalenum); document.getElementsByName("cust_base_sale")[0].value = newbasesalenum;
//alert(newbasebuynum); }
function limit() { var limitbaln = document.getElementsByName("limitbaln")[0].value;
newlimitbaln = formatCurrency(limitbaln); document.getElementsByName("limitbaln")[0].value = newlimitbaln;
}
function deletenotice(d) { if( d == ""){ alert("»èÁ¦ÇÒ °øÁö»çÇ×À» ¼±ÅÃÇØ ÁֽʽʽÿÀ."); return; }
if(confirm("¼±ÅÃÇÑ °øÁö»çÇ×À» »èÁ¦ÇϽðڽÀ´Ï±î?") ){ var link="adminnoticedeleteProcess.php?noticeno="+d+""; window.open(link,'saveiframe');
} else { return; }
}
function ordertype(){ //½Å±Ô°Å·¡Ã³ µî·Ï ±âÃÊÀÜ¾× ¼³Á¤
if(document.getElementById("newpart").value == 0){ document.getElementById("newbasebuy").disabled = false; document.getElementById("newbasesale").disabled = true; document.getElementById("newbasesale").style.background = "#efefef"; document.getElementById("newbasebuy").style.background = "#ffffff"; } if(document.getElementById("newpart").value == 1){ document.getElementById("newbasebuy").disabled = true; document.getElementById("newbasebuy").style.background = "#efefef"; document.getElementById("newbasesale").disabled = false; document.getElementById("newbasesale").style.background = "#ffffff"; } if(document.getElementById("newpart").value == 2){ document.getElementById("newbasebuy").disabled = false; document.getElementById("newbasebuy").style.background = "#ffffff"; document.getElementById("newbasesale").disabled = false; document.getElementById("newbasesale").style.background = "#ffffff"; }
}
function numbersonly(e, decimal) { //¼ýÀÚ¸¸ÀÔ·Â var key; var keychar;
if (window.event) { // IE¿¡¼ À̺¥Æ®¸¦ È®ÀÎÇϱâ À§ÇÑ ¼³Á¤ key = window.event.keyCode; } else if (e) { // FireFox¿¡¼ À̺¥Æ®¸¦ È®ÀÎÇϱâ À§ÇÑ ¼³Á¤ key = e.which; } else { return true; }
keychar = String.fromCharCode(key); if ((key == null) || (key == 0) || (key == 8) || (key == 9) || (key == 13) || (key == 27)) { return true; } else if ((("0123456789").indexOf(keychar) > -1)) { return true; } else if (decimal && (keychar == ".")) { return true; } else return false; }
function targetselect() { window.open( "../onlinecs/adminnoticeselect.php?part=<?=$part?>", 'targetWin', 'status=no,toolbar=no,scrollbars=no,resizable=no,width=860,height=620' ); }
function targetall() { document.getElementById("target").value = "Àüü°øÁö"; document.getElementById("target2").value = ""; }
</SCRIPT>
<style type="text/css">
BODY {background: url(../onlinecs/img/topmenu/topbg.gif) repeat-x top center} /*Á¤Áß¾Ó¿¡ ¹è°æ À̹ÌÁö °íÁ¤*/
</style> </head> <iframe name="saveiframe" width="0" height="0" style="border:0px;"></iframe> <body topmargin="0" marginwidth="0" marginheight="0" > <table width="942" border="0" cellspacing="0" cellpadding="0" align="center" > <tr> <td> <!-- »ó´Ü ž¸Þ´º, Ç÷¡½Ã ¸Þ´º -------------- ½ÃÀÛ --> <table width="942" height="73" border="0" cellpadding="0" cellspacing="0" align="center"> <tr height="73"> <td><a href="../onlinecs/adminintro.php"><img src="../onlinecs/img/topmenu/adminlogo.gif" border="0"></a></td> <td width="12" ></td> <td valign="top"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td height="22"> <? include("../onlinecs/admintopmenu.php"); ?> </td> </tr> <tr> <td height="37"> <? include("../onlinecs/adminmenu.php"); ?> </td> </tr> </table> </td> </tr> </table>
<!-- »ó´Ü ž¸Þ´º, Ç÷¡½Ã ¸Þ´º -------------- Á¾·á --> </td> </tr> <tr> <td> <!-- ŸÀÌÆ²¹Ù »ó´Ü¸Þ´º ----------------- ½ÃÀÛ --> <table border="0" cellpadding="0" cellspacing="0" background="../onlinecs/img/admin/menu3_bar.gif" width="942" height="34"> <tr> <td align="right">
<table border="0" cellpadding="0" cellspacing="0" > <tr> <td> <a href="adminnotice.php?mode=insert&part=<?=$part?>"><img src="../onlinecs/img/admin/add.gif" border="0"></a> </td> <td width="7"></td> <td> <a href="javascript:deletenotice('<?=$detail;?>');"><img src="../onlinecs/img/admin/delete.gif" border="0"></a> </td> </tr> </table> </td> <td width="20"> </td> </tr> </table> <!-- ŸÀÌÆ²¹Ù »ó´Ü¸Þ´º ----------------- Á¾·á --> </td> </tr> <tr> <td align="center" style="padding:5px 0px;">
<table border="0" cellpadding="0" cellspacing="0" width="940" height="35" align="center" style="border:1px solid #efefef"> <tr bgcolor="#5076a9"> <td height="2" width="940" colspan="6"></td> </tr> <tr> <td width="250"> </td> <td class="txt03" valign="middle"> <img src="../onlinecs/img/common/search_tab.gif" style="vertical-align:middle"> <b>°øÁö±¸ºÐ:</b> </td> <td> <a href="../onlinecs/adminnotice.php?part=0"> <? if($part == 0){ ?> <img src="../onlinecs/img/admin/custype1_on.gif" style="vertical-align:middle" border="0"> <? } else { ?> <img src="../onlinecs/img/admin/custype1.gif" style="vertical-align:middle" border="0"> <? } ?> </a> </td> <td> <a href="../onlinecs/adminnotice.php?part=1"> <? if($part == 1){ ?> <img src="../onlinecs/img/admin/custype2_on.gif" style="vertical-align:middle" border="0"> <? } else { ?> <img src="../onlinecs/img/admin/custype2.gif" style="vertical-align:middle" border="0"> <? } ?> </a> </td> <td width="250"> </td> </tr> </table>
</td> </tr> <!-- °Å·¡Ã³ ½Å±Ôµî·Ï --> <? if($mode == "insert"){ ?>
<tr> <td class="txt03"> <br> <form name="customeradd" method="post" target="saveiframe"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="250" align="left"> <img src="../onlinecs/img/admin/addnotice.gif"> <td class="txt03"> ¡Ø°øÁö±¸ºÐÀ» ¼±Åà ÈÄ °øÁö¸¦ ÀÛ¼ºÇÏ¼Å¾ß ÇØ´ç ±¸ºÐ¿¡ ¸Â°Ô °øÁö»çÇ×ÀÌ ÀÛ¼º µË´Ï´Ù. </td> <input type="hidden" name="part" value="<?=$part;?>"> </td> </tr> </table> </td> </tr> <tr> <td align="center"> <table width="942" border="0" cellpadding="3" cellspacing="1" bgcolor="d9d9d9"> <tr bgcolor="#5076a9"> <td height="2" width="900" colspan="6"> </td> </tr> <tr bgcolor="#f0f0f0" height="28"> <td class="txt03" width="60" height="22" align="left" style="padding:0 0 0 10px;" valign="middle"> <b>Á¦ ¸ñ </td> <td class="txt03" width="800" bgcolor="#ffffff" style="padding:0 0 0 18px;"> <input type="text" name="title" id="title" style="width:700px;"> </td> </tr> <tr bgcolor="#f0f0f0" height="180"> <td class="txt03" width="60" height="22" align="left" style="padding:0 0 0 10px;" valign="middle"> <b>³» ¿ë </td> <td class="txt03" width="800" bgcolor="#ffffff" style="padding:0 0 0 18px;"> <textarea name="cont" id="cont" style="width:511px;height:150px;" class="txt03" onkeyup="fc_chk_byte(this,500);" ></textarea> </td> </tr> <tr bgcolor="#f0f0f0" height="28"> <td class="txt03" width="60" height="22" align="left" style="padding:0 0 0 10px;" valign="middle"> <b>´ë »ó </td> <td class="txt03" width="800" bgcolor="#ffffff" style="padding:0 0 0 18px;"> <input type="hidden" name="target2" id="target2" > <input name="target" id="target" value="<? if($Drow[ccode] == ""){ echo "Àüü°øÁö"; } else { $csql = "SELECT compname FROM customer WHERE code = '$Drow[ccode]'"; $cresult = mysql_query($csql); $crow = mysql_fetch_array($cresult); echo $crow[compname]; } ?>" style="width:150px;"> <img src="../onlinecs/img/admin/noticeall_bt.gif" border="0" align="absmiddle" style="cursor:pointer;" onclick="targetall();"> <img src="../onlinecs/img/admin/noticetarget_bt.gif" border="0"align="absmiddle" style="cursor:pointer;" onclick="targetselect();"> </td> </tr> </table>
</td> </tr> <tr> <td height="35" align="center"> <img src="../onlinecs/img/common/pwdsave.gif" border="0" style="cursor:pointer;" onclick="addnotice();"> </td> </tr> </form> <SCRIPT LANGUAGE="JavaScript"> ordertype(); </SCRIPT> <? } else { ?> <? } ?> <!-- °øÁö»çÇ× »ó¼¼³»¿ª --> <? if(!$detail== ""){ $Dqry = "SELECT * FROM ordnotice where noticeno='$detail' AND part = '$part' order by regdate DESC"; $Dresult = mysql_query($Dqry); $Drow = mysql_fetch_array($Dresult); ?> <tr> <td class="txt03"> <br> <form name="customerdetail" method="post" target="saveiframe"> <input type="hidden" name="detail" value="<?=$detail;?>"> <input type="hidden" name="part" value="<?=$part;?>"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="250" align="left"> <img src="../onlinecs/img/admin/editnotice.gif"> </td> </tr> </table> </td> </tr> <tr> <td align="center"> <table width="942" border="0" cellpadding="3" cellspacing="1" bgcolor="d9d9d9"> <tr bgcolor="#5076a9"> <td height="2" width="900" colspan="6"> </td> </tr> <tr bgcolor="#f0f0f0" height="28"> <td class="txt03" width="60" height="22" align="left" style="padding:0 0 0 10px;" valign="middle"> <b>Á¦ ¸ñ </td> <td class="txt03" width="800" bgcolor="#ffffff" style="padding:0 0 0 18px;"> <input type="text" name="title" id="title" value="<?=$Drow[title]?>" style="width:700px;"> </td> </tr> <tr bgcolor="#f0f0f0" height="180"> <td class="txt03" width="60" height="22" align="left" style="padding:0 0 0 10px;" valign="middle"> <b>³» ¿ë </td> <td class="txt03" width="800" bgcolor="#ffffff" style="padding:0 0 0 18px;"> <textarea name="cont" id="cont" style="width:511px;height:150px;" class="txt03" onkeyup="fc_chk_byte(this,500);" ><?=$Drow[cont]?></textarea> </td> </tr> <tr bgcolor="#f0f0f0" height="28"> <td class="txt03" width="60" height="22" align="left" style="padding:0 0 0 10px;" valign="middle"> <b>´ë »ó </td> <td class="txt03" width="800" bgcolor="#ffffff" style="padding:0 0 0 18px;"> <input type="hidden" name="target2" id="target2" value = "<?=$row[ccode]?>"> <input name="target" id="target" value="<? if($Drow[ccode] == ""){ echo "Àüü°øÁö"; } else { $csql = "SELECT compname FROM customer WHERE code = '$Drow[ccode]'"; $cresult = mysql_query($csql); $crow = mysql_fetch_array($cresult); echo $crow[compname]; } ?>" style="width:150px;"> <img src="../onlinecs/img/admin/noticeall_bt.gif" border="0" align="absmiddle" style="cursor:pointer;" onclick="targetall();"> <img src="../onlinecs/img/admin/noticetarget_bt.gif" border="0"align="absmiddle" style="cursor:pointer;" onclick="targetselect();"> </td> </tr> </table>
</td> </tr> <tr> <td height="35" align="center"> <img src="../onlinecs/img/common/pwdsave.gif" border="0" style="cursor:pointer;" onclick="editnotice();"> </td> </tr> </form> <? } else { ?> <? } ?>
<!-- °Å·¡Ã³ ¸®½ºÆ® --> <tr> <td> <img src="../onlinecs/img/admin/notice.gif"> </td> </tr> <tr> <td valign="top" align="center"> <table width="942" 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="100%" class="txt07" valign="middle"> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="txt07"> <tr> <td width="5%" align="center" valign="middle"> No </td> <td width="2"><img src="../onlinecs/img/tab/tab.gif" align="absmiddle"></td> <td width="5%" align="center" valign="middle"> ¹øÈ£ </td> <td width="2"><img src="../onlinecs/img/tab/tab.gif" align="absmiddle"></td> <td width="10%" align="center" valign="middle"> °øÁöÀÏÀÚ </td> <td width="2"><img src="../onlinecs/img/tab/tab.gif" align="absmiddle"></td> <td width="10%" align="center" valign="middle"> °øÁö½Ã°£ </td> <td width="2"><img src="../onlinecs/img/tab/tab.gif" align="absmiddle"></td> <td width="50%" align="center" valign="middle"> Á¦¸ñ </td> <td width="2"><img src="../onlinecs/img/tab/tab.gif" align="absmiddle"></td> <td width="20%" 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 height="150" valign="top" align="center">
<table border="0" cellpadding="0" cellspacing="0" width="942" class="txt07"> <? $i = 1; $qry = "SELECT * FROM ordnotice WHERE part = '$part' order by regdate DESC"; $result = mysql_query($qry) or die (mysql_error()); while( $row = mysql_fetch_array($result)){ $regdate = substr($row[regdate],0,10); $regtime = substr($row[regdate],11,8); ?> <tr height="22" style="cursor:pointer;" onMouseOver=this.style.backgroundColor='#ffd5b6' onMouseOut=this.style.backgroundColor='#ffffff' onclick="location.href='../onlinecs/adminnotice.php?part=<?=$part?>&detail=<?=$row[noticeno]?>'"> <td width="5%" align="center" valign="middle"> <?=$i?> </td> <td width="5%" align="center" valign="middle" style="padding:0 0 0 5px;"> <?=$row[noticeno]?> </td> <td width="10%" align="center" valign="middle" style="padding:0 0 0 5px;"> <?=$regdate?> </td> <td width="10%" align="center" valign="middle" style="padding:0 0 0 5px;"> <?=$regtime?> </td> <td width="50%" align="left" valign="middle" style="padding:0 0 0 5px;"> <?=$row[title]?> </td> <td width="20%" align="left" valign="middle" style="padding:0 0 0 5px;"> <? if($row[ccode] == ""){ echo "Àüü°øÁö"; } else { $csql = "SELECT compname FROM customer WHERE code = '$row[ccode]'"; $cresult = mysql_query($csql); $crow = mysql_fetch_array($cresult); echo $crow[compname]; } ?> </td> </tr> <tr height="1" bgcolor="#efefef"> <td colspan="9"> </td> </tr>
<? $i++; } ?> </table> </td> </tr>
<!-- ÀÎÆ®·Î ¸Þ´º -------------- Á¾·á --> </td> </tr> <tr> <td align="center"> <br> <? include('bottom.php'); ?></td> </tr> </table>
</body>
|