<?
/*
Name: Export Structure
URI: http://joesen.f2blog.com/index.php?load=read&id=234
Version: 1.0
Author: Joesen & Korsen
Author URI: http://joesen.f2blog.com
*/
error_reporting (E_ERROR | E_WARNING | E_PARSE);// This will NOT report uninitialized variables
if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
define('PMA_GRAB_GLOBALS_INCLUDED', 1);
if (phpversion()<"4.1.0"){
$PHP_SELF=$HTTP_SERVER_VARS['PHP_SELF'];
$HTTP_HOST=$HTTP_SERVER_VARS['HTTP_HOST'];
$REMOTE_ADDR=$HTTP_SERVER_VARS['REMOTE_ADDR'];
}else{
$PHP_SELF=$_SERVER['PHP_SELF'];
$HTTP_HOST=$_SERVER['HTTP_HOST'];
$REMOTE_ADDR=$_SERVER['REMOTE_ADDR'];
}
if (!empty($_GET)) {
$fix_vars = array('_GET');
for ($n = 0; $n < sizeof($fix_vars); ++$n)
{
if (is_array($GLOBALS[$fix_vars[$n]]))
{
while (list($k, $v) = each($GLOBALS[$fix_vars[$n]]))
{
$GLOBALS[$fix_vars[$n]][$k] = $v;
$GLOBALS[$k] = $v;
}
@reset($GLOBALS[$fix_vars[$n]]);
}
}
} else if (!empty($HTTP_GET_VARS)) {
$fix_vars = array('HTTP_GET_VARS');
for ($n = 0; $n < sizeof($fix_vars); ++$n)
{
if (is_array($GLOBALS[$fix_vars[$n]]))
{
while (list($k, $v) = each($GLOBALS[$fix_vars[$n]]))
{
$GLOBALS[$fix_vars[$n]][$k] = $v;
$GLOBALS[$k] = $v;
}
@reset($GLOBALS[$fix_vars[$n]]);
}
}
} // end if
if (!empty($_POST)) {
$fix_vars = array('_POST');
for ($n = 0; $n < sizeof($fix_vars); ++$n)
{
if (is_array($GLOBALS[$fix_vars[$n]]))
{
while (list($k, $v) = each($GLOBALS[$fix_vars[$n]]))
{
$GLOBALS[$fix_vars[$n]][$k] = $v;
$GLOBALS[$k] = $v;
}
@reset($GLOBALS[$fix_vars[$n]]);
}
}
} else if (!empty($HTTP_POST_VARS)) {
$fix_vars = array('HTTP_POST_VARS');
for ($n = 0; $n < sizeof($fix_vars); ++$n)
{
if (is_array($GLOBALS[$fix_vars[$n]]))
{
while (list($k, $v) = each($GLOBALS[$fix_vars[$n]]))
{
$GLOBALS[$fix_vars[$n]][$k] = $v;
$GLOBALS[$k] = $v;
}
@reset($GLOBALS[$fix_vars[$n]]);
}
}
} // end if
}
//Set Server
$dbserver="localhost";
$dbusername="root";
$dbpassword="123";
$mysql_conn=@mysql_connect("$dbserver","$dbusername","$dbpassword") or die("Mysql connect is error.");
if ($action!=""){
$seektable=@implode(";",$arr_seektable);
if ($seektable!=""){
$seektable=";$seektable;";
}
//echo $seektable;
}
//export data
if ($action=="export" && $database!=""){
$temp_title="";
$temp_title.="<html xmlns:o=\"urn:schemas-microsoft-com:office:office\"\n";
$temp_title.="xmlns:x=\"urn:schemas-microsoft-com:office:excel\"\n";
$temp_title.="xmlns=\"http://www.w3.org/TR/REC-html40\">\n";
$temp_title.="\n";
$temp_title.="<head>\n";
$temp_title.="<meta http-equiv=Content-Type content=\"text/html; charset=big5\">\n";
$temp_title.="<meta name=ProgId content=Excel.Sheet>\n";
$temp_title.="<meta name=Generator content=\"Microsoft Excel 10\">\n";
$temp_title.="<!--[if gte mso 9]><xml>\n";
$temp_title.="<x:ExcelWorkbook>\n";
$temp_title.="<x:ExcelWorksheets>\n";
$temp_title.="<x:ExcelWorksheet>\n";
$temp_title.="<x:Name></x:Name>\n";
$temp_title.=" <x:WorksheetOptions>\n";
$temp_title.=" <x:DisplayGridlines/>\n";
$temp_title.=" </x:WorksheetOptions>\n";
$temp_title.=" </x:ExcelWorksheet>\n";
$temp_title.=" </x:ExcelWorksheets>\n";
$temp_title.=" </x:ExcelWorkbook>\n";
$temp_title.="</xml><![endif]-->\n";
$temp_title.="<style type=\"text/css\">\n";
$temp_title.="<!--\n";
$temp_title.=".LeftTop {\n";
$temp_title.=" border-top-width: 1pt;\n";
$temp_title.=" border-bottom-width: 0px;\n";
$temp_title.=" border-left-width: 1pt;\n";
$temp_title.=" border-right-width: 0px;\n";
$temp_title.=" border-top-color: #000000;\n";
$temp_title.=" border-right-color: #000000;\n";
$temp_title.=" border-left-color: #000000;\n";
$temp_title.=" border-bottom-color: #000000;\n";
$temp_title.=" border-top-style: solid;\n";
$temp_title.=" border-right-style: solid;\n";
$temp_title.=" border-bottom-style: solid;\n";
$temp_title.=" border-left-style: solid;\n";
$temp_title.=" background: #CCCCCC;\n";
$temp_title.="}\n";
$temp_title.=".LeftTopDash {\n";
$temp_title.=" border-top-width: 1pt;\n";
$temp_title.=" border-bottom-width: 0px;\n";
$temp_title.=" border-left-width: 0.5pt;\n";
$temp_title.=" border-right-width: 0px;\n";
$temp_title.=" border-top-color: #000000;\n";
$temp_title.=" border-right-color: #000000;\n";
$temp_title.=" border-left-color: #000000;\n";
$temp_title.=" border-bottom-color: #000000;\n";
$temp_title.=" border-top-style: solid;\n";
$temp_title.=" border-right-style: solid;\n";
$temp_title.=" border-bottom-style: solid;\n";
$temp_title.=" border-left-style: solid;\n";
$temp_title.=" background: #CCCCCC;\n";
$temp_title.="}\n";
$temp_title.=".Left {\n";
$temp_title.=" border-top-width: 0.5pt;\n";
$temp_title.=" border-bottom-width: 0px;\n";
$temp_title.=" border-left-width: 1pt;\n";
$temp_title.=" border-right-width: 0px;\n";
$temp_title.=" border-top-color: #000000;\n";
$temp_title.=" border-right-color: #000000;\n";
$temp_title.=" border-left-color: #000000;\n";
$temp_title.=" border-bottom-color: #000000;\n";
$temp_title.=" border-top-style: solid;\n";
$temp_title.=" border-right-style: solid;\n";
$temp_title.=" border-bottom-style: solid;\n";
$temp_title.=" border-left-style: solid;\n";
$temp_title.="}\n";
$temp_title.=".LeftDash {\n";
$temp_title.=" border-top-width: 0.5pt;\n";
$temp_title.=" border-bottom-width: 0px;\n";
$temp_title.=" border-left-width: 0.5pt;\n";
$temp_title.=" border-right-width: 0px;\n";
$temp_title.=" border-top-color: #000000;\n";
$temp_title.=" border-right-color: #000000;\n";
$temp_title.=" border-left-color: #000000;\n";
$temp_title.=" border-bottom-color: #000000;\n";
$temp_title.=" border-top-style: solid;\n";
$temp_title.=" border-right-style: solid;\n";
$temp_title.=" border-bottom-style: solid;\n";
$temp_title.=" border-left-style: solid; \n";
$temp_title.="}\n";
$temp_title.=".LeftRight {\n";
$temp_title.=" border-top-width: 0.5pt;\n";
$temp_title.=" border-bottom-width: 0px;\n";
$temp_title.=" border-left-width: 0.5pt;\n";
$temp_title.=" border-right-width: 1pt;\n";
$temp_title.=" border-top-color: #000000;\n";
$temp_title.=" border-right-color: #000000;\n";
$temp_title.=" border-left-color: #000000;\n";
$temp_title.=" border-bottom-color: #000000;\n";
$temp_title.=" border-top-style: solid;\n";
$temp_title.=" border-right-style: solid;\n";
$temp_title.=" border-bottom-style: solid;\n";
$temp_title.=" border-left-style: solid;\n";
$temp_title.="}\n";
$temp_title.=".LeftButtom {\n";
$temp_title.=" border-top-width: 0.5pt;\n";
$temp_title.=" border-bottom-width: 1pt;\n";
$temp_title.=" border-left-width: 1pt;\n";
$temp_title.=" border-right-width: 0px;\n";
$temp_title.=" border-top-color: #000000;\n";
$temp_title.=" border-right-color: #000000;\n";
$temp_title.=" border-left-color: #000000;\n";
$temp_title.=" border-bottom-color: #000000;\n";
$temp_title.=" border-top-style: solid;\n";
$temp_title.=" border-right-style: solid;\n";
$temp_title.=" border-bottom-style: solid;\n";
$temp_title.=" border-left-style: solid; \n";
$temp_title.="}\n";
$temp_title.=".LeftButtomDash {\n";
$temp_title.=" border-top-width: 0.5pt;\n";
$temp_title.=" border-bottom-width: 1pt;\n";
$temp_title.=" border-left-width: 0.5pt;\n";
$temp_title.=" border
没有合适的资源?快使用搜索试试~ 我知道了~
export_structure.rar_数据库
共2个文件
php:1个
txt:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 96 浏览量
2022-09-23
23:02:51
上传
评论
收藏 4KB RAR 举报
温馨提示
PHP下导出数据库结构的源码.简单好用,导出格式规范.
资源推荐
资源详情
资源评论
收起资源包目录
export_structure.rar (2个子文件)
www.pudn.com.txt 218B
export_structure.php 22KB
共 2 条
- 1
资源评论
Kinonoyomeo
- 粉丝: 77
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功