| @@ -40,7 +40,7 @@ if ($dopost != 'save') { | |||||
| } | } | ||||
| } | } | ||||
| //获得频道模型信息 | //获得频道模型信息 | ||||
| $cInfos = $dsql->GetOne("SELECT * From `#@__channeltype` where id='$channelid' "); | |||||
| $cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` where id='$channelid' "); | |||||
| //获取文档最大id+1以确定当前权重 | //获取文档最大id+1以确定当前权重 | ||||
| $maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | $maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | ||||
| $maxWright = empty($maxWright)? array('cc'=>1) : $maxWright; | $maxWright = empty($maxWright)? array('cc'=>1) : $maxWright; | ||||
| @@ -14,9 +14,9 @@ if (empty($dopost)) $dopost = ''; | |||||
| if ($dopost == '') include(DEDEADMIN."/templets/cards_make.htm"); | if ($dopost == '') include(DEDEADMIN."/templets/cards_make.htm"); | ||||
| //生成点卡 | //生成点卡 | ||||
| elseif ($dopost == 'make') { | elseif ($dopost == 'make') { | ||||
| $row = $dsql->GetOne("SELECT * FROM #@__moneycard_record ORDER BY aid DESC"); | |||||
| $row = $dsql->GetOne("SELECT * FROM `#@__moneycard_record` ORDER BY aid DESC"); | |||||
| !is_array($row) ? $startid = 100000 : $startid = $row['aid'] + 100000; | !is_array($row) ? $startid = 100000 : $startid = $row['aid'] + 100000; | ||||
| $row = $dsql->GetOne("SELECT * FROM #@__moneycard_type WHERE tid='$cardtype'"); | |||||
| $row = $dsql->GetOne("SELECT * FROM `#@__moneycard_type` WHERE tid='$cardtype'"); | |||||
| $money = $row['money']; | $money = $row['money']; | ||||
| $num = $row['num']; | $num = $row['num']; | ||||
| $mtime = time(); | $mtime = time(); | ||||
| @@ -19,17 +19,17 @@ if ($dopost == "delete") { | |||||
| else $dquery .= " OR aid='$id' "; | else $dquery .= " OR aid='$id' "; | ||||
| } | } | ||||
| if ($dquery != "") $dquery = " WHERE ".$dquery; | if ($dquery != "") $dquery = " WHERE ".$dquery; | ||||
| $dsql->ExecuteNoneQuery("DELETE FROM #@__moneycard_record $dquery"); | |||||
| $dsql->ExecuteNoneQuery("DELETE FROM `#@__moneycard_record` $dquery"); | |||||
| ShowMsg("成功删除指定的记录", "cards_manage.php"); | ShowMsg("成功删除指定的记录", "cards_manage.php"); | ||||
| exit(); | exit(); | ||||
| } else { | } else { | ||||
| $addsql = ''; | $addsql = ''; | ||||
| if (isset($isexp)) $addsql = " WHERE isexp='$isexp' "; | if (isset($isexp)) $addsql = " WHERE isexp='$isexp' "; | ||||
| $sql = "SELECT * FROM #@__moneycard_record $addsql ORDER BY aid DESC"; | |||||
| $sql = "SELECT * FROM `#@__moneycard_record` $addsql ORDER BY aid DESC"; | |||||
| $dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
| $dlist->pagesize = 30;//设定每页显示记录数 | $dlist->pagesize = 30;//设定每页显示记录数 | ||||
| if (isset($isexp)) $dlist->SetParameter("isexp", $isexp); | if (isset($isexp)) $dlist->SetParameter("isexp", $isexp); | ||||
| $dlist->dsql->SetQuery("SELECT * FROM #@__moneycard_type "); | |||||
| $dlist->dsql->SetQuery("SELECT * FROM `#@__moneycard_type`"); | |||||
| $dlist->dsql->Execute('ts'); | $dlist->dsql->Execute('ts'); | ||||
| while ($rw = $dlist->dsql->GetArray('ts')) { | while ($rw = $dlist->dsql->GetArray('ts')) { | ||||
| $TypeNames[$rw['tid']] = $rw['pname']; | $TypeNames[$rw['tid']] = $rw['pname']; | ||||
| @@ -44,7 +44,7 @@ function GetMemberID($mid) | |||||
| { | { | ||||
| global $dsql; | global $dsql; | ||||
| if ($mid == 0) return '0'; | if ($mid == 0) return '0'; | ||||
| $row = $dsql->GetOne("SELECT userid FROM #@__member WHERE mid='$mid' "); | |||||
| $row = $dsql->GetOne("SELECT userid FROM `#@__member` WHERE mid='$mid' "); | |||||
| if (is_array($row)) return "<a href='member_view.php?mid={$mid}'>".$row['userid']."</a>"; | if (is_array($row)) return "<a href='member_view.php?mid={$mid}'>".$row['userid']."</a>"; | ||||
| else return '0'; | else return '0'; | ||||
| } | } | ||||
| @@ -24,7 +24,7 @@ if ($dopost == 'ok') { | |||||
| ShowMsg("成功删除一个栏目", "catalog_main.php"); | ShowMsg("成功删除一个栏目", "catalog_main.php"); | ||||
| exit(); | exit(); | ||||
| } | } | ||||
| $dsql->SetQuery("SELECT typename,typedir FROM #@__arctype WHERE id=".$id); | |||||
| $dsql->SetQuery("SELECT typename,typedir FROM `#@__arctype` WHERE id=".$id); | |||||
| $row = $dsql->GetOne(); | $row = $dsql->GetOne(); | ||||
| $wintitle = "删除栏目确认"; | $wintitle = "删除栏目确认"; | ||||
| $wecome_info = "<a href='catalog_main.php'>栏目管理</a> > 删除栏目确认"; | $wecome_info = "<a href='catalog_main.php'>栏目管理</a> > 删除栏目确认"; | ||||
| @@ -32,7 +32,7 @@ $win = new OxWindow(); | |||||
| $win->Init('catalog_del.php', 'js/blank.js', 'POST'); | $win->Init('catalog_del.php', 'js/blank.js', 'POST'); | ||||
| $win->AddHidden('id', $id); | $win->AddHidden('id', $id); | ||||
| $win->AddHidden('dopost', 'ok'); | $win->AddHidden('dopost', 'ok'); | ||||
| $win->AddTitle("您要确定要删除栏目:[{$row['typename']}] 吗"); | |||||
| $win->AddTitle("您要确定要删除栏目:[{$row['typename']}]吗"); | |||||
| $win->AddItem('栏目的文件保存目录:', $row['typedir']); | $win->AddItem('栏目的文件保存目录:', $row['typedir']); | ||||
| $win->AddItem('是否删除文件:', "<label><input type='radio' name='delfile' value='no' checked='1'> 否</label> <label><input type='radio' name='delfile' value='yes'> 是</label>"); | $win->AddItem('是否删除文件:', "<label><input type='radio' name='delfile' value='no' checked='1'> 否</label> <label><input type='radio' name='delfile' value='yes'> 是</label>"); | ||||
| $winform = $win->GetWindow('ok'); | $winform = $win->GetWindow('ok'); | ||||
| @@ -42,7 +42,7 @@ if ($seltime == 1) { | |||||
| $gwhere .= " AND (senddate >= $t1 AND senddate <= $t2) "; | $gwhere .= " AND (senddate >= $t1 AND senddate <= $t2) "; | ||||
| } | } | ||||
| if (!empty($userid)) { | if (!empty($userid)) { | ||||
| $row = $dsql->GetOne("SELECT `mid` FROM #@__member WHERE `userid` LIKE '$userid'"); | |||||
| $row = $dsql->GetOne("SELECT `mid` FROM `#@__member` WHERE `userid` LIKE '$userid'"); | |||||
| if (is_array($row)) { | if (is_array($row)) { | ||||
| $gwhere .= " AND mid = {$row['mid']} "; | $gwhere .= " AND mid = {$row['mid']} "; | ||||
| } | } | ||||
| @@ -118,8 +118,8 @@ else if ($action == 'move') { | |||||
| ShowMsg('该操作必须指定栏目', 'javascript:;'); | ShowMsg('该操作必须指定栏目', 'javascript:;'); | ||||
| exit(); | exit(); | ||||
| } | } | ||||
| $typeold = $dsql->GetOne("SELECT * FROM #@__arctype WHERE id='$typeid'; "); | |||||
| $typenew = $dsql->GetOne("SELECT * FROM #@__arctype WHERE id='$newtypeid'; "); | |||||
| $typeold = $dsql->GetOne("SELECT * FROM `#@__arctype` WHERE id='$typeid'; "); | |||||
| $typenew = $dsql->GetOne("SELECT * FROM `#@__arctype` WHERE id='$newtypeid'; "); | |||||
| if (!is_array($typenew)) { | if (!is_array($typenew)) { | ||||
| ShowMsg("无法检测移动到的新栏目的信息,不能完成操作", "javascript:;"); | ShowMsg("无法检测移动到的新栏目的信息,不能完成操作", "javascript:;"); | ||||
| exit(); | exit(); | ||||
| @@ -160,7 +160,7 @@ else if ($action == 'move') { | |||||
| } | } | ||||
| //删除空标题内容 | //删除空标题内容 | ||||
| else if ($action == 'delnulltitle') { | else if ($action == 'delnulltitle') { | ||||
| $dsql->SetQuery("SELECT id FROM #@__archives WHERE trim(title)='' "); | |||||
| $dsql->SetQuery("SELECT id FROM `#@__archives` WHERE trim(title)='' "); | |||||
| $dsql->Execute('x'); | $dsql->Execute('x'); | ||||
| $tdd = 0; | $tdd = 0; | ||||
| while ($row = $dsql->GetObject('x')) { | while ($row = $dsql->GetObject('x')) { | ||||
| @@ -171,7 +171,7 @@ else if ($action == 'delnulltitle') { | |||||
| } | } | ||||
| //修正缩略图错误 | //修正缩略图错误 | ||||
| else if ($action == 'modddpic') { | else if ($action == 'modddpic') { | ||||
| $dsql->ExecuteNoneQuery("UPDATE #@__archives SET litpic='' WHERE trim(litpic)='litpic' "); | |||||
| $dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET litpic='' WHERE trim(litpic)='litpic' "); | |||||
| ShowMsg("成功修正缩略图错误", "javascript:;"); | ShowMsg("成功修正缩略图错误", "javascript:;"); | ||||
| exit(); | exit(); | ||||
| } | } | ||||
| @@ -14,13 +14,13 @@ $mysql_version = $dsql->GetVersion(); | |||||
| $mysql_versions = explode(".", trim($mysql_version)); | $mysql_versions = explode(".", trim($mysql_version)); | ||||
| $mysql_version = $mysql_versions[0].".".$mysql_versions[1]; | $mysql_version = $mysql_versions[0].".".$mysql_versions[1]; | ||||
| if (empty($action)) { | if (empty($action)) { | ||||
| $row = $dsql->GetOne("SELECT diyid FROM #@__diyforms ORDER BY diyid DESC LIMIT 0,1 "); | |||||
| $row = $dsql->GetOne("SELECT diyid FROM `#@__diyforms` ORDER BY diyid DESC LIMIT 0,1"); | |||||
| if (is_array($row)) $newdiyid = $row['diyid'] + 1; | if (is_array($row)) $newdiyid = $row['diyid'] + 1; | ||||
| else $newdiyid = 1; | else $newdiyid = 1; | ||||
| include(DEDEADMIN."/templets/diy_add.htm"); | include(DEDEADMIN."/templets/diy_add.htm"); | ||||
| } else { | } else { | ||||
| if (preg_match("#[^0-9-]#", $diyid) || empty($diyid)) { | if (preg_match("#[^0-9-]#", $diyid) || empty($diyid)) { | ||||
| ShowMsg("<span class='text-danger'>'自定义表单diyid'</span>必须为数字", "-1"); | |||||
| ShowMsg("<span class='text-danger'>'自定义表单id'</span>必须为数字", "-1"); | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if ($table == "") { | if ($table == "") { | ||||
| @@ -29,7 +29,7 @@ if (empty($action)) { | |||||
| } | } | ||||
| $public = isset($public) && is_numeric($public) ? $public : 0; | $public = isset($public) && is_numeric($public) ? $public : 0; | ||||
| $name = dede_htmlspecialchars($name); | $name = dede_htmlspecialchars($name); | ||||
| $row = $dsql->GetOne("SELECT * FROM `#@__diyforms` WHERE diyid='$diyid' OR `table` LIKE '$table' OR name LIKE '$name' "); | |||||
| $row = $dsql->GetOne("SELECT * FROM `#@__diyforms` WHERE diyid='$diyid' OR `table` LIKE '$table' OR name LIKE '$name'"); | |||||
| if (is_array($row)) { | if (is_array($row)) { | ||||
| ShowMsg("可能自定义表单的‘diyid’、‘名称’在数据库中已存在,不能重复使用", "-1"); | ShowMsg("可能自定义表单的‘diyid’、‘名称’在数据库中已存在,不能重复使用", "-1"); | ||||
| exit(); | exit(); | ||||
| @@ -73,7 +73,7 @@ if ($action == 'save') { | |||||
| /*---------------------- | /*---------------------- | ||||
| function ShowPage() | function ShowPage() | ||||
| ---------------------*/ | ---------------------*/ | ||||
| $row = $dsql->GetOne("SELECT `table` FROM #@__diyforms WHERE diyid='$diyid'"); | |||||
| $row = $dsql->GetOne("SELECT `table` FROM `#@__diyforms` WHERE diyid='$diyid'"); | |||||
| $trueTable = $row['table']; | $trueTable = $row['table']; | ||||
| $tabsql = "CREATE TABLE IF NOT EXISTS `$trueTable`( | $tabsql = "CREATE TABLE IF NOT EXISTS `$trueTable`( | ||||
| `id` int(10) unsigned NOT NULL auto_increment, | `id` int(10) unsigned NOT NULL auto_increment, | ||||
| @@ -13,7 +13,7 @@ CheckPurview('c_List'); | |||||
| require_once(DEDEINC."/datalistcp.class.php"); | require_once(DEDEINC."/datalistcp.class.php"); | ||||
| require_once(DEDEINC."/common.func.php"); | require_once(DEDEINC."/common.func.php"); | ||||
| setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); | setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); | ||||
| $sql = "Select `diyid`,`name`,`table` From #@__diyforms order by diyid asc"; | |||||
| $sql = "SELECT `diyid`,`name`,`table` FROM `#@__diyforms` ORDER BY diyid ASC"; | |||||
| $dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
| $dlist->SetTemplet(DEDEADMIN."/templets/diy_main.htm"); | $dlist->SetTemplet(DEDEADMIN."/templets/diy_main.htm"); | ||||
| $dlist->SetSource($sql); | $dlist->SetSource($sql); | ||||
| @@ -13,7 +13,7 @@ if (empty($dopost)) { | |||||
| require_once DEDEINC.'/typelink/typelink.class.php'; | require_once DEDEINC.'/typelink/typelink.class.php'; | ||||
| require_once DEDEINC.'/dedetag.class.php'; | require_once DEDEINC.'/dedetag.class.php'; | ||||
| $aid = isset($aid) && is_numeric($aid) ? $aid : 0; | $aid = isset($aid) && is_numeric($aid) ? $aid : 0; | ||||
| $row = $dsql->GetOne("Select * From `#@__freelist` where aid='$aid' "); | |||||
| $row = $dsql->GetOne("SELECT * FROM `#@__freelist` where aid='$aid' "); | |||||
| $dtp = new DedeTagParse(); | $dtp = new DedeTagParse(); | ||||
| $dtp->SetNameSpace("dede", "{", "}"); | $dtp->SetNameSpace("dede", "{", "}"); | ||||
| $dtp->LoadSource("--".$row['listtag']."--"); | $dtp->LoadSource("--".$row['listtag']."--"); | ||||
| @@ -49,10 +49,10 @@ function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0) | |||||
| $admin_catalogs = array_unique($admin_catalogs); | $admin_catalogs = array_unique($admin_catalogs); | ||||
| $admin_catalog = join(',', $admin_catalogs); | $admin_catalog = join(',', $admin_catalogs); | ||||
| $admin_catalog = preg_replace("#,$#", '', $admin_catalog); | $admin_catalog = preg_replace("#,$#", '', $admin_catalog); | ||||
| $query = "Select id,typename,ispart,channeltype From `#@__arctype` where id in($admin_catalog) And reid=0"; | |||||
| $query = "SELECT id,typename,ispart,channeltype FROM `#@__arctype` WHERE id in($admin_catalog) And reid=0"; | |||||
| } | } | ||||
| } else { | } else { | ||||
| $query = "Select id,typename,ispart,channeltype From `#@__arctype` where reid=0 order by sortrank asc"; | |||||
| $query = "SELECT id,typename,ispart,channeltype FROM `#@__arctype` WHERE reid=0 ORDER BY sortrank ASC"; | |||||
| } | } | ||||
| $dsql->SetQuery($query); | $dsql->SetQuery($query); | ||||
| $dsql->Execute('cc'); | $dsql->Execute('cc'); | ||||
| @@ -23,7 +23,7 @@ function GetTypename($tid) | |||||
| return base64_decode($cfg_Cs[$tid][3]); | return base64_decode($cfg_Cs[$tid][3]); | ||||
| } | } | ||||
| } else { | } else { | ||||
| $row = $dsql->GetOne("SELECT typename FROM #@__arctype WHERE id = '{$tid}'"); | |||||
| $row = $dsql->GetOne("SELECT typename FROM `#@__arctype` WHERE id = '{$tid}'"); | |||||
| unset($dsql); | unset($dsql); | ||||
| unset($cfg_Cs); | unset($cfg_Cs); | ||||
| return isset($row['typename']) ? $row['typename'] : ''; | return isset($row['typename']) ? $row['typename'] : ''; | ||||
| @@ -16,7 +16,7 @@ if (empty($dopost)) { | |||||
| } | } | ||||
| //清空所有日志 | //清空所有日志 | ||||
| if ($dopost == "clear") { | if ($dopost == "clear") { | ||||
| $dsql->ExecuteNoneQuery("DELETE FROM #@__log"); | |||||
| $dsql->ExecuteNoneQuery("DELETE FROM `#@__log`"); | |||||
| ShowMsg("成功清空所有日志", "log_list.php"); | ShowMsg("成功清空所有日志", "log_list.php"); | ||||
| exit(); | exit(); | ||||
| } else if ($dopost == "del") { | } else if ($dopost == "del") { | ||||
| @@ -31,7 +31,7 @@ if ($dopost == "clear") { | |||||
| } | } | ||||
| } | } | ||||
| if ($dquery != "") $dquery = " where ".$dquery; | if ($dquery != "") $dquery = " where ".$dquery; | ||||
| $dsql->ExecuteNoneQuery("DELETE FROM #@__log $dquery"); | |||||
| $dsql->ExecuteNoneQuery("DELETE FROM `#@__log` $dquery"); | |||||
| ShowMsg("成功删除指定的日志", $bkurl); | ShowMsg("成功删除指定的日志", $bkurl); | ||||
| exit(); | exit(); | ||||
| } else { | } else { | ||||
| @@ -21,7 +21,7 @@ $dlist = new DataListCP(); | |||||
| $dlist->pagesize = 30; | $dlist->pagesize = 30; | ||||
| $dlist->SetParameter("buyid", $buyid); | $dlist->SetParameter("buyid", $buyid); | ||||
| if (isset($sta)) $dlist->SetParameter("sta", $sta); | if (isset($sta)) $dlist->SetParameter("sta", $sta); | ||||
| $dlist->dsql->SetQuery("SELECT * FROM #@__moneycard_type "); | |||||
| $dlist->dsql->SetQuery("SELECT * FROM `#@__moneycard_type`"); | |||||
| $dlist->dsql->Execute('ts'); | $dlist->dsql->Execute('ts'); | ||||
| while ($rw = $dlist->dsql->GetArray('ts')) { | while ($rw = $dlist->dsql->GetArray('ts')) { | ||||
| $TypeNames[$rw['tid']] = $rw['pname']; | $TypeNames[$rw['tid']] = $rw['pname']; | ||||
| @@ -37,7 +37,7 @@ function GetMemberID($mid) | |||||
| if ($mid == 0) { | if ($mid == 0) { | ||||
| return '0'; | return '0'; | ||||
| } | } | ||||
| $row = $dsql->GetOne("SELECT userid FROM #@__member WHERE mid='$mid' "); | |||||
| $row = $dsql->GetOne("SELECT userid FROM `#@__member` WHERE mid='$mid' "); | |||||
| if (is_array($row)) { | if (is_array($row)) { | ||||
| return "<a href='member_view.php?id={$mid}'>".$row['userid']."</a>"; | return "<a href='member_view.php?id={$mid}'>".$row['userid']."</a>"; | ||||
| } else { | } else { | ||||
| @@ -18,7 +18,7 @@ if (!isset($keyword)) $keyword = ''; | |||||
| if (isset($dopost)) { | if (isset($dopost)) { | ||||
| $ID = preg_replace("#[^0-9]#", "", $ID); | $ID = preg_replace("#[^0-9]#", "", $ID); | ||||
| if ($dopost == "del" && !empty($ID)) { | if ($dopost == "del" && !empty($ID)) { | ||||
| $dsql->ExecuteNoneQuery("DELETE FROM #@__member_pms WHERE id='$ID'"); | |||||
| $dsql->ExecuteNoneQuery("DELETE FROM `#@__member_pms` WHERE id='$ID'"); | |||||
| } | } | ||||
| } | } | ||||
| $whereSql = ''; | $whereSql = ''; | ||||
| @@ -31,7 +31,7 @@ if (!empty($keyword)) { | |||||
| if (!empty($username)) { | if (!empty($username)) { | ||||
| $whereSql .= " AND floginid like '%".$username."%'"; | $whereSql .= " AND floginid like '%".$username."%'"; | ||||
| } | } | ||||
| $sql = "SELECT * FROM #@__member_pms $whereSql ORDER BY sendtime desc"; | |||||
| $sql = "SELECT * FROM `#@__member_pms` $whereSql ORDER BY sendtime desc"; | |||||
| $dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
| $dlist->pagesize = 30; | $dlist->pagesize = 30; | ||||
| $dlist->SetParameter("folder", $folder); | $dlist->SetParameter("folder", $folder); | ||||
| @@ -57,7 +57,7 @@ if ($action == "post") { | |||||
| ShowMsg($msg, "-1"); | ShowMsg($msg, "-1"); | ||||
| exit(); | exit(); | ||||
| } | } | ||||
| $row = $dsql->GetOne("Select * From `#@__member` where userid like '$msgtoid' "); | |||||
| $row = $dsql->GetOne("SELECT * FROM `#@__member` where userid like '$msgtoid' "); | |||||
| if (!is_array($row)) { | if (!is_array($row)) { | ||||
| ShowMsg("您指定的用户不存在,不能发送信息", "-1"); | ShowMsg("您指定的用户不存在,不能发送信息", "-1"); | ||||
| exit(); | exit(); | ||||
| @@ -12,7 +12,7 @@ require(dirname(__FILE__)."/config.php"); | |||||
| CheckPurview('member_Edit'); | CheckPurview('member_Edit'); | ||||
| $ENV_GOBACK_URL = isset($_COOKIE['ENV_GOBACK_URL']) ? "member_main.php" : ''; | $ENV_GOBACK_URL = isset($_COOKIE['ENV_GOBACK_URL']) ? "member_main.php" : ''; | ||||
| $id = preg_replace("#[^0-9]#", "", $id); | $id = preg_replace("#[^0-9]#", "", $id); | ||||
| $row = $dsql->GetOne("SELECT * from #@__member where mid='$id'"); | |||||
| $row = $dsql->GetOne("SELECT * FROM `#@__member` WHERE mid='$id'"); | |||||
| $staArr = array( | $staArr = array( | ||||
| -10 => '等待验证邮件', | -10 => '等待验证邮件', | ||||
| -2 => '限制用户(禁言)', | -2 => '限制用户(禁言)', | ||||
| @@ -512,7 +512,7 @@ else if ($dopost == 'modifysearch') { | |||||
| } | } | ||||
| } | } | ||||
| if (is_array($addonfields) && !empty($addonfields)) { | if (is_array($addonfields) && !empty($addonfields)) { | ||||
| $query = "SELECT * FROM #@__channeltype WHERE id='$mid'"; | |||||
| $query = "SELECT * FROM `#@__channeltype` WHERE id='$mid'"; | |||||
| $channel = $dsql->GetOne($query); | $channel = $dsql->GetOne($query); | ||||
| $dtp = new DedeTagParse(); | $dtp = new DedeTagParse(); | ||||
| $dtp->SetNameSpace("field", "<", ">"); | $dtp->SetNameSpace("field", "<", ">"); | ||||
| @@ -576,7 +576,7 @@ else if ($dopost == 'modifysearch') { | |||||
| } | } | ||||
| $forms .= '<input type="submit" name="submit" value="开始搜索" /></form>'; | $forms .= '<input type="submit" name="submit" value="开始搜索" /></form>'; | ||||
| $formssql = addslashes($forms); | $formssql = addslashes($forms); | ||||
| $query = "REPLACE INTO #@__advancedsearch(mid, maintable, mainfields, addontable, addonfields, forms, template) VALUES ('$mid','$maintable','$mainstring','$addontable','$addonstring','$formssql', '$template')"; | |||||
| $query = "REPLACE INTO `#@__advancedsearch` (mid, maintable, mainfields, addontable, addonfields, forms, template) VALUES ('$mid','$maintable','$mainstring','$addontable','$addonstring','$formssql', '$template')"; | |||||
| $dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
| $formshtml = dede_htmlspecialchars($forms); | $formshtml = dede_htmlspecialchars($forms); | ||||
| echo '<meta http-equiv="Content-Type" content="text/html; charset='.$cfg_soft_lang.'">'; | echo '<meta http-equiv="Content-Type" content="text/html; charset='.$cfg_soft_lang.'">'; | ||||
| @@ -139,12 +139,12 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <div style="display:none" id="formtxt"> | |||||
| <div id="formtxt" style="display:none"> | |||||
| <div class="content" id="code" style="display:none"> | <div class="content" id="code" style="display:none"> | ||||
| <table width="80%" cellpadding="3" cellspacing="1" class="i_table"> | <table width="80%" cellpadding="3" cellspacing="1" class="i_table"> | ||||
| <tr> | <tr> | ||||
| <td width="260">广告代码:<br> | <td width="260">广告代码:<br> | ||||
| 请填写广告代码,支持html代码</td> | |||||
| 请填写广告代码,支持网页代码</td> | |||||
| <td><textarea name="normbody[htmlcode]" class="biz-textarea"></textarea></td> | <td><textarea name="normbody[htmlcode]" class="biz-textarea"></textarea></td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| @@ -20,7 +20,7 @@ | |||||
| <td width="36%" align="center">状态</td> | <td width="36%" align="center">状态</td> | ||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From #@__myadtype"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__myadtype`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| $k=0; | $k=0; | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| @@ -89,7 +89,7 @@ | |||||
| <td width="90">自定义属性:</td> | <td width="90">自定义属性:</td> | ||||
| <td> | <td> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -401,7 +401,7 @@ | |||||
| <td width="260"><select name="arcrank" id="arcrank" class="biz-input-sm"> | <td width="260"><select name="arcrank" id="arcrank" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -448,7 +448,7 @@ | |||||
| <option value="<?php echo $arcRow['arcrank']?>"> <?php echo $arcRow["rankname"]?> </option> | <option value="<?php echo $arcRow['arcrank']?>"> <?php echo $arcRow["rankname"]?> </option> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'"); | |||||
| $dsql->SetQuery("SELECT * FROM #@__arcrank where adminrank<='$urank'"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()){ | while($row = $dsql->GetObject()){ | ||||
| echo "<option value='".$row->rank."'>".$row->membername."</option>"; | echo "<option value='".$row->rank."'>".$row->membername."</option>"; | ||||
| @@ -68,7 +68,7 @@ | |||||
| <td width="90">自定义属性:</td> | <td width="90">自定义属性:</td> | ||||
| <td> | <td> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -284,7 +284,7 @@ | |||||
| <td width="260"><select name="arcrank" id="arcrank" class="biz-input-sm"> | <td width="260"><select name="arcrank" id="arcrank" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -279,7 +279,7 @@ | |||||
| <option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option> | <option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'"); | |||||
| $dsql->SetQuery("SELECT * FROM #@__arcrank where adminrank<='$urank'"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()){ | while($row = $dsql->GetObject()){ | ||||
| echo "<option value='".$row->rank."'>".$row->membername."</option>"; | echo "<option value='".$row->rank."'>".$row->membername."</option>"; | ||||
| @@ -67,7 +67,7 @@ | |||||
| <td width="90">自定义属性:</td> | <td width="90">自定义属性:</td> | ||||
| <td> | <td> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From `#@__arcatt` where att<>'j' And att<>'p' order by sortid asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` where att<>'j' And att<>'p' order by sortid asc"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -131,7 +131,7 @@ | |||||
| <select name="arcrank" id="arcrank" class="biz-input-sm"> | <select name="arcrank" id="arcrank" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -131,7 +131,7 @@ | |||||
| <option value='<?php echo $addRow["arcrank"];?>'><?php echo $addRow["rankname"];?></option> | <option value='<?php echo $addRow["arcrank"];?>'><?php echo $addRow["rankname"];?></option> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And `rank`<>'{$addRow["arcrank"]}' "); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' And `rank`<>'{$addRow["arcrank"]}' "); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) { | while($row = $dsql->GetObject()) { | ||||
| echo "<option value='".$row->rank."'>".$row->membername."</option>"; | echo "<option value='".$row->rank."'>".$row->membername."</option>"; | ||||
| @@ -90,7 +90,7 @@ | |||||
| <td width="90">自定义属性:</td> | <td width="90">自定义属性:</td> | ||||
| <td align="left"> | <td align="left"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -318,7 +318,7 @@ | |||||
| <select name="arcrank" id="arcrank" class="biz-input-sm"> | <select name="arcrank" id="arcrank" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -281,7 +281,7 @@ | |||||
| <option value='<?php echo $arcRow["arcrank"]?>'> <?php echo $arcRow["rankname"]?> </option> | <option value='<?php echo $arcRow["arcrank"]?>'> <?php echo $arcRow["rankname"]?> </option> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()){ | while($row = $dsql->GetObject()){ | ||||
| echo "<option value='".$row->rank."'>".$row->membername."</option>"; | echo "<option value='".$row->rank."'>".$row->membername."</option>"; | ||||
| @@ -33,7 +33,7 @@ | |||||
| <td> | <td> | ||||
| <select name="cardtype" class="biz-input-sm"> | <select name="cardtype" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From #@__moneycard_type"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__moneycard_type`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row=$dsql->GetArray()){ | while($row=$dsql->GetArray()){ | ||||
| echo " <option value='{$row['tid']}'>{$row['pname']}</option>"; | echo " <option value='{$row['tid']}'>{$row['pname']}</option>"; | ||||
| @@ -22,7 +22,7 @@ | |||||
| <td width="17%" align="center">状态</td> | <td width="17%" align="center">状态</td> | ||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From #@__moneycard_type"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__moneycard_type`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| $k=0; | $k=0; | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| @@ -237,7 +237,7 @@ | |||||
| <td class="biz-td"> | <td class="biz-td"> | ||||
| <select name="corank" id="corank" class="biz-input-sm"> | <select name="corank" id="corank" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where `rank` >= 0"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank` >= 0"); | |||||
| $dsql->Execute('cc'); | $dsql->Execute('cc'); | ||||
| while($row = $dsql->GetObject('cc')){ | while($row = $dsql->GetObject('cc')){ | ||||
| if ($corank==$row->rank) echo "<option value='".$row->rank."' selected>".$row->membername."</option>"; | if ($corank==$row->rank) echo "<option value='".$row->rank."' selected>".$row->membername."</option>"; | ||||
| @@ -214,7 +214,7 @@ | |||||
| <td class="biz-td"> | <td class="biz-td"> | ||||
| <select name="corank" id="corank" class="biz-input-sm"> | <select name="corank" id="corank" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from #@__arcrank where `rank` >= 0"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank` >= 0"); | |||||
| $dsql->Execute('cc'); | $dsql->Execute('cc'); | ||||
| while($row = $dsql->GetObject('cc')) | while($row = $dsql->GetObject('cc')) | ||||
| { | { | ||||
| @@ -24,7 +24,7 @@ | |||||
| <td width="70%">属性名称</td> | <td width="70%">属性名称</td> | ||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("SELECT * From `#@__arcatt` order by sortid asc "); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc "); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| $k=0; | $k=0; | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| @@ -37,7 +37,7 @@ | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td>评论内容:</td> | <td>评论内容:</td> | ||||
| <td>修改的评论内容HTML代码不会被屏蔽,可用HTML语法编辑</td> | |||||
| <td>修改的评论内容网页代码不会被屏蔽,可用HTML语法编辑</td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td height="62" align="center"></td> | <td height="62" align="center"></td> | ||||
| @@ -45,7 +45,7 @@ | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td>管理员回复:</td> | <td>管理员回复:</td> | ||||
| <td>回复内容的HTML代码会被屏蔽</td> | |||||
| <td>回复内容的网页代码会被屏蔽</td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td align="center"></td> | <td align="center"></td> | ||||
| @@ -155,7 +155,7 @@ | |||||
| <?php | <?php | ||||
| echo "<select name='typeid' class='biz-input-sm'>"; | echo "<select name='typeid' class='biz-input-sm'>"; | ||||
| echo "<option value='0'>不限栏目</option>"; | echo "<option value='0'>不限栏目</option>"; | ||||
| $dsql->SetQuery("Select ID,typename, channeltype From #@__arctype"); | |||||
| $dsql->SetQuery("Select ID,typename, channeltype From `#@__arctype`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($lrow = $dsql->GetObject()){ | while($lrow = $dsql->GetObject()){ | ||||
| $disable = ''; | $disable = ''; | ||||
| @@ -174,7 +174,7 @@ | |||||
| <?php | <?php | ||||
| echo "<select name='channel' class='biz-input-sm'>"; | echo "<select name='channel' class='biz-input-sm'>"; | ||||
| echo "<option value='0' selected>不限</option>"; | echo "<option value='0' selected>不限</option>"; | ||||
| $dsql->SetQuery("Select ID,typename From #@__channeltype where ID>0"); | |||||
| $dsql->SetQuery("Select ID,typename From `#@__channeltype` where ID>0"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -189,7 +189,7 @@ | |||||
| <?php | <?php | ||||
| echo "<select name='att' class='biz-input-sm'>"; | echo "<select name='att' class='biz-input-sm'>"; | ||||
| echo "<option value='0' selected>不限</option>"; | echo "<option value='0' selected>不限</option>"; | ||||
| $dsql->SetQuery("Select * From #@__arcatt"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -120,7 +120,7 @@ | |||||
| $typeid = $ctag->GetAtt('typeid'); | $typeid = $ctag->GetAtt('typeid'); | ||||
| echo "<select name='typeid' class='biz-input-sm'>"; | echo "<select name='typeid' class='biz-input-sm'>"; | ||||
| echo "<option value='0'>不限栏目</option>"; | echo "<option value='0'>不限栏目</option>"; | ||||
| $dsql->SetQuery("Select id,typename, channeltype From #@__arctype"); | |||||
| $dsql->SetQuery("Select id,typename, channeltype From `#@__arctype`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($lrow = $dsql->GetObject()){ | while($lrow = $dsql->GetObject()){ | ||||
| $disable = ''; | $disable = ''; | ||||
| @@ -140,7 +140,7 @@ | |||||
| <?php | <?php | ||||
| $channel = $ctag->GetAtt('channel'); | $channel = $ctag->GetAtt('channel'); | ||||
| echo "<select name='channel' class='biz-input-sm'><option value='0'>不限</option>"; | echo "<select name='channel' class='biz-input-sm'><option value='0'>不限</option>"; | ||||
| $dsql->SetQuery("Select id,typename From #@__channeltype where id>0"); | |||||
| $dsql->SetQuery("Select id,typename From `#@__channeltype` where id>0"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($nrow = $dsql->GetObject()) | while($nrow = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -157,7 +157,7 @@ | |||||
| $att = $ctag->GetAtt('att'); | $att = $ctag->GetAtt('att'); | ||||
| echo "<select name='att' class='biz-input-sm'>"; | echo "<select name='att' class='biz-input-sm'>"; | ||||
| echo "<option value='0'>不限</option>"; | echo "<option value='0'>不限</option>"; | ||||
| $dsql->SetQuery("Select * From #@__arcatt"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($nrow = $dsql->GetObject()) | while($nrow = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -72,7 +72,7 @@ | |||||
| <td> | <td> | ||||
| <select name="typeid" id="typeid" class="biz-input-sm"> | <select name="typeid" id="typeid" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("select * from #@__flinktype"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__flinktype`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row=$dsql->GetObject()) | while($row=$dsql->GetObject()) | ||||
| { | { | ||||
| @@ -61,7 +61,7 @@ | |||||
| <select name="typeid" id="typeid" class="biz-input-sm"> | <select name="typeid" id="typeid" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| echo " <option value='".$myLink['typeid']."'>".$myLink['typename']."</option>"; | echo " <option value='".$myLink['typeid']."'>".$myLink['typename']."</option>"; | ||||
| $dsql->SetQuery("select * from #@__flinktype where id<>'".$myLink['typeid']."'"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__flinktype` where id<>'".$myLink['typeid']."'"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row=$dsql->GetObject()){ | while($row=$dsql->GetObject()){ | ||||
| echo " <option value='".$row->id."'>".$row->typename."</option>"; | echo " <option value='".$row->id."'>".$row->typename."</option>"; | ||||
| @@ -21,7 +21,7 @@ | |||||
| <td width="34%" align="center">状态</td> | <td width="34%" align="center">状态</td> | ||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From #@__flinktype"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__flinktype`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| $k=0; | $k=0; | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| @@ -67,7 +67,7 @@ | |||||
| <td class="biz-td"> | <td class="biz-td"> | ||||
| <select name='usertype' class='biz-input-sm'> | <select name='usertype' class='biz-input-sm'> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from `#@__admintype` order by `rank` asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__admintype` order by `rank` asc"); | |||||
| $dsql->Execute("ut"); | $dsql->Execute("ut"); | ||||
| while($myrow = $dsql->GetObject("ut")) | while($myrow = $dsql->GetObject("ut")) | ||||
| { | { | ||||
| @@ -33,7 +33,7 @@ | |||||
| <td width="16%" align="center">状态</td> | <td width="16%" align="center">状态</td> | ||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From #@__member_type"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__member_type`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| $k=0; | $k=0; | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| @@ -155,7 +155,7 @@ | |||||
| <td>空间信息:</td> | <td>空间信息:</td> | ||||
| <td class="biz-td"> | <td class="biz-td"> | ||||
| <?php | <?php | ||||
| $nrow = $dsql->GetOne("Select * From `#@__member_tj` where mid='{$row['mid']}' "); | |||||
| $nrow = $dsql->GetOne("SELECT * FROM `#@__member_tj` where mid='{$row['mid']}' "); | |||||
| echo "文档:{$nrow['article']} 图集:{$nrow['album']} 文档:{$nrow['archives']} 收藏:{$nrow['stow']}"; | echo "文档:{$nrow['article']} 图集:{$nrow['album']} 文档:{$nrow['archives']} 收藏:{$nrow['stow']}"; | ||||
| echo "<br>空间访问:{$nrow['homecount']} 页面访问:{$nrow['pagecount']} 留言:{$nrow['feedback']} 好友:{$nrow['friend']} "; | echo "<br>空间访问:{$nrow['homecount']} 页面访问:{$nrow['pagecount']} 留言:{$nrow['feedback']} 好友:{$nrow['friend']} "; | ||||
| ?> | ?> | ||||
| @@ -89,7 +89,7 @@ | |||||
| <option value="0">游客</option> | <option value="0">游客</option> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And `rank`>=10"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' And `rank`>=10"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row2 = $dsql->GetObject()) | while($row2 = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -103,7 +103,7 @@ | |||||
| <td>许可投稿会员组</td> | <td>许可投稿会员组</td> | ||||
| <td> | <td> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from `#@__member_model`"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__member_model`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row3 = $dsql->GetObject()) | while($row3 = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -141,7 +141,7 @@ | |||||
| <option value="0">游客</option> | <option value="0">游客</option> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And `rank`>=10"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' And `rank`>=10"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row2 = $dsql->GetObject()) | while($row2 = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -156,7 +156,7 @@ | |||||
| <td>许可投稿会员组</td> | <td>许可投稿会员组</td> | ||||
| <td> | <td> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from `#@__member_model`"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__member_model`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row3 = $dsql->GetObject()) | while($row3 = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -64,7 +64,7 @@ | |||||
| <input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
| <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | ||||
| <tr> | <tr> | ||||
| <td colspan="3"><div class="alert alert-info mb-0">自定义标记的调用方法:{dede:mytag name='标记名称' ismake='是否含板块代码(yes 或 no)' typeid='栏目id'/} 1、name 标记名称,该项是必须的属性,以下2、3是可选属性;2、ismake 默认是no表示设定的纯HTML代码,yes表示含板块标记的代码;3、typeid表示所属栏目的id,默认为0,表示所有栏目通用的显示内容,在列表和文档模板中,typeid默认是这个列表或文档本身的栏目id</div></td> | |||||
| <td colspan="3"><div class="alert alert-info mb-0">自定义标记的调用方法:{dede:mytag name='标记名称' ismake='是否含板块代码(yes 或 no)' typeid='栏目id'/} 1、name 标记名称,该项是必须的属性,以下2、3是可选属性;2、ismake 默认是no表示设定的纯网页代码,yes表示含板块标记的代码;3、typeid表示所属栏目的id,默认为0,表示所有栏目通用的显示内容,在列表和文档模板中,typeid默认是这个列表或文档本身的栏目id</div></td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td width="15%" align="center">所属栏目:</td> | <td width="15%" align="center">所属栏目:</td> | ||||
| @@ -115,7 +115,7 @@ | |||||
| <?php | <?php | ||||
| echo "<select name='channel' class='biz-input-sm'>"; | echo "<select name='channel' class='biz-input-sm'>"; | ||||
| echo "<option value='0' selected>不限频道</option>"; | echo "<option value='0' selected>不限频道</option>"; | ||||
| $tl->dsql->SetQuery("Select id,typename From #@__channeltype where id>0"); | |||||
| $tl->dsql->SetQuery("Select id,typename From `#@__channeltype` where id>0"); | |||||
| $tl->dsql->Execute(); | $tl->dsql->Execute(); | ||||
| while($row = $tl->dsql->GetObject()) | while($row = $tl->dsql->GetObject()) | ||||
| { | { | ||||
| @@ -127,7 +127,7 @@ | |||||
| <?php | <?php | ||||
| echo "<select name='att' class='biz-input-sm'>"; | echo "<select name='att' class='biz-input-sm'>"; | ||||
| echo "<option value='0' selected>不限</option>"; | echo "<option value='0' selected>不限</option>"; | ||||
| $tl->dsql->SetQuery("Select * From #@__arcatt"); | |||||
| $tl->dsql->SetQuery("SELECT * FROM `#@__arcatt`"); | |||||
| $tl->dsql->Execute(); | $tl->dsql->Execute(); | ||||
| while($row = $tl->dsql->GetObject()) | while($row = $tl->dsql->GetObject()) | ||||
| { | { | ||||
| @@ -82,7 +82,7 @@ | |||||
| <tr> | <tr> | ||||
| <td width="90">自定义属性:</td> | <td width="90">自定义属性:</td> | ||||
| <td><?php | <td><?php | ||||
| $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -319,7 +319,7 @@ | |||||
| <td align="left"> | <td align="left"> | ||||
| <select name="daccess" id="daccess" class="biz-input-sm"> | <select name="daccess" id="daccess" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where `rank`>=0 "); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank`>=0 "); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetArray()) | while($row = $dsql->GetArray()) | ||||
| { | { | ||||
| @@ -70,7 +70,7 @@ | |||||
| <select name="dfrank" id="dfrank" class="biz-input-sm"> | <select name="dfrank" id="dfrank" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where `rank`>=0 "); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank`>=0 "); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($nrow = $dsql->GetArray()) | while($nrow = $dsql->GetArray()) | ||||
| { | { | ||||
| @@ -78,7 +78,7 @@ | |||||
| <td width="90">自定义属性:</td> | <td width="90">自定义属性:</td> | ||||
| <td> | <td> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -311,7 +311,7 @@ | |||||
| <td> | <td> | ||||
| <select name="daccess" id="daccess" class="biz-input-sm"> | <select name="daccess" id="daccess" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where `rank`>=0 "); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank`>=0 "); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetArray()) | while($row = $dsql->GetArray()) | ||||
| { | { | ||||
| @@ -106,7 +106,7 @@ | |||||
| <tr> | <tr> | ||||
| <td width="90">自定义属性:</td> | <td width="90">自定义属性:</td> | ||||
| <td><?php | <td><?php | ||||
| $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -104,7 +104,7 @@ | |||||
| <td width="90">自定义属性:</td> | <td width="90">自定义属性:</td> | ||||
| <td> | <td> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($trow = $dsql->GetObject()) | while($trow = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -1,6 +1,6 @@ | |||||
| <?php | <?php | ||||
| if ($action=='edit') { | if ($action=='edit') { | ||||
| $arr = $dsql->GetOne("Select * from `#@__stepselect` where id='$id' "); | |||||
| $arr = $dsql->GetOne("SELECT * FROM `#@__stepselect` where id='$id' "); | |||||
| $sbjs = " onsubmit=\"alert('该分类是系统内置枚举,不允许修改'); return false;\" "; | $sbjs = " onsubmit=\"alert('该分类是系统内置枚举,不允许修改'); return false;\" "; | ||||
| if ($arr['issystem']==0) $sbjs = ''; | if ($arr['issystem']==0) $sbjs = ''; | ||||
| ?> | ?> | ||||
| @@ -30,7 +30,7 @@ if ($arr['issystem']==0) $sbjs = ''; | |||||
| </form> | </form> | ||||
| <?php | <?php | ||||
| } else if ($action=='addenum') { | } else if ($action=='addenum') { | ||||
| $arr = $dsql->GetOne("Select * from `#@__stepselect` where id='$id' "); | |||||
| $arr = $dsql->GetOne("SELECT * FROM `#@__stepselect` where id='$id' "); | |||||
| $dsql->Execute('out',"Select evalue,ename from `#@__sys_enum` where egroup='{$arr['egroup']}' And (evalue mod 500)=0 order by disorder asc,evalue asc"); | $dsql->Execute('out',"Select evalue,ename from `#@__sys_enum` where egroup='{$arr['egroup']}' And (evalue mod 500)=0 order by disorder asc,evalue asc"); | ||||
| $options = ''; | $options = ''; | ||||
| if ($arr['issign']==0) | if ($arr['issign']==0) | ||||
| @@ -58,8 +58,8 @@ if ($arr['issign']==0) | |||||
| </form> | </form> | ||||
| <?php | <?php | ||||
| } else if ($action=='view') { | } else if ($action=='view') { | ||||
| $arr = $dsql->GetOne("Select * from `#@__stepselect` where id='$id' "); | |||||
| $dsql->Execute('out',"Select * From `#@__sys_enum` where egroup like '{$arr['egroup']}' order by disorder asc, evalue asc"); | |||||
| $arr = $dsql->GetOne("SELECT * FROM `#@__stepselect` where id='$id' "); | |||||
| $dsql->Execute('out',"SELECT * FROM `#@__sys_enum` where egroup like '{$arr['egroup']}' order by disorder asc, evalue asc"); | |||||
| $options = ''; | $options = ''; | ||||
| while($row1 = $dsql->GetArray('out')) | while($row1 = $dsql->GetArray('out')) | ||||
| { | { | ||||
| @@ -66,7 +66,7 @@ | |||||
| <td class="biz-td"> | <td class="biz-td"> | ||||
| <select name="usertype" class="biz-input-sm"> | <select name="usertype" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from `#@__admintype` order by `rank` asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__admintype` order by `rank` asc"); | |||||
| $dsql->Execute("ut"); | $dsql->Execute("ut"); | ||||
| while($myrow = $dsql->GetObject("ut")) | while($myrow = $dsql->GetObject("ut")) | ||||
| { | { | ||||
| @@ -44,7 +44,7 @@ | |||||
| <td class="biz-td"> | <td class="biz-td"> | ||||
| <select name="usertype" class="biz-input-sm"> | <select name="usertype" class="biz-input-sm"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from `#@__admintype` order by `rank` asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__admintype` order by `rank` asc"); | |||||
| $dsql->Execute("ut"); | $dsql->Execute("ut"); | ||||
| while($myrow = $dsql->GetObject("ut")) | while($myrow = $dsql->GetObject("ut")) | ||||
| { | { | ||||
| @@ -38,7 +38,7 @@ | |||||
| <tr> | <tr> | ||||
| <td> | <td> | ||||
| <?php | <?php | ||||
| $dsql->Execute('me', 'Select * From `#@__admin` order by id asc'); | |||||
| $dsql->Execute('me', 'SELECT * FROM `#@__admin` order by id asc'); | |||||
| while( $arr = $dsql->GetArray('me') ) | while( $arr = $dsql->GetArray('me') ) | ||||
| { | { | ||||
| echo "<div id='userct{$arr['id']}' class='userct'><p align='center'><img src='../static/web/img/loadinglit.gif'>正在加载</p></div><script>LoadUser({$arr['id']});</script>"; | echo "<div id='userct{$arr['id']}' class='userct'><p align='center'><img src='../static/web/img/loadinglit.gif'>正在加载</p></div><script>LoadUser({$arr['id']});</script>"; | ||||
| @@ -31,7 +31,7 @@ | |||||
| <td width="35%">管理</td> | <td width="35%">管理</td> | ||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select `rank`,typename,`system` From #@__admintype"); | |||||
| $dsql->SetQuery("Select `rank`,typename,`system` From `#@__admintype`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -65,7 +65,7 @@ | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <?php | <?php | ||||
| $l = 0; | $l = 0; | ||||
| $dsql->SetQuery('Select plusname From #@__plus'); | |||||
| $dsql->SetQuery('Select plusname From `#@__plus`'); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row=$dsql->GetObject()){ | while($row=$dsql->GetObject()){ | ||||
| echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label> "; | echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label> "; | ||||
| @@ -74,7 +74,7 @@ | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <?php | <?php | ||||
| $l = 0; | $l = 0; | ||||
| $dsql->SetQuery('SELECT plusname FROM #@__plus'); | |||||
| $dsql->SetQuery('SELECT plusname FROM `#@__plus`'); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row=$dsql->GetObject()){ | while($row=$dsql->GetObject()){ | ||||
| echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}")."> {$row->plusname}</label> "; | echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}")."> {$row->plusname}</label> "; | ||||
| @@ -157,7 +157,7 @@ | |||||
| <td width="260" class="border-top-0">变量名称</td> | <td width="260" class="border-top-0">变量名称</td> | ||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * From `#@__sysconfig` where groupid='{$dls[0]}' order by aid asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__sysconfig` where groupid='{$dls[0]}' order by aid asc"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| $i = 1; | $i = 1; | ||||
| while($row = $dsql->GetArray()) { | while($row = $dsql->GetArray()) { | ||||
| @@ -26,7 +26,7 @@ if ($dopost == "save" && $isarc == 0) { | |||||
| $voteitems .= "<v:note id=\\'$j\\' count=\\'0\\'>".${"voteitem".$i}."</v:note>\r\n"; | $voteitems .= "<v:note id=\\'$j\\' count=\\'0\\'>".${"voteitem".$i}."</v:note>\r\n"; | ||||
| } | } | ||||
| } | } | ||||
| $inQuery = "INSERT INTO `#@__vote`(votename,starttime,endtime,totalcount,ismore,votenote,isallow,view,spec,isenable) VALUES ('$votename','$starttime','$endtime','0','$ismore','$voteitems','$isallow','$view','$spec','$isenable'); "; | |||||
| $inQuery = "INSERT INTO `#@__vote` (votename,starttime,endtime,totalcount,ismore,votenote,isallow,view,spec,isenable) VALUES ('$votename','$starttime','$endtime','0','$ismore','$voteitems','$isallow','$view','$spec','$isenable'); "; | |||||
| if (!$dsql->ExecuteNoneQuery($inQuery)) { | if (!$dsql->ExecuteNoneQuery($inQuery)) { | ||||
| ShowMsg("增加投票失败,请检查数据是否非法", "-1"); | ShowMsg("增加投票失败,请检查数据是否非法", "-1"); | ||||
| exit(); | exit(); | ||||
| @@ -51,7 +51,7 @@ if ($dopost == "save" && $isarc == 0) { | |||||
| $voteitems .= "<v:note id=\\'$j\\' count=\\'0\\'>".${"voteitem".$i}."</v:note>\r\n"; | $voteitems .= "<v:note id=\\'$j\\' count=\\'0\\'>".${"voteitem".$i}."</v:note>\r\n"; | ||||
| } | } | ||||
| } | } | ||||
| $inQuery = "INSERT INTO `#@__vote`(votename,starttime,endtime,totalcount,ismore,votenote,isallow,view,spec,isenable) VALUES ('$votename','$starttime','$endtime','0','$ismore','$voteitems','$isallow','$view','$spec','$isenable'); "; | |||||
| $inQuery = "INSERT INTO `#@__vote` (votename,starttime,endtime,totalcount,ismore,votenote,isallow,view,spec,isenable) VALUES ('$votename','$starttime','$endtime','0','$ismore','$voteitems','$isallow','$view','$spec','$isenable'); "; | |||||
| if (!$dsql->ExecuteNoneQuery($inQuery)) { | if (!$dsql->ExecuteNoneQuery($inQuery)) { | ||||
| ShowMsg("增加投票失败,请检查数据是否非法", "-1"); | ShowMsg("增加投票失败,请检查数据是否非法", "-1"); | ||||
| exit(); | exit(); | ||||
| @@ -35,7 +35,7 @@ if ($action == 'post') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| } | } | ||||
| $diyform = $dsql->getOne("SELECT * from `#@__diyforms` WHERE diyid='$diyid' "); | |||||
| $diyform = $dsql->getOne("SELECT * FROM `#@__diyforms` WHERE diyid='$diyid' "); | |||||
| if (!is_array($diyform)) { | if (!is_array($diyform)) { | ||||
| showmsg('自定义表单不存在', '-1'); | showmsg('自定义表单不存在', '-1'); | ||||
| exit(); | exit(); | ||||
| @@ -514,6 +514,19 @@ span.page-link { | |||||
| height:20px; | height:20px; | ||||
| border-radius:.2rem | border-radius:.2rem | ||||
| } | } | ||||
| #browsehappy { | |||||
| padding:20px 30px; | |||||
| font-size:14px; | |||||
| line-height:16px; | |||||
| color:#856404; | |||||
| background:#fff3cd; | |||||
| border-radius:.25rem; | |||||
| border:0 | |||||
| } | |||||
| .browsehappy-close { | |||||
| float:right; | |||||
| cursor:pointer | |||||
| } | |||||
| @media (min-width:576px) { | @media (min-width:576px) { | ||||
| .modal-dialog { | .modal-dialog { | ||||
| max-width:520px | max-width:520px | ||||
| @@ -117,7 +117,7 @@ class SpecView | |||||
| } else { | } else { | ||||
| $timesql = ""; | $timesql = ""; | ||||
| } | } | ||||
| $row = $this->dsql->GetOne("SELECT count(*) AS dd FROM #@__archives WHERE #@__archives.arcrank > -1 AND channel=-1 $timesql"); | |||||
| $row = $this->dsql->GetOne("SELECT count(*) AS dd FROM `#@__archives` WHERE `#@__archives`.arcrank > -1 AND channel=-1 $timesql"); | |||||
| if (is_array($row)) { | if (is_array($row)) { | ||||
| $this->TotalResult = $row['dd']; | $this->TotalResult = $row['dd']; | ||||
| } else { | } else { | ||||
| @@ -66,7 +66,7 @@ class TagList | |||||
| foreach ($GLOBALS['PubFields'] as $k => $v) $this->Fields[$k] = $v; | foreach ($GLOBALS['PubFields'] as $k => $v) $this->Fields[$k] = $v; | ||||
| //读取Tag信息 | //读取Tag信息 | ||||
| if (!empty($this->Tag)) { | if (!empty($this->Tag)) { | ||||
| $this->TagInfos = $this->dsql->GetOne("Select * From `#@__tagindex` where id = '{$this->Tag}' "); | |||||
| $this->TagInfos = $this->dsql->GetOne("SELECT * FROM `#@__tagindex` where id = '{$this->Tag}' "); | |||||
| if (!is_array($this->TagInfos)) { | if (!is_array($this->TagInfos)) { | ||||
| $msg = "系统无此标签,可能已经移除"; | $msg = "系统无此标签,可能已经移除"; | ||||
| ShowMsg($msg, "-1"); | ShowMsg($msg, "-1"); | ||||
| @@ -195,7 +195,7 @@ if (!function_exists('GetPinyin')) { | |||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * 将实体html代码转换成标准html代码(兼容php4) | |||||
| * 将实体网页代码转换成标准网页代码(兼容php4) | |||||
| * | * | ||||
| * @access public | * @access public | ||||
| * @param string $str 字符串信息 | * @param string $str 字符串信息 | ||||
| @@ -49,10 +49,10 @@ function lib_channel(&$ctag, &$refObj) | |||||
| if ($type == '' || $type == 'sun') $type = 'son'; | if ($type == '' || $type == 'sun') $type = 'son'; | ||||
| if ($innertext == '') $innertext = GetSysTemplets("channel_list.htm"); | if ($innertext == '') $innertext = GetSysTemplets("channel_list.htm"); | ||||
| if ($type == 'top') { | if ($type == 'top') { | ||||
| $sql = "SELECT * From `#@__arctype` WHERE reid=0 And ishidden<>1 order by sortrank asc limit 0, $line "; | |||||
| $sql = "SELECT * FROM `#@__arctype` WHERE reid=0 And ishidden<>1 order by sortrank asc limit 0, $line "; | |||||
| } else if ($type == 'son') { | } else if ($type == 'son') { | ||||
| if ($typeid == 0) return ''; | if ($typeid == 0) return ''; | ||||
| $sql = "SELECT * From `#@__arctype` WHERE reid='$typeid' And ishidden<>1 order by sortrank asc limit 0, $line "; | |||||
| $sql = "SELECT * FROM `#@__arctype` WHERE reid='$typeid' And ishidden<>1 order by sortrank asc limit 0, $line "; | |||||
| } else if ($type == 'self') { | } else if ($type == 'self') { | ||||
| if ($reid == 0) return ''; | if ($reid == 0) return ''; | ||||
| $sql = "SELECT * FROM `#@__arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line "; | $sql = "SELECT * FROM `#@__arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line "; | ||||
| @@ -8,4 +8,4 @@ tablewidth='100%' 表格宽度 | |||||
| titlebgcolor='#EDEDE2' 投票标题背景色 | titlebgcolor='#EDEDE2' 投票标题背景色 | ||||
| titlebackground='' | titlebackground='' | ||||
| tablebg ='' 投票表格背景色 | tablebg ='' 投票表格背景色 | ||||
| 为了更方便修改样式,建议在后台->辅助插件->投票管理,直接复制生成的HTML代码来使用 | |||||
| 为了更方便修改样式,建议在后台->辅助插件->投票管理,直接复制生成的网页代码来使用 | |||||
| @@ -103,7 +103,7 @@ | |||||
| //Print Page | //Print Page | ||||
| function printPage(oper) { | function printPage(oper) { | ||||
| if (oper < 10) { | if (oper < 10) { | ||||
| bdhtml = window.document.body.innerHTML; //获取当前页的html代码 | |||||
| bdhtml = window.document.body.innerHTML; //获取当前页的网页代码 | |||||
| sprnstr = "<!--startprint" + oper + "-->"; //设置打印开始区域 | sprnstr = "<!--startprint" + oper + "-->"; //设置打印开始区域 | ||||
| eprnstr = "<!--endprint" + oper + "-->"; //设置打印结束区域 | eprnstr = "<!--endprint" + oper + "-->"; //设置打印结束区域 | ||||
| prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); //从开始代码向后取html | prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); //从开始代码向后取html | ||||
| @@ -52,7 +52,7 @@ | |||||
| <td> | <td> | ||||
| <select name="typeid" id="typeid"> | <select name="typeid" id="typeid"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("select * from #@__flinktype"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__flinktype`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row=$dsql->GetObject()) | while($row=$dsql->GetObject()) | ||||
| { | { | ||||
| @@ -28,7 +28,7 @@ | |||||
| <?php | <?php | ||||
| $row = 180; | $row = 180; | ||||
| $titlelen = 50; | $titlelen = 50; | ||||
| $dsql->SetQuery("Select * from `#@__flink` where ischeck>0 order by sortrank asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__flink` where ischeck>0 order by sortrank asc"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| $revalue = ""; | $revalue = ""; | ||||
| for($i=1;$i<=$row;$i++) | for($i=1;$i<=$row;$i++) | ||||
| @@ -50,7 +50,7 @@ | |||||
| <select name="channeltype" id="channeltype" class="form-control"> | <select name="channeltype" id="channeltype" class="form-control"> | ||||
| <option value="0" selected>不限</option> | <option value="0" selected>不限</option> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select id,typename From #@__channeltype order by id desc"); | |||||
| $dsql->SetQuery("Select id,typename From `#@__channeltype` order by id desc"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -56,7 +56,7 @@ function _SaveArticle(){ } | |||||
| ------------------------------*/ | ------------------------------*/ | ||||
| else if ($dopost == 'save') { | else if ($dopost == 'save') { | ||||
| include(DEDEMEMBER.'/inc/archives_check.php'); | include(DEDEMEMBER.'/inc/archives_check.php'); | ||||
| $cInfos = $dsql->GetOne("Select * From `#@__channeltype` WHERE id='$channelid'; "); | |||||
| $cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid'; "); | |||||
| $maxwidth = isset($maxwidth) && is_numeric($maxwidth) ? $maxwidth : 800; | $maxwidth = isset($maxwidth) && is_numeric($maxwidth) ? $maxwidth : 800; | ||||
| $pagepicnum = isset($pagepicnum) && is_numeric($pagepicnum) ? $pagepicnum : 12; | $pagepicnum = isset($pagepicnum) && is_numeric($pagepicnum) ? $pagepicnum : 12; | ||||
| $ddmaxwidth = isset($ddmaxwidth) && is_numeric($ddmaxwidth) ? $ddmaxwidth : 200; | $ddmaxwidth = isset($ddmaxwidth) && is_numeric($ddmaxwidth) ? $ddmaxwidth : 200; | ||||
| @@ -57,7 +57,7 @@ if (empty($dopost)) { | |||||
| function _Save(){ } | function _Save(){ } | ||||
| ------------------------------*/ | ------------------------------*/ | ||||
| else if ($dopost == 'save') { | else if ($dopost == 'save') { | ||||
| $cInfos = $dsql->GetOne("Select * From `#@__channeltype` WHERE id='$channelid'; "); | |||||
| $cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid'; "); | |||||
| $maxwidth = isset($maxwidth) && is_numeric($maxwidth) ? $maxwidth : 800; | $maxwidth = isset($maxwidth) && is_numeric($maxwidth) ? $maxwidth : 800; | ||||
| $pagepicnum = isset($pagepicnum) && is_numeric($pagepicnum) ? $pagepicnum : 12; | $pagepicnum = isset($pagepicnum) && is_numeric($pagepicnum) ? $pagepicnum : 12; | ||||
| $ddmaxwidth = isset($ddmaxwidth) && is_numeric($ddmaxwidth) ? $ddmaxwidth : 200; | $ddmaxwidth = isset($ddmaxwidth) && is_numeric($ddmaxwidth) ? $ddmaxwidth : 200; | ||||
| @@ -22,7 +22,7 @@ $menutype = 'content'; | |||||
| function _ShowForm(){ } | function _ShowForm(){ } | ||||
| --------------*/ | --------------*/ | ||||
| if (empty($dopost)) { | if (empty($dopost)) { | ||||
| $cInfos = $dsql->GetOne("Select * From `#@__channeltype` WHERE id='$channelid'; "); | |||||
| $cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid'; "); | |||||
| if (!is_array($cInfos)) { | if (!is_array($cInfos)) { | ||||
| ShowMsg('模型不存在', '-1'); | ShowMsg('模型不存在', '-1'); | ||||
| exit(); | exit(); | ||||
| @@ -74,16 +74,7 @@ else if ($dopost == 'save') { | |||||
| $body = AnalyseHtmlBody($body, $description); | $body = AnalyseHtmlBody($body, $description); | ||||
| $body = HtmlReplace($body, -1); | $body = HtmlReplace($body, -1); | ||||
| //更新数据库的SQL语句 | //更新数据库的SQL语句 | ||||
| $upQuery = "UPDATE `#@__archives` SET | |||||
| ismake='$ismake', | |||||
| arcrank='$arcrank', | |||||
| typeid='$typeid', | |||||
| title='$title', | |||||
| description='$description', | |||||
| mtype = '$mtypesid', | |||||
| keywords='$keywords', | |||||
| flag='$flag' | |||||
| WHERE id='$aid' AND mid='$mid'; "; | |||||
| $upQuery = "UPDATE `#@__archives` SET ismake='$ismake',arcrank='$arcrank',typeid='$typeid',title='$title',description='$description',mtype='$mtypesid',keywords='$keywords',flag='$flag' WHERE id='$aid' AND mid='$mid'; "; | |||||
| if (!$dsql->ExecuteNoneQuery($upQuery)) { | if (!$dsql->ExecuteNoneQuery($upQuery)) { | ||||
| ShowMsg("数据保存到数据库主表`#@__archives`时出错,请联系管理员".$dsql->GetError(), "-1"); | ShowMsg("数据保存到数据库主表`#@__archives`时出错,请联系管理员".$dsql->GetError(), "-1"); | ||||
| exit(); | exit(); | ||||
| @@ -54,7 +54,7 @@ if ($product == 'member') { | |||||
| $price = $row['money']; | $price = $row['money']; | ||||
| } else if ($product == 'card') { | } else if ($product == 'card') { | ||||
| $ptype = "点卡购买"; | $ptype = "点卡购买"; | ||||
| $row = $dsql->GetOne("SELECT * From `#@__moneycard_type` WHERE tid='{$pid}'"); | |||||
| $row = $dsql->GetOne("SELECT * FROM `#@__moneycard_type` WHERE tid='{$pid}'"); | |||||
| if (!is_array($row)) { | if (!is_array($row)) { | ||||
| ShowMsg("无法识别您的订单", 'javascript:;'); | ShowMsg("无法识别您的订单", 'javascript:;'); | ||||
| exit(); | exit(); | ||||
| @@ -209,9 +209,9 @@ function countArchives($channelid) | |||||
| } else { | } else { | ||||
| $_field = 'articles'; | $_field = 'articles'; | ||||
| } | } | ||||
| $row = $dsql->GetOne("SELECT COUNT(*) AS nums FROM #@__archives WHERE channel='$id' AND mid='".$cfg_ml->M_ID."'"); | |||||
| $row = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `#@__archives` WHERE channel='$id' AND mid='".$cfg_ml->M_ID."'"); | |||||
| $dsql->ExecuteNoneQuery("UPDATE #@__member_tj SET ".$_field."='".$row['nums']."' WHERE mid='".$cfg_ml->M_ID."'"); | |||||
| $dsql->ExecuteNoneQuery("UPDATE `#@__member_tj` SET ".$_field."='".$row['nums']."' WHERE mid='".$cfg_ml->M_ID."'"); | |||||
| } else { | } else { | ||||
| return FALSE; | return FALSE; | ||||
| } | } | ||||
| @@ -37,7 +37,7 @@ if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if ($cid == 0) { | if ($cid == 0) { | ||||
| $row = $tl->dsql->GetOne("Select typename From #@__channeltype where id='$channelid'"); | |||||
| $row = $tl->dsql->GetOne("SELECT typename FROM `#@__channeltype` WHERE id='$channelid'"); | |||||
| if (is_array($row)) { | if (is_array($row)) { | ||||
| $positionname = $row['typename']; | $positionname = $row['typename']; | ||||
| } | } | ||||