Source for file quickbox.php
Documentation is available at quickbox.php
* @package linea21.modules
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
* 'Content' module is used by 'Publication' and 'Workshop' modules
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
//////////// Check Droits utilisateur ////////////
$qbx_module= _t('menu',$mod_inc);
$quickbox_type= _t('contents','qb_title_type_W');
$quickbox_type= _t('contents','qb_title_type_P');
if ($todo == 'add' || $todo== 'det') {
$result= $sql_object->DBSelect($req_quickbox);
$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_link= '?rub=contents&todo=det&type='. $type. '&parent='. $parent. '&id=';
$qbx_part_title= $result[$i]['publicon_title'];
$qbx_part_date= $result[$i]['publicon_date_crea_display'];
$qbx_link.= $result[$i]['publicon_id'];
$qbx_part_title= $result[$i]['workrepcon_title'];
$qbx_part_date= $result[$i]['workrepcon_date_crea_display'];
$qbx_link.= $result[$i]['workrepcon_id'];
$qbx_liste.= "<li><a href=\"". $qbx_link. "\" title=\"". _t('divers','date_crea'). ": ". $qbx_part_date. " \">". $qbx_part_title . "</a></li>\n";
$qbx_h1= $nb. _t('contents','qb_titleadd');
$result= $sql_object->DBSelect($req_quickbox);
$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_link= '?rub=contents&todo=det&type='. $type. '&parent='. $parent. '&id=';
$qbx_part_title= $result[$i]['publicon_title'];
$qbx_part_date_crea= $result[$i]['publicon_date_crea_display'];
$qbx_part_last_modify= $result[$i]['publicon_last_modify_display'];
$qbx_link.= $result[$i]['publicon_id'];
$qbx_part_title= $result[$i]['workrepcon_title'];
$qbx_part_date_crea= $result[$i]['workrepcon_date_crea_display'];
$qbx_part_last_modify= $result[$i]['workrepcon_last_modify_display'];
$qbx_link.= $result[$i]['workrepcon_id'];
$qbx_liste.= "<li><a href=\"". $qbx_link. "\" title=\"". _t('divers','last_modify'). " ". $qbx_part_last_modify. " - (". _t('divers','date_crea'). ": ". $qbx_part_date_crea. ") \">". $qbx_part_title . "</a></li>\n";
$qbx_h1= $nb. _t('contents','qb_titlemod');
$result= $sql_object->DBSelect($req_quickbox);
$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_part_title= $result[$i]['publicon_title'];
$qbx_part_date_crea= $result[$i]['publicon_date_crea_display'];
$qbx_part_last_modify= $result[$i]['publicon_last_modify_display'];
$qbx_part_title= $result[$i]['workrepcon_title'];
$qbx_part_date_crea= $result[$i]['workrepcon_date_crea_display'];
$qbx_part_last_modify= $result[$i]['workrepcon_last_modify_display'];
$qbx_liste.= "<li><a href=\"#\" title=\"". _t('divers','date_sup'). " ". $qbx_part_last_modify. " - (". _t('divers','date_crea'). ": ". $qbx_part_date_crea. ") \">". $qbx_part_title . "</a></li>\n";
$qbx_h1= $nb. _t('contents','qb_titlesup');
echo QuickBoxNow($qbx_module, $qbx_h1, $qbx_liste, $suffix_css);
|