westdc-zf1/application/admin/views/scripts/sys/emailtexttest.phtml

63 lines
3.0 KiB
PHTML

<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
?>
<div class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('sys/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<?php if ($this->msg or $this->messages) :?>
<div class="box box-info">
<?php if ($this->msg) : ?>
<?php echo $this->msg; ?>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<?php echo $msg; ?>
<?php endforeach;endif; ?>
<script language="javascript">
setTimeout('$(".box-info").remove()',5000);
</script>
</div>
<?php endif; ?>
<h4>邮件发送测试</h4>
<hr />
<form name="form" method="post" action="/admin/sys/emailtext/" class="form-horizontal">
<input type="hidden" name="ac" value="test" />
<input type="hidden" name="submit" value="1" />
<input type="hidden" name="id" value="<?php echo $this->info['id'];?>" />
<div class="form-group">
<label class="col-md-2 col-sm-2 col-xs-3 control-label" for="email">测试的收信地址</label>
<div class="col-md-4 col-sm-8 col-xs-8">
<input type="text" id="email" class="form-control" value="" name="email"/>
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 col-xs-3 control-label" for="subject">邮件主题</label>
<div class="col-md-4 col-sm-8 col-xs-8">
<input type="text" id="subject" class="form-control" value="<?php echo $this->info['subject'];?>" name="subject"/>
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 col-xs-3 control-label" for="user">收信用户名</label>
<div class="col-md-4 col-sm-8 col-xs-8">
<input type="text" id="user" class="form-control" value="张三" name="user"/>
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 col-xs-3 control-label" for="body">模板内容</label>
<div class="col-md-8 col-sm-8 col-xs-8">
<textarea id="body" class="form-control" rows="15" name="body"><?php echo $this->info['body'];?></textarea>
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 col-xs-3 control-label" for="body"></label>
<div class="col-md-4 col-sm-8 col-xs-8">
<input type="submit" id="submit" class="btn btn-primary" value="提交"/>
<input type="reset" class="btn btn-denger" value="重置"/>
</div>
</div>
</form>
</div>
</div>