/** * Set of clients */ function ClientSet () { //this.clients = clients; } ClientSet.overviewHtmlFieldId = ""; ClientSet.clients = []; ClientSet.readAllClientsFromDb = function(htmlFieldId) { ClientSet.overviewHtmlFieldId = htmlFieldId; doAjax("POST","php/clients.php?command=getallclients",null,ClientSet.fillclientset,"Kommunikationsfehler"); } /** * Return the array of all clients that have been read from the database, take care not * to return the placeholder for a new instance! * * @returns {Array} */ ClientSet.getAllReadClients = function() { var existingClients = []; ClientSet.clients.forEach(function(entry) { if (entry.id != "new") { existingClients[existingClients.length] = entry; } }); return existingClients; } /** * Use the given client parameter information to fill up the web ui * @param clients */ ClientSet.fillclientset = function(clients) { ClientSet.clients = []; for (var i=0;iNameInternetadresseFernzugangscodeBasic Authentication BenutzerBasic Authentication PasswortBemerkungAktionen"; }; /** * Get the full clients parameters table of all clients * * @returns {String} the html string */ ClientSet.getTableOfAllClients = function() { var txt = "
" + this.getHeader(); var i=0; for (i=0;i