⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addnews.ascx

📁 嘟嘟文章系统的特点 1.操作简单
💻 ASCX
字号:
<%@ control language="VB" autoeventwireup="false" inherits="m_user_movie_addNews, App_Web_host81bd" %>
            
<!-- 增加对 FreeTextBox 的引用-->
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
                
            <table cellpadding="0" cellspacing="0" width="95%">
                <tr style="font-weight: bold; color: #000000">
                    <td align="center" colspan="3" style="height: 18px">
                        <table border="1" cellpadding="0" cellspacing="0" style="border-right: #666666 1px solid;
                            border-top: #666666 1px solid; border-left: #666666 1px solid; border-bottom: #666666 1px solid;
                            height: 72px" width="100%">
                            <tr>
                                <td align="center" colspan="2" style="height: 24px; background-color: #666666">
                                    <asp:Label ID="Label4" runat="server" Font-Bold="True" ForeColor="White">增加免费电影网址</asp:Label></td>
                            </tr>
                            <tr style="color: #000000">
                                <td style="width: 79px; height: 22px">
                                    <asp:Label ID="Label11" runat="server" Width="88px">新闻分类:</asp:Label></td>
                                <td align="left" style="height: 22px">
                                    <asp:DropDownList ID="DropDownList1" runat="server" Width="228px">
                                        <asp:ListItem Value="01">明星</asp:ListItem>
                                        <asp:ListItem Value="02">影视</asp:ListItem>
                                        <asp:ListItem Value="03">音乐</asp:ListItem>
                                        <asp:ListItem Value="04">台词</asp:ListItem>
                                        <asp:ListItem Value="05">新片预告</asp:ListItem>
                                    </asp:DropDownList></td>
                            </tr>
                            <tr style="color: #000000">
                                <td style="width: 79px; height: 25px">
                                    <asp:Label ID="Label5" runat="server" Width="88px">新闻标题:</asp:Label></td>
                                <td align="left" style="height: 25px">
                                    <asp:TextBox ID="txtNewsTitle" runat="server" BorderStyle="Groove" Width="228px"></asp:TextBox>
                                    <asp:Label ID="Label7" runat="server" ForeColor="Red">*</asp:Label></td>
                            </tr>
                            <tr style="color: #000000">
                                <td style="width: 79px; height: 25px">
                                    <asp:Label ID="Label9" runat="server" Width="88px">上传路径:</asp:Label></td>
                                <td align="left" style="height: 25px">
                                    <asp:TextBox ID="txtUploadDir" runat="server" BorderStyle="Groove" ReadOnly="True"
                                        Width="228px"></asp:TextBox></td>
                            </tr>
                            <tr style="color: #000000">
                                <td colspan="2" style="height: 25px">
                                    <asp:Label ID="Label6" runat="server" Width="167px">新闻内容如下:</asp:Label></td>
                            </tr>
                            <tr>
                                <td valign="top" colspan="2">
                                    <ftb:freetextbox id="txtNewsCon" runat="Server" supportfolder="../aspnet_client/FreeTextBox/"
                                        toolbarlayout="FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,CreateLink,Unlink,InsertRule|InsertImageFromGallery"
                                        toolbarstyleconfiguration="Office2000" width="600px" ImageGalleryPath=""></ftb:freetextbox>
                                    <asp:Label ID="Label8" runat="server" ForeColor="Red">*</asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" colspan="2" style="height: 33px" valign="middle">
                                    &nbsp;
                                    <asp:Button ID="btnAddNews" runat="server" Text="增加新闻" />&nbsp;
                                    <asp:Label ID="labInfo" runat="server" ForeColor="Red"></asp:Label></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left" colspan="3" style="width: 298px; height: 18px">
                        <asp:Label ID="Label3" runat="server" Text="我增加的新闻如下:"></asp:Label></td>
                </tr>
                <tr>
                    <td align="left" colspan="3" style="width: 298px; height: 18px">
                        <asp:Label ID="Label1" runat="server"></asp:Label>&nbsp;
                        <asp:Label ID="Label2" runat="server"></asp:Label>&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            BorderWidth="1px" DataKeyNames="news_id" DataSourceID="AccessDataSource1"
                            ShowFooter="True" Width="100%" BorderColor="#444444" BorderStyle="Solid" PageSize="5">
                            <PagerSettings FirstPageText="[第一頁]" LastPageText="[最後一頁]" Mode="NumericFirstLast"
                                NextPageText="[下一頁]" Position="TopAndBottom" PreviousPageText="[上一頁]" />
                            <FooterStyle BackColor="AliceBlue" CssClass="ArticleTitleFooter" Height="23px" />
                            <Columns>
                                <asp:CommandField DeleteText="&lt;div id='de' onclick=&quot;JavaScript:return confirm('确定删除吗?')&quot;&gt;删除&lt;/div&gt;"
                                    HeaderText="刪除" ShowDeleteButton="True">
                                    <HeaderStyle Font-Size="14px" ForeColor="White" HorizontalAlign="Center" />
                                    <ItemStyle Width="60px" />
                                </asp:CommandField>
                                <asp:BoundField DataField="news_name" HeaderText="新闻标题">
                                    <ItemStyle Font-Size="14px" HorizontalAlign="Left" Width="500px" />
                                    <HeaderStyle Font-Size="14px" ForeColor="White" HorizontalAlign="Left" Width="300px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="user_id" HeaderText="用户">
                                    <HeaderStyle ForeColor="White" />
                                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                                </asp:BoundField>
                            </Columns>
                            <RowStyle Height="23px" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#404040" BorderStyle="None" Font-Bold="False" Font-Size="12px"
                                ForeColor="Gray" Height="24px" HorizontalAlign="Left" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="width: 298px; height: 45px">
                        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/mov.mydbs"></asp:AccessDataSource>
                    </td>
                </tr>
            </table>
<!-- 增加对 FreeTextBox 的引用-->
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -