/home/mjc1/public_html/manage/eventWrite.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
<?
@session_start();
include(
"./include/admin_include_header.php");

$sql =" select category_code,category_name from cate3 where category_code < 101 order by category_code ";
$res mysql_query($sql);
while(
$info mysql_fetch_array($res)){
    
$ev_prod_array[] = $info;
}

$sql "select * from admin where 1=1 and admin_team like '°í°´Áö¿ø%'order by admin_name ";
$res =    mysql_query($sql);
while(
$info     =  mysql_fetch_array($res)){
    
$admin_array[] = $info;
}
?>


<script language="JavaScript"> 
<!-- 
// ÀÚ¹Ù½ºÅ©¸³Æ® ÇÔ¼öÀÇ ¿À·ù¸¦ ±×³É ³Ñ¾î°¡´Â ÇÔ¼ö
function blockError(){return true;} 
    window.onerror = blockError; 
//--> 
</script> 

<script>
function FrmCh(){


    if( confirm("À§ ³»¿ëÀ¸·Î ÀÔ·ÂÇϽðڽÀ´Ï±î?") ){
        document.getElementById("develFrm").target="hidden_frame_mijin";      
        develFrm.submit(); 
    }


function movetab(tab) { //°¢ ÀԷ¹ڽº¿¡¼­ ¿£Å͸¦ ´©¸£¸é ´ÙÀ½ ÅÇÀ¸·Î À̵¿

    if (tab == 1) {
        develFrm.devel_mon.focus();
    } else if (tab == 2) {
        develFrm.devel_day.focus();
    } else if (tab == 3) {
        develFrm.compname.focus();
    } else if (tab == 4) {
        develFrm.gubun.focus();
    } else if (tab == 5) {
        develFrm.subject.focus();
    } else if (tab == 6) {
        develFrm.savebtn.focus();
    }

}

function setonfocus(){ //ÆûÀÌ ·ÎµåµÇ¸é °³¹ßÀÏÀÚ ¿¬µµ·Î Æ÷Ä¿½º ÀÚµ¿ À̵¿
    develFrm.devel_year.focus();
}    

function GoNewPage(){ //½Å±Ô ¼º
    location.href = "./develWrite.php";
}

function GoNewPage1(){ //¸ñ·ÏÀ¸·Î ¹Ù·Î°¡±â
    location.href = "./develBoard.php?menu=5&sub=5";

}
</script>

<body onload='javascript:setonfocus()'>
    <form name="develFrm" id="develFrm" method="post" action="eventBoardProcess.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>
                        </colgroup>
                        <tr>
                            <th>»óÈ£¸í</th>
                            <td><INPUT TYPE="text" NAME="name"  size="10" value='' maxlength="30" class="title"></td>
                        </tr>
                        <tr>
                            <th>ȸ¿ø¾ÆÀ̵ð</th>
                            <td><INPUT TYPE="text" NAME="Mid"  size='10' value='' maxlength="100" class="title"></td>            
                        </tr>
                        <tr>
                            <th>¿¬¶ôó</th>
                            <td><INPUT TYPE="text" NAME="hp"  size="10" value='' maxlength="30" class="title"></td>            
                        </tr>
                        <tr>
                            <th>³»¿ë</th>
                            <td><textarea name="content" rows="16" cols="80"></textarea></td>            
                        </tr>
                        
<?php
    
/*include("./category/mscommon.php");
    $sql = "select * from app where app_active = 1 order by app_name";
    $res = mysql_query($sql);
    while($info= mysql_fetch_array($res)){
        $app_array[] = $info;
    }*/
?>
                        <tr>
                            <th class="last">»ó´ãÁ¦Ç°</th>
                            <td class="last" colspan="3">
                                <select name="app_id" size="1" style='width:200px;'>
<?php
    
foreach($ev_prod_array as $key=>$val){
        
$category_nameArr  explode"->"$val['category_name'] );
        echo 
"<option value='{$val['category_code']}'>{$category_nameArr[1]} ({$val['category_code']})</option>";
    }
?>
                                </select></td>            
                        </tr>
                        <tr>
                            <th class="last">»óÅÂ</th>
                            <td class="last" colspan="3">
                                <select name="status" size="1">
<?php
    
// $event_status º¯¼ö´Â admin_include_header.php¿¡ ÀÖÀ½
    
foreach($event_status as $key=>$val){
        if(
$key==$row['status']){
            
$selected " selected";
        } else {
            
$selected "";
        }
        echo 
"<option value='$key$selected>$val</option>";
    }
?>
                                </select></td>            
                        </tr>
                        <tr>
                            <th class="last">´ã´çÀÚ</th>
                            <td class="last" colspan="3">
                                <select name='admin_name'>
                                    <option value=''>==¼±ÅÃ==</option>
<?php
    
foreach($admin_array as $key=>$info){
?>
                                    <option value='<?php echo $info['admin_name'];?><?php if($info['admin_name']==$row['smoption']){?>selected<?php }?>><?php echo $info['admin_name'];?><??>
<?php
    
}
?>
                                </select>
                            </td>            
                        </tr>
                    </table><!--//editTable-->
                    </div><!-- //editWarp -->

                    <div class="btn4Warp">
                        <input type="button" value="ÀúÀå" Onclick="javascript:FrmCh();">
                        <!--<input type="reset" value="Ãë¼Ò" class="ml10">
                        <input type="button" value="½Å±ÔÀÛ¼º" Onclick="GoNewPage()" class="new ml10">-->
                        <input type="button" value="¸ñ·Ïº¸±â" Onclick="GoNewPage1()" class="ml10">
                    </div><!-- //btn4Warp -->
                    
                </div><!-- //editSection -->
            </div><!-- //border_contents -->
        </div><!-- //container -->
    </form>
    
    <iframe id='hidden_frame_mijin' name='hidden_frame_mijin' style="display:none;"></iframe>
    
</body>