Location: PHPKode > projects > OxyNews > oxynews/admin/oxynews_S_edit_headlines.php
<?
/*
	OxyNews, a PHP news management program
    Copyright (C) 2002  OxyTeam
    This program is free software; you can redistribute it and/or modify 
    it under the terms of the GNU General Public License as published by 
    the Free Software Foundation; either version 2 of the License, or 
    (at your option) any later version. 

    This program is distributed in the hope that it will be useful, 
    but WITHOUT ANY WARRANTY; without even the implied warranty of 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    GNU General Public License for more details. 

    You should have received a copy of the GNU General Public License 
    along with this program; if not, write to the Free Software 
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
*/
// www.php-arena.com
// www.oxynews.net
// www.oxyscripts.com

$page_title = "Headlines Style"; // Title of page

include("oxynews_I_top.php"); // Top of page

if ($oxynews_userlevels[$phpUserLogin_userinfo[user_level]][s][headlines]) {

/**** CODE START ****/
echo"<center>
<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">\n";

$sql = "SELECT head_style,head_adv_top,head_adv_len,head_adv_hl,head_adv_bot,id FROM $oxynews_mysql_table_style WHERE id=1";

 if ($result = mysql_query($sql)) {
 $myrow = mysql_fetch_assoc($result);
 }

 If ($myrow["head_style"] == "stand") $c1 = "checked";
 If ($myrow["head_style"] == "advanced") $c2 = "checked";
?>


<div align="center">

<font face="Arial, Helvetica, sans-serif" size="2">Edit Headlines Styles<p>
<b>Choose:</font></b>

<p>

<form method="post" action="oxynews_S_edit_headlines_process.php">

<table border="1" cellspacing="0" cellpadding="2" bordercolor="#000000">
 <tr bgcolor="#FFFFFF">
  <td><font face="Arial, Helvetica, sans-serif" size="2"><b>Standard Style -</b> Check to use the Standard Style <input type="radio" name="headlinestyle" value="stand" <? echo $c1 ?>></font></td>
 </tr>
 <tr bgcolor="#FFFFFF">
  <td><font face="Arial, Helvetica, sans-serif" size="2">Will be show as a list with numbers.</font></td>
 </tr>
</table>

<p><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Or</font></b></p>

<table border="1" cellspacing="0" cellpadding="2" bordercolor="#000000">
 <tr bgcolor="#FFFFFF">
  <td colspan="2"><b><font face="Arial, Helvetica, sans-serif" size="2">Advanced Style - </b>Check to use Advanced Style <input type="radio" name="headlinestyle" value="advanced" <? echo $c2 ?>> - Use HTML</font></td>
 </tr>
 <tr bgcolor="#FFFFFF"> 
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Set the max lenght of the titles: (Min 10, Max 40)</font></td>
  <td align="center"><input type="text" size="2" name="head_adv_len" value="<? echo $myrow["head_adv_len"] ?>"></td>
 </tr>
 <tr bgcolor="#FFFFFF"> 
  <td align="center" colspan="2"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Top:</font><br>
<textarea name="head_adv_top" cols="70" rows="2"><? echo $myrow["head_adv_top"] ?></textarea></td>
 </tr>
 <tr bgcolor="#FFFFFF"> 
  <td align="center" colspan="2"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Body:</font><br>
<textarea name="head_adv_hl" cols="70" rows="5"><? echo $myrow["head_adv_hl"] ?></textarea></td>
 </tr>
 <tr bgcolor="#FFFFFF"> 
  <td align="center" colspan="2"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Bottom:</b></font><br>
<textarea name="head_adv_bot" cols="70" rows="2"><? echo $myrow["head_adv_bot"] ?></textarea></td>
 </tr>
</table>

<p>

<table>
 <tr>
  <td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Help with advanced: How it works.</b></font></td>
 </tr>
 <tr>
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><i>Fields: Order of use.</i></font>
<table>
 <tr>
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Top</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">- Start.</font></td>
 </tr>
 <tr>
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Body</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> - A
    </font></font><font face="Verdana, Arial, Helvetica, sans-serif" size="2" arial, helvetica, sans-serif\">headline
 with link</font><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">.</font></font></td>
 </tr>
 <tr>
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Body</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> - A
    headline with link.</font></td>
 </tr>
 <tr>
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Bottom</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">- Done.</font></td>
 </tr>
</table>
 </tr>

 <tr>
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><i>Tags: What they do, and where to use.</i></font>
<table>
 <tr>
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Tag:</b></font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>What it does:</b></font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Where it can be used:</b></font></td>
 </tr>
 <tr>
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">&lt;headline&gt;</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Prints
    a headline + a link that points to the main news page.</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Body</font></td>
 </tr>
 <tr>
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">&lt;number&gt;</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Prints a number (starting with 1) for every title listed.</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Body.</font></td>
 </tr>
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">&lt;space&gt;</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Makes a " ".</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Top,
    Body and Bottom.</font></td>
 </tr>
 <tr>
  <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">&lt;var&gt;$my_own_var&lt;/var&gt;</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Let you import $var's from outside the script.</font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Top,
    Body and Bottom.</font></td>
 </tr>
</table>
 </tr>
</table>

<p>

<input type="hidden" name="update" value="TRUE">
<input type="submit" name="Submit" value="Submit Changes">

</form>

</div>
<?
/**** CODE END ****/

} else {

echo"<p align='center'><font face='Verdana, Arial, Helvetica, sans-serif' size='2'>Sorry, you may not use this page.</font></p>";

}

include("oxynews_I_bottom.php"); // Bottom of page

?>
Return current item: OxyNews