CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Left bar

Print topic Send  topic

Author Message
Juan
Posted: 03/23/2001, 6:30 PM

Hi,

Is it possible to set up a left bar?
I mean that I saw a header and a footer inside CodeCharge, but I have a page
that has a left bar too. So the dinamic contents will be showed inside a
table's cell at the right ...
Can I do this automatically?

TIA,
Juan.

John King
Posted: 03/24/2001, 4:14 AM

Hi Juan,

It can be done and this is how I do it. Hopefully others will submit
different ways because I'd like to see them too.

Select your header page, or make one. Then enter

Page:
Name: Header
Title: Whatever

Forms:
Name: Header
Type: Menu:

Fields:
Caption: Blank
Type: URL
Size: Blank

Now go back to the top of the form. Next to the Name box there's a
little hand. Click on it.

Choose Header&Footer from the menu

In the next box add top chunk of code below. Leave the bottom box empty:

------------------
Now go to your footer page and do the same, except use footer instead of
header and place the remaining code in the "header" box on the
Header&footer screen.

To see what it all looks like, enter all the code below into an html
file and run it.

<!-- Header -->
table width="100%">
<tr>
<td bgcolor="#FFFF99" height="63" colspan="2">
<div align="center">Header (Add detail as required)</div>
</td>
</tr>
</table>

table width="100%">
<tr>
<td valign="top" width="18%">
table width="140" height="100%" border="1">
<tr>
<td bgcolor=#cccccc class=normal Norway align="left">
<li> <a href="<?=$CFG->wwwroot?>">Home</a>
<li> <a
href="<?=$CFG->wwwroot?>/shopping">Shopping</a>
<li> <a
href="<?=$CFG->wwwroot?>/users/change_password.php">Change
Password</a>
<li> <a
href="<?=$CFG->wwwroot?>/users/change_settings.php">Change
Settings</a>
<li> <a
href="<?=$CFG->wwwroot?>/logout.php">Logout</a>
<hr size=1>
<li> <a href="<?=$CFG->wwwroot?>/admin">Admin
Home</a>
<li> <a
href="<?=$CFG->wwwroot?>/login.php">Login</a>
<li> <a
href="<?=$CFG->wwwroot?>/users/signup.php">Signup</a>
<hr size=1>
</td>
</tr>
</table>
</td>
<td width = 82%>
<!-- end of header -->




<!-- place all code below in your footer -->

</td>
</tr>
</table>
table width="100%">
<tr>
<td bgcolor="#FFFFCC">
<div align=center class=normal><i>Buy Buy Buy! Why Wait
Why Wait!</i></div>
</td>
</tr>
</table>
</body>
</html>

Now the trick!

We have confused your working area to think it's surrounded by boxes and
tables. Because of this, your working area is now a very simple table
without any bells and whistles. By using this method, you have created
the ultimate template driven site! in my case "every" page I've created
consists of a simple box that fits neatly into the working area. To
prove my point, create another page and add a simple form with some
detail. When you create your site, your form will be neatly squeezed
into the working area where it belongs.

You can expand on this to make a three column site.

Let me know how you go and if you have any problems you may contact me
directly.

Regards,

John



John King
Posted: 03/24/2001, 4:40 PM

Juan,

As you know, I'm still learning CodeCharge. Although I'd tried most of
the examples, I hadn't tried "Classified ads" until a few moments ago.
Classifieds is exactly what you want and almost identical to what I
supplied you. Forget my stuff and use classifieds instead. It works
fine.

John
Juan
Posted: 03/24/2001, 5:46 PM

Hi John,

I used your idea and works fine. Thanks for the response.
I will see the Classified ads sample.

Thanks again,
Juan.



   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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