44 lines
1.8 KiB
PHP
44 lines
1.8 KiB
PHP
<div class="modal-header">
|
|
<h4 class="modal-title"><?php echo element('mem_nickname', element('member', $view)); ?> 님께 이메일 전송</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-horizontal mt20">
|
|
<?php
|
|
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
|
|
echo show_alert_message(element('message', $view), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >×</button>', '</div>');
|
|
$attributes = array('class' => 'form-horizontal', 'name' => 'fmail', 'id' => 'fmail');
|
|
echo form_open(current_full_url(), $attributes);
|
|
?>
|
|
<div class="form-group">
|
|
<label for="title" class="col-sm-2 control-label">제목</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" name="title" id="title" value="<?php echo set_value('title'); ?>" placeholder="제목을 입력해주세요" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="content" class="col-sm-2 control-label">내용</label>
|
|
<div class="col-sm-10">
|
|
<?php echo display_dhtml_editor('content', set_value('content'), $classname = 'form-control dhtmleditor', $is_dhtml_editor = element('use_dhtml', $view), $editor_type = $this->cbconfig->item('formmail_editor_type')); ?>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-sm-10 col-lg-offset-2">
|
|
<button type="submit" class="btn btn-success btn-sm">보내기</button>
|
|
</div>
|
|
</div>
|
|
<?php echo form_close(); ?>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(function() {
|
|
$('#fmail').validate({
|
|
rules: {
|
|
title : { required:true},
|
|
content : {<?php echo (element('use_dhtml', $view)) ? 'required_' . $this->cbconfig->item('formmail_editor_type') : 'required'; ?> : true }
|
|
}
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|