init
This commit is contained in:
166
app/admin/view/msgform/edit.html
Executable file
166
app/admin/view/msgform/edit.html
Executable file
@@ -0,0 +1,166 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
编辑反馈
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<?php echo url('/admin/index/index');?>"><i class="fa fa-dashboard"></i> 首页</a></li>
|
||||
<li><a href="<?php echo url('/admin/msgform/lists');?>"> 反馈列表</a></li>
|
||||
<li class="active"> 反馈</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#tabfirst">编辑反馈</a>
|
||||
</li>
|
||||
<li class="pull-right"><a href="" class="text-muted"><i class="fa fa-refresh"></i></a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<!-- /.tab-pane -->
|
||||
<div class="tab-pane active" id="tabfirst">
|
||||
<form class="form-horizontal" action="<?php echo url('/admin/msgform/update');?>" method="post">
|
||||
<div class="form-group">
|
||||
<label for="checked" class="col-sm-2 control-label">状态</label>
|
||||
<div class="col-sm-5">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="display" value="1" <?php if($msgform['display']):?>checked=""<?php endif;?>> 已审核
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="display" value="0" <?php if(!$msgform['display']):?>checked=""<?php endif;?>> 未审核
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<span class="help-block">(状态)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="feedback_type" class="col-sm-2 control-label">反馈类型</label>
|
||||
<div class="col-sm-5">
|
||||
<select class="form-control" name="feedback_type" id="feedback_type">
|
||||
<?php foreach($feedback_type as $ka=>$val):?>
|
||||
<?php if($msgform['feedback_type']==$val):?>
|
||||
<option value="<?php echo $val;?>" selected=""><?php echo $val;?></option>
|
||||
<?php else:?>
|
||||
<option value="<?php echo $val;?>"><?php echo $val;?></option>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<span class="help-block">(反馈类型)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">称呼</label>
|
||||
<div class="col-sm-5">
|
||||
<input type="text" class="form-control" name="name" value="<?php echo $msgform['name'];?>">
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<span class="help-block">(称呼)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="subject" class="col-sm-2 control-label">反馈主题</label>
|
||||
<div class="col-sm-5">
|
||||
<input type="text" class="form-control" name="subject" value="<?php echo $msgform['subject'];?>">
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<span class="help-block">(反馈主题)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="content" class="col-sm-2 control-label">反馈内容</label>
|
||||
<div class="col-sm-5">
|
||||
<textarea class="form-control" name="content"><?php echo $msgform['content'];?></textarea>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<span class="help-block">(反馈内容)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="way" class="col-sm-2 control-label">联系方法</label>
|
||||
<div class="col-sm-5">
|
||||
<select class="form-control" name="way" id="byway">
|
||||
<option value="E-MAIL" selected="">E-MAIL</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<span class="help-block">(联系方法)</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="contact" class="col-sm-2 control-label">联系方式</label>
|
||||
<div class="col-sm-5">
|
||||
<input type="text" class="form-control" name="contact" value="<?php echo $msgform['contact'];?>">
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<span class="help-block">(联系方式)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="addtime" class="col-sm-2 control-label">反馈时间</label>
|
||||
<div class="col-sm-5">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="addtime" value="<?php echo $msgform['addtime'];?>" id="laydate_addtime" onclick="laydate_datetime('#laydate_addtime')" readonly>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-primary" type="button" onclick="laydate_datetime('#laydate_addtime')">选择时间</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<span class="help-block">(反馈时间)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id" value="<?php echo $msgform['id'];?>">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="reset" class="btn btn-warning">重置</button>
|
||||
<button type="submit" class="btn btn-danger">提交</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
</div>
|
||||
<!-- /.tab-content -->
|
||||
</div>
|
||||
<!-- /.nav-tabs-custom -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$("form.form-horizontal").submit(function(e) {
|
||||
var nameObj = document.getElementById('name');
|
||||
if (isNull(nameObj.value)) {
|
||||
alert('名称必须填写');
|
||||
nameObj.focus();
|
||||
return false;
|
||||
}
|
||||
// var agree = $("input[name='agree']", this).prop('checked');
|
||||
// if (agree) {
|
||||
// //alert("Submitted");
|
||||
// //e.preventDefault();
|
||||
// } else {
|
||||
// e.preventDefault();
|
||||
// alert("请勾选确认");
|
||||
// }
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user