本文整理匯總了PHP中CommonUtil::getMoreSizeImg方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonUtil::getMoreSizeImg方法的具體用法?PHP CommonUtil::getMoreSizeImg怎麽用?PHP CommonUtil::getMoreSizeImg使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CommonUtil
的用法示例。
在下文中一共展示了CommonUtil::getMoreSizeImg方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: listAction
/**
* 活動列表
*/
function listAction()
{
//global $_F;
// $_F["debug"] = true;
$page = max(1, FRequest::getInt('page'));
$title = FRequest::getString('title');
$where = array();
$shanchu_id = FRequest::getInt('shanchu_id');
if ($shanchu_id) {
$events = new FTable('events');
$events->where(array('id' => $shanchu_id))->remove(true);
}
if ($title) {
$where["title"] = array('like' => $title);
}
$table = new FTable("events");
$events = $table->fields(array("id", "style", "title", "pic", "content", "tm"))->where($where)->page($page)->limit(20)->order(array("id" => "desc"))->select();
foreach ($events as &$event) {
$event["pic"] = CommonUtil::getMoreSizeImg($event["pic"], 100, 100);
$event["content"] = json_decode($event["content"]);
}
$page_info = $table->getPagerInfo();
$this->assign('page_info', $page_info);
$this->assign('events', $events);
$this->assign('title', $title);
$this->display('admin/events_list');
}
示例2: listAction
function listAction()
{
//global $_F;
// $_F["debug"] = true;
$page = max(1, FRequest::getInt('page'));
$uid = FRequest::getInt('uid');
$where = array('tp.status' => '1');
if ($uid > 0) {
$where["ud.uid"] = $uid;
} else {
$where["1"] = 0;
}
$table = new FTable("topic", "tp");
$topics = $table->fields(array("tp.id", "tp.uid", "tp.title", "tp.pics", "ud.nickname", "tp.picslevel"))->leftJoin("user_detail", "ud", "tp.uid=ud.uid")->where($where)->page($page)->limit(20)->order(array("tp.id" => "desc"))->select();
foreach ($topics as &$topic) {
$topic_tupian = explode(",", $topic['pics']);
$pics = "";
foreach ($topic_tupian as $topic_pics) {
if ($topic_pics) {
$pics = $pics . CommonUtil::getMoreSizeImg($topic_pics, 100, 100) . ",";
}
}
$topic["pics"] = $pics;
$discovery_table = new FTable("discovery", "mmd", FDB::$DB_MUMU_SORT);
$discovery = $discovery_table->where(array('tid' => $topic["id"]))->find();
$topic["priority"] = $discovery["priority"];
}
$page_info = $table->getPagerInfo();
$this->assign('page_info', $page_info);
$this->assign('topics', $topics);
$this->assign('uid', $uid);
$this->display('admin/user_topic_zhiding_list');
}
示例3: listAction
function listAction()
{
//global $_F;
// $_F["debug"] = true;
$page = max(1, FRequest::getInt('page'));
$uid = FRequest::getInt('uid');
$query_str = " ( mm.type='pic' or mm.type='text' ) ";
$where = array();
if ($uid > 0) {
$where["mm.from"] = $uid;
//$query_str=$query_str." and (mm.from='$uid' or mm.to='$uid') and mm.from<>1 and mm.to<>1 ";
$where["str"] = $query_str;
$user_detail_table = new FTable("user_detail");
$user_detail = $user_detail_table->where(array('uid' => $uid))->find();
$user_avatar = CommonUtil::getMoreSizeImg($user_detail["avatar"], 100, 100);
$table = new FTable("message", "mm", FDB::$DB_MUMU_MESSAGE);
$user_messages = $table->fields(array("mm.tm", "mm.from", "mm.to", "mm.content"))->where($where)->groupBy("mm.to")->page($page)->limit(20)->order(array("mm.tm" => "desc"))->select();
$user_messages1 = $table->fields(array("mm.tm", "mm.from", "mm.to", "mm.content"))->where($where)->groupBy("mm.to")->order(array("mm.tm" => "desc"))->select();
$total = count($user_messages1);
foreach ($user_messages as &$user_message) {
$user_detail_table = new FTable("user_detail");
$user_detail = $user_detail_table->where(array('uid' => $user_message["to"]))->find();
$user_message["to_avatar"] = CommonUtil::getMoreSizeImg($user_detail["avatar"], 100, 100);
$user_message["content"] = json_decode($user_message["content"]);
}
}
if ($uid > 0) {
$page_info = $table->getPagerInfo();
$this->assign('page_info', FPager::getPagerInfo($total, $page, '20'));
$this->assign('user_messages', $user_messages);
$this->assign('user_avatar', $user_avatar);
}
$this->assign('uid', $uid);
$this->display('admin/usermessage_list');
}
示例4: listAction
function listAction()
{
//global $_F;
//$_F["debug"] = true;
$page = max(1, FRequest::getInt('page'));
$uid = FRequest::getInt('uid');
$nickname = FRequest::getString('nickname');
$where = array('ub.count' => array('gte' => '1'), 'um.stat' => '0', 'ud.uid' => array('gte' => '5000000'));
if ($uid > 0) {
$where["ud.uid"] = $uid;
}
if ($nickname) {
$where["ud.nickname"] = array('like' => $nickname);
}
$table = new FTable("user_ban", "ub");
$users = $table->fields(array("um.uid", "um.stat", "um.gender", "um.reg_time", "ud.nickname", "ud.avatar", "ud.province", "ud.city", "ud.age", "ud.height", "ud.marry", "ud.aboutme", "ub.count"))->leftJoin("user_detail", "ud", "ub.uid=ud.uid")->leftJoin("user_main", "um", "ub.uid=um.uid")->where($where)->page($page)->limit(10)->order(array("ub.count" => "desc"))->select();
foreach ($users as &$user) {
$marry_id = $user["marry"];
$user["marry"] = self::$MARRY[$marry_id];
$user["avatar"] = CommonUtil::getMoreSizeImg($user["avatar"], 50, 50);
}
$page_info = $table->getPagerInfo();
$this->assign('page_info', $page_info);
$this->assign('users', $users);
$this->assign('uid', $uid);
$this->assign('nickname', $nickname);
$this->display('admin/userreport_list');
}
示例5: listAction
function listAction()
{
//global $_F;
//$_F["debug"] = true;
$page = max(1, FRequest::getInt('page'));
$uid = FRequest::getInt('uid');
$nickname = FRequest::getString('nickname');
$gender = FRequest::getInt('gender');
$where = array();
if ($uid || $nickname) {
if ($uid) {
$where["ud.uid"] = $uid;
}
if ($nickname) {
$where["ud.nickname"] = array('like' => $nickname);
}
} else {
$where["um.stat"] = '0';
$where["ud.avatarlevel"] = '-2';
$where["ud.uid"] = array('gte' => '5000000');
}
if ($gender) {
$where["um.gender"] = $gender;
}
$table = new FTable("user_detail", "ud");
$users = $table->fields(array("ud.uid", "um.gender", "ud.nickname", "ud.avatar", "ud.avatarlevel"))->leftJoin("user_main", "um", "ud.uid=um.uid")->where($where)->page($page)->limit(50)->order(array("ud.uid" => "asc"))->select();
foreach ($users as &$user) {
$uid_d = $user["uid"];
$table2 = new FTable("image_md5", "im");
$image_md5 = $table2->fields(array("im.md5"))->where(array("im.url" => $user["avatar"]))->find();
// echo($user["avatar"]);
$table3 = new FTable("image_md5", "im");
$images = $table3->fields(array("im.url"))->where(array("im.md5" => $image_md5["md5"], "str" => " im.url<>'" . $user["avatar"] . "' ", "im.type" => "avatar"))->select();
$i = 1;
foreach ($images as $image) {
$i++;
$table4 = new FTable("user_detail", "ud");
$users4 = $table4->fields(array("ud.uid"))->where(array("ud.avatar" => $image['url']))->find();
if ($users4) {
$uid_d = $uid_d . "," . $users4['uid'];
}
}
$user["uid_d"] = $uid_d;
$user["uid_i"] = $i;
$user["avatar"] = CommonUtil::getMoreSizeImg($user["avatar"], 222, 222);
}
$page_info = $table->getPagerInfo();
$this->assign('page_info', $page_info);
$this->assign('users', $users);
$this->assign('uid', $uid);
$this->assign('nickname', $nickname);
$this->assign('gender', $gender);
$this->display('admin/user_avatar_list');
}
示例6: list2Action
function list2Action()
{
//global $_F;
//$_F["debug"] = true;
$page = max(1, FRequest::getInt('page'));
$uid = FRequest::getInt('uid');
$nickname = FRequest::getString('nickname');
$gender = FRequest::getInt('gender');
$where = array();
$query_str = " im.status = '1' ";
$table = new FTable("image_md5", "im");
$images = $table->fields(array("im.url", "im.status", "im.type"))->where(array('str' => $query_str))->page($page)->limit(50)->order(array("im.tm" => "asc"))->select();
foreach ($images as &$image) {
//頭像
if ($image['type'] == "avatar") {
$table2 = new FTable("user_detail", "ud");
$users = $table2->fields(array("ud.uid"))->where(array("ud.avatar" => $image['url']))->find();
$image["uid"] = $users['uid'];
$image["type_w"] = "頭像";
}
//大頭像
if ($image['type'] == "avatar_big") {
$image["type_w"] = "大頭像";
}
//相冊
if ($image['type'] == "photo") {
$table2 = new FTable("user_photo_album", "upa");
$users = $table2->fields(array("upa.uid"))->where(array("upa.pic" => $image['url']))->find();
$image["uid"] = $users['uid'];
$image["type_w"] = "相冊";
}
//聊天
if ($image['type'] == "chat") {
$table2 = new FTable("bad_message", "bm", FDB::$DB_MUMU_MESSAGE);
$users = $table2->fields(array("bm.from"))->where(array("bm.origin" => $image['url']))->find();
$image["uid"] = $users['from'];
$image["type_w"] = "聊天";
}
//視屏認證
if ($image['type'] == "video_certify") {
$table2 = new FTable("video_record", "vr");
$users = $table2->fields(array("vr.uid"))->where(array("vr.video_img" => $image['url']))->find();
$image["uid"] = $users['uid'];
$image["type_w"] = "視屏認證";
}
$image["url_xiao"] = CommonUtil::getMoreSizeImg($image["url"], 111, 111);
}
$page_info = $table->getPagerInfo();
$this->assign('page_info', $page_info);
$this->assign('images', $images);
$this->display('admin/user_image_list2');
}
示例7: defaultAction
public function defaultAction()
{
//global $_F;
//$_F["debug"] = true;
$table = new FTable("mumu_youxi");
$mumu_youxis = $table->fields(array("id", "title", "text", "pic", "url", "position"))->limit(20)->order(array("position" => "asc", "id" => "desc"))->select();
foreach ($mumu_youxis as &$mumu_youxi) {
$mumu_youxi["pic"] = CommonUtil::getMoreSizeImg($mumu_youxi["pic"], 280, 280);
$mumu_youxi["text"] = mb_substr($mumu_youxi["text"], 0, 50, "utf-8");
}
$this->assign('mumu_youxi', $mumu_youxis);
$this->assign('title', '慕慕遊戲');
$this->display('mumu_youxi');
}
示例8: defaultAction
public function defaultAction()
{
//global $_F;
//$_F["debug"] = true;
$table = new FTable("weixin_huodong");
$weixin_huodongs = $table->fields(array("id", "title", "text", "pic", "url", "position"))->limit(20)->order(array("position" => "asc", "id" => "desc"))->select();
foreach ($weixin_huodongs as &$weixin_huodong) {
$weixin_huodong["pic"] = CommonUtil::getMoreSizeImg($weixin_huodong["pic"], 280, 280);
$weixin_huodong["text"] = mb_substr($weixin_huodong["text"], 0, 50, "utf-8");
}
$this->assign('weixin_huodong', $weixin_huodongs);
$this->assign('title', '微信活動-慕慕');
$this->display('weixin_huodong');
}
示例9: listAction
function listAction()
{
//global $_F;
// $_F["debug"] = true;
$page = max(1, FRequest::getInt('page'));
$uid = FRequest::getInt('uid');
$tiaojian = FRequest::getString('tiaojian');
$where = array('tp.picslevel' => array('gte' => '3'), 'tp.uid' => array('gte' => '5000000'), 'tp.status' => '1');
if ($uid > 0) {
$where["tp.uid"] = $uid;
}
$datetime_riqi = date("Y-m-d", time());
$datetime_riqi_zuotian = date("Y-m-d", time() - 86400);
$datetime_riqi_qiantian = date("Y-m-d", time() - 172800);
if ($tiaojian == "dangri") {
$query_str = " tp.tm >= '" . $datetime_riqi . " 00:00:00' ";
$where["str"] = $query_str;
}
if ($tiaojian == "zuori") {
$query_str = " tp.tm >= '" . $datetime_riqi_zuotian . " 00:00:00' and tp.tm < '" . $datetime_riqi . " 00:00:00' ";
$where["str"] = $query_str;
}
if ($tiaojian == "qianri") {
$query_str = " tp.tm >= '" . $datetime_riqi_qiantian . " 00:00:00' and tp.tm < '" . $datetime_riqi_zuotian . " 00:00:00' ";
$where["str"] = $query_str;
}
if ($tiaojian == "fengsuo") {
$where["tp.status"] = '2';
} else {
$where["tp.status"] = '1';
}
$table = new FTable("topic", "tp");
$topics = $table->fields(array("tp.id", "tp.uid", "tp.status", "um.gender", "tp.title", "tp.pics", "tp.tm", "ud.nickname", "ud.province", "ud.city", "tp.picslevel"))->leftJoin("user_detail", "ud", "tp.uid=ud.uid")->leftJoin("user_main", "um", "tp.uid=um.uid")->where($where)->page($page)->limit(20)->order(array("tp.id" => "desc"))->select();
foreach ($topics as &$topic) {
$topic_tupian = explode(",", $topic['pics']);
$pics = "";
foreach ($topic_tupian as $topic_pics) {
if ($topic_pics) {
$pics = $pics . CommonUtil::getMoreSizeImg($topic_pics, 100, 100) . ",";
}
}
$topic["pics"] = $pics;
}
$page_info = $table->getPagerInfo();
$this->assign('page_info', $page_info);
$this->assign('topics', $topics);
$this->display('admin/user_topicpics_list');
}
示例10: listAction
/**
* 列表
*/
function listAction()
{
// global $_F;
// $_F["debug"] = true;
$page = max(1, FRequest::getInt('page'));
$where = array();
$shanchu_id = FRequest::getInt('shanchu_id');
if ($shanchu_id) {
$mumu_bas = new FTable('mumu_ba');
$mumu_bas->where(array('id' => $shanchu_id))->remove(true);
}
$table = new FTable("mumu_ba");
$mumu_bas = $table->fields(array("id", "title", "text", "pic", "riqi", "position"))->where($where)->page($page)->limit(20)->order(array("id" => "desc"))->select();
foreach ($mumu_bas as &$mumu_ba) {
$mumu_ba["pic"] = CommonUtil::getMoreSizeImg($mumu_ba["pic"], 100, 100);
}
$page_info = $table->getPagerInfo();
$this->assign('page_info', $page_info);
$this->assign('mumu_ba', $mumu_bas);
$this->display('admin/mumu_ba_list');
}
示例11: defaultAction
public function defaultAction()
{
//global $_F;
//$_F["debug"] = true;
$table = new FTable("mumu_ba");
$mumu_bas = $table->fields(array("id", "title", "text", "pic", "riqi", "position"))->limit(20)->order(array("position" => "asc", "id" => "desc"))->select();
$domList = array();
foreach ($mumu_bas as &$mumu_ba) {
$riqi = explode("-", $mumu_ba["riqi"]);
$mumu_ba["pic"] = CommonUtil::getMoreSizeImg($mumu_ba["pic"], 400, 450);
$mumu_ba["riqi_nian"] = $riqi[0];
$mumu_ba["riqi_yue"] = $riqi[1];
$mumu_ba["riqi_ri"] = $riqi[2];
$sub_arr = array("height" => "100%", "width" => "100%", "content" => '<div><div style="line-height:30px; text-align:left; padding-left: 20px; font-size: 18px; font-weight: bold;">' . $mumu_ba["title"] . '</div><div style=" text-align:center;"><img src="' . $mumu_ba["pic"] . '"></div><div style="height:100px;overflow: hidden;"><div style="float:left; width:100px; margin-right:10px;"><div style=" line-height:45px;font-size:36px; font-weight:bold; color:#0099FF; text-align:center;">' . $riqi[2] . '</div><div style="line-height:25px; text-align:center;">' . self::NumChinese(intval($riqi[1])) . ' ' . $riqi[0] . '</div></div><div style="line-height:25px;overflow: hidden; padding-right: 15px;">' . $mumu_ba["text"] . '</div></div></div>');
array_push($domList, $sub_arr);
}
//echo( json_encode($domList));
$this->assign('domList', json_encode($domList));
$this->assign('title', '慕慕語錄-慕慕');
$this->display('mumu_ba');
}
示例12: youxiuAction
function youxiuAction()
{
//global $_F;
//$_F["debug"] = true;
$page = max(1, FRequest::getInt('page'));
$uid = FRequest::getInt('uid');
$nickname = FRequest::getString('nickname');
$where = array("ud.uid" => array('gte' => '5000000'), "ud.avatarlevel" => 9, "um.stat" => 0);
$datetime_riqi_qiantian = date("Y-m-d", time() - 172800);
$query_str = " um.reg_time >= '" . $datetime_riqi_qiantian . " 00:00:00' ";
$where["str"] = $query_str;
$table = new FTable("user_detail", "ud");
$users = $table->fields(array("um.uid", "um.stat", "um.gender", "um.reg_time", "ud.nickname", "ud.avatar", "ud.province", "ud.city", "ud.birthday", "ud.height", "ud.marry", "ud.aboutme"))->leftJoin("user_main", "um", "ud.uid=um.uid")->where($where)->page($page)->limit(100)->order(array("ud.uid" => "desc"))->select();
foreach ($users as &$user) {
$user["age"] = CommonUtil::birthdayToAge($user["birthday"]);
$user["avatar"] = CommonUtil::getMoreSizeImg($user["avatar"], 50, 50);
}
$page_info = $table->getPagerInfo();
$this->assign('page_info', $page_info);
$this->assign('users', $users);
$this->display('admin/user_list_youxiu');
}
示例13: listAction
function listAction()
{
//global $_F;
//$_F["debug"] = true;
$page = max(1, FRequest::getInt('page'));
$uid = FRequest::getInt('uid');
$where = array();
if ($uid) {
$where["vr.uid"] = $uid;
} else {
$where["vr.status"] = 0;
}
$table = new FTable("video_record", "vr");
$users = $table->fields(array("vr.uid", "vr.id", "vr.photos", "vr.status", "vr.tm", "ud.video_img", "ud.nickname", "um.reg_ip", "um.model", "um.sysver"))->leftJoin("user_detail", "ud", "vr.uid=ud.uid")->leftJoin("user_main", "um", "vr.uid=um.uid")->where($where)->page($page)->limit(20)->order(array("vr.id" => "asc"))->select();
foreach ($users as &$user) {
$user["video_img"] = CommonUtil::getMoreSizeImg($user["video_img"], 222, 222);
}
$page_info = $table->getPagerInfo();
$this->assign('page_info', $page_info);
$this->assign('users', $users);
$this->assign('uid', $uid);
$this->display('admin/user_video_record');
}
示例14: listAction
/**
* 添加地址
*/
function listAction()
{
//global $_F;
// $_F["debug"] = true;
$page = max(1, FRequest::getInt('page'));
$type = CommonUtil::getDefStr(FRequest::getString('type'), "main");
$this->assign('type', $type);
$where = array();
$shanchu_id = FRequest::getInt('shanchu_id');
if ($shanchu_id) {
$focus = new FTable('focus');
$focus->where(array('id' => $shanchu_id))->remove(true);
}
$xiaxian_id = FRequest::getInt('xiaxian_id');
if ($xiaxian_id) {
$events_table = new FTable("focus");
$events_table->where(array("id" => $xiaxian_id))->update(array("status" => 0));
}
$shangxian_id = FRequest::getInt('shangxian_id');
if ($shangxian_id) {
$events_table = new FTable("focus");
$events_table->where(array("id" => $shangxian_id))->update(array("status" => 1));
}
if ($type) {
$where['type'] = $type;
}
$table = new FTable("focus");
$focus = $table->fields(array("id", "type", "text", "pic", "action", "position", "status"))->where($where)->page($page)->limit(20)->order(array("position" => "asc", "id" => "desc"))->select();
foreach ($focus as &$focu) {
$focu["pic"] = CommonUtil::getMoreSizeImg($focu["pic"], 100, 100);
$focu["action"] = json_decode($focu["action"]);
}
$page_info = $table->getPagerInfo();
$this->assign('page_info', $page_info);
$this->assign('focus', $focus);
$this->display('admin/focus_list');
}
示例15: updateAction
/**
* 審核用戶詳情
*/
function updateAction()
{
global $_F;
$uid = FRequest::getInt("uid");
$user_detail_table = new FTable("user_main", "um");
$user = $user_detail_table->leftJoin("user_detail", "ud", "um.uid=ud.uid")->where(array("um.uid" => $uid))->select();
$user[0]["age"] = CommonUtil::birthdayToAge($user[0]["birthday"]);
$interests = explode(",", $user[0]["interest"]);
$this->assign("old_interests", $interests);
$photo_table = new FTable("user_photo_album");
$photos = $photo_table->fields(array("pic", "albumid"))->where(array("uid" => $uid, "first_status" => 0))->select();
$photo_arr = $photos;
$uid_d = $uid;
$table2 = new FTable("image_md5", "im");
$image_md5 = $table2->fields(array("im.md5"))->where(array("im.url" => $user[0]["avatar"]))->find();
// echo($user["avatar"]);
$table3 = new FTable("image_md5", "im");
$images = $table3->fields(array("im.url"))->where(array("im.md5" => $image_md5["md5"], "str" => " im.url<>'" . $user[0]["avatar"] . "' "))->select();
$i = 1;
foreach ($images as $image) {
$i++;
$table4 = new FTable("user_detail", "ud");
$users4 = $table4->fields(array("ud.uid"))->where(array("ud.avatar" => $image['url']))->find();
if ($users4) {
$uid_d = $uid_d . "," . $users4['uid'];
}
}
$user[0]["uid_d"] = $uid_d;
$user[0]["uid_i"] = $i;
$user[0]["avatar"] = CommonUtil::getMoreSizeImg($user[0]["avatar"], 222, 222);
$this->assign("user", $user[0]);
$update_record = new FTable("update_record");
$updates = $update_record->fields(array("item"))->where(array("uid" => $uid, "status" => 0))->select();
//$update_arr = $updates;
//$size = count($updates);
$update_arr = array();
$j = 0;
foreach ($updates as $update) {
$update_arr[$j] = $update['item'];
$j++;
}
//echo(json_encode($update_arr));
if (in_array("nickname", $update_arr)) {
$nickname = "red";
}
if (in_array("avatar", $update_arr)) {
$avatar = "red";
}
if (in_array("aboutme", $update_arr)) {
$aboutme = "red";
}
/* $photo_arr = array();
foreach($photos as $photo){
array_push($photo_arr,$photo["pic"]);
}*/
//echo(count($photo_arr));
$this->assign("photos", $photo_arr);
$this->assign("photos_num", count($photo_arr));
$this->assign("stars", self::$STARS);
$this->assign("nickname", $nickname);
$this->assign("avatar", $avatar);
$this->assign("aboutme", $aboutme);
$this->display('admin/y_user_update');
}