当前位置: 首页>>代码示例>>PHP>>正文


PHP MooGetphoto函数代码示例

本文整理汇总了PHP中MooGetphoto函数的典型用法代码示例。如果您正苦于以下问题:PHP MooGetphoto函数的具体用法?PHP MooGetphoto怎么用?PHP MooGetphoto使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了MooGetphoto函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getone

function getone()
{
    global $_MooClass, $dbTablePre, $userid, $memcached;
    $sendid = MooGetGPC('sendid', 'integer', 'G');
    //$sendid = '21691205';
    $user = MooMembersData($sendid);
    if ($user['uid'] != $sendid || $sendid == '') {
        $error = '查无此人';
        echo return_data($error, false);
        exit;
    }
    if (MooGetphoto($user['uid'], 'com')) {
        $mainimg = MooGetphoto($userid, 'com');
        $user['mainimg'] = $mainimg;
    }
    $user['password'] = '';
    $user['regip'] = '';
    $user['qq'] = '';
    $user['msn'] = '';
    $user['telphone'] = '';
    $user['username'] = '';
    //print_r($user);
    echo return_data($user, true);
    exit;
}
开发者ID:noikiy,项目名称:zays,代码行数:25,代码来源:newcon.php

示例2: MooGetphoto

		<dl class="left-likes">
			<dt>
				<div class="left-likes-img">
					<p>
					<a style="display:block;" href="space_<?php 
    echo $able_likes['uid'];
    ?>
