Ejemplo n.º 1
0
    } else {
        label_row(_("Host"), $_POST['host']);
        label_row(_("Database User"), $_POST['dbuser']);
        label_row(_("Database Name"), $_POST['dbname']);
        label_row(_("Table Pref"), $_POST['tbpref']);
    }
    yesno_list_row(_("Default"), 'def', null, "", "", false);
    if ($selected_id == -1) {
        coa_list_row(_("Database Script"), 'coa');
        text_row_ex(_("New script Admin Password"), 'admpassword', 20);
    }
    end_table(1);
    submit_center('save', _("Save"));
    end_form();
}
//---------------------------------------------------------------------------------------------
if (isset($_GET['c']) && $_GET['c'] == 'df') {
    handle_delete();
    $selected_id = -1;
}
if (get_post('save')) {
    if (handle_submit()) {
        $selected_id = -1;
    }
}
//---------------------------------------------------------------------------------------------
display_companies();
hyperlink_no_params($_SERVER['PHP_SELF'], _("Create a new company"));
display_company_edit($selected_id);
//---------------------------------------------------------------------------------------------
end_page();
Ejemplo n.º 2
0
<?php

$key = hi('keyword');
$companies = company()->loadQuery("ceo_name LIKE '%{$key}%' OR company_name LIKE '%{$key}%' OR title LIKE '%{$key}%'");
$count = count($companies);
?>
    <style>
        .companies {

        }
        .companies .company {
            margin:.4em 0;
            background-color:#efefef;
        }
    </style>

<?php 
if ($count == 0) {
    return;
}
display_companies($companies);