1 Star 0 Fork 4

baxtax / 在线excel

forked from xu99 / 在线excel 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
input_word.php 1.03 KB
AI 代码解读
一键复制 编辑 原始数据 按行查看 历史
xu99 提交于 2017-11-16 15:45 . 在线协作电子表格
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>提交信息</title>
</head>
<body>
<div align="center">
<?php
require "CURD.php";
$rs= new DBHelper();
$res = $rs->fetch_all("SHOW COLUMNS FROM `{$_GET['type']}`");
$rt = array();
if ($res instanceof mysqli_result)
{
while (($row = $res->fetch_assoc()) != FALSE)
{
$row['CanBeNull'] = $row['Null'] === 'YES'; //字段值是否可以为空,是的话值为'YES'
$rt[] = $row;
}
}
$ss=count($rt);
echo "<form action='api.php?act=input_word&type={$_GET['type']}' method='post'>";
echo '<h1>'.$_GET['type'].'</h1>';
for ($i = 0; $i < $ss; $i++) {
if($i>0){
echo $rt[$i]['Field']."<input type='text' name={$rt[$i]['Field']}>";
echo "<br>";
}
}
echo '<input type="submit" value="提交">';
echo '</form>';
?>
</div>
</body>
</html>
PHP
1
https://gitee.com/baxtax/ZaiXianexcel.git
git@gitee.com:baxtax/ZaiXianexcel.git
baxtax
ZaiXianexcel
在线excel
master

搜索帮助