Beispiel #1
0
 public function __construct($user)
 {
     $this->id = $user['id'];
     $this->dep_id = $user['dep_id'];
     $this->position_id = $user['position_id'];
     $this->email = $user['email'];
     $this->password = $user['password'];
     $this->avatar = $user['avatar'];
     $this->firstname = $user['firstname'];
     $this->lastname = $user['lastname'];
     $this->location = $user['location'];
     $this->about = $user['about'];
     $this->active = $user['active'];
     $this->dep = get_dep($this->dep_id);
     /* dep_id ни объект кылып берип жатабыз */
     $this->position = get_position($this->position_id);
     /* position_id ни объект кылып берип жатабыз */
 }
Beispiel #2
0
<?php

include_once '../config/config.php';
/* конфигурация файлын кошобуз, баардык конфигурацияларыбыз ушул жерде болот */
include_once PROJECT_PATH . '/partials/header.php';
/* проекттин баш жагын кошот */
$dep = get_dep($_GET['dep']);
?>

<div class="container">
    <?php 
include_once PROJECT_PATH . "/partials/menu.php";
?>

    <div class="row">
        <div class="col-sm-4">

            <div class="card hovercard">
                <div class="cardheader">

                </div>
                <div class="info">
                    <div class="title">
                        <span class="text-primary"><?php 
echo $dep->getFullname();
?>
</span>
                    </div>
                </div>
                <div class="bottom">
                    <!--
Beispiel #3
0
        echo '<div><input class="btn btn-primary span2" type="submit"  name="Submit" value="Xóa dự án" ></div>';
        echo "<br>";
        echo "</form>";
    }
    echo '</div>';
}
if ($dep_auth['Authority'] >= 4) {
    echo '<div class="block block-themed">';
    echo '<div class="block-title">';
    echo "<form action='index.php' id='inputform' method='post' class='form-horizontal' >";
    echo '<input type="hidden" name="action" value="add_project">';
    echo '<h4><input type="text" id="general-text" name="Name" placeholder="Tên dự án" ></h4>';
    echo '</div>';
    echo '<div class="label label-inverse">Thông tin</div>';
    echo '<div><textarea name="Info" form="inputform">Thông tin dự án</textarea></div>';
    $phong = get_dep();
    echo '<div><select id="general-select" name="DId" size="1">';
    foreach ($phong as $key) {
        echo '<option value=' . $key['DId'] . '>';
        echo $key['Name'];
        echo '</option>';
    }
    echo '</select></div>';
    echo '<input class="btn btn-primary span1" type="submit"  name="Submit" value="Thêm" >';
    echo "</form>";
    echo '</div>';
}
?>
    <a href=""></a>
</div>
<!-- END Page Content -->
<?php

include '../Controller/dep_controller.php';
session_start();
$department_id = $_GET['department_id'];
// $department_id = '15';
$data = get_dep($department_id);
$dep_id = $data[0];
$dep_name = $data[1];
$dep_year = $data[2];
$dep_class = $data[3];
//kol entries al courses fe array wa7da, al course code w wrah al course name t7t hna v
$courses_data = get_courses($department_id);
$dep_years = get_years($dep_name, $dep_class);
?>
<html lang="en">
<style type="text/css">
  .navbar {
    border-radius: 0px;
    margin-right: -98px;
    margin-left: -99px;
    font-family: 'Handlee', cursive;
   }
  .fa 
  {
    color: #6C7A89;
    border-radius: 25px;
    border: 2px solid #6C7A89;
    padding: 20px; 
    top:100px;
  }
<div id="page-content">
    <!-- Breadcrumb -->
    <!-- You can have the breadcrumb stick on scrolling just by adding the following attributes with their values (data-spy="affix" data-offset-top="250") -->
    <!-- You can try it on other elements too :-), the sticky position and style can be adjusted in the css/main.css with .affix class -->
    <ul class="breadcrumb" data-spy="affix" data-offset-top="250">
        <li>
            <a href="index.php"><i class="glyphicon-display"></i></a> <span class="divider"><i class="icon-angle-right"></i></span>
        </li>
        <li class="active"><a href="">Phòng ban</a></li>
    </ul>
    <!-- END Breadcrumb -->

    <!-- Default Tabs Block -->

    <?php 
$name = get_dep();
$dep_auth = get_dep_auth($_SESSION['is_valid']);
$not_in_dep = get_not_in_dep();
foreach ($name as $i) {
    echo '<div class="block block-themed">';
    echo '<div class="block-title">';
    echo '<h4>' . $i['Name'] . '</h4>';
    echo '</div>';
    echo '<div class="label label-inverse">Thông tin</div>';
    echo '<p>' . $i['Info'] . '</p>';
    // Check quyền hạn
    // if (($dep_auth['DId']==$i['DId']) && ($dep_auth['Authority']>=2)) {
    // }
    echo '<div class="label label-inverse">Nhân viên</div>';
    $work = get_name_pos($i['DId']);
    echo '<div class="panel panel-default">';