경로 수정 작업 중
This commit is contained in:
@ -1,82 +1,80 @@
|
||||
<?
|
||||
$sub_menu = "200300";
|
||||
include_once("./_common.php");
|
||||
|
||||
auth_check($auth[$sub_menu], "r");
|
||||
|
||||
$token = get_token();
|
||||
|
||||
$html_title = "회원메일";
|
||||
|
||||
if ($w == "u") {
|
||||
$html_title .= "수정";
|
||||
$readonly = " readonly";
|
||||
|
||||
$sql = " select * from $g4[mail_table] where ma_id = '$ma_id' ";
|
||||
$ma = sql_fetch($sql);
|
||||
if (!$ma[ma_id])
|
||||
alert("등록된 자료가 없습니다.");
|
||||
} else {
|
||||
$html_title .= "입력";
|
||||
}
|
||||
|
||||
$g4[title] = $html_title;
|
||||
include_once("./admin.head.php");
|
||||
?>
|
||||
|
||||
<form name=fmailform method=post action="./mail_update.php" onsubmit="return fmailform_check(this);">
|
||||
<input type=hidden name=w value='<?=$w?>'>
|
||||
<input type=hidden name=ma_id value='<?=$ma[ma_id]?>'>
|
||||
<input type=hidden name=token value='<?=$token?>'>
|
||||
<table cellpadding=0 cellspacing=0 width=100%>
|
||||
<colgroup width=20% class='col1 pad1 bold right'>
|
||||
<colgroup width=80% class='col2 pad2'>
|
||||
<tr>
|
||||
<td colspan=2 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> <?=$html_title?></td>
|
||||
</tr>
|
||||
<tr><td colspan=2 class='line1'></td></tr>
|
||||
<tr class='ht'>
|
||||
<td>메일 제목</td>
|
||||
<td><input type=text class='ed w99' name=ma_subject value='<?=$ma[ma_subject]?>' required itemname='메일 제목'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>메일 내용</td>
|
||||
<td class=lh>
|
||||
<?=textarea_size("ma_content")?>
|
||||
<textarea id=ma_content name=ma_content rows=20 class='ed w99' required itemname='메일 내용'><?=$ma[ma_content]?></textarea>
|
||||
<br>{이름} , {별명} , {회원아이디} , {이메일} , {생일}
|
||||
<br>위와 같이 HTML 코드에 삽입하면 해당 내용에 맞게 변환하여 메일 발송합니다.
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 class='line1'></td></tr>
|
||||
</table>
|
||||
|
||||
<p align=center>
|
||||
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function fmailform_check(f)
|
||||
{
|
||||
errmsg = "";
|
||||
errfld = "";
|
||||
|
||||
check_field(f.ma_subject, "제목을 입력하세요.");
|
||||
check_field(f.ma_content, "내용을 입력하세요.");
|
||||
|
||||
if (errmsg != "") {
|
||||
alert(errmsg);
|
||||
errfld.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
document.fmailform.ma_subject.focus();
|
||||
</script>
|
||||
|
||||
<?
|
||||
include_once("./admin.tail.php");
|
||||
?>
|
||||
<?
|
||||
$sub_menu = "200300";
|
||||
include_once('./_common.php');
|
||||
include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$token = get_token();
|
||||
|
||||
$html_title = '회원메일';
|
||||
|
||||
if ($w == 'u') {
|
||||
$html_title .= '수정';
|
||||
$readonly = ' readonly';
|
||||
|
||||
$sql = " select * from {$g4['mail_table']} where ma_id = '{$ma_id}' ";
|
||||
$ma = sql_fetch($sql);
|
||||
if (!$ma['ma_id'])
|
||||
alert('등록된 자료가 없습니다.');
|
||||
} else {
|
||||
$html_title .= '입력';
|
||||
}
|
||||
|
||||
$g4['title'] = $html_title;
|
||||
include_once('./admin.head.php');
|
||||
?>
|
||||
|
||||
<div class="cbox">
|
||||
<p>메일 내용에 {이름} , {별명} , {회원아이디} , {이메일} 처럼 내용에 삽입하면 해당 내용에 맞게 변환하여 메일을 발송합니다.</p>
|
||||
|
||||
<form name="fmailform" id="fmailform" action="./mail_update.php" onsubmit="return fmailform_check(this);" method="post">
|
||||
<input type="hidden" name="w" value="<?=$w?>" id="w">
|
||||
<input type="hidden" name="ma_id" value="<?=$ma['ma_id']?>" id="ma_id">
|
||||
<input type="hidden" name="token" value="<?=$token?>" id="token">
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col class="grid_15">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="ma_subject">메일 제목<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="ma_subject" value="<?=$ma['ma_subject']?>" id="ma_subject" required class="required frm_input" size="100"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="ma_content">메일 내용<strong class="sound_only">필수</strong></label></th>
|
||||
<td><?=editor_html("ma_content", $ma['ma_content'], '400');?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" class="btn_submit" accesskey="s" value="확인">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function fmailform_check(f)
|
||||
{
|
||||
errmsg = "";
|
||||
errfld = "";
|
||||
|
||||
check_field(f.ma_subject, "제목을 입력하세요.");
|
||||
check_field(f.ma_content, "내용을 입력하세요.");
|
||||
|
||||
if (errmsg != "") {
|
||||
alert(errmsg);
|
||||
errfld.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
document.fmailform.ma_subject.focus();
|
||||
</script>
|
||||
|
||||
<?
|
||||
include_once('./admin.tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user