<%@ Page Language="C#" MasterPageFile="~/Forms/Common/MasterPage.master" AutoEventWireup="true"
CodeFile="ViewContacts.aspx.cs" Inherits="Forms_Contacts_ViewContacts" Title="MyScheduler :: ViewContacts" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script language="javascript" type="text/javascript">
var bSelected=false;
function ChSel()
{
var theForm = document.forms['aspnetForm'];
if (!theForm) theForm = document.aspnetForm;
bSelected = true;
var i;
for (i=
0;i<theForm.
chkselect.
length;++i
) theForm.
chkselect[i
].
checked=bSelected;
}
function ChUnSel()
{
var theForm = document.forms['aspnetForm'];
if (!theForm) theForm = document.aspnetForm;
bSelected = false;
var i;
for (i=
0;i<theForm.
chkselect.
length;++i
) theForm.
chkselect[i
].
checked=bSelected;
}
function a(url)
{
alert(url);
}
</script>
<asp:UpdatePanel id="UpdatePanel1" runat="server">
<contenttemplate>
<div style="text-align: -moz-center; !text-align: ceter;">
<table style="width: 100%" class="table">
<tr>
<td colspan="3" style="height: 13px; text-align: center" class="tdtitle">
My Contacts</td>
</tr>
<tr>
<td style="width:30%; text-align: right;">
Search contacts</td>
<td style="width:40%">
<asp:TextBox ID="txtsearch" runat="server" Width="198px" CssClass="textbox"></asp:TextBox></td>
<td style="width:30%; text-align: left;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtsearch"
Display="Dynamic" ErrorMessage="RequiredFieldValidator" ToolTip="Required" ValidationGroup="a">*</asp:RequiredFieldValidator>
<asp:ImageButton ID="btngo" runat="server" ImageUrl="~/Designer/images/button_go.gif"
OnClick="btngo_Click" ValidationGroup="a" />
<asp:ImageButton ID="btnclear" runat="server" ImageUrl="~/Designer/images/button_clear.gif" CausesValidation="False" OnClick="btnclear_Click" />
</td>
</tr>
<tr>
<td style="width: 30%; text-align: right">
</td>
<td style="width: 40%">
</td>
<td style="width: 30%; text-align: left">
</td>
</tr>
<tr>
<td style="width: 30%; text-align: right">
</td>
<td style="width: 40%; text-align: right">
<a style=" -moz-user-select: none; cursor: pointer;" onclick="return ChSel();"><asp:Image ID="Image2" runat="server" ImageUrl="~/Designer/images/button_select_all.gif" /></a>
</td>
<td style="width: 30%; text-align: left">
<a style=" -moz-user-select: none; cursor: pointer;" onclick="return ChUnSel()"><asp:Image ID="Image3" runat="server" ImageUrl="~/Designer/images/button_deselect_all.gif" /></a></td>
</tr>
</table>
<div style="text-align: -moz-center; !text-align:center;">
<asp:GridView ID="grdcontacts" runat="server" AutoGenerateColumns="False" Width="423px" AllowPaging="True" OnPageIndexChanging="grdcontacts_PageIndexChanging" OnRowEditing="grdcontacts_RowEditing" OnSelectedIndexChanged="grdcontacts_SelectedIndexChanged" CssClass="Grid">
<FooterStyle CssClass="GridFooter" />
<RowStyle CssClass="GridItem" HorizontalAlign="Center" />
<SelectedRowStyle CssClass="GridSelectedItem" />
<PagerStyle CssClass="GridPager" />
<HeaderStyle CssClass="GridHeader" HorizontalAlign="Left" />
<AlternatingRowStyle CssClass="GridAlternatingItem" />
<Columns>
<asp:TemplateField>
<ItemTemplate>
<img id="id1" src='<%# Eval("vch_photo","Photo/{0}") %>' style=" -moz-user-select: none; cursor: pointer;" height="30px" width="30px" onclick="showPopWin('<%# Eval("vch_photo","Photo/{0}") %>', 450, 200, null);" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="num_cid" HeaderText="num_cid" Visible="False">
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="vch_firstnm" HeaderText="FirstName">
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="vch_lastnm" HeaderText="LastName">
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="vch_email" HeaderText="EmailID">
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:CommandField ShowEditButton="True">
<HeaderStyle HorizontalAlign="Left" />
<ItemStyle HorizontalAlign="Left" />
</asp:CommandField>
<asp:TemplateField HeaderText="Select">
<ItemTemplate>
<input type="checkbox" name="chkselect" value='<%#DataBinder.Eval(Container,"RowIndex")%>'/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate>
<span style="font-size: 14pt; color: red; font-family: Verdana">No Records Found</span>
</EmptyDataTemplate>
</asp:GridView>
</div>
<div style="text-align: right;">
<img src="../../Designer/images/button_back_2col.gif" />
</div>
<asp:ImageButton ID="btndelete" runat="server" ImageUrl="~/Designer/images/button_delete_selected.gif" OnClick="btndelete_Click" />
</div>
<div style="height: 100%; width: 100%; text-align: right;"></div>
</contenttemplate>
</asp:UpdatePanel>
</asp:Content>