📄 shop_ts.php
字号:
<?php
require_once('libs/config.inc');
require_once('libs/dbmanager.inc');
require_once('libs/function.inc');
$conn = DBManager::getConnection();
?>
<!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><?php echo $arr[goodsname]; ?></title>
<link rel="stylesheet" type="text/css" href="skin/style.css" />
</head>
<script language="javascript" type="text/javascript" src="js/menu.js"></script>
<body>
<?php require_once('pagetag/page_top.html'); ?>
<table align="center" width="964" cellpadding="0" cellspacing="0">
<tr><td height="10"></td></tr>
<tr>
<td width="203" valign="top">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center" colspan="3" height="9" background="skin/line_top.gif"></td>
</tr>
<tr>
<td width="1" class="line1"></td>
<td valign="top" width="201" align="center">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td><img src="skin/search.gif" /></td>
</tr>
<tr>
<td height="10" align="center"><img src="skin/m_m.gif" width="180" height="1" /></td>
</tr>
</table>
<?php require_once('pagetag/search_page.php'); ?>
</td>
<td width="1" class="line1"></td>
</tr>
<tr>
<td colspan="3" height="11" background="skin/sch_bot.gif"></td>
</tr>
<tr>
<td height="5"></td>
</tr>
</table>
<table height="149" width="100%" cellpadding="0" cellspacing="0" background="skin/star_shopbak.gif">
<tr>
<td height="8"></td>
</tr>
<tr>
<td height="24" align="center"><img src="skin/s_b.gif" /></td>
</tr>
<tr>
<td align="center" valign="top"><?php require_once('pagetag/showtextstar.php'); ?>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td height="10"></td>
</tr>
<tr>
<td align="center" colspan="3" height="9" background="skin/line_top.gif"></td>
</tr>
<tr>
<td width="1" class="line1"></td>
<td valign="top" width="201" align="center">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td><img src="skin/new.gif" /></td>
</tr>
<tr>
<td height="10" align="center"><img src="skin/m_m.gif" width="180" height="1" /></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<?php require_once('pagetag/new_user.html'); ?>
</td><td width="15"></td>
</tr>
</table>
</td>
<td width="1" class="line1"></td>
</tr>
<tr>
<td colspan="3" height="11" background="skin/sch_bot.gif"></td>
</tr>
</table>
</td>
<td width="10"></td>
<td valign="top">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td height="40" background="skin/m_l.gif" width="8"></td>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" background="skin/m_m.gif" height="1"></td>
</tr>
<tr height="38">
<td width="40"><img src="skin/m_pic.gif" /></td><td>
店铺投诉
</td>
</tr>
<tr>
<td colspan="2" background="skin/m_m.gif" height="1"></td>
</tr>
</table>
</td>
<td background="skin/m_r.gif" width="8"></td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table>
<?php
if($_POST[message] == ts){
$tsname = $_POST[tsname];
$tsshop = $_POST[tsshop];
$tsnr = $_POST[tsnr];
$tsren = $_SESSION['username'];
$mtime = date('Y年m月d日 H:i:s');
if(checkitem($tsshop,$tablepre.shop,shopname) !== true){
msgbox("你输入的店铺不存在!请从新输入!",Back,"");
}
elseif($tsname == ""||strlen($tsname)>50){
msgbox("投诉标题为空!或已大于50个字符!",Back,"");
}
elseif(preg_match("/^$|^c:\\con\\con$| |[,\"\s\t\<\>]|^游客|^Guest/is", $tsname)) {
msgbox("投诉标题包含非法字符!",Back,"");
}
elseif($tsnr == ""){
msgbox("投诉内容不能为空!",Back,"");
}
else{
$add = $conn->query("INSERT INTO ".$tablepre."tousu (`tsname`,`tsren`,`tsshop`,`tsnr`,`tstime`) VALUES ('$tsname','$tsren','$tsshop','$tsnr','$mtime')");
if($add == true){
$uphtml = new UpdateHtml;
$uphtml->tablepre = $tablepre;
$uphtml->type = '11';
$uphtml->ShopTousu();
msgbox("投诉成功!",GoUrl,"shop_ts.php");
}
else{
msgbox("未知名错误!请联系源码出处!",GoUrl,"shop_ts.php");
}
}
}
?>
<form action="" method="post">
<table border="1" style="border-collapse:collapse" bordercolor="#CCCCCC" width="100%" cellpadding="4" cellspacing="">
<tr>
<td align="right">店铺名称:</td><td><input name="tsshop" class="input0" size="20" maxlength="50" value="<?php echo $_GET[shopname]; ?>" /></td>
</tr>
<tr>
<td align="right">投诉标题:</td><td><input name="tsname" class="input0" size="30" maxlength="60" /></td>
</tr>
<tr>
<td align="right">投诉内容:</td><td><textarea name="tsnr" cols="60" rows="5"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="hidden" name="message" value="ts" />
<input type="submit" name="submit" class="input1" value="提交" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td height="20"></td>
</tr>
</table>
<?php
require_once('pagetag/bottommation.php');
$conn->close();
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -