<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="inc/css.css" rel="stylesheet" type="text/css">
<title>网上评标平台</title>
</head>
<%
Integer userType = (Integer)session.getAttribute("wspbUserType");
Integer projid = (Integer)session.getAttribute("wspbProjid");
Integer bidProjid = (Integer)session.getAttribute("wspbBidProjid");
String username = (String)session.getAttribute("wspbUserName");
String videoUrl = (String)session.getAttribute("videoUrl");
%>
<script FOR="foo" EVENT="OnCompleted(hResult,pErrorObject, pAsyncContext)" LANGUAGE="JScript">

document.forms[0].macAddr.value=unescape(MACAddr);

</script>

<script FOR="foo" EVENT="OnObjectReady(objObject,objAsyncContext)" LANGUAGE="JScript">

if(objObject.IPEnabled != null && objObject.IPEnabled != "undefined" && objObject.IPEnabled == true)
{

if(objObject.MACAddress != null && objObject.MACAddress != "undefined")
MACAddr = objObject.MACAddress;

if(objObject.IPEnabled && objObject.IPAddress(0) != null && objObject.IPAddress(0) != "undefined")
IPAddr = objObject.IPAddress(0);

if(objObject.DNSHostName != null && objObject.DNSHostName != "undefined")
sDNSName = objObject.DNSHostName;

}
</script>

<script language="javascript">
<!--
function poptip(type){
var userType = <%=userType%>;
var projid = <%=projid%>;
var bidprojid = <%=bidProjid%>;
var url = '<%=videoUrl%>';

if (userType != "" && userType != null){
if (type == 5){
var height = window.screen.availHeight-20;
var width = window.screen.availWidth-20;
//window.open("http://www.qzzb.gov.cn:7777/entrance/flash/?conferenceId=0&url=user1","newwindow","height="+height+", width="+width+", top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=yes");
if (url != null && url != ""){
//window.open(url,"newwindow","height="+height+", width="+width+", top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=yes");
window.open(url,"ameeting","height="+height+", width="+width+", top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=yes");
document.form1.action=url;
document.form1.target="ameeting";
document.form1.submit();
}else{
alert("不能进入,请联系管理员!");
}
}

if (userType == "2"){
if (type == 1){
location.href = "wspbBidProjectAction.do?action=LIST&bidProjID="+bidprojid+"&projid="+projid+"&isRound=yes";
}else if(type == 2){
location.href = "webBusinessBidJudgeAction.do?action=list&bidprojid="+bidprojid+"&projid="+projid+"&isRound=yes";
}else if(type == 3){
location.href = "webTechnicalSEAction.do?method=forwardToLogon&projId="+projid+"&bidProjId="+bidprojid+"&isRound=yes";
}else if(type == 4){
location.href = "webEvaluateAction.do?action=LIST&strlicenes=true&single=yes&projid="+projid+"&bidprojid="+bidprojid+"&type=record&isRound=yes";

}else if(type == 6){
location.href = "wspbFileShareAction.do?action=LIST&bidprojid="+bidprojid+"&isRound=yes";
}

}else{
alert("您没有访问该模块的权限!");
}
}else{
alert("您还未登录,请先登录!");
document.userlogin.username.focus();
}

}

function check(obj){
var m01 = obj.username.value;
var m02 = obj.pwd.value;

if (m01 == "" || m01 == null){
alert("请输入用户名!");
obj.username.focus();
return false;
}

if (m02 == "" || m02 == null){
alert("请输入密码!");
obj.pwd.focus();
return false;
}

//alert("");
//window.location.reload();
//return false;
}

function checkresult(result){
if (result==-1){
alert("您输入的用户名不存在或是密码错误,请确认后再输入!");
}
if (result==-2){
//alert("密码修改成功,请重新登录!");
}
if (result==-3){
alert("该账号已过期失效,无法登录!");
}
if (result==-4){
alert("该项目未设定评审时间,无法登录!");
}
if (result==-5){
alert("您没有权限登录!");
}
}
//-->
</script>
<%Integer result = (Integer)(request.getAttribute("result")); %>
<body onLoad="checkresult(<%=result%>)">
<object classid="CLSID:76A64158-CB41-11D1-8B02-00600806D9B6" id="locator" VIEWASTEXT>
</object>
<object classid="CLSID:75718C9A-F029-11d1-A1AC-00C04FB6C223" id="foo">
</object>

