Browse Source

1111

master
jianglong 4 years ago
parent
commit
cfcd495d58
  1. 2
      d/js/js/search_news1.js
  2. 2
      d/js/js/search_news2.js
  3. 27
      e/action/ListInfo.php
  4. 183
      e/admin-moban5/AddClass.php
  5. 16
      e/admin-moban5/class/classfun.php
  6. 1
      e/admin-moban5/ecmsclass.php
  7. 6
      e/admin-moban5/member/ListMember.php
  8. 6
      e/class/classfun.php
  9. 50
      e/config/config.php
  10. 29
      e/data/dbcache/class1.php
  11. 2
      e/data/fc/ListClass0.php
  12. 2
      e/data/fc/ListClass1.php
  13. 2
      e/data/fc/ListEnews.php
  14. 2
      e/data/fc/cmsclass.js
  15. 2
      e/data/fc/searchclass.js
  16. 3
      e/data/html/memberform1.php
  17. 16
      e/data/html/memberform2.php
  18. 1
      e/data/language/gb/pub/q_message.php
  19. 20
      e/template/member/register.php
  20. 2
      search/index.html
  21. 360
      test.php

2
d/js/js/search_news1.js

File diff suppressed because one or more lines are too long

2
d/js/js/search_news2.js

File diff suppressed because one or more lines are too long

27
e/action/ListInfo.php

