示例#1
0
function getminipro($user)
{
    $minipro = array();
    if ($_SESSION['userid'] == $user) {
        $minipro = array("userid" => $_SESSION['userid'], "username" => $_SESSION['username'], "propic" => imageurl($_SESSION['propic']), "friends" => $_SESSION['friends'], "votes" => $_SESSION['votes'], "mood" => $_SESSION['mood'], "url" => $_SESSION['url'], "type" => $_SESSION['type'], "sex" => $_SESSION['sex']);
    } else {
        $result = mysql_query("select type from freniz where userid='" . $user . "'");
        while ($row = mysql_fetch_assoc($result)) {
            if ($row['type'] == 'user') {
                $result1 = mysql_query("select fname,lname,propic,mood,url,sex from user_info where userid='" . $user . "'");
                while ($row1 = mysql_fetch_assoc($result1)) {
                    $username = $row1['fname'] . " " . $row1['lname'];
                    $propic = $row1['propic'];
                    $results2 = mysql_query("select friendlist,vote from friends_vote where userid='" . $user . "'");
                    while ($row2 = mysql_fetch_assoc($results2)) {
                        $minipro = array("userid" => $user, "username" => $username, "propic" => imageurl($propic), "friends" => unserialize($row2['friendlist']), "votes" => unserialize($row2['vote']), "mood" => $row1['mood'], "url" => $row1['url'], "type" => 'user', "sex" => $row1['sex']);
                    }
                }
            } else {
                if ($row['type'] == 'page') {
                    $result1 = mysql_query("select pagename,pagepic,vote,bannedusers,canpost,url,admins,creator from pages where pageid='" . $user . "'");
                    while ($row1 = mysql_fetch_assoc($result1)) {
                        $minipro = array("userid" => $user, "username" => $row1['pagename'], "propic" => imageurl($row1['pagepic']), "friends" => array(), "votes" => unserialize($row1['vote']), "bannedusers" => unserialize($row1['bannedusers']), "canpost" => $row1['canpost'], "url" => $row1['url'], "admins" => unserialize($row1['admins']), "type" => 'leaf', "sex" => "leaf", "creator" => $row1['creator']);
                    }
                }
            }
        }
    }
    return $minipro;
}
            the_field('wpmt_performance_duration');
            echo " mins";
        }
        ?>
                </div>


                <div class="fd_director">
                    <?php 
        if (get_field('wpmt_performance_directors')) {
            echo "Director: " . get_field('wpmt_performance_directors') . '<br />';
        }
        ?>
                    <?php 
        if (get_field('wpmt_performance_free')) {
            echo '<img src="' . imageurl() . '/btn_free.png" alt="FREE" height="18" style="margin-top:5px" />';
        }
        ?>
                </div>

                <?php 
        //if ( get_field('wpmt_screen_id') == '4' || get_field('wpmt_performance_format') == '3D Digital' ) :
        ?>
                <div class="fs_sr_3d">
                    <?php 
        //if ( get_field('wpmt_screen_id') == '4' ) 			{ echo "Presented in our intimate 18-seat screening room"; }
        ?>
                    <?php 
        if (get_field('wpmt_performance_format') == '3D Digital') {
            echo "Presented in Fabulous 3D!";
        }
