Select messages from #  through #      FAQ

Script Bible Ekaristi

Akademi Kontra Indiferentisme -> Referensi dokumen Gereja

#1  Script Bible Ekaristi  Author: Tony  Location: Disini, ngga kelihatan apa?  Post Posted: Wed, 10-05-2006 10:51 am

Script bible Ekaristi. silahkan copy dan paste di halaman web anda. Contoh dapat dilihat di www.ekaristi.net/ks.php

Code:

<DIV align=center><FONT size=2>Alkitab Interlinear<BR><A
                  href="http://ekaristi.org/">Ekaristi.org</A></B></FONT>
                  <TABLE
                  style="BORDER-RIGHT: red 0px solid; PADDING-RIGHT: 3px; BORDER-TOP: red 0px solid; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; BORDER-LEFT: red 0px solid; PADDING-TOP: 3px; BORDER-BOTTOM: red 0px solid"
                  cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD class=cmd colSpan=2>
                        <DIV align=center><B>K I T A B</B></DIV></TD></TR>
                    <FORM name=F onsubmit="return F_Submit()"
                    action=http://www.ekaristi.org/bible/bdb_id.php method=post
                    target=_blank>
                    <TR>
                      <TD vAlign=top>
                        <P align=center><SELECT class=cmd name=book> <OPTION
                          value=1 selected>Kejadian<OPTION
                          value=2>Keluaran<OPTION value=3>Imamat<OPTION
                          value=4>Bilangan<OPTION value=5>Ulangan<OPTION
                          value=6>Yosua<OPTION value=7>Hakim-Hakim<OPTION
                          value=8>Rut<OPTION value=9>1 Samuel<OPTION value=10>2
                          Samuel<OPTION value=11>1 Raja-Raja<OPTION value=12>2
                          Raja-Raja<OPTION value=13>1 Tawarikh<OPTION value=14>2
                          Tawarikh<OPTION value=15>Ezra<OPTION
                          value=16>Nehemia<OPTION value=17>Tobit<OPTION
                          value=18>Yudit<OPTION value=19>Ester<OPTION
                          value=20>Ayub<OPTION value=21>Mazmur<OPTION
                          value=22>Amsal<OPTION value=23>Pengkhotbah<OPTION
                          value=24>Kidung Agung<OPTION
                          value=25>Kebijaksanaan<OPTION value=26>Sirakh<OPTION
                          value=27>Yesaya<OPTION value=28>Yeremia<OPTION
                          value=29>Ratapan<OPTION value=30>Barukh<OPTION
                          value=31>Yehezkiel<OPTION value=32>Daniel<OPTION
                          value=33>Hosea<OPTION value=34>Yoel<OPTION
                          value=35>Amos<OPTION value=36>Obaja<OPTION
                          value=37>Yunus<OPTION value=38>Mikha<OPTION
                          value=39>Nahum<OPTION value=40>Habakuk<OPTION
                          value=41>Zefanya<OPTION value=42>Hagai<OPTION
                          value=43>Zakharia<OPTION value=44>Maleakhi<OPTION
                          value=45>1 Makabe<OPTION value=46>2 Makabe<OPTION
                          value=47>Matius<OPTION value=48>Markus<OPTION
                          value=49>Lukas<OPTION value=50>Yohanes<OPTION
                          value=51>Kisah Para Rasul<OPTION value=52>Roma<OPTION
                          value=53>1 Korintus<OPTION value=54>2 Korintus<OPTION
                          value=55>Galatia<OPTION value=56>Efesus<OPTION
                          value=57>Filipi<OPTION value=58>Kolose<OPTION
                          value=59>1 Tesalonika<OPTION value=60>2
                          Tesalonika<OPTION value=61>1 Timotius<OPTION
                          value=62>2 Timotius<OPTION value=63>Titus<OPTION
                          value=64>Filemon<OPTION value=65>Ibrani<OPTION
                          value=66>Yakobus<OPTION value=67>1 Petrus<OPTION
                          value=68>2 Petrus<OPTION value=69>1 Yohanes<OPTION
                          value=70>2 Yohanes<OPTION value=71>3 Yohanes<OPTION
                          value=72>Yudas<OPTION value=73>Wahyu</OPTION></SELECT>
                        <BR><INPUT class=cin maxLength=3 size=1 value=1
                        name=chap> <B>:</B>&nbsp; <INPUT class=cin maxLength=2
                        size=1 value=1 name=ver0> <B>-</B> <INPUT class=cin
                        maxLength=2 size=1 value=1 name=ver1> </P></TD></TR>
                    <TR>
                      <TD noWrap colSpan=2>
                        <DIV align=center><SELECT class=cmd name=tran> <OPTION
                          value=0>[Semua terjemahan]<OPTION value=2
                          selected>Indonesia<OPTION value=7>Douay Rheims<OPTION
                          value=5>Latin Vulgate</OPTION></SELECT> <BR><INPUT type="submit" value="SUBMIT">
                    </DIV></TD></FORM></TR></TBODY></TABLE>

