Ticket #262 后台元数据管理中更新了jquery库,增加了全选、反选、取消选择功能
This commit is contained in:
parent
fad45d965c
commit
e9460be880
|
@ -3,7 +3,7 @@
|
||||||
$this->headTitle('后台管理');
|
$this->headTitle('后台管理');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||||
$this->breadcrumb('元数据评审');
|
$this->breadcrumb('元数据评审');
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
<?php endforeach;endif; ?>
|
<?php endforeach;endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<form action="/admin/review/post">
|
<form action="/admin/review/post" id="emails">
|
||||||
<?php if (count($this->paginator)): ?>
|
<?php if (count($this->paginator)): ?>
|
||||||
请选择要发送通知的邮箱
|
请选择要发送通知的邮箱
|
||||||
<table class="stylized"><thead>
|
<table class="stylized"><thead>
|
||||||
|
@ -38,19 +38,24 @@
|
||||||
<td><?= $item['email']?></td>
|
<td><?= $item['email']?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<tr>
|
|
||||||
<td><input type="checkbox" name="emails[]" value="la5c@qq.com" /></td>
|
|
||||||
<td>la5c@qq.com</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><input type="checkbox" name="emails[]" value="346938798@qq.com" /></td>
|
|
||||||
<td>346938798@qq.com</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<input type="hidden" name="id" value="<?php echo $this->id ;?>" />
|
<input type="hidden" name="id" value="<?php echo $this->id ;?>" />
|
||||||
<input type="submit" value="发布该元数据" onclick="return confirm('是否确定发布该元数据?')" />
|
<input type="submit" value="发布该元数据" onclick="return confirm('是否确定发布该元数据?')" />
|
||||||
</form>
|
</form>
|
||||||
|
<button class="btn" onclick="selall();">全选</button>
|
||||||
|
<button class="btn" onclick="unsel();">反选</button>
|
||||||
|
<button class="btn" onclick='unselall();'>全部取消</button>
|
||||||
</div>
|
</div>
|
||||||
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>
|
<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>
|
|
@ -3,7 +3,7 @@
|
||||||
$this->headTitle('后台管理');
|
$this->headTitle('后台管理');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||||
$this->breadcrumb('元数据评审');
|
$this->breadcrumb('元数据评审');
|
||||||
|
@ -66,4 +66,4 @@
|
||||||
</table>
|
</table>
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
</div>
|
</div>
|
||||||
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>
|
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")});</script>
|
Loading…
Reference in New Issue