Removed server selector from FTP- and Shell-User forms, as the server is always identical with the server ID of the selected website.
| | |
| | | parent::onShowNew(); |
| | | } |
| | | |
| | | function onSubmit() { |
| | | global $app, $conf; |
| | | |
| | | // Get the record of the parent domain |
| | | $parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".intval(@$this->dataRecord["parent_domain_id"])); |
| | | |
| | | // Set a few fixed values |
| | | $this->dataRecord["server_id"] = $parent_domain["server_id"]; |
| | | |
| | | parent::onSubmit(); |
| | | } |
| | | |
| | | function onAfterInsert() { |
| | | global $app, $conf; |
| | | |
| | |
| | | parent::onShowNew(); |
| | | } |
| | | |
| | | function onSubmit() { |
| | | global $app, $conf; |
| | | |
| | | // Get the record of the parent domain |
| | | $parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".intval(@$this->dataRecord["parent_domain_id"])); |
| | | |
| | | // Set a few fixed values |
| | | $this->dataRecord["server_id"] = $parent_domain["server_id"]; |
| | | |
| | | parent::onSubmit(); |
| | | } |
| | | |
| | | function onBeforeInsert() { |
| | | global $app, $conf; |
| | | |
| | |
| | | <table width="500" border="0" cellspacing="0" cellpadding="2"> |
| | | <tr> |
| | | <td class="frmText11">{tmpl_var name='server_id_txt'}:</td> |
| | | <td class="frmText11"> |
| | | <select name="server_id" class="text"> |
| | | {tmpl_var name='server_id'} |
| | | </select> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="frmText11">{tmpl_var name='parent_domain_id_txt'}:</td> |
| | | <td class="frmText11"> |
| | | <select name="parent_domain_id" class="text"> |
| | |
| | | <table width="500" border="0" cellspacing="0" cellpadding="2"> |
| | | <tr> |
| | | <td class="frmText11">{tmpl_var name='server_id_txt'}:</td> |
| | | <td class="frmText11"> |
| | | <select name="server_id" class="text"> |
| | | {tmpl_var name='server_id'} |
| | | </select> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="frmText11">{tmpl_var name='parent_domain_id_txt'}:</td> |
| | | <td class="frmText11"> |
| | | <select name="parent_domain_id" class="text"> |