Location: PHPKode > projects > Comic > templates/default/genreEdit.html.php
<?
// ---------------------------------------------
// |     Comic COMPONENT    			|
// |                                        	|
// |         Copyright (C) 2005 Rdemont       	|
// |                                        	|
// |           All rights reserved          	|
// ---------------------------------------------
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// Please note that the GPL states that any headers in files and
// Copyright notices as well as credits in headers, source files
// and output (screens, prints, etc.) can not be removed.
// You can extend them with your own credits, though...
//
// 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.
//
// The "GNU General Public License" (GPL) is available at
// http://www.gnu.org/copyleft/gpl.html.
//-----------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
// Autorisation d'accès
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
//--------------------------------------------------------------------------------------------------
?>
<script language="javascript">

		function submitbutton(pressbutton) 
		{
			var form = document.adminForm;
		
			if (pressbutton == 'cancel') 
			{
				form.task.value = "genre_list";
				form.submit();
				return;
			}
		
		// do field validation
			if (form.name.value == "")
			{
				alert( "<?php echo _WARN_GENRE_NAME; ?>" );
			} else {
				form.task.value = "save_genre";				
				form.submit();
			}
		}		
</script>


			<form method="POST" name="adminForm" action="index.php">
			
			<!-- BOUTONS-->
			<table width="100%">
				<tr>
						<td  width="90%" align="right"></td>
						<td width="10%">
						 <?php
						 mosToolBar::startTable();
						 mosToolBar::save();
						 mosToolBar::spacer(25);
						 mosToolBar::cancel();
						 mosToolBar::endtable();
						 ?>
						</td>
				</tr>
			</table>
			
			<!--FORMULAIRE-->
			<table width="100%">
				<tr>
					<td width="30%" align="right"><?php echo _GENRE_NAME ;?></td>
					<td width="70%" align="left"><input type="text" name="name" size="40" maxlength="100" value="<?php echo $name ;?>" class="inputbox"/></td>
				</tr>
				
			</table>
			
			<!--PARAM-->
			    <input type="hidden" name="task" value="save_genre" />			
			    <input type="hidden" name="option" value="<?php echo $option ;?>" />
			    <input type="hidden" name="id" value="<?php echo $id ;?>" />
			</form>
Return current item: Comic