[Openfirst-cvscommit] news/admin index.php,1.6,1.7
Brought to you by:
xtimg
From: <dav...@us...> - 2003-09-13 15:38:30
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv20924/news/admin Modified Files: index.php Log Message: Minor bug and design changes. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/index.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.php 23 Aug 2003 20:25:13 -0000 1.6 --- index.php 13 Sep 2003 15:38:25 -0000 1.7 *************** *** 32,36 **** if($user->membertype == "administrator") { ! if($_POST["news"] == "") { // Display a form for news. ?> --- 32,36 ---- if($user->membertype == "administrator") { ! if(! ISSET($_POST["news"])) { // Display a form for news. ?> *************** *** 39,50 **** <br />Image: <input type="text" name="image" value="<?php echo $basepath . "/images/openfirst.png"; ?>" style="width: 250px;"> ! <br />Message: <br /><?php if(function_exists("make_wysiwyg") == true) { ! make_wysiwyg("news", 240, 200, "Insert your news here."); } else { ! ?><textarea name="news" cols="40" rows="20">Insert your news here.</textarea><?php } ?> <br /> ! <input type="submit" value="Add News Item" /> <input type="reset" value="Clear News Item" /> </form> --- 39,53 ---- <br />Image: <input type="text" name="image" value="<?php echo $basepath . "/images/openfirst.png"; ?>" style="width: 250px;"> ! <br /> <br /><?php if(function_exists("make_wysiwyg") == true) { ! make_wysiwyg("news", 500, 300, "Insert your news here."); } else { ! ?> ! <textarea name="news" cols="60" rows="20">Insert your news here.</textarea> ! <?php } ?> <br /> ! ! <input name="news" type="submit" id="news" value="Add News Item" /> <input type="reset" value="Clear News Item" /> </form> *************** *** 56,60 **** $query = ofirst_dbquery("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."); } } else { --- 59,63 ---- $query = ofirst_dbquery("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. [ <a href='../index.php'>Main</a> ]"); } } else { |