protected void Page_Load(object sender, EventArgs e)
    {
        string           faqString = string.Empty;
        tblFAQCollection faqTbl    = new tblFAQCollection();

        faqTbl.ReadList();

        for (int i = 0; i < faqTbl.Count; i++)
        {
            faqString += "<div class='mediabox'><i class='fa fa-sitemap'></i>" +
                         "<h3>" + faqTbl[i].faqTitle + "</h3>" +
                         "<p>" + faqTbl[i].faqDetail + "</p><a href='faq-delete.aspx?itemCode=" + faqTbl[i].id + "'>Delete</a></div>";
        }

        faqHtml.InnerHtml = faqString;
    }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            tblFAQCollection faqTbl = new tblFAQCollection();
            faqTbl.ReadList();

            string faqStr = "<h4 class='headInModule common_font'><a name='blockquote'></a>سوالات رایج درباره عسل:</h4><br />";
            if (faqTbl.Count > 0)
            {
                for (int i = 0; i < faqTbl.Count; i++)
                {
                    #region faq side questions
                    faqQuestionsHtml.InnerHtml += "<li class='menu-item'><a href='#a1'>" + faqTbl[i].faqTitle + "</a><span class='menu_marker'></span></li>";
                    #endregion

                    #region faq questions

                    faqStr += "<blockquote class='type2'><div class='blockquote_wrapper' style='padding-right: 50px;'>" +
                              "<p class='common_font' style='line-height: 32px;'>" + faqTbl[i].faqTitle + "</p>" +
                              "<a class='faq_query common_font' name='a1' style='text-align: left;'>پورحیدر</a>" +
                              "</div></blockquote>";
                    #endregion

                    #region faq answers
                    faqStr += "<div class='faq_div'><p class='common_font' style='line-height: 32px;'>" + faqTbl[i].faqDetail + "</p></div>";
                    #endregion
                }
            }

            faqHtml.InnerHtml = faqStr;
        }
        catch (Exception)
        {
            faqHtml.InnerHtml += "هیج سوال و جواب رایجی وجود ندارد.";
        }
    }
Beispiel #3
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
    }