version 1.73, 2016/05/21 16:58:07
|
version 1.74, 2016/05/21 20:08:35
|
Line 447 function ipstringeval() {
|
Line 447 function ipstringeval() {
|
svalue = ''; |
svalue = ''; |
for (var i=0; i<acctypes.length; i++) { |
for (var i=0; i<acctypes.length; i++) { |
var items = choices.document.getElementsByName('setip'+acctypes[i]); |
var items = choices.document.getElementsByName('setip'+acctypes[i]); |
if (items.length) { |
if (items.length > 0) { |
for (var j=0; j<items.length; j++) { |
for (var j=0; j<items.length; j++) { |
if (items[j].type == "text") { |
if (items[j].type == "text") { |
var possip = items[j].value |
var possip = items[j].value |
Line 466 function ipstringeval() {
|
Line 466 function ipstringeval() {
|
} |
} |
} |
} |
} |
} |
draw(); |
|
} |
} |
|
|
function addIpRule(iptype) { |
function addIpRule(iptype) { |
Line 1010 function draw() {
|
Line 1009 function draw() {
|
var num=0; |
var num=0; |
for (var j=0; j<curripaccess[i].length; j++) { |
for (var j=0; j<curripaccess[i].length; j++) { |
choicewrite('<div><input type="text" size="10" name="setip'+acctypes[i]+'" value="'+curripaccess[i][j]+'" onblur="parent.ipstringeval();" />'); |
choicewrite('<div><input type="text" size="10" name="setip'+acctypes[i]+'" value="'+curripaccess[i][j]+'" onblur="parent.ipstringeval();" />'); |
if (num > 0) { |
choicewrite('<a href="#" onclick="parent.removeIpRule(\''+acctypes[i]+'\',\''+j+'\')">Remove</a>'); |
choicewrite('<a href="#" onclick="parent.removeIpRule(\''+acctypes[i]+'\',\''+j+'\')">Remove</a>'); |
|
} |
|
choicewrite('</div>'); |
choicewrite('</div>'); |
num ++; |
num ++; |
} |
} |
choicewrite('</div><button onclick="parent.addIpRule(\''+acctypes[i]+'\');">Add more</button>'); |
choicewrite('</div><button onclick="parent.addIpRule(\''+acctypes[i]+'\');">Add item</button>'); |
} |
} |
choicewrite('</div></td></tr></table>'); |
choicewrite('</div></td></tr></table>'); |
} |
} |