This topic is locked

List Page on Add Page

6/10/2010 5:32:03 PM
PHPRunner General questions
K
Kabukiblood author

Hello Everyone,
I am trying to setup an Add Page from one table where below the section to add a new record I can display a list page from another table that I can search before I add the new record.
Can anyone help with this?

A
ann 6/15/2010

Hi,
you can create a code snippet on the Visual Editor tab which will display records on the add page from another table.

S
Seraph 6/16/2010



Hi,
you can create a code snippet on the Visual Editor tab which will display records on the add page from another table.


Hi,

but if I put some HTML code of the file listpage (example: TABLE_list.html) in the HTML file of the addpage (table_add.html), it works?
thank you

A
ann 6/16/2010

Hi,
you can't just copy the HTML code, you need to use custom event to select records from the table (PHP code snippet).

Other way of adding List page to the Add page is to use <iframe> tag (HTML mode on the Visual Editor tab).

More information:

http://www.w3schools.com/tags/tag_iframe.asp

S
Seraph 7/1/2010



Hi,
you can't just copy the HTML code, you need to use custom event to select records from the table (PHP code snippet).

Other way of adding List page to the Add page is to use <iframe> tag (HTML mode on the Visual Editor tab).

More information:

http://www.w3schools.com/tags/tag_iframe.asp


I tried inserting this code html in the bottom of Visual editor tab of table1_List_page in this way:

<IFRAME

height=700 src="templates/table2_list.htm"

width="100%">

<p>Your browser does not support iframes.</p>

</IFRAME>


But the result is that I have a frame of a bad html (phprunner code) like that:

{BEGIN style_block} {END style_block} {BEGIN body}

{$header} {BEGIN toplinks_block}

Logged on as {$username} Log out {BEGIN asearch_link} Advanced search {END asearch_link}

{END toplinks_block} {BEGIN menu_block}

{$mainmenu horizontal}

{END menu_block}

{BEGIN search_records_block}

{BEGIN searchform}

...

...

...

...


Any Ideas?
thank you very much

A
ann 7/1/2010

Hi,
here is the correct sample:

<IFRAME height=700 src="table2_list.php" width="100%"> <p>Your browser does not support iframes.</p>

</IFRAME>
S
Seraph 7/1/2010



Hi,
here is the correct sample:

<IFRAME height=700 src="table2_list.php" width="100%"> <p>Your browser does not support iframes.</p>

</IFRAME>



Yes! It's work!

Thanks
only one thing... The page call by Iframe obviously show also the heaer, and the menu...

I don't want delete them cause I want they are showed in the real page of this table. Only when I call this page through IFRAME I need hide them... I have to use css? java?
thank you very much (and sorry for my infinite questions <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=50909&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> )

A
ann 7/1/2010

Hi,
you can create a view for the table (on the Datasources tables tab), edit it and use then as iframe.