.html"> 
					   <?php 
    if ($able_likes['images_ischeck'] == '1' && $able_likes['mainimg']) {
        ?>
							  <img id="show_pic" src="<?php 
        if (MooGetphoto($able_likes['uid'], 'index')) {
            echo IMG_SITE . MooGetphoto($able_likes['uid'], 'index');
        } elseif (MooGetphoto($able_likes['uid'], 'medium')) {
            echo IMG_SITE . MooGetphoto($able_likes['uid'], 'medium');
        } elseif ($able_likes['gender'] == '1') {
            echo 'public/system/images/woman_100.gif';
        } else {
            echo 'public/system/images/man_100.gif';
        }
        ?>
" onload="javascript:DrawImage(this,100,125)" width="100"/>
					   <?php 
    } elseif ($able_likes['mainimg']) {
        ?>
								<?php 
        if ($able_likes['gender'] == '1') {
            ?>
									<img id="show_pic" src="public/system/images/woman_100.gif"  />
								<?php 
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:space_leftmenu_new.tpl.php

示例3: MooGetphoto

        }
        ?>
							<div class="r-s-img-in">
								<p> <a style="display:block;" href="index.php?n=space&h=viewpro&uid=<?php 
        echo $comment['cuid'];
        ?>
" target="_blank">
								<?php 
        if ($send_user1['images_ischeck'] == '1' && $send_user1['mainimg']) {
            ?>
									  <img src="
									  <?php 
            if (MooGetphoto($send_user1['uid'], 'index')) {
                echo MooGetphoto($send_user1['uid'], 'index');
            } elseif (MooGetphoto($send_user1['uid'], 'medium')) {
                echo MooGetphoto($send_user1['uid'], 'medium');
            } elseif ($send_user1['gender'] == '1') {
                echo 'public/system/images/woman_100.gif';
            } else {
                echo 'public/system/images/man_100.gif';
            }
            ?>
									  " onload="javascript:DrawImage(this,100,125)" />
									   <?php 
        } elseif ($send_user1['mainimg']) {
            ?>
										<?php 
            if ($send_user1['gender'] == '1') {
                ?>
											<img src="public/system/images/woman_100.gif"/>
										<?php 
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:service_mycomment.tpl.php

示例4: MooCutstr

    echo $user['nickname'] ? MooCutstr($user['nickname'], 12, '') : 'ID:' . $user['uid'];
} else {
    ?>
我<?php 
}
?>
的征婚资料</span></div>
					<div class="pInfo">
						<div class="myself">
							<p style="width:110px;height:138px;overflow:hidden;padding-top:5px;margin-left:8px;">
							<?php 
if ($user['images_ischeck'] == '1' && $user['mainimg']) {
    ?>
								 <img id="show_pic_1"  class="fixphoto_" src="<?php 
    if (MooGetphoto($user['uid'], 'mid')) {
        echo IMG_SITE . MooGetphoto($user['uid'], 'mid');
    } elseif ($user['gender'] == '1') {
        echo 'public/system/images/woman_1.gif';
    } else {
        echo 'public/system/images/man_1.gif';
    }
    ?>
" flag=''/></a>
						   <?php 
} elseif ($user['mainimg']) {
    ?>
								<?php 
    if ($user['gender'] == '1') {
        ?>
									<img id="show_pic_1" src="public/system/images/woman.gif"/>
								<?php 
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:space_colorzone.tpl.php

示例5: quick_search_page


//.........这里部分代码省略.........
            $isdispmore = true;
        }
    }
    if ($marriage) {
        $cond[] = array('marriage', $marriage, false);
    }
    if ($salary) {
        $cond[] = array('salary', $salary, false);
    }
    if ($education) {
        $cond[] = array('education', $education, false);
    }
    if ($height1 || $height2) {
        if ($height1 == 0) {
            $cond_height1 = 154;
        } else {
            $cond_height1 = $height1;
        }
        if ($height2 == 0) {
            $cond_height2 = 201;
        } else {
            $cond_height2 = $height2;
        }
        $cond[] = array('height', array($cond_height1, $cond_height2), false);
    }
    $sortway = MooGetGPC('sortway');
    $sort_str = getSortsStr($sortway, $cond);
    $rs = sphinx_search($index, $cond, $sort_str, $page, $pagesize);
    if (!$rs || is_array($rs) && empty($rs)) {
        //没有结果
        //MooMessage("您指定的搜索不存在或已过期", "index.php?n=search", '03');
        $error = "找不到匹配的结果";
        echo return_data($error, false);
        exit;
    } else {
        $data = $rs['user'];
        $total = $rs['total'];
        if ($total > 600) {
            $total = 600;
        }
        $user_list = implode(',', $data);
        if (empty($data)) {
            //MooMessage("您指定的搜索不存在或已过期", "index.php?n=search", '03');
            $error = "找不到匹配的结果";
            echo return_data($error, false);
            exit;
        } else {
            $user = array();
            $sortway = isset($_GET['sortway']) ? $_GET['sortway'] : '1';
            $sql = "select s.*,b.mainimg,b.showinformation_val from `{$dbTablePre}members_search` s left join `{$dbTablePre}members_base` b on s.uid=b.uid where s.uid in ({$user_list})";
            $user = $_MooClass['MooMySQL']->getAll($sql);
            $sql = "select lastvisit from web_members_login where uid in ({$user_list})";
            $user_lastvisit = $_MooClass['MooMySQL']->getAll($sql);
            foreach ($user_lastvisit as $key => $val) {
                $user[$key]['lastvisit'] = $val['lastvisit'];
            }
        }
        //会员基本信息补充
        if ($user) {
            $user = userbasicadd($user);
            //排序
            $tmp_user = array();
            foreach ($data as $k => $v) {
                foreach ($user as $key => $val) {
                    if ($v == $val['uid']) {
                        $tmp_user[] = $user[$key];
                        break;
                    }
                }
            }
            $user = $tmp_user;
            foreach ($user as $k => $u) {
                $mainimg = MooGetphoto($u['uid'], $style = "com");
                $users[] = array('uid' => $u['uid'], 'nickname' => $u['nickname'], 'birthyear' => $u['birthyear'], 'height' => $u['height'], 'salary' => $u['salary'], 'province' => $u['province'], 'city' => $u['city'], 'mainimg' => $mainimg, 'gender' => $u['gender']);
            }
            echo return_data($users);
            exit;
            /*
            			foreach($user as $va){
            				echo $va['nickname'].'<br />';
            			}
            			exit;*/
            //$error = "找不到匹配的结果";
            /*	
            $str = 'gender:'.$gender.'age_start:'.$age_start.'age_end:'.$age_end.'work_province:'.$work_province.'work_city:'.$work_city.'marriage:'.$marriage.'salary'
            .$salary.'education:'.$education.'height1:'.$height1.'height2:'.$height2;
            
            $return[] = $str;
            $return[] = $user;
            */
            //echo return_data($user,true);exit;
        }
        //note 找不到匹配的结果返回单独提示页面
        if (empty($user) && empty($user1)) {
            $error = "找不到匹配的结果";
            echo return_data($error, false);
            exit;
        }
    }
}
开发者ID:noikiy,项目名称:zays,代码行数:101,代码来源:index.php

示例6: recommendMember


//.........这里部分代码省略.........
                if (!is_array(${$add})) {
                    ${$add} = array();
                }
                //enky add
                foreach (${$add} as $user) {
                    $user_list[] = $user['uid'];
                }
                if (!empty($user_list)) {
                    $user_in .= ',' . implode(',', $user_list);
                }
                //echo $user_in;exit;
                //已有总数
                $count += count(${$add});
            }
        }
        //$countryadd  have data
        $userList = array_merge($userList, $cityadd, $provinceadd, $countryadd);
        //省其它类型会员缓存文件
        //$province_othercachefile = "userlist_{$id}_other".'_'.md5($param).'.data';
    }
    //生成的block缓存文件存库
    /* $city = $city ? $city : 0;
    		$sql = "SELECT * FROM {$dbTablePre}index_cachefile WHERE  province='{$province}' AND city='{$city}'";
    		$cache_arr = $_MooClass['MooMySQL']->getAll($sql);
    		
    		if(empty($cache_arr)){
    			$province_cachefile = isset($province_cachefile)?$province_cachefile:'';
    			$sql = "INSERT INTO {$dbTablePre}index_cachefile SET province='{$province}',city='{$city}',provincestarfile='{$province_cachefile}',citystarfile='{$city_cachefile}',provinceotherfile='{$province_othercachefile}'";
    			$_MooClass['MooMySQL']->query($sql);
    		}  */
    //推荐列表中如果存在,则以推荐列表中的指定的sort替换
    $sql = "SELECT * FROM {$dbTablePre}members_recommend WHERE  province='{$province}' AND city='{$city}' order by sort asc";
    $recommend_list = $_MooClass['MooMySQL']->getAll($sql);
    if (!empty($recommend_list)) {
        foreach ($recommend_list as $list) {
            $sort = $list['sort'] < 1 ? 0 : $list['sort'] - 1;
            if (MOOPHP_ALLOW_FASTDB) {
                $u = MooFastdbGet('members_search', 'uid', $list['uid']);
                $u2 = MooFastdbGet('members_base', 'uid', $list['uid']);
                if (is_array($u) && is_array($u2)) {
                    $u = array_merge($u, $u2);
                }
            } else {
                $sql = "SELECT s.uid,s.nickname,s.gender,s.images_ischeck,s.province,s.city,s.birthyear,s.s_cid,s.city_star,b.mainimg,i.introduce FROM {$dbTablePre}members_search s left join {$dbTablePre}members_base b on s.uid=b.uid left join {$dbTablePre}members_introduce  as i on s.uid=i.uid WHERE s.uid='{$list['uid']}'";
                $u = $_MooClass['MooMySQL']->getOne($sql);
            }
            if ($u) {
                foreach ($userList as $key => $val) {
                    if ($list['uid'] == $val['uid']) {
                        $user_key = $key;
                        break;
                    }
                }
                if (isset($user_key)) {
                    if (isset($userList[$sort])) {
                        $userList[$key] = $userList[$sort];
                    }
                    $userList[$sort] = $u;
                } else {
                    $userList[$sort] = $u;
                }
            }
        }
    }
    //删除数组中多余的部分
    array_splice($userList, 6);
    $result = array();
    $imgSrcSmall = $imgSrcMid = $imgSrcUrl = '';
    foreach ($userList as $v) {
        $introduce = '';
        if (isset($v['introduce'])) {
            $introduce = MooCutstr($v['introduce'], 50, '...');
        }
        $imgSrcSmall = MooGetphoto($v['uid'], 'small');
        $imgSrcMid = MooGetphoto($v['uid'], 'mid');
        if ($imgSrcSmall) {
            $imgSrc = $imgSrcMid;
        } elseif ($v['gender'] == '1') {
            $imgSrc = "module/index/templates/default/images/se_woman.gif";
        } else {
            $imgSrc = "module/index/templates/default/images/se_man.gif";
        }
        if (isset($v['mainimg']) && !empty($v['mainimg']) && isset($v['images_ischeck']) && $v['images_ischeck'] == 1) {
            $imgUrl = "<a href=\"index.php?n=space&uid={$v['uid']}\" target=\"_blank\"><img src={$imgSrc} width=\"120\"/> </a>";
        } else {
            if (isset($v['gender']) && $v['gender']) {
                $imgUrl = "<a href=\"index.php?n=space&uid={$v['uid']}\" target=\"_blank\"><img src=\"module/index/templates/default/images/se_woman.gif\" /> </a> ";
            } else {
                $imgUrl = "<a href=\"index.php?n=space&uid={$v['uid']}\" target=\"_blank\"><img src=\"module/index/templates/default/images/se_man.gif\" /></a> ";
            }
        }
        if ($v['birthyear']) {
            $birthyear = date('Y') - $v['birthyear'] . '岁';
        } else {
            $birthyear = '年龄保密';
        }
        $result[] = array("uid" => $v['uid'], "mainimg" => $v['mainimg'], "images_ischeck" => $v['images_ischeck'], "gender" => $v['gender'], "introduce" => $introduce, "imgUrl" => $imgUrl, "nickname" => $v['nickname'], "birthyear" => $birthyear, "province" => $v['province'], "city" => $v['city']);
    }
    echo json_encode($result);
}
开发者ID:noikiy,项目名称:zays,代码行数:101,代码来源:ajax.php