<script LANGUAGE="JScript">
var service = locator.ConnectServer();
var MACAddr ;
var IPAddr ;
var DomainAddr;
var sDNSName;
service.Security_.ImpersonationLevel=3;
service.InstancesOfAsync(foo, 'Win32_NetworkAdapterConfiguration');
</script>

<table width="1002" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="images/wspb/wspbxt_top.jpg" height="288">
<table width="100%" align="center" height="101%">
<tr>
<td width="45%" height="205"></td>
<td width="55%"></td>
</tr>
<tr>
<td width="45%"></td>
<td width="55%">
<%
if (userType!=null&&userType==2){
%>
<form>
<input type="hidden" name="macAddr">
<table width="100%" align="center">
<tr>
<td width="36%">
<span style="color:#0A4565;font-size:14px;">
当前用户:<%=username%>
</span>
</td>
<td width="28%">
<img src="data:images/wspb/chgpwd.gif" width="62" height="23" onMouseOver="this.style.cursor='hand'" onClick="location.href='webJudgeAction.do?action=changepassword';">
<img src="data:images/wspb/exit.gif" width="62" height="23" onMouseOver="this.style.cursor='hand'" onClick="location.href='module/webJudge/logout.jsp'">
</td>
</tr>
</table>
</form>
<%
}
else{
%>
<form name="userlogin" method="post" action="webJudgeAction.do?action=login" onSubmit="return check(this)">
<input type="hidden" name="macAddr">
<table width="100%" align="center">
<tr>
<td width="36%">
<span style="color:#0A4565;font-size:14px;">用户名:</span>
<input type="text" name="username" style="width:80;height:20" class="underLineText">
</td>
<td width="36%">
<span style="color:#0A4565;font-size:14px;">密码:</span>
<input type="password" name="pwd" style="width:80;height:20" class="underLineText">
</td>
<td width="28%">
<input type="image" src="data:images/wspb/wspb_login.jpg" width="73" height="28">
</td>
</tr>
</table>
</form>
<%
}
%>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="images/wspb/wspbxt_tail.jpg" height="312" valign="top">
<table width="80%" align="left" border="0">
<tr>
<td colspan="6" height="80"></td>
</tr>
<tr>
<td width="80" height="109"></td>
<td><img src="data:images/wspb/qualBid.jpg" onMouseOver="this.style.cursor='hand'" width="109" height="101" onClick="javascript:poptip(1);"/></td>
<td><img src="data:images/wspb/techBid.jpg" onMouseOver="this.style.cursor='hand'" width="109" height="102" onClick="javascript:poptip(3);"/></td>
<td><img src="data:images/wspb/busiBid.jpg" onMouseOver="this.style.cursor='hand'" width="109" height="103" onClick="javascript:poptip(2);"/></td>
<td><img src="data:images/wspb/setBid.jpg" onMouseOver="this.style.cursor='hand'" width="109" height="101" onClick="javascript:poptip(4);"/></td>
<td>
<!--
<img src="data:images/wspb/spBid.jpg" onMouseOver="this.style.cursor='hand'" width="109" height="101" onClick="javascript:poptip(5);"/>
-->
<form id="form1" name="form1" method="post" action="">
</form>
<a href="#" onClick="javascript:poptip(5);">
<img src="data:images/wspb/spBid.jpg" onMouseOver="this.style.cursor='hand'" width="109" height="101" border="0"/>
</a>

</td>
<td><img src="data:images/wspb/fileShare.gif" onMouseOver="this.style.cursor='hand'" width="109" height="101" onClick="javascript:poptip(6);"/></td>
</tr>
</table>
</td>
</tr>
</table>

</body>
</html>

