コード例 #1
0
              <td class="subhead" colspan="12">
                <label style="float: right"><?php 
echo gettext("Check All");
?>
 <input type="checkbox" name="allbox" id="allbox" onclick="checkAll(this.form, 'ids[]', this.checked);" />
                </label>
              </td>
            </tr>
						<?php 
foreach ($result as $article) {
    $article = new ZenpageNews($article['titlelink']);
    ?>
							<tr class="newstr">
								<td>
									<?php 
    switch ($article->getSticky()) {
        case 1:
            $sticky = ' <small>[' . gettext('sticky') . ']</small>';
            break;
        case 9:
            $sticky = ' <small><strong>[' . gettext('sticky') . ']</strong></small>';
            break;
        default:
            $sticky = '';
            break;
    }
    if (checkIfLockedNews($article)) {
        echo '<a href="admin-edit.php' . getNewsAdminOptionPath(array_merge(array('newsarticle' => NULL, 'titlelink' => urlencode($article->getTitlelink())), getNewsAdminOption(array('category' => 0, 'date' => 0, 'published' => 0, 'sortorder' => 0, 'articles_page' => 1, 'subpage' => 1)))) . '">';
        checkForEmptyTitle($article->getTitle(), "news");
        echo '</a>' . checkHitcounterDisplay($article->getHitcounter()) . $sticky;
    } else {