示例7: youAbleLiker

function youAbleLiker()
{
    global $user_arr;
    $result = array();
    //月薪
    $salary = array("0" => "不限", "1" => "1000元以下", "2" => "1001-2000元", "3" => "2001-3000元", "4" => "3001-5000元", "5" => "5001-8000元", "6" => "8001-10000元", "7" => "10001-20000元", "8" => "20001-50000元", "9" => "50000元以上");
    $marriage = array("0" => "不限", "1" => "未婚", "3" => "离异", "4" => "丧偶");
    $education = array("0" => "不限", "3" => "高中及以下", "4" => "大专", "5" => "大学本科", "6" => "硕士", "7" => "博士");
    $userid = $user_arr['uid'];
    $offset = MooGetGPC('offset', 'integer', 'P');
    if (empty($userid)) {
        return array();
    }
    //note 您可能喜欢的人,匹配相同地区
    $result = youAbleLike($l, $offset);
    if ($offset > (int) $l) {
        unset($result);
        $result = youAbleLike($l, 0);
    } elseif ($offset + 5 > (int) $l) {
        //5是偏移量,固定取5个会员
        $result_ = youAbleLike($l, 0);
        $result = array_slice(array_merge($result, $result_), 0, 5);
    }
    $str = '';
    foreach ($result as $k => $able_likes) {
        if ($able_likes['images_ischeck'] == '1' && $able_likes['mainimg']) {
            if (MooGetphoto($able_likes['uid'], 'index')) {
                $image = IMG_SITE . MooGetphoto($able_likes['uid'], 'index');
            } elseif (MooGetphoto($able_likes['uid'], 'medium')) {
                $image = IMG_SITE . MooGetphoto($able_likes['uid'], 'medium');
            } elseif ($able_likes['gender'] == '1') {
                $image = 'public/system/images/woman_100.gif';
            } else {
                $image = 'public/system/images/man_100.gif';
            }
            $image = "<img id='show_pic' src='{$image}' onload='javascript:DrawImage(this,100,125)' width='100'/>";
        } elseif ($able_likes['mainimg']) {
            if ($able_likes['gender'] == '1') {
                $image = '<img id="show_pic" src="public/system/images/woman_100.gif"  />';
            } else {
                $image = '<img id="show_pic" src="public/system/images/man_100.gif" />';
            }
        } else {
            if ($able_likes['gender'] == '1') {
                $image = '<img src="public/system/images/nopic_woman_100.gif" />';
            } else {
                $image = '<img src="public/system/images/nopic_man_100.gif" />';
            }
        }
        $nickname = $able_likes['nickname'] ? $able_likes['nickname'] : 'ID:' . $able_likes['uid'];
        $birthyear = $able_likes['birthyear'] ? gmdate('Y', time()) - $able_likes['birthyear'] . '岁' : '年龄保密';
        $m = $able_likes['marriage'] == 0 ? '婚姻状况:保密' : "{$marriage[$able_likes['marriage']]}";
        $e = $able_likes['education'] == 0 ? '保密' : "{$education[$able_likes['education']]}";
        $s = $able_likes['salary'] == 0 ? '薪资:保密' : "{$salary[$able_likes['salary']]}";
        $str .= <<<EOT
\t\t\t<dl class="left-likes" data-len="{$l}">
\t\t\t\t<dt><div class="left-likes-img"><p><a style="display:block;" href="space_{$able_likes['uid']}.html">{$image}</a></p></div></dt>
\t\t\t\t<dd class="f-b-d73c90"><a href="space_{$able_likes['uid']}.html"  class="f-ed0a91-a"></a>{$nickname}</dd>
\t\t\t\t<dd>{$birthyear}</dd>
\t\t\t\t<dd>{$m}</dd>
\t\t\t\t<dd>{$e}</dd>
\t\t\t\t<dd>{$s}</dd>
\t\t\t</dl>
\t
EOT;
    }
    echo $str;
}
开发者ID:noikiy,项目名称:zays,代码行数:68,代码来源:ajax.php

