Example #1
0
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 */
use EDTB\Bookmarks\PoiBm;
if (isset($_GET["do"])) {
    /** @require functions */
    require_once $_SERVER["DOCUMENT_ROOT"] . "/source/functions.php";
    /** @require PoiBm class */
    require_once "PoiBm.php";
    $data = json_decode($_REQUEST["input"]);
    $AddBm = new PoiBm();
    $AddBm->add_bm($data);
    exit;
}
?>
<div class="input" id="addBm">
    <form method="post" id="bm_form" action="/">
        <div class="input-inner">
            <div class="suggestions" id="suggestions_3" style="margin-top:79px;margin-left:14px"></div>
            <table>
                <tr>
                    <td class="heading" colspan="2">Add/edit bookmark
                        <span class="right">
                            <a href="javascript:void(0)" onclick="tofront('addBm')" title="Close form">
                                <img src="/style/img/close.png" class="icon" alt="X" />
                            </a>
                        </span>