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


PHP myclass::fs_flag方法代码示例

本文整理汇总了PHP中myclass::fs_flag方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::fs_flag方法的具体用法?PHP myclass::fs_flag怎么用?PHP myclass::fs_flag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在myclass的用法示例。


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

示例1:

    }
    if ($modal['response'] == 'dislike') {
        $modal['thumbsDown'] = 'look-red-thumb-down.png';
    }
}
# set points color
$modal['response_drip'] = $mc->fs_drip_modals_Query(array('limit_start' => 0, 'limit_end' => 1, 'query_where' => "table_id = {$modal['table_id']} and mno = {$mno}", 'query_order' => 'dmno asc', 'query_drip' => 'get-all-user-dripped'));
if (!empty($modal['response_drip'])) {
    // $modal['src_img_drip'] = "look-icon-drip-selected.png";
    $modal['src_img_drip'] = "look-icon-drip.png";
}
$modal['response_favorite'] = $mc->fs_favorite_modals_Query(array('limit_start' => 0, 'limit_end' => 1, 'query_where' => "table_id = {$modal['table_id']} and mno = {$mno}", 'query_order' => 'fmno asc', 'query_favorite' => 'get-all-user-favorite'));
if (!empty($modal['response_favorite'])) {
    $modal['src_img_favorite'] = "look-icon-favorite-detail-yellow.png";
}
$response = $mc->fs_flag(array('type' => 'select', 'limit_start' => 0, 'limit_end' => 1, 'where' => "table_id  = {$plno} and table_name= 'postedlooks' and mno = {$mno} "));
if (!empty($response)) {
    $modal['src_img_flag'] = "large-flag-red.png";
}
# set status of owner or not for the user not allow to rate , drip and favorite the modal
if ($modal['mno'] == $mno) {
    $modal['stat_rated'] = 'modal owner';
    $modal['stat_dripted'] = 'modal owner';
    $modal['stat_favorited'] = 'modal owner';
}
$keyword = modal::conver_cetegory_to_keyword($pltags);
$title = page::set_url_for_modal_details($modal['table_id'], 'look', $style, $date_, $lookName);
// set url of the page
echo "</div>";
// echo " $keyword ";
// $lookName = 'Mauricio (member) has 7 people who signed up using the referral link.There are currently1000 people on the waiting list who has no association to any member on the';
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:more-look.php

示例2:

        $modal['thumbsUp'] = 'look-red-thumbs.png';
    }
    if ($modal['response'] == 'dislike') {
        $modal['thumbsDown'] = 'look-red-thumb-down.png';
    }
}
#set points color
$modal['response_drip'] = $mc->fs_drip_modals_Query(array('limit_start' => 0, 'limit_end' => 1, 'query_where' => "table_id = {$modal['table_id']} and mno = {$mno}", 'query_order' => 'dmno asc', 'query_drip' => 'get-all-user-dripped'));
if (!empty($modal['response_drip'])) {
    $modal['src_img_drip'] = "look-icon-drip-selected.png";
}
$modal['response_favorite'] = $mc->fs_favorite_modals_Query(array('limit_start' => 0, 'limit_end' => 1, 'query_where' => "table_id = {$modal['table_id']} and mno = {$mno}", 'query_order' => 'fmno asc', 'query_favorite' => 'get-all-user-favorite'));
if (!empty($modal['response_favorite'])) {
    $modal['src_img_favorite'] = "look-icon-favorite-selected.png";
}
$response = $mc->fs_flag(array('type' => 'select', 'limit_start' => 0, 'limit_end' => 1, 'where' => "table_id  = {$modal['table_id']} and table_name= 'fs_postedarticles' and mno = {$mno} "));
if (!empty($response)) {
    $modal['src_img_flag'] = "large-flag-red.png";
}
# set status of owner or not for the user not allow to rate , drip and favorite the modal
if ($modal['mno'] == $mno) {
    $modal['stat_rated'] = 'modal owner';
    $modal['stat_dripted'] = 'modal owner';
    $modal['stat_favorited'] = 'modal owner';
}
/* 
 *  set view more for the article link  
 */
$more = $mc->look_with_more($modal['table_id'], $modal['source_url'], 'fs_postedarticles');
// set more..
page::set_url_for_modal_details($modal['table_id'], 'article', $modal['topic'], $modal['date'], $modal['title']);
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:articledetails-dev-clicked.php


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