コード例 #1
0
                }
                echo '</td></tr>';
                print_search_bar($current_uid, $uid_list);
            } else {
                echo '<tr><td>
							<font style="padding-left: 5px; padding-right: 5px;">
							<fb:profile-pic uid="' . $user_id . '" linked="false" width="50" height="50" />
							</font></td></tr>';
                print_search_bar($user_id, $user_id);
            }
        } else {
            echo '<tr><td>
						<font style="padding-left: 5px; padding-right: 5px;">
						<fb:profile-pic uid="' . $user_id . '" linked="false" width="50" height="50" />
						</font></td></tr>';
            print_search_bar($user_id, $user_id);
        }
    }
} catch (Exception $e) {
    echo 'Caught database exception: ', $e->getMessage(), "\n";
}
function print_search_bar($current_uid, $uid_list)
{
    echo '<tr><td>
<fb:fbml version="1.1">
<fb:editor action="set_policy_transform_add.php">
							<fb:friend-selector uid="' . $current_uid . '" name="find_friend_selector" idname="find_friend_selector"></fb:friend-selector>
							<input type="hidden" name="uid_list" value="' . $uid_list . '"/>
<font style="padding-left: 15px; padding-right: 15px;font-weight: bold;Color: #AA3333;">
Search from <fb:name uid="' . $current_uid . '" useyou="false" linked="true" />' . "'" . ' friends
</font>
コード例 #2
0
ファイル: index.php プロジェクト: MichaelTzach/Coupons-Server
</div>

<!--	MAIN SECTION	-->
<div class="container-fluid">
    <!--	NAV BAR	-->
    <?php 
include 'views/bottom_nav_bar.php';
print_bottom_nav_bar($section, $is_logged_in);
?>
    
    <div class="row">
        <!--LEFT SEARCH BAR-->
        <div class="col-md-2" style="background-color:lavender;">
            <?php 
include 'views/search_bar_coupons.php';
print_search_bar($section);
?>
        </div>
        
        <!--CENTRAL SECTION-->
        <div class="col-md-10" style="background-color:lightsky;">
			<?php 
include_once 'views/coupon_gallery.php';
if ($section === "home") {
    print_coupon_gallery(3, $array_of_coupons_after_search, 0, $is_logged_in, false);
}
if ($section === "MyCoupons") {
    print_deal_gallery(4, $array_of_coupons_after_search, 0);
}
if ($section === "purchase_confirmation") {
    print_single_coupon_in_galley($array_of_coupons_after_search);