/home/mjc1/public_html/manage/noticeWrite.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
<?
@session_start();

    
//include("category/common.php");
    //include("nomalBoardManage.php");
    
include("./include/admin_include_header.php");

?>
<script>
  
    function FrmCh(){
    
        if( noticeFrm.subject.value == ''){
            alert("±ÛÁ¦¸ñÀ» ÀÔ·ÂÇϼ¼¿ä");
            noticeFrm.subject.focus();
            return;
        }
        
        if( noticeFrm.content.value == ''){
            alert("±Û³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä");
            noticeFrm.content.focus();
            return;
        }
        
        if( confirm("À§ ³»¿ëÀ¸·Î ÀÔ·ÂÇϽðڽÀ´Ï±î?") ){
            document.getElementById("noticeFrm").target="hidden_frame_mijin";    
            noticeFrm.submit(); 
        }
    } 

    function titletext(color){
        subject = document.getElementById("subject");
        
        newsubject = "<font color="+color+">"+subject.value+"</font>";
        subject.value = newsubject;
    }
</script>

    <form name="noticeFrm" id="noticeFrm" method="post" action="noticeBoardProcess.php" enctype='multipart/form-data'>
    <input type=hidden name='mode' value='insert'>
        <div class="container">
            <div class="border_contents">
                <div class="editSection">
                    <h3>°øÁö»çÇ× ±Û¾²±â</h3>
                    
                    <div class="editWarp">
                    <table class="editTable">
                        <colgroup>
                            <col style="width:110px;"><col><col style="width:110px;"><col>
                        </colgroup>
                        <tr>
                            <th>ÀÛ¼ºÀÚ</th>
                            <td><INPUT TYPE="text" NAME="name" size='20' value='°ü¸®ÀÚ'></td>            
                            <th class="leftLine">Á¶È¸¼ö</th>
                            <td><INPUT TYPE="text" NAME="hit"  size='5'></td>
                        </tr>
                        <tr>
                            <th>»çÀÌÆ®</th>
                            <td colspan="3">
                                <select name="sitetype" id="sitetype">
                                    <option value="00">Àüü»çÀÌÆ®</option>
                                    <option value="01">õ³â°æ¿µ</option>
                                    <option value="02">ÀÌÁöºô</option>
                                    <option value="03">Ä«¸ÞÀÌÆ®</option>
                                    <option value="04">ÀÌÁöÆ÷½º</option>
                                    <option value="05">õ³â°æ¿µ3</option>
                                </select>
                                &nbsp; <input type='checkbox' name='temp' value='Y' <?php if($row['temp']=='Y'){?>checked<?php }?>> »çÀÌÆ® ¸®½ºÆ®¿¡¼­ ¼û±è(CS°øÁöµî¿¡¼­´Â º¸ÀÓ)
                            </td>
                        </tr>
                        <tr>
                            <th>Á¦¸ñ»ö»ó</th>
                            <td colspan="3" class="colorBox">
                                <input type="button" class="red" style="" onclick="titletext('#ff0000');">
                                <input type="button" class="orange" onclick="titletext('#fa5800');">
                                <input type="button" class="lightBlue" onclick="titletext('#00a8ff');">
                                <input type="button" class="blue" onclick="titletext('#0020c5');">
                            </td>    
                        </tr>
                        <tr>
                            <th>Á¦¸ñ</td>
                            <td colspan="3"><INPUT TYPE="text" NAME="subject" id="subject" size='50' value='' class="title"></td>            
                        </tr>
                        <tr>
                            <th>÷ºÎÆÄÀÏ</td>
                            <td colspan="3"><INPUT TYPE="FILE" NAME="add_file"  size='50'></td>            
                        </tr>
                        <tr>
                            <th class="last">³»¿ë<br />(ű׻ç¿ë <span class="red">°¡´É</span>)</th>
                            <td colspan="3" class="last"><TEXTAREA NAME="content" ROWS="15" COLS="80"></TEXTAREA></td>            
                        </tr>
                    </table><!--//editTable-->
                    </div><!-- //editWarp -->

                    <div class="btn2Warp">
                        <input type="button" value="ÀúÀå" Onclick="javascript:FrmCh();"><input type="button" value="¸ñ·Ïº¸±â" Onclick="javascript:history.back(-1);" class="ml10"><!--input type="reset" value="Ãë¼Ò" class="ml10"-->
                    </div><!-- //btn2Warp -->
                    
                </div><!-- //editSection -->
            </div><!-- //border_contents -->
        </div><!-- //container -->
    </form>

<?//print_r($_SESSION['ADMINID']);?>

<iframe id='hidden_frame_mijin' name='hidden_frame_mijin' style="display:none;"></iframe>

<style>
.editTable .colorBox input[type=button]{ width:20px; height:20px; cursor:pointer; }
.editTable .colorBox input[type=button].red{ border:1px solid #BC0303;
    background: #ff3019; /* Old browsers */
    background: -moz-linear-gradient(top,  #ff3019 0%, #cf0404 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff3019), color-stop(100%,#cf0404)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #ff3019 0%,#cf0404 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #ff3019 0%,#cf0404 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #ff3019 0%,#cf0404 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #ff3019 0%,#cf0404 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff3019', endColorstr='#cf0404',GradientType=0 ); /* IE6-9 */
}
.editTable .colorBox input[type=button].orange{ border:1px solid #BF4B03;
    background: #ff6d19; /* Old browsers */
    background: -moz-linear-gradient(top,  #ff6d19 0%, #d15c04 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff6d19), color-stop(100%,#d15c04)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #ff6d19 0%,#d15c04 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #ff6d19 0%,#d15c04 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #ff6d19 0%,#d15c04 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #ff6d19 0%,#d15c04 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff6d19', endColorstr='#d15c04',GradientType=0 ); /* IE6-9 */
}
.editTable .colorBox input[type=button].lightBlue{ border:1px solid #2571DB;
    background: #3697ed; /* Old browsers */
    background: -moz-linear-gradient(top,  #3697ed 0%, #3076dd 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3697ed), color-stop(100%,#3076dd)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #3697ed 0%,#3076dd 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #3697ed 0%,#3076dd 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #3697ed 0%,#3076dd 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #3697ed 0%,#3076dd 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3697ed', endColorstr='#3076dd',GradientType=0 ); /* IE6-9 */
}
.editTable .colorBox input[type=button].blue{  border:1px solid #0325BC;
    background: #304fff; /* Old browsers */
    background: -moz-linear-gradient(top,  #304fff 0%, #0423d3 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#304fff), color-stop(100%,#0423d3)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #304fff 0%,#0423d3 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #304fff 0%,#0423d3 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #304fff 0%,#0423d3 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #304fff 0%,#0423d3 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#304fff', endColorstr='#0423d3',GradientType=0 ); /* IE6-9 */
}
</style>