The code is as follows:
--ACL Tables
--The structure of the table ' Aclresources '
DROP TABLE IF EXISTS ' aclresources ';
CREATE TABLE IF not EXISTS ' aclresources ' (
' Rsid ' varchar (+) not NULL,
' Access ' int (4) is not NULL for default 0,
'
The simple ACL code in php is as follows:
-- ACL Tables
-- Table structure 'aclresources'
Drop table if exists 'aclresources ';
Create table if not exists 'aclresources '(
'Rsid 'varchar (64) not null,
'Access' int (4) not null default 0,
'Desc'
Make the following Javascript file and call it on any page./* = =* 1. var_to_obj --------- convert a variable to an object* 2. is_greater --------- determine whether the number is greater than a certain number* 3. is_less ---------- determine
/*
Determines whether the specified content is null. If it is null, a warning box is displayed.
*/
Function isEmpty (theValue, strMsg ){
If (theValue = ""){
Alert (strMsg + "cannot be blank! ");
Return true;
}
Return false;
}
/*
Chinese judgment
Some of the things in jquery learn all of a sudden, to complement, after all, sometimes not used toThis is useful, when using bootstrap table, select the value of the ID in the event of the node that is currently selectedThere is a lot of data in
We recommend that you search for and collect many common js judgment functions. We recommend that you search for common js judgment functions.
*Determines whether the specified content is null. If it is null, a warning box is displayed.*/Function
Data validation and regular expression validation for Extjs formsExtjs Form Verification includes empty verification, simple verification in vtype format, advanced custom password verification, and regular expression verification. Verify that code
Javascript form verification is complete. You can search for it if you need it. 1. Only numbers and English letters can be entered:
2. Only numbers can be entered:
3. Only the fullwidth fields can be entered:
4. Only Chinese characters can
This article describes the detailed summary of the js verification form, which has some reference value and needs, you can refer to the good JS verification ~~~~~~~~~~~~~~~~~~~~~~~~~
Purpose: Verify the IP address format.
Input: strIP: IP
The second part of the js verification form: JavaScript script, which verifies the data item begin in the form
-------------------------------------------------------------------------------
*/
Function checkForm (objFrm ){
Var len = 0;
Len = objFrm.
(JavaScript script to verify the data entry in the form begin)-------------------------------------------------------------------------------*/Function checkForm (objFrm ){Var len = 0;Len = objFrm. elements. length;Var I = 0;Var objCheck;// Text
Some of the things in jquery to learn at once, to complement, after all, sometimes not used in this way is very useful, when using bootstrap table, select the node currently selected the value of the ID in the current rows there are a lot of data,
Description: JavaScript script, validating data items in a form begin-------------------------------------------------------------------------------*/function Checkform (objfrm) {var len = 0;len = objFrm.elements.length;var i = 0;var Objcheck;text
(JavaScript script to verify the data entry in the form begin)-------------------------------------------------------------------------------*/Function checkForm (objFrm ){Var len = 0;Len = objFrm. elements. length;Var I = 0;Var objCheck;// Text
JS verification function call method and note:
1. Set onsubmit = "return test ()" for the form and submit it with .
2. // call function verification directly when you press the mouse
3. // pass in your own value for verification, test (this) //
JS validation function of the call method and note:
1. Set the form onsubmit= "return test ()", with Submit.
2.//When the mouse is pressed, call function validation directly
3.//Pass in its own value for verification, test (this)//incoming object
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.