function confirmurl(url,message) { url = url+'&pc_hash='+pc_hash; if(confirm(message)) redirect(url); } function redirect(url) { location.href = url; } //滚动条 $(function(){ $(":text").addclass('input-text'); }) /** * 全选checkbox,注意:标识checkbox id固定为为check_box * @param string name 列表check名称,如 uid[] */ function selectall(name) { if ($("#check_box").attr("checked")=='checked') { $("input[name='"+name+"']").each(function() { $(this).attr("checked","checked"); }); } else { $("input[name='"+name+"']").each(function() { $(this).removeattr("checked"); }); } } function openwinx(url,name,w,h) { if(!w) w=screen.width-4; if(!h) h=screen.height-95; url = url+'&pc_hash='+pc_hash; window.open(url,name,"top=100,left=400,width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no"); } //弹出对话框 function omnipotent(id,linkurl,title,close_type,w,h) { if(!w) w=700; if(!h) h=500; art.dialog({id:id,iframe:linkurl, title:title, width:w, height:h, lock:true}, function(){ if(close_type==1) { art.dialog({id:id}).close() } else { var d = art.dialog({id:id}).data.iframe; var form = d.document.getelementbyid('dosubmit');form.click(); } return false; }, function(){ art.dialog({id:id}).close() });void(0); } /* copyright mihai bazon, 2002-2005 | www.bazon.net/mishoo * the dhtml calendar, version 1.0 "it is happening again" * details and latest version at: * www.dynarch.com/projects/calendar * this script is developed by dynarch.com. visit us at www.dynarch.com. * this script is distributed under the gnu lesser general public license. * read the entire license text here: http://www.gnu.org/licenses/lgpl.html // $id: calendar.js,v 1.51 2005/03/07 16:44:31 mishoo exp $ /** the calendar object constructor. */