Fixed: FS#648 - DNS Template editing
| | |
| | | |
| | | |
| | | // Load the templates |
| | | $records = $app->db->queryAllRecords("SELECT * FROM dns_template WHERE visible = 'y'"); |
| | | $records = $app->db->queryAllRecords("SELECT * FROM dns_template WHERE visible = 'Y'");
|
| | | $template_id_option = ''; |
| | | foreach($records as $rec){ |
| | | $checked = ($rec['template_id'] == $template_id)?' SELECTED':''; |
| | |
| | | 'visible' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | 'default' => 'Y',
|
| | | 'value' => array(0 => 'N',1 => 'Y')
|
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | |
| | | 'prefix' => "", |
| | | 'suffix' => "", |
| | | 'width' => "", |
| | | 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); |
| | | 'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));
|
| | | |
| | | |
| | | $liste["item"][] = array( 'field' => "name", |