[メモ帳] Nucleus管理画面のマークアップ v3.62
- 投稿日 : 2011-02-04, 03:44
- 最終更新日時 : 2011-02-04 05:41:14(履歴)
- タグ(管理画面 / Nucleus)
- カテゴリ(Nucleus)
- 記し人(luvsic)[PDF]
- 閲覧数(3000)
Nucleus CMS v3.62
管理画面 / Nucleus
アイテム追加・編集画面(ナビゲーション部分)
- 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="<< <?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="> <?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="> <?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?> > >" />
<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&itemid={$current->inumber}'>" . _LISTS_EDIT . "</a>";
echo " / <a class='itemListLink-2' href='index.php?action=itemmove&itemid={$current->inumber}'>" . _LISTS_MOVE . "</a>";
echo " / <a class='itemListLink-3' href='index.php?action=itemdelete&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&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&blogid=$current->bnumber' title='" . _BLOGLIST_TT_ADD ."'>" . _BLOGLIST_ADD . "</a></td>";
echo "<td class='blogList-3'><a href='index.php?action=itemlist&blogid=$current->bnumber' title='". _BLOGLIST_TT_EDIT."'>". _BLOGLIST_EDIT."</a></td>";
echo "<td class='blogList-4'><a href='index.php?action=blogcommentlist&blogid=$current->bnumber' title='". _BLOGLIST_TT_COMMENTS."'>". _BLOGLIST_COMMENTS."</a></td>";
echo "<td class='blogList-5'><a href='index.php?action=bookmarklet&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&blogid=$current->bnumber' title='" . _BLOGLIST_TT_SETTINGS . "'>" ._BLOGLIST_SETTINGS. "</a></td>";
echo "<td class='blogList-7'><a href='index.php?action=banlist&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&blogid=$current->bnumber' title='". _BLOGLIST_TT_DELETE."'>" ._BLOGLIST_DELETE. "</a></td>";
}
break;
}
}
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 #