罪と罰++二律背反


*過去の栄光について [#b3d93f2c]

-ページ: [[罪罰改造板2]]
-投稿者: [[鴉神]]
-優先順位: 緊急
-状態: 完了
-カテゴリー: 罪罰管理者の雑談
-投稿日: 2006-08-22 (火) 17:37:11
-バージョン: 

**内容 [#e261cf87]
過去の栄光に表示される文字に各国の色を付けるにはどうすればいいのですか?教えて下さいm(_ _)m
----
-まず、ore_sub-system.cgiの$cdat最後に国の変数(camp;$camp)を追加します -- [[あくあ]] &new{2006-09-02 (土) 21:21:16};
 # 過去の栄光書き込み&バックアップ処理
 sub hist_write{
 
        $cdat = "cn1;$cn1,cg1;$cg1,cf1;$cf1,cs1;$cs1,ce1;$ce1,c1;$c1,c1a;$c1a,cn2;$cn2,cg2;$cg2,cf2;$cf2,cs2;$cs2,ce2;$ce2,c2;$c2,c2a;$c2a,cn3;$cn3,cg3;$cg3,cf3;$cf3,cs3;$cs3,ce3;$ce3,c3;$c3,c3a;$c3a,cn4;$cn4,cg4;$cg4,cf4;$cf4,cs4;$cs4,ce4;$ce4,c4;$c4,c4a;$c4a,cn5;$cn5,cg5;$cg5,cf5;$cf5,cs5;$cs5,ce5;$ce5,c5;$c5,c5a;$c5a,set;$set,all_mem;$all_mem,goal_no;$goal_no,hasya;$hasya,hcamp;$hcamp,ad;$addr,ht;$host,date;$date,wr_mes;$wr_mes,camp;$camp,\n";

-hist.cgi
        # 記事展開
        @lines = reverse(@lines);
        foreach(0 .. $log_last){
 
                last    if(!$lines[$_]);
                my @y1  = split(/,/,$lines[$_]);
                $y1[43] =~ s/wr_mes;//g;
                $y1[44] =~ s/camp;//g;                 # ここに追加
 
                if($mv_mode eq 'pc'){
                        foreach(1 .. $#camp_info){
                                $y1[43] =~ s/$camp_info[$_][0]/<span style="color:$camp_info[$_][1]">$camp_info[$_][0]<\/span>/g;
                        }
 
                }
 
                # print "<li>$y1[43]<hr>\n";     # この行を下のように修正
                print qq|<li><span style="color:$camp_info[$y1[44]][1]">$y1[43]</span><hr>\n|;
 
        }
-返信遅れました、すいませんm(_ _)m。上記のように変更したのですが、色表示が出来ません(T_T) -- [[鴉神]] &new{2006-09-09 (土) 09:39:55};
-それ+過去の栄光に何も書かれていないログが、出てしまいます。systemとhistのtxtです。
http://tumibatumugen.web.fc2.com/ore_sub-system.txtとhttp://tumibatumugen.web.fc2.com/hist.txt -- [[鴉神]] &new{2006-09-09 (土) 09:48:29};
-連レスすいませんm(_ _)m。ログの二重表示修正&各国の色付け、うまく行きました。あくあ様ありがとうございました。 -- [[鴉神]] &new{2006-09-09 (土) 09:55:49};

#comment

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS