CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 How to add new menu from database

Print topic Send  topic

Author Message
Baby

Posts: 1
Posted: 02/04/2005, 1:14 AM

When I am submitting a data, that will add to database, from that db , can i Create a new menu from database.
View profile  Send private message
Damian Hupfeld
Posted: 02/04/2005, 3:39 AM

I do this by using a CSS Style Sheet Menu...

HTML Code:
<!-- BEGIN Grid prod_range_new -->
<!-- BEGIN Row -->
<tr>
<td background="images/menurow.jpg" height="28" width="223"
align="center">
<div id="vert">
<a href="{prod_name_Src}">{prod_name}</a>
</div>
</td>
</tr>
<!-- END Row -->
<!-- BEGIN NoRecords --><!-- END NoRecords -->
<!-- END Grid prod_range_new -->

Note the DIV ID...

This is from the Style Sheet:

#vert a {display: inline; width: 136px; height: 18px; background-color:
#FF9900; padding: 0px; border: 1px solid #000000; font-family: Verdana,
sans-serif; font-size: 8pt; font-weight: bold; text-decoration: none;
text-align: center; text-vertical-align: middle; vertical-align: middle;
color: #000000; }
#vert a:link, #menu a:visited {color: #000000;}
#vert a:hover {border: 1px solid #000000; background-image:
url(../../images/menuover.jpg); color: #FFFFFF;}

Try it... easy and using the combination of style sheets and background
images you can make a very smart looking and dynamic menu.

regards
Damian Hupfeld
http://www.nexthost.com.au/services.php
peterr


Posts: 5971
Posted: 02/04/2005, 11:36 AM

There are also multi-level menu examples in CCS Example Pack 2.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
naren
Posted: 02/16/2005, 2:30 AM

Hi all
I hav a problem, i want to create a webpage,That has menu, that will driven from database. if I insert new data in that database new menu has to be inserted in web page. It will be automatically.

give some idea
naren
Posted: 02/16/2005, 2:30 AM

Hi all
I hav a problem, i want to create a webpage,That has menu, that will driven from database. if I insert new data in that database new menu has to be inserted in web page. It will be automatically.

give some idea
drongle
Posted: 03/02/2005, 7:40 AM

I have a problem. I have looked into the menu examples in CCS Example Pack 2, but it is based on the menu table in the Intranet database. I cannot find this table in my Example DB. Where can I find the table structure?

Regards

Dave
Nicole

Posts: 586
Posted: 03/03/2005, 2:28 AM

Naren,
New items added to a database appears in a menu after page reload automatically. I don’t think it could be a problem because page is reloading anyway when record form is submitted (I assume that new data is added via record form or editable grid).

Dave,
CCSExamplePack2 installation file updates the Access databases and sql scripts for other databases with new tables. Re-check files in ..\CodeChargeStudio\Examples\Internet and ..\CodeChargeStudio\Examples\Intranet folders for updates.

_________________
Regards,
Nicole
View profile  Send private message
drongle
Posted: 03/03/2005, 9:50 AM

Dear All,

Sorry 8-), It does help if you install the NEW CCSExamplePack2 and dont try to look / use the original CCSExamplePack.

Dave :-(

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.