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

103 lines
3.3 KiB
PHTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>
<tr>
<td>{link}</td>
<td>元数据访问地址</td>
<td>http://{server}/data/49f1ced9-dcb9-431b-a14e-2e3009dd5097</td>
<td>数据作者激活</td>
</tr>
<tr>
<td>{vdcode}</td>
<td>数据作者确认验证码</td>
<td>8f4a311d74d6ddbc024f7877891d3356</td>
<td>数据作者激活</td>
</tr>
<tr>
<td>{active}</td>
<td>数据作者激活确认链接</td>
<td>http://{server}/author/accept/?ac=active&v={vdcode}</td>
<td>数据作者激活</td>
</tr>
<tr>
<td>{lock}</td>
<td>数据作者激活否认链接</td>
<td>http://{server}/author/accept/?ac=lock&v={vdcode}</td>
<td>数据作者激活</td>
</tr>
</tbody>
</table>
</p>
<br />
<p>
一个邮件模板例子:<br />
<br />
尊敬的{user}您好!想获得元数据《{title}》,请访问 http://westdc.westgis.ac.cn/data/{uuid}
</p>
</div>