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
|
<?php $dir = "."; include_once($dir."/_common.php"); include('./include/header.php');
if($eid==''){ alert('e천년경영 로그인 후에 이용가능합니다.',"index.php"); exit; }
$taxno_exists = "N";
$amts = 0; $vats = 0; $tot_amts = 0; $qtys = 0;
$sql = "select * from user_config where menu_name = 'EmailOptionWindow' "; $res = mysql_query($sql,$connect_e1000y); while($minfo = mysql_fetch_array($res)){ if($minfo['config_key']=='메일서버정보_보내는사람주소'){ $uc_email = $minfo['config_val']; } if($minfo['config_key']=='메일서버정보_SMTP'){ $uc_smtp = $minfo['config_val']; } if($minfo['config_key']=='메일서버정보_포트번호'){ $uc_port = $minfo['config_val']; }
if($minfo['config_key']=='메일서버정보_사용자_ID'){ $uc_id = $minfo['config_val']; } if($minfo['config_key']=='메일서버정보_패스워드2'){ $uc_pw = $minfo['config_val']; $uc_pw = decrypt($uc_pw,"m.j.s.f.t"); } }
?> <style> .cust_modal2 { border:0px solid #e1e1e1; width:700px; padding:10px; font-size:13px } </style>
<div id="contents" style="height:2px;border-bottom:1px solid #eee;background:#2f6ba9"> <span class="screen_out">header 하단 선</span> </div>
<div id="wrap"> <div id="sub-title"> <h2>메일설정</h2> <div class="sub-location"> <a href="./index.php" class="home"><span class="screen_out">홈</span></a> <span class="location-gt"></span> <a>메일설정</a> <span class="location-gt"></span> <a>메일설정 관리</a> </div> </div>
<div class="item_tab"> <div class="item_tab_navi"> <a value='0'><span>사업장 정보</span></a> <a value='1' class="on"><span>메일설정</span></a> </div> </div><!--//item_tab--> <form name='email_form' id="email_form" method='post' action="email_reg_process.php" enctype="multipart/form-data">
<div class="sub-write-area" style='display:block;width:1200px;'> <h4 style='font-size:14px; font-weight:bold;margin-top:10px;'>이메일 정보</h4> <div class="order-sheet-area" style='width:1200px;'> <table class="order-sheet"> <caption class="screen_out">이메일 정보</caption> <colgroup> <col style="width:150px;"><col style="width:460px;"> <col style="width:150px;"><col style="width:460px;"> </colgroup>
<tbody> <tr> <th>보내는 메일 주소</th> <td class='linetxt' colspan=3><input type='text' name='uc_email' value='<?php echo $uc_email;?>' class='width_200'></td> </tr> <tr> <th>보내는 메일서버(smtp)</th> <td class='linetxt'> <select name='uc_smtp' class='width_200'> <option value='smtp.naver.com' <?php if($uc_smtp=='smtp.naver.com'){ echo "selected"; }?>>네이버 (smtp.naver.com)</option> <option value='smtp.daum.net' <?php if($uc_smtp=='smtp.daum.net'){ echo "selected"; }?>>다음 (smtp.daum.net)</option> <option value='smtp.gmail.com' <?php if($uc_smtp=='smtp.gmail.com'){ echo "selected"; }?>>지메일 (smtp.gmail.com)</option> </select> </td> <th >포트번호</th> <td class='linetxt'> <select name='uc_port' class='width_120'> <option value='465'>465 (SSL)</option> <option value='587'>587 (TLS)</option> </select> </td> </tr> <tr> <th>이메일 아이디</th> <td class='linetxt'> <input type='text' name='uc_id' value='<?php echo $uc_id;?>' class='width_200'> </td> <th >이메일 비밀번호</th> <td class='linetxt'> <input type='password' name='uc_pw' value='<?php echo $uc_pw;?>' class='width_200' style='border:1px solid #e0e0e0;height:24px;'> </td> </tr>
</table> </div> </div> </form> <div id="sub-contents-area" style='padding-left:560px;padding-top:20px;'> <div class="sub-btn-area"> <div class="sub-btn"> <a class="lignt-blue-btn" id='btn_office_save'>저장</a> </div> </div> </div> </div> <script> $(function(){
$(".item_tab_navi a").click(function(){ //네비게이션 탭 처리 v = $(this).attr("value"); if(v==0){ document.location.href="./office.php"; } else if(v==1){ document.location.href="./email.php"; } });
$("#btn_office_save").click(function(){ $("#email_form").submit(); });
}); </script> <?php include('./include/footer.php'); ?>
|