* @version $id SVN
* @access public
* @license http://opensource.org/licenses/gpl-3.0.html
*/
//////////// Check Inclusion de pages ////////////
if (!function_exists('AuthenthificationProcess')) {
include_once("../lib/lib_common.php");
ReloadIndex('admin');
}
////////////
//////////// Check Droits utilisateur ////////////
if (!HaveRight('news')) ReloadIndex('admin');
////////////
$qbx_module=$GLOBALS['lang']['menu']['news'];
if ($todo == 'add') {
$result=$sql_object->DBSelect($req_quickbox_add);
$qbx_liste='';
$nb='';
if($result==0) {
$qbx_liste.="
".$GLOBALS['lang']['divers']['nodata']."";
} else {
if(count($result)>=10) $nb=10; else $nb=count($result);
for($i=0; $i". $qbx_news_title ."\n";
}
}
$qbx_h1=$nb.$GLOBALS['lang']['news']['qb_titleadd'];
}
if ($todo == 'mod' || $todo == 'det') {
$result=$sql_object->DBSelect($req_quickbox_mod);
$qbx_liste='';
$nb='';
if($result==0) {
$qbx_liste.="".$GLOBALS['lang']['divers']['nodata']."";
} else {
if(count($result)>=10) $nb=10; else $nb=count($result);
for($i=0; $i". $qbx_news_title ."\n";
}
}
$qbx_h1=$nb.$GLOBALS['lang']['news']['qb_titlemod'];
}
if ($todo == 'sup') {
$result=$sql_object->DBSelect($req_quickbox_sup);
$qbx_liste='';
$nb='';
if($result==0) {
$qbx_liste.="".$GLOBALS['lang']['divers']['nodata']."";
} else {
if(count($result)>=10) $nb=10; else $nb=count($result);
for($i=0; $i". $qbx_news_title ."\n";
}
}
$qbx_h1=$nb.$GLOBALS['lang']['news']['qb_titlesup'];
}
if ($todo == 'list') {
$result=$sql_object->DBSelect($req_quickbox_list);
$qbx_liste='';
$nb='';
if($result==0) {
$qbx_liste.="".$GLOBALS['lang']['divers']['nodata']."";
} else {
if(count($result)>=10) $nb=10; else $nb=count($result);
for($i=0; $i". $qbx_news_title ."\n";
}
}
$qbx_h1=$nb.$GLOBALS['lang']['news']['qb_titlepubli'];
}
echo QuickBoxNow($qbx_module, $qbx_h1, $qbx_liste);
echo "\n";
?>