示例8: MooGetphoto

            ?>
                    <img src="public/system/images/se_man.jpg" />					             
                    <?php 
        }
        ?>
                    <?php 
    } else {
        ?>
                    <?php 
        if (isset($users['mainimg']) && $users['mainimg'] && isset($users['images_ischeck']) && $users['images_ischeck'] == 1) {
            ?>
                    <img src="<?php 
            if (MooGetphoto($users['uid'], 'mid')) {
                echo IMG_SITE . MooGetphoto($users['uid'], 'mid');
            } elseif (MooGetphoto($users['uid'], 'medium')) {
                echo IMG_SITE . MooGetphoto($users['uid'], 'medium');
            } elseif ($users['gender'] == '1') {
                echo 'public/system/images/se_woman.jpg';
            } else {
                echo 'public/system/images/se_man.jpg';
            }
            ?>
"   />
                    <?php 
        } else {
            ?>
                    <img src="public/system/images/se_woman.jpg" />					             
                    <?php 
        }
        ?>
                    <?php 
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:search_page_left.tpl.php

示例9: public_showmsg

function public_showmsg($uid)
{
    header("Expires: Mon, 26 Jul 1970 05:00:00  GMT");
    header("Cache-Control:no-cache, must-revalidate");
    header("Pragma:no-cache");
    global $_MooClass, $dbTablePre, $timestamp, $memcached, $user_arr;
    //会员ID
    //$uid = MooGetGPC('uid','integer');
    //初始化显示数据
    $str = '';
    $n = 0;
    //未读消息条数
    //$msg = $_MooClass['MooMySQL']->getOne("select count(*) from {$dbTablePre}services where s_uid={$uid} and s_status='0' and flag = '1' and s_uid_del='0'");
    //$msg_count = $msg['count(*)'];
    $msg_count = header_show_total($uid);
    //前台显示
    if ($msg_count) {
        //3个发件人的ID
        $user_msg_id = $_MooClass['MooMySQL']->getAll("select distinct s_fromid from {$dbTablePre}services where s_uid={$uid} and s_status='0' and s_uid_del='0' order by s_time desc limit 3");
        $inidArr = array();
        foreach ($user_msg_id as $v) {
            if ($v['s_fromid'] == 0) {
                $from_kefu = 1;
            } else {
                $inidArr[] = $v['s_fromid'];
            }
        }
        $inid = implode(',', $inidArr);
        //提示信息
        $user_msg = array();
        if (MOOPHP_ALLOW_FASTDB) {
            foreach ($inidArr as $arruid) {
                $user_msg[] = MooFastdbGet('members_search', 'uid', $arruid);
            }
        } else {
            $user_msg = $_MooClass['MooMySQL']->getAll("select uid,nickname,s_cid from {$dbTablePre}members_search where uid in ({$inid})");
        }
        $str .= '<p>您有<a href="index.php?n=service&h=message">' . $msg_count . '条新消息</a></p>';
        foreach ($user_msg as $vv) {
            //设置不同链接
            if ($vv) {
                //$nickname=$vv['nickname2']?$vv['nickname2']:$vv['nickname'];
                $nickname = $vv['nickname'];
                if ($nickname) {
                    $str .= '<p>查看<a href="index.php?n=service&h=message&t=membermessage">' . $nickname . '给您发的新邮件</a></p>';
                } else {
                    $str .= '<p>查看<a href="index.php?n=service&h=message&t=membermessage">会员ID ' . $vv['uid'] . '给您发的新邮件</a></p>';
                }
            }
        }
        if ($from_kefu) {
            $str .= '<p>查看<a href="index.php?n=service&h=message&t=hlmessage">真爱一生网发新邮件</a></p>';
        }
        $n++;
    }
    //提示被哪些用户访问主页
    if ($user_arr['regdate'] < time() - 7200) {
        if ($user_arr['showinformation']) {
            $visitor_msg = public_showmsg_two($uid);
        }
        //$nickname=$visitor_msg['nickname2']?$visitor_msg['nickname2']:$visitor_msg['nickname'];
        $nickname = $visitor_msg['nickname'];
        $nc = $nickname ? $nickname : 'ID:' . $visitor_msg['uid'];
        if ($visitor_msg) {
            //伪造查看共多少秒,存memcached
            $makevisit_sec = $memcached->get('makevisit' . $visitor_msg['uid'] . '_' . $uid);
            if ($makevisit_sec) {
                $sec = $makevisit_sec;
            } else {
                $sec = rand(100, 200);
                $memcached->set('makevisit' . $visitor_msg['uid'] . '_' . $uid, $sec, 60);
            }
            $img = MooGetphoto($visitor_msg['uid'], 'page');
            //显示访问者的头像
            $mid_img = MooGetphoto($visitor_msg['uid'], 'mid');
            if ($mid_img && !$img) {
                $image = MooAutoLoad('MooImage');
                $pic_dir = substr($mid_img, 0, 28);
                $new_file_name = $visitor_msg['uid'] * 3 . "_page.jpg";
                $image->config(array('thumbDir' => $pic_dir, 'thumbStatus' => '1', 'saveType' => '0', 'thumbName' => $new_file_name, 'waterMarkMinWidth' => '82', 'waterMarkMinHeight' => '114', 'waterMarkStatus' => 9));
                $image->thumb(49, 62, $mid_img);
                $img = $page_img;
            }
            if ($img) {
                $photo = "<a target='_blank' href='index.php?n=space&h=viewpro&uid=" . $visitor_msg['uid'] . "'><img src=" . $img . " class='u-photo'></a>";
                $str .= '<div class="c-line"></div><p>您的资料正在被:</p>' . $photo . '<p><a target="_blank" href="index.php?n=space&h=viewpro&uid=' . $visitor_msg['uid'] . '">' . $nc . '</a>查看,</p><p>已查看' . $sec . '秒,</p><p><a target="_blank" href="index.php?n=space&h=viewpro&uid=' . $visitor_msg['uid'] . '">查看Ta的资料</a></p><div style="clear:both"></div>';
            } else {
                $str .= '<p>您的资料正在被' . $photo . '<a target="_blank" href="index.php?n=space&h=viewpro&uid=' . $visitor_msg['uid'] . '">' . $nc . '</a>查看,已查看' . $sec . '秒,<a target="_blank" href="index.php?n=space&h=viewpro&uid=' . $visitor_msg['uid'] . '">查看Ta的资料</a></p>';
            }
            $n++;
        }
    }
    //提示当前会员有未读在线聊天消息
    $chat_msg = public_showmsg_three($uid);
    $new_message = '';
    if ($chat_msg) {
        $str .= '<p>您有<a style="cursor:pointer" onclick="javascript:window.open(\'index.php?n=service&h=chat&chatorid=' . $chat_msg['s_fromid'] . '\', \'_blank\', \'height=500, width=700, toolbar =no, menubar=no, scrollbars=no, resizable=yes, location=no, status=no\')">新的在线消息</a></p>';
        $new_message = '|new_message';
        $n++;
    }
//.........这里部分代码省略.........
开发者ID:noikiy,项目名称:zays,代码行数:101,代码来源:ajax.php

示例10: foreach

<div class="vote-right-content">		
<span class="right-title fleft">等您打分的会员</span>
<ul class="votr-photos">
<?php 
if (isset($pic_4)) {
    foreach ((array) $pic_4 as $pic) {
        ?>
<li>
<div class="votr-photos-list">
<p>
<?php 
        if ($pic['images_ischeck'] == '1' && $pic['mainimg']) {
            ?>
	<img src="<?php 
            if (MooGetphoto($pic['uid'], 'mid')) {
                echo IMG_SITE . MooGetphoto($pic['uid'], 'mid');
            } elseif ($pic['gender'] == '1') {
                echo 'public/system/images/se_woman_60.jpg';
            } else {
                echo 'public/system/images/se_man_60.jpg';
            }
            ?>
" width="60" height="75"/>
<?php 
        } elseif ($pic['mainimg']) {
            ?>
   <?php 
            if ($pic['gender'] == '1') {
                ?>
			<img src="public/system/images/se_woman_60.jpg" width="60" height="75"/>
		<?php 
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:vote.tpl.php

示例11: leer_send_user1

    ?>
                  <?php 
    $send_user1 = leer_send_user1($visitors['visitorid']);
    ?>
					<li>
						<dl class="r-like-c-data">
							<dt><div><a style="display:block;" href="space_<?php 
    echo $visitors['visitorid'];
    ?>
.html" target="_blank">
							 <?php 
    if ($send_user1['mainimg'] && $send_user1['images_ischeck'] == '1') {
        ?>
							  <img class="_photo_ fixphoto" src=" <?php 
        if (MooGetphoto($send_user1['uid'], 'mid')) {
            echo IMG_SITE . MooGetphoto($send_user1['uid'], 'mid');
        } elseif ($send_user1['gender'] == '1') {
            echo 'public/system/images/woman_100.gif';
        } else {
            echo 'public/system/images/man_100.gif';
        }
        ?>
"   />
							 <?php 
    } elseif ($send_user1['mainimg']) {
        ?>
										<?php 
        if ($send_user1['gender'] == '1') {
            ?>
											<img src="public/system/images/woman_100.gif" />
										<?php 
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:service_index.tpl.php

示例12: shadow_master

function shadow_master()
{
    global $_MooClass, $dbTablePre, $userid, $user_arr, $memcached, $uuid;
    $womenList = array('30407189', '21186208', '21199933', '20686096', '20223069', '20520991', '20069562', '21156987', '21023025', '21206132', '21201459', '21161703', '20619161', '20301718', '20719091', '21740236', '20681292', '21424242', '20554506', '20111310', '20660269', '30632759', '30631960', '30630519', '30608962', '30387074', '30378615', '30360483', '30300309', '30252809', '30214641');
    $manList = array('30391348', '21793878', '30129941', '21514524', '30087732', '30621435', '30071838', '30610492', '30619608', '30080561', '30403838', '30211025', '30069490', '30359171', '30368726', '30405061', '30192000', '30069742', '30141451', '30052221', '30253012', '30016533', '30286293', '30247063', '30403530', '30365362', '21767568', '30341955', '21359517', '21708383', '30041513');
    $uid = $_GET['uid'] = isset($_GET['uid']) ? $_GET['uid'] : '';
    if ($uid) {
        $userid = $mem_uid = $memcached->get('uid_' . $uid);
        $user_arr = MooMembersData($userid);
    }
    if ($userid) {
        $and_uuid = isset($_GET['uuid']) ? $_GET['uuid'] : '';
        $checkuuid = check_uuid($and_uuid, $userid);
        if (!$checkuuid) {
            $error = "uuid_error";
            echo return_data($error, false);
            exit;
        }
    }
    if ($userid) {
        $gender = $user_arr['gender'] == 1 ? 0 : 1;
    } else {
        $gender = $_GET['gender'];
    }
    if ($gender == 0) {
        $rand_keys = array_rand($manList, 12);
        for ($i = 0; $i < 12; $i++) {
            $returnarr[] = $manList[$rand_keys[$i]];
        }
    } elseif ($gender == 1) {
        $rand_keys = array_rand($womenList, 12);
        for ($i = 0; $i < 12; $i++) {
            $returnarr[] = $womenList[$rand_keys[$i]];
        }
    } else {
        $rand_keys = array_rand($womenList, 6);
        for ($i = 0; $i < 6; $i++) {
            $returnarr[] = $womenList[$rand_keys[$i]];
        }
        $rand_keys = array_rand($manList, 6);
        for ($i = 0; $i < 6; $i++) {
            $returnarr[] = $manList[$rand_keys[$i]];
        }
        //shuffle($returnarr);
    }
    foreach ($returnarr as $value) {
        $mainimg = MooGetphoto($value, $style = "com");
        $users[] = array('uid' => $value, 'mainimg' => $mainimg);
    }
    echo return_data($users);
    exit;
}
开发者ID:noikiy,项目名称:zays,代码行数:52,代码来源:index.php

示例13: MooGetphoto

        }
        ?>
                                                <div class="r-s-img-in">
                                                    <p style="width:105px;">
                                                        <a style="display:block;" href="index.php?n=service&h=commission&t=getcontactdata1&uid=<?php 
        echo $contact['l']['other_contact_you'];
        ?>
">
                                                            <?php 
        if ($contact['s']['images_ischeck'] == '1' && $contact['s']['mainimg']) {
            ?>
                                                            <img src="<?php 
            if (MooGetphoto($contact['s'][uid], 'mid')) {
                echo MooGetphoto($contact['s'][uid], 'mid');
            } elseif (MooGetphoto($contact['s'][uid], 'medium')) {
                echo MooGetphoto($contact['s'][uid], 'medium');
            } elseif ($contact['s']['gender'] == '1') {
                echo 'public/system/images/woman_100.gif';
            } else {
                echo 'public/system/images/man_100.gif';
            }
            ?>
" />
                                                            <?php 
        } elseif ($contact['s']['mainimg']) {
            ?>
                                                            <?php 
            if ($contact['s']['gender'] == '1') {
                ?>
                                                            <img src="public/system/images/woman_100.gif"/>
                                                            <?php 
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:service_contact_getcontactme.tpl.php

示例14: MooGetphoto

<a class="citystar2"><img src="module/service/templates/default/images/citystar.gif" /></a><?php 
        }
        ?>
                                                <div class="r-s-img-in">
                                                    <p style="width:105px;">  <a style="display:block;" href="index.php?n=space&h=viewpro&uid=<?php 
        echo $friend['l']['friendid'];
        ?>
" target="_blank">
                                                            <?php 
        if ($friend['s']['images_ischeck'] == '1' && $friend['s']['mainimg']) {
            ?>
                                                            <img src="<?php 
            if (MooGetphoto($friend['s'][uid], 'mid')) {
                echo MooGetphoto($friend['s'][uid], 'mid');
            } elseif (MooGetphoto($friend['s'][uid], 'medium')) {
                echo MooGetphoto($friend['s'][uid], 'medium');
            } elseif ($friend['s']['gender'] == '1') {
                echo 'public/system/images/woman_100.gif';
            } else {
                echo 'public/system/images/man_100.gif';
            }
            ?>
" />
                                                            <?php 
        } elseif ($friend['s']['mainimg']) {
            ?>
                                                            <?php 
            if ($friend['s']['gender'] == '1') {
                ?>
                                                            <img src="public/system/images/woman_100.gif"/>
                                                            <?php 
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:service_friend_myfriendlist.tpl.php

示例15: MooGetphoto

				<img src="module/service/templates/default/images/bind-img.gif" class="fleft" />
				<dl class="bindtwo">
					<dt>
						<div class="cl-photo-img">
							<p><a style="display:block;" href="index.php?n=space&h=viewpro&uid=<?php 
    echo $user_bind['uid'];
    ?>
" target="_blank">
							<?php 
    if ($user_bind['images_ischeck'] == '1' && $user_bind['mainimg']) {
        ?>
										  <img src="<?php 
        if (MooGetphoto($user_bind['uid'], 'com')) {
            echo MooGetphoto($user_bind['uid'], 'com');
        } elseif (MooGetphoto($user_bind['uid'], 'medium')) {
            echo MooGetphoto($user_bind['uid'], 'medium');
        } elseif ($user_bind['gender'] == '1') {
            echo 'public/system/images/woman.gif';
        } else {
            echo 'public/system/images/man.gif';
        }
        ?>
" onload="javascript:DrawImage(this,110,138)" />
							<?php 
    } elseif ($user_bind['mainimg']) {
        ?>
								<?php 
        if ($user_bind['gender'] == '1') {
            ?>
									<img src="public/system/images/woman.gif"/>
								<?php 
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:service_contact_binding.tpl.php


注:本文中的MooGetphoto函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。