show_records($record->domain); break; case 'delete_record': if (!array_key_exists('id', $_POST)) { die('Missing id'); } $record = \DNS\Record::from_id($_POST['id']); $record->delete(); show_add_record($record->domain); show_records($record->domain); break; default: die('Unknown action'); break; } } else { switch ($_GET['action']) { case 'edit': if (!array_key_exists('id', $_GET)) { die('Missing id'); } $domain = new Domain($_GET['id']); show_add_record($domain); show_records($domain); break; } } ?> </body> </html>
//////// //TODO// //////// //if(function_exists('show_validations_checks')) { echo show_validations_checks(); } //if(function_exists('show_design_table')) { echo show_design_table(); } //if(function_exists('show_maint_table')) { echo show_maint_table(); } //if(function_exists('show_tools_table')) { echo show_tools_table(); } //////// //TODO// //////// ?> </div><?php ?> <div style="margin-top:-10px;float:left;"><?php if (function_exists('show_add_record')) { echo show_add_record(); } ?> </div><?php ?> <div id="recordList" style="clear:both;width:100%;"> </div><?php } # # force restart from the last visited page # if (isset($_SESSION[EDIT_TABLE_NAME . '_paginate']['thispage'])) { $limits = $_SESSION[EDIT_TABLE_NAME . '_paginate']['thispage']; } //var_dump($_SESSION[EDIT_TABLE_NAME.'_paginate']);echo '<hr>'; //echo 'limits['.$limits.']<br>'; ?>