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

101 lines
4.0 KiB
PHTML
Raw Normal View History

2011-10-13 08:18:12 +00:00
<?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(' > ');
?>
2014-07-23 08:38:32 +00:00
<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 />
<div class="alert alert-info">
<p>邮件模板编写时暂时不支持html格式只能使用纯文本编写</p>
<p>模板中可以使用变量标记,比如 <kbd>{user}</kbd> 将被替换为用户名,变量的起始使用<kbd>“{”</kbd>,结束使用<kbd>"}"</kbd>,完整的变量格式应类似<kbd>“{param}”</kbd></p>
<p>目前程序中已预制的变量包括:</p>
</div>
2011-10-13 08:18:12 +00:00
2014-07-23 08:38:32 +00:00
<table class="stylized table table-bordered table-striped table-hover">
<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>
<div class="alert alert-success">
<p>一个邮件模板例子:</p>
<p>尊敬的{user}您好!想获得元数据《{title}》,请访问 http://westdc.westgis.ac.cn/data/{uuid}</p>
</div>
2011-10-13 08:18:12 +00:00
2014-07-23 08:38:32 +00:00
</div>
2011-10-13 08:18:12 +00:00
</div>