if (isset($_GET['ajax_note'])) {
header("Pragma: no-cache");
header("Pragma : public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0, public");
header("Cache-Control: private",false);
}
//pour fil d'ariane
$pageref = 'detail';
include'tet_php.php';
$OAI_RO = SingletonConnectMSSql::getInstance("OAI-PMH",true);//sn,20111007
$dbh=$OAI_RO->getDbh();
$rec=new TInfoRecord();
$ean='9782953138061';
$rec->findByGencod($ean,$dbh);
if ($rec->Id=='') $rec->findByRFGencod($ean,$dbh);
$tous_diffuseurs = TInfoRecord::getAllDiffuseurs($MAG_ID);
$SearchDiffMag=array_search($rec->DiffuseurId,$tous_diffuseurs);
//if (($rec->Etat!=8192&&$rec->Etat!=32)|| !in_array($rec->DiffuseurId, $tous_diffuseurs)) header('location:/');
//de la page detail epagine, renvoi sur PDL si PDF
/*if ($MAG_ID==6&&defined('ONLY_EPUB')) {
$infos = $rec->getEpub();
if (!$infos && $rec->Etat == 8192) header("Location: http://placedeslibraires.epagine.fr".RewriteDetail($rec->Ean,$rec->Titre."-".$rec->Auteurs));
}*/
/* Requetes 5 livres par auteur */
$cache_recherheMb = TCustomCache::getInstance(60*60*60, 'rechecheMb', 'liv');
if ($cache_recherheMb->upToDate()) {
$MagsRechNoNumilog = $cache_recherheMb->getObject('rechecheMb');
}
if (!$MagsRechNoNumilog) {
$stmt='SELECT DISTINCT MAGASIN_ID FROM T_MAGASIN_DIFFUSEUR WHERE MAGASIN_ID NOT IN (SELECT DISTINCT MAGASIN_ID FROM T_MAGASIN_DIFFUSEUR WHERE DIFFUSEUR_ID=256)';
$sth = odbc_exec($OAI_RO->getDbh(),$stmt);
while ($row=odbc_fetch_object($sth)) {
$MagsRechNoNumilog[]=$row->MAGASIN_ID;
}
$cache_recherheMb->setObject('rechecheMb',$MagsRechNoNumilog);
}
/* password*/
$uid='EPAGINEXML';
$mdps='epag1664';
if ($MAG_ID==6) $storeId=6; //magasin ePagine
elseif (in_array($MAG_ID,$MagsRechNoNumilog)==true) $storeId=666; //magasin sans Numilog
else $storeId=66; //base complète
/* fin password*/
define('LIVRES_PAR_PAGES', 5);
$soap = new SoapClient('http://search.mediabasepro.com/services.php', array('trace'=>true, 'exceptions'=>true));
$auteur_soap=utf8_encode($rec->Auteurs);
$criteres['creator'] = $auteur_soap;
$hashrap= md5('advancedSearch'.$auteur_soap.$mdps);
try{
// $result = $soap->search(array('words'=>$auteur_soap,'page'=>1,'itemsPerPage'=>5,'index'=>0,'uid'=>$uid,'storeId'=>$storeId,'database'=>'books','hash'=>$hashrap));
$result = $soap->advancedSearch(array('search'=>$criteres,'index'=>0,'uid'=>$uid,'storeId'=>$storeId,'itemsPerPage'=>LIVRES_PAR_PAGES,'database'=>'books','hash'=>$hashrap, 'page'=> 1));
}
catch (SoapFault $fault) {
echo "erreur".$fault;
}
$lxml=simplexml_load_string($soap->__getLastResponse());
$lxml->registerXPathNamespace("dc","http://purl.org/dc/elements/1.1/");
$lxml->registerXPathNamespace("mbPro","http://www.mediabasepro.com/2010/services/");
$produits = $lxml->xpath("//mbPro:product");
$rec2=new TInfoRecord();
foreach ($produits as $prod) {
$prod->registerXPathNamespace("dc","http://purl.org/dc/elements/1.1/");
$prod->registerXPathNamespace("mbPro","http://www.mediabasepro.com/2010/services/");
$gencod=(string)reset($prod->xpath("dc:identifier"));
// $idl[]=$gencod;
$rec2->findByGencod($gencod,$dbh);
if (!$rec2->Id) $rec2->findByRfGencod($gencod,$dbh);
// echo $gencod.' '.$rec->Id.'
';
$Soapformats[$gencod]=$prod->xpath("mbPro:livrelInfo/mbPro:format");
$Soapprixf[$gencod]=$prod->xpath("mbPro:livrelInfo/mbPro:prix");
if (!$rec2->Id) continue;
// pas de vente sur iPad (Numilog + Editis)
// pas de vente pro sur numilog, immatériel
if (
($agent=="ipad" && ($rec2->DiffuseurId == 256 || $rec2->DiffuseurId == 262144))
|| $rec->Etat != 8192
|| (ACCES_PRO && ($rec2->DiffuseurId == 256 || $rec2->DiffuseurId == 4096 ))
) $EnVente=false;
else $EnVente=true;
$liste_livres[] = array(
'record_id' => $rec2->Id,
'ean' => $rec2->Ean,
'titre' => $rec2->Titre,
'auteur' => $rec2->Auteurs,
'editeur' => $rec2->Editeur,
'editeurId' => $rec2->EditeurId,
'langue' => $rec2->Langue,
'urlLangue' => $rec2->UrlLangue,
'image' => $rec2->getImage('v'),
'collection' => ucfirst(strtolower($rec2->Collection)),
'infos_prix' => $rec2->getPrixVente(),
'en_vente' => $EnVente,
'a_paraitre' => ($rec2->Etat == 32),
'existe_extrait' => (count($rec2->Extraits)),
'date' => $rec2->MiseEnLigne,
'Mimes' => $rec2->Mimes,
'prix_default' => $rec2->Prix,
'is_no_drm' => !$rec2->isDrmProtected(),
'url' => RewriteDetail($rec2->Ean, $rec2->Titre.'-'.$rec2->Auteurs),
'gencodSoap' => $gencod
);
}
/* De la page detail ePagine */
include'aliga_note.php';
if (isset($_GET['ajax_note'])) {
if (!isset($_GET['note'])) die();
if (!is_numeric($_GET['note'])) die();
if ($_GET['note'] < 0) die();
if ($_GET['note'] > 5) die();
if (!$Int_ID) die();
$res_notation = TNote::setNote($_GET['rec_id'], $_GET['note'] * 20, $Int_ID, $_SERVER['REMOTE_ADDR']);
if ($res_notation === null)
die('ALREADY');
if ($res_notation)
die('ok');
die();
}
$infos_notes = new TNote();
$notes_livre = $infos_notes->getNotesLivre($rec->Id);
$note_arrondie = round($notes_livre->NOTE_MOYENNE);
$nombre_notes = ($notes_livre->NOMBRE);
$deja_note = false;
if ($Int_ID) {
$ma_note = $infos_notes->getNote($rec->Id, $Int_ID);
if ($ma_note !== null) $deja_note = true;
}
//include"menu.php";
include'promotion.php';
$promo=new TGestionPromotion($MAG_ID);
$idp=$promo->Promotions[0]->Data['Id'];
$pro=new TPromotionRecord($idp,$rec->Id);
$extrait=$rec->UrlFeuilleteur;
//pas de vente sur iPad (Numilog + Editis)
if (
($agent=='ipad' && ($rec->DiffuseurID == 256 || $rec->DiffuseurID == 262144))
|| $rec->Etat != 8192
|| (ACCES_PRO && ($rec->DiffuseurId == 256 || $rec->DiffuseurId == 4096))
) $EnVente=false; else $EnVente=true;
//Pour BlocLibraire
$cip=new TCustomInfoplus();
$cipC = $cip->findByKeys(array('GENID'=>$rec->Id,'MAGASIN_ID'=>$MAG_ID));
$title = 'Mes 60 engagements pour la France / François Hollande - ePagine';
include'tet_html.php';
?>
|
iBooks - Gratuit Télécharger le livre |
Ce livre est au format iBooks. Lisible uniquement sur iPad.
C'est un livre au contenu enrichi, il contient de nombreuses vidéos.
Une bonne connexion internet est requise pour lancer le téléchargement, via un ordinateur PC ou Mac sous Firefox et Chrome ou Safari.
Besoin d'aide pour télécharger votre livre ? Suivez notre aide pas à pas
Je veux redresser la France
'; for ($i = 0; $i <= $n-1; $i++) { echo $tab_resume[$i].' '; } if ($i==$n) echo'[...]'; echo'Voir la suite'; echo ""; for ($i = $n; $i <= $count_resume; $i++) { echo $tab_resume[$i].' '; } echo'
'; } else { ?> } ?>sans DRM
} if($livre['existe_extrait']){?> } ?>Télécharger votre livre.Pour télécharger à partir d'un site web un livre enrichi au format iBooks, nous vous conseillons fortement de télécharger à partir de votre ordinateur.
1. A partir de votre ordinateur (PC/MAC), ouvrir iTunes.
2. Dans Fichier, sélectionner Ajouter à la bibliothèque votre fichier ibooks.
Le fichier est à présent dans votre bibliothèque de livre iTunes.
3. Connecter votre iPad.
Mise à jour ou téléchargement de l'application iBooks via App Store.
4. Synchronisez votre iPad à votre bibliothèque iTunes.
5. Votre livre est maintenant dans l'application iBooks sur votre iPad.
Nous vous souhaitons une bonne lecture
Texte);?>
'; for ($j = 0; $j <= $m-1; $j++) { echo $tab_resume_blog[$j].' '; } if ($j==$m) echo'[...]'; echo 'Voir la suite '; echo ''; for ($j = $m; $j <= $count_resume_blog; $j++) { echo $tab_resume_blog[$j]." "; } echo "
"; } else {?>}?>
Biographie;?>