Source for file quickbox.php
Documentation is available at quickbox.php
* @package linea21.modules
* @subpackage publication
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
//////////// Check Droits utilisateur ////////////
$qbx_module = _t('menu','publication');
$result = $sql_object->DBSelect($req_quickbox_add);
$qbx_liste .= "<li>" . _t('divers','nodata') . "</li>";
if (count($result) >= 10) $nb = 10;
else $nb = count($result);
for($i = 0; $i < count($result); $i++ ) {
$qbx_publi_title = cutText($result[$i]['publi_title'], 50);
$qbx_publi_title = formatText($qbx_publi_title, '2HTML');
$qbx_liste .= "<li><a href=\"index.php?id=" . $result[$i]['publi_id'] . "&rub=" . $rub . "&todo=det\" title=\"" . _t('divers','date_crea') . ": " . $result[$i]['publi_date_crea_display'] . " \">" . $qbx_publi_title . "</a></li>\n";
$qbx_h1 = $nb . _t('publication','qb_titleadd');
if ($todo == 'mod' || $todo == 'det') {
$result = $sql_object->DBSelect($req_quickbox_mod);
$qbx_liste .= "<li>" . _t('divers','nodata') . "</li>";
if (count($result) >= 10) $nb = 10;
else $nb = count($result);
for($i = 0; $i < count($result); $i++ ) {
$qbx_publi_title = cutText($result[$i]['publi_title'], 50);
$qbx_publi_title = formatText($qbx_publi_title, '2HTML');
$qbx_liste .= "<li><a href=\"index.php?id=" . $result[$i]['publi_id'] . "&rub=" . $rub . "&todo=det\" title=\"" . _t('divers','last_modify') . " " . $result[$i]['publi_last_modify_display'] . " - (" . _t('divers','date_crea') . ": " . $result[$i]['publi_date_crea_display'] . ") \">" . $qbx_publi_title . "</a></li>\n";
$qbx_h1 = $nb . _t('publication','qb_titlemod');
$result = $sql_object->DBSelect($req_quickbox_sup);
$qbx_liste .= "<li>" . _t('divers','nodata') . "</li>";
if (count($result) >= 10) $nb = 10;
else $nb = count($result);
for($i = 0; $i < count($result); $i++ ) {
$qbx_publi_title = cutText($result[$i]['publi_title'], 50);
$qbx_publi_title = formatText($qbx_publi_title, '2HTML');
$qbx_liste .= "<li><a href=\"#\" title=\"" . _t('divers','date_sup') . " " . $result[$i]['publi_last_modify_display'] . " - (" . _t('divers','date_crea') . ": " . $result[$i]['publi_date_crea_display'] . ") \">" . $qbx_publi_title . "</a></li>\n";
$qbx_h1 = $nb . _t('publication','qb_titlesup');
$result = $sql_object->DBSelect($req_quickbox_list);
$qbx_liste .= "<li>" . _t('divers','nodata') . "</li>";
if (count($result) >= 10) $nb = 10;
else $nb = count($result);
for($i = 0; $i < count($result); $i++ ) {
$qbx_publi_title = cutText($result[$i]['publi_title'], 50);
$qbx_publi_title = formatText($qbx_publi_title, '2HTML');
$qbx_liste .= "<li><a href=\"index.php?id=" . $result[$i]['publi_id'] . "&rub=" . $rub . "&todo=det\" title=\"" . _t('divers','date_publi') . " " . $result[$i]['publi_published_date_display'] . " - (" . _t('divers','date_crea') . ": " . $result[$i]['publi_date_crea_display'] . ") \">" . $qbx_publi_title . "</a></li>\n";
$qbx_h1 = $nb . _t('publication','qb_titlepubli');
|