<!DOCTYPE html>
<% language=javascript %>
<html>
<head lang="en">
    <meta charset="GB2312">
    <title></title>
    <link href="css/style.css" title="style" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.6.3.min.js"></script>

</head>
<body style="background: #F3F3F3">
<div class="append">
</div>
<script>
  var itype=3076;

<% db_Open("/NandFlash/dbCfg.db3"); %>
var sid=<% write(sid);%>;
var json=<% db_QryAdv("select * from tbSM where SID="+sid,0); %>;
<% db_Close(); %>
	
  $(function(){
    $("span:contains('故障'),span:contains('告警'),span:contains('闭合'),span:contains('关闭')").addClass("red").removeClass("ger");
    $("span:contains('正常')").addClass("ger").removeClass("red");
  });
  list3(json);
  function list3(data){
    var q='';
    $.each(data.recs,function(i,n){
        var user=n.SerDef.split(":");
        sip=user[0]; sport=user[1];
        vUser=user[2]; vPwd=user[3];
        q+="<div class='type3075 empty' style='margin: 10px;'>";
        q+="<table width='100%' style='margin-bottom: 20px'>";
        q+="<tr><td style='border: none'> <h1>网络相机CAMIP100</h1></td></tr>";
        q+="</table>";
        q+="<div  style='width: 100%;text-align: center'>";
        q+="<form id='fo1'>";
        q+="<object codebase='ocx/playerocx.cab#version=1,0,43,38' width='80%' height='500px' classid='clsid:767F186F-A8C6-4777-9C58-BCB5F1E909D3' id='player'>";
        q+="<param name='_Version' value='65536'>"
        q+="<param name='_ExtentX' value='13441'>"
        q+="<param name='_ExtentY' value='11615'>"
        q+="<param name='_StockProps" value="0'>"
        q+="</object></form>";
        q+="<input style='width: 100px;height: 30px;margin: 0 30px' onclick='OnClickPlay123()' type='button' value='播放'>";
        q+="<input style='width: 100px;height: 30px;margin: 0 30px' onclick='OnClickStop123()'  type='button' value='停止'>";
        q+="</div>";
        q+="<a href='javascript:history.back()' class='back' style='color: #fff'>返回</a>";
        q+="</div>";
    });
    $(".append").html(q)
  }
  function OnClickPlay123() {
    document.getElementById("fo1").player.startVideoPlayer(sip, 1, sport, 1, 2, 1, vUser, vPwd, 1);
  }
  function OnClickStop123() {
    document.getElementById("fo1").player.stopVideo();
  }

</script>
</body>
</html>