﻿// JScript 文件

    function Person(firstName, lastName, bcid, colorValue, spanId, spantd)
    {
        //私有变量：
        var _firstName = firstName;
        var _lastName = lastName;
        var _colorValue=colorValue;
        var _spanId=spanId;
        var _spantd=spantd;
        var _bcid=bcid;

        //公共变量:
        //this.bcid = bcid;
        
         //方法：
        this.getNameid = function()
        {
            return(bcid);
        };
            
        //方法：
        this.getName = function()
        {
            return(firstName + " " + lastName);
        };
        
        //表格题目的值-方法；
        this.CmakeBiaoti=function()
        {
            return(document.all(spanId).innerHTML="<font style=\"font-size:14px; line-height:135%; font-weight:bold; color:"+colorValue+"\">"+firstName+"</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:#ffffff; font-size:12px;\">"+lastName+"</font>");
        };
        
        
        //排列的四个表格
        this.CmakeTable=function(sid,pic)
        {
            return("<div id=\"xiaoleitable\" style=\"width:234px; float:left; border-right:2px dashed #ddd; \">\
<div id=\"xiaoleitable1\" style=\"width:230px; height:22px; background-image:url(../images/webimages/news/News_Default_Title_Bj.jpg); background-repeat:repeat-x; background-position:center;\">\
<div id=\"leibieleft\" style=\"float:left; margin:5px; height:15px; padding-left:5px; background-color:#ffffff;  padding-top:5px; border-left:2px solid "+colorValue+"; background-color:#ffffff; width:90px; border-right:2px solid "+colorValue+";\"><a href=\"../News/List-"+bcid+"-"+sid+".aspx\"><font style=\"font-size:13px; font-weight:bold; color="+colorValue+"\">"+News.Show_Biaoti(sid).value+"</font></a></div>\
    <div id=\"leibieright\" style=\"float:right; width:45px; height:24px; padding-left:3px; padding-top:5px; background-color:#ffffff;\"><a href=\"../News/List-"+bcid+"-"+sid+".aspx\"><img src=\"../images/webimages/news/News_Default_Title_More.jpg\" width=\"39\" height=\"11\" border=\"0\"></a></div>\
</div>\
<div id=\"xiaoleibieimg\" style=\" width:230px;\" ><img name=\"../images/webimages/news/News_Default_Main_r3_c1\" src=\"../uploads/adv/"+pic+"\" width=\"219\" height=\"80\" border=\"0\" alt=\"\"></div>\
<div class=\"newliebiao\"   style=\"width:230px;\">"+News.Show_NewsLiebiao(bcid,sid).value+"</div>\
</div>");
        };
        
        
        this.BinDingFenlei=function(info,pic)
        {
        
            var ss=new Array();
            var picu="New_Defalut-"+bcid+"-";
            var tds='';
            ss=info;
            for(i=0;i<ss.length;i++)
            {   
                picus=picu+i+".jpg";
                tds+=ShowMain.CmakeTable(ss[i],picus);
            }
            document.all(spantd).innerHTML=tds;
        }
        

    };
    
    
  