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/office.php
<?php 
if (!isset($_SESSION)) {
    session_start();
  }
require_once("connection/connect.php");

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

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

if (isset($_GET['id'])) {
  $id = $_GET['id'];
  }
// استجلاب بيانات الاحصائيات
$dirsa->select_db($database_dirsa);
$query_office_id = sprintf("SELECT * FROM offices where office_id=%s", 
GetSQLValueString($id, "int"));
$office_id = $dirsa->query($query_office_id) or die($dirsa->error);
$row_office_id = $office_id->fetch_assoc();
$totalRows_office_id = $office_id->num_rows;


 if(isset($_POST['sendmail'])) {

      $captcha = $_POST["captcha"];
      $captchaUser = filter_var($_POST["captcha"], FILTER_SANITIZE_STRING);
      if(empty($captcha)) {
        $captchaError = array(
          "status" => "alert-danger",
          "message" => "الرجاء ادخل رمز التحقق"
        );
      }
      else if($_SESSION['CAPTCHA_CODE'] == $captchaUser){

$to = $row_office_id['office_email'];
   $subject = $_POST['subject'];
   $message = "<html><meta http-equiv='Content-type' content='text/html;charset=UTF-8' /><body>";
   $message .= "رقم هاتف :";
   $message .= $_POST['phone'];
   $message .= "<br>";
   $message .="الرسالة :";
   $message .= $_POST['message'];
   $message .= "</body></html>";
   $header = "From:" . $_POST['email'] . " \r\n";
   $header .= "MIME-Version: 1.0\r\n";
   $header .= "Content-type: text/html\r\n";
   
   $retval = @mail ($to,"=?UTF-8?B?".base64_encode($subject)."?=",$message,$header);
        $captchaError = array(
          "status" => "alert-success",
          "message" => "تم ارسال بنجاح"
        );
      } else {
        $captchaError = array(
          "status" => "alert-danger",
          "message" => "خطأ في أرسال رمز التحقق"
        );
      }
 }
