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/public_html/cp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/utripoli/public_html/cp/add-project.php
<?php
// اتصال بقاعدة بيانات
require_once("../connection/connect.php");
 $page_title = "إضافة مشروع بحثي";
 $page_select = "10";
require_once("include/header.php");
require_once("include/check.php");
require_once("include/locked.php");


$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

function safe($admin_buy_local) {
  return mysql_real_escape_string($admin_buy_local);
}



if($row_users22['usr_section'] == '0') {
// استجلاب بيانات التخصصات
$dirsa->select_db($database_dirsa);
$query_section = sprintf("SELECT * FROM section where section_start_or_stop=%s",
                   GetSQLValueString(1, "int"));
$section = $dirsa->query($query_section) or die($dirsa->error);
$row_section = $section->fetch_assoc();
$totalRows_section = $section->num_rows;
} else {
    // استجلاب بيانات التخصصات
$dirsa->select_db($database_dirsa);
$query_section = sprintf("SELECT * FROM section where section_id=%s and section_start_or_stop=%s",
                   GetSQLValueString($row_users22['usr_section'], "int"),
                   GetSQLValueString(1, "int"));
$section = $dirsa->query($query_section) or die($dirsa->error);
$row_section = $section->fetch_assoc();
$totalRows_section = $section->num_rows;
}


// استجلاب بيانات المكاتب المتخصصة
$dirsa->select_db($database_dirsa);
$query_office = sprintf("SELECT * FROM offices where office_state=%s",
                    GetSQLValueString(1, "int"));
$office = $dirsa->query($query_office) or die($dirsa->error);
$row_office = $office->fetch_assoc();
$totalRows_office = $office->num_rows;



//امر اضافة بيانات
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "add_project")) {
// رفع صورة الخبر
if(isset($_FILES['file'])){
    $errors= array();
    $file_name = $_FILES['file']['name'];
    $file_size =$_FILES['file']['size'];
    $file_tmp =$_FILES['file']['tmp_name'];
    $file_type=$_FILES['file']['type'];
    $file_ext=strtolower(end(explode('.',$_FILES['file']['name'])));

    $expensions= array("pdf","doc","docx");
    if(in_array($file_ext,$expensions)=== false){
        $errors[]="extension not allowed, please choose a JPEG or PNG file.";
    }
    if($file_size > 2097152){
    $errors[]='File size must be excately 2 MB';
    }
    if(empty($errors)==true){

            $name = pathinfo($_FILES['file']['name'], PATHINFO_FILENAME);
$extension = pathinfo($_FILES['file']['name'], PATHINFO_EXTENSION);

$increment = 0;
$pname = $name . '.' . $extension;
while(is_file("uploads/project/".'/'.$pname)) {
 $increment++;
 $pname = $name . $increment . '.' . $extension;
}
$increment = 0;
$pname = $name . '.' . $extension;
while(is_file("uploads/project/".'/'.$pname)) {
 $increment++;
 $pname = $name . $increment . '.' . $extension;
}
        move_uploaded_file($file_tmp,"uploads/project/".$pname);

    } else {
    // الصورة الإفتراضية للخبر
    $pname = "no_file";

    }
}

if(isset($_FILES['re_pic'])){
    $errors2= array();
    $file_name2 = $_FILES['re_pic']['name'];
    $file_size2 =$_FILES['re_pic']['size'];
    $file_tmp2 =$_FILES['re_pic']['tmp_name'];
    $file_type2=$_FILES['re_pic']['type'];
    $file_ext2=strtolower(end(explode('.',$_FILES['re_pic']['name'])));

    $expensions2= array("jpge","jpg", "png","gif");
    if(in_array($file_ext2,$expensions2)=== false){
        $errors2[]="extension not allowed, please choose a JPEG or PNG file.";
    }
    if($file_size2 > 2097152){
    $errors2[]='File size must be excately 2 MB';
    }
    if(empty($errors2)==true){

            $name2 = pathinfo($_FILES['re_pic']['name'], PATHINFO_FILENAME);
$extension2 = pathinfo($_FILES['re_pic']['name'], PATHINFO_EXTENSION);

$increment2 = 0;
$pname2 = $name2 . '.' . $extension2;
while(is_file("uploads/project/".'/'.$pname2)) {
 $increment2++;
 $pname2 = $name2 . $increment2 . '.' . $extension2;
}
$increment2 = 0;
$pname2 = $name2 . '.' . $extension2;
while(is_file("uploads/project/".'/'.$pname2)) {
 $increment2++;
 $pname2 = $name2 . $increment2 . '.' . $extension2;
}
        move_uploaded_file($file_tmp2,"uploads/project/".$pname2);

    } else {
    // الصورة الإفتراضية للخبر
    $pname2 = "default.jpg";

    }
}


if(isset($_POST['re_s'])) {
    $re_s = $_POST['re_s'];
} else {
    $re_s = "false";
}
if(isset($_POST['re_m'])) {
    $re_m = $_POST['re_m'];
} else {
    $re_m = "false";
}

if(isset($_POST['re_stu2'])) {
    $re_stu2 = $_POST['re_stu2'];
} else {
    $re_stu2 = "0";
}


if(isset($_POST['re_stu3'])) {
    $re_stu3 = $_POST['re_stu3'];
} else {
    $re_stu3 = "0";
}

    $insertSQL = sprintf("INSERT INTO resarch_stu (re_title, re_s, re_m, re_moshraf, re_stu1, re_stu2, re_stu3, re_desc, file, re_section, re_date, re_pic, mmuiz) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)",
                         GetSQLValueString($_POST['re_title'], "text"),
                         GetSQLValueString($re_s, "text"),
                         GetSQLValueString($re_m, "text"),
                         GetSQLValueString($_POST['re_moshraf'], "text"),
                         GetSQLValueString($_POST['re_stu1'], "text"),
                         GetSQLValueString($re_stu2, "text"),
                         GetSQLValueString($re_stu3, "text"),
                         GetSQLValueString($_POST['re_desc'], "text"),
                         GetSQLValueString($pname, "text"),
                         GetSQLValueString($_POST['re_section'], "text"),
                         GetSQLValueString($_POST['re_date'], "text"),
                         GetSQLValueString($pname2, "text"),
                         GetSQLValueString("0", "text"));

    $dirsa->select_db($database_dirsa);
    $Result1 = $dirsa->query($insertSQL) or die($dirsa->error);

    $insertGoTo = "projects.php";
    if (isset($_SERVER['QUERY_STRING'])) {
      $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
      $insertGoTo .= $_SERVER['QUERY_STRING'];
    }
    header(sprintf("Location: %s", $insertGoTo));
  }

