<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InsertImageLink.aspx.cs" Inherits="ProcessDefinition.EditorModals.InsertImageLink" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Insert Image Link</title>
    <script src="../Scripts/jquery-1.6.3.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
    <script src="../Scripts/InsertImageLink.js" type="text/javascript"></script>
    <dp:CustomerUserCommandScriptMce ID="cScript" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div class="insertModalItems insertModalItemsImages">

<asp:ListView ID="lstItems" runat="server" ItemPlaceholderID="itemList"
        EnableViewState="False" >

    <LayoutTemplate>
    <ul id="selectImg">
        <asp:PlaceHolder id="itemList" runat="server"/>
    </ul>
    </LayoutTemplate>

    <ItemTemplate>
    <li>
    <img src='<%#String.Format("{2}/files/{0}/images/thumbs/{1}",DevProcess.ProcessDefinitionService.SessionFacade.GetRepository(),Eval("Name"),pd.R.GetReposRoot()) %>' imgRef='<%#String.Format("{2}/files/{0}/images/{1}",DevProcess.ProcessDefinitionService.SessionFacade.GetRepository(),Eval("Name"),pd.R.GetReposRoot()) %>' />
    </li>
    </ItemTemplate>

    <EmptyDataTemplate>

    </EmptyDataTemplate>
</asp:ListView>
    </div>
    <br class="clear" />
    <asp:FileUpload ID="upload" runat="server" /><asp:Button ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="Upload" />
    
    </div>
    </form>
</body>
</html>
