エクラの日記のデータ移行会員名簿

[diary:184294]
[beforeExec]
entry = function(){
var user = [];
var s = key(Fx.e("/home/yadokari/diary/2011/12/1324998610.html", false), "list");
s = s.replace(/\x3cbr \/>/g, "");
s = s.replace(/\t/g, "\n");
var str = "<table border='1' cellpadding='3' cellspacing='0' id='listTable'><tbody>" +
"<tr><th>No</th><th>記事番号</th><th>移行</th><th>ユーザー</th><th>登録日</th>" +
"<th>C</th><th>備考</th><th>最新投稿</th><th>増加</th><th>" +
"訪問者数</th><th>掲示板</th></tr>";
var num = 1;
s = s.replace(/(A[^\,]+)\,(.+?)\,(\+|\*|=)(.*)/g,
function(e0,e1,e2,e3,e4){
var c = e1.match(/\-/);
var d = e2.match(/削除/);
var tr = !c ? "new" : d ? "del" : "act";
var no1 = c ? Math.abs(eval(e1.replace(/A/g, ""))) + 1 : 1;
var art = e1.replace(/(A|\-.+)/g, "") -0;
var n = e2.split(" ");
var n3 = n.length == 3;

str += "<tr class='" + tr + "' id='u" + num + "'><td class='no'>" + num + "</td>" +
"<td class='Anum'>" +
(d ? art : "\x3ca href='main.html?diary=177594&article=" + art + "' title='" + e1 + "'>" + art + "\x3c/a>") +
"</td><td class='num'>" +
(n3 ? "\x3ca href='http://nancyan.main.jp/nancyan/io.php?uri=/cgi-bin/diary.cgi?oid=" + n[0] + ";n=20;s=" +
(no1 > 19 ? art + 19 : art + no1) + "#A" + art + "'>" + no1 + "\x3c/a>" : no1) + "</td>";

if(n3){
var sel = n[2].split("/").length;
var se = sel == 1 ? "defSel" : "addSel";
user.push(n[0] + ":" + num);
str +=
"<td class='user'>\x3ca href='http://nancyan.main.jp/nancyan/io.php?uri=/home/" + n[0] + "/diary/'>" + n[0] + "\x3c/a></td>" +
"<td class='mid'>\x3ca href='" +
n[1].substring(0,5) + "'>" + n[1].replace(/\//, " ") + "\x3c/a></td>" +
"<td><select class='" + se + "'><option>" +
("0" + sel).slice(-2) + "件</option><option>" +
n[2].replace(/\//g, "</option><option>") + "</option></select></td>";
} else {
str += "<td colspan='3'>" + e2 + "</td>";
}
str += "<td class='e3" + (e3 == "*" ? "1" : "2") + "'>" + e3 + "</td>";
if(e3 == "=") str += "<td colspan='4'>*</td>";
else {
var m = e4.substring(1).split(",");
var n2 = m[1] - no1;
var n3 = m[0].charAt(3);
str += "<td class='mid up" + (n3 > "7" ? "1" : n3 > "4" ? "2" : "0") + "'>" +
m[0].substring(0,10) + "</td><td class='right up" +
(n2 > 100 ? "1" : n2 > 0 ? "2" : "0") + "'>";
str += (n2 > 0 ? "+" : "") + n2;
str += "件</td><td class='right up" + (m[2] > 1000 ? "1" : m[2] > 100 ? "2" : "0") + "'>" +
m[2] + "人</td><td class='num'>\x3ca href='main.html?no=105&user=" + n[0] +
"'>" + m[3] + "件\x3c/a></td>";
}
str += "</tr>";
num++;
return "";}
);
str += "</tbody></table>";
var s = "【全リスト" + user.length + "名】\x3cbr />";
user.sort();
for(var i = 0; i < user.length; i++){
var a = user[i].split(":");
s += "\x3ca href='#u" + a[1] + "'>" + a[0] + "\x3c/a> ";
}

echo("userDisp", s);
echo("listDisp", str);
};



[/beforeExec]
[cssText]
#menuList li.page_here { list-style-image:url(files/listitem.png); color:red; }
li.page_here a { color:#000; text-decoration:underline; }
#listTable { width:95%; }
div.infoMsg {
background:url(files/yosei_2.gif) no-repeat; margin-left:1em;
padding:10px 60px; color:#808080;
}

div.infoMsg a { color:#808080; }
div.infoMsg a:hover { text-decoration:underline; color:#000; }
span.a { color:#000; }
span.b { color:red; }
.hide { display:none; }
.show { display:block; }
.num { text-align:right; }
td.no { color:dagkreen; font-weight:bold; text-align:right; }
td.Anum { text-align:center; }
.e31 { color:red; text-align:center; }
.e32 { color:#808080; text-align:center; }
#listDisp { margin-left:2em; }
#myMsg { margin:1em 2em; }

tr.new { background-color:#ffefff; }
tr.act { background-color:#fff; }
tr.del { background-color:#eee; color:#808080; }
select.addSel { background-color:yellow; }
option { text-align:right; }
td.up0 { color:red;}
td.up1 { color:#000;}
td.up2 { color:brown;}
.mid { text-align:center; }
.right { text-align:right; }
[/cssText]
[body]
<$$a href="main.html?diary=184294">エクラの日記のデータ移行会員名簿<$$/a>
<$$div id="userDisp"><$$/div>
<$$div id="listDisp"><$$/div>
[/body]
[exec]
document.title = "エクラの日記のデータ移行会員名簿";
entry();
[/exec]
[/diary:184294]


■diaryCode作成日 2013年9月5日 6:09:59