This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aaaa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language=javascript> | |
$(function(){ | |
//只允许输入整数数字 | |
$("#send_number").keydown(function (event){ | |
if(((event.keyCode > 47) && (event.keyCode < 58)) ||(event.keyCode == 8)|| ((event.keyCode > 95) && (event.keyCode < 106)) ){ | |
return true; | |
}else{ | |
return false; | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach ( array( 'id', 'name', 'mail', 'qq' ) as $key ) { | |
$item[ $key ] = $_POST[ $key ]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**/ | |
var Browser_Name = navigator.appName; | |
var Browser_Version = parseFloat(navigator.appVersion); | |
var Browser_Agent = navigator.userAgent; | |
var Actual_Version, Actual_Name; | |
var is_IE = (Browser_Name == "Microsoft Internet Explorer"); | |
if(is_IE) { | |
var Version_Start = Browser_Agent.indexOf("MSIE"); | |
var Version_End = Browser_Agent.indexOf(";", Version_Start); | |
Actual_Version = Browser_Agent.substring(Version_Start + 5, Version_End) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//检测邮箱格式 | |
function is_email(str){ | |
var reg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/; | |
return reg.test(str); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.upcase{text-transform:uppercase;} | |
</style> | |
<input class="upcase" type="text" name="name" onkeyup="this.value = this.value.toUpperCase();"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="hooks[0][hook]" class="hook"> | |
<volist name="Hooks" id="vo"> | |
<optgroup label="{$key}"></optgroup> | |
<volist name ="vo" id="hook"> | |
<option value="{$hook}">{$hook}</option> | |
</volist> | |
</volist> | |
</select> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>tp_logo</title> | |
<meta name="description" content=""> | |
<meta name="keywords" content=""> | |
<style type="text/css"> | |
.border{border: 1px solid #000;width:200px;margin: 0 auto} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
+---------------------------------------------------------- | |
* 分页函数 支持sql和数据集分页 sql请用 buildSelectSql()函数生成 | |
+---------------------------------------------------------- | |
* @access public | |
+---------------------------------------------------------- | |
* @param array $result 排好序的数据集或者查询的sql语句 | |
* @param int $totalRows 每页显示记录数 默认10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header('content-type:text/html;charset:utf-8'); |
OlderNewer