Exemplo n.º 1
0
 function getOneUser($userid)
 {
     $strUser = $this->find('user_info', array('userid' => $userid));
     if ($strUser) {
         $strUser['username'] = tsTitle($strUser['username']);
         $strUser['email'] = tsTitle($strUser['email']);
         $strUser['phone'] = tsTitle($strUser['phone']);
         $strUser['province'] = tsTitle($strUser['province']);
         $strUser['city'] = tsTitle($strUser['city']);
         $strUser['signed'] = tsTitle($strUser['signed']);
         $strUser['about'] = tsTitle($strUser['about']);
         $strUser['address'] = tsTitle($strUser['address']);
         if ($strUser['face'] && $strUser['path']) {
             $strUser['face'] = tsXimg($strUser['face'], 'user', 120, 120, $strUser['path'], 1);
         } elseif ($strUser['face'] && $strUser['path'] == '') {
             $strUser['face'] = SITE_URL . 'public/images/' . $strUser['face'];
         } else {
             //没有头像
             $strUser['face'] = SITE_URL . 'public/images/user_large.jpg';
         }
     } else {
         $strUser = '';
     }
     return $strUser;
 }
Exemplo n.º 2
0
 public function getRedeemGoods($goodsid)
 {
     $strGoods = $this->find('redeem_goods', array('goodsid' => $goodsid));
     if ($strGoods['photo']) {
         $strGoods['photo'] = tsXimg($strGoods['photo'], 'redeem', '150', '150', $strGoods['path'], 1);
     } else {
         $strGoods['photo'] = SITE_URL . 'public/images/redeem.png';
     }
     return $strGoods;
 }
Exemplo n.º 3
0
 function getOneGroup($groupid)
 {
     $strGroup = $this->find('group', array('groupid' => $groupid));
     if ($strGroup) {
         $strGroup['groupname'] = tsTitle($strGroup['groupname']);
         $strGroup['groupdesc'] = tsDecode($strGroup['groupdesc']);
         if ($strGroup['photo']) {
             $strGroup['photo'] = tsXimg($strGroup['photo'], 'group', 120, 120, $strGroup['path'], 1);
         } else {
             $strGroup['photo'] = SITE_URL . 'public/images/group.jpg';
         }
     }
     return $strGroup;
 }
Exemplo n.º 4
0
<?php