?>

    <!-- info Start -->
    <div class="container-xxl py-5" style="margin-top: 175px">
        <?php if($totalRows_office_id > 0) { ?>
      <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%"
            >
              <?php echo $row_office_id['office_name']; ?>
            </p>
            <div class="my-5 wow fadeIn" data-wow-delay="0.3s">
              <h1 class="display-6 mb-5" style="color: #004ebd">
                نبذة عن المكتب
              </h1>
              <p class="lh-lg">
              <?php echo $row_office_id['office_desc']; ?>
              </p>
            </div>
            <div class="red-border mx-auto my-5"></div>
            <div class="my-5 wow fadeIn" data-wow-delay="0.5s">
              <h1 class="display-6 mb-5" style="color: #004ebd">
                رؤيتنا واهدافنا
              </h1>
              <div class="lh-lg wow fadeIn" data-wow-delay="0.2s">
                <?php echo $row_office_id['office_roa']; ?>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- info End -->

    <!-- News Start -->
     <?php 
     // استجلاب بيانات الاحصائيات
$dirsa->select_db($database_dirsa);
$query_news_offices2 = sprintf("SELECT * FROM news where news_office=%s and is_deleted is null and news_start_or_stop=%s order by news_date desc LIMIT 3", 
GetSQLValueString($id, "int"),
GetSQLValueString(1, "int"));
$news_offices2 = $dirsa->query($query_news_offices2) or die($dirsa->error);
$row_news_offices2 = $news_offices2->fetch_assoc();
$totalRows_news_offices2= $news_offices2->num_rows;
?>

    <div class="container-xxl py-5 wow fadeIn" data-wow-delay="0.1s">
      <div class="container">
        <div
          class="text-center mx-auto wow fadeInUp"
          data-wow-delay="0.1s"
          style="
            max-width: 400px;
            visibility: visible;
            animation-delay: 0.1s;
            animation-name: fadeInUp;
          "
        >
          <h1 class="mb-5" style="color: #004ebd">اخبار هذا المكتب</h1>
        </div>
        <div class="row g-5">
         <?php if($totalRows_news_offices2 > 0) { ?>
          <?php do  {  ?>
          <div class="col-md-6 col-lg-4 wow fadeIn" data-wow-delay="0.3s">
            <div class="news-box border rounded overflow-hidden">
              <div class="news-img overflow-hidden" style="max-height: 250px">
                <a href="single-news.php?id=<?php echo $row_news_offices2['news_id']; ?>"><img class="w-100" src="cp/uploads/news/<?php echo $row_news_offices2['image_head'
                ]; ?>" alt="" /></a>
              </div>
              <div class="news-details p-3">
                <a href="single-news.php?id=<?php echo $row_news_offices2['news_id']; ?>">
                  <h6>
                  <?php echo $row_news_offices2['news_title']; ?>
                  </h6>
                </a>
                <div class="row g-0">
                  <div class="col-auto">
                    <small class="text-muted">
                      <span
                        ><i class="far fa-calendar-alt me-1"></i><?php echo $row_news_offices2['news_date']; ?></span
                      >
                      <span class="fw-bold">|</span>
                    </small>
                  </div>
                  <div class="col-auto ms-1">
                    <a href="index.html"><?php 
                            if (isset($row_news_offices2['news_section'])) {
                        $mansht_section = $row_news_offices2['news_section'];
                         }
                                    $dirsa->select_db($database_dirsa);
                                    $query_mansht_section = sprintf("SELECT * FROM section where section_id=%s", 
                                      GetSQLValueString($mansht_section, "int"));
                                    $mansht_section = $dirsa->query($query_mansht_section) or die($dirsa->error);
                                    $row_mansht_section = $mansht_section->fetch_assoc();
                                    $totalRows_mansht_section = $mansht_section->num_rows;
                    echo $row_mansht_section['section_name']; ?></a>
                  </div>
                </div>

                <p class="mt-2 text-muted">
                       <?php echo mb_strimwidth(strip_tags($row_news_offices2['news_des']),0,300) . "..."; ?>
                </p>
                <a href="single-news.php?id=<?php echo $row_news_offices2['news_id']; ?>" class="read-more-btn">اقرأ المزيد</a>
              </div>
            </div>
          </div>
          <?php } while ($row_news_offices2 = $news_offices2->fetch_assoc()); ?> 
            
        </div>
        <div class="text-center my-5">
          <a href="news_last.php?office_id=<?php echo $_GET['id']; ?>" class="btn btn-primary px-4 py-3"
            >المزيد من الأخبار<i class="fas fa-arrow-alt-circle-down ms-1"></i
          ></a>
        </div>
        <?php } else {  ?> 
            <center><h3>لا يوجد أخبار بالجامعة </h3></center>
            <?php } ?>
      </div>
    </div>
    <!-- News End -->

    <div class="container">
      <div
        class="red-border mx-auto my-5 wow fadeIn"
        data-wow-delay="0.1s"
      ></div>
    </div>

    <!-- Events Start -->
    <?php 
     // استجلاب بيانات الاحصائيات
