コード例 #1
0
ファイル: knowledge.php プロジェクト: robocon/iopr
');"><img src="images/admin/trash.gif"  border="0" alt="<?php 
        echo _ADMIN_BUTTON_DEL;
        ?>
" ></a>
     </td> 
     <td><A HREF="?name=knowledge&file=readknowledge&id=<?php 
        echo $arr['knowledge']['id'];
        ?>
" target="_blank"><?php 
        echo $arr['knowledge']['topic'];
        ?>
</A><?php 
        echo $CommentIcon;
        echo $PicIcon;
        echo $AttIcon;
        echo NewsIcon(TIMESTAMP, $arr['knowledge']['post_date'], "images/icon_new.gif");
        ?>
</td>
     <td ><CENTER><?php 
        echo ThaiTimeConvert($arr['knowledge']['post_date'], '', '');
        ?>
</CENTER></td>
     <td align="center">
	 <?php 
        if ($arr['category']['category_name']) {
            //ËÒ¡ÁÕËÁÇ´áÊ´§ÃÙ»
            ?>
	 <A HREF="#"><IMG SRC="images/admin/folders.gif"  BORDER="0" align="absmiddle" alt="<?php 
            echo $arr['category']['category_name'];
            ?>
" onMouseOver="MM_displayStatusMsg('<?php 
コード例 #2
0
ファイル: read.php プロジェクト: robocon/iopr
				</TR>
				<TR>
				<TD align=center bgcolor="#F5F5F5">&nbsp;<img src="icon/research_<?php 
    echo $arr['research']['post_date'];
    ?>
.jpg" >&nbsp;&nbsp;
					</TD>

					<TD width=100% bgcolor="#F5F5F5" valign="top"><FONT COLOR="#000099" size=3><?php 
    echo _FORM_MOD_READ_CONT;
    ?>
 </font><FONT COLOR="#CC0000" size=3><?php 
    echo $arr['research']['topic'];
    ?>
</FONT></font><?php 
    echo NewsIcon(TIMESTAMP, $arr['research']['post_date'], "images/icon_new.gif");
    ?>
<br><br></font><FONT size=2><?php 
    echo _RESEARCH_AUTHX;
    ?>
 : <FONT COLOR="#CC0000" size=2> <?php 
    echo $arr['research']['auth'];
    ?>
</FONT></B></font><br>
					<?php 
    echo ThaiTimeConvert($arr['research']['post_date'], "1", "");
    if ($admin_user) {
        //Admin Login Show Icon
        ?>
				  <a href="?name=admin&file=research&op=research_edit&id=<?php 
        echo $arr['research']['id'];
コード例 #3
0
ファイル: gallery.php プロジェクト: robocon/iopr
                            }
                            ?>
</td>
</tr>
<tr>
<td align="left"><?php 
                            echo _ADMIN_FORM_POSTED;
                            ?>
 <?php 
                            echo $arr['gallery']['posted'];
                            ?>
 (VIEW : <?php 
                            echo $arr['gallery']['pageview'];
                            ?>
)<?php 
                            echo NewsIcon(TIMESTAMP, $arr['gallery']['post_date'], "images/icon_new.gif");
                            ?>
</td>
</tr>
</table>
</td>
<?php 
                            $count++;
                            if ($count % _GALLERY_ADMIN_COL == 0) {
                                echo "</TR><TR><TD colspan=5 height=\"1\" class=\"dotline\"></TD></TR>";
                                $count = 0;
                            }
                        }
                        echo "</table>";
                        SplitPage($page, $totalpage, "?name=admin&file=gallery&op=gallery_detail&id=" . $_GET['id'] . "");
                        echo $ShowSumPages;
コード例 #4
0
ファイル: index.php プロジェクト: robocon/maxsite
                                            <TR><TD height="3" ></TD></TR>
                                            <TR>
                                                <TD>
                                                    <A HREF="?name=knowledge&file=readknowledge&id=<?php 
    echo $item['id'];
    ?>
" target="_blank">
                                                        <IMG SRC="knowledgeicon/<?php 
    echo $item['post_date'];
    ?>
.jpg" WIDTH="80" HEIGHT="60" BORDER="0" ALIGN="left" class="topicicon"><B><?php 
    echo $item['topic'];
    ?>
</A></B>
                                                            <?php 
    NewsIcon(TIMESTAMP, $item['post_date'], "images/icon_new.gif");
    ?>
                                                            <BR><?php 
    echo $item['headline'];
    ?>
                                                            </TD>
                                                        </TR>
                                                        <TR><TD height="3" ></TD></TR>
                                                    </TABLE>
                                                </TD>
                                                <?php 
    $count++;
    if ($count % _KNOW_COL == 0) {
        echo "</TR><TR><TD colspan=2 height=\"1\" class=\"dotline\"></TD></TR>";
        $count = 0;
    }
コード例 #5
0
ファイル: readcat.php プロジェクト: robocon/iopr
          <TD height="3" ></TD>
        </TR>
        <TR>
          <TD width="320"><A HREF="?name=blog&file=readblog&id=<?php 
        echo $arr['blog']['id'];
        ?>
"> <IMG SRC="NewsIcon/<?php 
        echo $arr['blog']['post_date'];
        ?>
.jpg" WIDTH="80" HEIGHT="60" BORDER="0" ALIGN="left" class="topicicon"><B>
            <?php 
        echo $topics;
        ?>
            </b></A>
              <?php 
        NewsIcon(TIMESTAMP, $arr['blog']['post_date'], "images/icon_new.gif");
        ?>
              <BR>
              <?php 
        echo $arr['blog']['headline'];
        ?>
          </TD>
        </TR>
        <TR>
          <TD height="3" ></TD>
        </TR>
    </TABLE></TD>
      <?php 
        $count++;
        if ($count % _KNOW_COL == 0) {
            echo "</TR><TR><TD colspan=2 height=\"1\" class=\"dotline\"></TD></TR>";
コード例 #6
0
ファイル: video2.php プロジェクト: robocon/iopr
							<TABLE width="100%" border=0 cellSpacing=0 cellPadding=0>
								<tr>
									<TD align="center" >
										<TABLE width="200" border=0 cellSpacing=0 cellPadding=0>
											<tr>
												<TD align="left" >
													<img src="images/video_icon.png" border="0">
													<a HREF="index.php?name=video2&file=readvideo&id=<?php 
    echo $video['id'];
    ?>
" ><b><?php 
    echo $video['topic'];
    ?>
</a>
														<?php 
    echo NewsIcon(TIMESTAMP, $video['post_date'], "images/icon_new.gif");
    ?>
</b>
													</td>
												</tr>
												<TD align="left" ><b>By : <FONT COLOR="#990000"><?php 
    echo $video['posted'];
    ?>
</font></b>
												</td>
											</tr>
											<tr>
												<TD align="center" >
													<div class="photo" >
														<?php 
    if ($video['pic'] !== 'default.jpg') {
コード例 #7
0
ファイル: research_popup.php プロジェクト: robocon/iopr
    ?>
"  name="<?php 
    echo $arr[research][id];
    ?>
" title="ajax:index3.php?name=research&file=readresearchtip&id=<?php 
    echo $arr[research][id];
    ?>
"><font color="#990066"><B>[ <?php 
    echo ThaiTimeConvert($arr[research][post_date], "", "");
    ?>
 ] </font><font color="#0066FF"><?php 
    echo $arr[research][topic];
    ?>
</A></font></B>
					<?php 
    echo NewsIcon(TIMESTAMP, $arr[research][post_date], "images/icon_new.gif");
    ?>
<font color="#CC3300">( <?php 
    echo _RESEARCH_READ;
    ?>
 <?php 
    echo $arr[research][pageview];
    ?>
 )</font> <?php 
    echo _RESEARCH_AUTH;
    ?>
 <font color="#CC3300"><?php 
    echo $arr[research][auth];
    ?>
													</TD>
コード例 #8
0
ファイル: download.php プロジェクト: robocon/iopr
    $ress['com'] = $db->select_query("SELECT *,count(id) as com FROM " . TB_DOWNLOAD_COMMENT . " WHERE id ='" . $downloadid . "' group by id");
    $arrs['com'] = $db->fetch($ress['com']);
    ?>
<TD width="100%"  align="left">	
<IMG SRC="images/admin/open.gif" BORDER="0" ALIGN="absmiddle"><A HREF="?name=download&file=readdownload&id=<?php 
    echo $arr['download']['id'];
    ?>
" ><font color="#990066"><B>[ <?php 
    echo ThaiTimeConvert($arr['download']['post_date'], "", "");
    ?>
 ] </font><font color="#0066FF"><?php 
    echo $arr['download']['topic'];
    ?>
</A></font></B>
<?php 
    echo NewsIcon(TIMESTAMP, $arr['download']['post_date'], "images/icon_new.gif");
    ?>
(<?php 
    echo _FORM_MOD_READX;
    ?>
 : <?php 
    echo $arr['download']['pageview'];
    ?>
 / <?php 
    echo _DOWNLOAD_NUM;
    ?>
 <?php 
    echo $arr['download']['rate'];
    ?>
 ) <?php 
    echo _DOWNLOAD_AUTH;
コード例 #9
0
ファイル: index.php プロジェクト: robocon/iopr
 $SumComm = $db->num_rows(TB_WEBBOARD_COMMENT, "id", " topic_id='" . $WebBoard['id'] . "' ");
 echo "<tr " . $ColorFill . "><td  width=25>";
 if ($WebBoard['pageview'] > 45) {
     echo "<img src='images/icon/topichot.gif' border='0' hspace='5' ALIGN=\"absmiddle\">";
 } else {
     echo "<IMG SRC=\"images/btn_paper.jpg\" BORDER=\"0\"  hspace='5' ALIGN=\"absmiddle\">";
 }
 echo "" . sprintf("%0" . _NUM_ID . "d", $WebBoard['id']) . " </td><td > <A HREF=\"?name=webboard&file=read&id=" . $WebBoard['id'] . "\" > <font  color='#333333'>" . $WebBoard['topic'] . "</font></A> " . $PicIcon . "&nbsp;" . $AttIcon . "";
 //�óա�з������
 $db->connectdb(DB_NAME, DB_USERNAME, DB_PASSWORD);
 $Comm = $db->select_query("SELECT * FROM " . TB_WEBBOARD_COMMENT . " where topic_id='" . $WebBoard['id'] . "' ORDER BY id DESC  LIMIT {$limit} ");
 $Comms = $db->fetch($Comm);
 if ($Comms['id']) {
     UpdateIcon(TIMESTAMP, $Comms['post_date'], "images/icon/update.gif");
 } else {
     NewsIcon(TIMESTAMP, $WebBoard['post_date'], "images/icon_new.gif");
 }
 echo "</td>\n";
 echo "<td width=\"19%\"><CENTER>";
 if ($WebBoard['is_member'] == 1) {
     echo "<B><FONT COLOR=\"#FF0066\">" . $WebBoard['post_name'] . "</FONT></B>&nbsp;<IMG SRC=\"images/human.gif\" BORDER=\"0\" ALIGN=\"absmiddle\">";
 } else {
     echo "<B><FONT COLOR=\"#6600FF\">" . $WebBoard['post_name'] . "</FONT></B>&nbsp;";
 }
 echo "<br><font size='1'>" . _WEBBOARD_DETAIL_POST . " " . ThaiTimeConvert($WebBoard['post_date'], "", "2") . "</font></CENTER></td>\n";
 echo "<td width='5%' align='center'><FONT FACE=\"tahoma\" COLOR=\"#0099FF\">" . number_format($WebBoard['pageview']) . "</FONT></td>\n\t<td  width='5%' align='center'><FONT FACE=\"tahoma\" COLOR=\"#808080\">" . number_format($SumComm) . "</FONT></td>\n";
 // �ʴ����ͺ����ش
 $res['ment'] = $db->select_query("SELECT * FROM " . TB_WEBBOARD_COMMENT . " WHERE topic_id=" . $WebBoard['id'] . " ORDER BY id DESC LIMIT 1 ");
 $arr['ment'] = $db->fetch($res['ment']);
 if ($arr['ment']['post_name']) {
     if ($arr['ment']['is_member'] == 1) {
コード例 #10
0
ファイル: newsrss.php プロジェクト: robocon/iopr
            $Color = 0;
            $ColorFill = "#FDEAFB";
        }
        $value = str_replace("</item>", "", $value);
        $iTitle[$key] = strip_tags(substr($value, strpos($value, "<title>"), strpos($value, "</title>")));
        $iLink[$key] = strip_tags(substr($value, strpos($value, "<link>"), strpos($value, "</link>") - strpos($value, "<link>")));
        $iPic[$key] = strip_tags(substr($value, strpos($value, "<pic>"), strpos($value, "</pic>") - strpos($value, "<pic>")));
        $iDesc[$key] = strip_tags(substr($value, strpos($value, "<description>"), strpos($value, "</description>") - strpos($value, "<description>")));
        $ipubDate[$key] = strip_tags(substr($value, strpos($value, "<pubDate>"), strpos($value, "</pubDate>") - strpos($value, "<pubDate>")));
        //�ʴ�������
        $timesdate = ThaiTimeConvert($ipubDate[$key], "", "");
        //		echo "<tr><td><img src=images/go.gif><a href='".$iLink[$key]."' target='_blank' /><img src='".$iPic[$key]."' border=0 align=left><b>".$iTitle[$key]."</b></a><br>".$iDesc[$key]." ";
        //		echo " ".NewsIcon(TIMESTAMP, $ipubDate[$key], "images/icon_new.gif")."";
        //		echo "(".$timesdate.")</td></tr>";
        echo "<td bgcolor={$ColorFill}><img src=images/17.png><a href='" . $iLink[$key] . "' target='_blank' /><b>  " . $iTitle[$key] . "</b></a>";
        echo " " . NewsIcon(TIMESTAMP, $ipubDate[$key], "images/icon_new.gif") . "";
        echo "(" . $timesdate . ")</td></tr>";
        echo "</Tr><TR><TD colspan=2 height=\"1\" class=\"dotline\"></TD></TR>";
    }
}
echo "<TR><TD colspan=2 height=\"1\" class=\"dotline\"></TD></TR>";
echo "</table>";
?>
													<td>
													</tr>
													<tr>
													<td colspan="2" align="right"><A HREF="<?php 
