function catv_TariffShowAll() { $alltariffs = catv_TariffGetAll(); $titles = array('ID', 'Tariff name', 'Fee', 'Channels'); $keys = array('id', 'name', 'price', 'chans'); $module = 'catv'; $result = web_GridEditor($titles, $keys, $alltariffs, $module, true, true, 'tariff'); show_window(__('Available tariffs'), $result); }
/** * Return displayable list of available CF types with some controls * * @return string */ function cf_TypesShow() { //construct editor $titles = array('ID', 'Field type', 'Field name'); $keys = array('id', 'type', 'name'); $alldata = cf_TypeGetAll(); $module = 'cftypes'; //show it $result = web_GridEditor($titles, $keys, $alldata, $module, true, true); return $result; }
/** * Renders contrahents list with required controls * * @return string */ function zb_ContrAhentShow() { $allcontr = zb_ContrAhentGetAllData(); // construct needed editor $titles = array('ID', 'Bank account', 'Bank name', 'Bank code', 'EDRPOU', 'IPN', 'License number', 'Juridical address', 'Phisical address', 'Phone', 'Contrahent name'); $keys = array('id', 'bankacc', 'bankname', 'bankcode', 'edrpo', 'ipn', 'licensenum', 'juraddr', 'phisaddr', 'phone', 'contrname'); $result = web_GridEditor($titles, $keys, $allcontr, 'contrahens', true, true); return $result; }