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
|
<?php include("./_common.php"); header("Content-type:text/html;charset=utf-8");
$prog_list[] = '공통'; $prog_list[] = '천년경영3CS'; $prog_list[] = '천년경영3'; $prog_list[] = '천년경영2CS'; $prog_list[] = '천년경영2'; $prog_list[] = '제조경영';
$sql = "set names utf8"; mysql_query($sql,$connect_web);
$table = "mBoard_guide";
$comp_name = array_utf8($comp_name);
if($code!=''){ $sql = "select * from {$table} a where idx = '{$code}' "; $res = mysql_query($sql,$connect_web); $cinfo = mysql_fetch_array($res); $cinfo['add_file_kr'] = iconv("utf-8","euckr",$cinfo['add_file']); } else { $sql = "select admin_name from admin where admin_id = '{$_SESSION['ADMINID']}' "; $res = mysql_query($sql,$connect_web); $ainfo = mysql_fetch_array($res);
$cinfo['mName'] = $ainfo['admin_name']; }
?> <script src='../manage/js/ckeditor/ckeditor.js'></script> <form name='company_reg_form' id='company_reg_form' method='post' action='m_guide_process.php' enctype='multipart/form-data'> <input type='hidden' name='qstr' value='<?php echo $qstr;?>'> <input type='hidden' name='code' value='<?php echo $cinfo['idx'];?>'>
<div class='cust_modal1' style='width:970px;'> <h4>기본정보</h4> <table class="order-sheet table-top-border"> <caption class="screen_out">기본정보</caption> <colgroup> <col style="width:100px;"><col style="width:330px;"> <col style="width:100px;"><col style="width:330px;"> </colgroup>
<tbody> <tr> <th>작성자</th> <td> <input type='text' name='mName' class='width_80' value='<?php echo $cinfo['mName'];?>'> </td> <th>프로그램명</th> <td> <select name='subject'> <?php foreach($prog_list as $key=>$val){ echo "<option value='$val'>$val</option>"; } ?> </select> </td> </tr> <tr> <th>메뉴위치</th> <td colspan=3> <input type='text' name='pos' class='width_150' value='<?php echo $cinfo['pos'];?>'> </td> </tr> <tr> <th>제목</th> <td colspan=3><input type='text' name='title' id='subject' class='width_500' value='<?php echo $cinfo['title'];?>'></td> </tr> <tr> <th>내용<!--<br />(태그사용 <span class="red">가능</span>)-->s</th> <td colspan=3> <TEXTAREA NAME="content" id='content' style='width:500px;height:300px;'><?php echo stripslashes($cinfo['content']);?></TEXTAREA> 이미지 업로드는 에디터 메뉴중 깃발 우측의 산+해모양 버튼을 누르고 업로드->파일선택버튼->이미지파일선택->서버로전송버튼 누른후 확인을 누르면 됩니다. </td> </tr> <?php if($code!=''){ ?> <tr> <th>뷰URL</th> <td colspan=3> <input type='' value='<?php echo "http://mjsoft.co/manage/guide_view.php?code=$code";?>' size=100 onclick='this.select()'> <br><span onclick="view_open('<?php echo $code;?>');" style='cursor:pointer;' >[확인/미리보기]</span> </td> </tr> <?php }?> </table> </div> </form> <script> function view_open($code){ window.open("http://mjsoft.co/manage/guide_view.php?code="+$code,"view_win","width=780,height=480,scrollbars=yes"); } $(function(){ CKEDITOR.replace( 'content', { height: 350 } );
$(".colorBox input").click(function(){ var val1 = $("#subject").val(); var val2 = val1+"<font color="+$(this).val()+"></font>"; $("#subject").val(val2); }); }); </script>
|