#2    Author: Tony  Location: Disini, ngga kelihatan apa?  Post Posted: Thu, 11-05-2006 12:44 pm

Script untuk pencarian kata (Konkordat) dbase Alkitab Ekaristi copy dan paste dihalaman web anda. Contoh dapat dilihat di www.ekaristi.net/ks2.php



Code:

<TABLE width=80>
                    <FORM name=srch action=http://ekaristi.org/bible/search.php
                    method=post target=_blank><INPUT type=hidden value=1
                    name=brws>
                    <TBODY>
                    <TR>
                      <TD vAlign=top align=middle>
                        <TABLE
                        style="BORDER-RIGHT: lightgrey 0px solid; PADDING-RIGHT: 3px; BORDER-TOP: lightgrey 0px solid; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; BORDER-LEFT: lightgrey 0px solid; PADDING-TOP: 3px; BORDER-BOTTOM: lightgrey 0px solid"
                        cellSpacing=0 cellPadding=0 border=0>
                          <TBODY>
                          <TR>
                            <TD class=cmd colSpan=2>
                              <DIV align=center><B>Konkordat <a href="http://ekaristi.org">Ekaristi</a></B></DIV></TD></TR>
                          <TR>
                            <TD>
                              <DIV align=center><SELECT class=cmd name=tran>
                                <OPTION value=7>Douay Rheims<OPTION
                                value=5>Latin Vulgate<OPTION value=2
                                selected>Indonesia</OPTION></SELECT> <BR><INPUT
                              class=cmd onclick=chk_adv(this); type=checkbox
                              CHECKED value=1 name=adv_sch> Lanjutan</DIV></TD>
                            <TD class=cmd vAlign=top noWrap
                            align=right>&nbsp;</TD></TR>
                          <TR>
                            <TD vAlign=top noWrap colSpan=2>
                              <DIV align=center><INPUT class=cin maxLength=50
                              name=keywd> <BR><INPUT class=cmd onclick="return chk_sbm();" type="submit" value="SUBMIT">
                              </DIV></TD></TR></TBODY></TABLE></TD></FORM></TR></TBODY></TABLE>

#3    Author: Tony  Location: Disini, ngga kelihatan apa?  Post Posted: Thu, 11-05-2006 1:49 pm

Script untuk mengadakan parsing ayat yg otomatis menjadi link/ referensi ke dbase.

Contoh www.ekaristi.org/artikel/sumarya.php

File: header.php
Code:
<?

/**

  by : me :)
  email : friendship@ekaristi.org  <---  silahkan kontak kalau ada problem, harap sabar dengan balasannya.

  format :
  pembuka --> [[
  penutup --> ]]
  Contoh: Kej 3:13-15  ditulis menjadi [[Kej 3:13-15]]  akan tampil menjadi Kej 3:13-15 yg berupakan link ke ayat-ayat tsb

  usage :
  [[ bahasa, Kitab Bab Ayat1 - Ayat2 ; Kitab Bab Ayat1 - Ayat, bahasa ; dst ]] Contoh: Kej 3:13-15; Kis 2:10-13; Mrk 5:2-6  ditulis menjadi [[Kej 3:13-15; Kis 2:10-13; Mrk 5:2-6]]

  Bahasa terdiri dari singkatan 3 huruf,
vul = vulgata
idb = indonesia
rhe = douay rheims
Contoh: versi douay rheims Kej 3:13-15  ditulis menjadi [[rhe,Kej 3:13-15]]  tampil <rhe>Kej3:13-15

NB: notasi penulisan ayat TIDAK ada tanda titik (period)

**/

  $_header_ = <<<HEADERS
<html>
<head>
<title>$page_title</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<META content="keterangan web" name=description>
<META content="keyword, katakunci web utk search engine" name=keywords>
<META content="index, follow" name=robots>
<link href="<__folder_berisi_file_style.css__>/style.css" type=text/css rel=stylesheet>
<link href="<__folder_berisi_file_favicon.ico__>/favicon.ico" rel="shortcut icon">
<script language="JavaScript" src="<__folder_berisi_file_header.js__>/header.js"></script>
</head>
<body bgcolor="#FFFFFF">
HEADERS;

/**
 ganti dgn false, jika tidak ingin berupa link PopUp Windows
**/
  $pop_Up = true;

  if (! isset( $_file_ ) ) {
    echo $_header_;
    return;
  }

  $f = implode('', file($_file_) );
  $f = preg_replace('|<\?.*?\?>|s', '', $f, 1);
  echo $_header_;

  $tmp = tempnam('/tmp','_f_');
  $fw = fopen($tmp, 'w');
  fwrite($fw, _vars_($_file_));
  fwrite($fw, $f);
  fclose($fw);
  $fo = shell_exec('/usr/local/bin/php -q ' . $tmp);
  unlink ($tmp);
  echo _bdb_parse($fo);
  exit;

