判断是否是手机访问及大致手机网页格式

 1 string userAgent = context.Request.UserAgent;
 2             if (userAgent != null)
 3             {
 4                 userAgent = userAgent.ToUpper();
 5                 if (userAgent.IndexOf("NOKI") > -1 || // Nokia phones and emulators  
 6                     userAgent.IndexOf("ERIC") > -1 || // Ericsson WAP phones and emulators  
 7                     userAgent.IndexOf("WAPI") > -1 || // Ericsson WapIDE 2.0  
 8                     userAgent.IndexOf("MC21") > -1 || // Ericsson MC218  
 9                     userAgent.IndexOf("AUR") > -1 || // Ericsson R320  
10                     userAgent.IndexOf("R380") > -1 || // Ericsson R380  
11                     userAgent.IndexOf("UP.B") > -1 || // UP.Browser  
12                     userAgent.IndexOf("WINW") > -1 || // WinWAP browser  
13                     userAgent.IndexOf("UPG1") > -1 || // UP.SDK 4.0  
14                     userAgent.IndexOf("UPSI") > -1 || //another kind of UP.Browser  
15                     userAgent.IndexOf("QWAP") > -1 || // unknown QWAPPER browser  
16                     userAgent.IndexOf("JIGS") > -1 || // unknown JigSaw browser  
17                     userAgent.IndexOf("JAVA") > -1 || // unknown Java based browser  
18                     userAgent.IndexOf("ALCA") > -1 || // unknown Alcatel-BE3 browser (UP based)  
19                     userAgent.IndexOf("MITS") > -1 || // unknown Mitsubishi browser  
20                     userAgent.IndexOf("MOT-") > -1 || // unknown browser (UP based)  
21                     userAgent.IndexOf("MY S") > -1 || //  unknown Ericsson devkit browser   
22                     userAgent.IndexOf("WAPJ") > -1 || //Virtual WAPJAG www.wapjag.de  
23                     userAgent.IndexOf("FETC") > -1 || //fetchpage.cgi Perl script from www.wapcab.de  
24                     userAgent.IndexOf("ALAV") > -1 || //yet another unknown UP based browser  
25                     userAgent.IndexOf("WAPA") > -1 || //another unknown browser (Web based "Wapalyzer")  
26                     userAgent.IndexOf("OPER") > -1 || //Opera  
27                     userAgent.IndexOf("DOPOD") > -1 ||  //多普达  
28                     userAgent.IndexOf("SYMBIAN") > -1 ||  //symbian系统  
29                     userAgent.IndexOf("IPHONE") > -1 ||  //苹果系统  
30                     userAgent.IndexOf("ANDROID") > -1||   //安卓系统
31                     userAgent.IndexOf("MOBILE") > -1   //安卓系统
32                     )
33                 {
34                     isMobile = true;
35                 }
36                 else
37                 {
38                     isMobile = false;
39                     //PC
40                 }
41             }
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta name="viewport" content="wnameth=device-wnameth,minimum-scale=1.0,maximum-scale=1.01,user-scalable=yes" /> 
    <title>t</title>
    <link href="css/phone_MainCss.css" rel="stylesheet" type="text/css" />
    <link href="../jmodal/css/jquery.jmodal.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../jmodal/js/phone_jquery.jmodal.js" type="text/javascript"></script>
    <link href="../css/phone_MainCss.css" rel="stylesheet" type="text/css" />
  <style type="text/css">

