Example #1
0
        $table = $tables[$i];
        include './table/' . $tables[$i] . '/var.php';
        $SUBJECT = db_fetch_array(db_query("SELECT VT_SBJ FROM kimsvt7_{$table}_dat", $DB_CONNECT));
        $VOTE_NUM = db_fetch_array(db_query("SELECT \nsum(VT_N_01+VT_N_02+VT_N_03+VT_N_04+VT_N_05+VT_N_06+VT_N_07+VT_N_08+VT_N_09+VT_N_10) FROM kimsvt7_{$table}_dat", $DB_CONNECT));
        $CMT_NUM = db_fetch_array(db_query("SELECT count(*) FROM kimsvt7_{$table}_rpl", $DB_CONNECT));
        ?>
<TR BGCOLOR='EFEFEF' HEIGHT=27>
<TD>&nbsp;설문기간 : 
<?php 
        echo getDateCut($g_Vote_Start, "04|년 |42|월 |62|일");
        ?>
 ~ <?php 
        echo getDateCut($g_Vote_Finish, "04|년 |42|월 |62|일");
        ?>
 <FONT COLOR='#DC1102'>(남은시간 : <?php 
        echo getRemainTime($g_Vote_Finish . "235959", "java", "span_{$i}");
        ?>
)</FONT>
</TD>
<TD ALIGN=RIGHT>
<IMG SRC='./image/hand.gif' ALIGN=absmiddle>
<FONT COLOR=RED><B><?php 
        echo number_format($VOTE_NUM[0]);
        ?>
</B></FONT>&nbsp;</TD>
</TR>
<TR HEIGHT=40>
<TD COLSPAN=2>
&nbsp;
<IMG SRC='./image/poll.gif' ALIGN=absmiddle>
<A HREF='./vote.php?table=<?php 
Example #2
0
File: my.php Project: Amfys/BST
                echo "<table class=table>";
                echo "<thead><th>時刻</th><th>残り時間</th></thead>";
                $timeData = $Database->getTimeTableEx($myStopList[$i]->stopId, $lineList[$j], get4Time() - 5, 3);
                for ($k = 0; $k < count($timeData); $k++) {
                    if ($timeData[$k]->type != getTodayType()) {
                        continue;
                    }
                    $classText = '';
                    $stopTime = formatTime($timeData[$k]->time);
                    if (getRemainUnixTime($stopTime) < 600) {
                        $classText = 'class=warning';
                    }
                    if ($timeData[$k]->time < get4Time()) {
                        $classText = 'class=danger';
                    }
                    $remain = getRemainTime($stopTime);
                    echo "<tr {$classText}><td>{$stopTime}</td><td>{$remain}</td>";
                    echo "</tr>";
                }
                echo "";
                echo "</table><hr>";
            }
        }
        ?>
				
				<?php 
    }
    ?>
				<input type='button' class='btn btn-link' onclick="getGps()" value=近い順>
				<?php 
}