@ -5,6 +5,7 @@ require('../class/functions.php');
require('../class/t_functions.php'); require('../class/t_functions.php');
require('../data/dbcache/class.php'); require('../data/dbcache/class.php');
require LoadLang('pub/fun.php'); require LoadLang('pub/fun.php');
$link=db_connect(); $link=db_connect();
$empire=new mysqlquery(); $empire=new mysqlquery();
eCheckCloseMods('fieldand');//关闭模块 eCheckCloseMods('fieldand');//关闭模块
@ -62,9 +63,28 @@ if($classid)
{ {
$add.=' and '.ReturnClass($class_r[$trueclassid][sonclass]); $add.=' and '.ReturnClass($class_r[$trueclassid][sonclass]);
} }
$cr=$empire->fetch1("select classpagekey,intro,classimg,cgroupid from {$dbtbpre}enewsclass where classid='$trueclassid'"); $cr=$empire->fetch1("select classpagekey,intro,classimg,cgroupid,companygroupid from {$dbtbpre}enewsclass where classid='$trueclassid'");
$isCompany = 0;
if($cr['companygroupid'])
{
$userId= (int)$_COOKIE['lsfmomluserid'];
$usergroupid = 0;
if($userId){
$ccompany=$empire->fetch1("SELECT id FROM www_moban5_cn_ecms_companys WHERE title IN (SELECT company FROM www_moban5_cn_enewsmemberadd WHERE userid='{$userId}')");
if($ccompany){
$usergroupid = $ccompany['id'];
}
}
if(!in_array($usergroupid,explode(",",$cr[companygroupid])))
{
printerror('NotLevelToClass2','history.go(-1)',1);
}else{
$isCompany = 1;
}
}
//权限 //权限
if($cr['cgroupid']) if($cr['cgroupid'] && !$isCompany)
{ {
$mgroupid=(int)getcvar('mlgroupid'); $mgroupid=(int)getcvar('mlgroupid');
if(!strstr($cr[cgroupid],','.$mgroupid.',')) if(!strstr($cr[cgroupid],','.$mgroupid.','))
@ -72,6 +92,8 @@ if($classid)
printerror('NotLevelToClass','history.go(-1)',1); printerror('NotLevelToClass','history.go(-1)',1);
} }
} }
$pagetitle=$class_r[$trueclassid]['classname']; $pagetitle=$class_r[$trueclassid]['classname'];
$pagekey=$cr['classpagekey']; $pagekey=$cr['classpagekey'];
$pagedes=$cr['intro']; $pagedes=$cr['intro'];
@ -230,6 +252,7 @@ if(empty($tempid))
printerror('ErrorUrl','',1); printerror('ErrorUrl','',1);
} }
$tempr=$empire->fetch1("select tempid,temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from ".GetTemptb("enewslisttemp")." where tempid='$tempid'"); $tempr=$empire->fetch1("select tempid,temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from ".GetTemptb("enewslisttemp")." where tempid='$tempid'");
if(empty($tempr[tempid])) if(empty($tempr[tempid]))
{ {
printerror('ErrorUrl','',1); printerror('ErrorUrl','',1);

183
e/admin-moban5/AddClass.php

@ -93,6 +93,7 @@ if($enews=="EditClass"||$copyclass)
$read=""; $read="";
$r=$empire->fetch1("select * from {$dbtbpre}enewsclass where classid='$classid'"); $r=$empire->fetch1("select * from {$dbtbpre}enewsclass where classid='$classid'");
$addr=$empire->fetch1("select * from {$dbtbpre}enewsclassadd where classid='$classid'"); $addr=$empire->fetch1("select * from {$dbtbpre}enewsclassadd where classid='$classid'");
if(!empty($r[bclassid])) if(!empty($r[bclassid]))
{$defaultbclassid="";} {$defaultbclassid="";}
$url="<a href=".$listclasslink.$ecms_hashur['whehref'].">管理栏目</a>&nbsp;>&nbsp;".$thisdo."栏目:".$r[classname]; $url="<a href=".$listclasslink.$ecms_hashur['whehref'].">管理栏目</a>&nbsp;>&nbsp;".$thisdo."栏目:".$r[classname];
@ -301,6 +302,26 @@ while($l_r=$empire->fetch($sql1))
} }
$cgroup.="<input type=checkbox name=cgroupidck[] value='".$l_r[groupid]."'".$cgchecked.">".$l_r[groupname]."&nbsp;".$qgbr; $cgroup.="<input type=checkbox name=cgroupidck[] value='".$l_r[groupid]."'".$cgchecked.">".$l_r[groupname]."&nbsp;".$qgbr;
} }
//获取公司信息
$sql_cs=$empire->query("select id,title from www_moban5_cn_ecms_companys order by id desc");
$companys = [[
"value"=>"",
"text"=> "---请选择---"
]];
while($sql_c=$empire->fetch($sql_cs))
{
$select="";
if(strstr($r[companygroupid],','.$sql_c[id].','))
{
$select=" selected ";
}
$companys[] = [
"value"=>$sql_c[id],
"text"=> $sql_c[title]
];
$companySelect.="<option value='".$sql_c[id]."'".$select.">".$sql_c[title]."</option>";
}
//js模板 //js模板
$jstempsql=$empire->query("select tempid,tempname from ".GetTemptb("enewsjstemp")." order by tempid"); $jstempsql=$empire->query("select tempid,tempname from ".GetTemptb("enewsjstemp")." order by tempid");
while($jstempr=$empire->fetch($jstempsql)) while($jstempr=$empire->fetch($jstempsql))
@ -505,9 +526,146 @@ myfrm.pripath.value=bclass[SelectedBigId][0];
} }
} }
(function() {
selectMultip = {
register: function(id) {
//大致思路是:为下拉选创建一个隐藏的子选项,每次单选之后将单选的值追加到隐藏的子选项中,并将子选项选中显示即可
//全局查找所有标记multip的select
document.querySelectorAll("[multip]").forEach(function(e) {
render(e);
})
},
reload: function(id, data, setData) {
var htm = "";
for(var i = 0; i < data.length; i++) {
htm += '<option value="' + data[i].value + '">' + data[i].text + '</option>'
}
var e = document.getElementById(id);
e.innerHTML = htm;
render(e);
this.setVal(id, setData);
},
setVal: function(id, str) {
var type = Object.prototype.toString.call(str);
switch(type) {
case "[object String]":
document.getElementById(id).val = str;
break;
case "[object Array]":
document.getElementById(id).val = str.toString();
break;
default:
break;
}
},
getVal: function(id) {
return document.getElementById(id).val;
},
}
function render(e) {
e.param = {
arr: [],
valarr: [],
opts: []
};
var choosevalue = "",
op;
for(var i = 0; i < e.length; i++) {
op = e.item(i);
e.param.opts.push(op);
if(op.hasAttribute("choose")) {
if(choosevalue == "") {
choosevalue = op.value
} else {
choosevalue += "," + op.value;
}
}
}
//创建一个隐藏的option标签用来存储多选的值,其中的值为一个数组
var option = document.createElement("option");
option.hidden = true;
e.appendChild(option);
e.removeEventListener("input", selchange);
e.addEventListener("input", selchange);
//重新定义标签基础属性的get和set方法,实现取值和赋值的功能
Object.defineProperty(e, "val", {
get: function() {
return this.querySelector("[hidden]").value;
},
set: function(value) {
e.param.valarr = [];
var valrealarr = value == "" ? [] : value.split(",");
e.param.arr = [];
e.param.opts.filter(function(o) {
o.style = "";
});
if(valrealarr.toString()) {
for(var i = 0; i < valrealarr.length; i++) {
e.param.opts.filter(function(o) {
if(o.value == valrealarr[i]) {
o.style = "color: blue;";
e.param.arr.push(o.text);
e.param.valarr.push(o.value)
}
});
}
this.options[e.length - 1].text = e.param.arr.toString();
this.options[e.length - 1].value = e.param.valarr.toString();
this.options[e.length - 1].selected = true;
} else {
this.options[0].selected = true;
}
},
configurable: true
})
//添加属性choose 此属性添加到option中用来指定默认值
e.val = choosevalue;
//添加属性tip 此属性添加到select标签上
if(e.hasAttribute("tip") && !e.tiped) {
e.tiped = true;
e.insertAdjacentHTML('afterend', '<i style="color: red;font-size: 12px">*可多选</i>');
}
}
function selchange() {
var text = this.options[this.selectedIndex].text;
var value = this.options[this.selectedIndex].value;
this.options[this.selectedIndex].style = "color: blue;";
var ind = this.param.arr.indexOf(text);
if(ind > -1) {
this.param.arr.splice(ind, 1);
this.param.valarr.splice(ind, 1);
this.param.opts.filter(function(o) {
if(o.value == value) {
o.style = "";
}
});
} else {
this.param.arr.push(text);
this.param.valarr.push(value);
}
this.options[this.length - 1].text = this.param.arr.toString();
this.options[this.length - 1].value = this.param.valarr.toString();
if(this.param.arr.length > 0) {
this.options[this.length - 1].selected = true;
} else {
this.options[0].selected = true;
}
}
})();
//检查 //检查
function CheckForm(obj) function CheckForm(obj)
{ {
var companygroupid = selectMultip.getVal("companygroupid")
console.log("1111",companygroupid);
if(obj.classname.value=="") if(obj.classname.value=="")
{ {
alert("请输入栏目名称"); alert("请输入栏目名称");
@ -604,6 +762,8 @@ function EditSmallBdInfo(obj){
window.open('AddNews.php?<?=$ecms_hashur['ehref']?>&enews=EditNews&classid='+r[0]+'&id='+r[1]); window.open('AddNews.php?<?=$ecms_hashur['ehref']?>&enews=EditNews&classid='+r[0]+'&id='+r[1]);
} }
</script> </script>
</head> </head>
<body> <body>
@ -806,11 +966,24 @@ tb1 = new WebFXTabPane( document.getElementById( "TabPane1" ) );
<td> <td>
<?=$cgroup?> </td> <?=$cgroup?> </td>
</tr> </tr>
<tr bgcolor="#FFFFFF">
<td>授权机构</td>
<td height="25"><p>
<select multip name="companygroupid" id="companygroupid">
<?=$companySelect?>
</select>
</p></td>
</tr>
<tr bgcolor="#FFFFFF" id="smallcgtoinfo"> <tr bgcolor="#FFFFFF" id="smallcgtoinfo">
<td height="25" valign="top">&nbsp;</td> <td height="25" valign="top">&nbsp;</td>
<td><input name="cgtoinfo" type="checkbox" id="cgtoinfo" value="1"<?=$r[cgtoinfo]?' checked':''?>> <td><input name="cgtoinfo" type="checkbox" id="cgtoinfo" value="1"<?=$r[cgtoinfo]?' checked':''?>>
访问权限应用于信息<font color="#666666">(选择后信息的查看权限可以不设置)</font></td> 访问权限应用于信息<font color="#666666">(选择后信息的查看权限可以不设置)</font></td>
</tr> </tr>
<tr bgcolor="#FFFFFF"> <tr bgcolor="#FFFFFF">
<td height="25">开启前台投稿</td> <td height="25">开启前台投稿</td>
<td><input type="radio" name="openadd" value="0"<?=$openadd0?>> <td><input type="radio" name="openadd" value="0"<?=$openadd0?>>
@ -834,6 +1007,7 @@ tb1 = new WebFXTabPane( document.getElementById( "TabPane1" ) );
<td height="25"> <td height="25">
<?=$qgroup?> </td> <?=$qgroup?> </td>
</tr> </tr>
<tr bgcolor="#FFFFFF"> <tr bgcolor="#FFFFFF">
<td>投稿生成列表</td> <td>投稿生成列表</td>
<td height="25"><p> <td height="25"><p>
@ -1358,6 +1532,15 @@ tb1 = new WebFXTabPane( document.getElementById( "TabPane1" ) );
</tr> </tr>
</table> </table>
</form> </form>
<script type="text/javascript">
var data = <?php echo json_encode($companys);?>;
selectMultip.register();
//动态渲染
selectMultip.reload("companygroupid", data);
var gss = "<?php echo $r[companygroupid];?>";
console.log(222,gss)
selectMultip.setVal("companygroupid",gss)
</script>
</body> </body>
</html> </html>
<?php <?php

16
e/admin-moban5/class/classfun.php

@ -1351,7 +1351,8 @@ function DoPostClassVar($add){
$add[showclass]=(int)$add[showclass]; $add[showclass]=(int)$add[showclass];
$add[checkqadd]=(int)$add[checkqadd]; $add[checkqadd]=(int)$add[checkqadd];
$add[qaddlist]=(int)$add[qaddlist]; $add[qaddlist]=(int)$add[qaddlist];
$add[qaddgroupid]=DoPostClassQAddGroupid($add[qaddgroupidck]); $add[qaddgroupid]= DoPostClassQAddGroupid($add[qaddgroupidck]);
$add[companygroupid] = $add[companygroupid];
if(!$add[qaddgroupid]) if(!$add[qaddgroupid])
{ {
$add[addinfofen]=0; $add[addinfofen]=0;
@ -2740,12 +2741,17 @@ function SetMoreClass($add,$userid,$username){
{ {
$seting.=",checkqadd='$add[checkqadd]'"; $seting.=",checkqadd='$add[checkqadd]'";
} }
if($add['doqaddgroupid']) if($add['companygroupid'])
{ {
$add[qaddgroupid]=DoPostClassQAddGroupid($add[qaddgroupidck]); $seting.=",companygroupid='$add[companygroupid]'";
$add[qaddgroupid]=eaddslashes($add[qaddgroupid]);
$seting.=",qaddgroupid='$add[qaddgroupid]'";
} }
if($add['doqaddgroupid'])
{
$add[qaddgroupid]=DoPostClassQAddGroupid($add[qaddgroupidck]);
$add[qaddgroupid]=eaddslashes($add[qaddgroupid]);
$seting.=",qaddgroupid='$add[qaddgroupid]'";
}
if($add['doqaddlist']) if($add['doqaddlist'])
{ {
$seting.=",qaddlist='$add[qaddlist]'"; $seting.=",qaddlist='$add[qaddlist]'";

1
e/admin-moban5/ecmsclass.php

@ -58,6 +58,7 @@ elseif($enews=="AddClass")//增加栏目
} }
elseif($enews=="EditClass")//修改栏目 elseif($enews=="EditClass")//修改栏目
{ {
EditClass($_POST,$logininid,$loginin); EditClass($_POST,$logininid,$loginin);
} }
elseif($enews=="DelClass")//删除栏目 elseif($enews=="DelClass")//删除栏目

6
e/admin-moban5/member/ListMember.php

@ -289,7 +289,9 @@ function CheckAll(form)
<td width="2%">&nbsp;</td> <td width="2%">&nbsp;</td>
<td width="4%" height="25"><div align="center">ID</div></td> <td width="4%" height="25"><div align="center">ID</div></td>
<td width="17%" height="25"><div align="center">用户名</div></td> <td width="17%" height="25"><div align="center">用户名</div></td>
<td width="9%"><div align="center">所属机构</div></td>
<td width="9%"><div align="center">会员组</div></td> <td width="9%"><div align="center">会员组</div></td>
<td width="10%"><div align="center">内部组</div></td> <td width="10%"><div align="center">内部组</div></td>
<td width="9%"><div align="center">管理组</div></td> <td width="9%"><div align="center">管理组</div></td>
<td width="4%"><div align="center">审核</div></td> <td width="4%"><div align="center">审核</div></td>
@ -299,6 +301,7 @@ function CheckAll(form)
<td width="16%" height="25"><div align="center">操作</div></td> <td width="16%" height="25"><div align="center">操作</div></td>
</tr> </tr>
<? <?
while($r=$empire->fetch($sql)) while($r=$empire->fetch($sql))
{ {
if(empty($r['checked'])) if(empty($r['checked']))
@ -312,6 +315,7 @@ function CheckAll(form)
{ {
$checked=""; $checked="";
$namefont1=""; $namefont1="";
$namefont2=""; $namefont2="";
$checkedstatus='是'; $checkedstatus='是';
} }
@ -350,6 +354,7 @@ function CheckAll(form)
} }
//编码转换 //编码转换
$m_username=$r['username']; $m_username=$r['username'];
// $m_company=$r['company'];
$email=$r['email']; $email=$r['email'];
?> ?>
<tr bgcolor="ffffff" id=user<?=$r['userid']?>> <tr bgcolor="ffffff" id=user<?=$r['userid']?>>
@ -360,6 +365,7 @@ function CheckAll(form)
<?=$r['userid']?> <?=$r['userid']?>
</div></td> </div></td>
<td height="25"><div align="center"><a href="../../space/?userid=<?=$r['userid']?>" title="查看会员空间" target="_blank"><?=$namefont1?><?=$m_username?><?=$namefont2?></a></div></td> <td height="25"><div align="center"><a href="../../space/?userid=<?=$r['userid']?>" title="查看会员空间" target="_blank"><?=$namefont1?><?=$m_username?><?=$namefont2?></a></div></td>
<!-- <td height="25"><div align="center"><a href="../../space/?userid=--><?//=$r['userid']?><!--" title="查看会员空间" target="_blank">--><?//=$namefont1?><!----><?//=$m_company?><!----><?//=$namefont2?><!--</a></div></td>-->
<td><div align="center"><a href="ListMember.php?sear=1&groupid=<?=$r['groupid']?><?=$ecms_hashur['ehref']?>"><?=$level_r[$r['groupid']][groupname]?></a></div></td> <td><div align="center"><a href="ListMember.php?sear=1&groupid=<?=$r['groupid']?><?=$ecms_hashur['ehref']?>"><?=$level_r[$r['groupid']][groupname]?></a></div></td>
<td><div align="center"><a href="ListMember.php?sear=1&ingid=<?=$r['ingid']?><?=$ecms_hashur['ehref']?>"><?=$migname?></a></div></td> <td><div align="center"><a href="ListMember.php?sear=1&ingid=<?=$r['ingid']?><?=$ecms_hashur['ehref']?>"><?=$migname?></a></div></td>
<td><div align="center"><a href="ListMember.php?sear=1&agid=<?=$r['agid']?><?=$ecms_hashur['ehref']?>" title="<?=$magadminname?>"><?=$magname?></a></div></td> <td><div align="center"><a href="ListMember.php?sear=1&agid=<?=$r['agid']?><?=$ecms_hashur['ehref']?>" title="<?=$magadminname?>"><?=$magname?></a></div></td>

6
e/class/classfun.php

@ -1436,6 +1436,7 @@ function AddWbClass($add,$userid,$username){
//操作权限 //操作权限
CheckLevel($userid,$username,$classid,"class"); CheckLevel($userid,$username,$classid,"class");
$add=DoPostClassVar($add); $add=DoPostClassVar($add);
if(!$add[classname]||!$add[wburl]) if(!$add[classname]||!$add[wburl])
{ {
printerror("EmptyWbClass",""); printerror("EmptyWbClass","");
@ -1843,6 +1844,7 @@ function EditWbClass($add,$userid,$username){
//修改栏目 //修改栏目
function EditClass($add,$userid,$username){ function EditClass($add,$userid,$username){
global $empire,$class_r,$dbtbpre; global $empire,$class_r,$dbtbpre;
//修改外部栏目 //修改外部栏目
if($add[ecmsclasstype]) if($add[ecmsclasstype])
@ -1865,6 +1867,7 @@ function EditClass($add,$userid,$username){
//操作权限 //操作权限
CheckLevel($userid,$username,$classid,"class"); CheckLevel($userid,$username,$classid,"class");
$add=DoPostClassVar($add); $add=DoPostClassVar($add);
$add[oldmodid]=(int)$add[oldmodid]; $add[oldmodid]=(int)$add[oldmodid];
$ecms_fclast=time(); $ecms_fclast=time();
//改变目录 //改变目录
@ -1876,6 +1879,7 @@ function EditClass($add,$userid,$username){
} }
//取得表名 //取得表名
$tabler=GetModTable($add[modid]); $tabler=GetModTable($add[modid]);
$tabler[tid]=(int)$tabler[tid]; $tabler[tid]=(int)$tabler[tid];
//修改大栏目 //修改大栏目
if(!$add[islast]){ if(!$add[islast]){
@ -2092,7 +2096,7 @@ function EditClass($add,$userid,$username){
} }
//文件前缀 //文件前缀
$add[filename_qz]=RepFilenameQz($add[filename_qz]); $add[filename_qz]=RepFilenameQz($add[filename_qz]);
$sql=$empire->query("update {$dbtbpre}enewsclass set classname='$add[classname]',classpath='$classpath',classtype='$add[classtype]',link_num=$add[link_num],lencord=$add[lencord],newstempid=$add[newstempid],listtempid=$add[listtempid],newspath='$add[newspath]',filename=$add[filename],filetype='$add[filetype]',openpl=$add[openpl],openadd=$add[openadd],newline=$add[newline],hotline=$add[hotline],goodline=$add[goodline],classurl='$add[classurl]',groupid=$add[groupid],myorder=$add[myorder],filename_qz='$add[filename_qz]',hotplline=$add[hotplline],modid=$add[modid],checked=$add[checked],firstline=$add[firstline],bname='$add[bname]',searchtempid=$add[searchtempid],tid=$tabler[tid],tbname='$tabler[tbname]',maxnum=$add[maxnum],checkpl=$add[checkpl],down_num=$add[down_num],online_num=$add[online_num],listorder='$add[listorder]',reorder='$add[reorder]',intro='$add[intro]',classimg='$add[classimg]',jstempid=$add[jstempid],addinfofen=$add[addinfofen],listdt=$add[listdt],showclass=$add[showclass],showdt=$add[showdt],checkqadd=$add[checkqadd],qaddlist=$add[qaddlist],qaddgroupid='$add[qaddgroupid]',qaddshowkey=$add[qaddshowkey],adminqinfo=$add[adminqinfo],doctime=$add[doctime],classpagekey='$add[classpagekey]',dtlisttempid='$add[dtlisttempid]',classtempid='$add[classtempid]',nreclass=$add[nreclass],nreinfo=$add[nreinfo],nrejs=$add[nrejs],nottobq=$add[nottobq],ipath='$add[ipath]',addreinfo=$add[addreinfo],haddlist=$add[haddlist],sametitle=$add[sametitle],definfovoteid=$add[definfovoteid],wburl='',qeditchecked=$add[qeditchecked],wapstyleid='$add[wapstyleid]',repreinfo='$add[repreinfo]',pltempid='$add[pltempid]',cgroupid='$add[cgroupid]',yhid='$add[yhid]',wfid='$add[wfid]',cgtoinfo='$add[cgtoinfo]',bdinfoid='$add[smallbdinfoid]',repagenum='$add[repagenum]',keycid='$add[keycid]',oneinfo='$add[oneinfo]',addsql='$add[addsql]',wapislist='$add[wapislist]',fclast='$ecms_fclast'".$change." where classid='$add[classid]'"); $sql=$empire->query("update {$dbtbpre}enewsclass set classname='$add[classname]',classpath='$classpath',classtype='$add[classtype]',link_num=$add[link_num],lencord=$add[lencord],newstempid=$add[newstempid],listtempid=$add[listtempid],newspath='$add[newspath]',filename=$add[filename],filetype='$add[filetype]',openpl=$add[openpl],openadd=$add[openadd],newline=$add[newline],hotline=$add[hotline],goodline=$add[goodline],classurl='$add[classurl]',groupid=$add[groupid],myorder=$add[myorder],filename_qz='$add[filename_qz]',hotplline=$add[hotplline],modid=$add[modid],checked=$add[checked],firstline=$add[firstline],bname='$add[bname]',searchtempid=$add[searchtempid],tid=$tabler[tid],tbname='$tabler[tbname]',maxnum=$add[maxnum],checkpl=$add[checkpl],down_num=$add[down_num],online_num=$add[online_num],listorder='$add[listorder]',reorder='$add[reorder]',intro='$add[intro]',classimg='$add[classimg]',jstempid=$add[jstempid],addinfofen=$add[addinfofen],listdt=$add[listdt],showclass=$add[showclass],showdt=$add[showdt],checkqadd=$add[checkqadd],qaddlist=$add[qaddlist],qaddgroupid='$add[qaddgroupid]',qaddshowkey=$add[qaddshowkey],adminqinfo=$add[adminqinfo],doctime=$add[doctime],classpagekey='$add[classpagekey]',dtlisttempid='$add[dtlisttempid]',classtempid='$add[classtempid]',nreclass=$add[nreclass],nreinfo=$add[nreinfo],nrejs=$add[nrejs],nottobq=$add[nottobq],ipath='$add[ipath]',addreinfo=$add[addreinfo],haddlist=$add[haddlist],sametitle=$add[sametitle],definfovoteid=$add[definfovoteid],wburl='',qeditchecked=$add[qeditchecked],wapstyleid='$add[wapstyleid]',repreinfo='$add[repreinfo]',pltempid='$add[pltempid]',cgroupid='$add[cgroupid]',yhid='$add[yhid]',wfid='$add[wfid]',cgtoinfo='$add[cgtoinfo]',bdinfoid='$add[smallbdinfoid]',repagenum='$add[repagenum]',keycid='$add[keycid]',oneinfo='$add[oneinfo]',addsql='$add[addsql]',wapislist='$add[wapislist]',fclast='$ecms_fclast',companygroupid='$add[companygroupid]' ".$change." where classid='$add[classid]'");
//副表 //副表
$ret_cr=ReturnClassAddF($add,1); $ret_cr=ReturnClassAddF($add,1);
$empire->query("update {$dbtbpre}enewsclassadd set classtext='".eaddslashes2($add[classtext])."',eclasspagetext='$add[eclasspagetext]'".$ret_cr[0]." where classid='$add[classid]'"); $empire->query("update {$dbtbpre}enewsclassadd set classtext='".eaddslashes2($add[classtext])."',eclasspagetext='$add[eclasspagetext]'".$ret_cr[0]." where classid='$add[classid]'");

50
e/config/config.php

@ -446,6 +446,10 @@ $etable_r['ppt']=Array('deftb'=>'1',
'yhid'=>0, 'yhid'=>0,
'intb'=>0, 'intb'=>0,
'mid'=>9); 'mid'=>9);
$etable_r['companys']=Array('deftb'=>'1',
'yhid'=>0,
'intb'=>0,
'mid'=>18);
$emod_r=array(); $emod_r=array();
@ -1231,6 +1235,52 @@ $emod_r[17]=Array('mid'=>17,
'qmeditfun'=>'', 'qmeditfun'=>'',
'tid'=>9, 'tid'=>9,
'tbname'=>'ppt'); 'tbname'=>'ppt');
$emod_r[18]=Array('mid'=>18,
'mname'=>'机构信息表',
'qmname'=>'机构',
'defaulttb'=>0,
'datatbs'=>',1,',
'deftb'=>'1',
'enter'=>',title,special.field,titlepic,newstime,',
'qenter'=>',',
'listtempf'=>',',
'tempf'=>',',
'mustqenterf'=>',title,',
'listandf'=>'',
'setandf'=>0,
'searchvar'=>'',
'cj'=>',',
'canaddf'=>',title,titlepic,newstime,',
'caneditf'=>',title,titlepic,newstime,',
'tbmainf'=>',newstime,titlepic,title,',
'tbdataf'=>',',
'tobrf'=>',',
'dohtmlf'=>',',
'checkboxf'=>',',
'savetxtf'=>'',
'editorf'=>',',
'ubbeditorf'=>',',
'pagef'=>'',
'smalltextf'=>',',
'filef'=>',',
'imgf'=>',titlepic,',
'flashf'=>',',
'linkfields'=>'|',
'morevaluef'=>'|',
'onlyf'=>',',
'adddofunf'=>'||',
'editdofunf'=>'||',
'qadddofunf'=>'||',
'qeditdofunf'=>'||',
'definfovoteid'=>0,
'orderf'=>'',
'sonclass'=>'',
'maddfun'=>'',
'meditfun'=>'',
'qmaddfun'=>'',
'qmeditfun'=>'',
'tid'=>13,
'tbname'=>'companys');
//-------EmpireCMS.Public.Cache------- //-------EmpireCMS.Public.Cache-------

29
e/data/dbcache/class1.php

@ -18,6 +18,33 @@ $class_r[1]=Array('classid'=>1,
'reorder'=>'newstime DESC', 'reorder'=>'newstime DESC',
'listtempid'=>18, 'listtempid'=>18,
'dtlisttempid'=>18); 'dtlisttempid'=>18);
$class_r[192]=Array('classid'=>192,
'bclassid'=>0,
'classname'=>'机构列表',
'sonclass'=>'',
'featherclass'=>'',
'islast'=>1,
'classpath'=>'jigouliebiao',
'classtype'=>'.html',
'down_num'=>2,
'online_num'=>2,
'islist'=>0,
'tid'=>13,
'tbname'=>'companys',
'modid'=>18,
'lencord'=>25,'link_num'=>10,
'newstempid'=>1,
'listtempid'=>1,
'newspath'=>'Y-m-d',
'filetype'=>'.html',
'openpl'=>1,'openadd'=>1,
'checked'=>1,
'bname'=>'机构列表',
'reorder'=>'newstime DESC',
'dtlisttempid'=>1);
$class_r[5]=Array('classid'=>5, $class_r[5]=Array('classid'=>5,
'bclassid'=>190, 'bclassid'=>190,
'classname'=>'语文', 'classname'=>'语文',
@ -25,7 +52,7 @@ $class_r[5]=Array('classid'=>5,
'featherclass'=>'|189|190|', 'featherclass'=>'|189|190|',
'islast'=>1, 'islast'=>1,
'classpath'=>'pdf/nine/yuwen', 'classpath'=>'pdf/nine/yuwen',
'classtype'=>'.html', 'classtype'=>'.php',
'down_num'=>2, 'down_num'=>2,
'online_num'=>2, 'online_num'=>2,

2
e/data/fc/ListClass0.php

File diff suppressed because one or more lines are too long

2
e/data/fc/ListClass1.php

File diff suppressed because one or more lines are too long

2
e/data/fc/ListEnews.php

File diff suppressed because one or more lines are too long

2
e/data/fc/cmsclass.js

File diff suppressed because one or more lines are too long

2
e/data/fc/searchclass.js

File diff suppressed because one or more lines are too long

3
e/data/html/memberform1.php

@ -1,7 +1,8 @@
<?php <?php
if(!defined('InEmpireCMS')) if(!defined('InEmpireCMS'))
{exit();} {exit();}
?><table width='100%' align='center' cellpadding=3 cellspacing=1 bgcolor='#DBEAF5'><tr><td width='16%' height=25 bgcolor='ffffff'>真实姓名</td><td bgcolor='ffffff'> ?><table width='100%' align='center' cellpadding=3 cellspacing=1 bgcolor='#DBEAF5'><tr><td width='16%' height=25 bgcolor='ffffff'>所属机构</td><td bgcolor='ffffff'><input name="company" type="text" id="company" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[company]))?>" size="38">
</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>真实姓名</td><td bgcolor='ffffff'>
<input name="truename" type="text" id="truename" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[truename]))?>"> <input name="truename" type="text" id="truename" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[truename]))?>">
</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>联系电话</td><td bgcolor='ffffff'><input name="mycall" type="text" id="mycall" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[mycall]))?>"> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>联系电话</td><td bgcolor='ffffff'><input name="mycall" type="text" id="mycall" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[mycall]))?>">
</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>手机</td><td bgcolor='ffffff'><input name="phone" type="text" id="phone" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[phone]))?>"> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>手机</td><td bgcolor='ffffff'><input name="phone" type="text" id="phone" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[phone]))?>">

16
e/data/html/memberform2.php

@ -1,22 +1,20 @@
<?php <?php
if(!defined('InEmpireCMS')) if(!defined('InEmpireCMS'))
{exit();} {exit();}
?><table width='100%' align='center' cellpadding=3 cellspacing=1 bgcolor='#DBEAF5'><tr><td width='25%' height=25 bgcolor='ffffff'>公司名称</td><td bgcolor='ffffff'><input name="company" type="text" id="company" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[company]))?>" size="38"> ?><table width='100%' align='center' cellpadding=3 cellspacing=1 bgcolor='#DBEAF5'><tr><td width='16%' height=25 bgcolor='ffffff'>机构名称</td><td bgcolor='ffffff'><input name="company" type="text" id="company" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[company]))?>" size="38">
(*)</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>联系人</td><td bgcolor='ffffff'> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>联系人</td><td bgcolor='ffffff'>
<input name="truename" type="text" id="truename" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[truename]))?>"> <input name="truename" type="text" id="truename" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[truename]))?>">
(*)</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>联系电话</td><td bgcolor='ffffff'><input name="mycall" type="text" id="mycall" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[mycall]))?>"> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>联系电话</td><td bgcolor='ffffff'><input name="mycall" type="text" id="mycall" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[mycall]))?>">
(*)</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>传真</td><td bgcolor='ffffff'> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>传真</td><td bgcolor='ffffff'>
<input name="fax" type="text" id="fax" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[fax]))?>"> <input name="fax" type="text" id="fax" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[fax]))?>">
</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>手机</td><td bgcolor='ffffff'><input name="phone" type="text" id="phone" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[phone]))?>"> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>手机</td><td bgcolor='ffffff'><input name="phone" type="text" id="phone" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[phone]))?>">
</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>QQ号码</td><td bgcolor='ffffff'><input name="oicq" type="text" id="oicq" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[oicq]))?>"> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>QQ号码</td><td bgcolor='ffffff'><input name="oicq" type="text" id="oicq" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[oicq]))?>">
</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>MSN</td><td bgcolor='ffffff'><input name="msn" type="text" id="msn" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[msn]))?>"> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>MSN</td><td bgcolor='ffffff'><input name="msn" type="text" id="msn" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[msn]))?>">
</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>网址</td><td bgcolor='ffffff'> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>网址</td><td bgcolor='ffffff'>
<input name="homepage" type="text" id="homepage" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[homepage]))?>"> <input name="homepage" type="text" id="homepage" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[homepage]))?>">
</td></tr> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>会员头像</td><td bgcolor='ffffff'>
<tr><td width='16%' height=25 bgcolor='ffffff'>会员头像</td><td bgcolor='ffffff'>
<input name="userpic" type="text" id="userpic" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[userpic]))?>" size=""> <input name="userpic" type="text" id="userpic" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[userpic]))?>" size="">
</td></tr> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>联系地址</td><td bgcolor='ffffff'><input name="address" type="text" id="address" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[address]))?>" size="50">
<tr><td width='16%' height=25 bgcolor='ffffff'>联系地址</td><td bgcolor='ffffff'><input name="address" type="text" id="address" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[address]))?>" size="50"> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>邮编</td><td bgcolor='ffffff'><input name="zip" type="text" id="zip" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[zip]))?>" size="8">
&nbsp;邮编: <input name="zip" type="text" id="zip" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($addr[zip]))?>" size="8">
</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>公司介绍</td><td bgcolor='ffffff'><textarea name="saytext" cols="65" rows="10" id="saytext"><?=$ecmsfirstpost==1?"":stripSlashes($addr[saytext])?></textarea> </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>公司介绍</td><td bgcolor='ffffff'><textarea name="saytext" cols="65" rows="10" id="saytext"><?=$ecmsfirstpost==1?"":stripSlashes($addr[saytext])?></textarea>
</td></tr></table> </td></tr></table>

