This topic is locked

Pls help format printer-friendly page

4/12/2007 4:06:38 PM
PHPRunner General questions
Z
zebex author

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=4991&image=1&table=forumtopics' class='bbc_emoticon' alt=':rolleyes:' />
First Screenshot
Second Screenshot
[color=#FF0000]https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=4991&image=2&table=forumtopics
I have a problem in one of my printer-friendly page (see first screenshot). I want it to like to like this! (See second screenshot). I need help on this...thanx in advance.
Here is the code of my printer-friendly page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Print Class Schedule</TITLE>

<META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK

href="include/style.css" type=text/css rel=stylesheet>{literal}

<STYLE>

table { border-collapse: collapse}

td {

padding: 5px;

margin: 0px;

border-width: 1px;

border-style: solid;

border-color: #000000;

}

</STYLE>

{/literal}

<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>

<BODY>{include_if_exists file="include/header.php"} {doevent name="PrintOnLoad"}

<H1>Print Class Schedule</H1>Â Â Â Â Â Â Â Faculty:

{$row.1Fname_value}Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â

Institute: {$row.1office_value}

<TABLE cellSpacing=2 cellPadding=3 width="95%" align=center border=0>

<TBODY>

<TR><!--{if $column1show}-->

<TD class=blackshade width=98>Time</TD>

<TD class=blackshade width=98>Days</TD>

<TD class=blackshade width=98>Subject</TD>

<TD class=blackshade width=98>Room</TD>

<TD class=blackshade width=98>Section</TD>

<TD class=blackshade width=98>Semester</TD>

<TD class=blackshade width=107>School Year</TD><!--{/if}--></TR>{foreach from=$rowinfo item=row}

<TR vAlign=top>

<TD width=98>{$row.1time_value} </TD>

<TD width=98>{$row.1days_value} </TD>

<TD width=98>{$row.1subject_value} </TD>

<TD width=98>{$row.1room_value} </TD>

<TD width=98>{$row.1section_value} </TD>

<TD width=98>{$row.1semester_value} </TD>

<TD width=107>{$row.1schoolyear_value} </TD></TR>{/foreach}<!-- totals row -->

<TR class=blackshade>

<TD class=blackshade width=98></TD>

<TD class=blackshade width=98></TD>

<TD class=blackshade width=98>Count: {$showtotal_subject} </TD>

<TD class=blackshade width=98></TD>

<TD class=blackshade width=98></TD>

<TD class=blackshade width=98></TD>

<TD class=blackshade width=107></TD></TR></TBODY></TABLE>{include_if_exists file="include/footer.php"} </BODY></HTML>

Sergey Kornilov admin 4/12/2007

See my changes in bold:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Print Class Schedule</TITLE>

<META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK

href="include/style.css" type=text/css rel=stylesheet>{literal}

<STYLE>

table { border-collapse: collapse}

td {

padding: 5px;

margin: 0px;

border-width: 1px;

border-style: solid;

border-color: #000000;

}

</STYLE>

{/literal}

<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>

<BODY>{include_if_exists file="include/header.php"} {doevent name="PrintOnLoad"}

<H1>Print Class Schedule</H1>
{foreach from=$rowinfo item=row name=header}

{if $smarty.foreach.header.first}

Faculty: {$row.1Fname_value}

Institute: {$row.1office_value}

{/if}

{/foreach}


<TABLE cellSpacing=2 cellPadding=3 width="95%" align=center border=0>

<TBODY>

<TR><!--{if $column1show}-->

<TD class=blackshade width=98>Time</TD>

<TD class=blackshade width=98>Days</TD>

<TD class=blackshade width=98>Subject</TD>

<TD class=blackshade width=98>Room</TD>

<TD class=blackshade width=98>Section</TD>

<TD class=blackshade width=98>Semester</TD>

<TD class=blackshade width=107>School Year</TD><!--{/if}--></TR>{foreach from=$rowinfo item=row}

<TR vAlign=top>

<TD width=98>{$row.1time_value} </TD>

<TD width=98>{$row.1days_value} </TD>

<TD width=98>{$row.1subject_value} </TD>

<TD width=98>{$row.1room_value} </TD>

<TD width=98>{$row.1section_value} </TD>

<TD width=98>{$row.1semester_value} </TD>

<TD width=107>{$row.1schoolyear_value} </TD></TR>{/foreach}<!-- totals row -->

<TR class=blackshade>

<TD class=blackshade width=98></TD>

<TD class=blackshade width=98></TD>

<TD class=blackshade width=98>Count: {$showtotal_subject} </TD>

<TD class=blackshade width=98></TD>

<TD class=blackshade width=98></TD>

<TD class=blackshade width=98></TD>

<TD class=blackshade width=107></TD></TR></TBODY></TABLE>{include_if_exists file="include/footer.php"} </BODY></HTML>

Z
zebex author 4/12/2007

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=16894&image=1&table=forumreplies' class='bbc_emoticon' alt=':P' /> Thanks again...Working now!

See my changes in bold:

A
Atul 11/28/2007

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=23703&image=1&table=forumreplies' class='bbc_emoticon' alt=':P' /> Thanks again...Working now!


I am getting same problem as above in asp

What will be the code is asp

Pls help me

Thanks and best regards:

Atul

Bangladesh

J
Jane 11/28/2007

Atul,
the code in the ..._print.htm file isn't dependent on programming language. You can use the same code in your application.

Also I recommend you to post all questions about ASPRunner in the ASPRunnerPro forum:

http://www.asprunner.com/forums/index.php?showforum=2