$htm[] = "<div class='row'>";
$htm[] = "<input type=hidden id=ir_id>";
//name
$htm[] = "<div class='col-sm-6'>";
$htm[] = "<div class='form-group'><label>Name</label>";
$htm[] = "<input type='text' class='form-control' id='ir_name' placeholder='name'>";
$htm[] = "</div></div>";
//ip
$htm[] = "<div class='col-sm-3'>";
$htm[] = "<div class='form-group'><label>From</label>";
$htm[] = "<input type='text' class='form-control' id='ir_port_from' placeholder='port'>";
$htm[] = "</div></div>";
//port
$htm[] = "<div class='col-sm-3'>";
$htm[] = "<div class='form-group'><label>To</label>";
$htm[] = "<input type='text' class='form-control' id='ir_port_to' placeholder='port'>";
$htm[] = "</div></div>";
//comment
$htm[] = "<div class='col-sm-12'>";
$htm[] = "<div class='form-group'><label>Comment</label>";
$htm[] = "<input type='text' class='form-control' id='ir_comment' placeholder='Comment'>";
$htm[] = "</div></div>";
$htm[] = "</div>";
$foot = [];
$foot[] = "<a href=#btn class='btn btn-primary' id='btnSave'><i class='fa fa-save'></i> Save</a>";
$foot[] = "<a href=#btn class='btn btn-default pull-right' id='btnDelete'><i class='fa fa-trash'></i></a>";
$box->html($htm);
$box->footer($foot);
$box->loading(true);
$box->hide();
echo $box;