protected void Page_Load(object sender, EventArgs e)
    {
        #region header top picture
        tblLogsCollection picTopTbl = new tblLogsCollection();
        picTopTbl.ReadList();

        if (picTopTbl.Count > 0)
        {
            headerPicHtml.Attributes["style"] = "background: url(" + picTopTbl[0].logDetail + ")no-repeat;background-size: cover;background-position: center;";
        }
        #endregion



        #region company details

        tblCompanyCollection coDetTbl = new tblCompanyCollection();
        coDetTbl.ReadList();

        ownerWordHtml.InnerHtml = coDetTbl[0].CoOwnerWord;
        coDetHtml.InnerHtml     = coDetTbl[0].CoDetail;
        #endregion



        string portfolioStr = string.Empty;
        int    counter      = 0;
        tblPortfolioCompanyCollection companyPortfolioTbl = new tblPortfolioCompanyCollection();
        companyPortfolioTbl.ReadList();

        tblCompanyHonorsCollection companyHonorTbl = new tblCompanyHonorsCollection();
        companyHonorTbl.ReadList();

        portfolioStr += "<div class='row'>";

        for (int i = 0; i < companyPortfolioTbl.Count; i++)
        {
            if (counter == 4)
            {
                portfolioStr += "</div><div class='row'>";
                counter       = 0;
                portfolioStr += "<div class='col-md-4 col-sm-6 col-xs-12'><div class='icon-wrapper-portfolio wow fadeIn' data-wow-duration='1s' data-wow-delay='0.2s'>" +
                                "<img class='portfolio-img' src='images/portfolio/" + companyPortfolioTbl[i].picName + "' alt='" + companyPortfolioTbl[i].picName + "' /><h3>" + companyPortfolioTbl[i].title + "</h3>" +
                                "<p class='portfolio-para'>" + companyPortfolioTbl[i].details + "<small class='readmore'><a href='#'>Read more</a></small></p></div></div>";
            }
            counter++;
        }

        portfolioStr += "</div>";

        portfolioHtml.InnerHtml = portfolioStr;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        string serviceStr = string.Empty;
        tblServiceGroupCollection serviceGrpTbl = new tblServiceGroupCollection();
        tblServicePicCollection   servicePicTbl = new tblServicePicCollection();
        tblServicesCollection     serviceTbl    = new tblServicesCollection();

        int itemGet = 0;

        if (Request.QueryString["itemId"] != null)
        {
            itemGet = int.Parse(Request.QueryString["itemId"]);
            serviceTbl.ReadList(Criteria.NewCriteria(tblServices.Columns.idServiceGroup, CriteriaOperators.Equal, itemGet));
        }
        else
        {
            serviceTbl.ReadList();
        }



        for (int i = 0; i < serviceTbl.Count; i++)
        {
            serviceGrpTbl.ReadList(Criteria.NewCriteria(tblServiceGroup.Columns.id, CriteriaOperators.Equal, serviceTbl[i].idServiceGroup));
            servicePicTbl.ReadList(Criteria.NewCriteria(tblServicePic.Columns.idService, CriteriaOperators.Equal, serviceTbl[i].id));

            serviceStr += "<div class='col-md-4 col-sm-6 col-xs-12'>" +
                          "<div class='grid1'><span>" + serviceGrpTbl[0].ServiceGroupTitle + "</span>" +
                          "<div class='price-tit text-center'>" +
                          "<img src='images/service/" + servicePicTbl[0].picName + "' alt='bondelectric " + servicePicTbl[0].picName + "' class='service-image' />" +
                          "<h2>" + serviceTbl[i].ServiceTitle + "</h2><p>" + serviceGrpTbl[0].ServiceGroupDetail + "</p></div>" +
                          "<div class='para'><p>" + serviceTbl[i].ServiceDetail + "</p></div></div></div>";
        }

        serviceStr += "<div class='clear'> </div>";

        serviceHtml.InnerHtml = serviceStr;

        #region header top picture
        tblLogsCollection picTopTbl = new tblLogsCollection();
        picTopTbl.ReadList();
        if (picTopTbl.Count > 0)
        {
            headerPicHtml.Attributes["style"] = "background: url(" + picTopTbl[0].logDetail + ")no-repeat;background-size: cover;background-position: center;";
        }
        #endregion
    }
