<?php
class AppTemplate
{
var $html,$markdes,$markval;
var $page_id, $page_name, $page_enname, $page_addtime,$page_size, $page_typearr,$page_type, $page_count, $data_count, $page,$startnum,$page_content;
var $par_type, $par_id, $par_by, $par_order, $par_parent, $par_num, $par_table, $par_start, $par_topic, $par_level, $par_day, $par_state,$par_area,$par_lang,$par_letter,$par_tag,$par_label,$par_maxpage,$par_starring,$par_similar,$par_from,$par_year,$par_end;
function AppTemplate()
{
$this->startnum=0;
}
function getIndexLink()
{
return app_installdir;
}
function getArtIndexLink()
{
switch (app_artviewtype)
{
case 2:
case 3:
$str = "artindex." . app_artsuffix;
break;
default:
$str = "artindex.php";
break;
}
return app_installdir . $str;
}
function getMapLink()
{
switch (app_vodviewtype)
{
case 2:
case 3:
$str = "map." .app_vodsuffix;
break;
default:
$str = "map.php";
break;
}
return app_installdir . $str;
}
function getArtMapLink()
{
switch (app_artviewtype)
{
case 2:
case 3:
$str = "artmap." . app_artsuffix;
break;
default:
$str = "artmap.php";
break;
}
return app_installdir . $str;
}
function getArtTypeLink($id, $name, $enname, $suffix)
{
switch (app_artlistviewtype)
{
case 1:
$str = "artlist/index.php?id=" . $id;
break;
case 2:
$str = replaceStr(app_artlistpath, "{id}", $id);
$str = replaceStr($str, "{name}", $name);
$str = replaceStr($str, "{enname}", $enname);
if (strpos($str,"{md5}")>0){
$str = replaceStr($str, "{md5}", md5($id));
}
if ($suffix) { $str = $str . "." . app_artsuffix; $str = replaceStr($str,"index.".app_artsuffix,""); }
break;
case 3:
$str = replaceStr(app_artlistpath, "{id}", $id);
if ($suffix) { $str = $str . "." . app_artsuffix; }
break;
default:
$str = "artlist/?" . $id;
if ($suffix) { $str = $str . "." . app_artsuffix; }
break;
}
return app_installdir . $str;
}
function getArtTopicLink($id, $name, $enname, $suffix)
{
switch (app_arttopicviewtype)
{
case 1:
$str = "arttopic/index.php?id=" . $id;
break;
case 2:
$str = replaceStr(app_arttopicpath, "{id}", $id);
$str = replaceStr($str, "{name}", $name);
$str = replaceStr($str, "{enname}", $enname);
if (strpos($str,"{md5}")>0){
$str = replaceStr($str, "{md5}", md5($id));
}
if ($suffix) { $str = $str . "." . app_artsuffix; $str = replaceStr($str,"index.".app_artsuffix,""); }
break;
case 3:
$str = replaceStr(app_arttopicpath, "{id}", $id);
if ($suffix) { $str = $str . "." . app_artsuffix; }
break;
default:
$str = "arttopic/?" . $id;
if ($suffix) { $str = $str . "." . app_artsuffix; }
break;
}
return app_installdir . $str;
}
function getArtLink($id, $name, $enname,$addtime, $typeid, $typename, $typeenname,$suffix)
{
switch (app_artcontentviewtype)
{
case 1:
$str = "art/index.php?id=" . $id;
break;
case 2:
$str = replaceStr(app_artpath, "{id}", $id);
if (strpos(",".$str,"{name}")>0){ $str = replaceStr($str, "{name}", repSpecialChar($name)); }
if (strpos(",".$str,"{enname}")>0){ $str = replaceStr($str, "{enname}", repSpecialChar($enname)); }
$str = replaceStr($str, "{typeid}", $typeid);
$str = replaceStr($str, "{typename}", $typename);
$str = replaceStr($str, "{typeenname}", $typeenname);
if (strpos(",".$str,"{md5}")>0){ $str = replaceStr($str, "{md5}", md5($id)); }
if (strpos(",".$str,"{year}")>0){ $str = replaceStr($str, "{year}", getDatet("Y",$addtime) ); }
if (strpos(",".$str,"{month}")>0){ $str = replaceStr($str, "{month}", getDatet("m",$addtime) ); }
if (strpos(",".$str,"{day}")>0){ $str = replaceStr($str, "{day}", getDatet("d",$addtime) ); }
if ($suffix) { $str = $str . "." . app_artsuffix; $str = replaceStr($str,"index.".app_artsuffix,""); }
break;
case 3:
$str = $str = replaceStr(app_artpath, "{id}", $id);
if ($suffix) { $str = $str . "." . app_artsuffix; }
break;
default:
$str = "art/?" . $id;
if ($suffix) { $str = $str . "." . app_artsuffix; }
break;
}
return app_installdir . $str;
}
function getArtPreNextLink($id,$flag)
{
global $db,$cache;
if ($flag==0) { $str1="上一篇"; $where = " and a_id<".$id." order by a_id desc";} else{ $str1="下一篇"; $where = " and a_id>".$id." order by a_id asc";}
$row = $db->getRow("select a_id,a_title,a_entitle,a_type,a_addtime from {pre}art where 1=1 and a_hide=0 " .$where . " limit 0,1");
if ($row){
$tarr = getValueByArray($cache[1],"t_id" ,$row["a_type"]);
$str = "<em>".$str1.":<a href=". $this->getArtLink($row["a_id"],$row["a_title"],$row["a_entiele"],$row["a_addtime"],$row["a_type"],$tarr["t_name"],$tarr["t_enname"],true).">".$row["a_title"]."</a></em> ";
}
else{
$str = "<em>".$str1.":没有了</em> ";
}
unset($row);
return $str;
}
function getVodTypeLink($id, $name,$enname, $suffix)
{
switch(app_vodlistviewtype)
{
case 1:
$str = "vodlist/index.php?id=" . $id;
break;
case 2:
$str = replaceStr(app_vodlistpath, "{id}", $id);
$str = replaceStr($str, "{name}", $name);
$str = replaceStr($str, "{enname}", $enname);
if (strpos($str,"{md5}")>0){
$str = replaceStr($str, "{md5}", md5($id));
}
if ($suffix){ $str = $str. "." . app_vodsuffix ; $str = replaceStr($str,"index.".app_vodsuffix,""); }
break;
case 3:
$str = replaceStr(app_vodlistpath, "{id}", $id);
if ($suffix) { $str = $str. "." . app_vodsuffix;}
break;
default:
$str = "vodlist/?" . $id;
if ($suffix) { $str = $str. "." . app_vodsuffix;}
break;
}
return app_installdir . $str;
}
function getVodTypeLinkOrder($id, $name, $enname, $suffix, $order, $by)
{
$str = getVodTypeLink($id, $name, $enname, false);
if (isN($order)) { $order = "desc";}
if (isN($by)) { $order = "time";}
switch(app_vodlistviewtype)
{
case 1:
$str = "vodlist/index.php?id=" . $id . "&order=" . $order . "&by=" . $by;
break;
case 3:
$str = replaceStr(app_vodlistpath, "{id}", $id);
if ($suffix) { $str = $str . "-1" . "-" . $order . "-" . by . "." . app_vodsuffix;}
break;
default:
$str = "vodlist/?" . $id;
if ($suffix){ $str = $str . "-1" . "-" . order . "-" . by . "." . app_vodsuffix;}
break;
}
return $str;
}
function getVodTopicLink($id, $name, $enname, $suffix)
{
switch(app_vodtopicviewtype)
{
case 1:
$str = "vodtopic/index.php?id=" . $id;
break;
case 2:
$str = replaceStr(app_vodtopicpath, "{id}", $id);
$str = replaceStr($str, "{name}",
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的苹果CMS手机版整站php版源码.zip
共513个文件
gif:178个
php:117个
png:65个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 135 浏览量
2023-10-15
23:59:52
上传
评论
收藏 1.4MB ZIP 举报
温馨提示
基于PHP的苹果CMS手机版整站php版源码.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的苹果CMS手机版整站php版源码.zip (513个子文件)
playerconfig.js.bak 1KB
easyui.css 27KB
style.css 18KB
user.css 18KB
style.css 17KB
play.css 17KB
ui.css 10KB
datagrid.css 5KB
style.css 4KB
tabs.css 4KB
admin.css 3KB
calendar.css 3KB
style.css 3KB
style.css 3KB
css.css 2KB
tree.css 2KB
iframe.css 2KB
login.css 2KB
layout.css 2KB
panel.css 2KB
linkbutton.css 1KB
menu.css 1KB
window.css 1KB
rater.css 1KB
icon.css 955B
pagination.css 948B
splitbutton.css 758B
spinner.css 732B
combo.css 667B
validatebox.css 634B
messager.css 610B
accordion.css 591B
jquery.autocomplete.css 533B
datebox.css 527B
dialog.css 422B
menubutton.css 420B
combobox.css 186B
head_bg.gif 23KB
8.gif 18KB
bg_footer.gif 15KB
left_menus1.gif 13KB
console_heder_bg_2.gif 11KB
noscript.gif 11KB
2.gif 10KB
console_icon.gif 8KB
3.gif 7KB
nopic.gif 7KB
bg_repno.gif 6KB
6.gif 6KB
4.gif 6KB
markbig.gif 5KB
logo.gif 5KB
icon.gif 5KB
0.gif 5KB
icons.gif 5KB
mark.gif 5KB
12.gif 3KB
1.gif 3KB
blue-loading.gif 3KB
5.gif 3KB
7.gif 3KB
no_photo.gif 3KB
actived.gif 3KB
wordimg.gif 3KB
stepnum.gif 3KB
huatu.gif 3KB
7.gif 2KB
10.gif 2KB
6.gif 2KB
btn_reg.gif 2KB
16.gif 2KB
8.gif 2KB
14.gif 2KB
15.gif 2KB
13.gif 2KB
3.gif 2KB
11.gif 2KB
4.gif 2KB
button_span_bg.gif 2KB
btn_login.gif 2KB
1.gif 2KB
2.gif 2KB
5.gif 2KB
9.gif 2KB
btn_pb.gif 2KB
pagination_loading.gif 2KB
panel_loading.gif 2KB
tree_loading.gif 2KB
messager_error.gif 2KB
button3.gif 2KB
messager_question.gif 2KB
messager_info.gif 2KB
btn_reg_invalid.gif 2KB
messager_warning.gif 1KB
loading.gif 1KB
loading.gif 1KB
button_a_bg.gif 1KB
star.gif 1KB
right.gif 1KB
html_ok.gif 1KB
共 513 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
易小侠
- 粉丝: 6487
- 资源: 9万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 数据分析实战3-豆瓣top250数据分析和可视化
- tomcat安装及配置教程.md
- tomcat安装及配置教程.md
- 51单片机贴片心形灯原理图PCB程序 亚克力外壳.dwg资料
- 户型为单家独院式图纸编号D068-三层-20.60&13.40米-施工图.dwg
- 农村小别墅图纸编号D067-三层-10.00&11.50米- 施工图.dwg
- 三层独栋别墅图纸编号D066-三层-12.00&12.00米- 施工图.dwg
- 农村小别墅图纸编号D065-三层-14.40&18.55米-施工图.dwg
- 基于YOLOv8检测高铁吊弦缺陷实现的系统的Python源码+文档说明+训练源文件+模型.zip
- 三层农村小别墅图纸编号D064-三层-13.80&22.20米-施工图.dwg
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功