Ejemplo n.º 1
0
              <li class="single_line"><a href="<?php 
echo './index.php?cursor=' . $CURSOR_research;
?>
">Recherche</a></li>
              <li ><a href="<?php 
echo './index.php?cursor=' . $CURSOR_compteView;
?>
">Mon Compte</a></li>
              <li class="single_line"><a href="<?php 
echo './index.php?action=' . $ACTION_logOut;
?>
">Quitter</a></li>
            </ul>
            <select id="menu_select_user" onchange="changeRole(this)">
              <?php 
foreach (getRoleIdNameByIdUser($_SESSION["user"]->getId()) as $value) {
    if ($value["id"] == $_SESSION["systemData"]->getUserRole()) {
        echo '<option value="' . $value["id"] . '" selected="selected">' . $value["nom"] . '</option>';
    } else {
        echo '<option value="' . $value["id"] . '">' . $value["nom"] . '</option>';
    }
}
?>
            </select>
          </div>

          <div id="msg_box">
            <span id="span_msg">Message</span>
          </div>
           
          <div id="main_box">
Ejemplo n.º 2
0
					  
					  
					<?php 
    $tempArray[0][0] = 4;
    $tempArray[0][1] = " Collaborateur";
    $tempArray[0][2] = false;
    $tempArray[0][3] = "collabo";
    $tempArray[1][0] = 3;
    $tempArray[1][1] = " Responsable de projet";
    $tempArray[1][2] = false;
    $tempArray[1][3] = "respo";
    $tempArray[2][0] = 2;
    $tempArray[2][1] = " Administrateur";
    $tempArray[2][2] = false;
    $tempArray[2][3] = "admin";
    foreach (getRoleIdNameByIdUser($idCollabo) as $value) {
        for ($i = 0; $i < 3; $i++) {
            if ($tempArray[$i][0] == $value["id"]) {
                $tempArray[$i][2] = true;
            }
        }
    }
    for ($i = 0; $i < 3; $i++) {
        if ($tempArray[$i][2]) {
            echo '<input id="collabo_permission_check_' . $tempArray[$i][3] . '"  name="collabo_permission_check_' . $tempArray[$i][3] . '"  type="checkbox" value="check" checked="checked">' . $tempArray[$i][1] . '<p>';
        } else {
            echo '<input id="collabo_permission_check_' . $tempArray[$i][3] . '" name="collabo_permission_check_' . $tempArray[$i][3] . '"  type="checkbox" value="check">' . $tempArray[$i][1] . '<p>';
        }
    }
    ?>
					</div>