<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="user.aspx.cs" Inherits="ToolsCRM.user" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Panel Użytkownika</title>
    <link rel="stylesheet" href="js/style.css" type="text/css" media="screen" />
    <style type="text/css">
        .Buttonstyle1out
        {
            width: 127px;
	        background: url('../images/button.png') no-repeat left center;
            margin-top: 5px;
            cursor:default;
        }
        .Buttonstyle1hover
        {
            width: 127px;
	        background: url('../images/button.png') no-repeat left center;
            margin-top: 5px;
            cursor:pointer;
        } 
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div id="header">
            <div id="logo">
                <h1><a href="Index.aspx">ToolsCRM</a></h1>
                <p><a href="http://crm.dynamics.com/pl-pl/home">Microsoft Dynamics CRM</a></p>
            </div>
            <div id="menu">
                <ul>
                    <li class="current_page_item"><a href="#"></a></li>
                    <li><a href="#"></a></li>
                    <li><a href="#"></a></li>
                    <li><a href="#"></a></li>
                    <li>
                        <div class="post">
                            <p class="links">
                                <asp:Button ID="Wyloguj" runat="server" Text="Wyloguj" OnClick="Wyloguj_Click" BorderStyle="None" CssClass="more" Font-Bold="True" ForeColor="White" Width="129px" onMouseOver="this.className='Buttonstyle1hover'" onMouseOut="this.className='Buttonstyle1out'"  />
                            </p>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        <div id="page">


            <div id="sidebar">
                <ul>
                    <li id="search" style="background: none;">
                        <div>
                            <input type="text" name="s" id="s" size="15" />
                            <br />
                            <input type="submit" value="Search" />
                        </div>
                    </li>
                    <li>
                        <h2>Moja Praca</h2>
                        <ul>
                            <li><a href="user_sites/Activities.aspx">Działania</a></li>
                            <li><a href="user_sites/Agenda.aspx">Kalendarz</a></li>
                            <li><a href="user_sites/Articles.aspx">Konkurenci</a></li>
                            <li><a href="user_sites/License.aspx">Informacja o Licencjach</a></li>
                        </ul>
                    </li>
                    <li>
                        <h2>Klienci</h2>
                        <ul>
                            <li><a href="user_sites/Account.aspx">Konta</a></li>
                            <li><a href="user_sites/Contacts.aspx">Kontakty</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!-- end sidebar -->




            <div class="post">
                <div id="content">
                    <div class="title">
                        <h2><a href="#">Witaj
                            <asp:Label ID="Label1" runat="server"></asp:Label></a></h2>
                    </div>



                    <div class="entry">
                        Zarządzaj swoimi kontaktami
                    <div class="entry">
                        <!--This example lists all contacts from the Microsoft Dynamics CRM system. -->

                        <div class="auto-style1">
                            <asp:GridView ID="GridView1" AutoGenerateColumns="False" runat="server"
                                Width="100%"
                                DataKeyNames="firstname,lastname,emailaddress1,address1_city,createdon,accountrolecode,statecode" OnDataBound="GridView1_DataBound" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical">

                                <AlternatingRowStyle BackColor="White" />

                                <Columns>
                                    <asp:BoundField DataField="firstname"
                                        HeaderText="Imię" />
                                    <asp:BoundField DataField="lastname"
                                        HeaderText="Nazwisko" />
                                    <asp:BoundField DataField="emailaddress1"
                                        HeaderText="email" />
                                    <asp:BoundField DataField="address1_city"
                                        HeaderText="Miasto" />
                                    <asp:BoundField DataField="createdon"
                                        HeaderText="Utworzony" />
                                    <asp:BoundField DataField="accountrolecode"
                                        HeaderText="Rola" />
                                    <asp:BoundField DataField="statecode"
                                        HeaderText="Stan" />
                                </Columns>
                                <FooterStyle BackColor="#CCCC99" />
                                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                                <RowStyle BackColor="#F7F7DE" />
                                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                <SortedAscendingCellStyle BackColor="#FBFBF2" />
                                <SortedAscendingHeaderStyle BackColor="#848384" />
                                <SortedDescendingCellStyle BackColor="#EAEAD3" />
                                <SortedDescendingHeaderStyle BackColor="#575357" />
                            </asp:GridView>
                        </div>



                    </div>
                    </div>

                    Pilnuj swoich aktualnych zadań
                    <div class="entry">
                        <asp:GridView ID="GridView2" AutoGenerateColumns="False" runat="server"
                            Width="100%"
                            DataKeyNames="activitytypecode,subject,prioritycode,scheduledstart,scheduledend" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical">

                            <AlternatingRowStyle BackColor="White" />

                            <Columns>
                                <asp:BoundField DataField="activitytypecode"
                                    HeaderText="Typ działania" />
                                <asp:BoundField DataField="subject"
                                    HeaderText="Temat" />
                                <asp:BoundField DataField="prioritycode"
                                    HeaderText="Priorytet" />
                                <asp:BoundField DataField="scheduledstart"
                                    HeaderText="Data Rozpoczęcia" />
                                <asp:BoundField DataField="scheduledend"
                                    HeaderText="Data Zakończenia" />
                            </Columns>

                            <FooterStyle BackColor="#CCCC99" />
                            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                            <RowStyle BackColor="#F7F7DE" />
                            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#FBFBF2" />
                            <SortedAscendingHeaderStyle BackColor="#848384" />
                            <SortedDescendingCellStyle BackColor="#EAEAD3" />
                            <SortedDescendingHeaderStyle BackColor="#575357" />

                        </asp:GridView>


                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>

