<%@ Page Title="" Language="C#" MasterPageFile="~/mstr1.Master" AutoEventWireup="true" CodeBehind="ViewSinglePost.aspx.cs" Inherits="CarGallery.ViewSinglePost" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="css/styles.css" />
    <link rel="stylesheet" href="css/iview.css" />
    <link rel="stylesheet" href="css/skin 4/style.css" />
    <script src="js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="js/raphael-min.js"></script>
    <script type="text/javascript" src="js/jquery.easing.js"></script>
    <script src="js/iview.js"></script>
    </head>


    <!--> in qesmat vase namayeshe post e takii hastesh </!-->
    <div style="width:98%;height:auto;margin-top:1%;margin-bottom:1%;margin-left:1%;margin-right:1%;direction:rtl">
        
        <!--> in vase axi hast ke to oon safhe neshoon mide ,  border-radius:20px baes mishe dore object gerd beshe</!-->
        <asp:Image runat="server" style="width:100%;height:auto;position:relative;border-radius:20px" ID="image"/>

        <div style="position:absolute;top:100px;right:50px;">

            <!--> va inja ham etela ate dige ... </!-->
            <div class="iview-caption caption1" style="font-size:22px;font-weight:bold;text-align:left;width:200px;border-radius:10px" data-x="0" data-y="0" data-transition="expandDown">
                <asp:Label runat="server" ID="lblTitle"></asp:Label>
                <br />
                <asp:label runat="server" ID="lbldescription" Font-Bold="false" Font-Size="14px" style="text-wrap:avoid;width:200px;height:auto"></asp:label>
                <br />
                <br />
                <asp:label runat="server" ID="lblPostCreator" Font-Bold="false" Font-Size="14px" style="text-wrap:avoid;width:200px;height:auto" Text ="Posted By : Admin"></asp:label>
                <br />
                <asp:label runat="server" ID="lblDateTime" Font-Bold="false" Font-Size="14px" style="text-wrap:avoid;width:200px;height:auto" Text ="Date : 2015-12-12 12:43PM"></asp:label>
                <br />
                <asp:label runat="server" ID="lblvisits" Font-Bold="false" Font-Size="14px" style="text-wrap:avoid;width:200px;height:auto" Text ="visits : 2998"></asp:label>
                <br />
                <asp:LinkButton runat="server" ID="lbtnViewFull"  Font-Bold="false" Font-Size="14px" Text="View Full Resolution"  OnClientClick="document.forms[0].target = '_blank';" OnClick="lbtnViewFull_Click"></asp:LinkButton>
            </div>
        </div>
    </div>



    <!--> inja oon object hayi hast ke vase nazar dadan lazeme </!-->
    
    <div style="background:url(img/bg2.png);float:left;border-radius:10px;width:30%;min-width:170px;text-align:center;height:auto;margin:0% 1% 1% 1%">
        <div style="padding:10px 10px 10px 10px;width:auto">
        <table style="width:100%">
            <tr>
                <td height="30px">
                    Name :&nbsp;&nbsp
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtName" MaxLength="50" Height="20px" style="width:100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td height="30px">
                    Email :&nbsp;&nbsp
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtEmail" MaxLength="50" Height="20px" style="width:100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="vertical-align:top">
                    Message :&nbsp;&nbsp
                </td>
                <td>
                    <asp:TextBox runat="server" TextMode="MultiLine" ID="txtMessage" style="width:100%" Height="100px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="height:35px;vertical-align:central"></td>
                <td>
                    <asp:Button runat="server" ID="btnSubmit" Text="Submit" Width="100px" Height="30px" OnClick="btnSubmit_Click" />
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <asp:Label runat="server" ID="lblMessage" Font-Bold="true" Font-Size="14px"></asp:Label>
                </td>
            </tr>
        </table>
        </div>
    </div>



    <!--> ghesmate comment ha </!-->
    <div style="float:left;margin:0% 1% 1% 0%;height:auto;width:67%;background-image:url(img/bg2.png);border-radius:15px">
        <div style=""></div>
            

        <!--> ye objecti darim be esme gridview ke etela at ro be soorate grid ya satri namayesh mide 
            in az Eval estefade nemikone , bejash az Bind estefade mikone va dakhele Bind ham esme Column i hast ke to DataTable tarif shode </!-->

        <!-->  PageSize = "5" , in tedade satr hayi ke to harsafhe bayad namayesh dade beshe ro moshakhas mikone </!-->

            <asp:GridView ID="gridView1" style="width:96%;margin: 10px 10px 10px 10px" runat="server" ShowHeader="false" Font-Size="14px" AutoGenerateColumns="False" DataKeyNames="id" OnRowCommand="gridView1_RowCommand" OnRowEditing="gridView1_RowEditing" AllowPaging="True" PageSize="5" OnPageIndexChanging="gridView1_PageIndexChanging" ForeColor="#333333">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>

                                <div style="float:left;width:100%;background-color:lightsteelblue;height:auto;margin:2px 2px 2px 0px">
                                    &nbsp<asp:Label ID="lblName2" style="margin-top:5px" runat="server" Height="20px" Text='<%#Bind("name") %>'></asp:Label>
                                    &nbsp|&nbsp
                                    <asp:Label ID="lblDateTime2" runat="server" Text='<%#Bind("datetime") %>'></asp:Label>&nbsp
                                </div>

                                <div style="width:100%;height:auto;margin-top:4px;margin-bottom:2px;margin-left:5px">
                                    <asp:Label ID="lblMessage" style="margin-left:2px;margin-right:2px;text-wrap:avoid;" runat="server" Text='<%#Bind("description") %>'></asp:Label>
                                </div>
                                <hr />
                            </ItemTemplate>
                        </asp:TemplateField>

                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Height="30px" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" Height="20px" HorizontalAlign="center" Font-Size="14px" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            
    </div>
</asp:Content>
