Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
8
views/formmail/basic/css/style.css
Normal file
8
views/formmail/basic/css/style.css
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
formmail skin css
|
||||
*/
|
||||
|
||||
.formmail li {display: block;margin: 0px; clear: both; margin-bottom: 15px;}
|
||||
.formmail li>span {float: left;width: 25%;text-align: right;padding-right: 20px;margin-top: 5px;color: #000;font-weight: bold;}
|
||||
.formmail .input {width:400px;}
|
||||
.formmail textarea {height:300px;}
|
||||
40
views/formmail/basic/formmail.php
Normal file
40
views/formmail/basic/formmail.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
|
||||
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title"><?php echo element('mem_nickname', element('member', $view)); ?> 님께 이메일 전송</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="mt20 formmail">
|
||||
<?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);
|
||||
?>
|
||||
<ol>
|
||||
<li>
|
||||
<span>제목</span>
|
||||
<input type="text" class="input" name="title" id="title" value="<?php echo set_value('title'); ?>" placeholder="제목을 입력해주세요" />
|
||||
</li>
|
||||
<li>
|
||||
<?php echo display_dhtml_editor('content', set_value('content'), $classname = 'dhtmleditor', $is_dhtml_editor = element('use_dhtml', $view), $editor_type = $this->cbconfig->item('formmail_editor_type')); ?>
|
||||
</li>
|
||||
</ol>
|
||||
<div class="pull-right">
|
||||
<button type="submit" class="btn btn-success">보내기</button>
|
||||
</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>
|
||||
43
views/formmail/bootstrap/formmail.php
Normal file
43
views/formmail/bootstrap/formmail.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<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>
|
||||
9
views/formmail/mobile/css/style.css
Normal file
9
views/formmail/mobile/css/style.css
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
formmail skin css
|
||||
*/
|
||||
|
||||
.formmail li {display: block;margin: 0px; clear: both; margin-bottom: 15px;}
|
||||
.formmail li>span {float: left;width: 25%;text-align: right;padding-right: 20px;margin-top: 5px;color: #000;font-weight: bold;}
|
||||
.formmail .input {width:90%;}
|
||||
.formmail textarea {height:300px;}
|
||||
.formmailcontent {overflow-x:auto;}
|
||||
40
views/formmail/mobile/formmail.php
Normal file
40
views/formmail/mobile/formmail.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
|
||||
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title"><?php echo element('mem_nickname', element('member', $view)); ?> 님께 이메일 전송</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="mt20 formmail">
|
||||
<?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);
|
||||
?>
|
||||
<ol>
|
||||
<li>
|
||||
<span>제목</span>
|
||||
<input type="text" class="input" name="title" id="title" value="<?php echo set_value('title'); ?>" placeholder="제목을 입력해주세요" />
|
||||
</li>
|
||||
<li class="formmailcontent">
|
||||
<?php echo display_dhtml_editor('content', set_value('content'), $classname = 'dhtmleditor', $is_dhtml_editor = element('use_dhtml', $view), $editor_type = $this->cbconfig->item('formmail_editor_type')); ?>
|
||||
</li>
|
||||
</ol>
|
||||
<div class="pull-right">
|
||||
<button type="submit" class="btn btn-success">보내기</button>
|
||||
</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>
|
||||
Reference in New Issue
Block a user