defined('IN_TS') or die('Access Denied.');
//加入的小组
$arrGroupsList = $new['group']->findAll('group_user', array('userid' => $strUser['userid']), null, 'groupid');
foreach ($arrGroupsList as $key => $item) {
    $arrGroup[] = aac('group')->getOneGroup($item['groupid']);
}
//创建的小组
$arrCreateGroup = $new['group']->findAll('group', array('userid' => $strUser['userid']));
foreach ($arrCreateGroup as $key => $item) {
    if ($item['photo']) {
        $arrCreateGroup[$key]['photo'] = tsXimg($item['photo'], 'group', 120, 120, $item['path'], 1);
    } else {
        $arrCreateGroup[$key]['photo'] = SITE_URL . 'public/images/group.jpg';
    }
}
$title = '我加入的小组';
include template('my/index');
}
?>
的圖首页</a>
</div>
<div class="row">
<?php 
if ($arrPhoto) {
    foreach ((array) $arrPhoto as $key => $item) {
        ?>
<div class="col-sm-6 p3">
<div class="thumbnail">
<a href="<?php 
        echo tsurl('photo', 'show', array('id' => $item['photoid']));
        ?>
"><img src="<?php 
        echo tsXimg($item['photourl'], 'photo', 300, '300', $item['path'], 1);
        ?>
" alt="<?php 
        echo $strAlbum['albumname'];
        echo $item['photoname'];
        ?>
" class="p3"></a>
<div class="caption">
</div>
</div>
</div>
<?php 
    }
} else {
    ?>
<br>
</textarea>
</div>
<div class="form-group">
<label>标签:</label>
<input name="tag" type="text" class="form-control" value="<?php 
echo $strArticle['tag'];
?>
">
</div>
<div class="form-group">
<label>封面图片:</label>
<?php 
if ($strArticle['photo']) {
    ?>
<img src="<?php 
    echo tsXimg($strArticle['photo'], 'article', 180, 140, $strArticle['path'], '1');
    ?>
" /><br />
<?php 
}
?>
<input name="photo" type="file">
</div>
<input type="hidden" name="token" value="<?php 
echo $_SESSION['token'];
?>
" />
<input type="hidden" name="articleid" value="<?php 
echo $strArticle['articleid'];
?>
" />
    ?>
<div class="item<?php 
    if ($key == 0) {
        ?>
 active<?php 
    }
    ?>
">
<a href="<?php 
    echo $item['url'];
    ?>
" title="<?php 
    echo $item['title'];
    ?>
"><img src="<?php 
    echo tsXimg($item['photo'], 'slide', '1920', '500', $item['path'], 1);
    ?>
" alt="<?php 
    echo $item['title'];
    ?>
" class="si" ></a>
<div class="carousel-caption">
<a href="<?php 
    echo $item['url'];
    ?>
"><?php 
    echo $item['title'];
    ?>
</a>
</div>
</div>
Exemplo n.º 8
0
</div>
<div class="col-md-10">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<?php 
foreach ((array) $arrEvent as $key => $item) {
    ?>
<div class="col-sm-6 col-md-3">
<div class="thumbnail">
<a href="<?php 
    echo tsurl('event', 'show', array('id' => $item['eventid']));
    ?>
"><img src="<?php 
    if ($item['photo']) {
        echo tsXimg($item['photo'], 'event', '220', '150', $item['path'], '1');
    } else {
        echo SITE_URL;
        ?>
app/event/skins/default/event.jpg<?php 
    }
    ?>
" alt="<?php 
    echo $item['title'];
    ?>
" height="150"></a>
<div class="caption">
<h3><a href="<?php 
    echo tsurl('event', 'show', array('id' => $item['eventid']));
    ?>
"><?php 
Exemplo n.º 9
0
<a target="_blank" href="<?php 
    echo tsurl('photo', 'album', array('id' => $item['albumid']));
    ?>
" class="album_photo"><img src="<?php 
    if ($item['albumface'] == '') {
        echo SITE_URL;
        ?>
app/<?php 
        echo $app;
        ?>
/skins/<?php 
        echo $skin;
        ?>
/photo_album.png<?php 
    } else {
        echo tsXimg($item['albumface'], 'photo', 170, '170', $item['path'], 1);
    }
    ?>
" width="170" alt="<?php 
    echo $item['albumname'];
    ?>
" /></a>
<div class="albumlst_r">
<p class="pd05"><a target="_blank" href="<?php 
    echo tsurl('photo', 'album', array('id' => $item['albumid']));
    ?>
"><?php 
    echo $item['albumname'];
    ?>
</a></p>
<p class="pd05">
Exemplo n.º 10
0
<div class="cleft">
<div class="clist">
<ul>
<?php 
foreach ((array) $arrArticle as $key => $item) {
    ?>
<li>
<?php 
    if ($item['photo']) {
        ?>
<a href="<?php 
        echo tsurl('article', 'show', array('id' => $item['articleid']));
        ?>
">
<img style="float:left;" src="<?php 
        echo tsXimg($item['photo'], 'article', 180, 140, $item['path'], '1');
        ?>
" />
</a>
<?php 
    }
    ?>
<div><a href="<?php 
    echo tsurl('article', 'show', array('id' => $item['articleid']));
    ?>
"><?php 
    echo htmlspecialchars($item['title']);
    ?>
</a></div>
<span><a href="<?php 
    echo tsurl('user', 'space', array('id' => $item['user'][userid]));
Exemplo n.º 11
0
<li><a href="<?php 
    echo tsurl('message', 'my');
    ?>
"><i class="icon-envelope-alt"></i><span class="badge t" id="newmsg"></span></a></li>
<li class="dropdown t">
<a href="<?php 
    echo tsurl('user', 'space', array('id' => $TS_USER['userid']));
    ?>
" >
<img class="img-circle" src="<?php 
    if ($GLOBALS['TS_USER']['face'] == "") {
        echo SITE_URL;
        ?>
public/images/user_normal.jpg<?php 
    } else {
        echo tsXimg($GLOBALS['TS_USER']['face'], 'user', '120', '120', $GLOBALS['TS_USER'][path], '1');
    }
    ?>
" align="absmiddle" alt="<?php 
    echo $GLOBALS['TS_USER']['username'];
    ?>
" />
<?php 
    echo $GLOBALS['TS_USER'][username];
    ?>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php 
    echo tsurl('my', 'setting', array('ts' => 'base'));
    ?>
" ><i class="icon-cog"></i></a></li>
<?php 
Exemplo n.º 12
0
?>
</li>
</ol>
<div class="row">
<div class="col-md-8">
<div class="bbox">
<div class="bc event">
<h1><?php 
echo $strEvent['title'];
?>
</h1>
<div class="photo">
<a href="">
<img title="点击看大图" src="<?php 
if ($strEvent['photo']) {
    echo tsXimg($strEvent['photo'], 'event', 500, '', $strEvent['path']);
} else {
    echo SITE_URL;
    ?>
app/event/skins/default/event.jpg<?php 
}
?>
" />
</a>
</div>
<div class="info">
开始时间: <?php 
echo date('Y-m-d H:i', strtotime($strEvent['starttime']));
?>
<br>
结束时间: <?php 
Exemplo n.º 13
0
}
?>
</div>
<div class="tac show_photo">
<?php 
if ($nowPage < $conutPage) {
    ?>
<a title="点击查看下一张" href="<?php 
    echo tsurl('photo', 'show', array('id' => $next));
    ?>
" class="mainphoto">
<?php 
}
?>
<img src="<?php 
echo tsXimg($strPhoto['photourl'], 'photo', 600, '', $strPhoto['path']);
?>
" alt="<?php 
echo $strAlbum['albumname'];
echo $strPhoto['photoname'];
?>
" title="<?php 
echo $strAlbum['albumname'];
echo $strPhoto['photoname'];
?>
" />
<?php 
if ($nowPage < $conutPage) {
    ?>
</a>
<?php 
Exemplo n.º 14
0
}
?>
</ul>


<div class="goodslist">
<ul>
<?php 
foreach ((array) $arrGoods as $key => $item) {
    ?>
<li><a href="<?php 
    echo tsurl('redeem', 'goods', array('id' => $item['goodsid']));
    ?>
"><img src="<?php 
    if ($item['photo']) {
        echo tsXimg($item['photo'], 'redeem', '150', '150', $item['path'], 1);
    } else {
        echo SITE_URL;
        ?>
public/images/redeem.png<?php 
    }
    ?>
" alt="<?php 
    echo $item['title'];
    ?>
" width="150" /></a>
<p class="content"><a href="<?php 
    echo tsurl('redeem', 'goods', array('id' => $item['goodsid']));
    ?>
"><?php 
    echo $item['title'];
Exemplo n.º 15
0
<div class="col-md-8">
<div class="bbox">
<div class="be">
<div id="group_content" style="margin-top:10px;">
<?php 
foreach ((array) $arrGroup as $key => $item) {
    ?>
<div class="sub-item">
<div class="pic">
<a href="<?php 
    echo tsurl('group', 'show', array('id' => $item['groupid']));
    ?>
">
<img src="<?php 
    if ($item['photo']) {
        echo tsXimg($item['photo'], 'group', '120', '120', $item['path'], 1);
    } else {
        echo SITE_URL;
        ?>
public/images/group.jpg<?php 
    }
    ?>
" alt="<?php 
    echo $item['groupname'];
    ?>
" />
</a>
<div class="joing">
<?php 
    if (in_array($item['groupid'], $myGroup)) {
        ?>
Exemplo n.º 16
0
    ?>
<tr><td><?php 
    echo $item['albumid'];
    ?>
</td><td><a href="<?php 
    echo SITE_URL;
    ?>
index.php?app=photo&ac=admin&mg=album&ts=photo&albumid=<?php 
    echo $item['albumid'];
    ?>
">
<?php 
    if ($item['albumface']) {
        ?>
<img src="<?php 
        echo tsXimg($item['albumface'], 'photo', 100, 100, $item['path']);
        ?>
" />
<?php 
    } else {
        ?>
<img src="<?php 
        echo SITE_URL;
        ?>
public/images/event_dft.jpg" />
<?php 
    }
    ?>
</a></td><td><?php 
    echo $item['userid'];
    ?>
Exemplo n.º 17
0
    echo tsurl('photo', 'album', array('id' => $item['albumid']));
    ?>
" class="thumbnail">
<img src="<?php 
    if ($item['albumface'] == '') {
        echo SITE_URL;
        ?>
app/<?php 
        echo $app;
        ?>
/skins/<?php 
        echo $skin;
        ?>
/photo_album.png<?php 
    } else {
        echo tsXimg($item['albumface'], 'photo', 320, '300', $item['path'], 1);
    }
    ?>
" alt="<?php 
    echo $item['albumname'];
    ?>
" >
<p class="caption"> <?php 
    echo $item['count_photo'];
    ?>
</p>
</a>
<div>
<h3 style=" bottom: 40px; position: relative;
"><a href="<?php 
    echo tsurl('photo', 'album', array('id' => $item['albumid']));
<form method="POST" action="<?php 
echo SITE_URL;
?>
index.php?app=group&ac=do&ts=photo" enctype="multipart/form-data" >
<div class="form-group">
<label class="col-sm-2 control-label">文化图标:</label>
<div class="col-sm-10">
<img alt="<?php 
echo $strGroup['groupname'];
?>
" title="<?php 
echo $strGroup['groupname'];
?>
" valign="middle" src="<?php 
if ($strGroup['photo']) {
    echo tsXimg($strGroup['photo'], 'group', '120', '120', $strGroup['path']);
    ?>
?v=<?php 
    echo rand();
} else {
    echo SITE_URL;
    ?>
public/images/group.jpg<?php 
}
?>
">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label pd10"></label>
<div class="col-sm-10">
Exemplo n.º 19
0
    ?>
<tr><td><?php 
    echo $item['photoid'];
    ?>
</td><td><a target="_blank" href="<?php 
    echo SITE_URL;
    ?>
uploadfile/photo/<?php 
    echo $item['photourl'];
    ?>
">
<?php 
    if ($item['photourl']) {
        ?>
<img src="<?php 
        echo tsXimg($item['photourl'], 'photo', 100, 100, $item['path']);
        ?>
" />
<?php 
    } else {
        ?>
<img src="<?php 
        echo SITE_URL;
        ?>
public/images/event_dft.jpg" />
<?php 
    }
    ?>
</a></td><td><?php 
    echo $item['albumid'];
    ?>
Exemplo n.º 20
0
"><?php 
    echo $item['title'];
    ?>
</a></div>
<div class="content">
<?php 
    if ($item['photo']) {
        ?>
<a target="_blank" href="<?php 
        echo SITE_URL;
        ?>
uploadfile/weibo/<?php 
        echo $item['photo'];
        ?>
"><img src="<?php 
        echo tsXimg($item['photo'], 'weibo', 240, '', $item['path']);
        ?>
" /></a><?php 
    }
    echo tsDecode($item['content']);
    ?>
</div>
<p style="text-align:right;">

<a href="<?php 
    echo tsurl('weibo', 'show', array('id' => $item['weiboid']));
    ?>
"><?php 
    if ($item['count_comment'] > '0') {
        ?>
(<?php