JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-} .
LIBYA CYBER ARMY
Logo of a company Instagram@3g86    Server : Apache
System : Linux uta-edu.server.ly 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : utripoli ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/utripoli/www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/utripoli/www/libary_show.php
<?php 
if (!isset($_SESSION)) {
  session_start();
}
require_once("connection/connect.php");

// الجزء العلوي من الموقع 
require_once("include/upper.php"); 

// بيانات 
//require_once("include/check.php");


if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "1", $theNotDefinedValue = "0") 
    {
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;    
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }

        // استجلاب بيانات معلومات الموقع
   $dirsa->select_db($database_dirsa);
   $query_info = "SELECT * FROM global_info where global_id=1";
   $info = $dirsa->query($query_info) or die($dirsa->error);
   $row_info = $info->fetch_assoc();
   $totalRows_info = $info->num_rows;

// استجلاب بيانات الأخبار
$maxRows_news_index = 10;
$pageNum_news_index = 0;
if (isset($_GET['pageNum_news_index'])) {
$pageNum_news_index = $_GET['pageNum_news_index'];
}
$startRow_news_index = $pageNum_news_index * $maxRows_news_index;

if (isset($_GET['id_sec'])) {
  $id_section= $_GET['id_sec'];
  }
 
$dirsa->select_db($database_dirsa);
$query_news_index = "SELECT * FROM libary order by libary_id desc";
$query_limit_news_index = sprintf("%s LIMIT %d, %d", $query_news_index, $startRow_news_index, $maxRows_news_index);                     
$news_index = $dirsa->query($query_limit_news_index) or die($dirsa->error);
$row_news_index = $news_index->fetch_assoc();
$totalRows_news_index = $news_index->num_rows;


if (isset($_GET['totalRows_news_index'])) {
  $totalRows_news_index = $_GET['totalRows_news_index'];
  } else {
  $all_news_index = $dirsa->query($query_news_index);
  $totalRows_news_index = $all_news_index->num_rows;
  }
  $totalPages_news_index = ceil($totalRows_news_index/$maxRows_news_index)-1;


$queryString_news_index = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
  if (stristr($param, "pageNum_news_index") == false &&
      stristr($param, "totalRows_news_index") == false) {
    array_push($newParams, $param);
  }
}
if (count($newParams) != 0) {
  $queryString_news_index = "&" . htmlentities(implode("&", $newParams));
}
}


