コード例 #1
0
 /**
  * function actionList
  * call to render artist list page
  */
 public function actionList()
 {
     $countArtist = WapArtistModel::model()->countTopArtists();
     $artistPages = new CPagination($countArtist);
     $pageSize = Yii::app()->params['pageSize'];
     $artistPages->setPageSize($pageSize);
     $currentPage = $artistPages->getCurrentPage();
     $topArtists = WapArtistModel::getTopArtists($currentPage * $pageSize, $pageSize);
     $this->render('top', array('artists' => $topArtists, 'artistPages' => $artistPages));
 }
コード例 #2
0
        ?>
    <div class="bl_title padL10 padT5 padB5 fontB"><?php 
        echo yii::t('chachawap', 'Tìm thấy ') . $numFound . yii::t('chachawap', ' nhạc chuông');
        ?>
</div>
<?php 
    }
    ?>
<table class="tablelist">
    <?php 
    foreach ($ringtones as $ringtone) {
        if (!empty($ringtone->ringtone)) {
            $ringtone = $ringtone->ringtone;
        }
        $ringtoneLink = yii::app()->createUrl('ringtone/view', array('id' => $ringtone->id, 'url_key' => Common::makeFriendlyUrl($ringtone->name)));
        $avatarImage = CHtml::image(WapArtistModel::model()->getThumbnailUrl(50, $ringtone->artist_id), 'avatar', array('class' => 'avatar'));
        ?>
	<tr><td width="65px">
            <?php 
        if ($type != "noavatar") {
            echo $avatarImage;
        }
        ?>
		</td>
        <td class="itemwrap" onclick="document.location = '<?php 
        echo $ringtoneLink;
        ?>
'">
            <p class="m0 fontB">
                <a href="<?php 
        echo $ringtoneLink;
コード例 #3
0
ファイル: view.php プロジェクト: giangnh264/mobileplus
<!-- dispaly artist detail page -->
<div class="artist_page pad-10 mgr-t-10">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td valign="top">
                <?php 
if ($artist->id) {
    $avatarImage = CHtml::image(WapArtistModel::model()->getThumbnailUrl(75, $artist->id), 'avatar', array('width' => '75px', 'height' => '75px', 'class' => 'avatar'));
} else {
    $avatarImage = CHtml::image('/css/wap/images/icon/artist-75.png', 'avatar', array('width' => '94px', 'height' => '94px'));
}
echo $avatarImage;
?>
            </td>
            <td valign="top">
            	<div class="ct-info" >
                    <h3><?php 
echo CHtml::encode($artist->name);
?>
</h3>
                </div>
            </td>
        </tr>
    </table>
</div>
<div class="cvartist">
	<div id="cvct"><?php 
if (empty($artist->description)) {
    echo Yii::t("wap", 'Updating');
} else {
    echo $artist->description;
コード例 #4
0
<?php

if ($artists) {
    ?>
<div class="ct_list_box">
	<ul class="artist_list items-list">
    <?php 
    $i = 0;
    foreach ($artists as $artist) {
        $i++;
        ?>
        <?php 
        $artistLink = yii::app()->createUrl('artist/view', array('id' => $artist['id'], 'url_key' => Common::makeFriendlyUrl($artist['name'])));
        if ($artist['id']) {
            $avatarImage = CHtml::image(WapArtistModel::model()->getThumbnailUrl('s4', $artist['id']), 'avatar', array('class' => 'avatar', 'width' => '82'));
        } else {
            $avatarImage = CHtml::image('/css/wap/images/icon/artist-50.png', 'avatar', array('class' => 'avatar'));
        }
        ?>
			<li class="item <?php 
        if ($i == count($artists)) {
            echo 'last_item';
        }
        ?>
">
				<a href="<?php 
        echo $artistLink;
        ?>
"><?php 
        echo $avatarImage;
        ?>
コード例 #5
0
<li class="li-spacer" id="<?php 
echo $pager->getCurrentPage() + 1;
?>
">
    <input type="hidden" class="curent-page"
           value="<?php 
echo $pager->getCurrentPage() + 1;
?>
">
</li>
<?php 
$i = $limit * $pager->getCurrentPage();
foreach ($topWeek as $album) {
    $i++;
    $link = Yii::app()->createUrl('album/view', array('id' => $album->id, 'url_key' => Common::makeFriendlyUrl($album->name), "artist" => Common::makeFriendlyUrl(trim($album->artist_name))));
    $artist_name = WapArtistModel::model()->findByPk($album->artist_id)->name;
    $avatarImage = CHtml::image(WapAlbumModel::model()->getThumbnailUrl('s1', $album->id), 'avatar', array('class' => 'avatar'));
    ?>
    <li data-corners="false" data-shadow="false" data-iconshadow="true"
        data-wrapperels="div" data-icon="arrow-r" data-iconpos="right"
        data-theme="d"
        class="ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-btn-up-d">
        <div class="ui-btn-inner ui-li">
            <div class="ui-btn-text">
                <span class="xbh-count-album index"><?php 
    echo $i;
    ?>
</span> <a
                    class="i-list ui-link-inherit" href="<?php 
    echo $link;
    ?>
コード例 #6
0
ファイル: view.php プロジェクト: giangnh264/mobileplus
<?php

$deviceId = yii::app()->session['deviceId'];
?>
<div class="song-detail">
    <div class="vg_contentBody">
        <ul class="album_list">
            <li class="item"><a href="#">
                    <table>
                        <tr>
                            <td valign="top">
                                <?php 
$avatar = CHtml::image(Yii::app()->request->baseUrl . '/images/album-75.png', '', array('width' => '75px', 'height' => '75px'));
if ($artistId) {
    $avatar = CHtml::image(WapArtistModel::model()->getThumbnailUrl('s1', $artistId), '', array('width' => '75px', 'height' => '75px'));
}
echo $avatar;
?>
                            </td>
                            <td valign="top">
                                <div class="ct-info">
                                    <h3 class="subtext"><?php 
echo CHtml::encode($song->name);
?>
</h3>
                                    <ul class="info">
                                        <li><?php 
$artists = explode(',', $song->artist_name);
$count = count($artists);
$i = 1;
foreach ($artists as $artist) {