| 36 |
if ( !$menu->id ) { |
if ( !$menu->id ) { |
| 37 |
?> |
?> |
| 38 |
if ( getSelectedValue( 'adminForm', 'componentid' ) < 0 ) { |
if ( getSelectedValue( 'adminForm', 'componentid' ) < 0 ) { |
| 39 |
alert( 'You must select a Section' ); |
alert( '<?php echo T_('You must select a Section') ?>' ); |
| 40 |
return; |
return; |
| 41 |
} |
} |
| 42 |
|
|
| 43 |
if ( form.name.value == '' ) { |
if ( form.name.value == '' ) { |
| 44 |
if ( form.componentid.value == 0 ) { |
if ( form.componentid.value == 0 ) { |
| 45 |
form.name.value = "All Sections"; |
form.name.value = "<?php echo T_('All Sections') ?>"; |
| 46 |
} else { |
} else { |
| 47 |
form.name.value = form.componentid.options[form.componentid.selectedIndex].text; |
form.name.value = form.componentid.options[form.componentid.selectedIndex].text; |
| 48 |
} |
} |
| 53 |
} else { |
} else { |
| 54 |
?> |
?> |
| 55 |
if ( form.name.value == '' ) { |
if ( form.name.value == '' ) { |
| 56 |
alert( 'This Menu item must have a title' ); |
alert( '<?php echo T_('This Menu item must have a title') ?>' ); |
| 57 |
} else { |
} else { |
| 58 |
submitform( pressbutton ); |
submitform( pressbutton ); |
| 59 |
} |
} |
| 67 |
<table class="adminheading"> |
<table class="adminheading"> |
| 68 |
<tr> |
<tr> |
| 69 |
<th> |
<th> |
| 70 |
<?php echo $menu->id ? 'Edit' : 'Add';?> Menu Item :: Blog - Content Section Archive |
<?php echo $menu->id ? T_('Edit') : T_('Add');?> <?php echo T_('Menu Item :: Blog - Content Section Archive') ?> |
| 71 |
</th> |
</th> |
| 72 |
</tr> |
</tr> |
| 73 |
</table> |
</table> |
| 78 |
<table class="adminform"> |
<table class="adminform"> |
| 79 |
<tr> |
<tr> |
| 80 |
<th colspan="3"> |
<th colspan="3"> |
| 81 |
Details |
<?php echo T_('Details') ?> |
| 82 |
</th> |
</th> |
| 83 |
</tr> |
</tr> |
| 84 |
<tr> |
<tr> |
| 85 |
<td width="10%" align="right" valign="top">Name:</td> |
<td width="10%" align="right" valign="top"><strong><?php echo T_('Name:') ?></strong></td> |
| 86 |
<td width="200px"> |
<td width="200px"> |
| 87 |
<input type="text" name="name" size="30" maxlength="100" class="inputbox" value="<?php echo $menu->name; ?>"/> |
<input type="text" name="name" size="30" maxlength="100" class="inputbox" value="<?php echo $menu->name; ?>"/> |
| 88 |
</td> |
</td> |
| 89 |
<td> |
<td> |
| 90 |
<?php |
<?php |
| 91 |
if ( !$menu->id ) { |
if ( !$menu->id ) { |
| 92 |
echo mosToolTip( 'If you leave this blank the Section name will be automatically used' ); |
echo mosToolTip( T_('If you leave this blank the Section name will be automatically used') ); |
| 93 |
} |
} |
| 94 |
?> |
?> |
| 95 |
</td> |
</td> |
| 96 |
</tr> |
</tr> |
| 97 |
<tr> |
<tr> |
| 98 |
<td valign="top" align="right">Section:</td> |
<td valign="top" align="right"><?php echo T_('Section:') ?></td> |
| 99 |
<td colspan="2"> |
<td colspan="2"> |
| 100 |
<?php echo $lists['componentid']; ?> |
<?php echo $lists['componentid']; ?> |
| 101 |
</td> |
</td> |
| 102 |
</tr> |
</tr> |
| 103 |
<tr> |
<tr> |
| 104 |
<td align="right">Url:</td> |
<td align="right"><?php echo T_('Url:') ?></td> |
| 105 |
<td colspan="2"> |
<td colspan="2"> |
| 106 |
<?php echo $lists['link']; ?> |
<?php echo $lists['link']; ?> |
| 107 |
</td> |
</td> |
| 108 |
</tr> |
</tr> |
| 109 |
<tr> |
<tr> |
| 110 |
<td align="right">Parent Item:</td> |
<td align="right"><?php echo T_('Parent Item:') ?></td> |
| 111 |
<td colspan="2"> |
<td colspan="2"> |
| 112 |
<?php echo $lists['parent']; ?> |
<?php echo $lists['parent']; ?> |
| 113 |
</td> |
</td> |
| 114 |
</tr> |
</tr> |
| 115 |
<tr> |
<tr> |
| 116 |
<td valign="top" align="right">Ordering:</td> |
<td valign="top" align="right"><?php echo T_('Ordering:') ?></td> |
| 117 |
<td colspan="2"> |
<td colspan="2"> |
| 118 |
<?php echo $lists['ordering']; ?> |
<?php echo $lists['ordering']; ?> |
| 119 |
</td> |
</td> |
| 120 |
</tr> |
</tr> |
| 121 |
<tr> |
<tr> |
| 122 |
<td valign="top" align="right">Access Level:</td> |
<td valign="top" align="right"><?php echo T_('Access Level:') ?></td> |
| 123 |
<td colspan="2"> |
<td colspan="2"> |
| 124 |
<?php echo $lists['access']; ?> |
<?php echo $lists['access']; ?> |
| 125 |
</td> |
</td> |
| 126 |
</tr> |
</tr> |
| 127 |
<tr> |
<tr> |
| 128 |
<td valign="top" align="right">Published:</td> |
<td valign="top" align="right"><?php echo T_('Published:') ?></td> |
| 129 |
<td colspan="2"> |
<td colspan="2"> |
| 130 |
<?php echo $lists['published']; ?> |
<?php echo $lists['published']; ?> |
| 131 |
</td> |
</td> |
| 139 |
<table class="adminform"> |
<table class="adminform"> |
| 140 |
<tr> |
<tr> |
| 141 |
<th> |
<th> |
| 142 |
Parameters |
<?php echo T_('Parameters') ?> |
| 143 |
</th> |
</th> |
| 144 |
</tr> |
</tr> |
| 145 |
<tr> |
<tr> |