function wpmt_cs_display_slider_content($post)
{
    ?>

	<div class="coda-nav-li tab<?php 
    echo $i;
    ?>
">

		<!--<div class="slider-tab">
			<?php 
    //if ( date( 'l, M j', strtotime( 'midnight +1 day' ) ) >=  date( 'l, M j', strtotime( get_field( 'wpmt_film_start' ) ) ) ) :
    ?>
				<div class="slider-status slider-status-<?php 
    //echo 'nowplaying';
    ?>
">	&nbsp;</div>
			<?php 
    //else :
    ?>
				<div class="slider-status slider-status-<?php 
    //echo 'comingsoon';
    ?>
">	&nbsp;</div>
			<?php 
    //endif;
    ?>
		</div>--><!--close slider-tab"-->

		<div class="coda-img">
			<a href="<?php 
    the_permalink();
    ?>
">

				<?php 
    echo wp_get_attachment_image(get_field('wpmt_film_image'), $size = 'wpmt_image', $icon = false, $attr = array('alt' => get_the_title($post), 'title' => get_the_title($post)));
    ?>

			</a>
		</div>

		<div class="coda-content">
			<div class="fd_title">
				<h3><a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a></h3>
			</div>

			<div class="fs_rating">
				<?php 
    if (get_field('wpmt_film_genre')) {
        the_field('wpmt_film_genre');
    }
    ?>
				<?php 
    if (get_field('wpmt_film_genre') && get_field('wpmt_film_rating')) {
        echo " / ";
    }
    ?>
				<?php 
    if (get_field('wpmt_film_rating')) {
        the_field('wpmt_film_rating');
    }
    ?>
				<?php 
    if (get_field('wpmt_film_rating') && get_field('wpmt_film_duration')) {
        echo " / ";
    }
    ?>
				<?php 
    if (get_field('wpmt_film_duration')) {
        the_field('wpmt_film_duration');
        echo " mins";
    }
    ?>
			</div>

			<div class="fs_description">
				<?php 
    echo wp_trim_words(get_field('wpmt_film_synopsis'), 100, '...');
    ?>
				<a href="<?php 
    the_permalink();
    ?>
">[MORE]</a>

				<div class="fs_sr_3d">
					<?php 
    //if ( get_field('wpmt_screen_id') == '4' ) 			{ echo 'Presented in our intimate 18-seat screening room'; }
    ?>
					<?php 
    if (get_field('wpmt_film_format') == '3D Digital') {
        echo 'Presented in Fabulous 3D!';
    }
    ?>
					<?php 
    if (get_field('wpmt_film_free')) {
        echo '<div class="slider-event-free">	&nbsp;</div>';
    }
    ?>
				</div>
			</div> <!-- #fs_description -->

			<div class="slider_bottom_btns">

				<?php 
    if (get_field('wpmt_film_rt_rating')) {
        ?>
					<div class="watch_trailer"><div class="rt_<?php 
        if (get_field('wpmt_film_rt_rating') >= 60) {
            echo "fresh";
        } else {
            echo "rotten";
        }
        ?>
">&nbsp;</div>
						<div class="rt_text"><a href="<?php 
        echo the_permalink();
        ?>
"><?php 
        if (get_field('wpmt_film_rt_rating') >= 60) {
            echo 'RT Fresh! (' . get_field('wpmt_film_rt_rating') . '%)';
        }
        ?>
</a></div>
					</div>
				<?php 
    }
    ?>

				<?php 
    if (get_field('wpmt_film_youtube_url')) {
        ?>
					<div class="watch_trailer">
						<a href="<?php 
        echo the_permalink();
        ?>
"><img src="<?php 
        imageurl();
        ?>
/watch_trailer.png" alt="watch trailer" /> </a>
					</div>
				<?php 
    }
    ?>

				<?php 
    if (wpmt_sessions_exist(get_field('wpmt_film_id'))) {
        ?>
					<div class="watch_trailer">
						<a href="<?php 
        echo the_permalink();
        ?>
"><img src="<?php 
        imageurl();
        ?>
/btn_get_showtimes.png" alt="get showtimes" /> </a>
					</div>
				<?php 
    }
    ?>

			</div><!--slider_bottom_btns"-->

		</div><!--coda-content-->

	</div><!--coda-nav-li-->

<?php 
}
    <pages>
    <?php 
    echo "select pageid,pagename,pagepic,vote,type,category,subcategory,url,bids from pages where  place='{$infoid}'  order by bids desc limit {$from},20";
    while ($row = mysql_fetch_assoc($result)) {
        ?>
        <page>
            <id><?php 
        echo $row['pageid'];
        ?>
</id>
            <pagename><?php 
        echo $row['pagename'];
        ?>
</pagename>
            <pagepic><?php 
        echo imageurl($row['pagepic']);
        ?>
</pagepic>
            <votes><?php 
        $votes = unserialize($row['votes']);
        echo count($votes);
        ?>
</votes>
            <category><?php 
        echo $row['category'];
        ?>
</category>
            <subcategory><?php 
        echo $row['subcategory'];
        ?>
</subcategory>
示例#5
0
    
    
    <div style="width:99%; height:80px; float:left; ">

<div style="width:100%; height:70px; float:left">
    <div style="width:40%; font-size:30px; font-weight:bold; font-family:'Comic Sans MS', cursive; height:35px; float:left">
  Slam Book</div>
<div style="width:200px; margin-top: 5px; float: left; height: 50px; ">
<ul style="margin-left:0px" class="prettyGallery">     
 <?php 
    $i = 1;
    $url;
    foreach (array_keys($slambook) as $user) {
        $result1 = mysql_query("select propic from user_info where userid='" . $user . "'");
        if ($row = mysql_fetch_assoc($result1)) {
            $url = imageurl($row['propic']);
        }
        echo "<li><a onClick=\"gotoPage('" . $i * 2 . "')\" ><img src='/images/32/32_" . $url . "' width=\"45\" height=\"45\" /></a></li>";
        $i++;
    }
    ?>
    </ul>
</div>
  
</div>

    
    
    <div id = "pagesContainer" class="sh" >

<!-- the page DIVs at least 4, in multiples of 2. --> 
示例#6
0
<div onmouseout="hideBox('proic')" onmouseover="showBox('proic')" style="width:200px; margin:10px; height:200px; float:left; border:solid 1px">
 <span class="span_edit" id="proic"><a href="#">Edit</a></span>   <img id="profilepic" height="200" src='images/200/200_<?php 
    echo imageurl($ud['propic']);
    ?>
' />
</div>
<div style="width:200px; margin-right:6px; height:230px; float:right; ">
<div  onmouseout="hideBox('sp')" onmouseover="showBox('sp')"  id="secondarypic1" style="width:200px; height:100px; margin:5px; float:left; overflow: hidden; border:solid 1px">
<span class="span_edit" id="sp"><a href="#">Edit</a></span><img src='images/200/200_<?php 
    echo imageurl($ud['secondarypic1']);
    ?>
' />
</div>
<div onmouseout="hideBox('sp1')" onmouseover="showBox('sp1')" id="secondarypic2" style="width:200px; height:100px; margin:5px; float:left; overflow: hidden; border:solid 1px">
<span class="span_edit" id="sp1"><a href="#">Edit</a></span><img src='images/200/200_<?php 
    echo imageurl($ud['secondarypic2']);
    ?>
'/>
</div>

</div>

</div>

<div class="pin-prof-pic" >
<?php 
    $pinnedpics = unserialize($ud['pinnedpic']);
    $i = 0;
    foreach ($pinnedpics as $pic) {
        if ($i < 14) {
            $iprivacy = getimageprivacy($pic);
        }
        ?>
                <?php 
        if ($event == "E") {
            ?>
 <img src="<?php 
            imageurl();
            ?>
/btn_event.png" alt="EVENT" height="18" style="margin-top:5px" /><?php 
        }
        ?>
                <?php 
        if ($free) {
            ?>
 		  <img src="<?php 
            imageurl();
            ?>
/btn_free.png" alt="FREE" height="18" style="margin-top:5px" /><?php 
        }
        ?>
		  </div>
		 
         <?php 
        if ($sr || $threedee) {
            ?>
         <div class="fs_sr_3d">
          <div class="fs_poster_sr">
              <?php 
            if ($sr) {
                echo "Presented in our intimate 18-seat screening room";
            }
示例#8
0
<script type="text/javascript">  
        AudioPlayer.embed("audioplayer_1", {soundFile: "<?php 
        if (isset($songurl)) {
            echo $songurl;
        }
        ?>
"});
		AudioPlayer.open("audioplayer_1",2);
        </script> 
</div>
<?php 
    }
    ?>
<div id="leaf-userpic" style="width:200px; margin:10px; height:200px; float:right; border:solid 1px">
    <img src="images/200/200_<?php 
    echo imageurl($pd['pagepic']);
    ?>
" height="200" width="150"/>
</div>
<div id="leaf-username" style="margin-top:110px; font-size: 20px; font-weight: bold; height:30px; float:right; border:solid 1px">
  <?php 
    echo $pd['pagename'];
    ?>
  
</div>
<div  style="width:97%; margin-left:5px;float:left; border:solid 2px">
</div>

<div id="leaf-chart-div" style="width:100%; float:left; border:solid 1px">
<form name="postform" >
<div style="width:100%; margin-top: 10px; float:left; ">