echo $layout->subtitle(txt('ftp_all'), ICONS . 'server/ftp.png'); echo $layout->txtdesc(txt('dsc_ftp_list_all')); $ftp = new phpos_ftp(); $ftp_ids = $ftp->get_all(); $c = count($ftp_ids); if ($c != 0) { echo $layout->tbl_start(); $layout->td_classes(array('', '', 'tbl_grey')); echo $layout->head(array('<img src="' . ICONS . 'server/ftp.png" />' => '20%', txt('ftp_account') => '40%', txt('ftp_user') => '40%')); for ($i = 0; $i < $c; $i++) { $f = new phpos_ftp(); $f->set_id($ftp_ids[$i]['id']); $f->get_ftp(); //$usr_count = $f->count_users(); $u = new phpos_users(); $u->set_id_user($f->get_id_user()); $u->get_user_by_id(); echo $layout->row(array('<img src="' . ICONS . 'server/ftp.png" style="height:20px"/>', '<a href="javascript:void(0);" onclick="' . helper_reload(array('section' => 'edit_account', 'ftp_id' => $f->get_id())) . '">' . $f->get_title() . '</a>', $u->get_user_login()), $f->get_desc()); } echo $layout->tbl_end(); } else { echo $layout->empty_list(); } echo $layout->end('column'); } echo $layout->column('33%'); echo $layout->subtitle(txt('ftp_public'), ICONS . 'server/ftp.png'); if (is_root() || is_admin()) { echo $layout->txtdesc(txt('dsc_ftp_list_public')); } else { echo $layout->txtdesc(txt('dsc_ftp_list_public_user'));