- md5
- a947577e6ef7df4d44bf074b0d355ad5
- sha1
- 83863c5c18400d615c2c469fd079104a8978920c
- sha256
- 3a195ba17069df759283732c7698d301ef821f661765932cc9e2782ab5b2131c
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
<?php
/**
* @version $Id: submit_content.menu.html.php 6070 2006-12-20 02:09:09Z robs $
* @package Joomla
* @subpackage Menus
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see docs/LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
/**
* Writes the edit form for new and existing content item
*
* A new record is defined when <var>$row</var> is passed with the <var>id</var>
* property set to 0.
* @package Joomla
* @subpackage Menus
*/
class submit_content_menu_html {
function edit( &$menu, &$lists, &$params, $option ) {
global $mosConfig_live_site;
?>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
<script language="javascript" type="text/javascript">
function submitbutton(pressbutton) {
if (pressbutton == 'cancel') {
submitform( pressbutton );
return;
}
var form = document.adminForm;
<?php
if ( !$menu->id ) {
?>
if ( getSelectedValue( 'adminForm', 'componentid' ) < 1 ) {
alert( 'You must select a Section' );
return;
}
form.link.value = "index.php?option=com_content&task=new§ionid=" + form.componentid.value;
if ( form.name.value == '' ) {
form.name.value = form.componentid.options[form.componentid.selectedIndex].text;
}
submitform( pressbutton );
<?php
} else {
?>
if ( form.name.value == '' ) {
alert( 'This Menu item must have a title' );
} else {
submitform( pressbutton );
}
<?php
}
?>
}
</script>
<form action="index2.php" method="post" name="adminForm">
<table class="adminheading">
<tr>
<th>
<?php echo $menu->id ? 'Edit' : 'Add';?> Menu Item :: Submit - Content
</th>
</tr>
</table>
<table width="100%">
<tr valign="top">
<td width="60%">
<table class="adminform">
<tr>
<th colspan="3">
Details
</th>
</tr>
<tr>
<td width="10%" align="right" valign="top">
Name:
</td>
<td width="200px">
<input type="text" name="name" size="30" maxlength="100" class="inputbox" value="<?php echo htmlspecialchars( $menu->name, ENT_QUOTES ); ?>"/>
</td>
<td>
<?php
if ( !$menu->id ) {
echo mosToolTip( 'If you leave this blank the Section name will be automatically used' );
}
?>
</td>
</tr>
<tr>
<td align="right" valign="top">
Section:
</td>
<td colspan="2">
<?php echo $lists['componentid']; ?>
</td>
</tr>
<tr>
<td align="right">
URL:
</td>
<td colspan="2">
<?php echo ampReplace($lists['link']); ?>
</td>
</tr>
<tr>
<td align="right">
Parent Item:
</td>
<td colspan="2">
<?php echo $lists['parent'];?>
</td>
</tr>
<tr>
<td valign="top" align="right">
Ordering:
</td>
<td colspan="2">
<?php echo $lists['ordering']; ?>
</td>
</tr>
<tr>
<td valign="top" align="right">
Access Level:
</td>
<td colspan="2">
<?php echo $lists['access']; ?>
</td>
</tr>
<tr>
<td valign="top" align="right">
Published:
</td>
<td colspan="2">
<?php echo $lists['published']; ?>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</td>
<td width="40%">
<table class="adminform">
<tr>
<th>
Parameters
</th>
</tr>
<tr>
<td>
<?php echo $params->render();?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="id" value="<?php echo $menu->id; ?>" />
<input type="hidden" name="menutype" value="<?php echo $menu->menutype; ?>" />
<input type="hidden" name="type" value="<?php echo $menu->type; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="hidemainmenu" value="0" />
</form>
<script language="Javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js"></script>
<?php
}
}
?>
No other release has this exact content. See every version of this file.