如何在现有的 PHP Web 应用程序中更改和添加新的网页和内容并摆脱设计和视图问题?
目前,我在一个带有 sybase 数据库连接的现有 php Web 应用程序中工作。
该网站是使用 HTML、CSS、JavaScript、Photoshop、Flash、PHP、IIS 和 Sybase 构建的。
我想向此 Web 应用程序添加一些网页,因此我复制了一个网页(例如 AboutUs.php),并确定其中的某个区域来更改静态(文本和 HTML 标签)或动态(连接到数据库)及其使用 CSS 的外观。
此 Web 应用程序使用带有 *.dwt.php 扩展名的 Web 模板,并适用于所有网站页面,因为主网页包含一些固定数据,如页眉、页脚、右侧、左侧、中心,并且此数据包括具有预定义的图像和 Flash 对象尺寸和类型。
如何禁用模板或修改它以摆脱设计和视图更改问题?
是否有其他方法可以用我开发的新的自定义模板替换此模板?
我现在面临的问题是,当我在网页中添加内容时,显示和视图变得奇怪,并且某些项目和元素重叠,特别是在页眉、页脚和页面两侧。
它使网页看起来很糟糕,因为当从数据库获取数据或发生任何更改时,网页设计会有所不同,特别是图像及其边框会发生变化、重叠和相交。
我不太了解 Photoshop,因为我想编辑或更改尺寸并修改所有 Web 应用程序图像属性和尺寸,以了解其原因。
是否有一种快速且正确的方法来解决该问题,而不是重建 Web 应用程序或测试和验证所有对象和项目,因为这将花费很长时间?
Currently, I work in an existing php web application with sybase database connection.
The web site is built using HTML, CSS, JavaScript, Photoshop, Flash, PHP, IIS, and Sybase.
I would like to add some web pages to this web application so I take a copy of one web page like AboutUs.php for Example and I determine a certain area inside it to change the content either static (text and HTML tags) or dynamic (connecting to the database) and its appearence using CSS.
This web application uses a web template with *.dwt.php Extension and applys for all web site pages as the master web page contains some fixed data like header,footer,rightside,leftside,center and this data includes images and flash objects with predefined sizes and types.
How I can disable the template or modify it to get rid of the design and view changing problems ?
Is there any alternative to replace this template with a new customized template developed by me ?
The problem I face now is when i add my content in the web page the display and the view of it becomes strange and some items and elements overlapped especially in the header, the footer and the sides of the page.
It gives a bad looking for the web page as when data is got from the database or any change happened, the web page design differs especially the images and their borders change and overlapped and intersects.
I do not know Photoshop very well as i think to edit or change the sizes and revise all the web application images properties and sizes to know what is the cause of that.
Is there a fast and proper way to solve that problem instead of rebuilding the web application or testing and verifying all objects and items as this will take long time ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
.dwt
是 Dreamweaver 模板格式,因此听起来好像该网站是使用 Dreamweaver(Adobe 制作的所见即所得程序)。如果您对 Web 开发不太了解,或者不习惯编辑模板,那么最简单的选择可能是使用 Dreamweaver 编辑网站,因为这是当前的格式。.dwt
is a Dreamweaver template format, so it sounds as if the site has been built in Dreamweaver (a WYSIWYG programme made by Adobe). If you don't know much about web development, or aren't comfortable editing the template then the easiest option may be to use Dreamweaver to edit the site, since this is the format it is currently in.嗯,我认为你需要在网络应用程序开发上投入一些时间和/或金钱。如果您没有 Web 应用程序开发经验,则很难向您解释如何做到这一点。
所以,不,没有快速的方法来解决你的问题。
Well I think you need to invest some time and or money in webapplication development. It is hard to expain you how to do it if you have no experience in web application development.
So, no there is no fast way to solve your problem.