Example #1
0
                                    <li id='brand-tab-5' > <div onclick="welcome_select_brand_tab('Grunge', '5', 'brand')"                   >Grunge</div></li>
                                    <li id='brand-tab-6' > <div onclick="welcome_select_brand_tab('Menswear', '6', 'brand')"                 >Menswear</div></li>
                                    <li id='brand-tab-8' > <div onclick="welcome_select_brand_tab('Preppy', '8', 'brand')"                   >Preppy</div></li>
                                    <li id='brand-tab-7' > <div onclick="welcome_select_brand_tab('Streetwear', '7', 'brand')"               >Streetwear</div></li>
                                    <li>
                                        <select id="welcome-gender-brand" style="display:none" >
                                            <option value="all gender" >All gender</option>
                                            <option value="male" >Male</option>
                                            <option value="female">Female</option>
                                        </select>
                                    </li>
                                </ul>
                            </div>
                            <div class="welcome-loader-container" >
                                <?php 
$mc->image(array('type' => 'loader', 'id' => 'welcome-loader-brand'));
?>
                            </div>
                            <div style="clear:both"> </div>
                            <center>
                                <div class="welcome-brand-container" >
                                    <div style="clear:both"> </div>
                                    <ul id="welcome-container-ul-row1" >
                                        <?php 
for ($i = 0; $i < $brandContent_len; $i++) {
    ?>
                                            <?php 
    $bno = $brandContent[$i]['bno'];
    $bcno = $brandContent[$i]['bcno'];
    $branCategoryContent = $brand->category($bcno);
    $type = $branCategoryContent[0]['type'];
Example #2
0
    // $mc->go("/");
}
$mc->auto_detect_path();
$_SESSION['plno'] = $plno;
//			$plno                = $plno;
$img = "{$mc->look_folder_lookdetails}/{$plno}.jpg";
$modal['table_name'] = 'postedlooks';
$modal['table_id'] = $plno;
$mc->get_visitor_info("", "lookdetails page lookid = {$plno} ", "home");
$nno = !empty($_GET['nno']) ? intval($_GET['nno']) : 0;
# UPDATE NOTIFICATION AS VIEWED
if ($nno != 0) {
    $response = $mc->posted_modals_notification_Query(array('nno' => $nno, 'notification_query' => 'set-notification-viewed'));
}
# 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'));
// echo " this is the src $modal[src] <br> ";
# initialized 2
$li = $mc->posted_look_info($_GET['id']);
$_SESSION['plno'] = $_GET['id'];
$date_ = $li['date_'];
$lookOwnerMno = intval($li["lookOwnerMno"]);
$mno1 = intval($li["lookOwnerMno"]);
$memFsInfo = $mc->get_user_full_fs_info($mno1);
$opercentage = $memFsInfo['opercentage'];
$otrating = $memFsInfo['otrating'];
$user['username'] = $memFsInfo['username'];
$user['profile_tab'] = 'looks';
$mno = $_SESSION["mno"];
$lookOwnerName = $li["lookOwnerName"];
$pltags = $li['pltags'];
Example #3
0
																										<div style="padding-bottom:5px;padding-top:5px;" >Brand</div> 

																										<!-- old version --> 
																											<div style="display:none" >
																						 						<input style="width:157px;font-size:14px;"   type='text' id='BRAND<?php echo $c;  ?>' class='not_static_input' value='' onkeyup='retrieve_brands(this.id)' >  
																						 						<div style="position:absolute;z-index:102; margin-left:70px; margin-top:10px;" >
																						 							<img src="fs_folders/images/attr/loading 2.gif"  style="display:none;height:10px;" id="brand_loader_<?php echo $c; ?>"  > 
																						 						</div> 
																						 						<div class='ajax_BRAND<?php echo $c;  ?>' id='ajax_BRAND<?php echo $c;  ?>' style='display:none; background:#284372;border:1px solid none; border:1px solid none; height:30px;  width:157px; position:absolute;' >   
																						 						</div>    
																					 						</div>
																				 						<!-- new version --> 
																					 						<input style="width:157px;padding:5px;"  id="brand<?php echo $c; ?>"   type='text' onkeyup="modal( 'modal-attribute' , 'search' , 'brand' , 'autocomplete-dropdown-loader-brand<?php echo $c ?>' , 'autocomplete-dropdown-container-brand<?php echo $c; ?>' , 'brand<?php echo $c; ?>' )" />   
																						 					<div id="label-look-dropdown-container" >  
																											    <div class="autocomplete-dropdown-container" id="autocomplete-dropdown-container-brand<?php echo $c; ?>" >  
																											    	<center><div id="autocomplete-dropdown-loader-cotainer"  class="autocomplete-dropdown-loader-cotainer-brand<?php echo $c;  ?>"   >  <?php $mc->image( array( 'type'=>'loader' , 'id'=>"autocomplete-dropdown-loader-brand$c" ,'style'=>'visibility:visible;height:10px;'  ) ); ?></div></center>  
																											    </div> 
																											</div> 
																									 </td>
																								<tr>
																									<td style="padding-top:0px;padding-bottom:0px;" > 
																										<div style="padding-bottom:5px;padding-top:5px;" >Garment</div>
																										<!-- old version --> 
																											<div style="display:none" >
																							 					<div  id='GARMENT<?php echo $c;  ?>'class='static_div_input' onclick='retrieve_garment(this.id)' > 
																							 					</div>   
																							 					<div class='ajax_GARMENT<?php echo $c;  ?>' id='ajax_GARMENT<?php echo $c;  ?>'   > </div> 
																							 				</div>   
																						 				<!-- new version --> 
																						 					<input style="width:157px;padding:5px;"  id="garment<?php echo $c; ?>"   type='text' onkeyup="modal( 'modal-attribute' , 'search' , 'garment' , 'autocomplete-dropdown-loader-garment<?php echo $c ?>' , 'autocomplete-dropdown-container-garment<?php echo $c; ?>' , 'garment<?php echo $c; ?>' )" />   
																						 					<div id="label-look-dropdown-container" >  
