Bonjour Jencal et Felipe,
Tout d'abord, j'ai essayé de coller le ?><! mais ça n'a rien changé.
J'ai beaucoup de mal à comprendre moi-même ce qui se passe exactement.
Je vais essayer d'être plus claire
J'ai mis une image où je résume un peu ce qui se passe et ce que j'ai comme dossiers/fichiers. Dans cette image, on voit un exemple qui ne fonctionne pas mais c'est pour illustrer car ce n'est pas la seule fonction qui ne fonctionne pas, c'est vraiment tous les appels vers du javascript.
Voici le code du header.php :
<?php
//ini_set("ERROR_REPORTING", "E-ALL");
include('./inc/sys.var.php');
include('./inc/Objective.php');
include('./inc/Interview.php');
include('./inc/File.php');
include('./inc/User.php');
include('./inc/functions.php');
include ('./xajax_core/xajax.inc.php');
session_start();
ob_start();
$title="Eotim";
$sys_link = @mysql_connect($sys_server, $sys_user, $sys_pass);
$sys_database = @mysql_select_db($sys_base, $sys_link);
$xajax = new xajax();
//$xajax->configure('debug', true);
$xajax->register(XAJAX_FUNCTION, 'setProcess');
$xajax->register(XAJAX_FUNCTION, 'setObjective');
$xajax->register(XAJAX_FUNCTION, 'setTotalObjective');
$xajax->register(XAJAX_FUNCTION, 'alerter');
$xajax->register(XAJAX_FUNCTION, 'addProcess');
$xajax->register(XAJAX_FUNCTION, 'add_interview');
$xajax->register(XAJAX_FUNCTION, 'delete_user');
$xajax->register(XAJAX_FUNCTION, 'hide_file');
$xajax->register(XAJAX_FUNCTION, 'delete_job');
$xajax->register(XAJAX_FUNCTION, 'submitInterview');
$xajax->register(XAJAX_FUNCTION, 'lock_job');
$xajax->register(XAJAX_FUNCTION, 'set_current_prospect');
$xajax->register(XAJAX_FUNCTION, 'confirm_objective');
$xajax->register(XAJAX_FUNCTION, 'add_objective');
$xajax->register(XAJAX_FUNCTION, 'confirm_delete_obj');
$xajax->register(XAJAX_FUNCTION, 'delete_obj');
$xajax->register(XAJAX_FUNCTION, 'edit_active_job');
/*
$rqst =& $xajax->register(XAJAX_FUNCTION, 'setProcess');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'setObjective');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'setTotalObjective');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'alerter');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'addProcess');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'add_interview');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'delete_user');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'hide_file');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'delete_job');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'submitInterview');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'lock_job');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'set_current_prospect');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'confirm_objective');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'add_objective');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'confirm_delete_obj');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'delete_obj');
$rqst =& $xajax->register(XAJAX_FUNCTION, 'edit_active_job');
*/
$xajax->processRequest();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr_FR" lang="fr_FR">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" media="all" type="text/css" href="./inc/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" media="all" type="text/css" href="./inc/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" media="all" type="text/css" href="./inc/bootstrap/css/bootstrap-responsive.css" />
<link rel="stylesheet" media="all" type="text/css" href="./inc/bootstrap/css/bootstrap-responsive.min.css" />
<link rel="stylesheet" media="all" type="text/css" href="./styles/screen.css" />
<!--<script src="./inc/jquery/jquery-1.7.2.min.js" type="text/javascript" ></script>-->
<script src="./inc/jquery/jquery-1.7.2.js" type="text/javascript" ></script>
<script src="./inc/bootstrap/js/bootstrap.js" type="text/javascript" ></script>
<script src="./inc/scripts.js" type="text/javascript"></script>
<script src="./inc/bootstrap/js/bootstrap.min.js" type="text/javascript" ></script>
<link rel="stylesheet" href="./styles/print.css" type="text/css" media="print" />
<link rel="alternate" type="application/rss+xml" href="./rss.xml" title="Eotim - offres d'emploi">
<?php $xajax->printJavascript(); ?>
<script>
function findPos(obj) {
var obj2 = obj;
var curtop = 0;
var curleft = 0;
if (document.getElementById || document.all) {
do {
curleft += obj.offsetLeft-obj.scrollLeft;
curtop += obj.offsetTop-obj.scrollTop;
obj = obj.offsetParent;
obj2 = obj2.parentNode;
while (obj2!=obj) {
curleft -= obj2.scrollLeft;
curtop -= obj2.scrollTop;
obj2 = obj2.parentNode;
}
} while (obj.offsetParent)
} else if (document.layers) {
curtop += obj.y;
curleft += obj.x;
}
return [curtop, curleft];
}
</script>
<script type="text/javascript" src="./inc/jquery/jquery-1.7.2.js" ></script>
<script type="text/javascript" src="./inc/bootstrap/js/bootstrap.js" ></script>
<script type="text/javascript" src="./inc/bootstrap/js/bootstrap.min.js" ></script>
<script type="text/javascript" src="./inc/bootstrap/js/bootstrap-dropdown.js" ></script>
<link rel="stylesheet" href="./inc/Kalendae/build/kalendae.css" type="text/css" charset="utf-8" />
<script src="./inc/Kalendae/build/kalendae.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css" media="screen">
.kalendae .k-days span.closed {
background:red;
}
</style>
<title><?php echo $title;?></title>
</head>
<body>
<!--
<div class="header">
<img src="./img/stats.png" style="margin-top: 8px; float: left; margin-left: 10%" width="40px"></img><h1>Eostats</h1>
<a href="index.php"><h2>Stats</h2><p>objectifs et process</p></a>
<a href="interviews.php"><h2>Entretiens</h2><p>des candidats</p></a>
<a href="active_jobs.php"><h2>Postes</h2><p>Liste des postes actifs</p></a>
<a href="files.php"><h2>Fichiers</h2><p>à télécharger/uploader</p></a>
<a href="logout.php" style="width: 20px;"><img src="./img/logout.png" style="margin-top: 10px; margin-left: 150px" width="40px"></img></a>
</div>
-->
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div id="menu">
<a class="brand" href="index.php">Eostats</a>
<ul class="nav nav-pills">
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">
Stats et Process
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<?php
$sql= @mysql_query("SELECT * FROM users ORDER BY name") or die(mysql_error());
while ($row=mysql_fetch_assoc($sql)){
$id_user=$row['id'];
$name_user=$row['name'];
?>
<li>
<a href="./view_process.php?user=<?php echo $id_user;?>"><?php echo $name_user;?></a>
</li>
<?php
}
?>
</ul>
</li>
<li>
<a href="./interviews.php">Entretiens</a>
</li>
<li>
<a href="./active_jobs.php">Postes</a>
</li>
<li>
<a href="./files.php">Fichiers</a>
</li>
<li>
<a class="" href="./logout.php">
<i class="icon-off icon-white"></i>
Logout
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="clearer"></div>
<div class="container" id="wrapper" style="width: 100%">
Par rapport à l'image, j'ai réussi à retrouver où se trouve la fonction "xajax_setObjective", elle se trouve dans le fichier Objective.php, voici la fonction :
function makeHTML($title='', $type_bar){
$html='<div class="div_objective">';
if (isset($this->title)) $html.='<h1>'.$this->title.'</h1>';
else{
if (isset($title)) $html.='<h1>'.$title.'</h1>';
}
if ($this->id!=1 && $_SESSION['eotim_lvl']==9) $html.='<img title="Supprimer cet objectif" src="img/delete.gif" onclick="xajax_confirm_delete_obj(\''.$this->id.'\')"></img>';
$html.='Objectifs- CA';
$width=500;
$html.='<br/><br/>';
if ($this->totalValue==0) $ratio=0;
else $ratio=$this->currentValue/$this->totalValue;
$currentWidth=$ratio*$width;
$leftWidth=$width-$currentWidth;
$html.='<span>'.round($ratio*100,2).'%</span>';
$action='';
$action2='';
$style='';
$class="progress progress-danger progress-striped active";
if ($type_bar=='challenge') $class="progress progress-success progress-striped active";
if ($type_bar=='obj') $class="progress progress-info progress-striped active";
if (($_SESSION['eotim_lvl']==9) || ($this->user==$_SESSION['eotim_user_id'])){
$action='xajax_setObjective(\''.$this->id.'\')';
$action2='onclick="xajax_setTotalObjective(\''.$this->id.'\')"';
$style='cursor: pointer;';
}
$html.='<br/>
<div id="bar_progress" style="width: '.$width.'px; '.$style.'" class="'.$class.'" onclick="'.$action.'">
<div class="bar" style="width: '.$currentWidth.'px; height: 80px;"></div>
</div>
<div class="clearer"></div>
<span style="float:left;">Réalisé: '.number_format($this->currentValue).'€</span><br/>
<span style="float:right;" '.$action2.'>Objectifs: '.number_format($this->totalValue).'€</span>
';
$html.='<br/>';
$html.='</div>';
return $html;
}
Je vous remercie pour vos réponses