Beispiel #1
0
for ($i = $Table_Num - 1 - ($p - 1) * $RECNUM; $i > $Table_Num - 1 - $p * $RECNUM; $i--) {
    if ($i > -1) {
        $NO = $i + 1;
        $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>
Beispiel #2
0
<TD COLSPAN=2><IMG SRC='../../bbs/image/star/<?php 
    echo $OP[VTR_VOTE];
    ?>
.gif' ALIGN=absmiddle></TD>
<TD>
<TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=100%>
<TR>
<TD>
<?php 
    echo getNameType($OP[VTR_ROOT], $OP[VTR_MB_ID], $OP[VTR_NAME], '', 1, 1, 0);
    ?>
</TD>
<TD ALIGN=RIGHT>
&nbsp;&nbsp;
<FONT COLOR=GRAY><?php 
    echo getDateCut($OP[VTR_DATE], "04|년 |42|월 |62|일 (|82|시 |102|분)");
    ?>
</FONT>
&nbsp;&nbsp;
<?php 
    if ($isRoot || $v_LogId && $OP[VTR_MB_ID] == $v_LogId) {
        ?>
<IMG SRC='./image/op_del.gif' STYLE='cursor:pointer;' alt="삭제" onclick="op_del('<?php 
        echo $table;
        ?>
','<?php 
        echo $OP[VTR_UID];
        ?>
','<?php 
        echo $p;
        ?>