優先度 |
|
マイルストーン |
タグ未設定 |
<?php # Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org # Copyright (C) 2002 - 2007 Mantis Team - mantisbt-dev@lists.sourceforge.net
# Mantis is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # Mantis is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Mantis. If not, see <http://www.gnu.org/licenses/>.
?> <?php
// require_once( $t_core_path.'custom_field_api.php' ); ?> <?php auth_ensure_user_authenticated() ?> <?php
// include( dirname( FILE ) . DIRECTORY_SEPARATOR . 'view_all_inc.php' );
// for( $i = 0; $i < $col_count; $i++ ) { // if ( strpos( $t_columns$i, "51.(予定)作業開始日" ) !== false ) { // $objid00 = $i; // print "t_column[ ". $i ."] : " . $t_columns$i . "<br>"; // } // if ( strpos( $t_columns$i, "53.(実施)開始予定日時" ) !== false ) { // $objid01 = $i; // print "t_column[ ". $i ."] : " . $t_columns$i . "<br>"; // } // }
# @@@ (thraxisp) this may want a browser check ( MS IE >= 5.0, Mozilla >= 1.0, Safari >=1.2, ...)
?> <br /> <form name="bug_action" method="get" action="bug_actiongroup_page.php"> <table id="buglist" class="width100" cellspacing="1"> <tr>
<?php
</span>
<?php
</tr> <?php # -- Bug list column header row -- ?> <tr class="row-category"> <?php
?> </tr>
<?php # -- Spacer row -- ?> <tr class="spacer">
<?php echo $col_count; ?>"></td> </tr> <?php
?>
<?php
// print "t_column: " . $t_column . ", t_field_id:" . $t_field_id .", bug_id :" . $t_row['id'] ; // print ", Summry :" . $t_row['summary'] . ", t_def: " .$t_def. ", t_value: " .$t_value. " date:". date("r", $t_value). "<br>";
// for( $i=0; $i < $rowsnum; $i++ ) { // print_r($rows$i); // print "<br>"; // }
?>
<?php
?>
<?php
?>
<?php # -- ====================== end of MASS BUG MANIPULATION ========================= -- ?> </table> </form>
<?php
echo '<br />'; echo '<table class="width100" border="1" cellspacing="1">'; echo '<tr class="row-category">'; echo ' <th>日(曜)</th>'; echo ' <th>祭日名</th>'; echo ' <th>検討開始期間</th>'; echo ' <th>時刻</th>'; echo ' <th>SC-RP工事計画日</th>'; echo ' <th>SC-RP工事実行日</th>'; echo '</tr>';
$peri = 25; // 1時間刻みの場合、「25」。30分刻みなら「50」、15分刻みなら「100」 $lordwar = "<td align='center' rowspan='25'>"; //平日の無色設定 $lordrow = "<td rowspan='25'>"; //平日の無色設定 $lcolorPk = "<td align='center' bgcolor='#ffc0cb' rowspan='25'>"; //背景を pink に with align(location) and rowspan, peri=25 $coulorPk = "<td bgcolor='#ffc0cb' rowspan='25'>"; //背景を pink に with rowspan $lcolorDg = "<td align='center' bgcolor='#8fbc8f' rowspan='25'>"; //背景を darkseagreen に $coulorDg = "<td bgcolor='#8fbc8f' rowspan='25'>"; //背景を darkseagreen に $lcolorLb = "<td align='center' bgcolor='#b0c4de' rowspan='25'>"; //背景を lightsteelblue に $coulorLb = "<td bgcolor='#b0c4de' rowspan='25'>"; //背景を lightsteelblue に
// 今年の西暦をデフォルトとして表示するために事前設定 $nen = date("Y"); // 表示する日付の制御変数の設定 $nenxt = $nen + 1; // 6ヶ月後が年を超える場合の対処 $nenpr = $nen -1; // その月が1月の場合、年号を前年にするための変数 $gen = date("m"); // 今日の月を求める $genxt = $gen + 6; // 表示するための変数、デフォルト今日日付の前の月から6ヶ月後まで表示するための変数 if ( $gen == 1 ) { // 1月だったら変数設定を変える、1月の前月が0月となるため、年と月を修正する
} else {
}
$youbi = array("日","月","火","水","木","金","土"); //曜日を配列に入れる $tdiv = 0; //テーブルの数を数えるための変数
//for ($gatsu = 1; $gatsu <= 12; $gatsu++) { //月に1を足しながら12月まで繰り返し for ($gatsu = $genpr ; $gatsu < $genxt; $gatsu++) { //今日の月より前月より6ヶ月後まで表示
} ?>
?>
OSDNへのログインが必要です
~# cat /var/www/htdocs/mantis/view_all_bug_with_calendar_page.php <?php # Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org # Copyright (C) 2002 - 2007 Mantis Team - mantisbt-dev@lists.sourceforge.net
# Mantis is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # Mantis is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Mantis. If not, see <http://www.gnu.org/licenses/>.
?> <?php
# ------------------functions-------------------------- // tperi = 15 or 30 or <= 60
// tperi = 12 or 24
// print "02: tmpi, nen, gan, dan: ".$tmpi.", ".$nen.", ".$gan.",".$dan."<br>";
// print "02.5c: minutes, nen, gan, dan: ".$minute.", ".$nen.", ".$gan.",".$dan."<br>";
// print "02.5f: minutes, nen, gan, dan: ".$minute.", ".$nen.", ".$gan.",".$dan."<br>";
//$peri = 60;
?> <!--<?php auth_ensure_user_authenticated() ?>--> <?php
?>
<H3> <form method="POST" action="view_all_bug_with_calendar_page.php"> <!--<select name="nen"> --> <!--<option <?php if ($nen == "2010") { print "selected";} ?> value="2010">2010</option> --> <!--<option <?php if ($nen == "2011") { print "selected";} ?> value="2011">2011</option> --> <!--<option <?php if ($nen == "2012") { print "selected";} ?> value="2012">2012</option> --> <!--<option <?php if ($nen == "2013") { print "selected";} ?> value="2013">2013</option> --> <!--<option <?php if ($nen == "2014") { print "selected";} ?> value="2014">2014</option> --> <!--<option <?php if ($nen == "2015") { print "selected";} ?> value="2015">2015</option> --> <!--<option <?php if ($nen == "2016") { print "selected";} ?> value="2016">2016</option> --> <!--<option <?php if ($nen == "2017") { print "selected";} ?> value="2017">2017</option> --> <!--<option <?php if ($nen == "2018") { print "selected";} ?> value="2018">2018</option> --> <!--<option <?php if ($nen == "2019") { print "selected";} ?> value="2019">2019</option> --> <!--<option <?php if ($nen == "2020") { print "selected";} ?> value="2020">2020</option> --> <!--<option <?php if ($nen == "2021") { print "selected";} ?> value="2021">2021</option> --> <!--<option <?php if ($nen == "2022") { print "selected";} ?> value="2022">2022</option> --> <!--<option <?php if ($nen == "2023") { print "selected";} ?> value="2023">2023</option> --> <!--<option <?php if ($nen == "2024") { print "selected";} ?> value="2024">2024</option> --> <!--<option <?php if ($nen == "2025") { print "selected";} ?> value="2025">2025</option> --> <!--<option <?php if ($nen == "2026") { print "selected";} ?> value="2026">2026</option> --> <!--<option <?php if ($nen == "2027") { print "selected";} ?> value="2027">2027</option> --> <!--</select> --> <?php print $nen; ?> 年 <!--<select name="gen">--> <!--<option <?php if ($gen == "01") { print "selected";} ?> value="01">01</option>--> <!--<option <?php if ($gen == "02") { print "selected";} ?> value="02">02</option>--> <!--<option <?php if ($gen == "03") { print "selected";} ?> value="03">03</option>--> <!--<option <?php if ($gen == "04") { print "selected";} ?> value="04">04</option>--> <!--<option <?php if ($gen == "05") { print "selected";} ?> value="05">05</option>--> <!--<option <?php if ($gen == "06") { print "selected";} ?> value="06">06</option>--> <!--<option <?php if ($gen == "07") { print "selected";} ?> value="07">07</option>--> <!--<option <?php if ($gen == "08") { print "selected";} ?> value="08">08</option>--> <!--<option <?php if ($gen == "09") { print "selected";} ?> value="09">09</option>--> <!--<option <?php if ($gen == "10") { print "selected";} ?> value="10">10</option>--> <!--<option <?php if ($gen == "11") { print "selected";} ?> value="11">11</option>--> <!--<option <?php if ($gen == "12") { print "selected";} ?> value="12">12</option>--> <!--</select> 月--> <?php print $gen; ?> 月 <select name="ped"> <option <?php if ($ped == "10") { print "selected";} ?> value="10">10分</option> <option <?php if ($ped == "15") { print "selected";} ?> value="15">15分</option> <option <?php if ($ped == "30") { print "selected";} ?> value="30">30分</option> <option <?php if ($ped == "60") { print "selected";} ?> value="60">60分</option> <option <?php if ($ped == "360") { print "selected";} ?> value="360">6時間</option> <option <?php if ($ped == "540") { print "selected";} ?> value="540">9時間</option> <option <?php if ($ped == "720") { print "selected";} ?> value="720">12時間</option> <option <?php if ($ped == "1440") { print "selected";} ?> value="1440">1日</option> </select> 刻み <input type="submit" value="Go"> </form>
</H3>
<?php // BUG-LIST ORG // require_once( $t_core_path.'custom_field_api.php' ); //adding if ($_POSTped) { //"年" がPOSTされてきたら
} else {
}
// html rawspan 設定値
if ( $gen == 1 ) { // 1月だったら変数設定を変える、1月の前月が0月となるため、年と月を修正する
} else {
}
// 範囲外の日付を配列格納しないための前の月の1日UnixTimeを取得 $rangepi = @date("U", mktime(0, 0, 0, $genpr, 1, $nen)); //Unix time 取得 配列のサフィックス利用 //print " Rangepi0 : " . $rangepi ."<BR>";
// include( dirname( FILE ) . DIRECTORY_SEPARATOR . 'view_all_inc.php' );
# @@@ (thraxisp) this may want a browser check ( MS IE >= 5.0, Mozilla >= 1.0, Safari >=1.2, ...)
?> <br /> <form name="bug_action" method="get" action="bug_actiongroup_page.php"> <table id="buglist" class="width100" cellspacing="1"> <tr>
<?php
</span>
<?php
</tr> <?php # -- Bug list column header row -- ?> <tr class="row-category"> <?php
?> </tr>
<?php # -- Spacer row -- ?> <tr class="spacer">
<?php echo $col_count; ?>"></td> </tr> <?php
?>
<?php
?>
<?php // 範囲外の日付を配列格納しないための前の月の1日UnixTimeを取得 $rangepi = @date("U", mktime(0, 0, 0, $genpr, 1, $nen)); //Unix time 取得 配列のサフィックス利用 //print " Rangepi : " . $rangepi ."<BR>";
// $t_value = NULL;
// print "421:Hours<br>";
// if ( strpos($pertm51,'error') == true ) continue;
// print "<H1>52</H1><br> ";
// if ( !is_numeric($t_value) ) next($t_columns);
// next($t_columns);
// if ( strpos($pertm52,'error') == true ) continue;
// for( $i=0; $i < $rowsnum; $i++ ) { // print_r($rows$i); // print "<br>"; // }
?>
<?php
?>
<?php
?>
<?php # -- ====================== end of MASS BUG MANIPULATION ========================= -- ?> </table> </form>
<?php
echo '<br />'; echo '<table class="sampleTable" border="1" cellspacing="1">'; echo '<tr class="row-category">'; echo ' <th width="50">日(曜)</th>'; echo ' <th width="50">祭日名</th>'; echo ' <th width="500">検討開始期間</th>'; echo ' <th width="50">時刻</th>'; echo ' <th width="900">SC-RP工事計画日</th>'; //echo ' <th>SC-RP工事実行日</th>'; echo '</tr>';
$lordwar = "<td width='50' align='center' valign='top' rowspan='". $htmlrwsp . "'>"; //平日の無色設定 $lordwar2 = "<td width='500' align='center' valign='top' rowspan='". $htmlrwsp . "'>"; //平日の無色設定 $lordrow = "<td width='50' valign='top' rowspan='" . $htmlrwsp ."'>"; //平日の無色設定 $lordrow2 = "<td width='500' valign='top' rowspan='" . $htmlrwsp ."'>"; //平日の無色設定 $lcolorPk = "<td width='50' align='center' valign='top' bgcolor='#ffc0cb' rowspan='" . $htmlrwsp . "'>"; //背景を pink に with align(location) and rowspan, peri=25 $lcolorPk2 = "<td width='500' align='center' valign='top' bgcolor='#ffc0cb' rowspan='" . $htmlrwsp . "'>"; //背景を pink に with align(location) and rowspan, peri=25 $coulorPk = "<td width='50' valign='top' bgcolor='#ffc0cb' rowspan='" . $htmlrwsp ."'>"; //背景を pink に with rowspan $coulorPk2 = "<td width='500' valign='top' bgcolor='#ffc0cb' rowspan='" . $htmlrwsp ."'>"; //背景を pink に with rowspan $lcolorDg = "<td width='50' valign='top' id='a0' align='center' bgcolor='#8fbc8f' rowspan='" . $htmlrwsp ."'>"; //背景を darkseagreen に $lcolorDg2 = "<td width='500' valign='top' id='a0' align='center' bgcolor='#8fbc8f' rowspan='" . $htmlrwsp ."'>"; //背景を darkseagreen に $coulorDg = "<td width='50' valign='top' bgcolor='#8fbc8f' rowspan='" . $htmlrwsp ."'>"; //背景を darkseagreen に $coulorDg2 = "<td width='500' valign='top' bgcolor='#8fbc8f' rowspan='" . $htmlrwsp ."'>"; //背景を darkseagreen に $lcolorLb = "<td width='50' align='center' valign='top' bgcolor='#b0c4de' rowspan='" . $htmlrwsp ."'>"; //背景を lightsteelblue に $lcolorLb2 = "<td width='500' align='center' valign='top' bgcolor='#b0c4de' rowspan='" . $htmlrwsp ."'>"; //背景を lightsteelblue に $coulorLb = "<td width='50' valign='top' bgcolor='#b0c4de' rowspan='" . $htmlrwsp ."'>"; //背景を lightsteelblue に $coulorLb2= "<td width='500' valign='top' bgcolor='#b0c4de' rowspan='" . $htmlrwsp ."'>"; //背景を lightsteelblue に
// 今年の西暦をデフォルトとして表示するために事前設定 $youbi = array("日","月","火","水","木","金","土"); //曜日を配列に入れる $tdiv = 0; //テーブルの数を数えるための変数
$month = 1; for ($gatsu = $genpr ; $gatsu <= $genxt; $gatsu++) { //今月から6ヶ月後まで表示
// print "pidnt : ". $pidnt ; // $pidnt = date("U", mktime(0, 0, 0, $gatsu, $hi, $nen)); //Unix time 取得 配列のサフィックス利用
// print "constr25(value,date) :" .$hidnt.":". date("Y年m月d日 G:i:s", $hidnt). "<br>";
// print "constr50(value,date) :" .$hidnt.":". date("Y年m月d日 G:i:s", $hidnt). "<br>";
// print "constr100(value,date) :" .$hidnt.":". date("Y年m月d日 G:i:s", $hidnt). "<br>"; // if ($hidnt == 1498536000 ) { // print "constr100(value,date) :" .$hidnt.":". date("Y年m月d日 G:i:s", $hidnt). $constrst$hidnt. "<br>"; // }
}
?>