[メモ帳] Nucleus管理画面のマークアップ v3.62

Nucleus CMS v3.62

アイテム追加・編集画面(ナビゲーション部分)

  • File: libs/ENCAPSULATE.php
  • Line: 111->153
  • SearchKeyword: table class="navigation"
  • Markup: .nav-1 / .nav-2 / .nav-3 / .nav-4
        <table class="navigation">
        <tr><td class="nav-1">
                <form method="post" action="index.php"><div>
                <input type="submit" value="&lt;&lt; <?php echo  _LISTS_PREV?>" />
                <input type="hidden" name="blogid" value="<?php echo  $blogid; ?>" />
                <input type="hidden" name="itemid" value="<?php echo  $itemid; ?>" />
                <input type="hidden" name="action" value="<?php echo  $action; ?>" />
                <input type="hidden" name="amount" value="<?php echo  $amount; ?>" />
                <input type="hidden" name="search" value="<?php echo  $search; ?>" />
                <input type="hidden" name="start" value="<?php echo  $prev; ?>" />
                </div></form>
        </td><td class="nav-2">
                <form method="post" action="index.php"><div>
                <input type="hidden" name="blogid" value="<?php echo  $blogid; ?>" />
                <input type="hidden" name="itemid" value="<?php echo  $itemid; ?>" />
                <input type="hidden" name="action" value="<?php echo  $action; ?>" />
                <input name="amount" size="3" value="<?php echo  $amount; ?>" /> <?php echo _LISTS_PERPAGE?>
                <input type="hidden" name="start" value="<?php echo  $start; ?>" />
                <input type="hidden" name="search" value="<?php echo  $search; ?>" />
                <input type="submit" value="&gt; <?php echo _LISTS_CHANGE?>" />
                </div></form>
        </td><td class="nav-3">
                <form method="post" action="index.php"><div>
                <input type="hidden" name="blogid" value="<?php echo  $blogid; ?>" />
                <input type="hidden" name="itemid" value="<?php echo  $itemid; ?>" />
                <input type="hidden" name="action" value="<?php echo  $action; ?>" />
                <input type="hidden" name="amount" value="<?php echo  $amount; ?>" />
                <input type="hidden" name="start" value="0" />
                <input type="text" name="search" value="<?php echo  $search; ?>" size="7" />
                <input type="submit" value="&gt; <?php echo  _LISTS_SEARCH?>" />
                </div></form>
        </td><td class="nav-4">
                <form method="post" action="index.php"><div>
                <input type="submit" value="<?php echo _LISTS_NEXT?> &gt; &gt;" />
                <input type="hidden" name="search" value="<?php echo  $search; ?>" />
                <input type="hidden" name="blogid" value="<?php echo  $blogid; ?>" />
                <input type="hidden" name="itemid" value="<?php echo  $itemid; ?>" />
                <input type="hidden" name="action" value="<?php echo  $action; ?>" />
                <input type="hidden" name="amount" value="<?php echo  $amount; ?>" />
                <input type="hidden" name="start" value="<?php echo  $next; ?>" />
                </div></form>
        </td></tr>
        </table>

