- md5
- f5ea83013bee14c45f37438552726335
- sha1
- 16f829b52bb3d9c4f28735f87ebe55b145acf246
- sha256
- 48e38f627f2c84bee58278b8b3e0418db31dbc9831810ea5df5efe779a1c9371
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
<?php
/**
* @version $Id: content_item_link.menu.html.php 266 2005-09-30 04:44:59Z Levis $
* @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 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.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
/**
* Disaply content item link
* @package Joomla
* @subpackage Menus
*/
class content_item_link_menu_html {
function edit( &$menu, &$lists, &$params, $option, $content ) {
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) {
var form = document.adminForm;
//form.name.value = form.componentid.options[form.componentid.selectedIndex].text;
//submitform( pressbutton );
if (pressbutton == 'cancel') {
submitform( pressbutton );
return;
}
if (pressbutton == 'redirect') {
submitform( pressbutton );
return;
}
// do field validation
if (trim(form.name.value) == ""){
alert( "Link must have a name" );
} else if (trim(form.content_item_link.value) == ""){
alert( "You must select a Content to link to" );
} else {
form.link.value = "index.php?option=com_content&task=view&id=" + form.content_item_link.value;
form.componentid.value = form.content_item_link.value;
submitform( pressbutton );
}
}
</script>
<form action="index2.php" method="post" name="adminForm">
<table class="adminheading">
<tr>
<th>
<?php echo $menu->id ? 'Edit' : 'Add';?> Menu Item :: Link - Content Item
</th>
</tr>
</table>
<table width="100%">
<tr valign="top">
<td width="60%">
<table class="adminform">
<tr>
<th colspan="2">
Details
</th>
</tr>
<tr>
<td width="10%" align="right">
Name:
</td>
<td width="80%">
<input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php echo $menu->name; ?>" />
</td>
</tr>
<tr>
<td width="10%" align="right" valign="top">
Content to Link:
</td>
<td width="80%">
<?php echo $lists['content']; ?>
</td>
</tr>
<tr>
<td width="10%" align="right">Url:</td>
<td width="80%">
<?php echo ampReplace($lists['link']); ?>
</td>
</tr>
<tr>
<td width="10%" align="right" valign="top">
On Click, Open in:
</td>
<td width="80%">
<?php echo $lists['target']; ?>
</td>
</tr>
<tr>
<td align="right">
Parent Item:
</td>
<td>
<?php echo $lists['parent']; ?>
</td>
</tr>
<tr>
<td valign="top" align="right">
Ordering:
</td>
<td>
<?php echo $lists['ordering']; ?>
</td>
</tr>
<tr>
<td valign="top" align="right">
Access Level:
</td>
<td>
<?php echo $lists['access']; ?>
</td>
</tr>
<tr>
<td valign="top" align="right">Published:</td>
<td>
<?php echo $lists['published']; ?>
</td>
</tr>
<tr>
<td colspan="2"> </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="scid" value="<?php echo $menu->componentid; ?>" />
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="id" value="<?php echo $menu->id; ?>" />
<input type="hidden" name="componentid" value="" />
<input type="hidden" name="link" value="" />
<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
}
}
?>
The same content is in 7 releases, Joomla 1.0.3 to 1.0.11. See them all, or every version of this file.