Beispiel #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int itemGet = 0;

        if (Request.QueryString["itemNo"] != null)
        {
            itemGet = int.Parse(Request.QueryString["itemNo"]);
        }
        else
        {
            Response.Redirect("default.aspx");
        }

        string servicesString             = string.Empty;
        tblServicesCollection servicesTbl = new tblServicesCollection();

        servicesTbl.ReadList(Criteria.NewCriteria(tblServices.Columns.idServiceGroup, CriteriaOperators.Equal, itemGet));

        tblServiceGroupCollection serviceGrpTbl = new tblServiceGroupCollection();

        serviceGrpTbl.ReadList(Criteria.NewCriteria(tblServiceGroup.Columns.id, CriteriaOperators.Equal, itemGet));

        tblServicePicCollection servicePicTbl = new tblServicePicCollection();

        for (int i = 0; i < servicesTbl.Count; i++)
        {
            servicePicTbl.ReadList(Criteria.NewCriteria(tblServicePic.Columns.idService, CriteriaOperators.Equal, servicesTbl[i].id));

            servicesString += "<div class='col-md-3'><div class='message-box'>" +
                              "<h4>" + serviceGrpTbl[0].ServiceGroupTitle + "</h4>" +
                              "<img src='images/service/" + servicePicTbl[0].picName + "' alt='bondelectric " + servicePicTbl[0].picName + "' />" +
                              "<h2>" + servicesTbl[i].ServiceTitle + "</h2>" +
                              "<p>" + servicesTbl[i].ServiceDetail + "</p></div></div>";
        }
        servicesHtml.InnerHtml = servicesString;

        #region header top picture
        tblLogsCollection picTopTbl = new tblLogsCollection();
        picTopTbl.ReadList();
        //if (picTopTbl.Count > 0)
        //headerPicHtml.Attributes["style"] = "background: url(" + picTopTbl[0].logDetail + ")no-repeat;background-size: cover;background-position: center;";
        #endregion
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        string infStr  = "<div class='row'>";
        int    counter = 0;
        tblInformationPicCollection    infPicTbl = new tblInformationPicCollection();
        tblInformationDetailCollection infTbl    = new tblInformationDetailCollection();

        infTbl.ReadList();

        for (int i = 0; i < infTbl.Count; i++)
        {
            if (counter == 4)
            {
                infStr  = "</div><hr class='hr3'><div class='row'>";
                counter = 0;
            }
            infPicTbl.ReadList(Criteria.NewCriteria(tblInformationPic.Columns.infId, CriteriaOperators.Equal, infTbl[i].id));
            infStr += "<div class='col-md-4 col-sm-6 col-xs-12'><div class='icon-wrapper-portfolio wow fadeIn' data-wow-duration='1s' data-wow-delay='0.2s'>";
            if (infTbl[i].frontFile.Length > 0)
            {
                infStr += "<img class='portfolio-img' src='images/info/" + infTbl[i].frontFile + "' alt='bondelectric " + infTbl[i].frontFile + "' />";
            }

            infStr += "<h3>" + infTbl[i].infDetailTitle + "</h3>" +
                      "<p class='portfolio-para'>" + infTbl[i].infDetailDescription + "<small class='readmore'><a href='information-details.aspx?itemNo=" + infTbl[i].id + "'>Read more</a></small></p></div></div>";
            counter++;
        }

        infStr += "</div>";

        infHtml.InnerHtml = infStr;

        #region header top picture
        tblLogsCollection picTopTbl = new tblLogsCollection();
        picTopTbl.ReadList();
        if (picTopTbl.Count > 0)
        {
            headerPicHtml.Attributes["style"] = "background: url(" + picTopTbl[0].logDetail + ")no-repeat;background-size: cover;background-position: center;";
        }
        #endregion
    }
