#!/bin/sh . /www/cgi-bin/functions.sh lock_cgiwait lan_get_ip=$($nvram get lan_ipaddr) lan_get_netmask=$($nvram get lan_netmask) lan_get_dhcp_start=$($nvram get dhcp_start) lan_get_dhcp_end=$($nvram get dhcp_end) totalnum=$($nvram show | grep ^reservation | wc -l) print_cgi_header print_http_header "/funcs.js" "/reservation.js" #print_noload_header "_lan" "lan.html" "reservation_add" print_body_header "_lan" "lan.html" "reservation_add" print_table_header "" echo "" cat < var array_num = '$totalnum'; var lanip="$lan_get_ip"; var lanmask="$lan_get_netmask"; var startip="$lan_get_dhcp_start"; var endip="$lan_get_dhcp_end"; function loadvalue() { var form=document.forms[0]; var lanip_array = lanip.split("."); form.reservation_ipaddr1.value = lanip_array[0]; form.reservation_ipaddr2.value = lanip_array[1]; form.reservation_ipaddr3.value = lanip_array[2]; }
  # . . . EOF print_http_footer