westdc-zf1/application/admin/views/scripts/review/checkmail.phtml

61 lines
2.1 KiB
PHTML
Raw Normal View History

<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('元数据评审');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id="leftPanel">
<?= $this->partial('review/left.phtml'); ?>
</div>
<div id="rightPanel">
<?php if ($this->msg or $this->messages) :?>
<div id="message">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<form action="/admin/review/post" id="emails">
<?php if (count($this->paginator)): ?>
请选择要发送通知的邮箱
<table class="stylized"><thead>
<tr>
<td width="80">选择</td>
<td width='500'>Email</td>
</tr></thead>
<tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<tr>
<td><input type="checkbox" name="emails[]" value="<?php echo $item['email'];?>" /></td>
<td><?= $item['email']?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<input type="hidden" name="id" value="<?php echo $this->id ;?>" />
<input type="submit" value="发布该元数据" onclick="return confirm('是否确定发布该元数据?')" />
</form>
<button class="btn" onclick="selall();">全选</button>
<button class="btn" onclick="unsel();">反选</button>
<button class="btn" onclick='unselall();'>全部取消</button>
</div>
<script>function selall(){
$("#emails :checkbox").attr('checked',true);
}
function unselall(){
$("#emails :checkbox").attr('checked',false);
}
function unsel(){
$("#emails :checkbox").each(function () {
$(this).attr("checked", !$(this).attr("checked"));
});
} $("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>