/home/mjc1/public_html/manage/bugVersionWrite.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
<?
@session_start();
//error_reporting(E_ALL);
//ini_set("display_errors", 1);
/* jyh µð¹ö±ë ÇÔ¼ö */
function prt($data=null$size=0) {
    
//if (!isdev()) return;
    
ob_start();
    
print_r($data);
    
$content_text ob_get_contents();
    
ob_end_clean();
    
$content_list explode("\n"$content_text);
    
$rows count($content_list);
    
$cols 0;
    foreach (
$content_list as $line) {
        if ((
$col mb_strlen($line)) > $cols) {
            
$cols $col;
            if (
$cols 128$rows++;
        }
    }
    
$rows += 2;
    
$cols += 2;
    if (!
headers_sent()) {
        
header('Content-type: text/html; charset=euc-kr');
    }
    echo 
'<textarea cols="' $cols '" rows="' $rows '"';
    echo 
' style="display:block; margin:0; padding:5px; border:1px solid #999;';
    if (
$size) echo ' width:' $size 'px;';
    echo 
' font-family:Hwsr_9pt, Gulimche; font-size:9pt;">';
    echo 
$content_text;
    echo 
'</textarea>';
}


    
//include("memberManage.php");
    
include("./include/admin_include_header.php");
    include(
"category/opcommon.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="bugVersionProcess.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='<?=$_SESSION['ADMINID']?>' readonly="readonly"></td>
                            <th class="leftLine">Â÷´Ü¿©ºÎ</th>
                            <td>
                                <select name="disuse" id="disuse">
                                    <option value="1">Â÷´Ü</option>
                                    <option value="0">¹ÌÂ÷´Ü</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>Á¦Ç°¸í</th>
                            <td colspan="3">
                                <select name="sitetype" id="sitetype">
<?
    
// codes Á¤¸®
    
$code_sql "SELECT cde, cde_nm FROM codes WHERE cde IN('001', '002', '003', '011', '012', '030', '031', '052', '053', '081', '082', '083', '084', '085', '090') ORDER BY cde_nm ASC";
    
$result mysql_query($code_sql) or die(mysql_error());
    
$code_name = array();
    
$code_info = array();
        while(
$row mysql_fetch_array($result)){
?>
                                    <option value="<?=$row['cde']?>"><?=$row['cde_nm']?></option>                    
<? ?>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>¹öÀü</th>
                            <td colspan="3"><INPUT TYPE="text" NAME="subject" id="subject" size='50' value=''></td>
                        </tr>
                        <tr>
                            <th>¹ö±× ³»¿ë</th>
                            <td colspan="3"><textarea name="content" rows="23" cols="80"></textarea></td>
                        </tr>
                    </table><!--//editTable-->
                    </div><!-- //editWarp -->

                    <div class="btn3Warp">
                        <input type="button" value="ÀúÀå" Onclick="FrmCh();"><input type="reset" value="Ãë¼Ò" class="ml10"><input type="button" value="¸ñ·Ï" onclick="history.go(-1);" class="ml10">
                    </div><!-- //btn2Warp -->
                    
                    <iframe id='hidden_frame_mijin' name='hidden_frame_mijin' style="display:none;"></iframe>    
                    
                </div><!-- //editSection -->
            </div><!-- //border_contents -->
        </div><!-- //container -->
    </form>