home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comredis.cab / default.aspx < prev    next >
Encoding:
Text File  |  2000-06-12  |  6.4 KB  |  205 lines

  1. <%@ Import Namespace="System.IO" %>
  2. <%@ Import Namespace="System.Collections" %>
  3. <%@ Import Namespace="System.Web" %>
  4. <%@ Import Namespace="System.Web.Util" %>
  5.  
  6. <style>
  7.  
  8.  
  9. body           { margin:0,0,0,0; }
  10. table, td      { font-size=10pt;font-family:Verdana; }
  11. td.products td { text-align:center; font-size:8pt; vertical-align:top; height:248 }
  12.  
  13. td.select      { color:ffffff; background-color:000000; font-size:14pt;}
  14. td.select select { width:130 }
  15. td.cart        { height:2500 }
  16. td.cart td     { font-size:9pt; font-weight:700} 
  17. td.cart a      { font-size:11pt; font-weight:700}
  18.  
  19. h3             { font-size:22 }
  20. h2             { font-size:22 }
  21. a:link         { color:blue; }
  22. a:visited      { color:blue; }
  23.  
  24. div.details {background-color:ffffcc; padding-top:15; padding-bottom:20; }
  25. div.details table { width:280; }
  26. div.details table td { font-family:Verdana; font-size:8pt; }
  27.  
  28. table.nutr td  { font-family: Verdana; font-size:8pt; } 
  29.  
  30. img.selected { border-color:DC6035;border-style:solid;}
  31. img.unselected { border-color:ffffcc;border-style:solid;}
  32.  
  33. table.details td { font-family: Verdana; font-size:12pt; padding-right:50; width:50%  }
  34.  
  35. span.blurb { font-size:9pt;}
  36. table.form td { padding-right:15 }
  37.  
  38. .weblet { font-family:Verdana;font-weight:bold;font-size:10pt; color:#66ff66; text-decoration:none }
  39. .weblettext { font-family:Verdana;font-size:10pt }
  40. .loginname { font-family:Tahoma;font-weight:bold;font-size:50pt;color:#6699cc }
  41. .topbanner { font-family:Arial;font-weight:bold;font-size:10pt;color:white}
  42. .topbutton { font-family:Arial;font-weight:bold;font-size:11pt;color:black }
  43. .subscriptiontitle { font-family:Arial;font-style:italic;font-weight:bold;font-size:16pt; color:#9C0001 }
  44.  
  45.  
  46. </style>
  47.  
  48. <script runat="server" language="C#">
  49.     
  50. public void Page_Load(Object sender, EventArgs e) 
  51. {
  52.   MyWebApplication [] apps = MyWeb.GetInstalledApplications();
  53.  
  54.     if (apps == null) 
  55.   {
  56.     return;
  57.   }
  58.  
  59.   ApplicationList.DataSource = new ArrayList(apps);
  60.   Page.DataBind();
  61.  
  62.      
  63.   for (int i=0; i<ApplicationList.Items.Count; i++) 
  64.   {
  65.     Repeater r = (Repeater) ApplicationList.Items[i].FindControl("InnerRepeater");
  66.     r.DataSource = (String [])apps[i].Manifest.CustomUrlDescriptions;
  67.     r.DataBind();
  68.   }
  69.  
  70. }
  71.       
  72.  
  73. </script>
  74.  
  75. <body bgcolor="white">
  76.  
  77.  
  78. <!-----Main toolbar Starts here -------->
  79.  
  80. <table width=100% cellspacing=0 cellpadding=0>
  81. <tr>
  82. <td>                        
  83.   <table width="100%" bgcolor="#336699">
  84.   <tr height=70>
  85.   <td width=15><!-- Space Filler --></td>
  86.     <td align=left class="loginname">My Web </td>
  87.   <td valign=bottom class="topbutton"> </td>
  88.   </tr>
  89.   </table>
  90.   </td>
  91.   <tr>
  92.  
  93. <td>
  94.   <table bgcolor="#003366" cellspacing=0 width=100% cellpadding=0>
  95.   <tr height=20 class="topbanner">
  96.   <td width=50> <!----- Space Filler ----></td>
  97.   <td align=right>
  98.     <a id="StartBtn" style="color:#99ccff;text-decoration:none;font-size:9pt" href="install.aspx">Install Application</a>  
  99.     <span style="font-weight:100;color:#99ccff"> | </span>
  100.     <a style="text-decoration:none;font-size:9pt;color:#ffcc00" href="myweb://home">Home</a>    
  101.   </td>
  102.   </tr>
  103.   </table>
  104. </td>
  105. </tr>
  106.  
  107. </table>
  108. <!------End of main toolbar ----->
  109.  
  110.  
  111. <asp:DataList id="ApplicationList" RepeatDirection="Vertical" RepeatColumns="1" width="100%" BorderWidth="0" CellSpacing=10 runat="server" >
  112. <template name=itemtemplate>
  113.  
  114. <!------ Beginning of single application entry ------->
  115. <table border=0 cellspacing=0 cellpadding=0 width=90% align=center>
  116. <tr>
  117. <td>
  118.     <table width=100% bgcolor="#003366" border=0 cellspacing=0 cellpadding=0>
  119.     <tr>
  120.     <td align="left" > 
  121.       <a href="<%# (((MyWebApplication)Container.DataItem).Manifest.Url.Length >0 )?(((MyWebApplication)Container.DataItem).Manifest.Url ) : "myweb://" +(((MyWebApplication)Container.DataItem).Manifest.ApplicationUrl + "/default.aspx")%>">
  122.         
  123.         <span class="weblet">
  124.         <%#(((MyWebApplication)Container.DataItem).Manifest.Name.Length >0 )?(((MyWebApplication)Container.DataItem).Manifest.Name ):"myweb://"+ (((MyWebApplication)Container.DataItem).Manifest.ApplicationUrl) %>
  125.                               
  126.     </a>
  127.   </td>
  128.                 
  129.     <td align="right">
  130.       <nobr>
  131.         <a href="update.aspx?Url=<%# ((MyWebApplication)Container.DataItem).Manifest.ApplicationUrl%>"  style="color:#99ccff;text-decoration:none;font-size:8pt;font-weignt:bold"><b>Update</b></a> 
  132.       <a href="remove.aspx?Url=<%# ((MyWebApplication)Container.DataItem).Manifest.ApplicationUrl%>"  style="color:#99ccff;text-decoration:none;font-size:8pt;font-weignt:bold"><b>Remove</b></a>
  133.          
  134.     </td>
  135.     </tr>
  136.     </table>
  137.  
  138. </td>
  139. </tr>
  140.  
  141.     
  142. <tr>
  143. <td>
  144.     <table width=100% bgcolor="#eeefff" border=0 cellspacing=0 cellpadding=2>
  145.     <tr>
  146.     <td width="50px" align="center" valign="middle">
  147.       <a href="<%# (((MyWebApplication)Container.DataItem).Manifest.Url.Length >0 )?
  148.     (((MyWebApplication)Container.DataItem).Manifest.Url ) : "myweb://" +
  149.     (((MyWebApplication)Container.DataItem).Manifest.ApplicationUrl + "/default.aspx" )%>">
  150.  
  151.     <img border="1" width="64px" height="64px" style="border-color:black" 
  152.     src="<%# (((MyWebApplication)Container.DataItem).Manifest.IconUrl.Length >0)?
  153.     (((MyWebApplication)Container.DataItem).Manifest.IconUrl) :
  154.     ("images/default.gif")%> "></a>
  155.     </td>
  156.             
  157.     <td width=5px><!--- space filler --></td>
  158.  
  159.     <td align="left" valign="top">
  160.     
  161.         <table width=100% cellpadding=0 cellspacing=0 border=0>
  162.         <tr>
  163.         <td width=100px>
  164.           <b>Author:</b>
  165.         </td>
  166.         <td>
  167.           <%# (((MyWebApplication)Container.DataItem).Manifest.Author.Length >0)?
  168.                     (((MyWebApplication)Container.DataItem).Manifest.Author) : "Not Specified" %>
  169.         </td>
  170.         </tr>
  171.  
  172.     <tr>
  173.     <td width=100px><b>Source:</b></td><td><%# (((MyWebApplication)Container.DataItem).Manifest.Source.Length >0 )?
  174.         (((MyWebApplication)Container.DataItem).Manifest.Source) : "Not Specified" %>
  175.         </td>
  176.         </tr>
  177.  
  178.         <tr>
  179.         <td width=100px><b>Description:</b></td>
  180.         <td>
  181.             <asp:repeater id="InnerRepeater" runat="server">
  182.             <template name=itemtemplate>
  183.             <img align="middle" src="images/bullet.gif"><span style="text-color:black">
  184.                             <%# ((String)Container.DataItem!= null ) ?
  185.                                 ((String)Container.DataItem) :
  186.                                 "Not Specified" %></span> <br>
  187.             </template>
  188.             </asp:repeater>
  189.     </td></tr>
  190.         </table>
  191.     </td>
  192.     </tr>
  193.     </table>    
  194.     </td>
  195.     </tr>
  196.     </table>
  197.     <!--------- End of single application entry ---------->    
  198.  
  199.   </template>
  200.  
  201. </asp:DataList>
  202.  
  203. </body>
  204. </html>
  205.