79 lines
2.5 KiB
PHTML
79 lines
2.5 KiB
PHTML
<?php
|
||
$this->headTitle($this->config->title->site);
|
||
$this->headTitle('后台管理');
|
||
$this->headTitle()->setSeparator(' - ');
|
||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||
$this->breadcrumb('<a href="/">首页</a>');
|
||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||
$this->breadcrumb('<a href="/admin/sys">系统管理</a>');
|
||
$this->breadcrumb('邮件模板管理');
|
||
$this->breadcrumb()->setSeparator(' > ');
|
||
?>
|
||
<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>
|
||
<br />
|
||
<p>邮件模板编写时暂时不支持html格式,只能使用纯文本编写</p>
|
||
<br />
|
||
<p>
|
||
模板中可以使用变量标记,比如 {user} 将被替换为用户名,变量的起始使用“{”,结束使用"}",完整的变量格式应类似“{param}”
|
||
</p>
|
||
<br />
|
||
<p>
|
||
目前程序中已预制的变量包括:
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<td width="150">变量名</td>
|
||
<td width="200">说明</td>
|
||
<td width="300">输出值举例</td>
|
||
<td width="150">作用域</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>{user}</td>
|
||
<td>用户名</td>
|
||
<td>张三</td>
|
||
<td>全局</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{uuid}</td>
|
||
<td>元数据UUID</td>
|
||
<td>76bce7bb-e1b2-49c4-9537-668a6bac42a2</td>
|
||
<td>全局</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{title}</td>
|
||
<td>元数据title</td>
|
||
<td>黑河流域气象观测站点分布图</td>
|
||
<td>专家邀请模板</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</p>
|
||
<br />
|
||
<p>
|
||
一个邮件模板例子:<br />
|
||
<br />
|
||
|
||
尊敬的{user}您好!想获得元数据《{title}》,请访问 http://westdc.westgis.ac.cn/data/{uuid}
|
||
</p>
|
||
|
||
</div>
|