如何在 Perl CGI 程序的每个页面上重复菜单栏?

发布于 2024-09-18 15:23:38 字数 158 浏览 1 评论 0原文

我有一个名为 Main.cgi 的页面,其中有一个带有 UserList 日志的水平菜单栏 等等,就像上面的菜单、问题、标签、用户等。每当我单击用户列表时 我导航到另一个有网格的页面。在这个页面中我也想要 Main.cgi 中的菜单栏,等等。应该对每个重复 页。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

探春 2024-09-25 15:23:38

您可能希望将创建菜单栏的代码放入模块中的函数中,以便可以从网站上的每个 CGI 程序加载该函数。

但实际上,您应该考虑使用 模板系统 为您的系统生成所有 HTML。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文