********************************** */ if (!defined('PHPOS')) { die; } if (!defined('PHPOS_SECTION_ACCESS')) { die; } echo helper_result('delete_ftp'); echo $layout->txtdesc(txt('dsc_ftp_title')); echo $layout->column('33%'); echo $layout->subtitle(txt('ftp_my'), ICONS . 'server/ftp.png'); echo $layout->txtdesc(txt('dsc_ftp_list_own')); $ftp = new phpos_ftp(); $ftp_ids = $ftp->get_only_my_ftp(); $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%', 'Host' => '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($group_ids[$i]['id_owner']); $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>', $f->get_host()), $f->get_desc()); }