echo $site;
?>
index.php?name=news&category=2" ><img src="images/admin/2_15.gif"></a></td>
													</tr>
コード例 #11
0
ファイル: video.php プロジェクト: robocon/iopr
                                    }
                                    ?>
</td>
</tr>
<tr>
<td align="left"><?php 
                                    echo _ADMIN_FORM_POSTED;
                                    ?>
 <?php 
                                    echo $arr['video']['posted'];
                                    ?>
 (VIEW : <?php 
                                    echo $arr['video']['pageview'];
                                    ?>
)<?php 
                                    echo NewsIcon(TIMESTAMP, $arr['video']['post_date'], "images/icon_new.gif");
                                    ?>
</td>
</tr>
</table>
</td>
<?php 
                                    $count++;
                                    if ($count % _VIDEO_ADMIN_COL == 0) {
                                        echo "</TR><TR><TD colspan=5 height=\"1\" class=\"dotline\"></TD></TR>";
                                        $count = 0;
                                    }
                                }
                                echo "</table>";
                                SplitPage($page, $totalpage, "?name=admin&file=video");
                                echo $ShowSumPages;
コード例 #12
0
ファイル: read.php プロジェクト: robocon/iopr
						<tr>
							<td height="50" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="89%"><img src="images/icon/icon-sk-05[1].gif" width="40" height="31" hspace="5" vspace="5" align="absmiddle" /><font color="#990000" size="2"><b>
										<?php 
echo $VIEWBOARD['topic'];
?>
&nbsp;
										<?php 
$db->connectdb(DB_NAME, DB_USERNAME, DB_PASSWORD);
$Comm = $db->select_query("SELECT * FROM " . TB_WEBBOARD_COMMENT . " where topic_id='" . $VIEWBOARD['id'] . "' ORDER BY id DESC  LIMIT {$goto}, {$limit} ");
$Comms = $db->fetch($Comm);
if ($Comms['id']) {
    UpdateIcon(TIMESTAMP, $Comms['post_date'], "images/icon/update.gif");
} else {
    NewsIcon(TIMESTAMP, $VIEWBOARD['post_date'], "images/icon_new.gif");
}
?>
									</b></font></td>
									<td width="11%"><font size="2" color="#339900"><b>VIEW :
										<?php 
echo $VIEWBOARD['pageview'];
?>
									</b></font>&nbsp;&nbsp;&nbsp;</td>
								</tr>
							</table>              </td>
						</tr>
					</table>
					<?php 
//�ʴ��š��Post
if (!empty($PostComplete)) {