NCAT NCAT ATTRA ATTRA
Inicio > Publicaciones de ATTRA en Español

Publicaciones en Español

 

Las siguientes publicaciones están disponibles en español. Contemplamos traducir más de nuestras publicaciones al español, dependiendo de los pedidos que recibimos.

Para ver e imprimir archivos de formato de documento portátil de Adobe (PDF) se requiere descargar e instalar el software gratuito Adobe® Reader®.

\n"; echo "

".$aTopic['name']."

\n"; echo "
\n"; */ ## SELECT ALL CATEGORIES WITHIN THIS TOPIC $catQuery = "SELECT * FROM genny_categories WHERE topic_id='".$thistopic."' ORDER BY name ASC"; $RUNcatQuery = mysql_query($catQuery) or die('query failed: '.mysql_error()); while($aCat = mysql_fetch_array($RUNcatQuery)){ ## THE CATEGORY QUERY ## IT USES "LIKE" IN ORDER TO MATCH A CATEGORY WITHIN THE COMMA ## SEPERATED LIST OF CATEGORIES EACH PUB BELONGS TO ## THE % SIGNS SIMPLY MEAN THERE CAN BE TEXT SURROUNDING $query = "SELECT * FROM genny_pubs WHERE catid LIKE '%,".$aCat['id'].",%' ORDER BY title ASC"; $RUNquery = mysql_query($query) or die('query failed: '.mysql_error()); echo "

 

\n

⇒ ".$aCat['name']."

\n
"; echo "\n"; while($apub = mysql_fetch_array($RUNquery)){ ## USE THIS TO DEBUG THE RESULTS #echo "\n\n \n\n"; ## DO NOT SHOW IF THE PUB IS DISABLED if($apub['disabled'] == 0){ ## Grab the general PDF price for this item if it exists ## This ensures we start with blank results if(isset($thispubprice)){ unset($thispubprice); unset($thispubpriceArr); } if($apub['dltype'] == 1 && getDownloadPrice($apub['dlitemid'])){ $thispubpriceArr = getDownloadPrice($apub['dlitemid']); $thispubprice = $thispubpriceArr['price']; } #unset($thissize); ## CHECK TO MAKE SURE IT IS NOT A VIDEO OR AUDIO pub echo "\n"; ## make a new row for the small text #echo "\n"; } echo "\n"; } echo "
\n"; echo ""; echo $apub['title']; echo ""; if(!empty($apub['pubIP'])){ echo " - ".$apub['pubIP']."\n"; } echo "

"; if(!empty($thispubprice)){ //echo " (".$apub['dltype']." | PDF Price: $".$thispubprice.")"; echo " PDF Price: $".$thispubprice." for non-members"; } elseif($aCat['name'] == 'Grazing Calculators'){ echo " Excel Price: FREE"; } elseif($apub['dltype'] == 2){ //echo " (".$apub['dltype']." PDF Price: FREE)"; echo " PDF Price: FREE"; } if($apub['kindleforsale'] == 1){ echo "
\nKindle Price: $".$apub['kindle_price']; } //echo $apub['title']; echo "

"; echo "
\n"; ## $apub['notonline'] == 1 means this pub is NOT online, 0 would mean the pub is available ## $apub['pubtype'] is the publication type, 1 = Standard Pub, 2 = VIDEO, 3 = AUDIO, 4 = off site, 5 = Database publication if($apub['pubtype'] == 1 && $apub['notonline'] == 1){ ## since the pub is not online, we use the summary for the right hand text in the list ## we also check the multi-line bit in the database to see if we want ## this blurb to be on a line directly below (IE a long blurb in the list) if(!empty($apub['summary']) && $apub['dline'] == 0){ echo " ".$apub['summary']."\n"; }elseif(!empty($apub['summary']) && $apub['dline'] == 1){ ## close the upper row in the table #echo "
\n"; echo " ".$apub['summary']."\n"; } ## The next section is if the pub IS available online AND it is a regular publication }elseif($apub['pubtype'] == 1 && $apub['notonline'] == 0){ ## normal pub summary link echo " • "; if(!empty($apub['summary'])){ echo 'Summary'; } # , CHECK FOR USER LOGIN, CHECK IF PDF IS AVAILABLE # $apub['dlforsale']: # 0 = not available for download at all # 1 = download is for sale # 2 = free download # 3 = members only ############################################### # $dlgMembershipGroups is set in the genny config # This is an array of groups that get download publication access when logged in # Any other groups still pay if($aCat['name'] == 'Grazing Calculators'){ echo " • "; echo "Download Spreadsheet"; echo "\n"; }elseif(!empty($apub['pdffile']) && ((gennychkdlglogin() && $apub['dltype'] != 0 && isset($_SESSION) && in_array($_SESSION['group'],$dlgMembershipGroups)) || ($apub['dltype'] == 2))){ echo " • "; echo "Download PDF"; #$thissize = filesize($pdfpath.$apub['pdffile']); #echo formatbytes($thissize); echo "\n"; } elseif((!gennychkdlglogin() && $apub['dltype'] == 1 && !empty($apub['dlitemid'])) || (gennychkdlglogin() && $apub['dltype'] == 1 && !empty($apub['dlitemid']) && isset($_SESSION) && !in_array($_SESSION['group'],$dlgMembershipGroups))){ echo " • "; if($_SERVER['SERVER_NAME'] == 'attradev.ncat.org'){ echo "Buy PDF\n"; }else{ echo "Buy PDF\n"; } } if($apub['kindleforsale'] == 1){ echo " • "; echo "Buy Kindle"; } if($apub['hcforsale'] == 1 && !empty($apub['hcitemid'])){ echo " • "; if(gennychkdlglogin() && !empty($apub['hcitemidsub'])){ if($_SERVER['SERVER_NAME'] == 'attradev.ncat.org'){ echo "Buy Print Copy\n"; }else{ echo ""; # Create an array of thumbdrive pubs so the text matches properly in the pubs list $thumbdriveArr = array('IP474'); if(in_array($apub['pubIP'],$thumbdriveArr)){ echo "Buy Thumb Drive"; }else{ echo "Buy Print Copy"; } echo "\n"; } }else{ if($_SERVER['SERVER_NAME'] == 'attradev.ncat.org'){ echo "Buy Print Copy\n"; }else{ echo ""; # Create an array of thumbdrive pubs so the text matches properly in the pubs list $thumbdriveArr = array('IP474'); if(in_array($apub['pubIP'],$thumbdriveArr)){ echo "Buy Thumb Drive"; }else{ echo "Buy Print Copy"; } echo "\n"; } } } ## normal pub link to the HTML publication if((!empty($apub['htmlfile']) && gennychkdlglogin()) || (!empty($apub['htmlfile']) && $apub['dltype'] == 2)){ echo " • "; echo "View Now"; } #echo " |"; ## GENERATES A LINK TO THE VIDEO PAGE }elseif($apub['pubtype'] == 2){ echo " • VIDEO "; ## GENERATES A LINK TO THE AUDIO PAGE }elseif($apub['pubtype'] == 3){ echo " • AUDIO "; }elseif($apub['pubtype'] == 4){ echo " • HTML "; }elseif($apub['pubtype'] == 5){ if(!empty($apub['summary'])){ echo ' • Summary'; } echo " • HTML "; } echo "
\n"; } } unset($thistopic); } ?>

 

 

Regresar al comienzo

Última Actualización: 14.09.2017