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

    
$adm_info admin_member_info();
    if(!(
$adm_info['admin_id']=='csh' || $adm_info['admin_id']=='osm' || $adm_info['admin_id']=='psw' || $adm_info['admin_id']=='mijin' || $adm_info['admin_id']=='hjw' || $adm_info['admin_id']=='gyu')){
        echo 
"<script>alert('Á¢±ÙÇϽǠ±ÇÇÑÀÌ ¾ø½À´Ï´Ù.'); window.history.go(-1);</script>"; exit;
    }
?>


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

<script>
function FrmCh(){

    if( develFrm.admin_id.value == ''){
        alert("¾ÆÀ̵𸦠ÀÔ·ÂÇϼ¼¿ä.");
        develFrm.admin_id.focus();
        return;
    }
    
    if( develFrm.admin_passwd.value == '' || develFrm.admin_passwd2.value == ''){
        alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.");
        develFrm.admin_passwd.focus();
        return;
    }

    if( develFrm.admin_passwd.value != develFrm.admin_passwd2.value){
        alert("ºñ¹Ð¹øÈ£¿Í ºñ¹Ð¹øÈ£È®ÀÎÀ̠Ʋ¸³´Ï´Ù.");
        develFrm.admin_passwd.focus();
        return;
    }
    
    if( develFrm.admin_name.value == ''){
        alert("°ü¸®ÀÚ¸íÀ» ÀÔ·ÂÇϼ¼¿ä.");
        develFrm.admin_name.focus();
        return;
    }
    
    
    if( confirm("À§ ³»¿ëÀ¸·Î ÀÔ·ÂÇϽðڽÀ´Ï±î?") ){
        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 GoNewPage(){ //½Å±Ô ¼º
    location.href = "./develWrite.php";
}

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

}
</script>

<body>
    <form name="develFrm" id="develFrm" method="post" action="adminBoardProcess.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="admin_id"  size="10" value='<?=$row['admin_id']?>'> </td>
                        </tr>
                        <tr>
                            <th>ºñ¹Ð¹øÈ£</th>
                            <td><INPUT TYPE="password" NAME="admin_passwd"  size="20" value=''></td>
                        </tr>
                        <tr>
                            <th>ºñ¹Ð¹øÈ£ È®ÀÎ</th>
                            <td><INPUT TYPE="password" NAME="admin_passwd2"  size="20" value=''></td>
                        </tr>
                        <tr>
                            <th>°ü¸®ÀÚ¸í</th>
                            <td><INPUT TYPE="text" NAME="admin_name"  size="20" value='<?=$row['admin_id']?>'></td>            
                        </tr>
                        <tr>
                            <th>¼Ò¼ÓºÎ¼­</th>
                            <td>
                                <INPUT TYPE="text" NAME="admin_team"  size="20" value='<?=$row['admin_team']?>'>
                            </td>            
                        </tr>
                        <tr>
                            <th>°³ÀÎÁ¤º¸Ãë±Þ±ÇÇÑ</th>
                            <td><input type='radio' name='psn_auth' value='1' <?if($row['psn_auth']=='1'){ echo "checked"; }?>> ºÎ¿© <input type='radio' name='psn_auth' value='0' <?if($row['psn_auth']=='0' || $row['psn_auth']==''){ echo "checked"; }?>> ¸»¼Ò</td>            
                        </tr>
                        <tr>
                            <th class="last">¼¼ºÎ±ÇÇÑ</th>
                            <td class="last" colspan="3">
                                <input type='checkbox' name='psn_r' value='1' <?if(substr($row['psn_rwed'],0,1)=='1'){ echo "checked"; }?>> Àбâ &nbsp;
                                <input type='checkbox' name='psn_w' value='1' <?if(substr($row['psn_rwed'],1,1)=='1'){ echo "checked"; }?>> Ãß°¡ &nbsp;
                                <input type='checkbox' name='psn_e' value='1' <?if(substr($row['psn_rwed'],2,1)=='1'){ echo "checked"; }?>> ¼öÁ¤ &nbsp;
                                <input type='checkbox' name='psn_d' value='1' <?if(substr($row['psn_rwed'],3,1)=='1'){ echo "checked"; }?>> »èÁ¦ &nbsp;
                            </td>            
                        </tr>
                        <tr>
                            <th>¿ÜºÎIP Á¢¼Ó±ÇÇÑ</th>
                            <td><input type='radio' name='ext_ip' value='1' <?if($row['ext_ip']=='1'){ echo "checked"; }?>> ºÎ¿© <input type='radio' name='ext_ip' value='0' <?if($row['ext_ip']=='0' || $row['ext_ip']==''){ echo "checked"; }?>> Â÷´Ü</td>            
                        </tr>
                    </table><!--//editTable-->
                    </div><!-- //editWarp -->

                    <div class="btn4Warp">
                        <input type="button" value="ÀúÀå" Onclick="javascript:FrmCh();">
                        <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>