Example #4
0
                    # load image and get height and width
                        $ri->load("$mc->profileTimeline_original/$mno.jpg");   
                        $img_height = $ri->getHeight();  
                        $img_width  = $ri->getWidth();      
                        echo " height $img_height width $img_width ";





                      if ( $img_width > $width ) {
                        $mc->image( 
                          array( 
                            'type'=>"resize",
                            'osrc'=>"$mc->profileTimeline_original/$mno.jpg",
                            'nsrc'=>"$mc->profileTimeline_original/$mno.jpg",
                            'nw'=>$width   
                          ) 
                        ); 
                      }
                       


                    # if height >= 1050 return 1050 
                    # else return height
                    
                        if ( $img_height > 260) {
                            $img_height = 260;
                        }  

                    # if width >= 1024 return 1024 
Example #5
0
        } else {
            $page = "detail?id={$table_id}";
        }
        $_SESSION['hide_page'] = array('header', 'footer');
        ?>
   
		 				<div id='details-popup-container' >  
		 					<div id='gen-popup-close' > 
	 							<input type="button" onclick="fs_popup('close','','','','','','','','')" value="close">
							</div>  
		 					<iframe src="<?php 
        echo $url . $page;
        ?>
"  >   
		 						<?php 
        $mc->image(array('type' => 'loader', 'id' => "popup-details-loader", 'style' => 'visibility:hidden;height:10px;'));
        ?>
 
		 					</iframe>  
		 				</div><?php 
        break;
    case 'invited-person':
        switch ($process) {
            case 'function':
                if (false) {
                    if (LookbookDatabase::isUserAlreadSignedUp($invited_id)) {
                        //invited_status = 2
                        echo "<br> this user is already signed up and approved then it should go to sign up";
                        $response = mysql_query(" UPDATE fs_invited SET invited_status = 2 , invited_date = '{$mc->date_time}' WHERE invited_id = {$invited_id} ");
                    } else {
                        echo "<br> this user not yet sign up and approved ";
 $modal['comments_len'] = count($modal['comments_all']);
 # get next prev
 $modal['nextprev'] = $mc->db_result_next_prev($modal['table_name'], $modal['table_id'], $modal['modal_more'], 'all');
 // $mc->print_r1( $modal['modal_more']);
 // $modal['next']
 // $modal['prev']
 // $mc->print_r1( $modal['nextprev']);
 // echo " total comments are $modal[comments_len]     <br> ";
 // $mc->print_r1($modal['modal'] );
 // $mc->print_r1( $modal['modal_more'] );
 # SET SESSION
 $_SESSION['modal_more'] = $modal['modal_more'];
 $_SESSION['nextprev'] = $modal['nextprev'];
 $_SESSION['modal'] = $modal['modal'];
 # 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'));
 echo " this is the main image src {$modal['src']}  <br> ";
 # MODAL DISPLAYED
 $modal['prev'] = $modal['nextprev']['prev'];
 $modal['next'] = $modal['nextprev']['next'];
 $modal['next'] = $modal['nextprev']['next'];
 $modal['prev'] = $modal['nextprev']['prev'];
 $modal['type'] = $modal['modal'][0]['type'];
 $modal['source_item'] = $modal['modal'][0]['source_item'];
 $modal['title'] = $modal['modal'][0]['title'];
 $modal['description'] = $modal['modal'][0]['description'];
 $modal['keyword'] = $modal['modal'][0]['keyword'];
 $modal['category'] = $modal['modal'][0]['category'];
 $modal['topic'] = $modal['modal'][0]['topic'];
 $modal['source_url'] = $modal['modal'][0]['source_url'];
 $modal['source_item'] = $modal['modal'][0]['source_item'];
Example #7
0
            $desc = ' percentage ( ' . $minfo[0]['tpercentage'] . '% ) ';
            if (!empty($minfo[0]['country'])) {
                $desc .= ' <b>from:</b> <em>' . $minfo[0]['country'] . '</em>';
            }
            $title = $minfo[0]['fullname'];
            $content = "<b>{$title}</b>  <br><span style='font-size:8px;font-family:arial' > {$desc} </span>";
            # print modal info
            echo "\n                                                         <a href='{$link}' >\n                                                            <div id='search-container-result-div'  >\n                                                                <table  border='0' cellspadding='0' cellspacing='2' style=' border-right:2px solid none;  '  >\n                                                                    <tr>\n                                                                        <td style='width:50px; border: 1px solid none;' >\n                                                                            <div> {$image}  </div>\n                                                                        </td>\n                                                                        <td style='width:100%; border: 1px solid none; padding-right:5px;'  >\n                                                                            <div style='font-family:arial' > {$content} </div>\n                                                                        </td>\n\n                                                                </table>";
            echo "\n                                                            </div>\n                                                        </a>\n                                                    ";
        }
    }
} else {
    // echo " <div style='height:381px;' > </div> ";
}
echo "\n                                </div>\n                                <center>\n                                    <table border='0' cellspacing='0' cellspadding='0' id='search-result-table-loader-and-viewmore' >\n                                        <tr>\n                                            <td>";
$mc->image(array('type' => 'loader', 'id' => "search-result-view-more-loader-member", 'style' => 'visibility:hidden;height:10px;'));
echo "</td>\n                                        <tr>\n                                            <td> <div id='search-response-title-2'  onclick=' header( \"view-more-search-result\" , event , \"header\" , \"fs_members\" , \"0\" , \"search-content-result-cotainer-member\" , \"#search-result-view-more-loader-member\" ) '   >  \t\t\t  {$text_more_member} </div>  </td>\n                                    </table>\n                                <center>\n                            </li>\n                            <li style='width:283px; border: 1px solid none; '  id='search-result-container-li' >\n                                <div id='search-response-title-1'  style='padding-bottom:20px;margin-left:2px;'  >ARTICLE</div>\n                                <div style='' id='search-content-result-cotainer-article' > ";
if (!empty($article)) {
    for ($i = 0; $i < count($article); $i++) {
        if ($article[$i]['table_name'] == 'fs_postedarticles') {
            # initialized
            $sno = $article[$i]['sno'];
            $keyword = $article[$i]['keyword'];
            $table_name = $article[$i]['table_name'];
            $table_id = intval($article[$i]['table_id']);
            $date = $article[$i]['date'];
            $fullname = 'content';
            $modal = 'modal';
            $username = '******';
            $src = $mc->modal(array('table_name' => $table_name, 'table_id' => $table_id, 'type' => 'get-modal-image', 'size' => 'small'));
            $link = $mc->set_link($table_name, $table_id);