代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
JS
】
控制考勤时间
作者:
xudianlong
/ 发布于
2014/7/4
/
872
<!DOCTYPE html P LIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title> 无标题页 </title> <style type="text/css"> .style1 { width: 114px; } .style2 { width: 105px; } .style3 { width: 105px; height: 65px; } .style4 { width: 114px; height: 65px; } </style> <script lang ge="javascript"> var str = ""; document.writeln("<div id=\"_contents\" style=\"padding:6px; background-color:#E3E3E3; font-size: 12px; border: 1px solid #777777; position:absolute; left:?px; top:?px; width:?px; height:?px; z-index:1; visibility:hidden\">"); str += "\时<select id=\"_hour\">"; for (h = 0; h <= 9; h++) { str += "<option val=\"0" + h + "\">0" + h + "</option>"; } for (h = 10; h <= 23; h++) { str += "<option val=\"" + h + "\">" + h + "</option>"; } str += "</select> \分<select id=\"_minute\">"; for (m = 0; m <= 9; m++) { str += "<option val=\"0" + m + "\">0" + m + "</option>"; } for (m = 10; m <= 59; m++) { str += "<option val=\"" + m + "\">" + m + "</option>"; } str += "</select> \秒<select id=\"_second\">"; for (s = 0; s <= 9; s++) { str += "<option val=\"0" + s + "\">0" + s + "</option>"; } for (s = 10; s <= 59; s++) { str += "<option val=\"" + s + "\">" + s + "</option>"; } str += "</select> <input name=\"qding\" type=\"button\" onclick=\"_select()\" val=\"\确\定\" style=\"font-size:12px\" /></div>"; document.writeln(str); var _fieldname; function _SetTime(tt) { _fieldname = tt; var ttop = tt.offsetTop; //TT控件的定位点高 var thei = tt.clientHeight; //TT控件本身的高 var tleft = tt.offsetLeft; //TT控件的定位点宽 while (tt = tt.offsetParent) { ttop += tt.offsetTop; tleft += tt.offsetLeft; } document.getElementById("_contents").style.top = ttop + thei + 4; document.getElementById("_contents").style.left = tleft; document.getElementById("_contents").style.visibility = "visible"; } function _select() { _fieldname.val = document.getElementById("_hour").val + ":" + document.getElementById("_minute").val + ":" + document.getElementById("_second").val; document.getElementById("_contents").style.visibility = "hidden"; } </script> </head> <body> <form name="form1" method="post" action="SetemployeeDatetime.aspx" id="form1"> <div> <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" val="" /> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" val="" /> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" val="/wEPDwUKMjEyMjMyMjk3Ng9kFgICAw9kFgICAw9kFgJmD2QWAgIBDzwrAA0BAA8WBB4LXyFEYXRhQm91bmRnHgtfIUl0ZW1Db3V?IFZBYCZg9kFgwCAQ9kFghmD2QWBAIBDw8WAh4EVGV4dAUG5pep54+tZGQCAg8VAQExZAIBD2QWAgIBDw8WAh8CBRIwODowMDowMC0tMTI6MDA6MDBkZAICD2QWAgIBDw8WAh8CBQJzc2RkAgMPZBYEAgEPDxYCHg9Db21tYW5kQXJndW1lbnQFATFkZAIDDw8WAh8DBQExZGQCAg9kFghmD2QWBAIBDw8WAh8CBQbkuK3nj61kZAICDx ATRkAgEPZBYCAgEPDxYCHwIFEjAyOjAwOjAwLS0wNjowMDowMGRkAgIPZBYCAgEPDxYCHwIFB+S4reWbvVZkZAIDD2QWBAIBDw8WAh8DBQE0ZGQCAw8PFgIfAw NGRkAgMPZBYIZg9kFgQCAQ8PFgIfAgUG5pma54+tZGQCAg8VAQIxMWQCAQ9kFgICAQ8PFgIfAgUSMDI6MTI6MDAtLTEyOjAwOjAwZGQCAg9kFgICAQ8PFgIfAg T29vZGQCAw9kFgQCAQ8PFgIfAw MTFkZAIDDw8WAh8DBQIxMWRkAgQPZBYIZg9kFgQCAQ8PFgIfAgUH54m554+tQWRkAgIPFQECMTRkAgEPZBYCAgEPDxYCHwIFEjAyOjAwOjAwLS0xMjowMDowMGRkAgIPZBYCAgEPDxYCHwIFCeaIkemineS4umRkAgMPZBYEAgEPDxYCHwMFAjE0ZGQCAw8PFgIfAw MTRkZAIFD2QWCGYPZBYEAgEPDxYCHwIFB+eJePrkZAICDx AjIwZAIBD2QWAgIBDw8WAh8CBRIwNDowNzowNy0tMTI6MTc6MTRkZAICD2QWAgIBDw8WAh8CBQnmiJHpop3kuLpkZAIDD2QWBAIBDw8WAh8DBQIyMGRkAgMPDxYCHwMFAjIwZGQCBg8PFgIeB1Zpc2libGVoZGQYAQUMZ3JpZHZpZXd0aW1lDzwrAAoBCAIBZJNDlKVj+s13ZzIvBWSzeGhuZ+ZS" /> </div> <script type="text/javascript"> //<![CDATA[ var theForm = document.forms['form1']; if (!theForm) { theForm = document.form1; } function __doPostBack(eventTarget, eventArgument) { if (!theForm.ons mit || (theForm.ons mit() != false)) { theForm.__EVENTTARGET.val = eventTarget; theForm.__EVENTARGUMENT.val = eventArgument; theForm.s mit(); } } //]]> </script> <script src="/OA2008/WebResource.axd?d=KCgE9pOHbjF tKGreUS8w2&t=634171108543593750" type="text/javascript"></script> <script src="/OA2008/ScriptResource.axd?d=ENohZOUpsYdfMTR49bkjqM??-9cBJWpishoHMZpbtofSLBSuHfQTbBIUyHDCM6uQ_HhOaSJwlX 6DQNPAs8bDsOX0QKOhk8gb8s1&t=ffffffffe7802dc3" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax 客户端框架未能加载。'); //]]> </script> <script src="/OA2008/ScriptResource.axd?d=ENohZOUpsYdfMTR49bkjqM??-9cBJWpishoHMZpbtofSLBSuHfQTbBIUyNIbvEssWdJdObIZEZADKaXECReuQRO9e1kWhWJ6vkvYDBMk4PsDgxfzH761j3c0&t=ffffffffe7802dc3" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ Sys.WebForms.PageReqstManager._initialize('ScriptManager1', document.getElementById('form1')); Sys.WebForms.PageReqstManager.getInstance()._updateControls(['tUpdatePanel1'], [], [], 90); //]]> </script> <div id="UpdatePanel1"> <div align="center"> <div> <table cellspacing="0" rules="all" border="1" id="gridviewtime" style="height:125px;width:351px;border-collapse:collapse;"> <tr> <th scope="col">班次</th><th scope="col">时间段</th><th scope="col">说明</th><th scope="col">操作</th> </tr><tr> <td> <span id="gridviewtime_ctl02_labbance">早班</span> <input type="hidden" id="hind" val='1' /> </td><td> <span id="gridviewtime_ctl02_labdatetime">08:00:00--12:00:00</span> </td><td> <span id="gridviewtime_ctl02_labtext">ss</span> </td><td> <a id="gridviewtime_ctl02_linkbtnup" href="javascript:__doPostBack('gridviewtime$ctl02$linkbtnup','')">修改</a> <a onclick="return confirm('你真的要删除吗?');" id="gridviewtime_ctl02_linkbtnde" href="javascript:__doPostBack('gridviewtime$ctl02$linkbtnde','')">删除</a> </td> </tr><tr> <td> <span id="gridviewtime_ctl03_labbance">中班</span> <input type="hidden" id="hind" val='4' /> </td><td> <span id="gridviewtime_ctl03_labdatetime">02:00:00--06:00:00</span> </td><td> <span id="gridviewtime_ctl03_labtext">中国V</span> </td><td> <a id="gridviewtime_ctl03_linkbtnup" href="javascript:__doPostBack('gridviewtime$ctl03$linkbtnup','')">修改</a> <a onclick="return confirm('你真的要删除吗?');" id="gridviewtime_ctl03_linkbtnde" href="javascript:__doPostBack('gridviewtime$ctl03$linkbtnde','')">删除</a> </td> </tr><tr> <td> <span id="gridviewtime_ctl04_labbance">晚班</span> <input type="hidden" id="hind" val='11' /> </td><td> <span id="gridviewtime_ctl04_labdatetime">02:12:00--12:00:00</span> </td><td> <span id="gridviewtime_ctl04_labtext">Ooo</span> </td><td> <a id="gridviewtime_ctl04_linkbtnup" href="javascript:__doPostBack('gridviewtime$ctl04$linkbtnup','')">修改</a> <a onclick="return confirm('你真的要删除吗?');" id="gridviewtime_ctl04_linkbtnde" href="javascript:__doPostBack('gridviewtime$ctl04$linkbtnde','')">删除</a> </td> </tr><tr> <td> <span id="gridviewtime_ctl05_labbance">特班A</span> <input type="hidden" id="hind" val='14' /> </td><td> <span id="gridviewtime_ctl05_labdatetime">02:00:00--12:00:00</span> </td><td> <span id="gridviewtime_ctl05_labtext">我额为</span> </td><td> <a id="gridviewtime_ctl05_linkbtnup" href="javascript:__doPostBack('gridviewtime$ctl05$linkbtnup','')">修改</a> <a onclick="return confirm('你真的要删除吗?');" id="gridviewtime_ctl05_linkbtnde" href="javascript:__doPostBack('gridviewtime$ctl05$linkbtnde','')">删除</a> </td> </tr><tr> <td> <span id="gridviewtime_ctl06_labbance">特班A</span> <input type="hidden" id="hind" val='20' /> </td><td> <span id="gridviewtime_ctl06_labdatetime">04:07:07--12:17:14</span> </td><td> <span id="gridviewtime_ctl06_labtext">我额为</span> </td><td> <a id="gridviewtime_ctl06_linkbtnup" href="javascript:__doPostBack('gridviewtime$ctl06$linkbtnup','')">修改</a> <a onclick="return confirm('你真的要删除吗?');" id="gridviewtime_ctl06_linkbtnde" href="javascript:__doPostBack('gridviewtime$ctl06$linkbtnde','')">删除</a> </td> </tr> </table> </div> <div id="do"> </div> </div> </div> <script type="text/javascript"> //<![CDATA[ Sys.Application.initialize(); //]]> </script> </form> </body> </html>
试试其它关键字
控制考勤时间
考勤时间
考勤
同语言下
.
Jquery搜索框获取回车事件
.
H5页面添加倒计时,然后自动跳转
.
通过user-agent判断h5页面是在哪个手机App(QQ、微信
.
nginx 禁止未绑定的域名访问
.
JavaScript 获取按键,并屏蔽系统 Window 事件
.
H5之只允许微信浏览器打开,禁止从外部浏览器访问
.
微信打开网址添加在浏览器中打开提示的办法
.
实现JS复制、粘贴,Chrome/Firefox下可用
.
video视频播放,play()、pause()、duration时长、onen
.
HTML5实现MP3上传前的预览和播放时长的获取
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
xudianlong
贡献的其它代码
(
25
)
.
使用ArrayList完成批量执行数据库SQl
.
使用记事本记录错误信息
.
获取web.config文件中的键值(key)代码
.
俄罗斯方块
.
打印excel表格并发送邮件
.
DataTable导出Excel数据
.
右下角提示消息框
.
鼠标放到图片上图片增大
.
控制考勤时间
.
时间控件
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3