$dirsa->select_db($database_dirsa);
$query_event_offices2 = sprintf("SELECT * FROM activities where active_office=%s and is_deleted is null and activ_state=%s order by activ_date desc LIMIT 3", 
GetSQLValueString($id, "int"),
GetSQLValueString(1, "int"));
$event_offices2 = $dirsa->query($query_event_offices2) or die($dirsa->error);
$row_event_offices2 = $event_offices2->fetch_assoc();
$totalRows_event_offices2= $event_offices2->num_rows;
?>
    <div class="container-xxl py-5">
      <div class="container">
        <div
          class="text-center mx-auto wow fadeInUp"
          data-wow-delay="0.1s"
          style="
            max-width: 400px;
            visibility: visible;
            animation-delay: 0.1s;
            animation-name: fadeInUp;
          "
        >
          <h1 class="mb-5 lh-base" style="color: #004ebd">
            فعاليات هذا المكتب
          </h1>
        </div>
        <div class="row g-5">
          <?php if($totalRows_event_offices2 > 0) {  ?>
          <?php do { ?>
          <div class="col-md-6 col-lg-4 wow fadeIn" data-wow-delay="0.3s">
            <div class="news-box border rounded overflow-hidden">
              <div
                class="news-img overflow-hidden position-relative"
                style="max-height: 250px"
              >
                <a href="single-event.php?id=<?php echo $row_event_offices2['active_id']; ?>"><img class="w-100" src="cp/uploads/activities/<?php echo $row_event_offices2['activ_image']; ?>" alt="" /></a>
                <div
                  class="event-date d-flex flex-column justify-content-center align-items-center"
                >
                  <span><?php echo date("d", strtotime($row_event_offices2['activ_date'])); ?></span><span>
                  <?php 
                             $m = date("m", strtotime($row_event_offices2['activ_date'])); 
                                    if($m == 1) { 
                                        $month = 'يناير';
                                      } else if($m == 2) {
                                        $month = 'فبراير';
                                      } else if($m == 3) { 
                                        $month = 'مارس';
                                      } else if($m == 4) { 
                                        $month = 'ابريل';
                                      } else if($m == 5) { 
                                        $month = 'مايو';
                                      } else if($m == 6) {
                                        $month = 'يونيو'; 
                                      } else if($m == 7) { 
                                        $month = 'يوليو';
                                      } else if($m == 8) { 
                                        $month = 'اغسطس';
                                      } else if($m == 9) {
                                        $month = 'سبتمبر';
                                      } else if($m == 10){ 
                                        $month = 'اكتوبر';
                                      } else if($m == 11) { 
                                        $month = 'نوفمبر';
                                      } else if($m == 12) {
                                        $month = 'ديسمبر';
                                      }
                                      echo $month;
                                      ?>

                  </span>
                </div>
              </div>
              <div class="news-details p-3">
                <a href="single-event.php?id=<?php echo $row_event_offices2['active_id']; ?>">
                  <h6>
                 <?php echo $row_event_offices2['activ_title']; ?>
                  </h6>
                </a>
                <div class="row g-0">
                  <div class="col-auto">
                    <small class="text-muted">
                      <span
                        ><i class="far fa-calendar-alt me-1"></i><?php echo $row_event_offices2['activ_date']; ?></span
                      >
                      <span class="fw-bold">|</span>
                    </small>
                  </div>
                  <div class="col-auto ms-1">
                    <a href="departmen.php?id=<?php echo $row_event_offices2['activ_section']; ?>"><?php 
                       if (isset($row_event_offices2['activ_section'])) {
                        $mansht_section = $row_event_offices2['activ_section'];
                        }
                      $dirsa->select_db($database_dirsa);
                      $query_mansht_section = sprintf("SELECT * FROM section where section_id=%s", 
                      GetSQLValueString($mansht_section, "int"));
                      $mansht_section = $dirsa->query($query_mansht_section) or die($dirsa->error);
                      $row_mansht_section = $mansht_section->fetch_assoc();
                      $totalRows_mansht_section = $mansht_section->num_rows;
                    
                    echo $row_mansht_section['section_name']; ?></a>
                  </div>
                </div>
                <div class="my-4">
                  <h6 class="text-muted">
                    <i class="fas fa-clock me-1 text-secondary"></i><?php echo $row_event_offices2['activ_from_time']; ?>-<?php echo $row_event_offices2['activ_to_time']; ?>
                  </h6>
                  <h6 class="text-muted">
                    <i class="fas fa-map-marker-alt me-1 text-secondary"></i
                    ><?php echo $row_event_offices2['activ_place']; ?>
                  </h6>
                </div>
                <a href="single-event.php?id=<?php echo $row_event_offices2['active_id']; ?>" class="read-more-btn"
                  >رؤية التفاصيل</a
                >
              </div>
            </div>
          </div><?php } while ($row_event_offices2 = $event_offices2->fetch_assoc()); ?>
          <?php } else { ?> 
            <center><h3>لا توجد فعاليات جديدة لعرضها </h3></center>
            <?php } ?>
            <div class="text-center my-5">
          <a href="last_active.php?office_id=<?php echo $_GET['id']; ?>" class="btn btn-primary px-4 py-3"
            >المزيد من الفعاليات<i class="fas fa-arrow-alt-circle-down ms-1"></i
          ></a>
        </div>
      </div>
    </div>
          </div>  
          </div>
          </div>
    <!-- Events End -->

    <!-- contact us start -->
    <div class="container-fluid callback my-5 pt-5">
      <div class="container pt-5">
        <div class="row justify-content-center">
          <div class="col-lg-7">
            <div
              class="bg-white border rounded p-4 p-sm-5 wow fadeInUp"
              data-wow-delay="0.5s"
              style="
                visibility: visible;
                animation-delay: 0.5s;
                animation-name: fadeInUp;
              "
            >
              <div
                class="text-center mx-auto wow fadeInUp"
                data-wow-delay="0.1s"
                style="
                  max-width: 600px;
                  visibility: visible;
                  animation-delay: 0.1s;
                  animation-name: fadeInUp;
                "
              >
                <h1 class="display-5 mb-5">تواصل مع المكتب</h1>
              </div>
              <div class="row g-3">
                                   <?php if(!empty($captchaError)) {?>
      <div class="form-group col-12 text-center">
        <div class="alert text-center <?php echo $captchaError['status']; ?>">
          <?php echo $captchaError['message']; ?>
        </div>
      </div>
    <?php }?>
                <div class="col-sm-6">
                      <form name="sendcontacts" class="form-horizontal" method="post">
                  <div class="form-floating">
                    <input
                      name="yourname"
                      type="text"
                      class="form-control"
                      id="name"
                      placeholder="Your Name"
                    />
                    <label for="name">الاسم</label>
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="form-floating">
                    <input
                      name="email"
                      type="email"
                      class="form-control"
                      id="mail"
                      placeholder="Your Email"
                    />
                    <label for="mail">البريد الإلكتروني</label>
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="form-floating">
                    <input
                      name="phone"
                      type="text"
                      class="form-control"
                      id="mobile"
                      placeholder="Your Mobile"
                    />
                    <label for="mobile">رقم الهاتف</label>
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="form-floating">
                    <input
                      name="subject"
                      type="text"
                      class="form-control"
                      id="subject"
                      placeholder="Subject"
                    />
                    <label for="subject">الموضوع</label>
                  </div>
                </div>
                <div class="col-12">
                  <div class="form-floating">
                    <textarea
                      name="message"
                      class="form-control"
                      placeholder="Leave a message here"
                      id="message"
                      style="height: 100px"
                    ></textarea>
                    <label for="message">الرسالة</label>
                  </div>
                </div>
                  <div class="col-6">
          <label for="subject">ادخل رمز التحقق</label>
          <input type="text" class="form-control" name="captcha" id="captcha">
        </div>
        <div class="col-6">
          <label for="subject">رمز التحقق</label><br>
          <img src="captcha.php" alt="PHP Captcha">
        </div>
  
                <div class="col-12 text-center">
                   <button class="btn btn-primary w-100 py-3" name="sendmail" type="submit">
                  إرسال الرسالة
                </button>
                  <input type="hidden" name="MM_insert" value="form1" />
                  
                </div>
           </form>
     
              </div>
            </div>
          </div>
        </div>
      </div>
      <?php } else { ?>
      <center><h3>لا توجد بيانات لعرضها</h3></center>
      <?php } ?>
    </div>
    <!-- contact us end  -->
    <?php 
   // فوتر
   require_once("include/footer.php"); ?>

3g86 2022