<%@ Page Language="C#"
Title="Portail Bourse"
 MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="portailbourse.aspx.cs" Inherits="portailbourse"  Theme="general" %>
<%@ Register Namespace="lib6f_cs" TagPrefix="wp" %>

<%@ Register Src="simulationpret.ascx" TagName="simulationpret" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:WebPartManager ID="MyPartManager" runat="server" 
    CloseProviderWarning="Vous vous apprêtez à fermer cet élément. S'il est en train de fournir des données à un autre élément, la connexion et l'élément vous être aussi fermés. Pour fermer cet élément, cliquez sur OK. Pour garder cet élément, cliquez sur Annuler."
    DeleteWarning="Vous êtes sur le point de supprimer un élément. Confirmez par OK, ou bien faites Annuler"
    ExportSensitiveDataWarning="Cette page contient des éléments personnalisés. Vérifiez que des mots de passes ne sont pas accessibles."
    >
        <StaticConnections>
            <asp:WebPartConnection ID="ba" 
                ConsumerID="result" ProviderID="searcher" ConsumerConnectionPointID="Liste">
            </asp:WebPartConnection>
        </StaticConnections>
    </asp:WebPartManager>
    <table>
        <tr>
            <td>
            </td>
            <td valign="top">
                Organiser ma page 
                <br />
                <asp:Menu ID="PartsMenu" runat="server" OnMenuItemClick="PartsMenu_MenuItemClick">
                </asp:Menu>
                <br />
                <asp:CatalogZone ID="CatalogZone1" runat="server" EmptyZoneText="Le catalogue ne convient aucun élément"
                    HeaderText="Catalogue" InstructionText="Sélectionnez dans le catalogue l'élément à afficher" SelectTargetZoneText="Ajouter vers :" VerbButtonType="Link" BackColor="#F7F6F3" BorderColor="#CCCCCC" BorderWidth="1px" Font-Names="Verdana" Padding="6">
                    <ZoneTemplate>
                        <asp:PageCatalogPart ID="PageCatalogPart1" runat="server" Title="Catalogue des &#233;l&#233;ments" />
                    </ZoneTemplate>
                    <AddVerb Description="Ajoute un &#233;l&#233;ment &#224; une zone" Text="Ajouter" />
                    <CloseVerb Text="Fermer" />
                    <HeaderCloseVerb Description="Ferme la zone" />
                    <HeaderVerbStyle Font-Bold="False" Font-Size="0.8em" Font-Underline="False" ForeColor="#333333" />
                    <PartTitleStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.8em" ForeColor="White" />
                    <PartChromeStyle BorderColor="#E2DED6" BorderStyle="Solid" BorderWidth="1px" />
                    <InstructionTextStyle Font-Size="0.8em" ForeColor="#333333" />
                    <PartLinkStyle Font-Size="0.8em" />
                    <EmptyZoneTextStyle Font-Size="0.8em" ForeColor="#333333" />
                    <LabelStyle Font-Size="0.8em" ForeColor="#333333" />
                    <VerbStyle Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" />
                    <PartStyle BorderColor="#F7F6F3" BorderWidth="5px" />
                    <SelectedPartLinkStyle Font-Size="0.8em" />
                    <FooterStyle BackColor="#E2DED6" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#E2DED6" Font-Bold="True" Font-Size="0.8em" ForeColor="#333333" />
                    <EditUIStyle Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" />
                </asp:CatalogZone>
                &nbsp;&nbsp;
                <asp:ConnectionsZone ID="ConnectionsZone1" runat="server" BackColor="#F7F6F3" BorderColor="#CCCCCC"
                    BorderWidth="1px" Font-Names="Verdana" Padding="6">
                    <LabelStyle Font-Size="0.8em" ForeColor="#333333" />
                    <FooterStyle BackColor="#E2DED6" HorizontalAlign="Right" />
                    <VerbStyle Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" />
                    <HeaderVerbStyle Font-Bold="False" Font-Size="0.8em" Font-Underline="False" ForeColor="#333333" />
                    <HeaderStyle BackColor="#E2DED6" Font-Bold="True" Font-Size="0.8em" ForeColor="#333333" />
                    <InstructionTextStyle Font-Size="0.8em" ForeColor="#333333" />
                    <EditUIStyle Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" />
                </asp:ConnectionsZone>
            </td>
            <td valign="top">
                <asp:WebPartZone ID="zonePrincipale" runat="server" EmptyZoneText="Ajoutez des éléments en les faisant glisser sur cette ligne." BorderColor="#CCCCCC" Font-Names="Verdana" Padding="6">
                    <ZoneTemplate>
                    <wp:SearchWebPart id="searcher" runat="server" />
                    <wp:ResultWebPart ID="result" runat="server" />
                    
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id_soc" DataSourceID="SqlDataSource1" OnLoad="GridView1_Load" CellPadding="4" ForeColor="#333333" GridLines="None">
                            <Columns>
                                <asp:BoundField DataField="id_soc" HeaderText="id_soc" InsertVisible="False" ReadOnly="True"
                                    SortExpression="id_soc" />
                                <asp:BoundField DataField="societe" HeaderText="societe" SortExpression="societe" />
                                <asp:BoundField DataField="cours" HeaderText="cours" SortExpression="cours" />
                                <asp:BoundField DataField="evolution" HeaderText="evolution" SortExpression="evolution" />
                            </Columns>
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <AlternatingRowStyle BackColor="White" />
                            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        </asp:GridView>                                            
                    </ZoneTemplate>
                    <PartChromeStyle BackColor="#F7F6F3" BorderColor="#E2DED6" Font-Names="Verdana" ForeColor="White" />
                    <EditVerb Text="Modifier" />
                    <DeleteVerb Text="Supprimer" />
                    <CloseVerb Text="Fermer" />
                    <MinimizeVerb Text="Minimiser" />
                    <MenuLabelHoverStyle ForeColor="#E2DED6" />
                    <EmptyZoneTextStyle Font-Size="0.8em" />
                    <MenuLabelStyle ForeColor="White" />
                    <MenuVerbHoverStyle BackColor="#F7F6F3" BorderColor="#CCCCCC" BorderStyle="Solid"
                        BorderWidth="1px" ForeColor="#333333" />
                    <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
                    <MenuVerbStyle BorderColor="#5D7B9D" BorderStyle="Solid" BorderWidth="1px" ForeColor="White" />
                    <PartStyle Font-Size="0.8em" ForeColor="#333333" />
                    <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
                    <MenuPopupStyle BackColor="#5D7B9D" BorderColor="#CCCCCC" BorderWidth="1px" Font-Names="Verdana"
                        Font-Size="0.6em" />
                    <PartTitleStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.8em" ForeColor="White" />
                    <ConnectVerb Text="Connecter" />
                    <RestoreVerb Text="Restorer" />
                </asp:WebPartZone>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td valign="top">
                <asp:EditorZone ID="EditorZone1" runat="server" BackColor="#F7F6F3" BorderColor="#CCCCCC" BorderWidth="1px" Font-Names="Verdana" Padding="6">
                    <ZoneTemplate>
                        <asp:PropertyGridEditorPart ID="PropertyGridEditorPart1" runat="server" />
                        <asp:AppearanceEditorPart ID="AppearanceEditorPart1" runat="server" />
                        
                    </ZoneTemplate>
                    <HeaderStyle BackColor="#E2DED6" Font-Bold="True" Font-Size="0.8em" ForeColor="#333333" />
                    <LabelStyle Font-Size="0.8em" ForeColor="#333333" />
                    <HeaderVerbStyle Font-Bold="False" Font-Size="0.8em" Font-Underline="False" ForeColor="#333333" />
                    <PartChromeStyle BorderColor="#E2DED6" BorderStyle="Solid" BorderWidth="1px" />
                    <PartStyle BorderColor="#F7F6F3" BorderWidth="5px" />
                    <FooterStyle BackColor="#E2DED6" HorizontalAlign="Right" />
                    <EditUIStyle Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" />
                    <InstructionTextStyle Font-Size="0.8em" ForeColor="#333333" />
                    <ErrorStyle Font-Size="0.8em" />
                    <VerbStyle Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" />
                    <EmptyZoneTextStyle Font-Size="0.8em" ForeColor="#333333" />
                    <PartTitleStyle Font-Bold="True" Font-Size="0.8em" ForeColor="#333333" />
                </asp:EditorZone>
                &nbsp; &nbsp;
            </td>
            <td valign="top">
                <asp:WebPartZone ID="ZoneSecondaire" runat="server" BorderColor="#CCCCCC" EmptyZoneText="Ajoutez des éléments en les faisant glisser sur cette ligne."
                    Font-Names="Verdana" MenuLabelText="Actions" Padding="6" WebPartVerbRenderMode="TitleBar">
                    <ConnectVerb Text="Connecter" />
                    <HelpVerb Text="Aide" />
                    <PartChromeStyle BackColor="#F7F6F3" BorderColor="#E2DED6" Font-Names="Verdana" ForeColor="White" />
                    <EditVerb Text="Modifier" />
                    <DeleteVerb Text="Supprimer" />
                    <CloseVerb Text="Fermer" />
                    <MinimizeVerb Text="Minimiser" />
                    <MenuLabelHoverStyle ForeColor="#E2DED6" />
                    <EmptyZoneTextStyle Font-Size="0.8em" />
                    <MenuLabelStyle ForeColor="White" />
                    <MenuVerbHoverStyle BackColor="#F7F6F3" BorderColor="#CCCCCC" BorderStyle="Solid"
                        BorderWidth="1px" ForeColor="#333333" />
                    <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
                    <RestoreVerb Text="Restaurer" />
                    <ZoneTemplate>
                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="id_soc"
                            DataSourceID="SqlDataSource2" OnLoad="GridView2_Load">
                            <Columns>
                                <asp:BoundField DataField="id_soc" HeaderText="id_soc" InsertVisible="False" ReadOnly="True"
                                    SortExpression="id_soc" />
                                <asp:BoundField DataField="societe" HeaderText="societe" SortExpression="societe" />
                                <asp:BoundField DataField="cours" HeaderText="cours" SortExpression="cours" />
                                <asp:BoundField DataField="evolution" HeaderText="evolution" SortExpression="evolution" />
                            </Columns>
                        </asp:GridView>
                        <uc1:simulationpret ID="Simulationpret1" runat="server" />
                    </ZoneTemplate>
                    <MenuVerbStyle BorderColor="#5D7B9D" BorderStyle="Solid" BorderWidth="1px" ForeColor="White" />
                    <PartStyle Font-Size="0.8em" ForeColor="#333333" />
                    <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
                    <MenuPopupStyle BackColor="#5D7B9D" BorderColor="#CCCCCC" BorderWidth="1px" Font-Names="Verdana"
                        Font-Size="0.6em" />
                    <PartTitleStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.8em" ForeColor="White" />
                </asp:WebPartZone>
            </td>
        </tr>
    </table>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:bancaConnectionString %>" SelectCommand="SELECT * FROM [bourse]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:bancaConnectionString %>"
        SelectCommand="SELECT * FROM [bourse] WHERE ([cours] > @cours)">
        <SelectParameters>
            <asp:Parameter DefaultValue="20" Name="cours" Type="Single" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

