⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form.inc.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


function creat_table( $page, $menuid, $record_id )
{
	global $msql;
	global $fsql;
	global $tbl_form_feedback;
	global $tbl_form;
	global $title;
	global $name;
	global $email;
	global $strFormTime;
	global $strDelete;
	global $strBack;
	$submit = $_POST['submit'];
	$table_name = $tbl_form."_".$menuid;
	$fsql->query( "select * from {$tbl_form_feedback} where id = '".$record_id."'" );
	if ( $fsql->next_record( ) )
	{
		$title = $fsql->f( "title" );
		$content = $fsql->f( "content" );
		$name = $fsql->f( "name" );
		$sex = $fsql->f( "sex" );
		$tel = $fsql->f( "tel" );
		$address = $fsql->f( "address" );
		$email = $fsql->f( "email" );
		$url = $fsql->f( "url" );
		$qq = $fsql->f( "qq" );
		$company = $fsql->f( "company" );
		$company_address = $fsql->f( "company_address" );
		$zip = $fsql->f( "zip" );
		$fax = $fsql->f( "fax" );
		$products_id = $fsql->f( "products_id" );
		$products_name = $fsql->f( "products_name" );
		$products_num = $fsql->f( "products_num" );
		$custom1 = $fsql->f( "custom1" );
		$custom2 = $fsql->f( "custom2" );
		$custom3 = $fsql->f( "custom3" );
		$custom4 = $fsql->f( "custom4" );
		$custom5 = $fsql->f( "custom5" );
		$custom6 = $fsql->f( "custom6" );
		$custom7 = $fsql->f( "custom7" );
		$ip = $fsql->f( "ip" );
		$time = $fsql->f( "time" );
		$time = date( "Y-n-j H:i:s", $time );
	}
	$table = "<table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"1\" >";
	$msql->query( "select field_caption,field_name from ".$table_name." where use_field = '1' order by xuhao" );
	while ( $msql->next_record( ) )
	{
		$field_caption = $msql->f( "field_caption" );
		$field_name = $msql->f( "field_name" );
		$table .= "<tr> \r\n      \t   <td align=\"right\" class=title width=100>".$field_caption."</td>\r\n      \t   <td  class=con>".$$field_name."</td>\r\n    \t</tr>";
	}
	$table .= "<tr> \r\n      \t   <td align=\"right\" class=title width=100>".$strFormTime."</td>\r\n      \t   <td  class=con>".$time." [IP: ".$ip."]</td>\r\n    \t</tr>";
	$table .= "<form action=\"\" method=\"post\">\r\n\t<tr>\r\n\t\t<td align=\"center\" colspan=\"2\"  class=title>\r\n\t\t<input type=\"button\" name=\"submit\" value=\"".$strDelete."\" onClick=\"window.location='form_feedback.php?step=del&menuid=".$menuid."&page=".$page."&id=".$record_id."'\">\r\n\t\t<input type=\"button\" name=\"reversion\" value=\"".$strBack."\" onClick=\"window.location='form_feedback.php?menuid=".$menuid."&page=".$page."'\">\r\n\t\t</td>\r\n\t</tr>\r\n\t</form>";
	$table .= "</table>";
	$fsql->query( "update {$tbl_form_feedback} set look = '1' where id = '".$record_id."'" );
	return $table;
}

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -