コード例 #1
0
ファイル: theme.php プロジェクト: wangjiang988/ukshop
 /**
  * ajax获取回复相关信息 话题列表页使用
  */
 public function ajax_quickreplyOp()
 {
     // 话题信息
     $this->themeInfo();
     $data = array();
     $data['form_action'] = CIRCLE_SITE_URL . '/index.php?act=theme&op=save_reply&type=quick&c_id=' . $this->c_id . '&t_id=' . $this->t_id;
     $data['member_avatar'] = uk86_getMemberAvatarForID($_SESSION['member_id']);
     // 头像
     // 回复
     $reply_list = Model()->table('circle_threply')->where(array('theme_id' => $this->t_id, 'circle_id' => $this->c_id))->order('reply_id desc')->limit(5)->select();
     if (!empty($reply_list)) {
         foreach ($reply_list as $key => $val) {
             $reply_list[$key]['member_avatar'] = uk86_getMemberAvatarForID($val['member_id']);
             $reply_list[$key]['reply_addtime'] = date('Y-m-d H:i', $val['reply_addtime']);
             $reply_list[$key]['reply_content'] = uk86_removeUBBTag($val['reply_content']);
         }
     }
     $data['reply_list'] = $reply_list;
     $data['c_istalk'] = intval(C('circle_istalk'));
     $data['c_contentleast'] = intval(C('circle_contentleast'));
     if (intval(C('circle_contentleast')) > 0) {
         $data['c_contentmsg'] = sprintf(L('nc_content_min_length'), intval(C('circle_contentleast')));
     } else {
         $data['c_contentmsg'] = L('nc_content_not_null');
     }
     if (strtoupper(CHARSET) == 'GBK') {
         $data = Uk86Language::uk86_getUTF8($data);
     }
     echo json_encode($data);
     exit;
 }
コード例 #2
0
ファイル: member_index.php プロジェクト: wangjiang988/ukshop
 /**
  * 我的商城
  */
 public function indexOp()
 {
     $member_info = array();
     $member_info['user_name'] = $this->member_info['member_name'];
     $member_info['avator'] = uk86_getMemberAvatarForID($this->member_info['member_id']);
     $member_info['point'] = $this->member_info['member_points'];
     $member_info['predepoit'] = $this->member_info['available_predeposit'];
     output_data(array('member_info' => $member_info));
 }
コード例 #3
0
    <div class="user-avatar">
        <a <?php 
        if ($v['geval_isanonymous'] != 1) {
            ?>
href="index.php?act=member_snshome&mid=<?php 
            echo $v['geval_frommemberid'];
            ?>
" target="_blank" data-param="{'id':<?php 
            echo $v['geval_frommemberid'];
            ?>
}" nctype="mcard"<?php 
        }
        ?>
> 
            <img src="<?php 
        echo uk86_getMemberAvatarForID($v['geval_frommemberid']);
        ?>
">
        </a>
    </div>
  <dl class="detail">
      <dt>
      <span class="user-name">
      <?php 
        if ($v['geval_isanonymous'] == 1) {
            ?>
      <?php 
            echo uk86_str_cut($v['geval_frommembername'], 2) . '***';
            ?>
      <?php 
        } else {
コード例 #4
0
ファイル: sns_home.php プロジェクト: wangjiang988/ukshop
"><?php 
    echo $lang['nc_more'];
    ?>
</a></span>
  </div>
  <ul class="fd-list" id="friendtrace">
    <?php 
    foreach ($output['tracelist'] as $k => $v) {
        ?>
    <li nc_type="tracerow_<?php 
        echo $v['trace_id'];
        ?>
">
      <dl class="fd-wrap">
        <dt><img src="<?php 
        echo uk86_getMemberAvatarForID($v['trace_memberid']);
        ?>
"  data-param="{'id':<?php 
        echo $v['trace_memberid'];
        ?>
}" nctype="mcard">
          <h3><a href="index.php?act=member_snshome&mid=<?php 
        echo $v['trace_memberid'];
        ?>
" target="_blank" data-param="{'id':<?php 
        echo $v['trace_memberid'];
        ?>
}" nctype="mcard"><?php 
        echo $v['trace_membername'];
        echo $lang['nc_colon'];
        ?>
コード例 #5
0
    <?php 
if ($output['relation'] == 3) {
    ?>
    <ul id="visit_other" nc_type="visitlist" style="display: none;">
      <?php 
    if (!empty($output['visitother_list'])) {
        ?>
      <?php 
        foreach ($output['visitother_list'] as $k => $v) {
            ?>
      <li>
        <div class="visitor-pic"><span class="thumb size60"><i></i><a href="index.php?act=member_snshome&mid=<?php 
            echo $v['v_ownermid'];
            ?>
" target="_blank"> <img src="<?php 
            echo uk86_getMemberAvatarForID($v['v_ownermid']);
            ?>
" data-param="{'id':<?php 
            echo $v['v_ownermid'];
            ?>
}" nctype="mcard" onload="javascript:DrawImage(this,60,60);"> </a></span></div>
        <p class="visitor-name"><a href="index.php?act=member_snshome&mid=<?php 
            echo $v['v_ownermid'];
            ?>
" target="_blank" data-param="{'id':<?php 
            echo $v['v_ownermid'];
            ?>
}" nctype="mcard"><?php 
            echo $v['v_ownermname'];
            ?>
</a></p>
コード例 #6
0
        <?php 
if (!empty($output['member_list'])) {
    ?>
        <?php 
    foreach ($output['member_list'] as $val) {
        ?>
        <tr class="hover edit member">
          <td class="w24"><input type="checkbox" name="check_param[]" value="<?php 
        echo $val['member_id'];
        ?>
|<?php 
        echo $val['circle_id'];
        ?>
" class="checkitem"></td>
          <td class="w48 picture"><div class="size-44x44"><img src="<?php 
        echo uk86_getMemberAvatarForID($val['member_id']);
        ?>
" class="size-44x44"/></div></td>
          <td><p><strong><?php 
        echo $val['member_name'];
        ?>
</strong></p></td>
          <td><p class="name"><strong><?php 
        echo $val['circle_name'];
        ?>
</strong>(<?php 
        switch (intval($val['is_identity'])) {
            case 1:
                echo L('circle_member_identity_master');
                break;
            case 2:
コード例 #7
0
ファイル: circle.theme.php プロジェクト: wangjiang988/ukshop
  
  <?php 
if (!empty($output['reply_list']) && is_array($output['reply_list'])) {
    ?>
  <div class="theme-apply-top"><i class="icon-angle-up"></i>评论<?php 
    echo $output['theme_info']['theme_commentcount'];
    ?>
</div>
  <ul class="theme-apply-list">
    <?php 
    foreach ($output['reply_list'] as $reply_info) {
        ?>
  	<li>
  	  <dl>
  	    <dt><img src="<?php 
        echo uk86_getMemberAvatarForID($reply_info['member_id']);
        ?>
"></dt>
  	    <dd>
  	    	<h1><?php 
        echo $reply_info['member_name'];
        ?>
</h1><em><?php 
        echo date('Y-m-d H:i', $reply_info['reply_addtime']);
        ?>
</em>
  	    	<font><?php 
        echo $reply_info['reply_content'];
        ?>
</font>
  	    </dd>
コード例 #8
0
ファイル: seller_layout.php プロジェクト: wangjiang988/ukshop
    <dd>关闭原因:<?php 
    echo $output['store_close_info'];
    ?>
</dd>
    <dd>在此期间,您的店铺以及商品将无法访问;如果您有异议或申诉请及时联系平台管理。</dd>
  </dl>
</div>
<?php 
}
?>
<header class="ncsc-head-layout w">
  <div class="wrapper">
    <div class="ncsc-admin">
      <dl class="ncsc-admin-info">
        <dt class="admin-avatar"><img src="<?php 
echo uk86_getMemberAvatarForID($_SESSION['member_id']);
?>
" width="32" class="pngFix" alt=""/></dt>
        <dd class="admin-permission">当前用户</dd>
        <dd class="admin-name"><?php 
echo $_SESSION['seller_name'];
?>
</dd>
      </dl>
      <div class="ncsc-admin-function"><a href="<?php 
echo uk86_urlShop('show_store', 'index', array('store_id' => $_SESSION['store_id']), $output['store_info']['store_domain']);
?>
" title="前往店铺" ><i class="icon-home"></i></a><a href="<?php 
echo uk86_urlShop('member_security', 'auth', array('type' => 'modify_pwd'));
?>
" title="修改密码" target="_blank"><i class="icon-wrench"></i></a><a href="<?php 
コード例 #9
0
  	<div class="comment_list <?php 
if (empty($output['comment'])) {
    echo 'hidden';
}
?>
">
  		<div class="comment_list_title">最新评论</div>
  		<?php 
if (!empty($output['comment']) && is_array($output['comment'])) {
    ?>
  		 <?php 
    foreach ($output['comment'] as $val) {
        ?>
  		   <ul>
	  		  <li class="comment_member_avatar"><span><img src="<?php 
        echo uk86_getMemberAvatarForID($val['comment_member_id']);
        ?>
"/></span></li>
	  		  <li class="omment_list_content">
	  		  	<em><?php 
        echo uk86_getMemberNameForId($val['comment_member_id']);
        ?>
</em><span>发表于<?php 
        echo date('Y-m-d H:i:s', $val['comment_time']);
        ?>
</span>
	  		  	<div><?php 
        echo $val['comment_message'];
        ?>
</div>
	  		  	<a class="hovered" cntype="<?php 
コード例 #10
0
ファイル: goods.php プロジェクト: wangjiang988/ukshop
 /**
  * 商品详细页
  */
 public function goods_detailOp()
 {
     $goods_id = intval($_GET['goods_id']);
     // 商品详细信息
     $model_goods = Model('goods');
     $goods_detail = $model_goods->getGoodsDetail($goods_id);
     if (empty($goods_detail)) {
         output_error('商品不存在');
     }
     //推荐商品
     $model_store = Model('store');
     $hot_sales = $model_store->getHotSalesList($goods_detail['goods_info']['store_id'], 6);
     $goods_commend_list = array();
     foreach ($hot_sales as $value) {
         $goods_commend = array();
         $goods_commend['goods_id'] = $value['goods_id'];
         $goods_commend['goods_name'] = $value['goods_name'];
         $goods_commend['goods_price'] = $value['goods_price'];
         $goods_commend['goods_image_url'] = uk86_cthumb($value['goods_image'], 240);
         $goods_commend_list[] = $goods_commend;
     }
     $goods_detail['goods_commend_list'] = $goods_commend_list;
     $store_info = $model_store->getStoreInfoByID($goods_detail['goods_info']['store_id']);
     $goods_detail['store_info']['store_id'] = $store_info['store_id'];
     $goods_detail['store_info']['store_name'] = $store_info['store_name'];
     $goods_detail['store_info']['member_id'] = $store_info['member_id'];
     //显示QQ及旺旺 优康商城
     $goods_detail['store_info']['store_qq'] = $store_info['store_qq'];
     $goods_detail['store_info']['store_ww'] = $store_info['store_ww'];
     $goods_detail['store_info']['store_phone'] = $store_info['store_phone'];
     $goods_detail['store_info']['member_name'] = $store_info['member_name'];
     $goods_detail['store_info']['avatar'] = uk86_getMemberAvatarForID($store_info['member_id']);
     //商品详细信息处理
     $goods_detail = $this->_goods_detail_extend($goods_detail);
     output_data($goods_detail);
 }
コード例 #11
0
ファイル: group.goods.php プロジェクト: wangjiang988/ukshop
" target="_blank" title="<?php 
        echo $val['snsgoods_goodsname'];
        ?>
"><img alt="<?php 
        echo $val['snsgoods_goodsname'];
        ?>
" title="<?php 
        echo $val['snsgoods_goodsname'];
        ?>
" src="<?php 
        echo uk86_cthumb($val['snsgoods_goodsimage'], 240, $val['snsgoods_storeid']);
        ?>
"></a></div>
          <dl class="share-describe">
            <dt class="member-avatar-s"><img src="<?php 
        echo uk86_getMemberAvatarForID($val['share_memberid']);
        ?>
" /></dt>
            <dd class="member-name">
              <h4><a href="javascript:void(0);"><?php 
        echo $val['share_membername'];
        ?>
</a></h4>
              <h5 class="share-date"><?php 
        echo $lang['nc_at'];
        if ($val['share_isshare'] == 1) {
            ?>
<em><?php 
            echo @date('Y-m-d H:i', $val['share_addtime']);
            ?>
</em><?php 
コード例 #12
0
ファイル: member_card.php プロジェクト: wangjiang988/ukshop
 /**
  * AJAX for membership information
  */
 public function indexOp()
 {
     Uk86Language::uk86_read('member_home_member');
     $ownid = $_SESSION['member_id'];
     $uid = intval($_GET['uid']);
     $model = Model();
     $member_info = $model->table('member')->field('member_id, member_name, member_truename, member_sex, member_email, member_qq, member_ww, member_areainfo, member_birthday, member_privacy, member_exppoints')->find($uid);
     if (empty($member_info)) {
         echo 'false';
         exit;
     }
     if ($member_info['member_privacy'] != '') {
         $member_info['member_privacy'] = unserialize($member_info['member_privacy']);
     }
     //会员详情及会员级别处理
     if ($member_info) {
         $member_gradeinfo = Model('member')->getOneMemberGrade(intval($member_info['member_exppoints']));
         $member_info = array_merge($member_info, $member_gradeinfo);
     }
     if ($ownid == $uid) {
         $followed = 2;
     } else {
         // Whether to pay attention to yourself(own)
         $followed = 0;
         // 0 stranger, 1 friend, 2 own
         $where = array();
         $where['friend_frommid'] = $uid;
         $where['friend_tomid'] = $ownid;
         $friend_info = $model->table('sns_friend')->where($where)->find();
         if (!empty($friend_info)) {
             $followed = 1;
         }
     }
     $data = array();
     $data['id'] = $member_info['member_id'];
     $data['name'] = $member_info['member_name'];
     $data['avatar'] = uk86_getMemberAvatarForID($member_info['member_id']);
     $data['truename'] = $followed >= intval($member_info['member_privacy']['truename']) && !empty($member_info['member_truename']) ? $member_info['member_truename'] : '';
     $data['sex'] = $followed >= intval($member_info['member_privacy']['sex']) && !empty($member_info['member_sex']) ? $member_info['member_sex'] : 3;
     $data['email'] = $followed >= intval($member_info['member_privacy']['email']) && !empty($member_info['member_email']) ? $member_info['member_email'] : L('home_member_privary');
     $data['qq'] = $followed >= intval($member_info['member_privacy']['qq']) && !empty($member_info['member_qq']) ? $member_info['member_qq'] : '';
     $data['ww'] = $followed >= intval($member_info['member_privacy']['ww']) && !empty($member_info['member_ww']) ? $member_info['member_ww'] : '';
     $data['areainfo'] = $followed >= intval($member_info['member_privacy']['area']) && !empty($member_info['member_areainfo']) ? $member_info['member_areainfo'] : L('home_member_privary');
     $data['birthday'] = $followed >= intval($member_info['member_privacy']['birthday']) && !empty($member_info['member_birthday']) ? $member_info['member_birthday'] : L('home_member_privary');
     $data['level_name'] = $member_info['level_name'];
     switch ($_GET['from']) {
         case 'shop':
             $data['url'] = SHOP_SITE_URL;
             break;
         case 'cms':
             $data['url'] = CMS_SITE_URL;
             break;
         case 'circle':
             $data['url'] = CIRCLE_SITE_URL;
             break;
         case 'microshop':
             $data['url'] = MICROSHOP_SITE_URL;
             break;
         default:
             $data['url'] = '';
             break;
     }
     if ($ownid == $uid) {
         $data['follow'] = 2;
         // 0 stranger, 1 friend, 2 own
     } else {
         // Whether to pay attention to me
         $where = array();
         $where['friend_frommid'] = $ownid;
         $where['friend_tomid'] = $uid;
         $friend_info = $model->table('sns_friend')->where($where)->find();
         $data['follow'] = !empty($friend_info) ? 1 : 0;
     }
     // Pay attention to the number of
     $data['attention_count'] = $model->table('sns_friend')->where(array('friend_frommid' => $uid))->count();
     // Number of fans
     $data['fans_count'] = $model->table('sns_friend')->where(array('friend_tomid' => $uid))->count();
     echo $_GET['callback'] . '(' . json_encode($data) . ')';
     //Tpl::output('data', $data);
     //Tpl::showpage('member_card','null_layout');
 }
コード例 #13
0
ファイル: theme.detail.php プロジェクト: wangjiang988/ukshop
                        ?>
        <div class="ban"><?php 
                        echo $lang['circle_nospeak_reply_prompt'];
                        ?>
</div>
        <?php 
                    }
                }
            }
        }
    }
}
?>
        <div class="quick-reply-member"><a id="quickReply"></a>
          <div class="member-avatar-m"><img src="<?php 
echo uk86_getMemberAvatarForID($output['cm_info']['member_id']);
?>
"/></div>
        </div>
        <form method="post" id="reply_form" action="<?php 
echo CIRCLE_SITE_URL;
?>
/index.php?act=theme&op=save_reply&c_id=<?php 
echo $output['c_id'];
?>
&t_id=<?php 
echo $output['t_id'];
?>
">
          <input type="hidden" name="form_submit" value="ok" />
          <?php 
コード例 #14
0
ファイル: circle.info.php プロジェクト: wangjiang988/ukshop
if (!empty($output['theme_list']) && is_array($output['theme_list'])) {
    ?>
	  <?php 
    foreach ($output['theme_list'] as $t_v) {
        ?>
	   <a href="index.php?act=wap_circle&op=circleTheme&c_id=<?php 
        echo $_GET['c_id'];
        ?>
&theme_id=<?php 
        echo $t_v['theme_id'];
        ?>
">
		<div class="circle-theme-list">
		  <div class="circle-theme-top">
		    <img src="<?php 
        echo uk86_getMemberAvatarForID($t_v['member_id']);
        ?>
">
		    <em><?php 
        echo $t_v['member_name'];
        ?>
</em>
		  </div>
		  <div class="circle-theme-title"><?php 
        echo $t_v['theme_name'];
        ?>
</div>
		  <div class="circle-theme-content <?php 
        if (!empty($t_v['affix']) && is_array($t_v['affix'])) {
            echo 'circle-overflow-hidden';
        } else {
コード例 #15
0
 /**
  * get recent from msg
  *
  * @param
  * @return array
  */
 public function getRecentFromList($condition = array(), $limit = 5, $member_list = array())
 {
     $list = $this->getMemberFromList($condition, '', $limit);
     if (!empty($list) && is_array($list)) {
         foreach ($list as $k => $v) {
             $member = array();
             $u_id = $v['f_id'];
             $member['u_id'] = $u_id;
             $member['u_name'] = $v['f_name'];
             $member['avatar'] = uk86_getMemberAvatarForID($u_id);
             $member['recent'] = 1;
             $member['time'] = date("Y-m-d H:i:s", $v['addtime']);
             if (empty($member_list[$u_id])) {
                 $member_list[$u_id] = $member;
             } else {
                 $member_list[$u_id]['recent'] = 1;
                 $member_list[$u_id]['time'] = date("Y-m-d H:i:s", $v['addtime']);
             }
         }
     }
     return $member_list;
 }