예제 #1
0
        $flip = $flip * -1;
        echo '<tbody>' . ($has_new_entries ? '<tr ' . ($flip > 0 ? 'class="even2"' : 'class="odd2"') . '>' : '<tr ' . ($flip > 0 ? 'class="even"' : '') . '>') . '<td>' . returnKshowLink($kshow->getId()) . '</td>' . '<td class="image">' . returnShowThumbnailLink($kshow->getThumbnailPath(), $kshow->getId()) . '</td>' . '<td>' . $kshow->getFormattedCreatedAt() . '</td>' . '<td>' . returnUserLink($kshow->getkuser()->getScreenName()) . '</td>' . '<td>' . $kshow->getTypeText() . '<br/>Views:' . $kshow->getViews() . '<br/>Roughcuts:' . $kshow->getRoughcutCount() . '<br/>Entries:' . ($kshow->getEntries() - 1) . $new_entries . '<br/>Comments:' . $kshow->getComments() . '</td>' . '<td>' . $kshow->getName() . '</td>' . '<td>' . $kshow->getdescription() . '</td>' . '</tr>' . '</tbody>';
    }
}
echo '</table>';
echo '<a name="entries"></a>';
echo '<h2>Recent Entries</h2>';
echo '<table border="0" cellspacing="0" cellpadding="10">';
if (!$entries) {
    echo '<h3>No entries found</h3>';
} else {
    echo '<thead><tr><td>ID</td><td>Thumbnail</td><td>Created</td><td>Contributor</td><td>Media Type</td><td >Name</td><td width="40%">Part of kaltura</td></tr></thead>';
    foreach ($entries as $entry) {
        $kshow = $entry->getkshow();
        $flip = $flip * -1;
        echo '<tbody>' . '<tr ' . ($flip > 0 ? 'class="even"' : '') . '>' . '<td>' . returnEntryLink($kshow->getId(), $entry->getId()) . '</td>' . '<td class="image">' . returnEntryThumbnailLink($kshow->getId(), $entry->getThumbnailPath(), $entry->getId(), $entry->getMediaType()) . '</td>' . '<td>' . $entry->getFormattedCreatedAt() . '</td>' . '<td>' . returnUserLink($entry->getkuser()->getScreenName()) . '</td>' . '<td>' . getEntryTypeText($entry->getMediaType()) . '</td>' . '<td>' . $entry->getName() . '</td>' . '<td class="image">' . returnShowThumbnailLink($kshow->getThumbnailPath(), $kshow->getId()) . ' ' . $kshow->getName() . '</td>' . '</tr>' . '</tbody>';
    }
}
echo '</table>';
echo '<a name="users"></a>';
echo '<h2>Recent Users</h2>';
echo '<table border="0" cellspacing="0" cellpadding="10">';
if (!$kusers) {
    echo '<h3>No users found</h3>';
} else {
    echo '<thead><tr><td>ID</td><td>Thumbnail</td><td>Created</td><td>Screenname</td><td>Data</td><td>Demographics</td></tr></thead>';
    foreach ($kusers as $kuser) {
        $flip = $flip * -1;
        echo '<tbody>' . '<tr ' . ($flip > 0 ? 'class="even"' : '') . '>' . '<td>' . $kuser->getId() . '</td>' . '<td class="image">' . returnUserThumbnailLink($kuser->getPicturePath(), $kuser->getScreenName()) . '</td>' . '<td>' . $kuser->getFormattedCreatedAt() . '</td>' . '<td>' . returnUserLink($kuser->getScreenName()) . '</td>' . '<td>Kalturas:' . $kuser->getProducedKshows() . "<br/>Roughcuts:" . $kuser->getRoughcutCount() . '</td>' . '<td class="country">' . ($kuser->getCountry() ? image_tag('flags/' . strtolower($kuser->getCountry()) . '.gif') : '') . ' ' . $kuser->getCity() . ' ' . $kuser->getState() . '<br/>' . ($kuser->getGender() == 1 ? 'Male' : ($kuser->getGender() == 2 ? 'Female' : '')) . '<br/>' . $kuser->getAboutMe() . '</td>' . '</tr>' . '</tbody>';
    }
}
예제 #2
0
        $flip = $flip * -1;
        echo '<TR ' . ($flip > 0 ? 'bgcolor="#eee"' : 'bgcolor="#ddd"') . '>' . '<TD>' . returnKshowLink($kshow->getId()) . '</TD>' . '<TD>' . returnShowThumbnailLink($kshow->getThumbnailPath(), $kshow->getId()) . '</TD>' . '<TD>' . $kshow->getFormattedCreatedAt() . '</TD>' . '<TD>' . returnUserLink($kshow->getkuser()->getScreenName()) . '</TD>' . '<TD>' . $kshow->getTypeText() . '<br/>Views:' . $kshow->getViews() . '<br/>Entries:' . ($kshow->getEntries() - 1) . '</TD>' . '<TD>' . $kshow->getName() . '</TD>' . '<TD>' . $kshow->getDescription() . '</TD>' . '</TR>';
    }
}
echo '</TABLE>';
echo '<a name="entries"></a>';
echo '<h2>Recent Entries</h2>';
echo '<TABLE border="1" cellspacing="2" cellpadding="10">';
if (!$entries) {
    echo '<h3>No entries found</h3>';
} else {
    echo '<TR><TD>ID</TD><TD>Thumbnail</TD><TD>Created</TD><TD>Contributor</TD><TD>Media Type</TD><TD >Name</TD><TD width="40%">Part of kaltura</TD></TR>';
    foreach ($entries as $entry) {
        $kshow = $entry->getkshow();
        $flip = $flip * -1;
        echo '<TR ' . ($flip > 0 ? 'bgcolor="#eee"' : 'bgcolor="#ddd"') . '>' . '<TD>' . returnEntryLink($kshow->getId(), $entry->getId()) . '</TD>' . '<TD>' . returnEntryThumbnailLink($kshow->getId(), $entry->getThumbnailPath(), $entry->getId(), $entry->getMediaType()) . '</TD>' . '<TD>' . $entry->getFormattedCreatedAt() . '</TD>' . '<TD>' . returnUserLink($entry->getkuser()->getScreenName()) . '</TD>' . '<TD>' . getEntryTypeText($entry->getMediaType()) . '</TD>' . '<TD>' . $entry->getName() . '</TD>' . '<TD>' . returnShowThumbnailLink($kshow->getThumbnailPath(), $kshow->getId()) . ' ' . $kshow->getName() . '</TD>' . '</TR>';
    }
}
echo '</TABLE>';
echo '<a name="users"></a>';
echo '<h2>Recent Users</h2>';
echo '<TABLE border="1" cellspacing="2" cellpadding="10">';
if (!$kusers) {
    echo '<h3>No users found</h3>';
} else {
    echo '<TR><TD>ID</TD><TD>Thumbnail</TD><TD>Created</TD><TD>Screenname</TD><TD>Demographics</TD></TR>';
    foreach ($kusers as $kuser) {
        $flip = $flip * -1;
        echo '<TR ' . ($flip > 0 ? 'bgcolor="#eee"' : 'bgcolor="#ddd"') . '>' . '<TD>' . $kuser->getId() . '</TD>' . '<TD>' . returnUserThumbnailLink($kuser->getPicturePath(), $kuser->getScreenName()) . '</TD>' . '<TD>' . $kuser->getFormattedCreatedAt() . '</TD>' . '<TD>' . returnUserLink($kuser->getScreenName()) . '</TD>' . '<TD>' . ($kuser->getCountry() ? image_tag('flags/' . strtolower($kuser->getCountry()) . '.gif') : '') . ' ' . $kuser->getCity() . ' ' . $kuser->getState() . '<br/>' . ($kuser->getGender() == 1 ? 'Male' : ($kuser->getGender() == 2 ? 'Female' : '')) . '<br/>' . $kuser->getAboutMe() . '</TD>' . '</TR>';
    }
}