Beispiel #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string           faqStr  = "<div class='row'>";
        int              counter = 0;
        tblFAQCollection faqTbl  = new tblFAQCollection();

        faqTbl.ReadList();

        for (int i = 0; i < faqTbl.Count; i++)
        {
            if (counter == 3)
            {
                faqStr += "</div><div class='row'>";
                counter = 0;
            }
            faqStr += "<div class='col-md-4 col-sm-6 col-xs-12'><div class='testimonial clearfix'>" +
                      "<div class='desc'><h3><i class='fa fa-commenting'></i> " + faqTbl[i].faqTitle + "</h3>" +
                      "<p class='lead'>" + faqTbl[i].faqDetail + "</p></div>" +
                      "</div></div>";
            counter++;
        }

        faqStr += "</div>";


        faqHtml.InnerHtml = faqStr;

        #region header top picture
        tblLogsCollection picTopTbl = new tblLogsCollection();
        picTopTbl.ReadList();
        if (picTopTbl.Count > 0)
        {
            headerPicHtml.Attributes["style"] = "background: url(" + picTopTbl[0].logDetail + ")no-repeat;background-size: cover;background-position: center;";
        }
        #endregion
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        string headerStr = string.Empty; string headerDetStr = string.Empty; string galleryItemsStr = string.Empty; int counter = 0;

        #region Reading post values

        tblGalleryGroupCollection    galleryGrpTbl = new tblGalleryGroupCollection();
        tblGalleryPicturesCollection galleryTbl    = new tblGalleryPicturesCollection();

        int itemGet = 0;
        if (Request.QueryString["itemId"] != null)
        {
            itemGet = int.Parse(Request.QueryString["itemId"]);
            galleryGrpTbl.ReadList(Criteria.NewCriteria(tblGalleryGroup.Columns.id, CriteriaOperators.Equal, itemGet));
            galleryTbl.ReadList(Criteria.NewCriteria(tblGalleryPictures.Columns.idGroup, CriteriaOperators.Equal, itemGet));
            headerStr    = galleryGrpTbl[0].GalleryGroupTitle;
            headerDetStr = galleryGrpTbl[0].GalleryGroupDetail;
        }
        else
        {
            Response.Redirect("default.aspx");
        }

        #endregion

        #region filling header text

        headerGalleryHtml.InnerHtml = "<h3>" + headerStr + "</h3><p class='lead'>" + headerDetStr + "</p>";

        #endregion

        #region items filling

        galleryItemsStr += "<div class='gallery-row'>";
        for (int i = 0; i < galleryTbl.Count; i++)
        {
            if (counter == 4)
            {
                galleryItemsStr += "</div><div class='gallery-row'>";
                counter          = 0;
            }
            galleryItemsStr += "<div class='col-lg-3 col-md-3 col-sm-12 col-xs-12 wow fadeIn' data-wow-duration='1s' data-wow-delay='0.2s'>" +
                               "<div class='widget clearfix'><img src='" + galleryTbl[i].GalleryPicAddr + galleryTbl[i].GalleryPicName + "' alt='bondelectric '" + galleryTbl[i].GalleryPicName + "' class='img-responsive'>" +
                               "<div class='widget-title'><h3>" + galleryTbl[i].GalleryPicTitle + "</h3></div><p>" + galleryTbl[i].GalleryPicDetail + "</p>" +
                               "<hr></div></div>";

            counter++;
        }

        gallertItemsHtml.InnerHtml = galleryItemsStr;

        #endregion

        #region header top picture
        tblLogsCollection picTopTbl = new tblLogsCollection();
        picTopTbl.ReadList();
        if (picTopTbl.Count > 0)
        {
            headerPicHtml.Attributes["style"] = "background: url(" + picTopTbl[0].logDetail + ")no-repeat;background-size: cover;background-position: center;";
        }
        #endregion
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        string newsGrpStr = string.Empty;
        tblNewsGroupCollection newsGrpTbl = new tblNewsGroupCollection();

        newsGrpTbl.ReadList();

        #region news Group
        for (int i = 0; i < newsGrpTbl.Count; i++)
        {
            newsGrpStr += "<li><a class='btn btn-light grd1 effect-1 btn-radius btn-brd' href='news.aspx?itemId=" + newsGrpTbl[i].id + "'>" + newsGrpTbl[i].newsGroupTitle + "</a><li>";
        }
        newsGrpHtml.InnerHtml = newsGrpStr;

        #endregion

        string newsDetStr = "<div class='row dev-list text-center'>";
        int    counter    = 0;
        tblNewsPicCollection     newsPicTbl = new tblNewsPicCollection();
        tblNewsDetailsCollection newsDetTbl = new tblNewsDetailsCollection();

        int itemGet = 0;
        if (Request.QueryString["itemId"] != null)
        {
            itemGet = int.Parse(Request.QueryString["itemId"]);
            newsDetTbl.ReadList(Criteria.NewCriteria(tblNewsDetails.Columns.idGroup, CriteriaOperators.Equal, itemGet));
        }
        else
        {
            newsDetTbl.ReadList();
        }

        #region news
        for (int i = 0; i < newsDetTbl.Count; i++)
        {
            if (counter == 4)
            {
                newsDetStr = "</div><div class='row dev-list text-center'>";
                counter    = 0;
            }
            newsPicTbl.ReadList(Criteria.NewCriteria(tblNewsPic.Columns.newsId, CriteriaOperators.Equal, newsDetTbl[i].id));
            newsDetStr += "<div class='col-lg-4 col-md-4 col-sm-12 col-xs-12 wow fadeIn' data-wow-duration='1s' data-wow-delay='0.2s'>" +
                          "<div class='widget clearfix'>";
            //picture
            if (newsDetTbl[i].topPageFileType == 0)
            {
                newsDetStr += "<img src='" + newsDetTbl[i].topPageFileAddr + "' alt='bondelectric " + newsDetTbl[i].newsDetTitle + "' class='img-responsive'>";
            }
            //movie
            else if (newsDetTbl[i].topPageFileType == 1)
            {
                newsDetStr += "<div><video id='video1'><source src='" + newsDetTbl[i].topPageFileAddr + "' type='video/mp4'>Your browser does not support HTML5 video.</video></div>";
            }
            //external link
            else
            {
                newsDetStr += newsDetTbl[i].topPageFileAddr;
            }

            newsDetStr += "<div class='widget-title'><h3>" + newsDetTbl[i].newsDetTitle + "</h3><small>" + newsDetTbl[i].newsDetSubtitle + "</small></div>" +
                          "<p>" + newsDetTbl[i].newsDetGist + "</p>" +
                          "<hr><a href='news-details.aspx?itemNo=" + newsDetTbl[i].id + "' data-scroll class='btn btn-light grd1 effect-1 btn-radius btn-brd'>Read more</a></div></div>";

            counter++;
        }
        newsDetStr           += "</div>";
        newsDetHtml.InnerHtml = newsDetStr;

        #endregion

        #region header top picture
        tblLogsCollection picTopTbl = new tblLogsCollection();
        picTopTbl.ReadList();
        if (picTopTbl.Count > 0)
        {
            headerPicHtml.Attributes["style"] = "background: url(" + picTopTbl[0].logDetail + ")no-repeat;background-size: cover;background-position: center;";
        }
        #endregion
    }