1
e/data/language/gb/pub/q_message.php

@ -82,6 +82,7 @@ $qmessage_r=array(
'ReDigg'=>'您已提交过', 'ReDigg'=>'您已提交过',
'NotOpenFBFile'=>'系统未开启附件上传', 'NotOpenFBFile'=>'系统未开启附件上传',
'NotLevelToClass'=>'您所在的会员组没有权限访问此栏目', 'NotLevelToClass'=>'您所在的会员组没有权限访问此栏目',
'NotLevelToClass2'=>'您所在的机构没有权限访问此栏目',
'ThisTimeCloseDo'=>'本时间段内不允许使用此操作', 'ThisTimeCloseDo'=>'本时间段内不允许使用此操作',
'NotOpenMemberConnect'=>'网站没有开启外部登录', 'NotOpenMemberConnect'=>'网站没有开启外部登录',

20
e/template/member/register.php

@ -31,7 +31,7 @@ require(ECMS_PATH.'e/template/incfile/header.php');
<a href="/e/member/login/" class='l-qq'><span>账号登录</span></a> <a href="/e/member/login/" class='l-qq'><span>账号登录</span></a>
<a href="/e/member/register/?groupid=1" class='l-wx'><span>新用户注册</span></a> <a href="/e/member/register/?groupid=1" class='l-wx'><span>新用户注册</span></a>
<a href="/about/gvrf" target="_blank" class='l-deal'><input type="checkbox" name="yonghuxieyi" checked="checked">我已阅读并接受《用户协议》</a> <a href="/about/gvrf" target="_blank" class='l-deal'><input type="checkbox" name="yonghuxieyi" checked="checked">我已阅读并接受《用户协议》</a>
<div class="login-tips">QQ和微信是两个独立账号,账号信息不互通</div> <!-- <div class="login-tips">QQ和微信是两个独立账号,账号信息不互通</div>-->
</div> </div>
<?}?> <?}?>
<!-- 用户立即加入vip --> <!-- 用户立即加入vip -->
@ -83,12 +83,17 @@ require(ECMS_PATH.'e/template/incfile/header.php');
<div> <span class="title">邮箱:</span> <div> <span class="title">邮箱:</span>
<input class="form-control text" name='email' type='text' id='email' value="请填写真实邮箱,验证激活账号" onfocus="if(value=='请填写真实邮箱,验证激活账号') {value=''}" onblur="if (value=='') {value='请填写真实邮箱,验证激活账号'}"> <input class="form-control text" name='email' type='text' id='email' value="请填写真实邮箱,验证激活账号" onfocus="if(value=='请填写真实邮箱,验证激活账号') {value=''}" onblur="if (value=='') {value='请填写真实邮箱,验证激活账号'}">
</div> </div>
<div> <span class="title">所属机构:</span>
<input class="form-control text" name='company' type='text' id='company' value="请输入机构名" onfocus="if(value=='请输入机构名') {value=''}" onblur="if (value=='') {value='请输入机构名'}">
</div>
<div> <span class="title">密码:</span> <div> <span class="title">密码:</span>
<input class="form-control text" name='password' type='password' id='password'> <input class="form-control text" name='password' type='password' id='password'>
</div> </div>
<div> <span class="title">确认密码:</span> <div> <span class="title">确认密码:</span>
<input class="form-control text" name='repassword' type='password' id='repassword'> <input class="form-control text" name='repassword' type='password' id='repassword'>
</div> </div>
<input name="groupid" type="hidden" id="groupid" value="<?=$groupid?>"> <input name="groupid" type="hidden" id="groupid" value="<?=$groupid?>">
<input name="tobind" type="hidden" id="tobind" value="<?=$tobind?>"> <input name="tobind" type="hidden" id="tobind" value="<?=$tobind?>">
<input style="margin-top:30px;" class="btn btn-danger register-now" type='submit' name='Submit' value="立即注册"> <input style="margin-top:30px;" class="btn btn-danger register-now" type='submit' name='Submit' value="立即注册">
@ -135,12 +140,13 @@ require(ECMS_PATH.'e/template/incfile/header.php');
</style> </style>
<div class="regist-process-register-right fr"> <div class="regist-process-register-right fr">
<h2 class="title">我已注册账号</h2> <h2 class="title">我已注册账号</h2>
<a class="btn btn-info login-now" href="/e/member/login/">立即登录</a> <span class="other-account" style="display:block;">第三方账号快捷登录</span> <a class="btn btn-info login-now" href="/e/member/login/">立即登录</a>
<div class="login-others zc-quick" style="padding-top:0px;text-align:left;display:block;"> <!-- <span class="other-account" style="display:block;">第三方账号快捷登录</span>-->
<ul> <!-- <div class="login-others zc-quick" style="padding-top:0px;text-align:left;display:block;">-->
<li class="qq"><a href="/e/memberconnect/?apptype=qq" target="_blank"><em></em>用QQ账号登录</a></li> <!-- <ul>-->
</ul> <!-- <li class="qq"><a href="/e/memberconnect/?apptype=qq" target="_blank"><em></em>用QQ账号登录</a></li>-->
</div> <!-- </ul>-->
<!-- </div>-->
</div> </div>
</div> </div>
</div> </div>

