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


PHP page::set_url_for_modal_details方法代码示例

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


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

示例1:

$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';
// echo " this is the len of the string ".strlen($lookName);
?>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>New Details Page Development</title>
    <link rel="stylesheet" type="text/css" href="fs_folders/index_home/home_css/home.css">
    <script type="text/javascript" src='fs_folders/fs_lookdetails/lookdetails_js/lookdetails_ajax.js'></script>
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:more-look.php

示例2:

$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']);
// set url of the page
// $modal['source_url'] = strip_tags($modal['source_url']);
// echo " <br><br><br>this is the me  url ".$modal['source_url'].'<br>' ;
// echo " click $more  to show popup <br> ";
/** get article attribute */
$post_attr = $post->get_post("table_id = {$table_id} and table_name = 'fs_postedarticles'");
$alt = !empty($post_attr[0]['alt']) ? $post_attr[0]['alt'] : "";
//modal like status
$look_attr['response'] = $mc->posted_modals_rate_Query(array('mno' => $mno, 'table_name' => $modal['table_name'], 'table_id' => $modal['table_id'], 'rate_query' => 'get-user-rated-type'));
if ($look_attr['response'] == true) {
    $look_attr['stat_rated'] = 'look already rated';
    if ($look_attr['response'] == 'like') {
        $look_attr['thumbsUp'] = 'look-red-thumbs.png';
    }
    if ($look_attr['response'] == 'dislike') {
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:articledetails-dev-clicked.php

示例3: modal_version1_article


//.........这里部分代码省略.........
            if ($look_attr['response'] == 'dislike') {
                $look_attr['thumbsDown'] = 'look-red-thumb-down.png';
            }
            $look_rated = true;
        } else {
            $look_rated = false;
        }
        // echo " video id ".$look_attr['video_id'];
        #set points color
        $look_attr['response_drip'] = $this->fs_drip_modals_Query(array('limit_start' => 0, 'limit_end' => 1, 'query_where' => "table_id = {$plno} and mno = {$mno}", 'query_order' => 'dmno asc', 'query_drip' => 'get-all-user-dripped'));
        if (!empty($look_attr['response_drip'])) {
            // $look_attr['src_img_drip'] = "look-icon-drip-selected.png";   // the colored driped
            //$look_attr['src_img_drip_dynamic'] = "look-icon-drip-selected.png";  // update the main initialized when u want to have a color when the dripped clicked
            $look_attr['src_img_drip'] = "look-icon-drip.png";
        }
        $look_attr['response_favorite'] = $this->fs_favorite_modals_Query(array('limit_start' => 0, 'limit_end' => 1, 'query_where' => "table_id = {$plno} and mno = {$mno}", 'query_order' => 'fmno asc', 'query_favorite' => 'get-all-user-favorite'));
        if (!empty($look_attr['response_favorite'])) {
            $look_attr['src_img_favorite'] = "look-icon-favorite-selected.png";
        }
        $response = $this->fs_flag(array('type' => 'select', 'limit_start' => 0, 'limit_end' => 1, 'where' => "table_id  = {$plno} and table_name= 'fs_postedarticles' and mno = {$mno} "));
        if (!empty($response)) {
            $look_attr['src_img_flag'] = "large-flag-red.png";
        }
        # get image src
        $look_attr['src'] = $this->image(array('table_name' => $look_attr['table_name'], 'table_id' => $plno, 'type' => 'get-default-image-src', 'size' => 'home', 'path' => $look_attr['path']));
        # set status of owner or not for the user not allow to rate , drip and favorite the modal
        // echo " $look_attr[owner] == $mno  ";
        if ($look_attr['owner'] == $mno) {
            $look_attr['stat_rated'] = 'modal owner';
            $look_attr['stat_dripted'] = 'modal owner';
            $look_attr['stat_favorited'] = 'modal owner';
        }
        //set url of the article page detail
        $title = page::set_url_for_modal_details($plno, 'article', strtolower($look_attr['topic']), $date, strtolower($look_attr['title']));
        /** get article attribute */
        // $post_attr = $this->post->get_post("table_id = $artno and table_name = 'fs_postedarticles'");
        // $alt =  (!empty($post_attr[0]['alt'])) ? $post_attr[0]['alt'] : "";
        $alt = "this is the alt";
        if ($page == 'rate-article' || $page == 'rate-page') {
            $feed = TRUE;
        } else {
            $feed = FALSE;
        }
        /** on the blue box show latest member to like post and the total number of likes by others */
        $table_name = $look_attr['table_name'];
        $latestUserRated = select_v3('fs_rate_modals', 'mno', "table_id = {$plno} and table_name = '{$table_name}' ORDER BY rmno desc limit 1");
        if (!empty($latestUserRated[0]['mno'])) {
            $latestLikerName = $this->get_full_name_by_id($latestUserRated[0]['mno']);
        }
        // echo "Latest Liker Name = $latestLikerName";
        $featuredLooks = select_v3('fs_postedarticles', '*', "mno = '" . $look_attr['owner'] . "'  and artno <> {$plno} and category = '" . $look_attr['category'] . "' order by pltvotes desc limit 3");
        ?>
     


      				<modals-item >   
      				 	<div class="<?php 
        echo "{$_table}-{$plno}";
        ?>
" >
	      					<div style="display:none"> 
								<class>look_t<?php 
        echo $ano;
        ?>
</class><class>look_t<?php 
        echo $ano;
开发者ID:jesus143,项目名称:fs-dev,代码行数:67,代码来源:fs.console.source.php

示例4: load_look_picture_and_tags


//.........这里部分代码省略.........
        #check if already thumbs up or down
        $modal['response'] = $mc->posted_modals_rate_Query(array('mno' => $mno, 'table_name' => $modal['table_name'], 'table_id' => $modal['table_id'], 'rate_query' => 'get-user-rated-type'));
        if ($modal['response'] == true) {
            $modal['stat_rated'] = 'look already rated';
            if ($modal['response'] == 'like') {
                $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-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";
        }
        # get image src
        $modal['src'] = $mc->image(array('table_name' => $modal['table_name'], 'table_id' => $modal['table_id'], 'type' => 'get-default-image-src', 'size' => 'detail', 'path' => $modal['path']));
        # 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';
        }
        #get title url of the page
        $url = page::set_url_for_modal_details($plno, 'look', $plstyle, $date_, $look_attr['title']);
        ?>
    


					<style type="text/css">
						#posted-look-response { list-style: none; }
					</style>
				<ul id="posted-look-response" > 
					<pageurl><?php 
        echo $url;
        ?>
<pageurl>
					<pagetitle><?php 
        echo "{$lookName}-{$lookOwnerName}-Fashion Sponge";
        ?>
 <pagetitle>
					<item>1</item>
					<item><?php 
        echo "{$lookName}-{$lookOwnerName}-Fashion Sponge";
        ?>
</item> 
					<item>2</item> 
					<item>  
 						<table id="banner_view_and_look_view_table_container" border="0"  cellpadding="0" cellspacing="0" >
									 		<tr>   
									 			<td> 
									 				<?php 
        // echo "test1";
        // echo " plno =  $plno <br>  looks <br>";
        // print_r($looks);
        // $mc->arrow_left_right_pressed_for_next_prev( $plno ,  $looks );
        ?>
开发者ID:jesus143,项目名称:fs-dev,代码行数:67,代码来源:lookdetails_modals.php


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