Пример #1
0
?>
 (Scoped ID)</td>
								<td><?php 
echo lang("FIRSTNAME");
?>
</td>
								<td><?php 
echo lang("LASTNAME");
?>
</td>
								<td></td>
							</tr>
						</thead>
						<tbody id="fbAccounts">
							<?php 
if ($fbaccount->getAll()) {
    foreach ($fbaccount->getAll() as $fba) {
        echo "<tr>";
        echo "<td>" . $fba->getFbId() . "</td>\r\n\t\t\t\t\t\t\t\t\t\t\t<td>" . $fba->getFirstname() . "</td>\r\n\t\t\t\t\t\t\t\t\t\t\t<td>" . $fba->getLastname() . "</td>\r\n\t\t\t\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<a href='settings.php?action=deletefbaccount&id=" . $fba->getFbId() . "' title='" . lang('DELETE') . "' class='btn btn-danger'>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<span class='glyphicon glyphicon-trash'></span> " . lang('DELETE') . "\r\n\t\t\t\t\t\t\t\t\t\t\t\t</a>";
        if ($fba->getFbId() == $fbaccount->UserDefaultFbAccount()) {
            echo "<span class='btn btn-default'>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class='glyphicon glyphicon-ok'></span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" . lang('DEFAULT') . "</span>";
        }
        echo "</td></tr>";
    }
} else {
    echo "<tr><td colspan='4' class='nodata'>" . lang('NO_FB_ACCOUNT_AVAILABLE') . "</td></tr>";
}
?>
						</tbody>
					</table>