获取本机MAC地址的更多相关文章

  1. c#中如何获取本机MAC地址、IP地址、硬盘ID、CPU序列号等系统信息

    我们在利用C#开发桌面程序(Winform)程序的时候,经常需要获取一些跟系统相关的信息,例如用户名.MAC地址.IP地址.硬盘ID.CPU序列号.系统名称.物理内存等. 首先需要引入命名空间: us ...

  2. js获取本机mac地址,IP地址,计算机名

    <!DOCTYPE HTML> <html> <head> <title>js获取本机mac地址,IP地址,计算机名</title> < ...

  3. windows获取本机MAC地址并写入文件的bat

    windows获取本机MAC地址并写入文件的bat MAC(Media Access Control)地址,或称为 MAC地址.硬件地址,用来定义网络设备的位置. bat代码例如以下: @echo o ...

  4. Java获取本机MAC地址[转]

    原文地址:https://www.cnblogs.com/hxsyl/p/3422191.html Java获取本机MAC地址   为什么写这个呢?因为前几天看见网上有采用windows命令获取局域网 ...

  5. 获取客户机MAC地址 根据IP地址 获取机器的MAC地址 / 获取真实Ip地址

    [DllImport("Iphlpapi.dll")] private static extern int SendARP(Int32 dest, Int32 host, ref ...

  6. 脚本_获取本机 MAC 地址

    #!bin/bash#作者:liusingbon#功能:获取本机 MAC 地址ip a s |awk 'BEGIN{print "本机 MAC 地址信息如下:"}/^[0-9]/{ ...

  7. Java获取本机MAC地址

    为什么写这个呢?因为前几天看见网上有采用windows命令获取局域网和广域网MAC,查了查可以直接用JDK的方法. MAC可用于局域网验证,提高安全性. import java.net.InetAdd ...

  8. Node.js 获取本机Mac地址

    首先我们要先加载一个包用于获取mac地址 npm install getmac 加载完毕会在node_modules文件夹下发现一个getmac文件夹,我们把对应的路径加载到程序中 源码如下: var ...

  9. 052_获取本机 MAC 地址

    #!/bin/baship a s | awk 'BEGIN{print "本机 MAC 地址信息如下:"}/^[0-9]/{print $2;getline;if($0~/lin ...

  10. php获取客户机mac地址

    @exec("arp -a",$array); //执行arp -a命令,结果放到数组$array中 foreach($array as $value){ //匹配结果放到数组$m ...

随机推荐

  1. OpenAl编程入门:播放一段音频

    OpenAl编程入门 关于OpenAl我就不多介绍了,这两篇说明对于初步了解已经足够了:http://baike.baidu.com/view/1355367.htmhttp://en.wikiped ...

  2. JavaWeb基础: 获取资源文件

    Web工程在编译构建完毕以后,需要部署到Tomcat上运行,资源的硬盘路径也会随着改变.要想对资源文件进行读写操作需要获取其硬盘地址,在Web工程中通常通过ServletContext/ClassLo ...

  3. HDU 1240 Asteroids! 解题报告

    //这道题做完我只有 三个感受  第一:坑: 第二 : 坑! 第三:还是坑! 咳咳  言归正传  WA了无数次之后才发现是输入进去时坐标时z, y, x的顺序输入的 题解   :  类似胜利大逃亡 只 ...

  4. Java类文件最大限制

    今天在往一个jsp文件里添加代码时,项目跑起来访问这个jsp时报错.. The code of method _jspService(HttpServletRequest, HttpServletRe ...

  5. Rhel6-puppet集中配置管理系统配置文档

    puppet 是一个配置管理工具, 典型的, puppet 是一个 C/S 结构, 当然,这里的 C 可以有很多,因 此,也可以说是一个星型结构. 所有的 puppet 客户端同一个服务器端的 pup ...

  6. java编码转换 unicode to utf-8

    private String decodeUnicode(String theString) { char aChar; int len = theString.length(); StringBuf ...

  7. oracle、mysql、sql server等;流行数据库的链接驱动配置

    系统的写博客的时间不多,但是还想一直写来坚持,就没事写写积累下来的知识点吧 #ORACLE #jdbc.driver=oracle.jdbc.driver.OracleDriver#jdbc.url= ...

  8. Active Record: 資料庫遷移(Migration) (转)

    Active Record: 資料庫遷移(Migration) Programming today is a race between software engineers striving to b ...

  9. Activity 和 生命周期: 创建

    了解了整体的android创建流程之后,就分析一下到底这个过程中做了什么? activity创建中开始时由activityStack中的realstartActivityLocked函数中调用了act ...

  10. Sed是个好东西

    今天遇到的源码使用了变态的宏,直接对参数进行宏处理,使得我的vim插件几乎全废,只能想办法将宏给替换进去. #!/bin/bash find . -type f -name '*.c' | xargs ...