| 55 |
} |
} |
| 56 |
|
|
| 57 |
if ( trim( form.name.value ) == "" ){ |
if ( trim( form.name.value ) == "" ){ |
| 58 |
alert( "<?php echo T_('Item must have a name') ?>" ); |
alert( "<?php echo T_('Item must have a name'); ?>" ); |
| 59 |
} else if (form.componentid.value == ""){ |
} else if (form.componentid.value == ""){ |
| 60 |
alert( "<?php echo T_('Please select a Component') ?>" ); |
alert( "<?php echo T_('Please select a Component'); ?>" ); |
| 61 |
} else { |
} else { |
| 62 |
submitform( pressbutton ); |
submitform( pressbutton ); |
| 63 |
} |
} |
| 80 |
<table class="adminform"> |
<table class="adminform"> |
| 81 |
<tr> |
<tr> |
| 82 |
<th colspan="2"> |
<th colspan="2"> |
| 83 |
<?php echo T_('Details') ?> |
<?php echo T_('Details'); ?> |
| 84 |
</th> |
</th> |
| 85 |
</tr> |
</tr> |
| 86 |
<tr> |
<tr> |
| 87 |
<td width="10%" align="right"><?php echo T_('Name:') ?></td> |
<td width="10%" align="right"><?php echo T_('Name:'); ?></td> |
| 88 |
<td width="80%"> |
<td width="80%"> |
| 89 |
<input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php echo htmlspecialchars( $menu->name, ENT_QUOTES ); ?>" /> |
<input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php echo htmlspecialchars( $menu->name, ENT_QUOTES ); ?>" /> |
| 90 |
</td> |
</td> |
| 91 |
</tr> |
</tr> |
| 92 |
<tr> |
<tr> |
| 93 |
<td valign="top" align="right"><?php echo T_('Component:') ?></td> |
<td valign="top" align="right"><?php echo T_('Component:'); ?></td> |
| 94 |
<td> |
<td> |
| 95 |
<?php echo $lists['componentid']; ?> |
<?php echo $lists['componentid']; ?> |
| 96 |
</td> |
</td> |
| 97 |
</tr> |
</tr> |
| 98 |
<tr> |
<tr> |
| 99 |
<td width="10%" align="right"><?php echo T_('Url:') ?></td> |
<td width="10%" align="right"><?php echo T_('Url:'); ?></td> |
| 100 |
<td width="80%"> |
<td width="80%"> |
| 101 |
<?php echo $lists['link']; ?> |
<?php echo $lists['link']; ?> |
| 102 |
</td> |
</td> |
| 103 |
</tr> |
</tr> |
| 104 |
<tr> |
<tr> |
| 105 |
<td align="right"><?php echo T_('Parent Item:') ?></td> |
<td align="right"><?php echo T_('Parent Item:'); ?></td> |
| 106 |
<td> |
<td> |
| 107 |
<?php echo $lists['parent'];?> |
<?php echo $lists['parent'];?> |
| 108 |
</td> |
</td> |
| 109 |
</tr> |
</tr> |
| 110 |
|
|
| 111 |
<tr> |
<tr> |
| 112 |
<td valign="top" align="right"><?php echo T_('Ordering:') ?></td> |
<td valign="top" align="right"><?php echo T_('Ordering:'); ?></td> |
| 113 |
<td> |
<td> |
| 114 |
<?php echo $lists['ordering']; ?> |
<?php echo $lists['ordering']; ?> |
| 115 |
</td> |
</td> |
| 116 |
</tr> |
</tr> |
| 117 |
<tr> |
<tr> |
| 118 |
<td valign="top" align="right"><?php echo T_('Access Level:') ?></td> |
<td valign="top" align="right"><?php echo T_('Access Level:'); ?></td> |
| 119 |
<td> |
<td> |
| 120 |
<?php echo $lists['access']; ?> |
<?php echo $lists['access']; ?> |
| 121 |
</td> |
</td> |
| 122 |
</tr> |
</tr> |
| 123 |
<tr> |
<tr> |
| 124 |
<td valign="top" align="right"><?php echo T_('Published:') ?></td> |
<td valign="top" align="right"><?php echo T_('Published:'); ?></td> |
| 125 |
<td> |
<td> |
| 126 |
<?php echo $lists['published']; ?> |
<?php echo $lists['published']; ?> |
| 127 |
</td> |
</td> |
| 135 |
<table class="adminform"> |
<table class="adminform"> |
| 136 |
<tr> |
<tr> |
| 137 |
<th> |
<th> |
| 138 |
<?php echo T_('Parameters') ?> |
<?php echo T_('Parameters'); ?> |
| 139 |
</th> |
</th> |
| 140 |
</tr> |
</tr> |
| 141 |
<tr> |
<tr> |
| 145 |
echo $params->render(); |
echo $params->render(); |
| 146 |
} else { |
} else { |
| 147 |
?> |
?> |
| 148 |
<strong><?php echo T_('Parameter list will be available once you save this New menu item') ?></strong> |
<strong><?php echo T_('Parameter list will be available once you save this New menu item'); ?></strong> |
| 149 |
<?php |
<?php |
| 150 |
} |
} |
| 151 |
?> |
?> |