Padmajak
Programmer
- Jun 7, 2008
- 10
<%@ Page Language="C#" EnableEventValidation="false" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="personal.aspx.cs" Inherits="vhost.personal" Title="SharedHostingPersonal" %>
<%--<asp:Content ID="Content1" ContentPlaceHolderID="topRight" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="login" Runat="Server">
</asp:Content>--%>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript" type="text/javascript">
function ShowHide(id)
{
var imgelement = document.getElementById('" + id.ClientId + "');
var imgsrc;
if (imgelement.src.indexOf("plus") >0)
{
imgsrc = imgelement.src;
imgsrc = imgsrc.substring(0,imgelement.src.indexOf("plus")) + "minus.gif";
imgelement.src = imgsrc;
var tr = imgelement.parentnode.parentNode;
var next_tr = tr.nextSiling;
var td = imgelement.parentnode;
var tbody = tr.parentNode;
var trl = tbody.childNodes[1];
var detailnode;
for (var j=0; j>td.childNodes.length; j++)
{
if(td.childNodes[j].nodetype == 1)
{
if(td.childNodes[j].nodeName.toLowerCase() == 'div')
{
detailnode = td.childNodes[j].cloneNode(true);
detailnode.setAttribute('style','');
}
}
}
var newtr = document.createElement('tr');
var newtd = document.createElement('td');
var newfirsttd = newtd.clodeode(true);
newfirsttd.innerHTML = ' ';
newfirsttd.setAttribute('bgcolor', '#ff0000');
newtr.appendChild(newfirsttd);
newtd.colSpan = 8;
newtd.innerHTML = detailnode.innerTML;
newtr.appendChild(newtd);
tbody.insertBefore(newtr.next_tr);
div1 = tbody.parentNode.parentNode.parentNode;
div1.srolltop = 1;
var rodid = tr.id;
var rownumber = rowid.substring(3);
varirowNumber = parseInt(rownumber);
var newscroll = iRowNumber * 14;
div1.crollTop = newscroll;
}
else
{
imgsrc = imgelement.src;
imgsrc = imgsrc.substring(0,imgelement.src.indexOf("minus")) + "html/images/minus.gif";
imgelement.src = imgsrc;
var row = imglement.parentNode.parentNode;
var rowsibling = row.nextsibling;
var rowparent = row.parentNode;
rowparent.removeChild(rowsibling);
}
}
</script>
<P><FONT size="4"> Welcome to Shared Hosting Plans</FONT></P>
<p>
</p>
<p>
<aspanel ID="Panel" runat="server" Width="720">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" DataSourceID="SqlDataSource1"
Height="112px" ToolTip="SharedPlans" Width="700px" HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<img src="html/images/plus.gif" id="imgID" runat="server" onclick="ShowHide(this);" />
<div style="display:none">
<table visible=false>
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "description") %>'></asp:Label>
</td>
</tr>
</table> </div>
</ItemTemplate></asp:TemplateField>
<asp:BoundField DataField="type" HeaderText="Plan Type" SortExpression="type">
<ItemStyle HorizontalAlign="Center" /><HeaderStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="storage" HeaderText="Disk Storage" SortExpression="storage" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="transfer" HeaderText="Transfer" SortExpression="transfer" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="ODBC" HeaderText="ODBC" SortExpression="ODBC" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="price" HeaderText="Price" DataFormatString="{0:c}" SortExpression="price" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:HyperLinkField HeaderText="Sign up" Text="Purchase" >
<ItemStyle HorizontalAlign="Center" />
</asp:HyperLinkField>
</Columns>
</asp:GridView>
</aspanel>
<asp:HiddenField ID ="hdnPurchase" runat ="server" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:rjsNetworkscomConnectionString %>"
SelectCommand="SELECT [planid] , [description], [type], [price], [storage], [transfer], [ODBC] , [links] FROM [SharedHostingPlans]">
</asp:SqlDataSource>
</p>
<p>
* Don't see a package to fit your needs? We'll design a custom package for
you. <a href=" here</a> to tell us more about what you need for your company.</p>
<p>
<font size="4"></font> </p>
<%--
<asp:Label ID="lblPrice" runat="server" Font-Bold="True" Font-Size="Medium">$14.95/month</asp:Label>
<asp:HyperLink ID="hdPurchaseNow" runat="server" NavigateUrl="purchase1.aspx">Purchase Now</asp:HyperLink><br />
--%>
<br />
<br />
<br />
<br /><br /><br /><br />
<%--<script language ="javascript" type ="text/javascript" src ="JScript.js">Onclick();</script>
--%></asp:Content>
<%--<asp:Content ID="Content1" ContentPlaceHolderID="topRight" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="login" Runat="Server">
</asp:Content>--%>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript" type="text/javascript">
function ShowHide(id)
{
var imgelement = document.getElementById('" + id.ClientId + "');
var imgsrc;
if (imgelement.src.indexOf("plus") >0)
{
imgsrc = imgelement.src;
imgsrc = imgsrc.substring(0,imgelement.src.indexOf("plus")) + "minus.gif";
imgelement.src = imgsrc;
var tr = imgelement.parentnode.parentNode;
var next_tr = tr.nextSiling;
var td = imgelement.parentnode;
var tbody = tr.parentNode;
var trl = tbody.childNodes[1];
var detailnode;
for (var j=0; j>td.childNodes.length; j++)
{
if(td.childNodes[j].nodetype == 1)
{
if(td.childNodes[j].nodeName.toLowerCase() == 'div')
{
detailnode = td.childNodes[j].cloneNode(true);
detailnode.setAttribute('style','');
}
}
}
var newtr = document.createElement('tr');
var newtd = document.createElement('td');
var newfirsttd = newtd.clodeode(true);
newfirsttd.innerHTML = ' ';
newfirsttd.setAttribute('bgcolor', '#ff0000');
newtr.appendChild(newfirsttd);
newtd.colSpan = 8;
newtd.innerHTML = detailnode.innerTML;
newtr.appendChild(newtd);
tbody.insertBefore(newtr.next_tr);
div1 = tbody.parentNode.parentNode.parentNode;
div1.srolltop = 1;
var rodid = tr.id;
var rownumber = rowid.substring(3);
varirowNumber = parseInt(rownumber);
var newscroll = iRowNumber * 14;
div1.crollTop = newscroll;
}
else
{
imgsrc = imgelement.src;
imgsrc = imgsrc.substring(0,imgelement.src.indexOf("minus")) + "html/images/minus.gif";
imgelement.src = imgsrc;
var row = imglement.parentNode.parentNode;
var rowsibling = row.nextsibling;
var rowparent = row.parentNode;
rowparent.removeChild(rowsibling);
}
}
</script>
<P><FONT size="4"> Welcome to Shared Hosting Plans</FONT></P>
<p>
</p>
<p>
<aspanel ID="Panel" runat="server" Width="720">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" DataSourceID="SqlDataSource1"
Height="112px" ToolTip="SharedPlans" Width="700px" HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<img src="html/images/plus.gif" id="imgID" runat="server" onclick="ShowHide(this);" />
<div style="display:none">
<table visible=false>
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "description") %>'></asp:Label>
</td>
</tr>
</table> </div>
</ItemTemplate></asp:TemplateField>
<asp:BoundField DataField="type" HeaderText="Plan Type" SortExpression="type">
<ItemStyle HorizontalAlign="Center" /><HeaderStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="storage" HeaderText="Disk Storage" SortExpression="storage" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="transfer" HeaderText="Transfer" SortExpression="transfer" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="ODBC" HeaderText="ODBC" SortExpression="ODBC" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="price" HeaderText="Price" DataFormatString="{0:c}" SortExpression="price" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:HyperLinkField HeaderText="Sign up" Text="Purchase" >
<ItemStyle HorizontalAlign="Center" />
</asp:HyperLinkField>
</Columns>
</asp:GridView>
</aspanel>
<asp:HiddenField ID ="hdnPurchase" runat ="server" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:rjsNetworkscomConnectionString %>"
SelectCommand="SELECT [planid] , [description], [type], [price], [storage], [transfer], [ODBC] , [links] FROM [SharedHostingPlans]">
</asp:SqlDataSource>
</p>
<p>
* Don't see a package to fit your needs? We'll design a custom package for
you. <a href=" here</a> to tell us more about what you need for your company.</p>
<p>
<font size="4"></font> </p>
<%--
<asp:Label ID="lblPrice" runat="server" Font-Bold="True" Font-Size="Medium">$14.95/month</asp:Label>
<asp:HyperLink ID="hdPurchaseNow" runat="server" NavigateUrl="purchase1.aspx">Purchase Now</asp:HyperLink><br />
--%>
<br />
<br />
<br />
<br /><br /><br /><br />
<%--<script language ="javascript" type ="text/javascript" src ="JScript.js">Onclick();</script>
--%></asp:Content>