Það er ekki til nein bók sem hefur í sér allan sannleika. Svo við opnuðum bókasafn. 1000 titlar af róttækum, heimspekilegum og pólitískum bókum, fullum af innblæstri fyrir fríþenkjandi einstaklinga. Frítt til útláns frá bókasafni Andspyrnu í Kaffi Hljómalind (Kaffi Hljómalind er staðsett að Laugavegi 23 og opið alla daga - við útlán biðjum við fólk að skrá bókaritil, eigið nafn og síma og tölvupóstfang í þartilgerða bók. Lánstími er einn mánuður). ";
$show_news_template="templates/biglist.html";
$date_format="d/m/Y";
$show_news="100";
if (($show_news!="all"))
{
if (isset($start) && !$prev)
{
$start_row=$start;
$start=$start+$show_news;
}
else if (!$start && !$prev)
{
$start=0;
$start_row=0;
}
if ($prev)
{
$start_row=$prev;
$start=$prev-$show_news;
}
if (!$end)
{
$end=$show_news;
}
$limit="Limit $start,$end";
}
if ($val) {
$sql="select * from andspyrna_baekur where n_showhide != 1 and n_subject = '$val'";
}
else
{
$sql="select * from andspyrna_baekur where n_showhide != 1";
}
$result=mysql_query($sql,$db);
$num_rows=mysql_num_rows($result);
$data = fread(fopen($show_news_template, "r"), filesize($show_news_template));
if ($val) {
$sql="select * from andspyrna_baekur where n_showhide != 1 and n_subject = '$val' order by n_title asc, n_id desc $limit";
}
else
{
$sql="select * from andspyrna_baekur where n_showhide != 1 order by n_title asc, n_id desc $limit";
}
$result=@mysql_query($sql,$db);
while ($myrow=mysql_fetch_array($result))
{
$n_id=$myrow["n_id"];
$n_date=date($date_format,$myrow["my_date"]);
$efni=$myrow["n_subject"];
$utgefandi=$myrow["n_publisher"];
$about=$myrow["n_about"];
$about_hold=explode("\n",$about);
$exerpt=$myrow["n_exerpt"];
$exerpt_hold=explode("\n",$exerpt);
$picture=$myrow["n_pic"];
$n_type=$myrow["n_type"];
$n_author=$myrow["n_author"];
$dagsetning=strftime("%e. %B %Y %a.", $myrow["my_date"]);;
$n_showhide=$myrow["n_showhide"];
$topic=$myrow["n_title"];
//---------------------------------------
for ($i=0;$i | ",$hold); $hold=str_replace("{exerpt}","“".$exerpt."” ",$hold); $hold=str_replace("{id}",$n_id,$hold); if ($n_author) { $hold=str_replace("{hofundur}","($n_author)",$hold); } else { $hold=str_replace("{hofundur}","",$hold); } if ($efni) { $hold=str_replace("{efni}","$efni",$hold); } else { $hold=str_replace("{efni}","",$hold); } if ($utgefandi) { $hold=str_replace("{utgefandi}","($utgefandi)",$hold); } else { $hold=str_replace("{utgefandi}","",$hold); } if ($topic) { $hold=str_replace("{topic}","$topic",$hold); } else { $hold=str_replace("{topic}","(vantar titil)",$hold); } if ($picture) { $hold=str_replace("{picture}","",$hold); } else { $hold=str_replace("{picture}","",$hold); } echo $hold; } echo " ";
$stop=$start+$show_news;
if ($stop>$num_rows)
{
$stop=$num_rows;
}
$start_point=$start+1;
$showing="Bękur $start_point - $stop til $num_rows | "; echo $showing; if ($val) { $addtourl= "&val=$val"; } if ($start!=0) { echo " <- FYRRI "; } if ($num_rows> $stop ) { echo " NĘSTA -> "; } echo " |