アイテム編集画面のアイテムリスト(ナビ周り)

  • File: libs/
  • Line: 91->113
  • SearchKeyword: function listplug_table(
  • Markup: .itemListArea
function listplug_table($template, $type) {
        switch($type) {
                case 'HEAD':
      echo "<div class='itemListArea'><table>";
                        echo "<table>";
                        echo "<thead><tr>";
                        // print head
                        call_user_func("listplug_table_" . $template['content'] , $template, 'HEAD');
                        echo "</tr></thead><tbody>";
                        break;
                case 'BODY':
                        // print tabletype specific thingies
                        echo "<tr onmouseover='focusRow(this);' onmouseout='blurRow(this);'>";
                        call_user_func("listplug_table_" . $template['content'] , $template,  'BODY');
                        echo "</tr>";
                        break;
                case 'FOOT':
                        call_user_func("listplug_table_" . $template['content'] , $template,  'FOOT');
                        echo "</tbody></table>";
      echo "</div>";
                        break;
        }
}

アイテム編集画面のアイテムリスト(リスト周り)

  • File: libs/showlist.php
  • Line: 325->385
  • SearchKeyword: function listplug_table_itemlist(
  • Markup: .itemList-1 / .itemList-2 / .itemList-3 /
    .itemListLink-0 / .itemListLink-1 / .itemListLink-2 / .itemListLink-3
    ※.itemListLink-0の href は新規追加。checkboxとlabel を、spanでwrapped
function listplug_table_itemlist($template, $type) {
        $cssclass = null;

        switch($type) {
                case 'HEAD':
                        echo "<th>"._LIST_ITEM_INFO."</th><th>"._LIST_ITEM_CONTENT."</th><th style=\"white-space:nowrap\" colspan='1'>"._LISTS_ACTIONS."</th>";
                        break;
                case 'BODY':
                        $current = $template['current'];
                        $current->itime = strtotime($current->itime);   // string -> unix timestamp

                        if ($current->idraft == 1)
                                $cssclass = "class='draft'";

                        // (can't use offset time since offsets might vary between blogs)
                        if ($current->itime > $template['now'])
                                $cssclass = "class='future'";
                       
                        $action = requestVar('action');
                       
                        echo '<td class="itemList-1"' . $cssclass . '><a class="itemListLink-0" href="../?itemid=' . $current->inumber . '" target="_blank">View</a><br />';
                        if ($action !== 'itemlist')
                        echo _LIST_ITEM_BLOG . ' ', htmlspecialchars($current->bshortname) . '    <br />';
                        echo _LIST_ITEM_CAT,' ', htmlspecialchars($current->cname) . '    <br />';
                        if ($action !== 'browseownitems')
                        echo _LIST_ITEM_AUTHOR, ' ', htmlspecialchars($current->mname) . '    <br />';
                        echo date("Y-m-d",$current->itime) , " " . date("H:i",$current->itime);
                        echo "</td>";
                        echo "<td class='itemList-2' $cssclass>";

                        $id = listplug_nextBatchId();

                        echo '<span><input type="checkbox" id="batch',$id,'" name="batch[',$id,']" value="',$current->inumber,'" />';
                        echo '<label for="batch',$id,'">';
                        echo "<b>" . htmlspecialchars(strip_tags($current->ititle)) . "</b>";
                        echo '</label></span>';
                        echo "<br />";


                        $current->ibody = strip_tags($current->ibody);
                        $current->ibody = htmlspecialchars(shorten($current->ibody,200,'...'));

                        $COMMENTS = new COMMENTS($current->inumber);
                        echo "$current->ibody</td>";
                        echo "<td class='itemList-3' style=\"white-space:nowrap\" $cssclass>";
                        echo "<a class='itemListLink-1' href='index.php?action=itemedit&amp;itemid={$current->inumber}'>" . _LISTS_EDIT . "</a>";
                        echo " / <a class='itemListLink-2' href='index.php?action=itemmove&amp;itemid={$current->inumber}'>" . _LISTS_MOVE . "</a>";
                        echo " / <a class='itemListLink-3' href='index.php?action=itemdelete&amp;itemid={$current->inumber}'>" . _LISTS_DELETE . "</a><br />";
                        // evaluate amount of comments for the item
                        $camount = $COMMENTS->amountComments();
                        if ($camount>0) {
                                echo "<a href='index.php?action=itemcommentlist&amp;itemid=$current->inumber'>";
                                echo "( " . sprintf(_LIST_ITEM_COMMENTS, $COMMENTS->amountComments())." )</a>";
                        }
                        else {
                                echo _LIST_ITEM_NOCONTENT;
                        }
                        echo "</td>";
                        break;
        }
}

ブログの一覧リスト

  • File: libs/showlist.php
  • Line: 439
  • SearchKeyword: function listplug_table_bloglist(
  • Markup: .blogList-1 / .blogList-2 / .blogList-3 / .blogList-4 /
    .blogList-5 / .blogList-6 / .blogList-7 / .blogList-8
function listplug_table_bloglist($template, $type) {
        switch($type) {
                case 'HEAD':
                        echo "<th>" . _NAME . "</th><th colspan='7'>" ._LISTS_ACTIONS. "</th>";
                        break;
                case 'BODY':
                        $current = $template['current'];

                        echo "<td title='blogid:$current->bnumber shortname:$current->bshortname' class='blogList-1'><a href='$current->burl'><img src='images/globe.gif' width='13' height='13' alt='". _BLOGLIST_TT_VISIT."' /></a> " . htmlspecialchars($current->bname) . "</td>";
                        echo "<td class='blogList-2'><a href='index.php?action=createitem&amp;blogid=$current->bnumber' title='" . _BLOGLIST_TT_ADD ."'>" . _BLOGLIST_ADD . "</a></td>";
                        echo "<td class='blogList-3'><a href='index.php?action=itemlist&amp;blogid=$current->bnumber' title='". _BLOGLIST_TT_EDIT."'>". _BLOGLIST_EDIT."</a></td>";
                        echo "<td class='blogList-4'><a href='index.php?action=blogcommentlist&amp;blogid=$current->bnumber' title='". _BLOGLIST_TT_COMMENTS."'>". _BLOGLIST_COMMENTS."</a></td>";
                        echo "<td class='blogList-5'><a href='index.php?action=bookmarklet&amp;blogid=$current->bnumber' title='". _BLOGLIST_TT_BMLET."'>". _BLOGLIST_BMLET . "</a></td>";

                        if ($current->tadmin == 1) {
                                echo "<td class='blogList-6'><a href='index.php?action=blogsettings&amp;blogid=$current->bnumber' title='" . _BLOGLIST_TT_SETTINGS . "'>" ._BLOGLIST_SETTINGS. "</a></td>";
                                echo "<td class='blogList-7'><a href='index.php?action=banlist&amp;blogid=$current->bnumber' title='" . _BLOGLIST_TT_BANS. "'>". _BLOGLIST_BANS."</a></td>";
                        }

                        if ($template['superadmin']) {
                                echo "<td class='blogList-8'><a href='index.php?action=deleteblog&amp;blogid=$current->bnumber' title='". _BLOGLIST_TT_DELETE."'>" ._BLOGLIST_DELETE. "</a></td>";
                        }



                        break;
        }
}
/
Skooler Records

I'm glad that it turned out so effectively and I hope it will continue in the future because it is so worthwhile and meaningful to the community. decgdgcadccedack

Smitha235, 2014-06-17 18:03 #

%3c%69%6e%70%75%74%20%74%79%70%65%3d%22%68%69%64%64%65%6e%22%20%6e%61%6d%65%3d%22%6e%70%5f%70%72%6f%74%65%63%74%62%79%6d%64%35%22%20%76%61%6c%75%65%3d%22%38%33%65%36%36%66%33%62%64%66%38%32%30%37%30%65%39%36%64%35%30%37%65%32%63%38%64%61%31%65%30%34%22%3e %3c%69%6e%70%75%74%20%74%79%70%65%3d%22%68%69%64%64%65%6e%22%20%6e%61%6d%65%3d%22%6e%70%5f%70%72%6f%74%65%63%74%62%79%6d%64%35%5f%68%61%73%68%22%20%76%61%6c%75%65%3d%22%62%64%65%30%64%37%37%62%31%62%33%32%62%39%37%33%38%39%32%35%66%32%36%65%34%33%34%31%36%36%63%38%22%3e
© 2006 – 2024 by Luvsic. Some rights reserved.