<?php
error_reporting(7);
class FORMS {
function formheader($arguments=array()) {
global $HTTP_SERVER_VARS;
if ($arguments[enctype]){
$enctype="enctype=\"$arguments[enctype]\"";
} else {
$enctype="";
}
if (!isset($arguments[method])) {
$arguments[method] = "post";
}
if (!isset($arguments[action])) {
$arguments[action] = $HTTP_SERVER_VARS[PHP_SELF];
}
if (!$arguments[colspan]) {
$arguments[colspan] = 2;
}
echo "<table width=\"100%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\" class=\"tableoutline\">\n";
echo "<form action=\"$arguments[action]\" $enctype method=\"$arguments[method]\" name=\"$arguments[name]\" $arguments[extra]>\n";
if ($arguments[title]!="") {
echo "<tr id=\"cat\">
<td class=\"tbhead\" colspan=\"$arguments[colspan]\">
<b> $arguments[title] </b>
</td>
</tr>\n";
}
}
function formfooter($arguments=array()){
echo "<tr class=\"tbhead\">\n";
if ($arguments[confirm]==1) {
//$arguments[colspan] = 1;
$arguments[button][submit][type] = "submit";
$arguments[button][submit][name] = "submit";
$arguments[button][submit][value] = "确认";
$arguments[button][submit][accesskey] = "y";
$arguments[button][back][type] = "button";
$arguments[button][back][value] = "取消";
$arguments[button][back][accesskey] = "r";
$arguments[button][back][extra] = " onclick=\"history.back(1)\" ";
} elseif (empty($arguments[button])) {
$arguments[button][submit][type] = "submit";
$arguments[button][submit][name] = "submit";
$arguments[button][submit][value] = "提交";
$arguments[button][submit][accesskey] = "y";
$arguments[button][reset][type] = "reset";
$arguments[button][reset][value] = "重置";
$arguments[button][reset][accesskey] = "r";
}
if ($arguments[nextpage]==1) {
$arguments[button][nextpage][type] = "submit";
$arguments[button][nextpage][name] = "nextpage";
$arguments[button][nextpage][value] = "继续添加下一页";
$arguments[button][nextpage][accesskey] = "n";
}
if (empty($arguments[colspan])) {
$arguments[colspan] = 2;
}
//echo "<pre>";
//print_r($arguments);
//echo "</pre>";
echo "<td colspan=\"$arguments[colspan]\" align=\"center\">\n";
if (isset($arguments) AND is_array($arguments)) {
foreach ($arguments[button] AS $k=>$button) {
if (empty($button[type])) {
$button[type] = "submit";
}
echo " <input accesskey=\"$button[accesskey]\" type=\"$button[type]\" name=\"$button[name]\" value=\" $button[value] \" $button[extra]> \n";
}
}
echo "</td>
</tr>\n";
echo "</form>\n";
echo "</table>\n";
}
function tableheader() {
echo "<table width=\"100%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\" class=\"tableoutline\">\n";
}
function tablefooter() {
echo "</table>\n";
}
function tableseparate() {
$this->tablefooter();
echo "<br>\n";
$this->tableheader();
}
function makecategory($arguments = array()) {
if (!is_array($arguments)) {
$title = $arguments;
} else {
$title = $arguments[title];
}
if ($arguments[separate]==1) {
$this->tableseparate();
}
echo "<tr class=\"tbcat\" id=\"cat\">
<td colspan=\"2\">".htmlspecialchars($title)."</td>
</tr>\n";
}
function maketd($arguments = array()) {
echo "<tr ".$this->getrowbg()." nowrap>";
foreach ($arguments AS $k=>$v) {
echo "<td>$v</td>";
}
echo "</tr>\n";
}
function makeinput($arguments = array()) {
if (empty($arguments[size])) {
$arguments[size] = 35;
}
if (empty($arguments[maxlength])) {
$arguments[maxlength] = 50;
}
if ($arguments[html]) {
$arguments[value] = htmlspecialchars($arguments[value]);
}
if (!empty($arguments[css])) {
$class = "class=\"$arguments[css]\"";
}
if (empty($arguments[type])) {
$arguments[type] = "text";
}
echo "<tr ".$this->getrowbg()." nowrap ".$arguments[tr].">
<td width=100>$arguments[text]</td>
<td>
<input $class type=\"$arguments[type]\" name=\"$arguments[name]\" size=\"$arguments[size]\" maxlength=\"$arguments[maxlength]\" value=\"$arguments[value]\" $arguments[extra]>$arguments[text2]\n
</td>
</tr>\n";
}
function makecolorinput($arguments = array()) {
if (empty($arguments[size])) {
$arguments[size] = 35;
}
if (empty($arguments[maxlength])) {
$arguments[maxlength] = 50;
}
if (empty($arguments[nohtml])) {
$arguments[value] = htmlspecialchars($arguments[value]);
}
if (!empty($arguments[css])) {
$class = "class=\"$arguments[css]\"";
}
$arguments[size] = "7";
$arguments[maxlength] = "7";
//this.form.$arguments[name].style.backgroundColor=this.value;
echo "<tr ".$this->getrowbg()." nowrap>
<td>$arguments[text]</td>
<td>
<input onchange=\"this.style.backgroundColor=this.value;\" $class type=\"text\" name=\"$arguments[name]\" size=\"$arguments[size]\" maxlength=\"$arguments[maxlength]\" value=\"$arguments[value]\">\n
<input style=\"background-color:$arguments[value];\" name=\"$arguments[name]\" type=\"button\" value=\" \" disable>
</td>
</tr>\n";
}
function makefile($arguments = array()) {
echo "<tr ".$this->getrowbg()." nowrap>
<td>$arguments[text]</td>
<td>
<input type=\"file\" name=\"$arguments[name]\" $arguments[extra]>\n
</td>
</tr>\n";
}
function maketextarea($arguments = array()){
// $text,$name,$value="",$cols=40,$rows=7,$extra=""
if (emp
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
[信息办公]落伍兄弟分类信息程序_zend_flz.zip源码PHP项目源代码下载[信息办公]落伍兄弟分类信息程序_zend_flz.zip源码PHP项目源代码下载 1.适合个人搭建网站项目参考 2.适合学生毕业设计搭建网站参考 3.适合小公司搭建网站项目参考
资源推荐
资源详情
资源评论
收起资源包目录
[信息办公]落伍兄弟分类信息程序_zend_flz.zip (49个子文件)
[信息办公]落伍兄弟分类信息程序_zend_flz
zend_flz
functions.php 3KB
templates
index
head.html 719B
foot.html 66B
images
gif.gif 4KB
isort.html 337B
re_list.html 117B
head.js 232B
index.html 2KB
info.html 4KB
search_i.html 1KB
post.html 496B
list.html 1KB
ws.html 796B
foot.js 453B
re.html 82B
cp
html.php 4KB
global.php 5KB
class
template.php 6KB
forms.php 22KB
mysql.php 5KB
isort.php 10KB
index.php 7KB
user.php 12KB
functions_admin.php 13KB
area.php 9KB
template.php 7KB
templates.php 1KB
config.php 471B
log.php 5KB
ubb.php 2KB
info.php 15KB
infooperate.php 8KB
install.php 4KB
functions_html.php 10KB
cp.css 4KB
py.php 10KB
ws.php 7KB
GB2312.js 18KB
database.php 7KB
backup
go.php 2KB
info_action.php 6KB
js_info.php 3KB
list.php 7KB
save_i.php 7KB
info_re.php 4KB
search.php 8KB
post.php 6KB
css.css 3KB
settings.php 3KB
共 49 条
- 1
资源评论
yxkfw
- 粉丝: 76
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 【全网最新最全】大气公司年度月度总结汇报PPT
- C语言实现低功耗STM32F411开发板(原理图+PCB源文件+官方例程+驱动等).zip
- C语言实现基于STM32 的联合调试侦听设备解决方案(原理图、PCB源文件、调试工具、视频).zip
- 【全网最全最酷】部门年度年终工作总结汇报PPT模板
- C语言实现基于STM32F103RC的电子相册(原理图、PCB源文件、程序源码及制作).zip
- C语言实现基于stm32和mpu9250的usb hid键盘、鼠标、游戏控制器.zip
- SAP GUI for Windows 7.70 Patch16
- C语言实现基于物联网的户外环境检测装置(STM32、APP、WIFI).zip
- Models for ICM/MCM美赛常用模型.zip
- cef源码CEF全称Chromium Embedded Framework
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功