function _bdb_q($q) {
  global $pop_Up;

  if ($pop_Up) {
    $a = <<<TMP
<a onClick="bdb_Pop('<_q_>', 500, 220)" href="javascript:void"><_qa_></a>
TMP;
  }
  else {
    $a = <<<AYT
<a href='http://ekaristi.org/bible/bq.php?q=<_q_>' target=_blank><_qa_></a>
AYT;
  }

  $qq = '[['.$q.']]';
  $p = array();
  $p[] = '|(<[^>]+>)+|';
  $p[] = '|[^a-z0-9,;:\-]+|i';
  $q = preg_replace($p, '', $q);
  if ( preg_match('|[,:;\-]|s', $q) ) {
    $q = preg_replace('|[\s]+|','',$q);
    $a = preg_replace('|<_q_>|', htmlspecialchars($q), $a);
    $qc = @explode(';', $q);
    foreach ( $qc as $qr ) {
      $v = @explode(',', $qr);
      if ( count($v)>1 ) {
        if ( ! preg_match('|[0-9]+:[0-9]+|s', $qr) ) { return $qq; }
        if ( strlen($v[0])>3 && strlen($v[1])<4 ) { $v = array_reverse($v); }
        if ( strlen($v[0])==3 ) { $t .= '<'.$v[0].'>' . $v[1]; }
        else if ( strlen($v[1])>3 ) { $t .= $v[1]; }
        else { return $qq; }
      }
      else {
        $t .= $v[0];
      }
      $t .= ' ; ';
    }
    $t = preg_replace('|\s\;\s$|', '', $t);
    $a = preg_replace('|<_qa_>|', htmlspecialchars($t), $a);
    return $a;
  }

  return $qq;
}

function _bdb_parse($f) {
  return preg_replace("#\[\[(.*?)\]\]#ise", "_bdb_q('\\1')", $f);
}

function _vars_($f) {
  $self = $_SERVER['PHP_SELF'];
  $p = dirname ($f);
  while ( list($key,$val) = each( $_FILES )) {
    $val = preg_replace('|[\n]+|','',$val);
    $line .= ' $_FILES["'.$key.'"] = \'' . $val . "';\n";
  }
  while ( list($key,$val) = each( $_ENV )) {
    $val = preg_replace('|[\n]+|','',$val);
    $line .= ' $_ENV["'.$key.'"] = \'' . $val . "';\n";
  }
  while ( list($key,$val) = each( $_GET )) {
    $val = preg_replace('|[\n]+|','',$val);
    $line .= ' $_GET["'.$key.'"] = \'' . $val . "';\n";
  }
  while ( list($key,$val) = each( $_POST )) {
    $val = preg_replace('|[\n]+|','',$val);
    $line .= ' $_POST["'.$key.'"] = \'' . $val . "';\n";
  }
  while ( list($key,$val) = each( $_COOKIE )) {
    $val = preg_replace('|[\n]+|','',$val);
    $line .= ' $_COOKIE["'.$key.'"] = \'' . $val . "';\n";
  }
  while ( list($key,$val) = each( $_SERVER )) {
    $val = preg_replace('|[\n]+|','',$val);
    $line .= ' $_SERVER["'.$key.'"] = \'' . $val . "';\n";
  }
  while ( list($key,$val) = @each( $_SESSION )) {
    $val = preg_replace('|[\n]+|','',$val);
    $line .= ' $_SESSION["'.$key.'"] = \'' . $val . "';\n";
  }

  return <<<SRV
<?php
$line
 \$PHP_SELF = '$self';
 ini_set('include_path', '$p');
?>
SRV;

}

?>


File: footer.php
Code:
<div align="center">
  <center>
  copyright bla bla ...
</center>
</div>
</body>
</html>


File: header.js
Code:


function bdb_Pop(q,w,h) {
  var x = (screen.width-w)/2;
  var y = (screen.height-h)/2;
  return window.open(
    'http://ekaristi.org/bible/bq.php?q='+q,
    'BDB',
    'width='   + w + ',' +
    'height='  + h + ',' +
    'screenX=' + x + ',' +
    'screenY=' + y + ',' +
    'left='    + x + ',' +
    'top='     + y + ',' +
    'scrollbars,alwaysRaised,resizable'
  );
}

function popUp(query,w,h) {
  var x = (screen.width-w)/2;
  var y = (screen.height-h)/2;
  return window.open(
    "http://ekaristi.org/bible/bdb.php?q=" + query + "&f=1",
    "BDB",
    "width="   + w + "," +
    "height="  + h + "," +
    "screenX=" + x + "," +
    "screenY=" + y + "," +
    "left="    + x + "," +
    "top="     + y + "," +
    "scrollbars,alwaysRaised,resizable"
  );
}


File: template.php

Code:
<?php

 $_file_ = __FILE__;
 $page_title ='Judul Halaman';
 require( $_SERVER['DOCUMENT_ROOT'] . '/<__folder_berisi_file_header.php__>/header.php' );

?>

Isi / content, body html, text, dst, dst

<?php

sisipan kode-kode php, dst, dst

?>

lainnya...

<?php

  require( $_SERVER['DOCUMENT_ROOT'] . '</__folder_berisi_file_footer.php__/footer.php');

?>


Akademi Kontra Indiferentisme -> Referensi dokumen Gereja All times are GMT + 6 Hours