OK with Ted's help I have it working 90%

This is the results page that works BUT

It seems to ignore the 1st break which should come after the 2nd record.
After that it works fine. I am sure I just have my assigns messed up
somewhere but can't seem to find it.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
    <TITLE>Record Detail</TITLE>
    
<STYLE>
   .pagebreak {page-break-before:always}
</STYLE>
    
</HEAD>

<BODY>


<@ASSIGN NAME="Company" VALUE='<@REPLACE STR="@@resultset[1,2]" FINDSTR=" "
REPLACESTR="" >' SCOPE="local">



<TABLE BORDER=0>

<@ROWS >


<TR VALIGN=TOP ALIGN=LEFT>
    <TD>
        CompanyName:
    </TD>
    <TD>
        <@COLUMN "Courses.CompanyName">
    </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
    <TD>
        CourseNumber:
    </TD>
    <TD>
        <@COLUMN "Courses.CourseNumber">
    </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
    <TD>
        CourseLongName:
    </TD>
    <TD>
        <@COLUMN "Courses.CourseLongName">
    </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
    <TD>
        StartDate: 
    </TD>
    <TD>
        <@COLUMN "Courses.StartDate" FORMAT="datetime:@@dateFormat">
    </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
    <TD>
        EndDate: 
    </TD>
    <TD>
        <@COLUMN "Courses.EndDate" FORMAT="datetime:@@dateFormat">
    </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
    <TD>
        StartTime: 
    </TD>
    <TD>
        <@COLUMN "Courses.StartTime" FORMAT='datetime:%I:%M %p'>
    </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
    <TD>
        EndTime: 
    </TD>
    <TD>
        <@COLUMN "Courses.EndTime" FORMAT='datetime:%I:%M %p'>
    </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
    <TD>
        Days List: 
    </TD>
    <TD>
        <@COLUMN "Courses.Days_List">
    </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
    <TD>
        CourseDescription:
    </TD>
    <TD>
        <@COLUMN "Courses.CourseDescription">
    </TD>
</TR>


<@IF EXPR='@@local$Company!=<@REPLACE STR="<@COLUMN 'Courses.CompanyName'>"
FINDSTR=" " REPLACESTR=""> '>
<@ASSIGN NAME="Company" VALUE='<@REPLACE STR="<@COLUMN
'Courses.CompanyName'>" FINDSTR=" " REPLACESTR="">' SCOPE="local">
</TABLE>
 <DIV CLASS="pagebreak">&nbsp;</DIV>
<Table>
</@IF>
</@ROWS>

</table>

</BODY>
</HTML>


-- 
Dan Stein
Digital Software Solutions
799 Evergreen Circle
Telford PA 18969
Land: 215-799-0192
Mobile: 610-256-2843
Fax 413-410-9682
FMP, WiTango, EDI,SQL 2000
[EMAIL PROTECTED]
www.dss-db.com


