文件操作 - ViewMemoScreens.aspx
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\monitor.kimbly.in\wwwroot\ViewMemoScreens.aspx
编辑文件内容
<%@ page title="" language="C#" masterpagefile="~/Site.master" autoeventwireup="true" inherits="ViewMemoScreens, App_Web_jfit5u4p" %> <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server"> <style type="text/css"> .style1 { width: 100%; } .style2 { height: 21px; } .box { width:210px; float:left; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server"> <table class="style1"> <tr> <td class="style2" width="15%"> Memo</td> <td class="style2"> <asp:Label ID="lblMemo" runat="server"></asp:Label> </td> <td class="style2" width="15%"> Date</td> <td class="style2" width="15%"> <asp:Label ID="lblDate" runat="server"></asp:Label> </td> </tr> <tr> <td colspan="4"> <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate><div class="box" id="btnShowSimple"> <img src='<%#Eval("FileName","Screens/{0}") %>' style="background-color:#fff"/ width="200px" height="200px"> <br> EID: <%#Eval("EmpID") %> Time: <%#Eval("TimeStamp") %></div> </ItemTemplate> </asp:Repeater> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ExchangeConnectionString %>" SelectCommand="SELECT * FROM [Screens] WHERE ([Session] = @Session)"> <SelectParameters> <asp:QueryStringParameter Name="Session" QueryStringField="ID" Type="Int32" /> </SelectParameters> </asp:SqlDataSource> </td> </tr> </table> </asp:Content>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件