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
* 'Resource' 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('resources','qb_title_type_W');
$quickbox_type= _t('resources','qb_title_type_P');
$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= $result[$i]['linkres_text'];
$qbx_liste.= "<li><a href=\"". $qbx_link. "\" class=\"out\" title=\"". _t('divers','date_crea'). ": ". $result[$i]['linkres_date_crea_display']. " \">". $qbx_res_title . "</a></li>\n";
$qbx_h1= $nb. _t('resources','qb_titleadd'). $quickbox_type;
$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_liste.= "<li><a href=\"#\" title=\"". _t('divers','date_crea'). ": ". $result[$i]['bibliores_date_crea_display']. " \">". $qbx_res_title . "</a></li>\n";
$qbx_h1= $nb. _t('resources','qb_titleadd'). $quickbox_type;
$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= $result[$i]['multires_media_uri'];
$qbx_liste.= "<li><a href=\"". $qbx_link. "\" class=\"out\" title=\"". _t('divers','date_crea'). ": ". $result[$i]['multires_date_crea_display']. " \">". $qbx_res_title . "</a></li>\n";
$qbx_h1= $nb. _t('resources','qb_titleadd'). $quickbox_type;
$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= $result[$i]['linkres_text'];
$qbx_liste.= "<li><a href=\"". $qbx_link. "\" class=\"out\" title=\"". _t('divers','last_modify'). " ". $result[$i]['linkres_last_modify_display']. " - (". _t('divers','date_crea'). ": ". $result[$i]['linkres_date_crea_display']. ") \">". $qbx_res_title . "</a></li>\n";
$qbx_h1= $nb. ''. _t('resources','qb_titlemod'). $quickbox_type;
$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= $result[$i]['multires_media_uri'];
$qbx_liste.= "<li><a href=\"". $qbx_link. "\" class=\"out\" title=\"". _t('divers','last_modify'). " ". $result[$i]['multires_last_modify_display']. " - (". _t('divers','date_crea'). ": ". $result[$i]['multires_date_crea_display']. ") \">". $qbx_res_title . "</a></li>\n";
$qbx_h1= $nb. _t('resources','qb_titlemod'). $quickbox_type;
$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_liste.= "<li><a href=\"#\" title=\"". _t('divers','last_modify'). " ". $result[$i]['bibliores_last_modify_display']. " - (". _t('divers','date_crea'). ": ". $result[$i]['bibliores_date_crea_display']. ") \">". $qbx_res_title . "</a></li>\n";
$qbx_h1= $nb. _t('resources','qb_titlemod'). $quickbox_type;
$req_quickbox= GetAddedLink($parent, $type, 'MODIFY', 10, 'N');
$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= $result[$i]['linkres_text'];
$qbx_liste.= "<li><a href=\"". $qbx_link. "\" class=\"out\" title=\"". _t('divers','date_sup'). " ". $result[$i]['linkres_last_modify_display']. " - (". _t('divers','date_crea'). ": ". $result[$i]['linkres_date_crea_display']. ") \">". $qbx_res_title . "</a></li>\n";
$qbx_h1= $nb. _t('resources','qb_titlesup'). $quickbox_type;
$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_liste.= "<li><a href=\"#\" title=\"". _t('divers','date_sup'). " ". $result[$i]['multires_last_modify_display']. " - (". _t('divers','date_crea'). ": ". $result[$i]['multires_date_crea_display']. ") \">". $qbx_res_title . "</a></li>\n";
$qbx_h1= $nb. _t('resources','qb_titlesup'). $quickbox_type;
$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_liste.= "<li><a href=\"#\" title=\"". _t('divers','date_sup'). " ". $result[$i]['bibliores_last_modify_display']. " - (". _t('divers','date_crea'). ": ". $result[$i]['bibliores_date_crea_display']. ") \">". $qbx_res_title . "</a></li>\n";
$qbx_h1= $nb. _t('resources','qb_titlesup'). $quickbox_type;
echo QuickBoxNow($qbx_module, $qbx_h1, $qbx_liste, $suffix_css);
|