Jump to content

Recommended Posts

<?php

$oObj = $oTblNews->GetObject();
?>

<h1>News</h1>

<script language="javascript" type="text/javascript" src="/cms/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="/cms/tiny_mce/init.js"></script>	

<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">

</table>	
<table border="0" align="center" cellpadding="0" cellspacing="0" class="mainpageheader">
<tr>
<td>
Please add/edit the news content below.
</td>
</tr>
</table>
<?php
if ($_GET['msg'] == 1)
{
?>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"  class="tabpageerror">
<tr>
	<td>
		<font color="blue">You have successfully updated the news content.</font>
	</td>
</tr>
</table>
<?php
} //end if (isset($sErrorMsg))
?>	
<table border="0" align="center" cellpadding="0" cellspacing="0" class="tabpagemain">
<tr>
	<td valign="top">
		<table> 
	 	<form name="add_edit" method="post" action="<?=$_SERVER['PHP_SELF']?>?sMode=EditSave&iNewsId=<?=$oObj->news_id?>" enctype="multipart/form-data" >
		<input name="sMode" type="hidden" value="save">
		<tr>
				<textarea id="content" name="news_content" style="width:100%; height:250;" rows="20"><?=(isset($_POST['news_content']))?stripslashes(htmlentities($_POST['news_content'])):htmlentities($oObj->news_content)?></textarea>
				</span>
		<br />				
	</td>
</tr>

<td></td>

</table>
<td>		
<tr>

<table border="0" align="center" cellpadding="0" cellspacing="0" class="tabpagefooter">
<tr>
<td>
<input class="fmgrey" type="submit" value="Save" />	

</td>
</tr>				
	</form>
		</table>
	</td>
</tr>
</table>
<div class="pagefooter">
 <div class="clear"> </div>
</div>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.