📄 form_feedback.php
字号:
<?php
include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 61 );
$step = $_REQUEST['step'];
$page = $_REQUEST['page'];
$id = $_REQUEST['id'];
$menuid = $_REQUEST['menuid'];
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n";
echo "<s";
echo "cript>\r\nfunction cm(nn){\r\nqus=confirm(\"";
echo $strDeleteConfirm;
echo "\")\r\nif(qus!=0){\r\nwindow.location='form_feedback.php?step=del&page=";
echo $page;
echo "&menuid=";
echo $menuid;
echo "&id='+nn;\r\n}\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"NormalPage\">\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n <tr> \r\n <td width=\"350\" > <img src=\"images/bar.gif\" > ";
showmenu( $menuid );
echo " - ";
echo $strFormInfo;
echo "</td>\r\n <td > </td> <td width=\"100\" > </td>\r\n </tr>\r\n </table>\r\n";
if ( $step == "del" )
{
$msql->query( "delete from {$tbl_form_feedback} where id='{$id}'" );
}
echo "\r\n";
$scl = " menuid='{$menuid}' ";
$totalnums = tblcount( $tbl_form_feedback, "id", $scl );
$pages = new pages( );
$pages->setvar( array(
"menuid" => $menuid
) );
$pages->set( 10, $totalnums );
$pagelimit = $pages->limit( );
echo " \r\n<table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"1\" align=\"center\">\r\n <form name=\"form1\" action=\"\" method=\"post\">\r\n <tr> \r\n <td height=\"26\" align=\"center\" class=title width=\"32\">";
echo $strNumber;
echo "</td>\r\n <td class=title height=\"26\" width=\"68\" align=\"center\">";
echo $strFormMenu;
echo "</td>\r\n <td class=title height=\"26\">";
echo $strFormTitle;
echo "</td>\r\n <td align=\"center\" class=title height=\"26\" width=\"80\">";
echo $strFormName;
echo "</td>\r\n <td align=\"center\" class=title height=\"26\" width=\"110\">";
echo $strFormEmail;
echo "</td>\r\n <td align=\"center\" class=title width=\"120\">";
echo $strFormTime;
echo "</td>\r\n <td align=\"center\" class=title height=\"26\">";
echo $strLook;
echo "</td>\r\n <td align=\"center\" class=title height=\"26\">";
echo $strFeedBack;
echo "</td>\r\n <td height=\"26\" align=\"center\" class=title>";
echo $strLook;
echo "</td>\r\n <td width=\"30\" class=\"title\"> \r\n <div align=\"center\"><font color=\"#FFFFFF\">";
echo $strDelete;
echo "</font></div>\r\n </td>\r\n </tr>\r\n ";
$fsql->query( "select * from {$tbl_form_feedback} where {$scl} order by id desc limit {$pagelimit}" );
while ( $fsql->next_record( ) )
{
$id = $fsql->f( "id" );
$title = $fsql->f( "title" );
$name = $fsql->f( "name" );
$email = $fsql->f( "email" );
$menuid = $fsql->f( "menuid" );
$time = $fsql->f( "time" );
$look = $fsql->f( "look" );
$reversion = $fsql->f( "reversion" );
if ( $name == "" )
{
$name = "NULL";
}
$look_yes = $look == "1" ? ( $look_yes = "<font color=red>√</font>" ) : ( $look_yes = "×" );
$reversion_yes = $reversion == "1" ? ( $reversion_yes = "<font color=red>√</font>" ) : ( $reversion_yes = "×" );
$msql->query( "select menu from {$tbl_menu} where menuid='{$menuid}'" );
if ( $msql->next_record( ) )
{
$menu = $msql->f( "menu" );
}
echo " \r\n <tr > \r\n <td align=\"center\" class=con width=\"32\">";
echo $id;
echo " </td>\r\n <td class=con width=\"68\" align=\"center\">";
echo $menu;
echo "</td>\r\n <td class=con>";
echo $title;
echo "</td>\r\n <td align=\"center\" class=con width=\"80\">";
echo $name;
echo "</td>\r\n <td align=\"center\" class=con width=\"110\">";
echo $email;
echo "</td>\r\n <td align=\"center\" class=con width=\"120\">";
echo date( "Y-n-j H:i:s", $time );
echo "</td>\r\n <td align=\"center\" class=con width=\"32\">";
echo $look_yes;
echo "</td>\r\n <td align=\"center\" class=con width=\"32\">";
echo $reversion_yes;
echo "</td>\r\n <td align=\"center\" class=con width=\"32\"><a href=\"form_look.php?menuid=";
echo $menuid;
echo "&page=";
echo $page;
echo "&id=";
echo $id;
echo "\"><img src=\"images/toolbar_look_up.gif\" width=\"22\" height=\"20\" border=\"0\"></a></td>\r\n <td class=\"con\" align=\"center\" width=\"30\"> <img src=\"images/toolbar_delete_up.gif\" style=\"cursor:hand\" width=\"22\" height=\"20\" onClick=\"cm('";
echo "{$id}";
echo "')\"> \r\n </td>\r\n </tr>\r\n ";
}
echo " \r\n </form>\r\n</table>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" bgcolor=\"#FFFFFF\" align=\"center\" background=\"images/mu1.jpg\" height=\"29\">\r\n <tr> \r\n <td class=pages width=\"300\">";
$pages->shownow( );
echo " </td>\r\n <td class=pages width=\"325\" align=\"right\">";
$pages->output( $ShowPageList );
echo "</td>\r\n </tr>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -