$z = 0; foreach ($info['line'] as $data) { $line = $data['line']; $displayname[$z]['displayname'] = isset($specific_settings['displayname_' . $line]) ? $specific_settings['displayname_' . $line] : '{$displayname.line.' . $line . '}'; $displayname[$z]['line'] = $line; $z++; } $endpoint->prepare_message_box(); $endpoint->tpl->assign("display_name", $displayname); echo $endpoint->tpl->draw('specifics_pop'); } if ($_REQUEST['pop_type'] == 'edit_template') { if (empty($_REQUEST['edit_id'])) { $message = _("No Device Selected to Edit!") . "!"; if (isset($message)) { $endpoint->display_message_box($message, $endpoint->tpl, 0); } if (isset($error_message)) { $endpoint->display_message_box($error_message, $endpoint->tpl, 1); } } else { $template_editor = TRUE; $sql = "UPDATE endpointman_mac_list SET model = '" . $_REQUEST['model_list'] . "' WHERE id =" . $_REQUEST['edit_id']; $endpoint->db->query($sql); $endpoint->tpl->assign("silent_mode", 1); if ($_REQUEST['template_list'] == 0) { $endpoint->edit_template_display($_REQUEST['edit_id'], 1); } else { $endpoint->edit_template_display($_REQUEST['template_list'], 0); } }