Location: PHPKode > projects > @1 News & Image Expander PRO > root/expander/admin/news_form.php
<?PHP
	if ($_GET['action']=='add_news') {
		$old=$_POST;
	}
	else {
		$old=$news[$_GET['news_id']];
		$old['ID']=$_POST['ID']?$_POST['ID']:$_GET['news_id'];
	}
	
?>
<html>

  <head>
    <meta http-equiv="Content-Type" content="text/html">
    <link rel="stylesheet" href="gfx/main.css" type="text/css">
    <title>Expander : News editor</title>

  </head>

  <body bgcolor="#ffffff">  

<?PHP

@include "header.php";

?>
    <center>


    <table border="0" cellpadding="0" cellspacing="0" height="1" width="540">
    <tr>
      <td width="100%" height="1" bgcolor="#000000"><img src="gfx/b.gif" width="1" height="1" alt=""></td>
    </tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="540">
    <tr>
      <td width="1" rowspan="15" bgcolor="#000000" valign="top"><img src="gfx/b.gif" width="1" border="0" height="1" alt=""></td>

      <td width="538" valign="top" align="center" height="100%">
      <table border="0" cellpadding="0" cellspacing="0" width="97%" height="24" bgcolor="#ffffff">
        <tr>
          <td colspan=2 width="1"><img src="gfx/b.gif" width="1" border="0" height="4" alt=""></td>
        </tr>
        <tr>
          <td width="97%" height="23" valing="middle"><b>Expander&nbsp; : &nbsp;News editor</b></td>
          <td width="1%" height="23" valing="middle"><a href="<?PHP echo $_SERVER['PHP_SELF'].'?SID='.session_id();?>"  class="FooterLink">back</a></td>
          <td width="1%" height="23" valing="middle" align="center">&nbsp;&nbsp;<img src="gfx/square.gif" width="4" height="6" align="absmiddle">&nbsp;&nbsp;</td>
          <td width="1%" height="23" valing="middle"><a href="JavaScript:document.request.submit();" class="FooterLink">submit</a></td>
        </tr>
        </table>

        <table border="0" cellpadding="0" cellspacing="0" width="97%" bgcolor="#ffffff">
        <tr>
          <td width="100%" valign="top"><img src="gfx/m2.gif" alt="" align="absmiddle" width="100%" height="1"></td>
        </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="1" width="525" bgcolor="#ffffff">
        <form name="request" action="<?PHP echo $HTTP_SERVER_VARS["SCRIPT_NAME"]?>" method="post" enctype="multipart/form-data">
        <input type='hidden' name='SID' value='<?PHP echo session_id();?>'>
        <input type='hidden' name='action' value='news_post'>
        <input type='hidden' name='ID' value='<?PHP echo $old["ID"] ?>'>
        <?PHP if ($err) { ?>
        <tr><td colspan="2" width="100%">&nbsp;</td></tr>
        <tr>                                                       
          <td colspan="2" width="100%" align="center"><font color="#ff0000"><?PHP echo $err;?></font></td>
        </tr>

        <?PHP } ?>
        <tr><td colspan="2" width="100%">&nbsp;</td></tr>
         <tr>
          <td width="1%" align="right"><nobr>&nbsp;<b>Heading</b>&nbsp;:&nbsp;</nobr></td>
          <td width="99%">&nbsp;<input type="text" name="heading" value="<?PHP echo StripSlashes($old['heading']);?>" size="64">
	</td>
        </tr>
         <tr>
          <td width="1%" align="right" valign="top"><nobr>&nbsp;<b>Brief description</b>&nbsp;:&nbsp;</nobr></td>
          <td width="99%">&nbsp;<textarea name="brief_description" cols="48" rows="10"><?PHP echo StripSlashes($old['brief_description']);?></textarea>
	</td>
        </tr>
         <tr>
          <td width="1%" align="right"><nobr>&nbsp;<b>Image</b>&nbsp;:&nbsp;</nobr></td>
          <td width="99%">&nbsp;<input type="file" name="image_include" size="30">
	</td>
        </tr>        
        <?PHP 
           if ($old["image"]) {
      	?>
        <tr>
        <td>
        &nbsp;
        </td>
        <td>
           <input type='checkbox' name='has_image' value=1 CHECKED><?PHP echo '&nbsp;'.$old['image'];?>
        </td>
        </tr>
	<?PHP
	}
	?>



         <tr>
          <td width="1%" align="right"><nobr>&nbsp;<b>Alignment</b>&nbsp;:&nbsp;</nobr></td>
          <td width="99%">&nbsp;
          	<select name='image_alignment'>
          	<option value='top' <?PHP if ($old['image_alignment']=='top') echo 'SELECTED'; ?>>Top</option>
          	<option value='left' <?PHP if ($old['image_alignment']=='left') echo 'SELECTED'; ?>>Left</option>
          	<option value='right' <?PHP if ($old['image_alignment']=='right') echo 'SELECTED'; ?>>Right</option>
          	<option value='middle' <?PHP if ($old['image_alignment']=='middle') echo 'SELECTED'; ?>>Middle</option>
          	</select>
	</td>
        </tr>        
         <tr>
          <td width="1%" align="right"><nobr>&nbsp;<b>Link text</b>&nbsp;:&nbsp;</nobr></td>
          <td width="99%">&nbsp;<input type="text" name="link_text" size="30" value="<?PHP echo StripSlashes($old['link_text']);?>">
	</td>
        </tr>        
         <tr>
          <td width="1%" align="right" valign="top"><nobr>&nbsp;<b>Detailed news</b>&nbsp;:&nbsp;</nobr></td>
          <td width="99%">&nbsp;<textarea name="detailed" cols="48" rows="10"><?PHP echo StripSlashes($old['detailed']);?></textarea>
	</td>
        </tr>

        
        <tr><td colspan="2" width="100%">&nbsp;</td></tr>
        <tr><td colspan="2" width="100%">&nbsp;</td></tr>
        <tr><td colspan="2" align="right"><a href="http://upoint.info/cgi" target="_new" class="FooterLink"><font size="1" color="#0000ff">Powered by UPOINT dotINFO</font></a></td></tr>
        <tr><td colspan="2" width="100%">&nbsp;</td></tr>
        </form>
        </table>
      </td>

      <td width="1" bgcolor="#000000" valign="top"><img src="gfx/b.gif" width="1" border="0" height="1" alt=""></td>
    </tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" height="1" width="540">
    <tr>
      <td width="100%" height="1" bgcolor="#000000"><img src="gfx/b.gif" width="1" height="1" alt=""></td>
    </tr>
    </table>

    </center>
<?PHP

@include "footer.php";

?>
  </body>

</html>
Return current item: @1 News & Image Expander PRO