@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
return array(
|
||||
'name' => '相册',
|
||||
'version' => '1.2',
|
||||
'desc' => '相册APP',
|
||||
'url' => 'http://www.thinksaas.cn',
|
||||
'email' => 'thinksaas@qq.com',
|
||||
'author' => '邱君',
|
||||
'author_url' => 'http://www.thinksaas.cn',
|
||||
'isoption' => '1',
|
||||
'isinstall' => '1',
|
||||
'issql' => '1',
|
||||
'issystem' => '1',
|
||||
'isappnav' => '1',
|
||||
'ismy'=>'1',
|
||||
);
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
//管理入口
|
||||
|
||||
if(is_file('app/'.$app.'/action/admin/'.$mg.'.php')){
|
||||
include_once 'app/'.$app.'/action/admin/'.$mg.'.php';
|
||||
}else{
|
||||
qiMsg('sorry:no index!');
|
||||
}
|
||||
@@ -0,0 +1,219 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
switch($ts){
|
||||
case "list":
|
||||
|
||||
$page = tsIntval($_GET['page'],1);
|
||||
|
||||
$lstart = $page*10-10;
|
||||
|
||||
$url = SITE_URL.'index.php?app=photo&ac=admin&mg=album&ts=list&page=';
|
||||
|
||||
$arrAlbum = $new['photo']->findAll('photo_album',null,'albumid desc',null,$lstart.',10');
|
||||
|
||||
|
||||
$albumNum = $new['photo']->findCount('photo_album');
|
||||
|
||||
|
||||
$pageUrl = pagination($albumNum, 10, $page, $url);
|
||||
|
||||
include template("admin/album_list");
|
||||
break;
|
||||
|
||||
//图片
|
||||
case "photo":
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
|
||||
$page = tsIntval($_GET['page'],1);
|
||||
|
||||
$lstart = $page*10-10;
|
||||
|
||||
$url = SITE_URL.'index.php?app=photo&ac=admin&mg=album&ts=photo&albumid='.$albumid.'&page=';
|
||||
|
||||
$arrPhoto = $db->fetch_all_assoc("select * from ".dbprefix."photo where albumid='$albumid' limit $lstart,10");
|
||||
|
||||
$photo_num = $db->once_fetch_assoc("select count(photoid) from ".dbprefix."photo where albumid='$albumid'");
|
||||
|
||||
$pageUrl = pagination($photo_num['count(photoid)'], 10, $page, $url);
|
||||
|
||||
include template("admin/album_photo");
|
||||
|
||||
break;
|
||||
|
||||
//删除相册
|
||||
case "del_album":
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
|
||||
$new['photo']->deletePhotoAlbum($albumid);
|
||||
|
||||
qiMsg("相册删除成功!");
|
||||
|
||||
break;
|
||||
|
||||
//删除照片
|
||||
case "del_photo":
|
||||
$photoid = tsIntval($_GET['photoid']);
|
||||
|
||||
$strPhoto = $new['photo']->find('photo',array(
|
||||
'photoid'=>$photoid,
|
||||
));
|
||||
|
||||
$albumid = $strPhoto['albumid'];
|
||||
|
||||
$new['photo']->deletePhoto($strPhoto);
|
||||
|
||||
$count_photo = $db->once_num_rows("select * from ".dbprefix."photo where albumid='$albumid'");
|
||||
|
||||
$db->query("update ".dbprefix."photo_album set `count_photo`='$count_photo' where albumid='$albumid'");
|
||||
|
||||
qiMsg("图片删除成功!");
|
||||
|
||||
break;
|
||||
|
||||
//设为封面
|
||||
case "face":
|
||||
$photoid = tsIntval($_GET['photoid']);
|
||||
$strPhoto = $db->once_fetch_assoc("select * from ".dbprefix."photo where photoid='$photoid'");
|
||||
|
||||
$albumid = $strPhoto['albumid'];
|
||||
$albumface = $strPhoto['photourl'];
|
||||
|
||||
$db->query("update ".dbprefix."photo_album set `albumface`='$albumface' where albumid='$albumid'");
|
||||
|
||||
qiMsg("封面设置成功!");
|
||||
|
||||
break;
|
||||
|
||||
//统计
|
||||
case "count":
|
||||
|
||||
$arrAlbum = $db->fetch_all_assoc("select albumid from ".dbprefix."photo_album");
|
||||
|
||||
foreach($arrAlbum as $item){
|
||||
$albumid = $item['albumid'];
|
||||
$count_photo = $db->once_num_rows("select photoid from ".dbprefix."photo where albumid='$albumid'");
|
||||
$db->query("update ".dbprefix."photo_album set `count_photo`='$count_photo' where albumid='$albumid'");
|
||||
}
|
||||
|
||||
qiMsg("统计完成!");
|
||||
|
||||
break;
|
||||
|
||||
//推荐相册
|
||||
case "isrecommend":
|
||||
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
|
||||
$strAlbum = $db->once_fetch_assoc("select isrecommend from ".dbprefix."photo_album where `albumid`='$albumid'");
|
||||
|
||||
if($strAlbum['isrecommend']==0){
|
||||
$db->query("update ".dbprefix."photo_album set `isrecommend`='1' where `albumid`='$albumid'");
|
||||
}else{
|
||||
$db->query("update ".dbprefix."photo_album set `isrecommend`='0' where `albumid`='$albumid'");
|
||||
}
|
||||
|
||||
qiMsg("操作成功!");
|
||||
|
||||
break;
|
||||
|
||||
//是否审核
|
||||
case "isaudit":
|
||||
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
|
||||
$strAlbum = $new['photo']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
if($strAlbum['isaudit']==0){
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
),array(
|
||||
'isaudit'=>1,
|
||||
));
|
||||
|
||||
}else{
|
||||
$new['photo']->update('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
),array(
|
||||
'isaudit'=>0,
|
||||
));
|
||||
}
|
||||
|
||||
qiMsg("操作成功!");
|
||||
|
||||
break;
|
||||
|
||||
//删除没有图片的相册
|
||||
case "nophoto":
|
||||
|
||||
$arrAlbum = $new['photo']->findAll('photo_album',"`count_photo`=0");
|
||||
foreach($arrAlbum as $key=>$item){
|
||||
|
||||
$isPhoto = $new['photo']->findCount('photo',array(
|
||||
'albumid'=>$item['albumid'],
|
||||
));
|
||||
|
||||
if($isPhoto == 0){
|
||||
|
||||
$new['photo']->delete('photo_album',array(
|
||||
|
||||
'albumid'=>$item['albumid'],
|
||||
|
||||
));
|
||||
|
||||
}else{
|
||||
|
||||
$count_photo = $new['photo']->findCount('photo',array(
|
||||
|
||||
'albumid'=>$item['albumid'],
|
||||
|
||||
));
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
'albumid'=>$item['albumid'],
|
||||
),array(
|
||||
|
||||
'count_photo'=>$count_photo,
|
||||
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
qiMsg('操作成功!');
|
||||
|
||||
break;
|
||||
|
||||
case "isaudit":
|
||||
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
|
||||
$strAlbum = $new['attach']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
if($strAlbum['isaudit']==1){
|
||||
$new['attach']->update('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
),array(
|
||||
'isaudit'=>0
|
||||
));
|
||||
}
|
||||
|
||||
if($strAlbum['isaudit']==0){
|
||||
$new['attach']->update('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
),array(
|
||||
'isaudit'=>1
|
||||
));
|
||||
}
|
||||
|
||||
qiMsg('操作成功!');
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
switch ($ts){
|
||||
|
||||
case "list":
|
||||
|
||||
$userid = intval($_GET['userid']);
|
||||
$photoid = intval($_GET['photoid']);
|
||||
|
||||
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
|
||||
$url = SITE_URL.'index.php?app=photo&ac=admin&mg=comment&ts=list&page=';
|
||||
$lstart = $page*10-10;
|
||||
|
||||
$where = null;
|
||||
|
||||
if($userid){
|
||||
$where = array(
|
||||
'userid'=>$userid,
|
||||
);
|
||||
}
|
||||
|
||||
if($photoid){
|
||||
$where = array(
|
||||
'photoid'=>$photoid,
|
||||
);
|
||||
}
|
||||
|
||||
$arrComment = $new['photo']->findAll('photo_comment',$where,'addtime desc',null,$lstart.',10');
|
||||
|
||||
$commentNum = $new['photo']->findCount('photo_comment',$where);
|
||||
|
||||
$pageUrl = pagination($commentNum, 10, $page, $url);
|
||||
|
||||
include template("admin/comment_list");
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case "delete":
|
||||
|
||||
$commentid = intval($_GET['commentid']);
|
||||
|
||||
$strComment = $new['photo']->find('photo_comment',array(
|
||||
'commentid'=>$commentid,
|
||||
));
|
||||
|
||||
$new['photo']->delete('photo_comment',array(
|
||||
'commentid'=>$commentid,
|
||||
));
|
||||
|
||||
#统计评论数
|
||||
$count_comment = $new['photo']->findCount('photo_comment',array(
|
||||
'photoid'=>$strComment['photoid'],
|
||||
));
|
||||
|
||||
//更新评论数
|
||||
$new['photo']->update('photo',array(
|
||||
'photoid'=>$strComment['photoid'],
|
||||
),array(
|
||||
'count_comment'=>$count_comment,
|
||||
));
|
||||
|
||||
|
||||
#处理积分
|
||||
aac('user') -> doScore($TS_URL['app'], $TS_URL['ac'], $TS_URL['ts'],$strComment['userid'],$TS_URL['mg']);
|
||||
|
||||
qiMsg('删除成功');
|
||||
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
switch($ts){
|
||||
//基本配置
|
||||
case "":
|
||||
$strOption = getAppOptions('photo');
|
||||
|
||||
include template("admin/options");
|
||||
|
||||
break;
|
||||
|
||||
case "do":
|
||||
|
||||
$arrOption = $_POST['option'];
|
||||
|
||||
#更新app配置选项
|
||||
upAppOptions('photo',$arrOption);
|
||||
|
||||
#更新app导航和我的导航
|
||||
upAppNav('photo',$arrOption['appname']);
|
||||
|
||||
qiMsg('修改成功!');
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
switch($ts){
|
||||
|
||||
case "":
|
||||
|
||||
$ugid = tsIntval($_GET['ugid'],1);
|
||||
|
||||
$arrUg = $new['photo']->findAll('user_group',null,'ugid asc');
|
||||
|
||||
|
||||
|
||||
|
||||
include template('admin/permissions');
|
||||
|
||||
break;
|
||||
|
||||
case "do":
|
||||
|
||||
/**
|
||||
* 权限参数说明,app,action必须,其他参数可选
|
||||
* app-action-ts
|
||||
* app-action-mg-ts 当action=admin
|
||||
* app-action-api-ts 当action=api
|
||||
*/
|
||||
|
||||
$ugid = tsIntval($_POST['ugid']);
|
||||
|
||||
$arrOption = $_POST['option'];
|
||||
|
||||
aac('pubs')->upAppPermissions($ugid,'photo',$arrOption);
|
||||
|
||||
qiMsg('操作成功!');
|
||||
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
switch($ts){
|
||||
|
||||
case "list":
|
||||
|
||||
$page = tsIntval($_GET['page'],1);
|
||||
|
||||
$lstart = $page*10-10;
|
||||
|
||||
$url = SITE_URL.'index.php?app=photo&ac=admin&mg=photo&ts=list&page=';
|
||||
|
||||
$arrPhoto = $db->fetch_all_assoc("select * from ".dbprefix."photo order by addtime desc limit $lstart,10");
|
||||
|
||||
$photoNum = $db->once_fetch_assoc("select count(*) from ".dbprefix."photo");
|
||||
|
||||
$pageUrl = pagination($photoNum['count(*)'], 10, $page, $url);
|
||||
|
||||
include template("admin/photo_list");
|
||||
break;
|
||||
|
||||
//推荐图片
|
||||
case "isrecommend":
|
||||
|
||||
$photoid = tsIntval($_GET['photoid']);
|
||||
|
||||
$strPhoto = $db->once_fetch_assoc("select isrecommend from ".dbprefix."photo where `photoid`='$photoid'");
|
||||
|
||||
if($strPhoto['isrecommend']==0){
|
||||
$db->query("update ".dbprefix."photo set `isrecommend`='1' where `photoid`='$photoid'");
|
||||
}else{
|
||||
$db->query("update ".dbprefix."photo set `isrecommend`='0' where `photoid`='$photoid'");
|
||||
}
|
||||
|
||||
qiMsg("操作成功!");
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
$userid = tsIntval($TS_USER['userid']);
|
||||
|
||||
if($userid==0){
|
||||
return false;
|
||||
exit;
|
||||
}
|
||||
|
||||
switch($ts){
|
||||
|
||||
//普通上传
|
||||
case "upload":
|
||||
|
||||
//包含模版
|
||||
include template("ajax/upload");
|
||||
|
||||
break;
|
||||
|
||||
//
|
||||
case "net":
|
||||
include template("ajax/net");
|
||||
break;
|
||||
|
||||
//Flash上传
|
||||
case "flash":
|
||||
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
$addtime = time();
|
||||
|
||||
include template("ajax/flash");
|
||||
break;
|
||||
|
||||
//相册
|
||||
case "album":
|
||||
|
||||
$isAlbum = $new['photo']->findCount('photo_album',array(
|
||||
|
||||
'userid'=>$userid,
|
||||
|
||||
));
|
||||
|
||||
if($isAlbum == 0){
|
||||
|
||||
$new['photo']->create('photo_album',array(
|
||||
|
||||
'userid'=>$userid,
|
||||
'albumname'=>'默认相册',
|
||||
'albumdesc'=>'默认相册',
|
||||
'addtime'=>time(),
|
||||
'uptime'=>time(),
|
||||
|
||||
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
$arrAlbum = $new['photo']->findAll('photo_album',array(
|
||||
'userid'=>$userid,
|
||||
));
|
||||
|
||||
|
||||
include template("ajax/album");
|
||||
|
||||
break;
|
||||
//图片
|
||||
case "photo":
|
||||
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
$strAlbum = $new['photo']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$page = tsIntval($_GET['page'],1);
|
||||
$url = SITE_URL."index.php?app=photo&ac=ajax&ts=photo&albumid=".$albumid."&page=";
|
||||
$lstart = $page*6-6;
|
||||
|
||||
$arrPhoto = $new['photo']->findAll('photo',array(
|
||||
'albumid'=>$albumid,
|
||||
),'photoid desc',null,$lstart.',6');
|
||||
|
||||
$photoNum = $new['photo']->findCount('photo',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$pageUrl = pagination($photoNum, 6, $page, $url);
|
||||
|
||||
include template("ajax/photo");
|
||||
break;
|
||||
//创建相册
|
||||
case "create":
|
||||
include template("ajax/create");
|
||||
break;
|
||||
|
||||
case "create_do":
|
||||
$albumname = t($_POST['albumname']);
|
||||
|
||||
if($albumname == '') qiMsg("相册名称不能为空!");
|
||||
|
||||
$albumdesc = h($_POST['albumdesc']);
|
||||
$addtime = time();
|
||||
$uptime = time();
|
||||
|
||||
$albumid = $new['photo']->create('photo_album',array(
|
||||
|
||||
'userid'=>$userid,
|
||||
'albumname'=>$albumname,
|
||||
'albumdesc'=>$albumdesc,
|
||||
'addtime'=>time(),
|
||||
'uptime'=>time(),
|
||||
|
||||
));
|
||||
|
||||
header("Location: ".SITE_URL."index.php?app=photo&ac=ajax&ts=flash&albumid=".$albumid);
|
||||
break;
|
||||
|
||||
//
|
||||
case "info":
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
$addtime = tsIntval($_GET['addtime']);
|
||||
|
||||
$strAlbum = $new['photo']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
if($strAlbum['userid'] != $userid) qiMsg("非法操作!");
|
||||
|
||||
//统计
|
||||
$count_photo = $new['photo']->findCount('photo',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
),array(
|
||||
'count_photo'=>$count_photo,
|
||||
));
|
||||
|
||||
//添加相册封面
|
||||
if($strAlbum['albumface'] == ''){
|
||||
|
||||
$strPhoto = $new['photo']->find('photo',"`albumid`='$albumid' and `userid`='$userid' and `addtime`>'$addtime'");
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
),array(
|
||||
'albumface'=>$strPhoto['photourl'],
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
$arrPhoto = $new['photo']->findAll('photo',"`albumid`='$albumid' and `userid`='$userid' and `addtime`>'$addtime'");
|
||||
|
||||
include template("ajax/info");
|
||||
break;
|
||||
}
|
||||
@@ -0,0 +1,299 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
switch($ts){
|
||||
|
||||
//某一个相册
|
||||
case "":
|
||||
$albumid = tsIntval($_GET['id']);
|
||||
$strAlbum = $new['photo']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
//404
|
||||
if($strAlbum==''){
|
||||
header("HTTP/1.1 404 Not Found");
|
||||
header("Status: 404 Not Found");
|
||||
$title = '404';
|
||||
include pubTemplate("404");
|
||||
exit;
|
||||
}
|
||||
|
||||
if($strAlbum['isaudit']==1){
|
||||
tsNotice('内容审核中...');
|
||||
}
|
||||
|
||||
$strAlbum['albumname'] = tsTitle($strAlbum['albumname']);
|
||||
$strAlbum['albumdesc'] = tsTitle($strAlbum['albumdesc']);
|
||||
|
||||
|
||||
$page = tsIntval($_GET['page'],1);
|
||||
|
||||
$url = tsUrl('photo','album',array('id'=>$albumid,'page'=>''));
|
||||
|
||||
$lstart = $page*20-20;
|
||||
|
||||
$strUser = aac('user')->getSimpleUser($strAlbum['userid']);
|
||||
|
||||
$arrPhoto = $new['photo']->findAll('photo',array(
|
||||
'albumid'=>$albumid,
|
||||
),'photoid desc',null,$lstart.',20');
|
||||
|
||||
foreach($arrPhoto as $key=>$item){
|
||||
$arrPhoto[$key]['photodesc'] = tsTitle($item['photodesc']);
|
||||
}
|
||||
|
||||
$photoNum = $new['photo']->findCount('photo',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$pageUrl = pagination($photoNum, 20, $page, $url);
|
||||
|
||||
|
||||
$title = $strAlbum['albumname'];
|
||||
|
||||
|
||||
include template("album");
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
'albumid'=>$strAlbum['albumid'],
|
||||
),array(
|
||||
'count_view'=>$strAlbum['count_view']+1,
|
||||
));
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
//修改相册
|
||||
case "edit":
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
|
||||
$strAlbum = $new['photo']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
if($strAlbum['userid'] == $userid || $TS_USER['isadmin']==1) {
|
||||
|
||||
$strAlbum['albumname'] = tsTitle($strAlbum['albumname']);
|
||||
$strAlbum['albumdesc'] = tsTitle($strAlbum['albumdesc']);
|
||||
|
||||
$title = '修改相册属性-'.$strAlbum['albumname'];
|
||||
include template("album_edit");
|
||||
|
||||
}else{
|
||||
|
||||
tsNotice('非法操作!');
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "editdo":
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$albumid = tsIntval($_POST['albumid']);
|
||||
|
||||
$strAlbum = $new['photo']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
if($strAlbum['userid']==$userid || $TS_USER['isadmin']==1){
|
||||
|
||||
$albumname = tsTrim($_POST['albumname']);
|
||||
if($albumname == '') qiMsg("相册名称不能为空!");
|
||||
|
||||
$albumdesc = tsTrim($_POST['albumdesc']);
|
||||
|
||||
|
||||
if($TS_USER['isadmin']==0){
|
||||
//过滤内容开始
|
||||
$albumname = antiWord($albumname);
|
||||
$albumdesc = antiWord($albumdesc);
|
||||
//过滤内容结束
|
||||
}
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
'userid'=>$strAlbum['userid'],
|
||||
'albumid'=>$strAlbum['albumid'],
|
||||
),array(
|
||||
'albumname'=>$albumname,
|
||||
'albumdesc'=>$albumdesc,
|
||||
));
|
||||
|
||||
header("Location: ".tsUrl('photo','album',array('id'=>$albumid)));
|
||||
}else{
|
||||
tsNotice('非法操作!');
|
||||
}
|
||||
break;
|
||||
|
||||
//批量修改
|
||||
case "info":
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
$addtime = tsIntval($_GET['addtime']);
|
||||
|
||||
$strAlbum = $new['photo']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$strAlbum['albumname'] = tsTitle($strAlbum['albumname']);
|
||||
$strAlbum['albumdesc'] = tsTitle($strAlbum['albumdesc']);
|
||||
|
||||
if($strAlbum['userid'] != $userid) {
|
||||
|
||||
tsNotice('非法操作');
|
||||
|
||||
}
|
||||
|
||||
//统计
|
||||
$count_photo = $new['photo']->findCount('photo',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
),array(
|
||||
'count_photo'=>$count_photo,
|
||||
));
|
||||
|
||||
//添加相册封面
|
||||
if($strAlbum['albumface'] == ''){
|
||||
$strPhoto = $new['photo']->find('photo',array(
|
||||
'albumid'=>$strAlbum['albumid'],
|
||||
));
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
),array(
|
||||
'path'=>$strPhoto['path'],
|
||||
'albumface'=>$strPhoto['photourl'],
|
||||
));
|
||||
}
|
||||
|
||||
if($addtime){
|
||||
$arr = array(
|
||||
'albumid'=>$albumid,
|
||||
'addtime'=>date('Y-m-d H:i:s',$addtime),
|
||||
);
|
||||
}else{
|
||||
$arr = array(
|
||||
'albumid'=>$albumid,
|
||||
);
|
||||
}
|
||||
|
||||
$arrPhoto = $new['photo']->findAll('photo',$arr);
|
||||
|
||||
foreach($arrPhoto as $key=>$item){
|
||||
$arrPhoto[$key]['title'] = tsTitle($item['title']);
|
||||
$arrPhoto[$key]['photodesc'] = tsTitle($item['photodesc']);
|
||||
}
|
||||
|
||||
|
||||
$title = '批量修改-'.$strAlbum['albumname'];
|
||||
include template("album_info");
|
||||
break;
|
||||
|
||||
//批量修改执行
|
||||
case "info_do":
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$albumid = tsIntval($_POST['albumid']);
|
||||
|
||||
$albumface = tsIntval($_POST['albumface']);
|
||||
|
||||
$arrPhotoId = $_POST['photoid'];
|
||||
$arrPhotoDesc = $_POST['photodesc'];
|
||||
|
||||
|
||||
if(is_array($arrPhotoId)==false || is_array($arrPhotoDesc)==false){
|
||||
tsNotice('非法操作');
|
||||
}
|
||||
|
||||
|
||||
if($TS_USER['isadmin']==0){
|
||||
|
||||
foreach($arrPhotoDesc as $key=>$item){
|
||||
|
||||
//过滤内容开始
|
||||
$arrPhotoDesc[$key] = antiWord($item);
|
||||
//过滤内容结束
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
foreach($arrPhotoDesc as $key=>$item){
|
||||
|
||||
$item = str_replace('../','',$item);
|
||||
$item = str_replace('/','',$item);
|
||||
|
||||
if($item){
|
||||
|
||||
$photoid = tsIntval($arrPhotoId[$key]);
|
||||
|
||||
$new['photo']->update('photo',array(
|
||||
'photoid'=>$photoid,
|
||||
'userid'=>$userid,
|
||||
),array(
|
||||
|
||||
'photodesc'=>tsTrim($item),
|
||||
|
||||
));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//更新相册封面
|
||||
if (preg_match('#(..(\\|/)){2,}#sim', $albumface) != false) { die('request error');} #针对阿里云误报只能添加下
|
||||
if($albumface){
|
||||
|
||||
$strPhoto = $new['photo']->find('photo',array(
|
||||
'photoid'=>$albumface,
|
||||
));
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
'userid'=>$userid,
|
||||
'albumid'=>$albumid,
|
||||
),array(
|
||||
'path'=>$strPhoto['path'],
|
||||
'albumface'=>$strPhoto['photourl'],
|
||||
));
|
||||
}
|
||||
|
||||
header("Location: ".tsUrl('photo','album',array('id'=>$albumid)));
|
||||
|
||||
break;
|
||||
|
||||
//删除相册
|
||||
case "del":
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
|
||||
$strAlbum = $new['photo']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
if($strAlbum['userid'] == $userid || $TS_USER['isadmin'] == 1) {
|
||||
|
||||
$new['photo']->deletePhotoAlbum($strAlbum['albumid']);
|
||||
|
||||
}
|
||||
|
||||
|
||||
header("Location: ".tsUrl('photo'));
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
defined ( 'IN_TS' ) or die ( 'Access Denied.' );
|
||||
|
||||
// api入口
|
||||
if (is_file ( 'app/' . $TS_URL['app'] . '/action/api/' . $TS_URL['api'] . '.php' )) {
|
||||
include_once 'app/' . $TS_URL['app'] . '/action/api/' . $TS_URL['api'] . '.php';
|
||||
} else {
|
||||
qiMsg ( 'sorry:no api!' );
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
echo '<pre>
|
||||
-----------------------------------------------
|
||||
Photo Http Api List
|
||||
URL:https://demo.thinksaas.cn
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
-----------------------------------------------
|
||||
</pre>';
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
//判断发布者状态
|
||||
if(aac('user')->isPublisher()==false) tsNotice('不好意思,你还没有权限发布内容!');
|
||||
|
||||
//发布时间限制
|
||||
if(aac('system')->pubTime()==false) tsNotice('不好意思,当前时间不允许发布内容!');
|
||||
|
||||
switch($ts){
|
||||
|
||||
|
||||
case "":
|
||||
|
||||
$title = '创建相册';
|
||||
include template("create");
|
||||
|
||||
break;
|
||||
|
||||
case "do":
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$albumname = tsTrim($_POST['albumname']);
|
||||
$albumdesc = tsTrim($_POST['albumdesc']);
|
||||
|
||||
if($albumname == '') {
|
||||
tsNotice("相册名称不能为空!");
|
||||
}
|
||||
|
||||
//1审核后显示0不审核
|
||||
if ($TS_APP['isaudit']==1) {
|
||||
$isaudit = 1;
|
||||
} else {
|
||||
$isaudit = 0;
|
||||
}
|
||||
|
||||
if($TS_USER['isadmin']==0){
|
||||
//过滤内容开始
|
||||
$albumname = antiWord($albumname);
|
||||
$albumdesc = antiWord($albumdesc);
|
||||
//过滤内容结束
|
||||
}
|
||||
|
||||
$albumid = $new['photo']->create('photo_album',array(
|
||||
|
||||
'userid'=>$userid,
|
||||
'albumname'=>$albumname,
|
||||
'albumdesc'=>$albumdesc,
|
||||
'isaudit'=>$isaudit,
|
||||
'addtime'=>date('Y-m-d H:i:s'),
|
||||
'uptime'=>date('Y-m-d H:i:s'),
|
||||
|
||||
));
|
||||
|
||||
header("Location: ".tsUrl('photo','upload',array('albumid'=>$albumid)));
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
//删除图片
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$photoid = tsIntval($_GET['photoid']);
|
||||
|
||||
$strPhoto = $new['photo']->find('photo',array(
|
||||
'photoid'=>$photoid,
|
||||
));
|
||||
|
||||
if($strPhoto['userid']==$userid || $TS_USER['isadmin']==1) {
|
||||
|
||||
|
||||
$albumid = $strPhoto['albumid'];
|
||||
|
||||
|
||||
$new['photo']->deletePhoto($strPhoto);
|
||||
|
||||
|
||||
$count_photo = $new['photo']->findCount('photo',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
|
||||
'albumid'=>$albumid,
|
||||
|
||||
),array(
|
||||
|
||||
'count_photo'=>$count_photo,
|
||||
|
||||
));
|
||||
|
||||
tsNotice('照片删除成功!','点击返回',tsUrl('photo','album',array('id'=>$albumid)));
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
switch($ts){
|
||||
|
||||
//删除照片
|
||||
case "photo_del":
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$photoid = intval($_GET['photoid']);
|
||||
|
||||
$strPhoto = $new['photo']->find('photo',array(
|
||||
'photoid'=>$photoid,
|
||||
));
|
||||
|
||||
if($strPhoto['userid']==$userid || $TS_USER['isadmin']==1) {
|
||||
|
||||
|
||||
$albumid = $strPhoto['albumid'];
|
||||
|
||||
unlink('uploadfile/photo/'.$strPhoto['photourl']);
|
||||
|
||||
$new['photo']->delete('photo',array(
|
||||
'photoid'=>$photoid,
|
||||
));
|
||||
|
||||
$count_photo = $new['photo']->findCount('photo',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
|
||||
'albumid'=>$albumid,
|
||||
|
||||
),array(
|
||||
|
||||
'count_photo'=>$count_photo,
|
||||
|
||||
));
|
||||
|
||||
tsNotice('照片删除成功!','点击返回',tsUrl('photo','album',array('id'=>$albumid)));
|
||||
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
//添加评论
|
||||
case "comment_do":
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$photoid = intval($_POST['photoid']);
|
||||
$content = trim($_POST['content']);
|
||||
|
||||
if($content==''){
|
||||
tsNotice('评论内容不能为空!');
|
||||
}
|
||||
|
||||
if($TS_USER['isadmin']==0){
|
||||
//过滤内容开始
|
||||
aac('system')->antiWord($content);
|
||||
//过滤内容结束
|
||||
}
|
||||
|
||||
$commentid = $new['photo']->create('photo_comment',array(
|
||||
'photoid'=> $photoid,
|
||||
'userid'=> $userid,
|
||||
'content'=> $content,
|
||||
'addtime'=> time(),
|
||||
));
|
||||
|
||||
header("Location: ".tsUrl('photo','show',array('id'=>$photoid)));
|
||||
|
||||
break;
|
||||
|
||||
//删除评论
|
||||
case "delcomment":
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$commentid = intval($_GET['commentid']);
|
||||
|
||||
$strComment = $new['photo']->find('photo_comment',array(
|
||||
'commentid'=>$commentid,
|
||||
));
|
||||
|
||||
$strPhoto = $new['photo']->find('photo',array(
|
||||
|
||||
'photoid'=>$strComment['photoid'],
|
||||
|
||||
));
|
||||
|
||||
|
||||
if($userid == $strPhoto['userid'] || $TS_USER['isadmin']=='1'){
|
||||
|
||||
$new['photo']->delete('photo_comment',array(
|
||||
'commentid'=>$commentid,
|
||||
));
|
||||
|
||||
tsNotice("删除评论成功!");
|
||||
|
||||
}else{
|
||||
tsNotice("非法操作!");
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
//修改单个图片信息
|
||||
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
switch($ts){
|
||||
|
||||
case "":
|
||||
|
||||
$photoid = tsIntval($_GET['photoid']);
|
||||
|
||||
$strPhoto = $new['photo']->find('photo',array(
|
||||
'photoid'=>$photoid,
|
||||
));
|
||||
|
||||
$strPhoto['title'] = tsTitle($strPhoto['title']);
|
||||
$strPhoto['photodesc'] = tsTitle($strPhoto['photodesc']);
|
||||
|
||||
if($strPhoto['userid']==$userid || $TS_USER['isadmin']==1){
|
||||
|
||||
$title = '修改图片信息';
|
||||
include template('photo_edit');
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
tsNotice('非法操作!');
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case "do":
|
||||
|
||||
$photoid = tsIntval($_POST['photoid']);
|
||||
$title = tsTrim($_POST['title']);
|
||||
$photodesc = tsTrim($_POST['photodesc']);
|
||||
|
||||
$new['photo']->update('photo',array(
|
||||
'photoid'=>$photoid,
|
||||
),array(
|
||||
'title'=>$title,
|
||||
'photodesc'=>$photodesc,
|
||||
));
|
||||
|
||||
header('Location: '.tsUrl('photo','show',array('id'=>$photoid)));
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
$page = tsIntval($_GET['page'],1);
|
||||
|
||||
$url = tsUrl('photo','index',array('page'=>''));
|
||||
|
||||
$lstart = $page*30-30;
|
||||
|
||||
$arrAlbum = $new['photo']->findAll('photo_album',"`count_photo`>0 and `isaudit`=0",'albumid desc',null,$lstart.',30');
|
||||
|
||||
foreach($arrAlbum as $key=>$item){
|
||||
$arrAlbum[$key]['albumname'] = tstitle($item['albumname']);
|
||||
$arrAlbum[$key]['albumdesc'] = tstitle($item['albumdesc']);
|
||||
}
|
||||
|
||||
$albumNum = $new['photo']->findCount('photo_album',"`count_photo`>0 and `isaudit`=0");
|
||||
|
||||
$pageUrl = pagination($albumNum, 30, $page, $url);
|
||||
|
||||
$title = '最新专辑';
|
||||
|
||||
$sitekey = $TS_APP['appkey'];
|
||||
$sitedesc = $TS_APP['appdesc'];
|
||||
include template("index");
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
defined ( 'IN_TS' ) or die ( 'Access Denied.' );
|
||||
|
||||
// 我的入口
|
||||
if (is_file ( 'app/' . $TS_URL['app'] . '/action/my/' . $TS_URL['my'] . '.php' )) {
|
||||
$userid = aac('user')->isLogin();
|
||||
$strUser = aac('user')->getOneUser($userid);
|
||||
include_once 'app/' . $TS_URL['app'] . '/action/my/' . $TS_URL['my'] . '.php';
|
||||
} else {
|
||||
qiMsg ( 'sorry:no index!' );
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$strUser = aac('user')->getOneUser($userid);
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
defined ( 'IN_TS' ) or die ( 'Access Denied.' );
|
||||
|
||||
|
||||
$page = tsIntval($_GET['page'],1);
|
||||
|
||||
$url = tsUrl('photo','my',array('my'=>'index','page'=>''));
|
||||
|
||||
$lstart = $page*6-6;
|
||||
|
||||
$arrAlbum = $new['photo']->findAll('photo_album',array(
|
||||
'userid'=>$strUser['userid'],
|
||||
),'albumid desc',null,$lstart.',6');
|
||||
|
||||
foreach($arrAlbum as $key=>$item){
|
||||
$arrAlbum[$key]['albumname'] = tsTitle($item['albumname']);
|
||||
$arrAlbum[$key]['albumdesc'] = tsTitle($item['albumdesc']);
|
||||
}
|
||||
|
||||
$albumNum = $new['photo']->findCount('photo_album',array(
|
||||
|
||||
'userid'=>$strUser['userid'],
|
||||
|
||||
));
|
||||
|
||||
$pageUrl = pagination($albumNum, 6, $page, $url);
|
||||
|
||||
$title = '我的相册';
|
||||
include template('my/index');
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
$photoid = tsIntval($_GET['id']);
|
||||
|
||||
$strPhoto = $new['photo']->find('photo',array(
|
||||
'photoid'=>$photoid,
|
||||
));
|
||||
|
||||
//404
|
||||
if($strPhoto == ''){
|
||||
header("HTTP/1.1 404 Not Found");
|
||||
header("Status: 404 Not Found");
|
||||
$title = '404';
|
||||
include pubTemplate("404");
|
||||
exit;
|
||||
}
|
||||
|
||||
$strPhoto['title'] = tsTitle($strPhoto['title']);
|
||||
$strPhoto['photodesc'] = tsTitle($strPhoto['photodesc']);
|
||||
|
||||
#原图
|
||||
if($TS_SITE['file_upload_type']==1){
|
||||
#阿里云oss
|
||||
$strPhoto['photo_url'] = $TS_SITE['alioss_bucket_url'].'/uploadfile/photo/'.$strPhoto['photourl'];
|
||||
}else{
|
||||
#本地
|
||||
$strPhoto['photo_url'] = SITE_URL.'uploadfile/photo/'.$strPhoto['photourl'];
|
||||
}
|
||||
|
||||
$albumid = $strPhoto['albumid'];
|
||||
|
||||
//图片标签
|
||||
$strPhoto['tags'] = aac('tag')->getObjTagByObjid('photo', 'photoid', $strPhoto['photoid']);
|
||||
|
||||
//用户
|
||||
$strPhoto['user'] = aac('user')->getSimpleUser($strPhoto['userid']);
|
||||
|
||||
//相册下所有图片
|
||||
$arrPhoto = $new['photo']->findAll('photo',array(
|
||||
'albumid'=>$strPhoto['albumid'],
|
||||
),null,null,8);
|
||||
|
||||
//所在专辑
|
||||
$strAlbum = $new['photo']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$strAlbum['albumname'] = tsTitle($strAlbum['albumname']);
|
||||
$strAlbum['albumdesc'] = tsTitle($strAlbum['albumdesc']);
|
||||
|
||||
$arrPhotoIds = $new['photo']->findAll('photo',array(
|
||||
|
||||
'albumid'=>$albumid,
|
||||
|
||||
),'photoid desc');
|
||||
|
||||
foreach($arrPhotoIds as $item){
|
||||
$arrPhotoId[] = $item['photoid'];
|
||||
}
|
||||
|
||||
rsort($arrPhotoId);
|
||||
|
||||
$nowkey = array_search($photoid,$arrPhotoId);
|
||||
$nowPage = $nowkey+1 ;
|
||||
$conutPage = count($arrPhotoId);
|
||||
$prev = $arrPhotoId[$nowkey - 1];
|
||||
$next = $arrPhotoId[$nowkey +1];
|
||||
|
||||
$userid = $strAlbum['userid'];
|
||||
$strUser = aac('user')->getSimpleUser($userid);
|
||||
|
||||
//评论列表
|
||||
$page = tsIntval($_GET['page'],1);
|
||||
$url = tsUrl('photo','show',array('id'=>$photoid,'page'=>''));
|
||||
$lstart = $page*15-15;
|
||||
$arrComment = aac('comment')->getCommentList('photo','photoid',$strPhoto['photoid'],$page,$lstart,$strPhoto['userid']);
|
||||
$commentNum = aac('comment')->getCommentNum('photo','photoid',$strPhoto['photoid']);
|
||||
$pageUrl = pagination($commentNum, 15, $page, $url);
|
||||
|
||||
|
||||
|
||||
$title = $strAlbum['albumname'].'(第'.$nowPage.'张)';
|
||||
|
||||
|
||||
include template("show");
|
||||
|
||||
$new['photo']->update('photo',array(
|
||||
'photoid'=>$strPhoto['photoid'],
|
||||
),array(
|
||||
'count_view'=>$strPhoto['count_view']+1,
|
||||
));
|
||||
@@ -0,0 +1,129 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
switch($ts){
|
||||
|
||||
case "":
|
||||
|
||||
//用户是否登录
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
//判断发布者状态
|
||||
if(aac('user')->isPublisher()==false) tsNotice('不好意思,你还没有权限发布内容!');
|
||||
|
||||
//发布时间限制
|
||||
if(aac('system')->pubTime()==false) tsNotice('不好意思,当前时间不允许发布内容!');
|
||||
|
||||
|
||||
$albumid = tsIntval($_GET['albumid']);
|
||||
|
||||
$strAlbum = $new['photo']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$strAlbum['albumname'] = tsTitle($strAlbum['albumname']);
|
||||
$strAlbum['albumdesc'] = tsTitle($strAlbum['albumdesc']);
|
||||
|
||||
if($userid != $strAlbum['userid']) {
|
||||
|
||||
tsNotice('非法操作!');
|
||||
|
||||
}
|
||||
|
||||
$addtime = time();
|
||||
|
||||
$title = '上传照片';
|
||||
include template("upload");
|
||||
|
||||
break;
|
||||
|
||||
case "do":
|
||||
|
||||
$userid = aac('user')->isLogin();
|
||||
|
||||
$albumid = tsIntval($_POST['albumid']);
|
||||
|
||||
$addtime = tsIntval($_POST['addtime']);
|
||||
|
||||
if($albumid==0){
|
||||
getJson('非法操作1!');
|
||||
}
|
||||
|
||||
if($addtime==0){
|
||||
getJson('上传时间有误!');
|
||||
}
|
||||
|
||||
$strAlbum = $new['photo']->find('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
if($strAlbum==''){
|
||||
getJson('非法操作2!');
|
||||
}
|
||||
|
||||
if($strAlbum['userid']!=$userid){
|
||||
getJson('非法操作3!');
|
||||
}
|
||||
|
||||
$type = getImagetype($_FILES['file']['tmp_name']);
|
||||
if(!in_array($type,array('jpg','gif','png','jpeg'))){
|
||||
getJson('非法操作4!');
|
||||
}
|
||||
|
||||
$photoid = $new['photo']->create('photo',array(
|
||||
'albumid'=>$strAlbum['albumid'],
|
||||
'userid'=>$strAlbum['userid'],
|
||||
'addtime' => date('Y-m-d H:i:s',$addtime),
|
||||
));
|
||||
|
||||
//上传
|
||||
$arrUpload = tsUpload($_FILES['file'],$photoid,'photo',array('jpg','png','jpeg','gif'));
|
||||
|
||||
if($arrUpload && $arrUpload['path'] && $arrUpload['url']){
|
||||
|
||||
$new['photo']->update('photo',array(
|
||||
'photoid'=>$photoid,
|
||||
),array(
|
||||
'title'=>$arrUpload['name'],
|
||||
'phototype'=>$arrUpload['type'],
|
||||
'path'=>$arrUpload['path'],
|
||||
'photourl'=>$arrUpload['url'],
|
||||
'photosize'=>$arrUpload['size'],
|
||||
));
|
||||
|
||||
|
||||
#生成对应大小的图片
|
||||
tsXimg($arrUpload['url'],'photo',320,320,$arrUpload['path'],1);
|
||||
tsXimg($arrUpload['url'],'photo',640,'',$arrUpload['path']);
|
||||
|
||||
|
||||
#统计相册图片数
|
||||
$count_photo = $new['photo']->findCount('photo',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$new['photo']->update('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
),array(
|
||||
'count_photo'=>$count_photo
|
||||
));
|
||||
|
||||
//对积分进行出来
|
||||
aac('user')->doScore($TS_URL['app'], $TS_URL['ac'],$TS_URL['mg'],$TS_URL['api'],$TS_URL['ts'],$strAlbum['userid']);
|
||||
|
||||
}else{
|
||||
|
||||
$new['photo']->delete('photo',array(
|
||||
'photoid'=>$photoid,
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#echo $photoid;
|
||||
getJson('上传成功!');
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
$userid = tsIntval($_GET['id']);
|
||||
|
||||
if($userid == 0) header("Location: ".SITE_URL."index.php");
|
||||
|
||||
$strUser = aac('user')->getSimpleUser($userid);
|
||||
|
||||
$page = tsIntval($_GET['page'],1);
|
||||
|
||||
$url = tsUrl('photo','user',array('id'=>$userid,'page'=>''));
|
||||
|
||||
$lstart = $page*6-6;
|
||||
|
||||
$arrAlbum = $new['photo']->findAll('photo_album',array(
|
||||
'userid'=>$userid,
|
||||
),'albumid desc',null,$lstart.',6');
|
||||
|
||||
foreach($arrAlbum as $key=>$item){
|
||||
$arrAlbum[$key]['albumname'] = tsTitle($item['albumname']);
|
||||
$arrAlbum[$key]['albumdesc'] = tsTitle($item['albumdesc']);
|
||||
}
|
||||
|
||||
$albumNum = $new['photo']->findCount('photo_album',array(
|
||||
'userid'=>$userid,
|
||||
));
|
||||
|
||||
$pageUrl = pagination($albumNum, 6, $page, $url);
|
||||
|
||||
|
||||
$title = $strUser['username'].'的相册';
|
||||
|
||||
include template("user");
|
||||
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
class photo extends tsApp{
|
||||
|
||||
//构造函数
|
||||
public function __construct($db){
|
||||
$tsAppDb = array();
|
||||
include 'app/photo/config.php';
|
||||
//判断APP是否采用独立数据库
|
||||
if($tsAppDb){
|
||||
$db = new MySql($tsAppDb);
|
||||
}
|
||||
|
||||
parent::__construct($db);
|
||||
}
|
||||
|
||||
//getPhotoForApp
|
||||
function getPhotoForApp($photoid){
|
||||
$strPhoto = $this->db->once_fetch_assoc("select * from ".dbprefix."photo where photoid='$photoid'");
|
||||
return $strPhoto;
|
||||
}
|
||||
|
||||
function getSamplePhoto($photoid){
|
||||
$strPhoto = $this->db->once_fetch_assoc("select path,photourl from ".dbprefix."photo where photoid='$photoid'");
|
||||
return $strPhoto;
|
||||
}
|
||||
|
||||
//是否存在图片
|
||||
public function isPhoto($photoid){
|
||||
$photoNum = $this->findCount('photo',array(
|
||||
'photoid'=>$photoid,
|
||||
));
|
||||
|
||||
if($photoNum > 0){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除图片
|
||||
*
|
||||
* @param [type] $strPhoto
|
||||
* @return void
|
||||
*/
|
||||
public function deletePhoto($strPhoto){
|
||||
#删除文件
|
||||
if($strPhoto['photourl']){
|
||||
if($GLOBALS['TS_SITE']['file_upload_type']==1){
|
||||
deleteAliOssFile('uploadfile/photo/'.$strPhoto['photourl']);
|
||||
}else{
|
||||
unlink('uploadfile/photo/'.$strPhoto['photourl']);
|
||||
tsDimg($strPhoto['photourl'],'photo','320','320',$strPhoto['path']);
|
||||
}
|
||||
}
|
||||
#删除记录
|
||||
$this->delete('photo',array(
|
||||
'photoid'=>$strPhoto['photoid'],
|
||||
));
|
||||
|
||||
#删除评论
|
||||
$this->delete ( 'comment', array (
|
||||
'ptable'=>'photo',
|
||||
'pkey'=>'photoid',
|
||||
'pid'=>$strPhoto['photoid'],
|
||||
));
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
//删除相册
|
||||
public function deletePhotoAlbum($albumid){
|
||||
|
||||
$this->delete('photo_album',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
$arrPhoto = $this->findAll('photo',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
foreach($arrPhoto as $key=>$item){
|
||||
|
||||
$this->deletePhoto($item);
|
||||
|
||||
}
|
||||
|
||||
$this->delete('photo',array(
|
||||
'albumid'=>$albumid,
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
$skin = 'default';
|
||||
|
||||
$TS_APP['appname'] = '相册';
|
||||
@@ -0,0 +1,74 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
|
||||
<thead class="thead-light">
|
||||
<tr><th>AlbumID</th><th>图片</th><th>标题</th><th>UserID</th><th>统计</th><th>addtime</th><th>操作</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
|
||||
<tbody class="fs12">
|
||||
|
||||
{loop $arrAlbum $key $item}
|
||||
<tr><td>{$item[albumid]}</td><td><a href="{SITE_URL}index.php?app=photo&ac=admin&mg=album&ts=photo&albumid={$item[albumid]}">
|
||||
|
||||
{if $item[albumface]}
|
||||
<img src="{php echo tsXimg($item[albumface],'photo',100,100,$item[path])}" />
|
||||
{else}
|
||||
<img src="{SITE_URL}public/images/event_dft.jpg" />
|
||||
{/if}
|
||||
|
||||
</a></td>
|
||||
|
||||
<td>{tsTitle($item['albumname'])}</td>
|
||||
|
||||
<td>{$item[userid]}</td>
|
||||
<td>图片:{$item['count_photo']}</td>
|
||||
|
||||
|
||||
<td>{$item['addtime']}</td>
|
||||
|
||||
|
||||
<td>
|
||||
|
||||
|
||||
<a href="{SITE_URL}index.php?app=photo&ac=admin&mg=album&ts=isaudit&albumid={$item[albumid]}">
|
||||
{if $item['isaudit']}
|
||||
<font color="red">审核</font>
|
||||
{else}
|
||||
取消审核
|
||||
{/if}
|
||||
</a>
|
||||
|
||||
|
||||
<a href="{SITE_URL}index.php?app=photo&ac=admin&mg=album&ts=isrecommend&albumid={$item[albumid]}">
|
||||
{if $item[isrecommend]==0}
|
||||
推荐
|
||||
{else}
|
||||
取消推荐
|
||||
{/if}
|
||||
</a>
|
||||
|
||||
<a href="{SITE_URL}index.php?app=photo&ac=admin&mg=album&ts=del_album&albumid={$item[albumid]}">删除</a>
|
||||
|
||||
</td></tr>
|
||||
{/loop}
|
||||
|
||||
</tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,42 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
|
||||
<thead class="thead-light">
|
||||
<tr><th>PhotoId</th><th>图片</th><th>AlbumID</th><th>UserId</th><th>操作</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
{loop $arrPhoto $key $item}
|
||||
<tr><td>{$item[photoid]}</td><td><a target="_blank" href="{SITE_URL}uploadfile/photo/{$item[photourl]}">
|
||||
|
||||
{if $item[photourl]}
|
||||
<img src="{php echo tsXimg($item[photourl],'photo',100,100,$item[path])}" />
|
||||
{else}
|
||||
<img src="{SITE_URL}public/images/event_dft.jpg" />
|
||||
{/if}
|
||||
|
||||
</a></td><td>{$item[albumid]}</td><td>{$item[userid]}</td><td><a href="{SITE_URL}index.php?app=photo&ac=admin&mg=album&ts=face&photoid={$item[photoid]}">设为封面</a> <a href="">修改</a> <a href="{SITE_URL}index.php?app=photo&ac=admin&mg=album&ts=del_photo&photoid={$item[photoid]}">删除</a></td></tr>
|
||||
{/loop}
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,89 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<!--main-->
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
|
||||
<div class="mb-3">
|
||||
|
||||
|
||||
<form method="get" action="index.php">
|
||||
<input type="hidden" name="app" value="photo">
|
||||
<input type="hidden" name="ac" value="admin">
|
||||
<input type="hidden" name="mg" value="comment">
|
||||
<input type="hidden" name="ts" value="list">
|
||||
|
||||
<input type="number" name="photoid" placeholder="图片ID">
|
||||
|
||||
<input type="number" name="userid" placeholder="用户ID">
|
||||
|
||||
|
||||
<input type="submit" value="搜索">
|
||||
|
||||
<a class="btn btn-sm btn-outline-secondary" href="index.php?app=photo&ac=admin&mg=comment&ts=list">全部</a>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
<thead class="thead-light fs14">
|
||||
<tr><th>ID</th>
|
||||
|
||||
<th>UserID</th>
|
||||
|
||||
<th>photoid</th>
|
||||
|
||||
<th>内容</th>
|
||||
|
||||
<th>时间</th>
|
||||
|
||||
<th>操作</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody class="fs12">
|
||||
|
||||
|
||||
|
||||
{loop $arrComment $key $item}
|
||||
<tr>
|
||||
<td>{$item['commentid']}</td>
|
||||
<td>{$item['userid']}</td>
|
||||
<td>{$item['photoid']} <a target="_blank" href="{tsUrl('photo','show',array('id'=>$item['photoid']))}">[查看内容]</a></td>
|
||||
|
||||
|
||||
|
||||
|
||||
<td>
|
||||
|
||||
<div style="width: 600px;">{php echo tsTitle($item['content'])}</div>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>{php echo date('Y-m-d H:i:s',$item['addtime'])}</td>
|
||||
|
||||
<td>
|
||||
|
||||
|
||||
|
||||
<a onclick="return confirm('确定删除?')" href="{SITE_URL}index.php?app=photo&ac=admin&mg=comment&ts=delete&commentid={$item['commentid']}">删除</a>
|
||||
|
||||
</td></tr>
|
||||
{/loop}
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
<div class="tabnav">
|
||||
<h6>相册管理</h6>
|
||||
<ul>
|
||||
<li {if $mg=='options'}class="select"{/if}><a href="{SITE_URL}index.php?app=photo&ac=admin&mg=options">相册配置</a></li>
|
||||
|
||||
<li {if $mg=='permissions'}class="select"{/if}><a href="{SITE_URL}index.php?app=photo&ac=admin&mg=permissions">权限配置</a></li>
|
||||
|
||||
<li {if $mg=='album'}class="select"{/if}><a href="{SITE_URL}index.php?app=photo&ac=admin&mg=album&ts=list">相册列表</a></li>
|
||||
|
||||
<li {if $mg=='photo'}class="select"{/if}><a href="{SITE_URL}index.php?app=photo&ac=admin&mg=photo&ts=list">图片列表</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div style="height: 100px;"></div>
|
||||
@@ -0,0 +1,34 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu")}
|
||||
|
||||
|
||||
<form method="POST" action="index.php?app=photo&ac=admin&mg=options&ts=do">
|
||||
<table class="table table-hover">
|
||||
<tr><td width="150">APP名称:</td><td><input style="width:300px;" name="option[appname]" value="{$strOption[appname]}" /></td></tr>
|
||||
|
||||
<tr><td>APP介绍:</td><td><textarea style="width:300px;" name="option[appdesc]">{$strOption[appdesc]}</textarea></td></tr>
|
||||
|
||||
<tr><td>APP关键词:</td><td><input style="width:300px;" name="option[appkey]" value="{$strOption[appkey]}" /></td></tr>
|
||||
|
||||
<tr><td>是否审核:</td><td><input type="radio" name="option[isaudit]" value="0" {if $strOption['isaudit']=='0'}checked{/if} />不审核 <input type="radio" name="option[isaudit]" value="1" {if $strOption['isaudit']=='1'}checked{/if} />审核</td></tr>
|
||||
|
||||
<tr><td></td><td>
|
||||
<input type="hidden" name="token" value="{$_SESSION['token']}" />
|
||||
<input class="btn btn-primary" type="submit" value="提交修改" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
<table class="table table-hover">
|
||||
<tr><td>重新统计相册</td><td><a href="{SITE_URL}index.php?app=photo&ac=admin&mg=album&ts=count">执行</a></td></tr>
|
||||
|
||||
<tr><td>删除空相册</td><td><a href="{SITE_URL}index.php?app=photo&ac=admin&mg=album&ts=nophoto">执行</a></td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,165 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
|
||||
|
||||
<div class="mb-3">
|
||||
{loop $arrUg $key $item}
|
||||
<a class="btn btn-sm {if $item['ugid']==$ugid}btn-secondary{else}btn-outline-secondary{/if}" href="{SITE_URL}index.php?app=photo&ac=admin&mg=permissions&ugid={$item['ugid']}">{$item['ugname']}</a>
|
||||
{/loop}
|
||||
</div>
|
||||
|
||||
|
||||
<form method="POST" action="index.php?app=photo&ac=admin&mg=permissions&ts=do">
|
||||
|
||||
|
||||
<h6 class="font-weight-bold fs14">前台权限</h6>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
<tr>
|
||||
<td width="150">查看图片:</td>
|
||||
<td>
|
||||
<select name="option[photo_show]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['photo_show']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['photo_show']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!--不允许游客发布、修改、删除-->
|
||||
{if $ugid==1 || $ugid==2 || $ugid==3}
|
||||
|
||||
|
||||
<tr>
|
||||
<td>创建相册:</td>
|
||||
<td>
|
||||
<select name="option[photo_create]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['photo_create']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['photo_create']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>修改相册:</td>
|
||||
<td>
|
||||
<select name="option[photo_album_edit]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['photo_album_edit']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['photo_album_edit']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>删除相册:</td>
|
||||
<td>
|
||||
<select name="option[photo_album_del]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['photo_album_del']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['photo_album_del']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>上传图片:</td>
|
||||
<td>
|
||||
<select name="option[photo_upload]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['photo_upload']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['photo_upload']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>修改图片:</td>
|
||||
<td>
|
||||
<select name="option[photo_edit]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['photo_edit']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['photo_edit']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>删除图片:</td>
|
||||
<td>
|
||||
<select name="option[photo_delete]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['photo_delete']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['photo_delete']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<!--管理权限-->
|
||||
{if $ugid==1 || $ugid==2}
|
||||
<h6 class="font-weight-bold fs14">后台权限</h6>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<td width="150">图片配置:</td>
|
||||
<td>
|
||||
<select name="option[photo_admin_options]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['photo_admin_options']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['photo_admin_options']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>权限配置:</td>
|
||||
<td>
|
||||
<select name="option[photo_admin_permissions]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['photo_admin_permissions']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['photo_admin_permissions']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
<h6 class="font-weight-bold fs14">API权限</h6>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
<tr>
|
||||
<td width="150">查看图片:</td>
|
||||
<td>
|
||||
<select name="option[photo_api_show]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['photo_api_show']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['photo_api_show']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<input type="hidden" name="ugid" value="{$ugid}">
|
||||
|
||||
<input class="btn btn-primary" type="submit" value="提交修改" />
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,60 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
|
||||
<thead class="thead-light">
|
||||
<tr><th>PhotoId</th><th>图片</th><th>AlbumID</th>
|
||||
|
||||
<th>UserId</th>
|
||||
<th>统计</th>
|
||||
|
||||
<th>操作</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody class="fs12">
|
||||
|
||||
{loop $arrPhoto $key $item}
|
||||
<tr><td>{$item[photoid]}</td><td><a target="_blank" href="{SITE_URL}uploadfile/photo/{$item[photourl]}">
|
||||
|
||||
{if $item[photourl]}
|
||||
<img src="{php echo tsXimg($item[photourl],'photo',100,100,$item[path])}" />
|
||||
{else}
|
||||
<img src="{SITE_URL}public/images/event_dft.jpg" />
|
||||
{/if}
|
||||
|
||||
</a></td><td>{$item[albumid]}</td>
|
||||
|
||||
<td>{$item[userid]}</td>
|
||||
|
||||
<td>
|
||||
浏览:{$item['count_view']}<br>
|
||||
评论:{$item['count_comment']}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
<a href="{SITE_URL}index.php?app=photo&ac=admin&mg=album&ts=face&photoid={$item[photoid]}">设为封面</a>
|
||||
|
||||
<a href="{SITE_URL}index.php?app=photo&ac=admin&mg=photo&ts=isrecommend&photoid={$item[photoid]}">{if $item[isrecommend]==0}推荐{else}取消推荐{/if}</a>
|
||||
|
||||
|
||||
|
||||
<a href="{SITE_URL}index.php?app=photo&ac=admin&mg=album&ts=del_photo&photoid={$item[photoid]}">删除</a></td></tr>
|
||||
{/loop}
|
||||
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,96 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('photo')}">{$TS_APP['appname']}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">{$strAlbum['albumname']}</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<h1 class="h3 fw400">{$title}</h1>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="c9 fs12">
|
||||
|
||||
<span class="mr-2">{$strAlbum[count_view]} 人浏览</span>
|
||||
|
||||
<span class="mr-2">{$strAlbum[count_photo]} 张照片</span>
|
||||
<span>{$strAlbum[addtime]} 创建</span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row mt-3">
|
||||
|
||||
|
||||
{if $arrPhoto}
|
||||
|
||||
{loop $arrPhoto $key $item}
|
||||
<div class="col-4 col-md-2 mb-3">
|
||||
<div class="thumbnail">
|
||||
<a href="{tsUrl('photo','show',array('id'=>$item[photoid]))}">
|
||||
<img class="mw100" src="{php echo tsXimg($item[photourl],'photo',320,'320',$item[path],1)}" alt="{$strAlbum['albumname']}{$item['title']}">
|
||||
</a>
|
||||
<div class="caption">
|
||||
|
||||
<div class="c9 fs12 mt-1">{$item[count_view]}浏览</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/loop}
|
||||
|
||||
{else}
|
||||
|
||||
<div class="p-3">这个相册现在还没有照片
|
||||
{if $strAlbum[userid] == $TS_USER[userid]}, 你可以 <a class="btn btn-sm btn-outline-info" href="{SITE_URL}index.php?app=photo&ac=upload&albumid={$strAlbum[albumid]}">添加照片</a>{/if}
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
<div class="text-black-50">{$strAlbum[albumdesc]}</div>
|
||||
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="tar fs12 c9 mt-3">
|
||||
|
||||
{if $strAlbum[userid] == $TS_USER[userid] || $TS_USER[isadmin]==1}
|
||||
> <a href="{tsUrl('photo','album',array('ts'=>'edit','albumid'=>$strAlbum['albumid']))}">修改相册</a>
|
||||
> <a href="{tsUrl('photo','upload',array('albumid'=>$strAlbum['albumid']))}">添加照片</a>
|
||||
{if $strAlbum[count_photo]>'0'}
|
||||
> <a href="{tsUrl('photo','album',array('ts'=>'info','albumid'=>$strAlbum['albumid']))}">批量修改</a>{/if}
|
||||
{/if}
|
||||
|
||||
|
||||
{if $strAlbum[userid] == $TS_USER[userid] || $TS_USER[isadmin]==1}
|
||||
> <a href="{tsUrl('photo','album',array('ts'=>'del','albumid'=>$strAlbum['albumid']))}">删除相册</a>
|
||||
{/if}
|
||||
|
||||
|
||||
> <a href="{tsUrl('photo','user',array('id'=>$strAlbum['userid']))}">{$strUser['username']}的相册</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,68 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('photo')}">{$TS_APP['appname']}</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('photo','album',array('id'=>$strAlbum['albumid']))}">{$strAlbum['albumname']}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">修改相册</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<form role="form" method="POST" action="{tsUrl('photo','album',array('ts'=>'editdo'))}">
|
||||
<div class="form-group">
|
||||
<label>相册名称(必填)</label>
|
||||
<input type="text" name="albumname" value="{$strAlbum['albumname']}" class="form-control" >
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>相册介绍:</label>
|
||||
<textarea class="form-control" rows="3" name="albumdesc">{$strAlbum['albumdesc']}</textarea>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="hidden" name="albumid" value="{$strAlbum['albumid']}" />
|
||||
|
||||
<input type="hidden" name="token" value="{$_SESSION['token']}" />
|
||||
<button class="btn btn-sm btn-info" type="submit">修改相册</button>
|
||||
<a class="btn btn-sm text-black-50" href="{tsUrl('photo','album',array('id'=>$strAlbum['albumid']))}">返回相册</a>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-3"></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,79 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('photo')}">{$TS_APP['appname']}</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('photo','album',array('id'=>$strAlbum['albumid']))}">{$strAlbum['albumname']}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">批量修改</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-6">
|
||||
|
||||
|
||||
<form method="post" action="{SITE_URL}index.php?app=photo&ac=album&ts=info_do">
|
||||
|
||||
{loop $arrPhoto $key $item}
|
||||
<div class="photo-item">
|
||||
<div class="cover">
|
||||
<a href=""><img class="mw-100" src="{php echo tsXimg($item[photourl],'photo',320,320,$item[path])}"></a>
|
||||
<div class="choose-cover">
|
||||
<input type="hidden" name="photoid[]" value="{$item[photoid]}" />
|
||||
|
||||
|
||||
|
||||
<input type="radio" {if $strAlbum['albumface']==$item['photourl']}checked="checked"{/if} value="{$item['photoid']}" name="albumface" {if $key==0}checked{/if}><label>设置为封面</label>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="intro">
|
||||
<textarea style="height:50px;" name="photodesc[]">{if $addtime}{$strAlbum['albumname']}{/if}{$item[photodesc]}</textarea>
|
||||
<p><a class="j a_confirm_link" title="删除这张照片" rel="nofollow" href="{SITE_URL}index.php?app=photo&ac=do&ts=photo_del&photoid={$item[photoid]}">删除照片</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{/loop}
|
||||
|
||||
|
||||
<hr />
|
||||
|
||||
<input type="hidden" name="albumid" value="{$strAlbum[albumid]}" />
|
||||
<input class="btn btn-sm btn-info" type="submit" value="保存">
|
||||
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{tsUrl('photo','album',array('id'=>$strAlbum['albumid']))}">返回相册</a>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-3"></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,65 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('photo')}">{$TS_APP['appname']}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">创建新相册</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
{template menu}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<form role="form" method="POST" action="{tsUrl('photo','create',array('ts'=>'do'))}">
|
||||
<div class="form-group">
|
||||
<label>相册名称(必填)</label>
|
||||
<input type="text" name="albumname" class="form-control" >
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>相册介绍:</label>
|
||||
<textarea class="form-control" rows="3" name="albumdesc"></textarea>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="hidden" name="token" value="{$_SESSION['token']}" />
|
||||
<button class="btn btn-sm btn-info" type="submit">创建相册</button>
|
||||
<a class="btn btn-sm text-black-50" href="{tsUrl('photo','user',array('id'=>$userid))}">返回我的相册</a>
|
||||
</form>
|
||||
|
||||
<p>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-4"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,48 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<nav aria-label="breadcrumb" class="position-relative">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">{$TS_APP['appname']}</li>
|
||||
</ol>
|
||||
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:6px;" href="{tsUrl('photo','create')}">创建相册</a>
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
{template menu}
|
||||
|
||||
|
||||
<div class="row">
|
||||
{loop $arrAlbum $key $item}
|
||||
<div class="col-6 col-md-2 mb-3">
|
||||
<a href="{tsUrl('photo','album',array('id'=>$item[albumid]))}">
|
||||
<img class="mw100" src="{if $item[albumface] == ''}{SITE_URL}app/{$app}/skin/photo_album.png{else}{php echo tsXimg($item[albumface],'photo',320,'320',$item[path],1)}{/if}" alt="{$item[albumname]}">
|
||||
</a>
|
||||
|
||||
<div class="caption">
|
||||
<div class="title-cut mt-2">{$item[albumname]}</div>
|
||||
<div class="c9 fs12"> {$item[count_photo]}张图片</div>
|
||||
<div class="fs12 c9">{php echo date('Y-m-d',strtotime($item['addtime']))} 创建</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{/loop}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clear"></div>
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,9 @@
|
||||
<div class="mb-3">
|
||||
<a class="btn btn-sm {if $ac=='index'}btn-outline-secondary{else}text-secondary{/if}" href="{tsUrl('photo')}">最新相册</a>
|
||||
{if $ac=='album' && $ts=='user'}
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{tsUrl('photo','album',array(ts=>user,userid=>$userid))}">{$title}</a>
|
||||
{/if}
|
||||
|
||||
|
||||
</div>
|
||||
<hr />
|
||||
@@ -0,0 +1,64 @@
|
||||
{php include pubTemplate("header")}
|
||||
<div class="container">
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="my_left">
|
||||
|
||||
{php include pubTemplate("my")}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">我的相册</div>
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{loop $arrAlbum $key $item}
|
||||
<div class="col-6 col-md-3">
|
||||
|
||||
<a target="_blank" href="{tsUrl('photo','album',array('id'=>$item[albumid]))}"><img class="mw-100" src="{if $item[albumface] == ''}{SITE_URL}public/images/photo.jpg{else}{php echo tsXimg($item[albumface],'photo',170,'170',$item[path],1)}{/if}" /></a>
|
||||
|
||||
|
||||
<div class="caption">
|
||||
<div class="title-cut">{$item['albumname']}</div>
|
||||
<div class="c9 fs12"> {$item['count_photo']}张照片</div>
|
||||
<div class="fs12 c9">{php echo date('Y-m-d',strtotime($item['addtime']))} 创建</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{/loop}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,62 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">编辑图片信息</div>
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-6">
|
||||
|
||||
|
||||
|
||||
<form method="post" action="{tsUrl('photo','edit',array('ts'=>'do'))}">
|
||||
|
||||
<p>图片:</p>
|
||||
<p>
|
||||
<img src="{php echo tsXimg($strPhoto['photourl'],'photo','320','320',$strPhoto['path'],1)}" />
|
||||
</p>
|
||||
<p>图片名称:</p>
|
||||
<p><input style="width:300px;" name="title" value="{$strPhoto['title']}" /></p>
|
||||
<p>图片介绍:</p>
|
||||
<p><textarea style="width:300px;height:100px;" name="photodesc">{$strPhoto['photodesc']}</textarea></p>
|
||||
|
||||
<p>
|
||||
<input type="hidden" name="photoid" value="{$strPhoto['photoid']}" />
|
||||
|
||||
<input type="hidden" name="token" value="{$_SESSION['token']}" />
|
||||
|
||||
<input class="btn btn-success" type="submit" value="修改" />
|
||||
|
||||
<a class="btn btn-default" href="{tsUrl('photo','show',array('id'=>$photoid))}">返回</a>
|
||||
|
||||
</p>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-3"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,174 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('photo')}">{$TS_APP['appname']}</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('photo','album',array('id'=>$strAlbum['albumid']))}">{$strAlbum['albumname']}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">第{$nowPage}张</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
|
||||
<div class="col-md-8">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<h1 class="h3 fw400">{$strAlbum['albumname']}(第{$nowPage}张)</h1>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="tac fs12 c9">
|
||||
> <a class="mr-2" href="{tsUrl('photo','album',array('id'=>$strAlbum[albumid]))}">返回相册</a>第{$nowPage}张 / 共{$conutPage}张
|
||||
|
||||
{if $nowPage >1}
|
||||
<link href="#" rel="prev">
|
||||
<a id="pre_photo" title="用方向键←可以向前翻页" href="{tsUrl('photo','show',array('id'=>$prev))}">上一张</a>
|
||||
{if $nowPage < $conutPage}
|
||||
/
|
||||
{/if}
|
||||
{/if}
|
||||
{if $nowPage < $conutPage}
|
||||
<link href="#" rel="next">
|
||||
<a id="next_photo" title="用方向键→可以向后翻页" name="next_photo" href="{tsUrl('photo','show',array('id'=>$next))}">下一张</a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="tac show_photo mt-3">
|
||||
{if $nowPage < $conutPage}
|
||||
<a title="点击查看下一张" href="{tsUrl('photo','show',array('id'=>$next))}" class="mainphoto">
|
||||
{/if}
|
||||
<img src="{php echo tsXimg($strPhoto['photourl'],'photo',640,'',$strPhoto['path'])}" alt="{$strAlbum['albumname']}{$strPhoto['title']}" title="{$strAlbum['albumname']}{$strPhoto['title']}" />
|
||||
{if $nowPage < $conutPage}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="tac pd100">
|
||||
{$strPhoto[title]} {$strPhoto[photodesc]}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="c9 fs12">
|
||||
{$strPhoto[count_view]}人浏览
|
||||
上传于{$strPhoto[addtime]}
|
||||
|
||||
<a class="thickbox" target="_blank" href="{$strPhoto['photo_url']}">查看原图</a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="tar c9 fs12">
|
||||
{if $TS_USER[userid] == $strPhoto[userid] || $TS_USER[isadmin]==1}<a href="{tsUrl('photo','edit',array('photoid'=>$strPhoto['photoid']))}">修改</a> |
|
||||
|
||||
<a onclick="return confirm('确定删除?')" href="{SITE_URL}index.php?app=photo&ac=delete&photoid={$strPhoto[photoid]}">删除照片</a>
|
||||
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">评论{if $strPhoto['count_comment']} <small class="text-secondary">({$strPhoto['count_comment']})</small>{/if}</div>
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
|
||||
|
||||
<!--评论列表-->
|
||||
{php include pubTemplate("comment")}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="commentform">
|
||||
|
||||
{if tsIntval($TS_USER[userid])==0}
|
||||
<div class="tac pd20 fw300">
|
||||
<a href="{tsUrl('user','login')}">登录</a> | <a href="{tsUrl('user','register')}">注册</a>
|
||||
</div>
|
||||
{else}
|
||||
|
||||
<form id="comm-form" method="post" action="{SITE_URL}index.php?app=comment&ac=add">
|
||||
<div >
|
||||
<textarea id="tseditor" name="content"></textarea>
|
||||
</div>
|
||||
<div class="row mt-3">
|
||||
<div class="col-md-6">
|
||||
{if $TS_SITE['isauthcode']}
|
||||
<input class="form-control form-control-sm w-auto float-left" name="authcode" placeholder="输入验证码" />
|
||||
<img class="mt-1 ml-1" src="{tsUrl('pubs','code')}" onclick="javascript:newgdcode(this,this.src);" title="点击刷新验证码" alt="点击刷新验证码" style="cursor:pointer;"/>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="mt-1">是否公开:<input type="radio" name="ispublic" value="0" checked />公开 <input type="radio" name="ispublic" value="1" />不公开</div>
|
||||
</div>
|
||||
<div class="col-md-2 text-right">
|
||||
<input type="hidden" name="ptable" value="photo">
|
||||
<input type="hidden" name="pkey" value="photoid">
|
||||
<input type="hidden" name="pid" value="{$strPhoto['photoid']}" />
|
||||
<input type="hidden" name="token" value="{$_SESSION['token']}" />
|
||||
<button class="btn btn-sm btn-info btn-block" type="submit">提交评论</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
|
||||
{php doAction('gobad','300')}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{php doAction('tseditor','mini')}
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,77 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<link href="{SITE_URL}public/js/dropzone/dropzone.css" type="text/css" rel="stylesheet" />
|
||||
<script src="{SITE_URL}public/js/dropzone/dropzone.js"></script>
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('photo')}">{$TS_APP['appname']}</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('photo','album',array('id'=>$strAlbum['albumid']))}">{$strAlbum['albumname']}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">上传图片</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="alert alert-info">上传文件只支持:jpg,gif,png格式。</div>
|
||||
|
||||
|
||||
|
||||
<form id ="myAwesomeDropzone" style="width:100%;border:dashed;" action="{SITE_URL}index.php?app=photo&ac=upload&ts=do" class="dropzone">
|
||||
<input type="hidden" name="albumid" value="{$albumid}">
|
||||
<input type="hidden" name="addtime" value="{$addtime}"/>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
|
||||
<div class="mt-3">
|
||||
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{tsUrl('photo','album',array('id'=>$strAlbum['albumid']))}">返回相册</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<script>
|
||||
Dropzone.options.myAwesomeDropzone = {
|
||||
paramName: "file", // The name that will be used to transfer the file
|
||||
maxFilesize: "{$GLOBALS['TS_SITE']['photo_size']}", // MB
|
||||
{if isMobile()}
|
||||
acceptedFiles:"image/jpeg,image/png,image/gif",
|
||||
{else}
|
||||
acceptedFiles:".jpg,.png,.jpeg,.gif",
|
||||
{/if}
|
||||
dictDefaultMessage:'点击选择图片上传',
|
||||
accept: function(file, done) {
|
||||
if (file.name == "justinbieber.jpg") {
|
||||
done("Naha, you don't.");
|
||||
} else {
|
||||
done();
|
||||
}
|
||||
},
|
||||
queuecomplete:function (file) {
|
||||
window.location = siteUrl+"index.php?app=photo&ac=album&ts=info&albumid={$albumid}&addtime={$addtime}";
|
||||
}
|
||||
|
||||
};
|
||||
</script>
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,47 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('photo')}">{$TS_APP['appname']}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">{$strUser['username']}的相册</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
<h1 class="h3 fw400">{$strUser['username']}的相册</h1>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="row">
|
||||
{loop $arrAlbum $key $item}
|
||||
<div class="col-4 col-md-2">
|
||||
<a href="{tsUrl('photo','album',array('id'=>$item[albumid]))}" class="thumbnail">
|
||||
<img class="mw100" src="{if $item[albumface] == ''}{SITE_URL}public/images/photo.jpg{else}{php echo tsXimg($item[albumface],'photo',320,'320',$item[path],1)}{/if}" alt="{$item[albumname]}">
|
||||
</a>
|
||||
|
||||
<div class="caption">
|
||||
<div class="title-cut">{$item['albumname']}</div>
|
||||
<div class="c9 fs12"> {$item['count_photo']}张照片</div>
|
||||
<div class="fs12 c9">{php echo date('Y-m-d',strtotime($item['addtime']))} 创建</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{/loop}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,272 @@
|
||||
.show_photo{}
|
||||
.show_photo img{max-width:100%;}
|
||||
|
||||
.wr {
|
||||
overflow: hidden;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.albumlst {
|
||||
float: left;
|
||||
margin: 7px;
|
||||
width: 170px;
|
||||
border:solid 1px #CCCCCC;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.album_photo {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
width: 181px;
|
||||
}
|
||||
|
||||
.album_photo img{}
|
||||
|
||||
.album_photo:link {
|
||||
color: #777777;
|
||||
display: block;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.album {
|
||||
background: url("albumback.gif") no-repeat scroll 1px 1px transparent;
|
||||
padding: 4px 7px 7px 4px;
|
||||
}
|
||||
|
||||
.albumlst_r {
|
||||
color: #777777;
|
||||
overflow: hidden;
|
||||
padding-top: 4px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.pl2 {
|
||||
color: #666666;
|
||||
font: 14px/150% Arial,Helvetica,sans-serif;
|
||||
}
|
||||
.albumlst_descri {
|
||||
color: #333333;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.mbt {
|
||||
clear: both;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.mbtl {
|
||||
float: left;
|
||||
margin: 8px 7px 0 0;
|
||||
padding: 0;
|
||||
width: 55px;
|
||||
}
|
||||
|
||||
.mbtrdot {
|
||||
min-height: 55px;
|
||||
overflow: hidden;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.extra {
|
||||
clear: both;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.photitle {
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
margin-bottom: 5px;
|
||||
padding-bottom: 5px;
|
||||
text-align: right;
|
||||
}
|
||||
.photo_wrap {
|
||||
display: inline;
|
||||
float: left;
|
||||
margin: 10px 7px;
|
||||
overflow: hidden;
|
||||
width: 170px;
|
||||
border:solid 1px #CCCCCC;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
|
||||
|
||||
}
|
||||
.photolst_photo {
|
||||
margin: 0;
|
||||
width: 180px;
|
||||
}
|
||||
.photo_wrap .pl {
|
||||
margin: 6px 0 3px;
|
||||
}
|
||||
.gact {
|
||||
color: #BBBBBB;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sns-bar {
|
||||
clear: both;
|
||||
color: #666666;
|
||||
margin-bottom: 20px;
|
||||
overflow: hidden;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.sns-bar-donate {
|
||||
float: left;
|
||||
margin-right: 15px;
|
||||
}
|
||||
.sns-bar-rec {
|
||||
float: left;
|
||||
}
|
||||
.sns-bar form, .sns-bar .rec-sec {
|
||||
display: inline-block;
|
||||
float: none;
|
||||
}
|
||||
.rec-sec {
|
||||
color: #999999;
|
||||
text-align: right;
|
||||
}
|
||||
.lnk-sharing {
|
||||
border: 1px solid #B9DCD0;
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
display: inline-block;
|
||||
height: 19px;
|
||||
line-height: 19px;
|
||||
overflow: hidden;
|
||||
padding: 0 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
a.lnk-sharing:link, a.lnk-sharing:visited {
|
||||
background-color: #F2F8F2;
|
||||
border-color: #E3F1ED;
|
||||
color: #4F946E;
|
||||
}
|
||||
.sns-bar-fav {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.btn-fav {
|
||||
border: 1px solid #EDCEBA;
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
display: inline-block;
|
||||
height: 19px;
|
||||
line-height: 19px;
|
||||
margin-left: 4px;
|
||||
overflow: hidden;
|
||||
padding: 0 8px 0 30px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.fav-add, .fav-add:link, .fav-add:hover {
|
||||
background: url("ic_like.png") no-repeat scroll 8px 3px transparent;
|
||||
}
|
||||
a.btn-fav:link, a.btn-fav:visited {
|
||||
background-color: #FFF6EE;
|
||||
border-color: #F2ECE7;
|
||||
color: #99776B;
|
||||
}
|
||||
.clearfix {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.rr {
|
||||
float: right;
|
||||
}
|
||||
.ll {
|
||||
float: left;
|
||||
}
|
||||
.photo_descri {
|
||||
overflow: hidden;
|
||||
padding: 0 0 0 14px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.edtext {
|
||||
margin: 7px 0 15px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#comments {
|
||||
overflow: hidden;
|
||||
padding: 20px 0 0;
|
||||
width: 100%;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.wrap {
|
||||
background: url("topicbar.gif") no-repeat scroll 0 0 transparent;
|
||||
display: block;
|
||||
}
|
||||
h4 {
|
||||
background: url("topicbar.gif") no-repeat scroll right top transparent;
|
||||
color: #666666;
|
||||
font: 12px/1.8em Arial,Helvetica,sans-serif;
|
||||
height: 26px;
|
||||
margin: 0 0 10px 4px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
.gact a:link, a.gact:link {
|
||||
color: #BBBBBB;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
.txd textarea {
|
||||
width: 90%;
|
||||
}
|
||||
textarea {
|
||||
border: 1px solid #CCCCCC;
|
||||
font-size: 14px;
|
||||
padding: 3px;
|
||||
}
|
||||
textarea {
|
||||
font-family: Arial;
|
||||
overflow: auto;
|
||||
}
|
||||
textarea {
|
||||
resize: none;
|
||||
}
|
||||
|
||||
.photo-complete {
|
||||
background: none repeat scroll 0 0 #F8F8F8;
|
||||
margin-bottom: 15px;
|
||||
padding: 15px 20px 1px;
|
||||
}
|
||||
.photo-item {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.photo-item .cover {
|
||||
float:left;
|
||||
margin-right: 10px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.photo-item .cover a {
|
||||
display: block;
|
||||
margin-bottom: -3px;
|
||||
text-align: center;
|
||||
width: 100px;
|
||||
}
|
||||
.photo-item .choose-cover {
|
||||
text-align: center;
|
||||
}
|
||||
label {
|
||||
font-family: Tahoma;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
.photo-item .intro{margin-left: 110px;}
|
||||
|
||||
.photo-item .intro textarea {
|
||||
border: 1px solid #DDDDDD;
|
||||
color: #666666;
|
||||
padding: 5px;
|
||||
width: 100%;
|
||||
border-radius: 5px;
|
||||
|
||||
}
|
||||
.photo-item .intro p {
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,272 @@
|
||||
.show_photo{}
|
||||
.show_photo img{max-width:100%;}
|
||||
|
||||
.wr {
|
||||
overflow: hidden;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.albumlst {
|
||||
float: left;
|
||||
margin: 7px;
|
||||
width: 170px;
|
||||
border:solid 1px #CCCCCC;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.album_photo {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
width: 181px;
|
||||
}
|
||||
|
||||
.album_photo img{}
|
||||
|
||||
.album_photo:link {
|
||||
color: #777777;
|
||||
display: block;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.album {
|
||||
background: url("albumback.gif") no-repeat scroll 1px 1px transparent;
|
||||
padding: 4px 7px 7px 4px;
|
||||
}
|
||||
|
||||
.albumlst_r {
|
||||
color: #777777;
|
||||
overflow: hidden;
|
||||
padding-top: 4px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.pl2 {
|
||||
color: #666666;
|
||||
font: 14px/150% Arial,Helvetica,sans-serif;
|
||||
}
|
||||
.albumlst_descri {
|
||||
color: #333333;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.mbt {
|
||||
clear: both;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.mbtl {
|
||||
float: left;
|
||||
margin: 8px 7px 0 0;
|
||||
padding: 0;
|
||||
width: 55px;
|
||||
}
|
||||
|
||||
.mbtrdot {
|
||||
min-height: 55px;
|
||||
overflow: hidden;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.extra {
|
||||
clear: both;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.photitle {
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
margin-bottom: 5px;
|
||||
padding-bottom: 5px;
|
||||
text-align: right;
|
||||
}
|
||||
.photo_wrap {
|
||||
display: inline;
|
||||
float: left;
|
||||
margin: 10px 7px;
|
||||
overflow: hidden;
|
||||
width: 170px;
|
||||
border:solid 1px #CCCCCC;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
|
||||
|
||||
}
|
||||
.photolst_photo {
|
||||
margin: 0;
|
||||
width: 180px;
|
||||
}
|
||||
.photo_wrap .pl {
|
||||
margin: 6px 0 3px;
|
||||
}
|
||||
.gact {
|
||||
color: #BBBBBB;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sns-bar {
|
||||
clear: both;
|
||||
color: #666666;
|
||||
margin-bottom: 20px;
|
||||
overflow: hidden;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.sns-bar-donate {
|
||||
float: left;
|
||||
margin-right: 15px;
|
||||
}
|
||||
.sns-bar-rec {
|
||||
float: left;
|
||||
}
|
||||
.sns-bar form, .sns-bar .rec-sec {
|
||||
display: inline-block;
|
||||
float: none;
|
||||
}
|
||||
.rec-sec {
|
||||
color: #999999;
|
||||
text-align: right;
|
||||
}
|
||||
.lnk-sharing {
|
||||
border: 1px solid #B9DCD0;
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
display: inline-block;
|
||||
height: 19px;
|
||||
line-height: 19px;
|
||||
overflow: hidden;
|
||||
padding: 0 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
a.lnk-sharing:link, a.lnk-sharing:visited {
|
||||
background-color: #F2F8F2;
|
||||
border-color: #E3F1ED;
|
||||
color: #4F946E;
|
||||
}
|
||||
.sns-bar-fav {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.btn-fav {
|
||||
border: 1px solid #EDCEBA;
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
display: inline-block;
|
||||
height: 19px;
|
||||
line-height: 19px;
|
||||
margin-left: 4px;
|
||||
overflow: hidden;
|
||||
padding: 0 8px 0 30px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.fav-add, .fav-add:link, .fav-add:hover {
|
||||
background: url("ic_like.png") no-repeat scroll 8px 3px transparent;
|
||||
}
|
||||
a.btn-fav:link, a.btn-fav:visited {
|
||||
background-color: #FFF6EE;
|
||||
border-color: #F2ECE7;
|
||||
color: #99776B;
|
||||
}
|
||||
.clearfix {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.rr {
|
||||
float: right;
|
||||
}
|
||||
.ll {
|
||||
float: left;
|
||||
}
|
||||
.photo_descri {
|
||||
overflow: hidden;
|
||||
padding: 0 0 0 14px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.edtext {
|
||||
margin: 7px 0 15px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#comments {
|
||||
overflow: hidden;
|
||||
padding: 20px 0 0;
|
||||
width: 100%;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.wrap {
|
||||
background: url("topicbar.gif") no-repeat scroll 0 0 transparent;
|
||||
display: block;
|
||||
}
|
||||
h4 {
|
||||
background: url("topicbar.gif") no-repeat scroll right top transparent;
|
||||
color: #666666;
|
||||
font: 12px/1.8em Arial,Helvetica,sans-serif;
|
||||
height: 26px;
|
||||
margin: 0 0 10px 4px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
.gact a:link, a.gact:link {
|
||||
color: #BBBBBB;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
.txd textarea {
|
||||
width: 90%;
|
||||
}
|
||||
textarea {
|
||||
border: 1px solid #CCCCCC;
|
||||
font-size: 14px;
|
||||
padding: 3px;
|
||||
}
|
||||
textarea {
|
||||
font-family: Arial;
|
||||
overflow: auto;
|
||||
}
|
||||
textarea {
|
||||
resize: none;
|
||||
}
|
||||
|
||||
.photo-complete {
|
||||
background: none repeat scroll 0 0 #F8F8F8;
|
||||
margin-bottom: 15px;
|
||||
padding: 15px 20px 1px;
|
||||
}
|
||||
.photo-item {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.photo-item .cover {
|
||||
float:left;
|
||||
margin-right: 10px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.photo-item .cover a {
|
||||
display: block;
|
||||
margin-bottom: -3px;
|
||||
text-align: center;
|
||||
width: 100px;
|
||||
}
|
||||
.photo-item .choose-cover {
|
||||
text-align: center;
|
||||
}
|
||||
label {
|
||||
font-family: Tahoma;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
.photo-item .intro{margin-left: 110px;}
|
||||
|
||||
.photo-item .intro textarea {
|
||||
border: 1px solid #DDDDDD;
|
||||
color: #666666;
|
||||
padding: 5px;
|
||||
width: 100%;
|
||||
border-radius: 5px;
|
||||
|
||||
}
|
||||
.photo-item .intro p {
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
}
|
||||
Reference in New Issue
Block a user