📄 publishers.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/HT.master" CodeFile="publishers.aspx.cs" Inherits="Publishers" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
<script language="javascript" type="text/javascript">
function quanxuan(cboTitle){
var cbh=document.getElementsByTagName("input");
for(i=0;i<cbh.length;i++){
if(cbh[i].type=='checkbox'){
cbh[i].checked=cboTitle.checked;
}
}
}
function del()
{
return confirm('确定删除所选出版社吗?');
}
function up()
{
return confirm("确定要修改吗?");
}
</script>
<div style="z-index: 101; left: -1px; width: 828px; position: absolute; top: 0px;
height: 276px">
<table style="width: 828px">
<tr class="category">
<td style="width: 815px;" align="center" valign="middle">
<span style="color: #000066; font-family: 宋体; font-size:15px;">出版社信息</span>
</td>
</tr>
<tr>
<td style=" height:16px; width: 815px;">
</td>
</tr>
<tr>
<td style="width: 815px" align="center" valign="top">
<table style="width:700px;">
<tr>
<td style="width: 700px; height: 16px" colspan="2">
<table style="width: 700px;">
<tr class="category">
<td colspan="6" align="left"></td>
</tr>
<tr class="row">
<td style="width: 60px; height: 16px;">
<input type="checkbox" id="cboTitle" onclick="quanxuan(this)"/>全选
</td>
<td style="width: 140px; height: 16px;">
名称
</td>
<td style="width: 140px; height: 16px;">
地址
</td>
<td style="width: 140px; height: 16px;">
联系电话
</td>
<td style="width: 140px; height: 16px;">
联系人
</td>
<td style="width: 80px; height: 16px;">
操作
</td>
</tr>
<tr style="width: 700px;">
</tr>
</table>
<asp:GridView ID="gdvpubs" runat="server" Width="699px" AutoGenerateColumns="False" ShowHeader="False">
<Columns>
<asp:TemplateField>
<ItemStyle Width="60px" />
<ItemTemplate>
<asp:CheckBox ID="cbh" runat="server" />
<asp:HiddenField ID="HiddenField1" runat="server" Value='<%#Eval("Id") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Name">
<ItemStyle Width="140px" />
</asp:BoundField>
<asp:BoundField DataField="address">
<ItemStyle Width="140px" />
</asp:BoundField>
<asp:BoundField DataField="phone">
<ItemStyle Width="140px" />
</asp:BoundField>
<asp:BoundField DataField="linkman">
<ItemStyle Width="140px" />
</asp:BoundField>
<asp:TemplateField>
<ItemStyle Width="80px" />
<ItemTemplate>
<asp:Label ID="lblXX" runat="server" Text="详细"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
<tr>
<td style="width: 140px; height: 16px" align="center" valign="top" class="t_number">
<asp:Button ID="btnDel" runat="server" Text="删 除" OnClick="btnDel_Click" OnClientClick="return del()" /></td>
<td style="width: 560px; height: 16px" align="right" valign="top" class="t_number">
<asp:ImageButton ID="btnFisrt" runat="server" OnClick="btnFisrt_Click" ImageUrl="~/image/_firstpg.gif" Height="18px" Width="57px"/>
<asp:ImageButton ID="ImageButton2" runat="server" OnClick="ImageButton2_Click" ImageUrl="~/image/_prevpg.gif" Height="18px" Width="57px"/>
<asp:ImageButton ID="ImageButton3" runat="server" OnClick="ImageButton3_Click" ImageUrl="~/image/_nextpg.gif" Height="18px" Width="57px"/>
<asp:ImageButton ID="ImageButton4" runat="server" OnClick="ImageButton4_Click" ImageUrl="~/image/_lastpg.gif" Height="18px" Width="57px"/>
当前页:<asp:Label ID="lblcruutenPager" runat="server" Text="1"></asp:Label> 共<asp:Label ID="lblcPagers" runat="server" Text="0"></asp:Label>
页 跳转到第<asp:TextBox ID="txtcrupager" runat="server" Height="14px" Width="28px"></asp:TextBox>
页<asp:Button
ID="Button1" runat="server" Text="确定" OnClick="Button1_Click" />
</td>
</tr>
</table>
</td>
</tr>
<tr class="category">
<td style="width: 815px; height: 19px;" align="center" valign="middle">
<span style="color: #000066; font-family: 宋体; font-size:15px;">操作</span>
</td>
</tr>
<tr>
<td style="width: 815px; height: 16px;" align="center" valign="top">
<table>
<tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'"
onmouseout="this.style.backgroundColor='#ffffff'">
<td style="width: 300px;" class="subject">
编号:
</td>
<td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
<asp:Label ID="lblPubsId" runat="server" Width="167px"></asp:Label></td>
</tr>
<tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'"
onmouseout="this.style.backgroundColor='#ffffff'">
<td style="width: 300px;" class="subject">
名称:
</td>
<td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
<asp:TextBox ID="txtName" runat="server" Height="16px" Width="164px" ></asp:TextBox>
</td>
</tr>
<tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'"
onmouseout="this.style.backgroundColor='#ffffff'">
<td style="width: 300px;" class="subject">
地址:
</td>
<td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
<asp:TextBox ID="txtAddress" runat="server" Height="16px" Width="164px" ></asp:TextBox>
</td>
</tr>
<tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'"
onmouseout="this.style.backgroundColor='#ffffff'">
<td style="width: 300px;" class="subject">
联系电话:
</td>
<td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
<asp:TextBox ID="txtphone" runat="server" Height="16px" Width="164px" ></asp:TextBox>
</td>
</tr>
<tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'"
onmouseout="this.style.backgroundColor='#ffffff'">
<td style="width: 300px;" class="subject">
联系人:
</td>
<td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
<asp:TextBox ID="txtlinkman" runat="server" Height="16px" Width="164px" ></asp:TextBox>
</td>
</tr>
<tr>
<td style="width: 700px; height: 17px" align="center" valign="top" class="t_number" colspan="2">
<asp:Button ID="btnAdd" runat="server" Text="添 加" OnClick="btnAdd_Click" />
<asp:Button ID="btnUpdate" runat="server" Text="修 改" OnClick="btnUpdate_Click" OnClientClick="return up()" /></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -