Esempio n. 1
0
            echo "<tr>\n           \t\t\t<td>" . $row["Flabel"] . "</td>\n           \t\t\t<td>&nbsp;<a href=\"" . $row["Furl"] . "\" target=\"_blank\">" . $row["Ftitre"] . "</a></td>\n                    <td width=\"15\"><a href=\"index.php?m=5&act=del&idurl=" . $row["Fid"] . "\"><button type=\"button\" class=\"btn bg-red sm\"><i class=\"fa fa-trash-o\"></i></button></a></td></tr>";
        }
    }
    ?>
</tbody></table></div></div>

<?php 
}
?>
</div><div class="col-md-6">

<div class="box box-success"> <div class="box-header"><h3 class="box-title">Selection de liens utiles</h3></header>
<div class="box-body">
<table class="table"> 
			<thead><tr> <th>Theme</th><th>Titre du lien</th></tr></thead><tbody>
<?php 
$result = getBookmark(0);
// 0 = valeur pour les liens du cyber
if ($result != FALSE) {
    $nb = mysqli_num_rows($result);
    for ($i = 1; $i <= $nb; $i++) {
        $row = mysqli_fetch_array($result);
        echo "<tr><td>" . $row["Flabel"] . "</td><td>&nbsp;<a href=\"" . $row["Furl"] . "\" target=\"_blank\">" . $row["Ftitre"] . "</a></td></tr>";
    }
}
?>
</tbody></table></div></div>

</div><!-- /col -->
</div><!-- /row -->
Esempio n. 2
0
 function _editBookmark($post)
 {
     $retval = true;
     require_once './include/spCategory.inc.php';
     require_once './include/spBookmark.inc.php';
     if ($post) {
         $this->_ajaxResult = editBookmark($this->_db, $this->_action);
     } else {
         listCategories($this->_db);
         if ($this->_action !== ACT_BMARK_ADD) {
             getBookmark($this->_db, $GLOBALS[ARG_BMARK_ID]);
         }
         $this->_theme->render('dlgBmEdit.tpl');
     }
 }