forked from picometer/GR-Board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_code.php
793 lines (690 loc) · 31.4 KB
/
admin_code.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
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
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
<?php
// 기본 클래스 @sirini
include 'class/common.php';
$GR = new COMMON;
$GR->dbConn();
// 관리자인지 확인한다. @sirini
if($_SESSION['no'] != 1) $GR->error('관리자 화면은 관리자만 접근할 수 있습니다.', 1, 'CLOSE');
// 문서설정 @sirini
$title = 'GR Board Admin Page ( Code )';
include 'html_head.php';
include 'admin/admin_left_menu.php';
?>
<!-- 현재 페이지 도움말 -->
<div id="grboardHelpBox">
여러분들의 .html(.php) 페이지에 쉽게 최근게시물/외부로그인 등을 달 수 있도록 코드를 생성해 줍니다. <a href="#" title="도움말을 더 봅니다" id="helpCodeBtn">...도움말보기 <img src="image/admin/btn_help_more.gif" alt="더 보기" /></a>
<div id="helpBox" style="display: none">
일반적으로 웹사이트를 제작하는 데 있어서 가장 까다로운 부분이 바로 최근게시물이나 외부로그인 입니다.<br />
GR Board 에서는 사용자가 직접 .html(.php) 파일을 만들어 페이지를 제작할 때 HTML 과는 다른 생소한 코드를<br />
보다 쉽고 편하게 다루실 수 있도록 이 코드 생성 페이지를 제공하고 있습니다.<br />
<br />
아래 각 패널별로 사용하고자 하는 테마를 선택하고, 갯수를 지정하고, 여러 옵션을 설정하면 마지막에<br />
복사 후 붙여넣기 하여 바로 사용 할 수 있는 코드가 자동으로 생성 됩니다.<br />
원하시는 페이지를 디자인 하신 후 코드 생성을 통해 간단하게 GR Board 최근게시물 등을 붙여보세요!
</div>
</div><!--# 현재 페이지 도움말 -->
<!-- 코드 추천 -->
<div class="mvBack" id="admCodeRecommand">
<div class="mv">페이지 최상단 코드 추천</div>
<div style="padding: 10px">
<?php
if(preg_match('/win/i', PHP_OS)) $bar = '\\'; else $bar = '/';
$path = realpath(__FILE__);
$pathArr = explode($bar, $path);
$codeGrboard = $pathArr[count($pathArr)-2];
?>
<strong><?php<br />
<span style="color: skyblue">$grboard</span> = <span style="color: brown">'./<?php echo $codeGrboard; ?>'</span>;</strong> <span style="color: green">// GR Board 디렉토리와 동급의 위치에 페이지 파일(예: index.php)이 있을 경우</span><br />
<strong><span style="color: blue">include</span> <span style="color: skyblue">$grboard</span> . <span style="color: brown">'/include.php'</span>;<br />
?></strong><br />
<br />
※ 아래의 코드는 <head> 와 </head> 사이에 있는 <style type="text/css"> <strong>*여기에</strong> </style> 넣어주세요.<br />
<span style="color: #999">(최근게시물, 외부로그인 등의 테마 속에 있는 스타일시트를 페이지 내에 삽입(import)하는 예제구문 입니다.<br />
위의 추천 코드와 아래 코드생성을 바탕으로 자동 생성된 코드이며, 자신의 페이지에 맞게 수정/추가 할 수 있습니다.)</span><br />
<br />
<div style="border: #ccc 2px solid; padding: 10px; background-color: #fafafa">
<div><style type="text/css"><span style="color: green">/*<![CDATA[*/</span></div>
<div id="insertCSS1"></div>
<div id="insertCSS2"></div>
<div id="insertCSS3"></div>
<div id="insertCSS4"></div>
<div id="insertCSS5"></div>
<div id="insertCSS6"></div>
<div id="insertCSS7"></div>
<div id="insertCSS8"></div>
<div id="insertCSS9"></div>
<div><span style="color: green">/*]]>*/</span></style></div>
<div id="insertJS"></div>
</div>
</div>
</div><!--# 코드 추천 -->
<div class="vSpace"></div>
<!-- 최근게시물 생성 -->
<form id="codeLatest" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div class="mvBack" id="admLatestCode">
<div class="mv">최근게시물 생성</div>
<div class="tableListLine">
<div class="tableLeft" title="사용할 최근게시물 테마를 선택합니다.">테마선택</div>
<div class="tableRight">
<select name="latestTheme">
<?php
$latestDir = @opendir('./latest/');
while($latests = @readdir($latestDir)) { if($latests == '.' || $latests == '..') continue; ?>
<option value="<?php echo $latests; ?>"><?php echo $latests; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="보여줄 게시판을 선택 합니다.">게시판 ID</div>
<div class="tableRight">
<select name="latestBoard">
<?php
$latestBoard = $GR->query('select id from '.$dbFIX.'board_list');
while($bbs = $GR->fetch($latestBoard)) { ?>
<option value="<?php echo $bbs['id']; ?>"><?php echo $bbs['id']; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="보여줄 게시물 수를 선택 합니다.">게시물 수</div>
<div class="tableRight">
<select name="latestNum">
<?php
for($i=1; $i<100; $i++) { ?>
<option value="<?php echo $i; ?>"<?php echo (($i==5)?' selected="selected"':''); ?>><?php echo $i; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="제목을 특정 글자수 이하로 보이도록 제한을 겁니다.">제목 글자수 제한</div>
<div class="tableRight">
<input type="text" name="latestCutNum" class="input" value="0" /> (<strong>0</strong> 일 경우 글자수 제한 없음)
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="제목과 함께 글내용도 가져올 지 정합니다.">내용 가져오기</div>
<div class="tableRight">
<select name="latestGetContent"><option value="0">가져오지 않음</option><option value="1">내용 가져오기</option></select>
(최근게시물 테마가 지원을 해야 사용 가능)
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="내용을 특정 글자수 이하로 보이도록 제한을 겁니다.">내용 글자수 제한</div>
<div class="tableRight">
<input type="text" name="latestCutContentNum" class="input" value="0" /> (<strong>0</strong> 일 경우 글자수 제한 없음, 최근게시물 테마가 지원을 해야 사용 가능)
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="날짜 형식을 변경할 수 있습니다.">날짜 형식 지정</div>
<div class="tableRight">
<input type="text" name="latestDateForm" class="input" value="Y.m.d" /> (<?php echo date('Y.m.d'); ?>)
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="최근게시물 테마 상단의 제목을 정합니다.">최근게시물 제목</div>
<div class="tableRight">
<input type="text" name="latestSubject" class="input" value="최근게시물" />
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="정렬할 때 어떤 대상을 기준으로 할 것인지 지정합니다.">정렬대상</div>
<div class="tableRight">
<select name="orderBy">
<option value="no">글번호</option>
<option value="name">글쓴이</option>
<option value="homepage">홈페이지</option>
<option value="signdate">작성시각</option>
<option value="hit">조회수</option>
<option value="good">추천수</option>
<option value="comment_count">댓글수</option>
<option value="category">분류명</option>
<option value="subject">글제목</option>
<option value="content">글내용</option>
<option value="tag">태그</option>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="정렬할 때 역순으로 할 것인지, 순차적으로 할 것인지 정합니다.">정렬방법</div>
<div class="tableRight">
<select name="desc">
<option value="desc">역순정렬 (기본)</option>
<option value="asc">순차정렬</option>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="submitBox">
<input type="submit" value="코드 생성" title="최근게시물 코드를 생성 합니다." />
</div>
</div>
<div id="latestPreviewCode" class="codePreview">코드생성 을 클릭하시면 생성 됩니다.</div>
</div><!--# 최근게시물 생성 -->
</form>
<div class="vSpace"></div>
<!-- 내 알림 생성 -->
<form id="codeNoti" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div class="mvBack" id="admNotiCode">
<div class="mv">내 알림 생성</div>
<div class="tableListLine">
<div class="tableLeft" title="사용할 내 알림 테마를 선택합니다.">테마선택</div>
<div class="tableRight">
<select name="notiTheme">
<?php
$latestDir = @opendir('./latest/');
while($latests = @readdir($latestDir)) { if($latests == '.' || $latests == '..') continue; ?>
<option value="<?php echo $latests; ?>"><?php echo $latests; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="보여줄 게시물 수를 선택 합니다.">게시물 수</div>
<div class="tableRight">
<select name="notiNum">
<?php
for($i=1; $i<100; $i++) { ?>
<option value="<?php echo $i; ?>"<?php echo (($i==5)?' selected="selected"':''); ?>><?php echo $i; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="내 알림 테마 상단의 제목을 정합니다.">내 알림 제목</div>
<div class="tableRight">
<input type="text" name="notiSubject" class="input" value="내 알림" />
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="submitBox">
<input type="submit" value="코드 생성" title="최근게시물 코드를 생성 합니다." />
</div>
</div>
<div id="notiPreviewCode" class="codePreview">코드생성 을 클릭하시면 생성 됩니다.</div>
</div><!--# 내 알림 생성 -->
</form>
<div class="vSpace"></div>
<!-- 외부로그인 생성 -->
<form id="codeOutlogin" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div class="mvBack" id="admOutloginCode">
<div class="mv">외부로그인 생성</div>
<div class="tableListLine">
<div class="tableLeft" title="사용할 최근게시물 테마를 선택합니다.">테마선택</div>
<div class="tableRight">
<select name="outloginTheme">
<?php
$outloginDir = @opendir('./outlogin/');
while($outlogins = @readdir($outloginDir)) { if($outlogins == '.' || $outlogins == '..') continue; ?>
<option value="<?php echo $outlogins; ?>"><?php echo $outlogins; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="submitBox">
<input type="submit" value="코드 생성" title="외부로그인 코드를 생성 합니다." />
</div>
</div>
<div id="outloginPreviewCode" class="codePreview">코드생성 을 클릭하시면 생성 됩니다.</div>
</div><!--# 외부로그인 생성 -->
</form>
<div class="vSpace"></div>
<!-- 통합 최근게시물 생성 -->
<form id="codeTotalLatest" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div class="mvBack" id="admTotalLatestCode">
<div class="mv">통합 최근게시물 생성</div>
<div class="tableListLine">
<div class="tableLeft" title="사용할 통합 최근게시물 테마를 선택합니다.">테마선택</div>
<div class="tableRight">
<select name="latestTotalTheme">
<?php
$latestTotalDir = @opendir('./latest/');
while($latestTotals = @readdir($latestTotalDir)) { if($latestTotals == '.' || $latestTotals == '..') continue; ?>
<option value="<?php echo $latestTotals; ?>"><?php echo $latestTotals; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="보여줄 게시물 수를 선택 합니다.">게시물 수</div>
<div class="tableRight">
<select name="latestTotalNum">
<?php
for($i=1; $i<100; $i++) { ?>
<option value="<?php echo $i; ?>"<?php echo (($i==5)?' selected="selected"':''); ?>><?php echo $i; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="제목을 특정 글자수 이하로 보이도록 제한을 겁니다.">제목 글자수 제한</div>
<div class="tableRight">
<input type="text" name="latestTotalCutNum" class="input" value="0" /> (<strong>0</strong> 일 경우 글자수 제한 없음)
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="날짜 형식을 변경할 수 있습니다.">날짜 형식 지정</div>
<div class="tableRight">
<input type="text" name="latestTotalDateForm" class="input" value="Y.m.d" /> (<?php echo date('Y.m.d'); ?>)
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="통합 최근게시물 테마 상단의 제목을 정합니다.">통합 게시물 제목</div>
<div class="tableRight">
<input type="text" name="latestTotalSubject" class="input" value="통합 최근게시물" />
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="비밀글도 목록에 표시 합니다.">비밀글 보기</div>
<div class="tableRight">
<select name="latestTotalGetSecret"><option value="false">비밀글 숨기기</option><option value="true">비밀글 보여주기</option></select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="정렬할 때 어떤 대상을 기준으로 할 것인지 지정합니다.">정렬대상</div>
<div class="tableRight">
<select name="orderBy">
<option value="no">글번호</option>
<option value="name">글쓴이</option>
<option value="homepage">홈페이지</option>
<option value="signdate">작성시각</option>
<option value="hit">조회수</option>
<option value="good">추천수</option>
<option value="comment_count">댓글수</option>
<option value="category">분류명</option>
<option value="subject">글제목</option>
<option value="content">글내용</option>
<option value="tag">태그</option>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="정렬할 때 역순으로 할 것인지, 순차적으로 할 것인지 정합니다.">정렬방법</div>
<div class="tableRight">
<select name="desc">
<option value="desc">역순정렬 (기본)</option>
<option value="asc">순차정렬</option>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="여기 지정된 ID의 게시판들 목록만 가져옵니다.">특정 게시판 지정</div>
<div class="tableRight">
<input type="text" name="boardList" class="input" value="" /> (지정예: freeboard<span style="color: blue">|</span>qna<span style="color: blue">|</span>notice<span style="color: blue">|</span>gallery)
<div><br /><strong>※ 참고: 지정 가능한 게시판 ID들</strong> (비워둘 시 전체 게시판에서 추출, | <span style="color: #aaa">(Shift + ₩)</span> 로 구분합니다.)<br /><br />
<?php
$boardList = '';
$loop = 1;
$getBList = $GR->query('select id from '.$dbFIX.'board_list');
while($bbs = $GR->fetch($getBList)) {
$boardList .= '|'.$bbs['id'];
if($loop % 5 == 0) $boardList .= '<br />';
$loop++;
}
echo substr($boardList, 1, strlen($boardList));
?></div>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="submitBox">
<input type="submit" value="코드 생성" title="통합 최근게시물 코드를 생성 합니다." />
</div>
</div>
<div id="latestTotalPreviewCode" class="codePreview">코드생성 을 클릭하시면 생성 됩니다.</div>
</div><!--# 통합 최근게시물 생성 -->
</form>
<div class="vSpace"></div>
<!-- 통합 최근코멘트 생성 -->
<form id="codeTotalComment" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div class="mvBack" id="admTotalCommentCode">
<div class="mv">통합 최근코멘트 생성</div>
<div class="tableListLine">
<div class="tableLeft" title="사용할 통합 최근코멘트 테마를 선택합니다.">테마선택</div>
<div class="tableRight">
<select name="latestTotalCommentTheme">
<?php
$latestTotalDir = @opendir('./latest/');
while($latestTotals = @readdir($latestTotalDir)) { if($latestTotals == '.' || $latestTotals == '..') continue; ?>
<option value="<?php echo $latestTotals; ?>"><?php echo $latestTotals; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="보여줄 게시물 수를 선택 합니다.">게시물 수</div>
<div class="tableRight">
<select name="latestTotalCommentNum">
<?php
for($i=1; $i<100; $i++) { ?>
<option value="<?php echo $i; ?>"<?php echo (($i==5)?' selected="selected"':''); ?>><?php echo $i; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="제목을 특정 글자수 이하로 보이도록 제한을 겁니다.">제목 글자수 제한</div>
<div class="tableRight">
<input type="text" name="latestTotalCommentCutNum" class="input" value="0" /> (<strong>0</strong> 일 경우 글자수 제한 없음)
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="날짜 형식을 변경할 수 있습니다.">날짜 형식 지정</div>
<div class="tableRight">
<input type="text" name="latestTotalCommentDateForm" class="input" value="Y.m.d" /> (<?php echo date('Y.m.d'); ?>)
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="통합 최근코멘트 테마 상단의 제목을 정합니다.">통합 코멘트 제목</div>
<div class="tableRight">
<input type="text" name="latestTotalCommentSubject" class="input" value="통합 최근코멘트" />
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="비밀글도 목록에 표시 합니다.">비밀글 보기</div>
<div class="tableRight">
<select name="latestTotalCommentGetSecret"><option value="false">비밀글 숨기기</option><option value="true">비밀글 보여주기</option></select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="정렬할 때 어떤 대상을 기준으로 할 것인지 지정합니다.">정렬대상</div>
<div class="tableRight">
<select name="orderBy">
<option value="no">글번호</option>
<option value="name">글쓴이</option>
<option value="homepage">홈페이지</option>
<option value="signdate">작성시각</option>
<option value="hit">조회수</option>
<option value="good">추천수</option>
<option value="comment_count">댓글수</option>
<option value="category">분류명</option>
<option value="subject">글제목</option>
<option value="content">글내용</option>
<option value="tag">태그</option>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="정렬할 때 역순으로 할 것인지, 순차적으로 할 것인지 정합니다.">정렬방법</div>
<div class="tableRight">
<select name="desc">
<option value="desc">역순정렬 (기본)</option>
<option value="asc">순차정렬</option>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="여기 지정된 ID의 게시판들 목록만 가져옵니다.">특정 게시판 지정</div>
<div class="tableRight">
<input type="text" name="boardList" class="input" value="" /> (지정예: freeboard<span style="color: blue">|</span>qna<span style="color: blue">|</span>notice<span style="color: blue">|</span>gallery)
<div><br /><strong>※ 참고: 지정 가능한 게시판 ID들</strong> (비워둘 시 전체 게시판에서 추출, | <span style="color: #aaa">(Shift + ₩)</span> 로 구분합니다.)<br /><br />
<?php
$boardList = '';
$loop = 1;
$getBList = $GR->query('select id from '.$dbFIX.'board_list');
while($bbs = $GR->fetch($getBList)) {
$boardList .= '|'.$bbs['id'];
if($loop % 5 == 0) $boardList .= '<br />';
$loop++;
}
echo substr($boardList, 1, strlen($boardList));
?></div>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="submitBox">
<input type="submit" value="코드 생성" title="통합 최근코멘트 코드를 생성 합니다." />
</div>
</div>
<div id="latestTotalCommentPreviewCode" class="codePreview">코드생성 을 클릭하시면 생성 됩니다.</div>
</div><!--# 통합 최근코멘트 생성 -->
</form>
<div class="vSpace"></div>
<!-- 설문조사 생성 -->
<form id="codePoll" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div class="mvBack" id="admPollCode">
<div class="mv">설문조사 생성</div>
<div class="tableListLine">
<div class="tableLeft" title="사용할 최근게시물 테마를 선택합니다.">테마선택</div>
<div class="tableRight">
<select name="pollTheme">
<?php
$pollDir = @opendir('./latest/');
while($polls = @readdir($pollDir)) { if($polls == '.' || $polls == '..') continue; ?>
<option value="<?php echo $polls; ?>"><?php echo $polls; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="submitBox">
<input type="submit" value="코드 생성" title="설문조사 코드를 생성 합니다." />
</div>
</div>
<div id="pollPreviewCode" class="codePreview">코드생성 을 클릭하시면 생성 됩니다.</div>
</div><!--# 설문조사 생성 -->
</form>
<div class="vSpace"></div>
<!-- 통합검색 생성 -->
<form id="codeTotalSearch" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div class="mvBack" id="admAllSearch">
<div class="mv">통합검색폼 생성</div>
<div class="tableListLine">
<div class="tableLeft" title="사용할 최근게시물 테마를 선택합니다.">테마선택</div>
<div class="tableRight">
<select name="allSearchTheme">
<?php
$allSearchDir = @opendir('./latest/');
while($search = @readdir($allSearchDir)) { if($search == '.' || $search == '..') continue; ?>
<option value="<?php echo $search; ?>"><?php echo $search; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="검색 결과수를 조정합니다.">검색 결과수 제한</div>
<div class="tableRight">
<input type="text" name="resultLimit" class="input" value="10" />
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="submitBox">
<input type="submit" value="코드 생성" title="통합검색 코드를 생성 합니다." />
</div>
</div>
<div id="totalSearchPreviewCode" class="codePreview">코드생성 을 클릭하시면 생성 됩니다.</div>
</div><!--# 통합검색 생성 -->
</form>
<div class="vSpace"></div>
<!-- 태그 구름 생성 -->
<form id="codeTag" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div class="mvBack" id="admTagCode">
<div class="mv">태그구름 생성</div>
<div class="tableListLine">
<div class="tableLeft" title="사용할 최근게시물 테마를 선택합니다.">테마선택</div>
<div class="tableRight">
<select name="tagTheme">
<?php
$pollDir = @opendir('./latest/');
while($polls = @readdir($pollDir)) { if($polls == '.' || $polls == '..') continue; ?>
<option value="<?php echo $polls; ?>"><?php echo $polls; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="태그를 몇 개 출력할 것인지 숫자를 입력합니다.">출력 태그수</div>
<div class="tableRight">
<input type="text" name="latestTagNum" class="input" value="20" />
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="태그 구름 테마 상단의 제목을 정합니다.">태그 구름 제목</div>
<div class="tableRight">
<input type="text" name="latestTagSubject" class="input" value="태그구름" />
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="정렬할 때 어떤 대상을 기준으로 할 것인지 지정합니다.">정렬대상</div>
<div class="tableRight">
<select name="orderBy">
<option value="no">등록번호</option>
<option value="count">중복횟수</option>
<option value="id">게시판ID</option>
<option value="tag">태그</option>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="정렬할 때 역순으로 할 것인지, 순차적으로 할 것인지 정합니다.">정렬방법</div>
<div class="tableRight">
<select name="desc">
<option value="desc">역순정렬 (기본)</option>
<option value="asc">순차정렬</option>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="여기 지정된 ID의 게시판들 목록만 가져옵니다.">특정 게시판 지정</div>
<div class="tableRight">
<input type="text" name="boardList" class="input" value="" /> (지정예: freeboard<span style="color: blue">|</span>qna<span style="color: blue">|</span>notice<span style="color: blue">|</span>gallery)
<div><br /><strong>※ 참고: 지정 가능한 게시판 ID들</strong> (비워둘 시 전체 게시판에서 추출, | <span style="color: #aaa">(Shift + ₩)</span> 로 구분합니다.)<br /><br />
<?php
$boardList = '';
$loop = 1;
$getBList = $GR->query('select id from '.$dbFIX.'board_list');
while($bbs = $GR->fetch($getBList)) {
$boardList .= '|'.$bbs['id'];
if($loop % 5 == 0) $boardList .= '<br />';
$loop++;
}
echo substr($boardList, 1, strlen($boardList));
?></div>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="submitBox">
<input type="submit" value="코드 생성" title="태그구름 코드를 생성 합니다." />
</div>
</div>
<div id="latestTagPreviewCode" class="codePreview">코드생성 을 클릭하시면 생성 됩니다.</div>
</div><!--# 태그구름 생성 -->
</form>
<div class="vSpace"></div>
<!-- 현재 접속자 생성 -->
<form id="nowConnect" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div class="mvBack" id="admTagCode">
<div class="mv">현재 접속자 생성</div>
<div class="tableListLine">
<div class="tableLeft" title="사용할 현재 접속자 테마를 선택합니다.">테마선택</div>
<div class="tableRight">
<select name="nowConnectTheme">
<?php
$pollDir = @opendir('./latest/');
while($polls = @readdir($pollDir)) { if($polls == '.' || $polls == '..') continue; ?>
<option value="<?php echo $polls; ?>"><?php echo $polls; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="최대 몇 명까지 보여줄 것인지 정합니다. 10~20 사이가 좋습니다.">출력 목록수</div>
<div class="tableRight">
<input type="text" name="latestNowConnectNum" class="input" value="20" />
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="현재 접속자 테마 상단의 타이틀을 정합니다. 테마에 따라, 테마 내 지정된 그림으로 고정되는 경우도 있습니다.">현재 접속자 제목</div>
<div class="tableRight">
<input type="text" name="latestNowConnectSubject" class="input" value="현재 접속자 목록" />
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="정렬할 때 어떤 대상을 기준으로 할 것인지 지정합니다.">정렬대상</div>
<div class="tableRight">
<select name="orderBy">
<option value="lastlogin">마지막 로그인 시간</option>
<option value="no">멤버 고유번호</option>
<option value="nickname">닉네임</option>
<option value="realname">본명</option>
<option value="point">포인트</option>
<option value="level">레벨</option>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="tableLeft" title="정렬할 때 역순으로 할 것인지, 순차적으로 할 것인지 정합니다.">정렬방법</div>
<div class="tableRight">
<select name="desc">
<option value="desc">역순정렬 (기본)</option>
<option value="asc">순차정렬</option>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tableListLine">
<div class="submitBox">
<input type="submit" value="코드 생성" title="현재 접속자 코드를 생성 합니다." />
</div>
</div>
<div id="latestNowConnectPreviewCode" class="codePreview">코드생성 을 클릭하시면 생성 됩니다.</div>
</div><!--# 현재 접속자 생성 -->
</form>
</div><!--# 우측 몸통 부분 -->
<div class="clear"></div>
</div><!--# 폭 설정 -->
</div><!--# 가운데 정렬 -->
<script type="text/javascript">//<![CDATA[
var GRBOARD = '<?php echo $codeGrboard; ?>';
//]]></script>
<script src="js/jquery.js"></script>
<script src="admin/admin_code.js"></script>
</body>
</html>