Update of /cvsroot/openfirst/news/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv28106
Modified Files:
index.php
Log Message:
Add images to news postings, change layout to table, fix lingering issue from file name changes
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/news/admin/index.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** index.php 28 Jun 2003 14:39:36 -0000 1.3
--- index.php 29 Jul 2003 15:31:54 -0000 1.4
***************
*** 35,40 ****
// Display a form for news.
?>
! <form method="post" action="addnews.php">
! Message Title: <input name="title" type="text" value="openFIRST News">
<br />Message:
<br /><textarea name="news" cols="40" rows="20">Insert your news here.</textarea>
--- 35,42 ----
// Display a form for news.
?>
! <form method="post" action="index.php">
! Message Title: <input name="title" type="text" value="openFIRST News" style="width: 250px;">
! <br />Image: <input type="text" name="image" value="<?php echo $basepath . "/images/openfirst.png"; ?>"
! style="width: 250px;">
<br />Message:
<br /><textarea name="news" cols="40" rows="20">Insert your news here.</textarea>
***************
*** 48,52 ****
$now = date("D M j G:i:s T Y");
! $query = mysql_query("INSERT INTO ofirst_news (date, poster, title, news) VALUES ('$now', '$user->user', '" . $_POST["title"] . "', '" . $_POST["news"] . "');");
echo("The news item " . $_POST["title"] . " has been added.");
--- 50,54 ----
$now = date("D M j G:i:s T Y");
! $query = mysql_query("INSERT INTO ofirst_news (date, poster, title, news, image) VALUES ('$now', '$user->user', '" . $_POST["title"] . "', '" . $_POST["news"] . "', '" . $_POST["image"] . "');");
echo("The news item " . $_POST["title"] . " has been added.");
***************
*** 56,58 ****
}
include($footer);
! ?>
\ No newline at end of file
--- 58,60 ----
}
include($footer);
! ?>
|