> From: Bill Conlon <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Fri, 1 Nov 2002 11:34:01 -0800
> To: Multiple recipients of list witango-talk <[EMAIL PROTECTED]>
> Subject: Re: Witango-Talk:  [OT] CSS or HTML Style Help
> 
> I don't see a document or external style sheet reference defining the
> pagebreak class. 
> 
>> I dense or missing something or both.
>> 
>> Attached is the code I am using trying to follow you suggestion but not
>> working.
>> 
>> 
>> I made it a tml so it would color code in the editor. I am of course just
>> using it in a results page html
>> -- 
>> Dan Stein
>> Digital Software Solutions
>> 799 Evergreen Circle
>> Telford PA 18969
>> Land: 215-799-0192
>> Mobile: 610-256-2843
>> Fax 413-410-9682
>> FMP, WiTango, EDI,SQL 2000
>> [EMAIL PROTECTED]
>> www.dss-db.com
>> 
>> 
>>> From: Ted Wolfley <[EMAIL PROTECTED]>
>>> Reply-To: [EMAIL PROTECTED]
>>> Date: Fri, 1 Nov 2002 14:04:31 -0500
>>> To: Multiple recipients of list witango-talk <[EMAIL PROTECTED]>
>>> Subject: RE: Witango-Talk:  [OT] CSS or HTML Style Help
>>> 
>>> <div class='pagebreak'>&nbsp;</div> is correct.  I am using it between
>>> tables.
>>> 
>>> I would end the table on instructor change, inset a page break, then restart
>>> the table.  All inside the rows tag.
>>> 
>>> -----Original Message-----
>>> From: Dan Stein [mailto:dan@;dss-db.com]
>>> Sent: Friday, November 01, 2002 1:51 PM
>>> To: Multiple recipients of list witango-talk
>>> Subject: Re: Witango-Talk: [OT] CSS or HTML Style Help
>>> 
>>> 
>>> I'm doing the IF thing already.
>>> 
>>> Is the syntax
>>> <div class='pagebreak'>&nbsp;</div>
>>> 
>>> Correct?
>>> 
>>> Don't the Div tags have to be before the open and close table tags?
>>> 
>>> Or do I just put all the logic and the end of the table tag but inside the
>>> rows tag.
>>> 
>>> 
>>> -- 
>>> Dan Stein
>>> Digital Software Solutions
>>> 799 Evergreen Circle
>>> Telford PA 18969
>>> Land: 215-799-0192
>>> Mobile: 610-256-2843
>>> Fax 413-410-9682
>>> FMP, WiTango, EDI,SQL 2000
>>> [EMAIL PROTECTED]
>>> www.dss-db.com
>>> 
>>> 
>>>> From: Ted Wolfley <[EMAIL PROTECTED]>
>>>> Reply-To: [EMAIL PROTECTED]
>>>> Date: Fri, 1 Nov 2002 13:32:45 -0500
>>>> To: Multiple recipients of list witango-talk <[EMAIL PROTECTED]>
>>>> Subject: RE: Witango-Talk:  [OT] CSS or HTML Style Help
>>>> 
>>>> Try using a <@if> <?@if> to check if instructors change. If they do, use
>>>> <div class='pagebreak'>&nbsp;</div> to force a page break.
>>>> 
>>>> Ted
>>>> 
>>>> -----Original Message-----
>>>> From: Dan Stein [mailto:dan@;dss-db.com]
>>>> Sent: Friday, November 01, 2002 1:09 PM
>>>> To: Multiple recipients of list witango-talk
>>>> Subject: Witango-Talk: [OT] CSS or HTML Style Help
>>>> 
>>>> 
>>>> I am trying to force a page break in a long list of courses when the
>>>> Instructor Name changes.
>>>> 
>>>> I have no trouble getting the code to appear in the source view where I
>>> want
>>>> it to be but I have not worked at all with CSS and can't seem to get the
>>>> HTML syntax right either.
>>>> 
>>>> What I want is when the Instructor name changes in the row listing of the
>>>> courses I want to print a new page.
>>>> 
>>>> I have tried
>>>> 
>>>> <BR CLASS="pageEnd> which the CSS reference in Dreamweaver MX says should
>>>> work but I probably need something else somewhere in my code that I am
>>>> missing.
>>>> 
>>>> I have also tried <DIV Style="page-break-after:always">
>>>> 
>>>> Neither work
>>>> 
>>>> What am I missing
>>>> 
>>>> 
>>>> -- 
>>>> Dan Stein
>>>> Digital Software Solutions
>>>> 799 Evergreen Circle
>>>> Telford PA 18969
>>>> Land: 215-799-0192
>>>> Mobile: 610-256-2843
>>>> Fax 413-410-9682
>>>> FMP, WiTango, EDI,SQL 2000
>>>> [EMAIL PROTECTED]
>>>> www.dss-db.com
>>>> 
>>>> 
>>>> ________________________________________________________________________
>>>> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>>>>               with unsubscribe witango-talk in the message body
>>>> ________________________________________________________________________
>>>> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>>>>               with unsubscribe witango-talk in the message body
>>>> 
>>> 
>>> ________________________________________________________________________
>>> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>>>               with unsubscribe witango-talk in the message body
>>> ________________________________________________________________________
>>> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>>>               with unsubscribe witango-talk in the message body
>>> 
>> 
>> 
> 
> 
> Bill Conlon
> 
> To the Point
> 345 California Avenue Suite 2
> Palo Alto, CA 94306
> 
> office: 650.327.2175
> fax:    650.329.8335
> mobile: 650.906.9929
> e-mail: mailto:bill@;tothept.com
> web:    http://www.tothept.com
> 
> 
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>               with unsubscribe witango-talk in the message body
> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
        <TITLE>Record Detail</TITLE>
        
<STYLE>
   .pagebreak {page-break-before:always}
</STYLE>
        
</HEAD>

<BODY>


<@ASSIGN NAME="Company" VALUE='<@REPLACE STR="@@resultset[1,2]" FINDSTR=" " 
REPLACESTR="" >' SCOPE="local">



<TABLE BORDER=0>

<@ROWS >


<TR VALIGN=TOP ALIGN=LEFT>
        <TD>
                CompanyName: 
        </TD>
        <TD>
                <@COLUMN "Courses.CompanyName">
        </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
        <TD>
                CourseNumber: 
        </TD>
        <TD>
                <@COLUMN "Courses.CourseNumber">
        </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
        <TD>
                CourseLongName: 
        </TD>
        <TD>
                <@COLUMN "Courses.CourseLongName">
        </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
        <TD>
                StartDate: 
        </TD>
        <TD>
                <@COLUMN "Courses.StartDate" FORMAT="datetime:@@dateFormat">
        </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
        <TD>
                EndDate: 
        </TD>
        <TD>
                <@COLUMN "Courses.EndDate" FORMAT="datetime:@@dateFormat">
        </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
        <TD>
                StartTime: 
        </TD>
        <TD>
                <@COLUMN "Courses.StartTime" FORMAT='datetime:%I:%M %p'>
        </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
        <TD>
                EndTime: 
        </TD>
        <TD>
                <@COLUMN "Courses.EndTime" FORMAT='datetime:%I:%M %p'>
        </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
        <TD>
                Days List: 
        </TD>
        <TD>
                <@COLUMN "Courses.Days_List">
        </TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
        <TD>
                CourseDescription: 
        </TD>
        <TD>
                <@COLUMN "Courses.CourseDescription">
        </TD>
</TR>


<@IF EXPR='@@local$Company!=<@REPLACE STR="<@COLUMN 'Courses.CompanyName'>" FINDSTR=" 
" REPLACESTR=""> '>
<@ASSIGN NAME="Company" VALUE='<@REPLACE STR="<@COLUMN 'Courses.CompanyName'>" 
FINDSTR=" " REPLACESTR="">' SCOPE="local">
</TABLE>
 <DIV CLASS="pagebreak">&nbsp;</DIV>
<Table>
</@IF>
</@ROWS>

</table>

</BODY>
</HTML>

Reply via email to