?>

          <!-- / Navbar -->

          <!-- Content wrapper -->
          <div class="content-wrapper">
            <!-- Content -->
            <div class="container-xxl flex-grow-1 container-p-y">
                 <?php if($row_users22['usr_add'] == 1){ ?>
              <div class="card">
                <div class="card-body">
                        <form action="<?php echo $editFormAction; ?>" role="form" method="POST"
                                    name="add_project" enctype="multipart/form-data">
                    <div class="row">
                      <div class="col-md-6 mb-4">
                        <label for="research-title" class="form-label"
                          >العنوان</label
                        >
                        <input
                          name="re_title"
                          type="text"
                          class="form-control"
                          id="research-title"
                          placeholder="ادخل عنوان المشروع"
                          aria-describedby="defaultFormControlHelp"
                        />
                      </div>
                      <div class="col-md-5 mb-4">
                        <div class="row">
                          <label for="" class="form-label"
                            >إضافة الخبر إلى:</label
                          >
                          <div class="col-auto">
                            <label for="news-title" class="form-label"
                              >المشاريع متوسطة
                            </label>
                            <input
                              name="re_m"
                              class="form-check-input me-1"
                              type="checkbox"
                              value="true"
                            />
                          </div>
                          <div class="col-auto">
                            <label for="news-title" class="form-label"
                              >المشاريع الصغرى                           </label>
                            <input
                              name="re_s"
                              class="form-check-input me-1"
                              type="checkbox"
                              value="true"
                            />
                          </div>
                          </div>
                      </div>
                      <div class="col-md-4 mb-4">
                        <label for="research-title" class="form-label"
                          >إسم المشرف</label
                        >
                        <input
                          name="re_moshraf"
                          type="text"
                          class="form-control"
                          id="research-title"
                          placeholder="ادخل إسم المشرف"
                          aria-describedby="defaultFormControlHelp"
                        />
                      </div>
                      <div class="col-md-10 mb-4">
                        <label for="research-title" class="form-label"
                          >أسماء الطلبة
                        </label>
                        <div class="input-group">
                          <input
                            name="re_stu1"
                            type="text"
                            aria-label="First name"
                            class="form-control"
                          />
                          <input
                            name="re_stu2"
                            type="text"
                            aria-label="2nd name"
                            class="form-control"
                          /><input
                            name="re_stu3"
                            type="text"
                            aria-label="third name"
                            class="form-control"
                          />
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col mb-4">
                        <label for="research-abstract" class="form-label"
                          >نبذة عن المشروع</label
                        >
                        <textarea name="re_desc" class="w-100" id="mytextarea"></textarea>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-md-4 mb-4">
                        <label for="research-file" class="form-label"
                          >ملف المشروع</label
                        >
                        <input
                          name="re_file"
                          type="file"
                          class="form-control"
                          id="research-file"
                        />
                      </div>
                      <div class="col-md-4 mb-4">
                        <label for="research-department" class="form-label"
                          >القسم</label
                        >
                        <select
                          name="re_section"
                          class="form-select"
                          id="research-department"
                          aria-label="Default select example"
                        >
                                                  <?php do {  ?>
                        <option value="<?php echo $row_section['section_id']; ?>">
                        <?php echo $row_section['section_name']; ?></option>
                        <?php } while ($row_section = $section->fetch_assoc()); ?>
                        </select>
                      </div>

                      <div class="col-md-4 mb-4">
                        <label for="news-date" class="form-label"
                          >تاريخ النشر</label
                        >
                        <input
                          name="re_date"
                          type="date"
                          multiple
                          class="form-control"
                          id="news-date"
                        />
                      </div>
                      <div class="col-md-4 mb-4">
                        <label for="news-cover" class="form-label"
                          >صورة الغلاف</label
                        >
                        <input
                          name="re_pic"
                          type="file"
                          class="form-control"
                          id="news-cover"
                        />
                      </div>
                    </div>
                    <input type="hidden" name="MM_insert" value="add_project">
                    <div class="card-footer text-center text-sm-end">
                      <button type="submit" name="submit" class="btn btn-primary">حفظ</button>
                      <button class="btn btn-secondary">إلغاء</button>
                    </div>
                  </form>
                </div>
              </div>
                                          <?php } else { ?>
               <center><h3>لا تملك تصريح للوصول للصفحة</h3></center>
              <?php } ?>
            </div>
            <!-- / Content -->

            <!-- Footer -->
 <?php require_once("include/footer.php"); ?>

3g86 2022