54 lines
2.0 KiB
PHTML
54 lines
2.0 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('后台管理');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
?>
|
|
<div id="leftPanel">
|
|
<?= $this->partial('sys/left.phtml'); ?>
|
|
</div>
|
|
|
|
<div id="rightPanel">
|
|
|
|
<?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; ?>
|
|
|
|
<h3>邮件发送测试</h3>
|
|
<form name="form" method="post" action="/admin/sys/emailtext/">
|
|
<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'];?>" />
|
|
<fieldset>
|
|
<p>
|
|
<label for="email" class="required">测试的收信地址</label>
|
|
<input type="text" id="email" value="" name="email"/>
|
|
</p>
|
|
|
|
<p>
|
|
<label class="required" for="producttitle">邮件主题</label>
|
|
<input type="text" id="subject" value="<?php echo $this->info['subject'];?>" name="subject"/>
|
|
</p>
|
|
|
|
<p>
|
|
<label>收信用户名</label>
|
|
<input type="text" id="user" value="张三" name="user"/>
|
|
</p>
|
|
<p>
|
|
<label for="body">模板内容</label><br/>
|
|
<textarea id="body" class="emailtext" name="body"><?php echo $this->info['body'];?></textarea>
|
|
</p>
|
|
|
|
<p class="box"><input type="submit" id="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置"/></p>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|