广告代码:
- 请填写广告代码,支持html代码
+ 请填写广告代码,支持网页代码
diff --git a/src/admin/templets/adtype_main.htm b/src/admin/templets/adtype_main.htm
index afdc5c70..f5eb907e 100644
--- a/src/admin/templets/adtype_main.htm
+++ b/src/admin/templets/adtype_main.htm
@@ -20,7 +20,7 @@
状态
SetQuery("Select * From #@__myadtype");
+ $dsql->SetQuery("SELECT * FROM `#@__myadtype`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
diff --git a/src/admin/templets/album_add.htm b/src/admin/templets/album_add.htm
index d371b830..df29e101 100644
--- a/src/admin/templets/album_add.htm
+++ b/src/admin/templets/album_add.htm
@@ -89,7 +89,7 @@
自定义属性:
SetQuery("Select * From `#@__arcatt` order by sortid asc");
+ $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
@@ -401,7 +401,7 @@
getUserRank();
- $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
+ $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject())
{
diff --git a/src/admin/templets/album_edit.htm b/src/admin/templets/album_edit.htm
index 9a861fe9..92c32d49 100644
--- a/src/admin/templets/album_edit.htm
+++ b/src/admin/templets/album_edit.htm
@@ -448,7 +448,7 @@
getUserRank();
- $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
+ $dsql->SetQuery("SELECT * FROM #@__arcrank where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo "".$row->membername." ";
diff --git a/src/admin/templets/archives_add.htm b/src/admin/templets/archives_add.htm
index ff1067aa..32e6ee6b 100644
--- a/src/admin/templets/archives_add.htm
+++ b/src/admin/templets/archives_add.htm
@@ -68,7 +68,7 @@
自定义属性:
SetQuery("Select * From `#@__arcatt` order by sortid asc");
+ $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
@@ -284,7 +284,7 @@
getUserRank();
- $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
+ $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject())
{
diff --git a/src/admin/templets/archives_edit.htm b/src/admin/templets/archives_edit.htm
index b65bdf47..7bb8eb1c 100644
--- a/src/admin/templets/archives_edit.htm
+++ b/src/admin/templets/archives_edit.htm
@@ -279,7 +279,7 @@
getUserRank();
- $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
+ $dsql->SetQuery("SELECT * FROM #@__arcrank where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo "".$row->membername." ";
diff --git a/src/admin/templets/archives_sg_add.htm b/src/admin/templets/archives_sg_add.htm
index c0b2d72a..fa5b43ba 100644
--- a/src/admin/templets/archives_sg_add.htm
+++ b/src/admin/templets/archives_sg_add.htm
@@ -67,7 +67,7 @@
自定义属性:
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();
while($trow = $dsql->GetObject())
{
@@ -131,7 +131,7 @@
getUserRank();
- $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
+ $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject())
{
diff --git a/src/admin/templets/archives_sg_edit.htm b/src/admin/templets/archives_sg_edit.htm
index b2c2b532..6332812c 100644
--- a/src/admin/templets/archives_sg_edit.htm
+++ b/src/admin/templets/archives_sg_edit.htm
@@ -131,7 +131,7 @@
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();
while($row = $dsql->GetObject()) {
echo "".$row->membername." ";
diff --git a/src/admin/templets/article_add.htm b/src/admin/templets/article_add.htm
index e8fbc34f..f719d5e0 100644
--- a/src/admin/templets/article_add.htm
+++ b/src/admin/templets/article_add.htm
@@ -90,7 +90,7 @@
自定义属性:
SetQuery("Select * From `#@__arcatt` order by sortid asc");
+ $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
@@ -318,7 +318,7 @@
getUserRank();
- $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
+ $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject())
{
diff --git a/src/admin/templets/article_edit.htm b/src/admin/templets/article_edit.htm
index dd389e59..691ee371 100644
--- a/src/admin/templets/article_edit.htm
+++ b/src/admin/templets/article_edit.htm
@@ -281,7 +281,7 @@
getUserRank();
- $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
+ $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo "".$row->membername." ";
diff --git a/src/admin/templets/cards_make.htm b/src/admin/templets/cards_make.htm
index f6eaa5e8..13df170e 100644
--- a/src/admin/templets/cards_make.htm
+++ b/src/admin/templets/cards_make.htm
@@ -33,7 +33,7 @@
SetQuery("Select * From #@__moneycard_type");
+ $dsql->SetQuery("SELECT * FROM `#@__moneycard_type`");
$dsql->Execute();
while($row=$dsql->GetArray()){
echo " {$row['pname']} ";
diff --git a/src/admin/templets/cards_type.htm b/src/admin/templets/cards_type.htm
index c5955e2b..c2356f9a 100644
--- a/src/admin/templets/cards_type.htm
+++ b/src/admin/templets/cards_type.htm
@@ -22,7 +22,7 @@
状态
SetQuery("Select * From #@__moneycard_type");
+ $dsql->SetQuery("SELECT * FROM `#@__moneycard_type`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
diff --git a/src/admin/templets/catalog_add.htm b/src/admin/templets/catalog_add.htm
index 4813cfd2..d777160e 100644
--- a/src/admin/templets/catalog_add.htm
+++ b/src/admin/templets/catalog_add.htm
@@ -237,7 +237,7 @@
SetQuery("Select * from `#@__arcrank` where `rank` >= 0");
+ $dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank` >= 0");
$dsql->Execute('cc');
while($row = $dsql->GetObject('cc')){
if ($corank==$row->rank) echo "".$row->membername." ";
diff --git a/src/admin/templets/catalog_edit.htm b/src/admin/templets/catalog_edit.htm
index f30d00bd..df9d7530 100644
--- a/src/admin/templets/catalog_edit.htm
+++ b/src/admin/templets/catalog_edit.htm
@@ -214,7 +214,7 @@
SetQuery("Select * from #@__arcrank where `rank` >= 0");
+ $dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank` >= 0");
$dsql->Execute('cc');
while($row = $dsql->GetObject('cc'))
{
diff --git a/src/admin/templets/content_att.htm b/src/admin/templets/content_att.htm
index 60003dd9..6581d89c 100644
--- a/src/admin/templets/content_att.htm
+++ b/src/admin/templets/content_att.htm
@@ -24,7 +24,7 @@
属性名称
SetQuery("SELECT * From `#@__arcatt` order by sortid asc ");
+ $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc ");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
diff --git a/src/admin/templets/feedback_edit.htm b/src/admin/templets/feedback_edit.htm
index fdc335ec..b3b43754 100644
--- a/src/admin/templets/feedback_edit.htm
+++ b/src/admin/templets/feedback_edit.htm
@@ -37,7 +37,7 @@
评论内容:
- 修改的评论内容HTML代码不会被屏蔽,可用HTML语法编辑
+ 修改的评论内容网页代码不会被屏蔽,可用HTML语法编辑
@@ -45,7 +45,7 @@
管理员回复:
- 回复内容的HTML代码会被屏蔽
+ 回复内容的网页代码会被屏蔽
diff --git a/src/admin/templets/freelist_add.htm b/src/admin/templets/freelist_add.htm
index 24f24788..f4e2db07 100644
--- a/src/admin/templets/freelist_add.htm
+++ b/src/admin/templets/freelist_add.htm
@@ -155,7 +155,7 @@
";
echo "不限栏目 ";
- $dsql->SetQuery("Select ID,typename, channeltype From #@__arctype");
+ $dsql->SetQuery("Select ID,typename, channeltype From `#@__arctype`");
$dsql->Execute();
while($lrow = $dsql->GetObject()){
$disable = '';
@@ -174,7 +174,7 @@
";
echo "不限 ";
- $dsql->SetQuery("Select ID,typename From #@__channeltype where ID>0");
+ $dsql->SetQuery("Select ID,typename From `#@__channeltype` where ID>0");
$dsql->Execute();
while($row = $dsql->GetObject())
{
@@ -189,7 +189,7 @@
";
echo "不限 ";
- $dsql->SetQuery("Select * From #@__arcatt");
+ $dsql->SetQuery("SELECT * FROM `#@__arcatt`");
$dsql->Execute();
while($row = $dsql->GetObject())
{
diff --git a/src/admin/templets/freelist_edit.htm b/src/admin/templets/freelist_edit.htm
index 87365ce2..5f95a694 100644
--- a/src/admin/templets/freelist_edit.htm
+++ b/src/admin/templets/freelist_edit.htm
@@ -120,7 +120,7 @@
$typeid = $ctag->GetAtt('typeid');
echo "";
echo "不限栏目 ";
- $dsql->SetQuery("Select id,typename, channeltype From #@__arctype");
+ $dsql->SetQuery("Select id,typename, channeltype From `#@__arctype`");
$dsql->Execute();
while($lrow = $dsql->GetObject()){
$disable = '';
@@ -140,7 +140,7 @@
GetAtt('channel');
echo "不限 ";
- $dsql->SetQuery("Select id,typename From #@__channeltype where id>0");
+ $dsql->SetQuery("Select id,typename From `#@__channeltype` where id>0");
$dsql->Execute();
while($nrow = $dsql->GetObject())
{
@@ -157,7 +157,7 @@
$att = $ctag->GetAtt('att');
echo "";
echo "不限 ";
- $dsql->SetQuery("Select * From #@__arcatt");
+ $dsql->SetQuery("SELECT * FROM `#@__arcatt`");
$dsql->Execute();
while($nrow = $dsql->GetObject())
{
diff --git a/src/admin/templets/friendlink_add.htm b/src/admin/templets/friendlink_add.htm
index 74c427e7..d91eabff 100644
--- a/src/admin/templets/friendlink_add.htm
+++ b/src/admin/templets/friendlink_add.htm
@@ -72,7 +72,7 @@
SetQuery("select * from #@__flinktype");
+ $dsql->SetQuery("SELECT * FROM `#@__flinktype`");
$dsql->Execute();
while($row=$dsql->GetObject())
{
diff --git a/src/admin/templets/friendlink_edit.htm b/src/admin/templets/friendlink_edit.htm
index 4cfef6cc..a951b811 100644
--- a/src/admin/templets/friendlink_edit.htm
+++ b/src/admin/templets/friendlink_edit.htm
@@ -61,7 +61,7 @@
".$myLink['typename']."";
- $dsql->SetQuery("select * from #@__flinktype where id<>'".$myLink['typeid']."'");
+ $dsql->SetQuery("SELECT * FROM `#@__flinktype` where id<>'".$myLink['typeid']."'");
$dsql->Execute();
while($row=$dsql->GetObject()){
echo " ".$row->typename." ";
diff --git a/src/admin/templets/friendlink_type.htm b/src/admin/templets/friendlink_type.htm
index 6637f624..7662f88f 100644
--- a/src/admin/templets/friendlink_type.htm
+++ b/src/admin/templets/friendlink_type.htm
@@ -21,7 +21,7 @@
状态
SetQuery("Select * From #@__flinktype");
+ $dsql->SetQuery("SELECT * FROM `#@__flinktype`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
diff --git a/src/admin/templets/member_toadmin.htm b/src/admin/templets/member_toadmin.htm
index 98daed93..d385e123 100644
--- a/src/admin/templets/member_toadmin.htm
+++ b/src/admin/templets/member_toadmin.htm
@@ -67,7 +67,7 @@
SetQuery("Select * from `#@__admintype` order by `rank` asc");
+ $dsql->SetQuery("SELECT * FROM `#@__admintype` order by `rank` asc");
$dsql->Execute("ut");
while($myrow = $dsql->GetObject("ut"))
{
diff --git a/src/admin/templets/member_type.htm b/src/admin/templets/member_type.htm
index 78c58388..5e5939ec 100644
--- a/src/admin/templets/member_type.htm
+++ b/src/admin/templets/member_type.htm
@@ -33,7 +33,7 @@
状态
SetQuery("Select * From #@__member_type");
+ $dsql->SetQuery("SELECT * FROM `#@__member_type`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
diff --git a/src/admin/templets/member_view.htm b/src/admin/templets/member_view.htm
index b7a039de..1a9aecae 100644
--- a/src/admin/templets/member_view.htm
+++ b/src/admin/templets/member_view.htm
@@ -155,7 +155,7 @@
空间信息:
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['homecount']} 页面访问:{$nrow['pagecount']} 留言:{$nrow['feedback']} 好友:{$nrow['friend']} ";
?>
diff --git a/src/admin/templets/mychannel_add.htm b/src/admin/templets/mychannel_add.htm
index c79f2e0d..4885c7d4 100644
--- a/src/admin/templets/mychannel_add.htm
+++ b/src/admin/templets/mychannel_add.htm
@@ -89,7 +89,7 @@
游客
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();
while($row2 = $dsql->GetObject())
{
@@ -103,7 +103,7 @@
许可投稿会员组
SetQuery("Select * from `#@__member_model`");
+ $dsql->SetQuery("SELECT * FROM `#@__member_model`");
$dsql->Execute();
while($row3 = $dsql->GetObject())
{
diff --git a/src/admin/templets/mychannel_edit.htm b/src/admin/templets/mychannel_edit.htm
index d5130c3e..f7fdb861 100644
--- a/src/admin/templets/mychannel_edit.htm
+++ b/src/admin/templets/mychannel_edit.htm
@@ -141,7 +141,7 @@
游客
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();
while($row2 = $dsql->GetObject())
{
@@ -156,7 +156,7 @@
许可投稿会员组
SetQuery("Select * from `#@__member_model`");
+ $dsql->SetQuery("SELECT * FROM `#@__member_model`");
$dsql->Execute();
while($row3 = $dsql->GetObject())
{
diff --git a/src/admin/templets/mytag_add.htm b/src/admin/templets/mytag_add.htm
index 3eb54f46..371695a7 100644
--- a/src/admin/templets/mytag_add.htm
+++ b/src/admin/templets/mytag_add.htm
@@ -64,7 +64,7 @@
- 自定义标记的调用方法:{dede:mytag name='标记名称' ismake='是否含板块代码(yes 或 no)' typeid='栏目id'/} 1、name 标记名称,该项是必须的属性,以下2、3是可选属性;2、ismake 默认是no表示设定的纯HTML代码,yes表示含板块标记的代码;3、typeid表示所属栏目的id,默认为0,表示所有栏目通用的显示内容,在列表和文档模板中,typeid默认是这个列表或文档本身的栏目id
+ 自定义标记的调用方法:{dede:mytag name='标记名称' ismake='是否含板块代码(yes 或 no)' typeid='栏目id'/} 1、name 标记名称,该项是必须的属性,以下2、3是可选属性;2、ismake 默认是no表示设定的纯网页代码,yes表示含板块标记的代码;3、typeid表示所属栏目的id,默认为0,表示所有栏目通用的显示内容,在列表和文档模板中,typeid默认是这个列表或文档本身的栏目id
所属栏目:
diff --git a/src/admin/templets/mytag_tag_guide.htm b/src/admin/templets/mytag_tag_guide.htm
index d8a4c3ae..d05d204f 100644
--- a/src/admin/templets/mytag_tag_guide.htm
+++ b/src/admin/templets/mytag_tag_guide.htm
@@ -115,7 +115,7 @@
";
echo "不限频道 ";
- $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();
while($row = $tl->dsql->GetObject())
{
@@ -127,7 +127,7 @@
";
echo "不限 ";
- $tl->dsql->SetQuery("Select * From #@__arcatt");
+ $tl->dsql->SetQuery("SELECT * FROM `#@__arcatt`");
$tl->dsql->Execute();
while($row = $tl->dsql->GetObject())
{
diff --git a/src/admin/templets/soft_add.htm b/src/admin/templets/soft_add.htm
index ce3ff6b0..4e9090ce 100644
--- a/src/admin/templets/soft_add.htm
+++ b/src/admin/templets/soft_add.htm
@@ -82,7 +82,7 @@
自定义属性:
SetQuery("Select * From `#@__arcatt` order by sortid asc");
+ $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
@@ -319,7 +319,7 @@
SetQuery("Select * from `#@__arcrank` where `rank`>=0 ");
+ $dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank`>=0 ");
$dsql->Execute();
while($row = $dsql->GetArray())
{
diff --git a/src/admin/templets/soft_config.htm b/src/admin/templets/soft_config.htm
index 2ad009e8..1a0b42b2 100644
--- a/src/admin/templets/soft_config.htm
+++ b/src/admin/templets/soft_config.htm
@@ -70,7 +70,7 @@
getUserRank();
- $dsql->SetQuery("Select * from `#@__arcrank` where `rank`>=0 ");
+ $dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank`>=0 ");
$dsql->Execute();
while($nrow = $dsql->GetArray())
{
diff --git a/src/admin/templets/soft_edit.htm b/src/admin/templets/soft_edit.htm
index 2eab452b..b2609810 100644
--- a/src/admin/templets/soft_edit.htm
+++ b/src/admin/templets/soft_edit.htm
@@ -78,7 +78,7 @@
自定义属性:
SetQuery("Select * From `#@__arcatt` order by sortid asc");
+ $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
@@ -311,7 +311,7 @@
SetQuery("Select * from `#@__arcrank` where `rank`>=0 ");
+ $dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank`>=0 ");
$dsql->Execute();
while($row = $dsql->GetArray())
{
diff --git a/src/admin/templets/spec_add.htm b/src/admin/templets/spec_add.htm
index 468767cc..d52c4095 100644
--- a/src/admin/templets/spec_add.htm
+++ b/src/admin/templets/spec_add.htm
@@ -106,7 +106,7 @@
自定义属性:
SetQuery("Select * From `#@__arcatt` order by sortid asc");
+ $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
diff --git a/src/admin/templets/spec_edit.htm b/src/admin/templets/spec_edit.htm
index 06006af7..5e952e9f 100644
--- a/src/admin/templets/spec_edit.htm
+++ b/src/admin/templets/spec_edit.htm
@@ -104,7 +104,7 @@
自定义属性:
SetQuery("Select * From `#@__arcatt` order by sortid asc");
+ $dsql->SetQuery("SELECT * FROM `#@__arcatt` order by sortid asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
diff --git a/src/admin/templets/stepselect_showajax.htm b/src/admin/templets/stepselect_showajax.htm
index f966a3d0..48ed767a 100644
--- a/src/admin/templets/stepselect_showajax.htm
+++ b/src/admin/templets/stepselect_showajax.htm
@@ -1,6 +1,6 @@
GetOne("Select * from `#@__stepselect` where id='$id' ");
+$arr = $dsql->GetOne("SELECT * FROM `#@__stepselect` where id='$id' ");
$sbjs = " onsubmit=\"alert('该分类是系统内置枚举,不允许修改'); return false;\" ";
if ($arr['issystem']==0) $sbjs = '';
?>
@@ -30,7 +30,7 @@ if ($arr['issystem']==0) $sbjs = '';
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");
$options = '';
if ($arr['issign']==0)
@@ -58,8 +58,8 @@ if ($arr['issign']==0)
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 = '';
while($row1 = $dsql->GetArray('out'))
{
diff --git a/src/admin/templets/sys_admin_user_add.htm b/src/admin/templets/sys_admin_user_add.htm
index f3a52116..6621d1d3 100644
--- a/src/admin/templets/sys_admin_user_add.htm
+++ b/src/admin/templets/sys_admin_user_add.htm
@@ -66,7 +66,7 @@
SetQuery("Select * from `#@__admintype` order by `rank` asc");
+ $dsql->SetQuery("SELECT * FROM `#@__admintype` order by `rank` asc");
$dsql->Execute("ut");
while($myrow = $dsql->GetObject("ut"))
{
diff --git a/src/admin/templets/sys_admin_user_edit.htm b/src/admin/templets/sys_admin_user_edit.htm
index 3cbc0e5b..95e92b1d 100644
--- a/src/admin/templets/sys_admin_user_edit.htm
+++ b/src/admin/templets/sys_admin_user_edit.htm
@@ -44,7 +44,7 @@
SetQuery("Select * from `#@__admintype` order by `rank` asc");
+ $dsql->SetQuery("SELECT * FROM `#@__admintype` order by `rank` asc");
$dsql->Execute("ut");
while($myrow = $dsql->GetObject("ut"))
{
diff --git a/src/admin/templets/sys_admin_user_tj.htm b/src/admin/templets/sys_admin_user_tj.htm
index ec213e7a..d35626e0 100644
--- a/src/admin/templets/sys_admin_user_tj.htm
+++ b/src/admin/templets/sys_admin_user_tj.htm
@@ -38,7 +38,7 @@
Execute('me', 'Select * From `#@__admin` order by id asc');
+ $dsql->Execute('me', 'SELECT * FROM `#@__admin` order by id asc');
while( $arr = $dsql->GetArray('me') )
{
echo " 正在加载
";
diff --git a/src/admin/templets/sys_group.htm b/src/admin/templets/sys_group.htm
index 820d1c3e..eff1e215 100644
--- a/src/admin/templets/sys_group.htm
+++ b/src/admin/templets/sys_group.htm
@@ -31,7 +31,7 @@
管理
SetQuery("Select `rank`,typename,`system` From #@__admintype");
+ $dsql->SetQuery("Select `rank`,typename,`system` From `#@__admintype`");
$dsql->Execute();
while($row = $dsql->GetObject())
{
diff --git a/src/admin/templets/sys_group_add.htm b/src/admin/templets/sys_group_add.htm
index d82c6573..1a48f2db 100644
--- a/src/admin/templets/sys_group_add.htm
+++ b/src/admin/templets/sys_group_add.htm
@@ -65,7 +65,7 @@
SetQuery('Select plusname From #@__plus');
+ $dsql->SetQuery('Select plusname From `#@__plus`');
$dsql->Execute();
while($row=$dsql->GetObject()){
echo " {$row->plusname} ";
diff --git a/src/admin/templets/sys_group_edit.htm b/src/admin/templets/sys_group_edit.htm
index df64b606..19303671 100644
--- a/src/admin/templets/sys_group_edit.htm
+++ b/src/admin/templets/sys_group_edit.htm
@@ -74,7 +74,7 @@
SetQuery('SELECT plusname FROM #@__plus');
+ $dsql->SetQuery('SELECT plusname FROM `#@__plus`');
$dsql->Execute();
while($row=$dsql->GetObject()){
echo " plusname}")."> {$row->plusname} ";
diff --git a/src/admin/templets/sys_info.htm b/src/admin/templets/sys_info.htm
index bfd11c2b..4f2895e0 100644
--- a/src/admin/templets/sys_info.htm
+++ b/src/admin/templets/sys_info.htm
@@ -157,7 +157,7 @@
变量名称
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();
$i = 1;
while($row = $dsql->GetArray()) {
diff --git a/src/admin/vote_add.php b/src/admin/vote_add.php
index 67957f0f..22c48d6e 100644
--- a/src/admin/vote_add.php
+++ b/src/admin/vote_add.php
@@ -26,7 +26,7 @@ if ($dopost == "save" && $isarc == 0) {
$voteitems .= "".${"voteitem".$i}." \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)) {
ShowMsg("增加投票失败,请检查数据是否非法", "-1");
exit();
@@ -51,7 +51,7 @@ if ($dopost == "save" && $isarc == 0) {
$voteitems .= "".${"voteitem".$i}." \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)) {
ShowMsg("增加投票失败,请检查数据是否非法", "-1");
exit();
diff --git a/src/apps/diy.php b/src/apps/diy.php
index f3d3928b..a55b694f 100755
--- a/src/apps/diy.php
+++ b/src/apps/diy.php
@@ -35,7 +35,7 @@ if ($action == 'post') {
exit();
}
}
- $diyform = $dsql->getOne("SELECT * from `#@__diyforms` WHERE diyid='$diyid' ");
+ $diyform = $dsql->getOne("SELECT * FROM `#@__diyforms` WHERE diyid='$diyid' ");
if (!is_array($diyform)) {
showmsg('自定义表单不存在', '-1');
exit();
diff --git a/src/static/web/css/admin.css b/src/static/web/css/admin.css
index 52d93bae..6647cd20 100644
--- a/src/static/web/css/admin.css
+++ b/src/static/web/css/admin.css
@@ -514,6 +514,19 @@ span.page-link {
height:20px;
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) {
.modal-dialog {
max-width:520px
diff --git a/src/system/archive/specview.class.php b/src/system/archive/specview.class.php
index 292d46d9..acaaf2ea 100755
--- a/src/system/archive/specview.class.php
+++ b/src/system/archive/specview.class.php
@@ -117,7 +117,7 @@ class SpecView
} else {
$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)) {
$this->TotalResult = $row['dd'];
} else {
diff --git a/src/system/archive/taglist.class.php b/src/system/archive/taglist.class.php
index 53d239ff..716db60b 100755
--- a/src/system/archive/taglist.class.php
+++ b/src/system/archive/taglist.class.php
@@ -66,7 +66,7 @@ class TagList
foreach ($GLOBALS['PubFields'] as $k => $v) $this->Fields[$k] = $v;
//读取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)) {
$msg = "系统无此标签,可能已经移除";
ShowMsg($msg, "-1");
diff --git a/src/system/helpers/string.helper.php b/src/system/helpers/string.helper.php
index d27cbc5b..e680d17b 100755
--- a/src/system/helpers/string.helper.php
+++ b/src/system/helpers/string.helper.php
@@ -195,7 +195,7 @@ if (!function_exists('GetPinyin')) {
}
}
/**
- * 将实体html代码转换成标准html代码(兼容php4)
+ * 将实体网页代码转换成标准网页代码(兼容php4)
*
* @access public
* @param string $str 字符串信息
diff --git a/src/system/taglib/channel.lib.php b/src/system/taglib/channel.lib.php
index 3b9fd193..fb4a45e2 100755
--- a/src/system/taglib/channel.lib.php
+++ b/src/system/taglib/channel.lib.php
@@ -49,10 +49,10 @@ function lib_channel(&$ctag, &$refObj)
if ($type == '' || $type == 'sun') $type = 'son';
if ($innertext == '') $innertext = GetSysTemplets("channel_list.htm");
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') {
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') {
if ($reid == 0) return '';
$sql = "SELECT * FROM `#@__arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line ";
diff --git a/src/system/taglib/help/vote.txt b/src/system/taglib/help/vote.txt
index ac2c517a..7c552f40 100755
--- a/src/system/taglib/help/vote.txt
+++ b/src/system/taglib/help/vote.txt
@@ -8,4 +8,4 @@ tablewidth='100%' 表格宽度
titlebgcolor='#EDEDE2' 投票标题背景色
titlebackground=''
tablebg ='' 投票表格背景色
-为了更方便修改样式,建议在后台->辅助插件->投票管理,直接复制生成的HTML代码来使用
\ No newline at end of file
+为了更方便修改样式,建议在后台->辅助插件->投票管理,直接复制生成的网页代码来使用
\ No newline at end of file
diff --git a/src/theme/plus/car.htm b/src/theme/plus/car.htm
index bb562e86..dc1e7ee5 100644
--- a/src/theme/plus/car.htm
+++ b/src/theme/plus/car.htm
@@ -103,7 +103,7 @@
//Print Page
function printPage(oper) {
if (oper < 10) {
- bdhtml = window.document.body.innerHTML; //获取当前页的html代码
+ bdhtml = window.document.body.innerHTML; //获取当前页的网页代码
sprnstr = ""; //设置打印开始区域
eprnstr = ""; //设置打印结束区域
prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); //从开始代码向后取html
diff --git a/src/theme/plus/flink-add.htm b/src/theme/plus/flink-add.htm
index 41596e31..3883ac5d 100644
--- a/src/theme/plus/flink-add.htm
+++ b/src/theme/plus/flink-add.htm
@@ -52,7 +52,7 @@
SetQuery("select * from #@__flinktype");
+ $dsql->SetQuery("SELECT * FROM `#@__flinktype`");
$dsql->Execute();
while($row=$dsql->GetObject())
{
diff --git a/src/theme/plus/flink-list.htm b/src/theme/plus/flink-list.htm
index 932763d1..bba0a414 100644
--- a/src/theme/plus/flink-list.htm
+++ b/src/theme/plus/flink-list.htm
@@ -28,7 +28,7 @@
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();
$revalue = "";
for($i=1;$i<=$row;$i++)
diff --git a/src/theme/plus/heightsearch.htm b/src/theme/plus/heightsearch.htm
index ee49eb8e..522d189f 100644
--- a/src/theme/plus/heightsearch.htm
+++ b/src/theme/plus/heightsearch.htm
@@ -50,7 +50,7 @@
不限
SetQuery("Select id,typename From #@__channeltype order by id desc");
+ $dsql->SetQuery("Select id,typename From `#@__channeltype` order by id desc");
$dsql->Execute();
while($row = $dsql->GetObject())
{
diff --git a/src/user/album_add.php b/src/user/album_add.php
index 1f61f409..48e598f3 100755
--- a/src/user/album_add.php
+++ b/src/user/album_add.php
@@ -56,7 +56,7 @@ function _SaveArticle(){ }
------------------------------*/
else if ($dopost == 'save') {
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;
$pagepicnum = isset($pagepicnum) && is_numeric($pagepicnum) ? $pagepicnum : 12;
$ddmaxwidth = isset($ddmaxwidth) && is_numeric($ddmaxwidth) ? $ddmaxwidth : 200;
diff --git a/src/user/album_edit.php b/src/user/album_edit.php
index c61e819b..c0278062 100755
--- a/src/user/album_edit.php
+++ b/src/user/album_edit.php
@@ -57,7 +57,7 @@ if (empty($dopost)) {
function _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;
$pagepicnum = isset($pagepicnum) && is_numeric($pagepicnum) ? $pagepicnum : 12;
$ddmaxwidth = isset($ddmaxwidth) && is_numeric($ddmaxwidth) ? $ddmaxwidth : 200;
diff --git a/src/user/archives_add.php b/src/user/archives_add.php
index 82a15cdc..8b1aeb8a 100755
--- a/src/user/archives_add.php
+++ b/src/user/archives_add.php
@@ -22,7 +22,7 @@ $menutype = 'content';
function _ShowForm(){ }
--------------*/
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)) {
ShowMsg('模型不存在', '-1');
exit();
diff --git a/src/user/article_edit.php b/src/user/article_edit.php
index 5e9e315a..85bccef0 100755
--- a/src/user/article_edit.php
+++ b/src/user/article_edit.php
@@ -74,16 +74,7 @@ else if ($dopost == 'save') {
$body = AnalyseHtmlBody($body, $description);
$body = HtmlReplace($body, -1);
//更新数据库的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)) {
ShowMsg("数据保存到数据库主表`#@__archives`时出错,请联系管理员".$dsql->GetError(), "-1");
exit();
diff --git a/src/user/buy_action.php b/src/user/buy_action.php
index a74ddf47..9908b9f9 100755
--- a/src/user/buy_action.php
+++ b/src/user/buy_action.php
@@ -54,7 +54,7 @@ if ($product == 'member') {
$price = $row['money'];
} else if ($product == 'card') {
$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)) {
ShowMsg("无法识别您的订单", 'javascript:;');
exit();
diff --git a/src/user/config.php b/src/user/config.php
index ec5a18fd..608e04b9 100755
--- a/src/user/config.php
+++ b/src/user/config.php
@@ -209,9 +209,9 @@ function countArchives($channelid)
} else {
$_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 {
return FALSE;
}
diff --git a/src/user/content_list.php b/src/user/content_list.php
index f768a607..429c971d 100755
--- a/src/user/content_list.php
+++ b/src/user/content_list.php
@@ -37,7 +37,7 @@ if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
exit();
}
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)) {
$positionname = $row['typename'];
}