ajax.php
changeset 1 347546fd9315
parent 0 11a7dcc4af7a
child 2 7e2f87288501
equal deleted inserted replaced
0:11a7dcc4af7a 1:347546fd9315
     1 <?php
       
     2 global $auth;
       
     3 
       
     4 require_once 'action.php';
       
     5 $plugin = new action_plugin_datapopup;
       
     6 $fields = explode(',',$plugin->getConf('fields'));
       
     7 $fields = array_map('trim',$fields);
       
     8 $fields = array_filter($fields);
       
     9 
       
    10 echo '<ul>';
       
    11 foreach($fields as $name){
       
    12     $val = $plugin->getFields($_POST['link'], $name);
       
    13     if($val != "")
       
    14     {
       
    15         echo '<li class="dataov_name">';
       
    16         echo '<div class="li">';
       
    17         echo hsc($name);
       
    18         echo '</div></li>';
       
    19         echo '<li class="dataov_'.hsc($name).'">';
       
    20         echo '<div class="li">';
       
    21         echo hsc($val);
       
    22         echo '</div></li>';
       
    23     }
       
    24 }
       
    25 echo '</ul>';
       
    26