<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Master_Client_Title_Search.aspx.cs" Inherits="Master_Client_Title_Search" UICulture="auto" Culture="auto" Title="<%$ Resources:CtrResource, Title %>" %>
<%@ Register Assembly="WebControls" Namespace="GIS.WebControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Title</title>
<link href="../../../../CSS/MM_Content.css" rel="stylesheet" type="text/css" />
<script src="../../../../JS/Common.js" type="text/javascript"></script>
<script language="javascript">
var retValue = "<% = retValue %>";
//window.onload = SetRadioName;
function SetRadioName()
{
var radioCount = document.getElementById("GridView1").all.tags("input").length;
for (var i = 0; i< radioCount;i++)
{
if(document.getElementById("GridView1").all.tags("input")[i].type == "radio" && document.getElementById("txtSelect").value == document.getElementById("GridView1").all.tags("input")[i].value)
{
document.getElementById("GridView1").all.tags("input")[i].checked = true;
}
}
}
function SetRadio(obj)
{
document.getElementById("txtSelect").value = obj.value+ "|" + obj.uid;
}
function btnCancel_Click()
{
window.close();
return false;
}
</script>
<base target="_self"></base>
</head>
<body topmargin="0" leftmargin="0">
<form id="form1" runat="server">
<div class="wrapper">
<div class="content">
<div class="text">
<div class="gridview">
<div id="tablea" class="container" style="height: 85%; width: 98.5%;">
<asp:GridView ID="GridView1" runat="server" GridLines="Horizontal" AutoGenerateColumns="False"
Width="100%" OnSorting="GridView1_Sorting" OnPageIndexChanging="GridView1_PageIndexChanging">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<input id="radSelect" name="IsChecked" οnclick="SetRadio(this);" type="radio" uid="<%# DataBinder.Eval(Container.DataItem,"TitleName")%>"
value="<%# DataBinder.Eval(Container.DataItem,"TitleCode")%>" οnlοad="SetRadioName()" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText="<%$ Resources:CtrResource, TitleCode %>" DataField="TitleCode" />
<asp:BoundField HeaderText="<%$ Resources:CtrResource, TitleName %>" DataField="TitleName" />
</Columns>
<FooterStyle Font-Bold="True" HorizontalAlign="Right" />
<RowStyle CssClass="row" />
<PagerStyle HorizontalAlign="Center" />
<SelectedRowStyle Font-Bold="True" />
<HeaderStyle Font-Bold="True" CssClass="th2" />
<AlternatingRowStyle CssClass="rowAlt" />
</asp:GridView>
</div>
</div>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr height="12px">
<td colspan="2">
</td>
</tr>
<tr>
<td>
<cc1:GIS_Button ID="btnSelect" runat="server" Text="<%$ Resources:CtrResource, Select %>" OnClick="btnSelect_Click"
Width="80px" CausesValidation="True" CommandArgument="" CommandName="" PostBackUrl="" ValidationGroup="" />
</td>
<td width="90%">
<cc1:GIS_Button ID="btnCancel" runat="server" OnClientClick="return btnCancel_Click();"
Text="<%$ Resources:CtrResource, Cancel %>" Width="80px" CausesValidation="True" CommandArgument="" CommandName="" PostBackUrl="" ValidationGroup="" />
<asp:TextBox ID="txtSelect" runat="server" Style="display: none;"></asp:TextBox>
</td>
</tr>
</table>
</div>
</div>
</div>
</form>
</body>
</html>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Master_Client_Title_Search.aspx.cs" Inherits="Master_Client_Title_Search" UICulture="auto" Culture="auto" Title="<%$ Resources:CtrResource, Title %>" %>
<%@ Register Assembly="WebControls" Namespace="GIS.WebControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Title</title>
<link href="../../../../CSS/MM_Content.css" rel="stylesheet" type="text/css" />
<script src="../../../../JS/Common.js" type="text/javascript"></script>
<script language="javascript">
var retValue = "<% = retValue %>";
//window.onload = SetRadioName;
function SetRadioName()
{
var radioCount = document.getElementById("GridView1").all.tags("input").length;
for (var i = 0; i< radioCount;i++)
{
if(document.getElementById("GridView1").all.tags("input")[i].type == "radio" && document.getElementById("txtSelect").value == document.getElementById("GridView1").all.tags("input")[i].value)
{
document.getElementById("GridView1").all.tags("input")[i].checked = true;
}
}
}
function SetRadio(obj)
{
document.getElementById("txtSelect").value = obj.value+ "|" + obj.uid;
}
function btnCancel_Click()
{
window.close();
return false;
}
</script>
<base target="_self"></base>
</head>
<body topmargin="0" leftmargin="0">
<form id="form1" runat="server">
<div class="wrapper">
<div class="content">
<div class="text">
<div class="gridview">
<div id="tablea" class="container" style="height: 85%; width: 98.5%;">
<asp:GridView ID="GridView1" runat="server" GridLines="Horizontal" AutoGenerateColumns="False"
Width="100%" OnSorting="GridView1_Sorting" OnPageIndexChanging="GridView1_PageIndexChanging">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<input id="radSelect" name="IsChecked" οnclick="SetRadio(this);" type="radio" uid="<%# DataBinder.Eval(Container.DataItem,"TitleName")%>"
value="<%# DataBinder.Eval(Container.DataItem,"TitleCode")%>" οnlοad="SetRadioName()" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText="<%$ Resources:CtrResource, TitleCode %>" DataField="TitleCode" />
<asp:BoundField HeaderText="<%$ Resources:CtrResource, TitleName %>" DataField="TitleName" />
</Columns>
<FooterStyle Font-Bold="True" HorizontalAlign="Right" />
<RowStyle CssClass="row" />
<PagerStyle HorizontalAlign="Center" />
<SelectedRowStyle Font-Bold="True" />
<HeaderStyle Font-Bold="True" CssClass="th2" />
<AlternatingRowStyle CssClass="rowAlt" />
</asp:GridView>
</div>
</div>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr height="12px">
<td colspan="2">
</td>
</tr>
<tr>
<td>
<cc1:GIS_Button ID="btnSelect" runat="server" Text="<%$ Resources:CtrResource, Select %>" OnClick="btnSelect_Click"
Width="80px" CausesValidation="True" CommandArgument="" CommandName="" PostBackUrl="" ValidationGroup="" />
</td>
<td width="90%">
<cc1:GIS_Button ID="btnCancel" runat="server" OnClientClick="return btnCancel_Click();"
Text="<%$ Resources:CtrResource, Cancel %>" Width="80px" CausesValidation="True" CommandArgument="" CommandName="" PostBackUrl="" ValidationGroup="" />
<asp:TextBox ID="txtSelect" runat="server" Style="display: none;"></asp:TextBox>
</td>
</tr>
</table>
</div>
</div>
</div>
</form>
</body>
</html>