English 中文(简体)
在我的 PHP 控制面板 CMS 上使用什么逻辑
原标题:what logic to use on my control panel CMS in PHP
  • 时间:2012-05-28 05:31:28
  •  标签:
  • php

i am trying to make a control panel for my site, but i have no idea on what logic to use.
for example my control panel has an add user button,what i would like to happen is that when a user clicks on that button.. the page will show up on a specific <div></div> with out refreshing the page.

我想的逻辑是:

1. 使用一个框架并装载所有相关的网页(我不知道PROs和CONs)

2. 使用FLASH,用于控制面板(我不知道PROs和CONs)

3. 使用 Javascript 或像JQuery这样的JS图书馆,我不知道该如何称呼它。

问题是,我用什么逻辑, 或者你可以建议一些更安全的东西,谢谢。

最佳回答

如果您期望人们经常从此页面添加用户, 明智的做法是只需加载将用户添加到 DOM 上所需的表格, 并在管理员点击此按钮时切换其可见度 。

您提到的最后一个选项, 与jQuery( 或任何 JS 图书馆) 一起不同步地装入数据, 也相当微不足道 。 您可以有很多方法做到这一点, 但一个简单的方法就是使用 Ajax < a href=" http:// api.jquery.com/load/" rel=" nofollow"\\\ code>. load 方法 :

$(".addUser").on("click", function(){
  $("#myDiv").load("/addUserForm.php");
});
问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签