<td valign="top" align="right"><?php echo GetMessage("FILEMAN_MENU_EDIT_ADDITIONAL_LINK"); ?> </td> <td valign="top"><textarea rows="3" cols="30" name="additional_link_<?php echo $i; ?> " WRAP="off"><?for($j=0; $j<count($aMenuLinksItem[2]); $j++)echo htmlspecialcharsex($aMenuLinksItem[2][$j])."\n"?></textarea></td> </tr> <tr> <td valign="top" align="right"><?php echo GetMessage("FILEMAN_MENU_EDIT_CONDITION_TYPE"); ?> </td> <td valign="top"> <?ConditionParse($aMenuLinksItem[4]); ConditionSelect($i);?> </tr> <tr> <td valign="top" align="right"><?php echo GetMessage("FILEMAN_MENU_EDIT_CONDITION"); ?> </td> <td valign="top"><?ConditionShow(array("i" => $i, "field_name" => "condition_$i", "form" => "fmenu"));?> </tr> <?if($number_new_params>0 || count($aMenuLinksItem[3])>0):?> <tr> <td valign="top" align="right"><?php echo GetMessage("FILEMAN_MENU_EDIT_PARAMS"); ?> </td>
" WRAP="off"><?php for ($j = 0, $m = count($aMenuLinksItem[2]); $j < $m; $j++) { echo htmlspecialcharsex($aMenuLinksItem[2][$j]) . "\n"; } ?> </textarea></td> </tr> <tr> <td valign="top" align="right"><?php echo GetMessage("FILEMAN_MENU_EDIT_CONDITION_TYPE"); ?> </td> <td valign="top"> <?php ConditionParse($aMenuLinksItem[4]); ConditionSelect($i); ?> </tr> <tr> <td valign="top" align="right"><?php echo GetMessage("FILEMAN_MENU_EDIT_CONDITION"); ?> </td> <td valign="top"><?php ConditionShow(array("i" => $i, "field_name" => "condition_{$i}", "form" => "fmenu")); ?> </tr> <?php if ($number_new_params > 0 || count($aMenuLinksItem[3]) > 0) { ?>
?> ][TEMPLATE]').selectedIndex>0)window.open((document.bform.SERVER_NAME.value?'http://'+document.bform.SERVER_NAME.value:'') + document.bform.DIR.value+'?bitrix_preview_site_template='+document.getElementById('SITE_TEMPLATE[<?php echo $i; ?> ][TEMPLATE]')[document.getElementById('SITE_TEMPLATE[<?php echo $i; ?> ][TEMPLATE]').selectedIndex].value);return false;"><img src="/bitrix/images/main/preview.gif" width="16" height="16" border="0"></a></td> <td><input type="text" size="2" name="SITE_TEMPLATE[<?php echo $i; ?> ][SORT]" value="<?php echo htmlspecialcharsex($val["SORT"]); ?> "></td> <td><?ConditionSelect($i);?></td> <td style="width:100%" align="left"><? ConditionShow(array( "i" =>$i, "field_name" =>"SITE_TEMPLATE[$i]", "form" =>"bform" ) ); ?></td> </tr> <?endforeach;?> </table> </td> </tr>