body,div,p,a,table,textarea,form,input,img,ul,li{ margin:0; padding:0;}
body{ font-size:15px;font-family:Arial, Helvetica, sans-serif; margin:0 auto; border:1px solid #c6c6c6; color:#333;}
ul,li{ list-style:none;}
.fonta{ font-family:Arial, Helvetica, sans-serif;}
a{ color:#039; text-decoration:none;}
a img{ border:0;}
.uplogo{ padding:5px 8px 0;}
.menu{ background:#F2F2F2 url(images/upbj.jpg) repeat-x left bottom; line-height:24px; padding:0 5px 5px; border-top:1px solid #eee; margin:5px 0;}
.co333 a{ color:#333;}
.menubt{ height:23px; background:#f9f9f9 url(images/los.jpg) no-repeat 5px 3px; border-top:1px solid #ddd; border-bottom:1px solid #ddd; line-height:23px; padding:0 5px 0 23px;}
.menubt_01{ height:23px; background:#f9f9f9; border-top:1px solid #ddd; border-bottom:1px solid #ddd; line-height:23px; padding:0 5px 0 0; margin-bottom:5px;}
.footer{ background:#F0F0F0; line-height:1.7; text-align:left; padding:5px; color:#444;}
.footer a{ color:#444;}

.newslist{ line-height:2; color:#666; padding:5px 5px 10px;}
.newslist div{ width:96px; float:left; text-align:right; }
.caseimg{ padding:0 0 10px 5px;}
.caseimg a{ display:inline-block; padding:5px; text-align:center;}
.definput{ width:200px; height:25px;}
.defselect{ width:200px; height:25px;}
.submitDiv{ text-align:left; padding:15px; padding-left:30px;}
.submitDiv input{ margin:0 auto;}
.clear{ clear:both;} 

  </style>  
</head> <body> <form name="form1" runat="server"> <div class="uplogo"> <img src="images/top_logo.jpg" wnameth="255" title="title" height="44" /></div> <div class="menu co333"> <a href="index.aspx">首页</a> <a href="http:/fsd">中社</a> <a href="fasdf"> 行业研究员</a> </div> <div class="menubt_01 co333"> (CT)球管运维使用情况调查表</div> <div class="menubt co333"> 请填写您的单位及个人资料</div> <ul class="newslist co737F8D"> <li><div>填卷单位:</div><input type="text" name="txtObject" class="definput" id=""/></li> <li style="clear:both"></li> <li><div>填卷时间:</div> <asp:Literal ID="txtTime" runat="server"></asp:Literal></li> <li style="clear:both"></li> <li>填写人资料(最多三位):</li> <li><div>①姓名:</div><input type="text" name="txtName" class="definput" /></li> <li style="clear:both"></li> <li><div>科室:</div><input type="text" name="txtks" class="definput" /></li> <li style="clear:both"></li> <li><div>职务:</div><input type="text" name="txtzw" class="definput" /></li> <li style="clear:both"></li> <li><div>职称:</div><input type="text" name="txtzc" class="definput" /></li> <li><div>联系电话:</div><input type="text" name="txtphone" class="definput" /></li> <li style="clear:both"></li> <li><div>②姓名:</div><input type="text" name="txtName" class="definput" /></li> <li style="clear:both"></li> <li><div>科室:</div><input type="text" name="txtks" class="definput" /></li> <li style="clear:both"></li> <li><div>职务:</div><input type="text" name="txtzw" class="definput" /></li> <li style="clear:both"></li> <li><div>职称:</div><input type="text" name="txtzc" class="definput" /></li> <li style="clear:both"></li> <li><div>联系电话:</div><input type="text" name="txtphone" class="definput" /></li> <li style="clear:both"></li> <li><div>③姓名:</div><input type="text" name="txtName" class="definput" /></li> <li style="clear:both"></li> <li><div>科室:</div><input type="text" name="txtks" class="definput" /></li> <li style="clear:both"></li> <li><div>职务:</div><input type="text" name="txtzw" class="definput" /></li> <li style="clear:both"></li> <li><div>职称:</div><input type="text" name="txtzc" class="definput" /></li> <li style="clear:both"></li> <li><div>联系电话:</div><input type="text" name="txtphone" class="definput" /></li> <li style="clear:both"></li> </ul> <div class="menubt co333"> CT情况</div> <ul class="newslist co737F8D"> <li><div>CT厂家:</div><input type="text" name="txtCompany" class="definput" /></li> <li style="clear:both"></li> <li><div>CT品牌:</div><input type="text" name="txtCompanyName" class="definput" /></li> <li style="clear:both"></li> <li><div>CT型号:</div><input type="text" name="txtModel" class="definput" /></li> <li style="clear:both"></li> <li><div>规格档次:</div><asp:DropDownList ID="cboguige" runat="server" Style="width: 120px; margin-top: 6px;"> <asp:ListItem Value="1">单排-16排</asp:ListItem> <asp:ListItem Value="2">40-64排</asp:ListItem> <asp:ListItem Value="3">后64排</asp:ListItem> <asp:ListItem Value="4">64排以上</asp:ListItem> </asp:DropDownList></li> <li style="clear:both"></li> </ul> <div class="menubt co333"> 球管情况</div> <ul class="newslist co737F8D"> <li><div>球管型号:</div><input type="text" id="txtqgModel" class="definput" runat="server"/></li> <li style="clear:both"></li> <li><div>容量:</div><input type="text" id="txtrl" class="definput" runat="server"/></li> <li style="clear:both"></li> <li><div>管电压:</div><input type="text" id="txtdy" class="definput" runat="server"/>KV</li> <li style="clear:both"></li> <li><div>管电流:</div><input type="text" id="txtkvdy" class="definput" runat="server"/>MA</li> <li style="clear:both"></li> <li><div>标称寿命:</div><input type="text" id="txtbcsm" class="definput" runat="server"/></li> <li style="clear:both"></li> <li><div>实际寿命:</div><input type="text" id="txtsjsm" class="definput" runat="server"/></li> <li style="clear:both"></li> <li>(标称)使用秒次:</li> <li><div>&nbsp;</div><input type="text" id="txtsymc" class="definput" runat="server"/></li> <li>更换球管价格:</li> <li><div>&nbsp;</div><input type="text" id="txtPrice" class="definput" runat="server"/></li> <li style="clear:both"></li> <li>最后一次故障的原因:</li> <li> <input type="checkbox" name="cblReson" id="Checkbox1" value="1" /><label for="Checkbox1">A、阳极板损坏</label> <br /> <input type="checkbox" name="cblReson" id="Checkbox2" value="2" /><label for="Checkbox2">B、风扇损坏</label> <br /> <input type="checkbox" name="cblReson" id="Checkbox3" value="3" /><label for="Checkbox3">C、漏油</label> <br /> <input type="checkbox" name="cblReson" id="cblResonOne" value="4" runat="server" /><label for="cblResonOne">D、其他原因 :</label> </li> <li><asp:TextBox ID="txtOtherResion1" runat="server" class="definput"></asp:TextBox></li> </ul> <div class="menubt co333"> 使用情况</div> <ul class="newslist co737F8D"> <li>主要使用场所:</li> <li> <input type="checkbox" name="cbouseArea" id="Checkbox4" value="1" /><label for="Checkbox4">A、门诊</label> <input type="checkbox" name="cbouseArea" id="Checkbox5" value="2" /><label for="Checkbox5">B、急诊</label> <input type="checkbox" name="cbouseArea" id="Checkbox6" value="3" /><label for="Checkbox6">C、住院处</label> <input type="checkbox" name="cbouseArea" id="cbouseAreaOne" runat="server" value="4" /><label for="Checkbox7">D、其他:</label> </li> <li><asp:TextBox ID="txtuseArea" runat="server" class="definput"></asp:TextBox></li> <li>主要扫描部位:</li> <li> <input type="checkbox" name="cboSearceArea" id="Checkbox8" value="1" /><label for="Checkbox8">A、头</label> <br /> <input type="checkbox" name="cboSearceArea" id="Checkbox9" value="2" /><label for="Checkbox9">B、颈</label> <br /> <input type="checkbox" name="cboSearceArea" id="Checkbox10" value="3" /><label for="Checkbox10">C、胸</label> <br /> <input type="checkbox" name="cboSearceArea" id="Checkbox11" value="4" /><label for="Checkbox11">D、腹</label> <br /> <input type="checkbox" name="cboSearceArea" id="Checkbox12" value="5" /><label for="Checkbox12">E、盆腔</label> </li> <li>每日扫描工作量 :</li> <li><div>&nbsp;</div><asp:TextBox ID="txtScanTime" runat="server" class="definput"></asp:TextBox>扫描次数 / 天 </li> <li style="clear:both"></li> <li>每日增强扫描工作量 :</li> <li><div>&nbsp;</div><asp:TextBox ID="txtStroScanTime" runat="server" class="definput"></asp:TextBox>扫描次数 / 天 </li> <li style="clear:both"></li> <li>每日工作时长:</li> <li><div>&nbsp;</div><asp:TextBox ID="txtDayTime" runat="server" class="definput"></asp:TextBox></li> <li>主要扫描方式:</li> <li style="clear:both"></li> <li> <input type="checkbox" name="cboMainScan" id="Checkbox7" value="1" /><label for="Checkbox7">A、轴位扫描</label> <input type="checkbox" name="cboMainScan" id="Checkbox13" value="2" /><label for="Checkbox13">B、螺旋扫描</label> <input type="checkbox" name="cboMainScan" id="Checkbox14" value="3" /><label for="Checkbox14">C、心脏扫描</label> <input type="checkbox" name="cboMainScan" id="Checkbox15" value="4" /><label for="Checkbox15">D、以上都有</label> </li> </ul> <div class="menubt co333"> 维护方式</div> <ul class="newslist co737F8D"> <li>质保情况:</li> <li><asp:RadioButtonList ID="cbozb" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Value="1" Selected="True">A、质保期内</asp:ListItem> <asp:ListItem Value="2">B、质保期外</asp:ListItem> </asp:RadioButtonList></li> <li>保修合同:</li> <li> <asp:RadioButtonList ID="radbx" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Value="1" Selected="True">A、有</asp:ListItem> <asp:ListItem Value="2">B、无</asp:ListItem> </asp:RadioButtonList> <asp:TextBox ID="txtbx" runat="server" class="definput"></asp:TextBox></li> <li>预防性维护的频次:</li> <li><asp:RadioButtonList ID="radwhpc" runat="server"> <asp:ListItem Value="1" Selected="True">A、无</asp:ListItem> <asp:ListItem Value="2">B、每半年一次</asp:ListItem> <asp:ListItem Value="3">B、每季度一次</asp:ListItem> <asp:ListItem Value="4">D、每年一次</asp:ListItem> </asp:RadioButtonList></li> </ul> <div class="menubt co333"> 其他</div> <ul class="newslist co737F8D"> <li>影响因素:</li> <li> <input type="checkbox" name="cboyxys" id="cboyxys1" value="1" /><label for="cboyxys1">A、球管预热</label> <br /> <input type="checkbox" name="cboyxys" id="cboyxys2" value="2" /><label for="cboyxys2">B、是否立即关机</label> <br /> <input type="checkbox" name="cboyxys" id="cboyxys3" value="3" /><label for="cboyxys3">C、参数设置 正确与否</label> <br /> <input type="checkbox" name="cboyxys" id="cboyxys4" value="4" /><label for="cboyxys4">D、扫描技巧</label> <br /> <input type="checkbox" name="cboyxys" id="cboyxys5" value="5" /><label for="cboyxys5">E、环境条件(湿度、温度、CT室空间大小 )</label> </li> </ul> <div class="submitDiv"> <asp:Button ID="Button1" runat="server" Text=" 完成并提交问卷 " onclick="Button1_Click" /></div> <div class="footer"> <p> <a href="#">dfsdfa社</a>|<a href="#">ddd</a>|<a href="#">&nbsp;&nbsp;返回顶部</a> </p> 联系电话:13910498436<br /> </div> </form> </body> </html>

 

posted @ 2014-05-26 15:27  xyzhuzhou  阅读(394)  评论(0编辑  收藏  举报