2
search/index.html

File diff suppressed because one or more lines are too long

360
test.php

@ -1,5 +1,4 @@
<? <?
$userid=intval(getcvar('mluserid'));//登陆用户ID $userid=intval(getcvar('mluserid'));//登陆用户ID
$username=RepPostVar(getcvar('mlusername'));//登陆用户 $username=RepPostVar(getcvar('mlusername'));//登陆用户
$myrnd=RepPostVar(getcvar('mlrnd')); $myrnd=RepPostVar(getcvar('mlrnd'));
@ -23,33 +22,37 @@ if ($userid){
} }
$classid=$GLOBALS[navclassid]; $classid=$GLOBALS[navclassid];
$fr=explode('|',$class_r[$classid][featherclass]); $fengge=(int)$_GET[fengge];
$bclassid=$fr[1]?$fr[1]:$classid; $orderby=(int)$_GET['orderby'];
$page=(int)$_GET['page'];
$key=RepPostVar($_GET['title']);
if (!$key){$key='';}
$bclassid=$class_r[$GLOBALS[navclassid]][bclassid];
$cr=$empire->fetch1("select classname,bname,classpath from {$dbtbpre}enewsclass where classid='".$classid."' limit 1"); $cr=$empire->fetch1("select classname,bname,classpath from {$dbtbpre}enewsclass where classid='".$classid."' limit 1");
$classname=$cr['classname']; $classname=$cr['classname'];
$bname=$cr['bname']; $bname=$cr['bname'];
$ip=$userid; $fr=explode('|',$class_r[$classid][featherclass]);
$ip=str_replace(',','',$ip); $bclassid=$fr[1]?$fr[1]:$classid;
$ip=RepPostVar($ip); $bclassids=$fr[2]?$fr[2]:$classid;
$ipr=$empire->fetch1("select classid,ips from {$dbtbpre}enewsdiggips where id='$navinfor[id]' and classid='$classid' limit 1");
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>[!--title--]——[!--class.name--]_<?=$public_r[sitename]?></title> <title><?=$key?>[!--class.name--]_动态<?=$key?>[!--class.name--]素材<?if ($page){?>_第<?=($page+1)?><?}?>_<?=$public_r[sitename]?></title>
<meta name="keywords" content="[!--title--]" /> <meta name="keywords" content="<?=$public_r[sitename]?>提供更专业的分类查询" />
<meta name="description" content="[!--title--]" /> <meta name="description" content="<?=$public_r[sitename]?>提供精品<?=$key?>[!--class.name--]视频模板下载,时下流行精美的<?=$key?>[!--class.name--]视频模板尽在<?=$public_r[sitename]?>,使用简单,直接替换文字图片即可。" />
<link rel="stylesheet" href="/common/css/new-common-v1.2.css" /> <link rel="stylesheet" href="/common/css/new-common-v1.2.css" />
<link rel="stylesheet" href="/common/css/alert_v1.63.css" /> <link rel="stylesheet" href="/common/css/alert_v1.63.css" />
<link rel="stylesheet" href="/detail/css/new-details.v1.2.css" /> <link rel="stylesheet" href="/video/css/video_v1.css" />
<link rel="stylesheet" href="/catage/css/new-catage-v1.0.css" />
<script type="text/javascript"> <script type="text/javascript">
var now=new Date(); var now=new Date();
var startTime=now.getTime(); var startTime=now.getTime();
var isLogin = <?if (!$userid){?>false<?}else{?>true<?}?>; ; var isLogin = <?if (!$userid){?>false<?}else{?>true<?}?>; ;
var isvip = 0; var isvip = 0;
var code = "4"; var code = "2";
var exetime = "0.160"; var exetime = "0.004";
var istuisong = 1; var istuisong = 1;
@ -57,213 +60,182 @@ $ipr=$empire->fetch1("select classid,ips from {$dbtbpre}enewsdiggips where id='$
var uid = <?=$userid?>; var uid = <?=$userid?>;
var click_num = 0; var click_num = 0;
</script> </script>
<style type="text/css">
.middle .m-r .mould1 .d-print {
margin: 18px auto 18px;
width: 300px;
height: 55px;
border-radius: 2px;
background: #6489e4;
color: #fff;
font-size: 16px;
line-height: 55px;
cursor: pointer;
}
.middle .m-r .mould1 .d-print i {
display: inline-block;
margin-left: -16px;
width: 47px;
height: 40px;
background: url(../../common/image/common_new.png) 0 -446px no-repeat;
vertical-align: -8px;
}
</style>
</head> </head>
<body> <body>
[!--temp.vip--] [!--temp.header--]
<!--中部的东西--> <!--中部的东西-->
<div class='headersearch'>
<div class='d-daoh'> <div class='c-search' id="ca-search">
<div class='wlimit'> <div class='wlimit'>
<span> <div class="search">
<a href="/">首页</a> <div class='s-box'>
> <a target="_blank" href="/list/<?=$bclassid?>-0-0-0-0.html">尖子班培训</a> <div class='searchtype'>
> <a target="_blank" href="/list/[!--classid--]-0-0-0-0.html">[!--class.name--]</a> <span>搜索</span>
> <h1 style="font-weight:normal;display:inline-block;">[!--title--]</h1> <em></em>
</span> </div>
<div class='sline'></div>
<input id="keyword" type="text" key-type="<?=$bclassid?>" value="<?if ($key){?><?=$key?><?}?>" autocomplete="off" name="search" class='i-search' placeholder="搜索视频模板">
</div>
<a class='s-niu search-btn' href="javascript:;" key-type="<?=$bclassid?>"></a>
<div id="dropdown-box" class="hot-search" style="display:none;"></div>
</div>
</div>
</div> </div>
</div> </div>
<!--搜索下拉浮动start-->
<div class='headerdiv headercatage'>
<div class='header'>
<div class='wlimit'>
<div class='navs mr0'>
<a class='logo' target="_blank" alt="<?=$public_r[sitename]?>" href="/"></a>
<div class='allfenl'>
<a href="/" target="_blank" class='kuai'>首页</a>
<div class='kuai'>全部分类
<em></em>
<ul>
[e:loop={"select classid,classname,islast from {$dbtbpre}enewsclass where bclassid='0' and showclass=0 order by myorder,classid ASC",0,24,0}]
<li><a href="/list/<?=$bqr[classid]?>.html" target="_blank"><?=$bqr[classname]?></a></li>
[/e:loop]
</ul>
</div>
<div class='middle'> <div id='searchdiv'>
<div class='wlimit'> <div class="search c-search" id="cd-search-float">
<div class='m-l' swf = "1" height="5346"> <div class="s-box">
<div class='opacity zezhao-t'><?php echo $navinfor['title'];?></div> <input style="display:block;" value="<?if ($key){?><?=$key?><?}?>" type="text" id="keyword-float" key-type="<?=$bclassid?>" autocomplete="off" name="search" class="i-search" placeholder="搜索视频模板">
<div class='opacity zezhao-l'></div> </div>
<div class='opacity zezhao-r'></div> <div class="s-niu search-btn" key-type="<?=$bclassid?>"><em></em></div>
<div class='opacity zezhao-b'></div> <div id="dropdown-box-float" class="hot-search" style="display: none;"></div>
<?if ($navinfor['swf']){?>
<object id="presentation" width="780" height="487" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="middle">
<param name="allowScriptAccess" value="sameDomain">
<param name="wmode" value="transparent">
<param name="movie" value="[!--swf--]">
<param name="quality" value="high"><param name="bgcolor" value="#ffffff">
<param name="allowFullScreen" value="true">
<embed src="[!--swf--]" quality="high" bgcolor="#ffffff" width="780" height="487" name="presentation" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" allowfullscreen="true" wmode="transparent">
</object>
<?}?>
<?
$j=0;
$pd_path=explode("::::::",$navinfor['downpath']);
$pd_record=explode("\\r\\n",$navinfor[morepic]);
for($i=0;$i<count($pd_record);$i++)
{
$j=$i+1;
$pd_field=explode("::::::",$pd_record[$i]);
if ($j==1){
?>
<img src="<?=$pd_field[1]?>">
<?}else{?>
<img class="lazy" src="/common/image/background.png" data-original="<?=$pd_field[1]?>">
<?}}?>
<!-- <iframe width="100%" height=1000 seamless scrolling="yes" src="/common/pdfjs/web/viewer.html?file=--><?php // echo $pd_path[1];?><!--"></iframe>-->
<div id="canvas" style="margin-top: 20px"></div>
<iframe id="printIframe" src="<?php echo $pd_path[1];?>" type="application/pdf" style="display:none;"></iframe>
<p class="picjianjie">
本作品内容为[!--title--]欢迎打印,查看<?=$public_r[sitename]?>
</p>
</div>
<div class='m-r'>
<div class='piao'>
<div class='mould1'>
<div did="[!--id--]" cid="[!--classid--]" url="<?php echo $pd_path[1];?>" class='d-print'><i></i>打印</div>
<?
$newsnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsfava where id='".$navinfor['id']."' and classid='".$classid."' and userid='".$userid."'");
if ($newsnum){
?>
<div id="[!--id--]" cid="[!--classid--]" class='d-coll' isfrom="1" issc="1">
<i class='chose'></i>
<span>已收藏</span>
</div>
<?}else{?>
<div id="[!--id--]" cid="[!--classid--]" class='d-coll' isfrom="1" issc="0">
<i ></i>
<span>收藏</span>
</div> </div>
<?}?>
<div class='d-msg'>
<span class='d-view' title="点赞"><i pid="[!--id--]" cid="[!--classid--]" class='down-num dianzan<?if(strstr($ipr['ips'],','.$ip.',')){?> yjdz<?}?>'></i><span class='dzs'>[!--diggtop--]</span><span class='jiayi'>+1</span></span>
<div class='d-view' title="浏览"><i class='view-num'></i>[!--onclick--]</div>
<div class='d-view' title="收藏"><i class='coll-num'></i>[!--fav--]</div>
</div> </div>
</div> </div>
<div class='mould2' >
<ul>
<li> <div class='login'>
<div class='m-l2'>格式:</div> <?if (!$lggroupid){?>
<div class='m-r2'>[!--geshi--]</div> <!-- 未登录 -->
</li> <div name="注册" class='regist'>注册</div>
<li> <div name="登录" class='regist-lg'>请登录</div>
<div class='m-l2'>页数: </div> <a style="display:none;" href="/list/105.html" class='vip-int'><div class='diamond'></div></a>
<div class='m-r2'>[!--yeshu--]</div> <?}else{
</li> $userr=sys_ShowMemberInfo($lguserid,'');
<li> ?>
<div class='m-l2'>提供者: </div> <div class='s-regist'>
<div class='m-r2'>[!--tgz--]</div> <a href="/e/member/cp/" target="_blank" class='a-regist'><img width="" alt="用户头像" class="lazy-nodelay" data-original="<?=$userr[userpic]?$userr[userpic]:'/e/data/images/nouserpic.gif'?>" src="/common/image/background.png"></a>
</li>
</ul> <div class='u-detail'>
<div class='name'>
<span class="zhanghao">账号:</span><span class="yongname"><?=$userr[username]?></span><span class="yongid">(ID:<?=$userr[userid]?>)</span><i style="margin-left:2px;" class='yongbiao i-d3'></i>
</div>
<a class='vip-time'><?=$level_r[$userr[groupid]][groupname]?></a>
<div class='u-detail1 border1'>
<a href="/e/member/fava/"><div class='u-down'>我的收藏</div></a>
<a href="/e/member/downbak/"><div class='u-coll'>我的下载</div></a>
</div>
<a href="/e/member/doaction.php?enews=exit" class='loginout'>[ 退出登录 ]</a>
</div>
</div>
<a href="/e/member/buygroup/" class='vip-int'><div class='uptovip'></div></a>
<?}?>
</div> </div>
<div class='mould3'></div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!--搜索下拉浮动end-->
<div class="location wlimit">
<span>当前位置:</span>
<a target="_blank" href="/"><?=$public_r[sitename]?></a> <span>></span> <a href="/list/<?=$bclassid?>-<?=$fengge?>-<?=$orderby?>-<?=$key?>-0.html">尖子生教学</a><span> > </span><?if ($bclassid<>$classid){?><h1><a href="/list/<?=$classid?>-<?=$fengge?>-<?=$orderby?>-<?=$key?>-0.html"><?=user_ppt($fengge)?>[!--class.name--]</a></h1><?}?></div>
<div class='type'>
<div class='wlimit white'>
<div class='type1' >
<div class='all-type'>分类:</div>
<div class="uli">
[e:loop={"select classid,classname,islast from {$dbtbpre}enewsclass where bclassid='0' and showclass=0 order by myorder,classid ASC",0,24,0}]
<a rel="nofollow"<?if ($bclassid==$bqr[classid]){?> class="current"<?}?> key-type="<?=$bqr[classid]?>" href="/list/<?=$bqr[classid]?>-0-0-0-0.html" ><?=$bqr[classname]?></a>
[/e:loop]
</div>
</div>
<div class='type1'>
<div class='all-type'>年级:</div>
<div class="uli">
[!--temp.footer--] <a<?if ($bclassid==$classid){?> class="current"<?}?> href="/list/<?=$bclassid?>-<?=$fengge?>-<?=$orderby?>-<?=$key?>-0.html">全部</a>
<script type='text/javascript' src='/common/pdfjs/build/pdf.js'></script>
<script src="/index/js/jquery-1.7.1.min.js"></script>
<script src="/common/js/lazyload.min.js"></script>
<script src="/common/js/common-v2.0.js"></script>
<script src="/lib/store.legacy.min.js"></script> [e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid='$bclassid' and showclass=0 order by myorder asc,classid asc",0,24,0}]
<script src="/detail/js/new-detail-v1.1.js"></script>
<script type="text/javascript">
$(".d-print").click(function (){
$("#printIframe")[0].contentWindow.print();
return false;
});
//创建canvas元素
function createPdfContainer(id, className) {
var pdfContainer = document.getElementById('canvas');
var canvasNew = document.createElement('canvas');
canvasNew.id = id;
canvasNew.className = className;
pdfContainer.appendChild(canvasNew);
};
//建议给定pdf宽度 <a<?if ($bqr[classid]==$classid||$bqr[classid]==$bclassids){?> class="current"<?}?> href="/list/<?=$bqr[classid]?>-<?=$fengge?>-<?=$orderby?>-<?=$key?>-0.html"><?=$bqr[classname]?></a>
function renderPDF(pdf, i, id) {
pdf.getPage(i).then(function (page) {
var scale = 4; //scale的值是canvas的渲染尺寸,影响清晰度
var viewport = page.getViewport({
scale: scale
});
//
// 准备用于渲染的 canvas 元素
//
var canvas = document.getElementById(id);
var context = canvas.getContext('2d');
canvas.height = viewport.height;
canvas.width = viewport.width;
//
// 将 PDF 页面渲染到 canvas 上下文中
//
var renderContext = {
canvasContext: context,
viewport: viewport
};
page.render(renderContext);
});
};
//创建和pdf页数等同的canvas数 [/e:loop]
function createSeriesCanvas(num, template) { </div>
var id = ''; </div>
for (var j = 1; j <= num; j++) {
id = template + j;
createPdfContainer(id, 'pdfClass');
}
}
//读取pdf文件,并加载到页面中 <?
function loadPDF(fileURL) { $br=$empire->fetch1("select classid from {$dbtbpre}enewsclass where bclassid='".$bclassids."' limit 1");
console.log(fileURL) ?>
pdfjsLib.getDocument(fileURL).promise.then(function (pdf) { <?if ($bclassid<>$bclassids&&$br['classid']){?>
//用 promise 获取页面 <div class='type1'>
var id = ''; <div class='all-type'>科目:</div>
var idTemplate = 'cw-pdf-'; <div class="uli">
var pageNum = pdf.numPages; //pdf文件总页数
//根据页码创建画布 <a<?if ($classid==$bclassids){?> class="current"<?}?> href="/list/<?=$bclassids?>-0-0-0-0.html">全部</a>
createSeriesCanvas(pageNum, idTemplate);
$("#canvas canvas").css("width", "100%"); [e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid='$bclassids' and showclass=0 order by myorder asc,classid asc",0,24,0}]
for (var i = 1; i <= pageNum; i++) {
id = idTemplate + i; <a<?if ($bqr[classid]==$classid){?> class="current"<?}?> href="/list/<?=$bqr[classid]?>-0-0-<?=$key?>-0.html"><?=$bqr[classname]?></a>
renderPDF(pdf, i, id);
} [/e:loop]
}); </ul>
} </div>
//调用 <?}?>
loadPDF("<?echo $pd_path[1];?>")
</div>
</div>
<?if ($key){
$addkey=user_scws($key);
if (!$addkey){$addkey=$key;}
?>
<div class="doyoulike wlimit" style="overflow:hidden;">
<span>您是不是想找:</span>
[e:loop={"select * from {$dbtbpre}enewstags where tagname REGEXP '$addkey' order by rand() limit 10",0,24,0}]
<a href="/list/<?=$classid?>-0-0-<?=$bqr[tagname]?>-0.html"><?=$bqr[tagname]?></a>
[/e:loop]
</div>
<?}?>
<div class='hot-topic'>
<div class='wlimit'>
<a class="sort<?if (!$orderby){?> chose<?}?>" href="/list/<?=$classid?>-<?=$fengge?>-0-<?=$key?>-0.html">综合排序</a>
<a class="sort<?if ($orderby==1){?> chose<?}?>" href="/list/<?=$classid?>-<?=$fengge?>-1-<?=$key?>-0.html">热门下载</a>
<a class="sort<?if ($orderby==2){?> chose<?}?>" href="/list/<?=$classid?>-<?=$fengge?>-2-<?=$key?>-0.html">最近更新</a>
</div>
</div>
<div class='t-box'>
<div class='wlimit'>
<div class='b-box'>
[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]
</div>
</div>
</div>
<div class='clear'></div>
<div class='page' >[!--show.listpage--]</div>
</script>
[!--temp.footer--]
<script src="/index/js/jquery-1.7.1.min.js"></script>
<script src="/common/js/lazyload.min.js"></script>
<script src="/common/js/common-v3.6.js"></script>
<script src="/video/js/video_v1.2.js"></script>
<script src="/catage/js/new-catage-v1.0.js"></script>
<script src="/lib/store.legacy.min.js"></script>
</body> </body>
</html> </html>
Loading…
Cancel
Save