ajax.php
author Andreas Boehler <andreas@aboehler.at>
Fri, 12 Sep 2014 07:01:55 +0200
changeset 0 11a7dcc4af7a
permissions -rw-r--r--
Initial import of datapopup
<?php
global $auth;

require_once 'action.php';
$plugin = new action_plugin_datapopup;
$fields = explode(',',$plugin->getConf('fields'));
$fields = array_map('trim',$fields);
$fields = array_filter($fields);

echo '<ul>';
foreach($fields as $name){
    $val = $plugin->getFields($_POST['link'], $name);
    if($val != "")
    {
        echo '<li class="dataov_name">';
        echo '<div class="li">';
        echo hsc($name);
        echo '</div></li>';
        echo '<li class="dataov_'.hsc($name).'">';
        echo '<div class="li">';
        echo hsc($val);
        echo '</div></li>';
    }
}
echo '</ul>';