Jump to content

Display only part content off another page


farkewie

Recommended Posts

Hi i want to display a table off another  site on my own, i managed to get the whole pag ebut i only want the table with my usage information on it.

 

here is what the table looks like if i view souce

 

 



<TABLE WIDTH=400 CELLSPACING=0 BORDER=0>
<TR><TH COLSPAN=4 ALIGN=LEFT>Time Blocks</TH></TR>
<TR><TD CLASS=line COLSPAN=4><IMG SRC="/images/b.gif" WIDTH=400 HEIGHT=1 ALT="" BORDER=0></TD></TR>
<TR>
<TH CLASS=head0>Valid</TH>
<TH CLASS=head1>Scheme/<BR>Description</TH>
<TH CLASS=head0>Renewals</TH>
<TH CLASS=head1>Usage</TH>
</TR>
<TR ALIGN=CENTER>
<TD CLASS=cols1>01 Apr 2008 - 30 Apr 2008</TD>
<TD CLASS=cols0>aDSL2 20000/800 $99.95 30GB Unlimited (Shaped - onpeak)<BR>Unlimited prepaid time, Valid 08:00-23:00 daily, Limited to 2 simultaneous logins, Unlimited MB, 64k limit Tier of Service after 30000 MB</TD>
<TD CLASS=cols1>End of period: aDSL2 20000/800 $99.95 30GB Unlimited (Shaped - onpeak)</TD>
<TD CLASS=cols0>430:13<BR>30804.014MB</TD>
</TR>
<TR ALIGN=CENTER>
<TD CLASS=cols0>01 Apr 2008 - 30 Apr 2008</TD>
<TD CLASS=cols1>aDSL2 20000/800 $99.95 30gb Unlimited (Shaped - Offpeak)<BR>Unlimited prepaid time, Valid 23:00-08:00 daily, Limited to 2 simultaneous logins, Unlimited MB, 64k limit Tier of Service after 30000 MB</TD>
<TD CLASS=cols0>End of period: aDSL2 20000/800 $99.95 30gb Unlimited (Shaped - Offpeak)</TD>
<TD CLASS=cols1>257:43<BR>30341.808MB</TD>
</TR>
</TABLE>

 

i would even prefer it if i could just have the text that says 'Offpeak ???MB' and 'Onpeak ???MB if it is possible if there is someway i can just get the numbers before the "MB  it would be good but even if i can just display the table would be ok.

 

Any help would be great

 

here is what i have so far.

 



<?php

/* This file checks the usage of internet account
**/


$page = file_get_contents("http://ty_marian:djs1001@tarka.matilda.net.au/custdata/time-block-list.php3?login_id=9584");
print $page;
?>

Link to comment
Share on other sites

This code only shows the first table off the page below is the full page im trying to get

 


<?php

/* This file checks the usage of internet account
**/


$page = file_get_contents("http://ty_marian:djs1001@tarka.matilda.net.au/custdata/time-block-list.php3?login_id=9584");
$b = array();
preg_match('/<TABLE.*?<\/TABLE>/s', $page, $b);
print $b[0];
print $b[2];
print $b[3];
print $b[4];
print $b[5];
print $b[6];
?>

 

 

 

 



<HTML>
<HEAD>
<TITLE>Tarka - Time Blocks for ty_marian</TITLE>

<STYLE TYPE="text/css">
<!--

TABLE, TD, DIV, P, BODY {
  color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 11px;
}

H2 {
  font-family: Helvetica, Arial, sans-serif; font-size: 15px;
}

TH {
  background-color: #ffcc99; font-family: Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight:bold;
}

TD.line {
  background-color: #ffcc99;
}

.head0 {
  background-color: #669999; color:#ffffff; font-weight:bold;
}

.head1 {
  background-color: #77aaaa; color:#ffffff; font-weight:bold;
}

TD.cols0 {
  background-color: #99cccc;
}

TD.cols1 {
  background-color: #aadddd;
}

.title {
  color: #669999; font-family: Times New Roman, Times, serif; font-size: 19px;
}

a:link {
  color: #000000; font-family: Helvetica, Arial, sans-serif; font-size: 11px;
}

a:visited {
  color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 11px;
}

a:hover {
  color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 11px;
}

a:active {
  color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 11px;
}

</STYLE>

</HEAD>
<BODY TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT=0 MARGINWIDTH=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 BGCOLOR="#ffffff">
<DIV ALIGN=CENTER>
<TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR><TD WIDTH=140 BGCOLOR="#669999"><IMG SRC="/images/t.gif" WIDTH=140 HEIGHT=20 ALT="" BORDER="0"></TD>
<TD WIDTH="100%"><IMG SRC="/images/w.gif" WIDTH=460 HEIGHT=20 ALT="" BORDER="0"></TD></TR></TABLE>

<TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR><TD WIDTH=140 BGCOLOR="#000000"><IMG SRC="/images/b.gif" WIDTH=600 HEIGHT=1 ALT="" BORDER="0"></TD></TR></TABLE>

<TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR><TD WIDTH="100%" BGCOLOR="#ffcc99"><IMG SRC="/images/title_netcraft.gif" WIDTH=335 HEIGHT=40 ALT="" BORDER="0"></TD>
<TD WIDTH="140"><IMG SRC="/images/otter_head.gif" WIDTH=140 HEIGHT=40 ALT="" BORDER="0"></TD></TR></TABLE>

<TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR><TD WIDTH="100%" BGCOLOR="#000000" ALIGN=right><IMG SRC="/images/otter_strip.gif" WIDTH=140 HEIGHT=1 ALT="" BORDER="0"></TD></TR></TABLE>

<TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR VALIGN=top ALIGN=center><TD WIDTH=140 BGCOLOR="#669999"><IMG SRC="/images/t.gif" WIDTH=140 HEIGHT=44 ALT="" BORDER="0"><BR>

<BR><BR>

<A HREF="http://www.netcraft.com.au/"><IMG SRC="/images/netcraft_logo.gif" WIDTH=140 HEIGHT=48 ALT="" BORDER="0"></A>

</TD>

<TD WIDTH="36"><IMG SRC="/images/w.gif" WIDTH=36 HEIGHT=1 ALT="" BORDER="0"></TD>

<TD WIDTH="100%"><TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR VALIGN=top><TD WIDTH="100%" VALIGN=bottom><IMG SRC="/images/w.gif" WIDTH=202 HEIGHT=1 ALT="" BORDER="0"><BR>
<P CLASS=title>Time Blocks for ty_marian</P></TD>
<TD WIDTH=185 ALIGN=right><IMG SRC="/images/otter_body.gif" WIDTH=185 HEIGHT=54 ALT="" BORDER="0"></TD></TR>

<TR><TD COLSPAN=2 BGCOLOR="#000000"><IMG SRC="/images/b.gif" WIDTH=387 HEIGHT=1 ALT="" BORDER="0"></TD></TR>

<TR><TD COLSPAN=2><BR>

<P><A HREF="/custdata/customer-view.php3">Return to Customer View</A></P>
<P>Only open time blocks are currently being displayed. You may also view <A HREF="/custdata/time-block-list.php3?login_id=9584&view_closed=1">all time blocks (including those which have been closed)</A>.</P>

<?php
// I WANT FROM HERE

?>
<TABLE WIDTH=400 CELLSPACING=0 BORDER=0>
<TR><TH COLSPAN=4 ALIGN=LEFT>Time Blocks</TH></TR>
<TR><TD CLASS=line COLSPAN=4><IMG SRC="/images/b.gif" WIDTH=400 HEIGHT=1 ALT="" BORDER=0></TD></TR>
<TR>
<TH CLASS=head0>Valid</TH>
<TH CLASS=head1>Scheme/<BR>Description</TH>
<TH CLASS=head0>Renewals</TH>
<TH CLASS=head1>Usage</TH>
</TR>
<TR ALIGN=CENTER>
<TD CLASS=cols1>01 Apr 2008 - 30 Apr 2008</TD>
<TD CLASS=cols0>aDSL2 20000/800 $99.95 30GB Unlimited (Shaped - onpeak)<BR>Unlimited prepaid time, Valid 08:00-23:00 daily, Limited to 2 simultaneous logins, Unlimited MB, 64k limit Tier of Service after 30000 MB</TD>
<TD CLASS=cols1>End of period: aDSL2 20000/800 $99.95 30GB Unlimited (Shaped - onpeak)</TD>
<TD CLASS=cols0>443:24<BR>30821.043MB</TD>
</TR>
<TR ALIGN=CENTER>
<TD CLASS=cols0>01 Apr 2008 - 30 Apr 2008</TD>
<TD CLASS=cols1>aDSL2 20000/800 $99.95 30gb Unlimited (Shaped - Offpeak)<BR>Unlimited prepaid time, Valid 23:00-08:00 daily, Limited to 2 simultaneous logins, Unlimited MB, 64k limit Tier of Service after 30000 MB</TD>
<TD CLASS=cols0>End of period: aDSL2 20000/800 $99.95 30gb Unlimited (Shaped - Offpeak)</TD>
<TD CLASS=cols1>266:42<BR>30349.285MB</TD>
</TR>
</TABLE>

<?php
//TO HERE

?>
<BR>

</TD></TR>

<TR><TD COLSPAN=2 BGCOLOR="#000000"><IMG SRC="/images/b.gif" WIDTH=387 HEIGHT=1 ALT="" BORDER="0"></TD></TR>

</TABLE></TD>

<TD WIDTH="37"><IMG SRC="/images/otter_chin.gif" WIDTH=37 HEIGHT=13 ALT="" BORDER="0"></TD>
</TR></TABLE>

</DIV>
</BODY>
</HTML>


 

Any help would be great thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.