/////////////////// انتهاء كود الأخبار ///////////////////////
?>
    <!-- News Start -->
    <div
      class="container-fluid library-header d-flex align-items-center justify-content-center"
    >
      <div class="container text-center mt-5">
        <h3 class="text-secondary">مرحبا بكم في</h3>
        <h1 class="text-white mt-3">المكتبة الإلكترونية</h1>
        <div class="input-group mx-auto mt-4" style="width: 340px">
          <input
            type="text"
            class="form-control"
            placeholder="ادخل اسم الكتاب او المشروع  البحثي"
            aria-label="Recipient's username"
            aria-describedby="button-addon2"
          />
          <button class="btn btn-secondary" type="button" id="button-addon2">
            بحث
          </button>
        </div>
      </div>
    </div>
    <!-- Gallery-head End -->

    <!-- Books Start -->

    <div class="container-xxl py-5" style="margin-top: 25px">
      <div class="container">
        <div
          class="card position-relative"
          style="border: 3px solid rgb(153 16 16) !important"
        >
          <div
            class="card-body text-center pt-0 wow fadeIn"
            data-wow-delay="0.1s"
          >
            <p
              class="d-inline-block boxs text-white rounded text-primary fs-1 py-1 px-5"
              style="margin-top: -50%"
            >
              الكتب
            </p>
          </div>

          <div class="row mx-auto my-3">
            <div class="row research g-4 mx-auto">
            <?php if($totalRows_news_index > 0) {  ?>             >
            <?php do { ?>
              <div
                class="col-md-6 col-lg-4 wow fadeIn"
                data-wow-delay="0.3s"
                style="
                  visibility: visible;
                  animation-delay: 0.3s;
                  animation-name: fadeIn;
                "
 
                
                <div class="card">
                  <div class="card-body">
                    <div class="row">
                      <div class="col-5">
                        <div>
                          <div class="img-fluid">
                            <img
                              class="w-100 h-100"
                              src="cp/uploads/libary/<?php echo $row_news_index['pic_book']; ?>"
                              alt=""
                            />
                          </div>
                        </div>

                      </div>

              <div class="col-7 d-flex flex-column justify-content-center align-items-start text-center"
                      >
                        <small class="mb-2"
                          ><span class="text-muted"
                            ><div class="row">
                              <div class="col-auto">
                                <i class="fas fa-book me-1 text-secondary"></i
                                >اسم الكتاب :
                              </div>
                              <div class="col-auto">
                                <span><?php echo $row_news_index['libary_name']; ?></span>
                              </div>
                            </div></span
                          ></small
                        >
                        <small class="mb-2"
                          ><span class="text-muted"
                            ><div class="row">
                              <div class="col-auto">
                                <i class="fas fa-pen me-1 text-secondary"></i
                                >إسم المؤلف :ss
                              </div>
                              <div class="col-auto">
                                <span><?php echo $row_news_index['libary_writer']; ?></span>
                              </div>
                            </div></span
                          ></small
                        >
                        <small class="mb-2"
                          ><span class="text-muted"
                            ><div class="row">
                              <div class="col-auto">
                                <i
                                  class="far fa-calendar-alt me-1 text-secondary"
                                ></i
                                >تاريخ الإصدار :
                              </div>
                              <div class="col-auto">
                                <span><?php echo $row_news_index['libary_date']; ?></span>
                              </div>
                            </div></span
                          ></small
                        >
                        <div class="row">
                          <div class="col-auto">
                            <a  target="_blank" onclick="window.open('cp/uploads/libary/<?php echo $row_news_index['file_book']; ?>');" >
                            <div class="btn btn-secondary">
                              عرض
                              <i class="fas fa-arrow-alt-circle-down"></i>
                              </div>
                      </a>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>   
            </div>
            <?php } while ($row_news_index = $news_index->fetch_assoc()); ?>
          <?php } else { ?> 
            <center><h3>لا توجد كتب جديدة لعرضها </h3></center>
            <?php } ?>     
            
                      </div>      

        </div>
        
        </div>
      </div>
    </div>
        

        <div class="text-center my-5">
        <nav aria-label="Page navigation example" class="mt-5">
        <ul class="pagination justify-content-center">
                                    <?php
$start_loop = $pageNum_news_index;
$difference = $totalPages_news_index - $pageNum_news_index;
 if($difference <= 5)
    {
     $start_loop = $totalPages_news_index - 5;
    }
    $end_loop = $start_loop + 4;

    if($pageNum_news_index <= $end_loop)
    {
     echo "<li class='page-item'><a class='page-link' href='?pageNum_news_index=".($pageNum_news_index + 1)."'>>></a></li>";
     echo "<li class='page-item'><a class='page-link' href='?pageNum_news_index=".$totalPages_news_index."'>الصفحة الأخيرة</a></li>";
    }
    for($i=$start_loop; $i<=$end_loop; $i++)
    {
        if($i == $pageNum_news_index) {
            echo "<li class='page-item disabled'><a class='page-link' href='?pageNum_news_index=".$i."'>".$i."</a></li>";
        }
                else if($i < 0) {

        } else {
     echo "<li class='page-item'><a class='page-link' href='?pageNum_news_index=".$i."'>".$i."</a></li>";
                }
    }
    if($pageNum_news_index > 0)
    {
     echo "<li class='page-item'><a class='page-link' href='?pageNum_news_index=0'>الصفحة الأولى</a></li>";
     echo "<li class='page-item'><a class='page-link' href='?pageNum_news_index=".($pageNum_news_index - 1)."'><<</a></li>";
    }
   ?>
                                </ul>
                        
        </nav>
        </div>
      </div>
    </div>
    <!-- News End -->

    <?php 
   // فوتر
   require_once("include/footer.php"); ?>

3g86 2022