forked from qinggan/phpok
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
352 changed files
with
9,223 additions
and
462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>很抱歉,此页面暂时找不到!</title> | ||
<style type="text/css"> | ||
body {font-size:16px;} | ||
div{margin:auto;} | ||
a {text-decoration: none; color: #1064A0;} | ||
a:hover {color: #0078D2;} | ||
h1{margin:0;font-size:30px; color:#0188DE; padding:20px 0px 20px 0px;} | ||
#page{width:60%; padding:20px 20px 40px 20px; margin-top:80px;border-style:dashed;border-color:#e4e4e4;line-height:30px;} | ||
.button{width:180px; height:28px; margin-left:0px; margin-top:10px; background:#009CFF; border-bottom:4px solid #0188DE; text-align:center;} | ||
.button a{width:180px; height:28px; display:block; font-size:14px; color:#fff; } | ||
.button a:hover{ background:#5BBFFF;} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div id="page"> | ||
<h1>(404)抱歉,找不到此页面~</h1> | ||
<font color="#666666" style="font-size:24px;font-weight:300;"><!-- if $info -->{$info}<!-- else -->你请求访问的页面,暂时找不到,我们建议你返回首页官网进行浏览,谢谢!<!-- /if --></font><br /><br /> | ||
<div class="button"> | ||
<a href="{$sys.url}" title="进入官网">进入官网</a> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- include tpl=header menutitle=$page_rs.title --> | ||
<section class="bg-light p-5"{if $page_rs.banner} style="background:url('{$page_rs.banner.filename}') center center no-repeat;background-size:cover;"{/if}> | ||
<div class="p-4"> | ||
<h1 class="text-center">{$rs.title}</h1> | ||
</div> | ||
<div class="container"> | ||
<!-- if $rs.tag --> | ||
<div class="text-center m-3"> | ||
<span class="p-2 bg-light-50 rounded-lg"> | ||
标签: | ||
<!-- loop from=$rs.tag key=$k value=$v id=$idxx --> | ||
{$v.html}<!-- if $idxx.total != $idxx.num -->,<!-- /if --> | ||
<!-- /loop --> | ||
</span> | ||
</div> | ||
<!-- /if --> | ||
</div> | ||
</section> | ||
<div class="container"> | ||
<div class="mt-4"> | ||
<!-- include tpl=block/breadcrumb --> | ||
</div> | ||
<div class="row"> | ||
<div class="col-sm-3 mt-3"> | ||
<div class="card mb-3"> | ||
<div class="card-header"> | ||
{$page_rs.title} | ||
</div> | ||
<ul class="list-group list-group-flush"> | ||
<!-- arclist pid=$page_rs.id psize=100 fields=id --> | ||
<!-- loop from=$list.rslist key=$key value=$value id=$tmpid --> | ||
<li class="list-group-item{if $rs.id == $value.id} active{/if}"><a href="{$value.url}" title="{$value.title}"><i class='am-icon-angle-right'></i> {$value.title}</a></li> | ||
<!-- /loop --> | ||
</ul> | ||
</div> | ||
<!-- include tpl=block/contact --> | ||
</div> | ||
<div class="col-sm-9 mt-3"> | ||
<div class="content">{$rs.content}</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- include tpl=footer --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
<!-- include tpl=header menutitle=$page_rs.title --> | ||
<section class="bg-light p-5"{if $cate_rs.banner || $page_rs.banner} style="background:url('{$cate_rs.banner ? $cate_rs.banner.filename : $page_rs.banner.filename}') center center no-repeat;background-size:cover;"{/if}> | ||
<h1 class="p-4 text-center">{$rs.title}</h1> | ||
<div class="container"> | ||
<div class="text-center d-block m-4"> | ||
<span class="p-2 bg-light-50 rounded-lg "> | ||
发布日期:{func time_format $rs.dateline} | ||
浏览次数:{$rs.hits} | ||
</span> | ||
</div> | ||
<!-- if $rs.tag --> | ||
<div class="text-center m-3"> | ||
<span class="p-2 bg-light-50 rounded-lg"> | ||
标签: | ||
<!-- loop from=$rs.tag key=$k value=$v id=$idxx --> | ||
{$v.html}<!-- if $idxx.total != $idxx.num -->,<!-- /if --> | ||
<!-- /loop --> | ||
</span> | ||
</div> | ||
<!-- /if --> | ||
</div> | ||
</section> | ||
<section class="container"><div class="mt-3"><!-- include tpl=block/breadcrumb --></div></section> | ||
|
||
|
||
<!-- include file=bbs_content --> | ||
<section class="container"> | ||
<!-- if $pageid == 1 --> | ||
<div class="card"> | ||
<div class="card-header"> | ||
<a href="{url ctrl=user uid=$rs.user.id/}" target="_blank"><img class="mr-1" alt="{$rs.user.nickname ? $rs.user.nickname : $rs.user.user}" src="{$rs.user.avatar ? $rs.user.avatar : 'images/avatar.gif'}" style="width:30px;" /></a> {$rs.title} | ||
<div class="float-right"> | ||
<a href="{url ctrl=user id=$rs.user.id/}" target="_blank">{$rs.user.nickname ? $rs.user.nickname : $rs.user.user}</a> 于 <time>{func time_format $rs.dateline}</time> 发布 | ||
</div> | ||
</div> | ||
<div class="card-body"> | ||
<p class="card-text content">{$rs.content}</p> | ||
<!-- if $rs.pictures --> | ||
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-4"> | ||
<!-- loop from=$rs.pictures key=$k value=$v id=$idxx --> | ||
<div class="col p-2"><a href="{$v.gd.auto}" target="_blank"><img src="{$v.gd.thumb}" alt="{$v.title}" class="rounded" style="max-width:100%" /></a></div> | ||
<!-- /loop --> | ||
</div> | ||
<!-- /if --> | ||
</div> | ||
<div class="card-footer text-right"> | ||
楼主 | ||
</div> | ||
</div> | ||
<!-- /if --> | ||
<!-- loop from=$comment.rslist key=$key value=$value id=tmpid --> | ||
<div class="card mt-3"> | ||
<div class="card-header"> | ||
<a href="{url ctrl=user uid=$value.uid.id/}" target="_blank"><img class="mr-1" alt="{$value.uid.nickname ? $value.uid.nickname : $value.uid.user}" src="{$value.uid.avatar ? $value.uid.avatar : 'images/avatar.gif'}" style="width:30px;" /></a> | ||
<a href="{url ctrl=user id=$value.uid.id/}" target="_blank">{$value.uid.user}</a> 于 <time>{func time_format $value.addtime}</time> 回复 | ||
</div> | ||
<div class="card-body"> | ||
<p class="card-text content">{$value.content}</p> | ||
<!-- if $value.res --> | ||
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-4"> | ||
<!-- loop from=$value.res key=$k value=$v id=$idxx --> | ||
<div class="col p-2"><a href="{$v.gd.auto}" target="_blank"><img src="{$v.gd.thumb}" alt="{$v.title}" class="rounded" style="max-width:100%" /></a></div> | ||
<!-- /loop --> | ||
</div> | ||
<!-- /if --> | ||
<!-- loop from=$value.adm_reply key=$k value=$v id=$idxx --> | ||
<fieldset class="admin-reply"> | ||
<legend>管理员于 <time>{func time_format $v.addtime}</time> 回复</legend> | ||
<div class="content">{$v.content}</div> | ||
</fieldset> | ||
<!-- /loop --> | ||
</div> | ||
<div class="card-footer text-right"> | ||
{$value._layer} | ||
</div> | ||
</div> | ||
<!-- /loop --> | ||
|
||
<!-- if $session.user_id --> | ||
|
||
|
||
<div class="card mt-3"> | ||
<div class="card-header"> | ||
回复 | ||
</div> | ||
<div class="card-body"> | ||
<form method="post" id="comment-post" class="am-form"> | ||
<input type="hidden" name="tid" value="{$rs.id}" /> | ||
<input type="hidden" name="vtype" value="title" /> | ||
<!-- if $comment.uid --> | ||
<div class="form-group">{func form_edit comment $comment.content editor width=100%&height=150&btns[image]=1}</div> | ||
<!-- else --> | ||
<div class="form-group"> | ||
<textarea class="form-control" rows="5" name="comment" id="comment" placeholder="填写评论信息" style="resize: none;"></textarea> | ||
</div> | ||
<!-- /if --> | ||
<div class="form-group clearfix"> | ||
{func form_edit pictures $comment.res upload is_multiple=1} | ||
</div> | ||
<!-- if $is_vcode --> | ||
<div class="form-group"> | ||
<div class="row"> | ||
<div class="col-sm-3"><input class="form-control" type="text" name="_chkcode" id="_chkcode" placeholder="请填写验证码" /></div> | ||
<div class="col-sm-2"><img src="" border="0" align="absmiddle" id="vcode" class="hand" /></div> | ||
</div> | ||
</div> | ||
<script type="text/javascript"> | ||
$(document).ready(function(){ | ||
$("#vcode").phpok_vcode(); | ||
$("#vcode").click(function(){ | ||
$(this).phpok_vcode(); | ||
}); | ||
}); | ||
</script> | ||
<!-- /if --> | ||
<div class="form-group d-block mt-4"> | ||
<input name="" type="submit" class="btn btn-primary" value="提交" /> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
<!-- else --> | ||
<div class="card mt-3"> | ||
<div class="card-header"> | ||
请登录或注册 | ||
</div> | ||
<div class="card-body"> | ||
<div class="p-4 m-4 text-center">请先 <a href="{url ctrl=login _back=$rs.url/}" title="会员登录">登录</a> 或 <a href="{url ctrl=register _back=$rs.url/}" title="新会员注册">注册</a></div> | ||
</div> | ||
</div> | ||
<!-- /if --> | ||
<div class="m-3"> | ||
<!-- include tpl=block/pagelist pageurl=$rs.url total=$comment.total pageid=$comment.pageid psize=$comment.psize --> | ||
</div> | ||
</section> | ||
<!-- include tpl=footer --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<!-- php:$title = ($cate_rs && $cate_rs.id != $page_rs.cate) ? '发布主题_'.$cate_rs.title.'_'.$page_rs.title : '发布主题_'.$page_rs.title --> | ||
<!-- include tpl=header title=$title menutitle=$page_rs.title --> | ||
<!-- include file=bbs_post --> | ||
<script type="text/javascript"> | ||
$(document).ready(function(){ | ||
var is_vcode = '<!-- if $is_vcode -->true<!-- else -->false<!-- /if -->'; | ||
$("#post_submit").submit(function(){ | ||
var title = $("#title").val(); | ||
if(!title){ | ||
$.dialog.alert('新贴主题不能为空'); | ||
return false; | ||
} | ||
var cate_id = $("#cate_id").val(); | ||
if(!cate_id){ | ||
$.dialog.alert('没有指定分类'); | ||
return false; | ||
} | ||
if(is_vcode == 'true'){ | ||
var chkcode = $("#_chkcode").val(); | ||
if(!chkcode){ | ||
$.dialog.alert('验证码不能为空',function(){ | ||
$("#_vcode").phpok_vcode(); | ||
}); | ||
return false; | ||
} | ||
} | ||
var content = UE.getEditor('content').getContentTxt(); | ||
if(!content){ | ||
$.dialog.alert('内容不能为空'); | ||
return false; | ||
} | ||
$(this).ajaxSubmit({ | ||
'url':api_url('post','ok'), | ||
'type':'post', | ||
'dataType':'json', | ||
'success':function(rs){ | ||
if(!rs.status){ | ||
$.dialog.alert(rs.info,function(){ | ||
$("#_vcode").phpok_vcode(); | ||
$("#_chkcode").val(''); | ||
}); | ||
return false; | ||
} | ||
$.dialog.alert('您的信息已发布,感谢您的提交',function(){ | ||
$.phpok.go("{$_back}"); | ||
}); | ||
} | ||
}); | ||
return false; | ||
}); | ||
}); | ||
</script> | ||
<section class="container"><div class="mt-3"><!-- include tpl=block/breadcrumb leader=$leader --></div></section> | ||
|
||
<section class="container"> | ||
<div class="card"> | ||
<div class="card-header">发新贴</div> | ||
<div class="card-body"> | ||
<form method="post" id="post_submit" class="am-form"> | ||
<input type="hidden" name="id" id="id" value="{$page_rs.identifier}" /> | ||
<!-- if $cate_rs --> | ||
<input type="hidden" name="cate_id" id="cate_id" value="{$cate_rs.id}" /> | ||
<!-- /if --> | ||
<div class="row form-group"> | ||
<label class="col-sm-2" for="title">主题名称</label> | ||
<div class="col-sm-10"><input type="text" name="title" id="title" /></div> | ||
</div> | ||
<!-- if $catelist && !$cate_rs --> | ||
<div class="row form-group"> | ||
<label class="col-sm-2" for="title">分类</label> | ||
<div class="col-sm-10"> | ||
<select name="cate_id" id="cate_id"> | ||
<option value="">请选择分类……</option> | ||
<!-- loop from=$catelist key=$key value=$value id=$tmpid --> | ||
<option value="{$value.id}"{if $cate_rs.id == $value.id} selected{/if}>{$value._space}{$value.title}</option> | ||
<!-- /loop --> | ||
</select> | ||
</div> | ||
</div> | ||
<!-- /if --> | ||
<!-- fields pid=$page_rs.id fields_format=1 --> | ||
<!-- loop from=$list key=$key value=$value --> | ||
<div class="row form-group"> | ||
<label class="col-sm-2" for="{$value.identifier}">{$value.title}</label> | ||
<div class="col-sm-10">{$value.html}</div> | ||
</div> | ||
<!-- /loop --> | ||
<!-- if $is_vcode --> | ||
<div class="row form-group"> | ||
<label class="col-sm-2" for="_chkcode">验证码:</label> | ||
<div class="col-sm-4"><input type="text" name="_chkcode" id="_chkcode" class="vcode" /></div> | ||
<div class="col-sm-6"><img src="" border="0" align="absmiddle" id="update_vcode" class="hand"></div> | ||
<script type="text/javascript"> | ||
$(document).ready(function(){ | ||
$("#update_vcode").phpok_vcode(); | ||
//更新点击时操作 | ||
$("#update_vcode").click(function(){ | ||
$(this).phpok_vcode(); | ||
}); | ||
}); | ||
</script> | ||
</div> | ||
<!-- /if --> | ||
<div class="row form-group"> | ||
<div class="col-sm-2"> </div> | ||
<div class="col-sm-5"><input type="submit" value=" 提交 " class="btn btn-primary btn-lg" /></div> | ||
<div class="col-sm-5 text-right"> | ||
<a href="{url ctrl=$page_rs.identifier func=$cate_rs.identifier/}" title="返回列表">返回列表</a> | ||
</div> | ||
</div> | ||
|
||
</form> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<!-- include tpl=footer --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!-- include tpl=header menutitle=$page_rs.title --> | ||
<section class="bg-light p-5"{if $cate_rs.banner || $page_rs.banner} style="background:url('{$cate_rs.banner ? $cate_rs.banner.filename : $page_rs.banner.filename}') center center no-repeat;background-size:cover;"{/if}> | ||
<h1 class="p-4 text-center">{$cate_rs ? $cate_rs.title : $page_rs.title}</h1> | ||
<!-- php:$taglist = $cate_rs.tag ? $cate_rs.tag : $page_rs.tag --> | ||
<!-- if $taglist --> | ||
<div class="container"> | ||
<div class="text-center m-3"> | ||
<span class="p-2 bg-light-50 rounded-lg"> | ||
标签: | ||
<!-- loop from=$taglist key=$k value=$v id=$idxx --> | ||
{$v.html}<!-- if $idxx.total != $idxx.num -->,<!-- /if --> | ||
<!-- /loop --> | ||
</span> | ||
</div> | ||
</div> | ||
<!-- /if --> | ||
</section> | ||
<section class="container"><div class="mt-3"><!-- include tpl=block/breadcrumb --></div></section> | ||
|
||
<section class="container"> | ||
<!-- catelist pid=$page_rs.id --> | ||
<ul class="list-group list-group-flush mb-4"> | ||
<!-- loop from=$list.sublist key=$key value=$value id=$tmpid --> | ||
<li class="list-group-item"> | ||
<div class="media"> | ||
<a href="{$value.url}" title="{$value.title}"><img src="{$value.thumb ? $value.thumb.filename : 'images/bbs.png'}" class="mr-3" alt="{$value.title}" style="width:60px;" /></a> | ||
<div class="media-body"> | ||
<div class="row"> | ||
<div class="col-sm-7"> | ||
<a href="{$value.url}" title="{$value.title}"><h5 class="mt-0">{$value.title}</h5></a> | ||
<!-- if $value.note --><div class="text-body">{func nl2br $value.note}</div><!-- /if --> | ||
</div> | ||
<div class="col-sm-1 text-center"> | ||
<!-- php:$total = phpok('_total','pid='.$page_rs.id.'&cateid='.$value.id) -->{$total} | ||
</div> | ||
<div class="col"> | ||
<!-- arclist pid=$page_rs.id cateid=$value.id psize=3 --> | ||
<!-- loop from=$list.rslist key=$k value=$v --> | ||
<div><a href="{$v.url}" title="{$v.title}">{func phpok_cut $v.title 70 …} <small class="text-muted">{func time_format $v.dateline}</small></a></div> | ||
<!-- /loop --> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</li> | ||
<!-- /loop --> | ||
</ul> | ||
</section> | ||
<!-- include tpl=footer --> |
Oops, something went wrong.