开发者

How can I repeat the menu bar on every page from a Perl CGI program?

开发者 https://www.devze.com 2023-01-15 20:53 出处:网络
I have a page named Main.cgi where in I have a horizontal menu bar with UserList logs and so on like the Menu above Questions Tags Users etc. Whenever I click the Userlist

I have a page named Main.cgi where in I have a horizontal menu bar with UserList logs and so on like the Menu above Questions Tags Users etc. Whenever I click the Userlist I get navigated to another page where I have开发者_如何转开发 a grid. In this page also I want that Menu bar which was in Main.cgi, and so on. It should get repeated to every page.


You probably want to make the code that created the menu bar into a function in a module that you can load from every CGI program on your web site.

But really, you should be looking at using a templating system to produce all of the HTML for your system.

0

精彩评论

暂无评论...
验证码 换一张
取 消