http://img594.imageshack.us/img594/1858/errord.png
CODIGO DEL INDEX
Código PHP:
<? session_start(); ?>
<HTML>
<HEAD>
<TITLE> DPLUS3 </TITLE>
<? include "css.php"; ?> <!-- CSS -->
<? include "../js.php"; ?> <!-- JS -->
<SCRIPT LANGUAGE="JavaScript">
var cal = new CalendarPopup();
</SCRIPT>
</HEAD>
<? $path = "../../llibreria"; // INCLUDES
include $path."/grafics/taules/taula1/_taula1.php";
include $path."/yahoo_api/_taula_js.php";
include $path."/yahoo_api/_pestanyes.php";
include $path."/yahoo_api/_llista_drag&drop.php";
include $path."/yahoo_api/_msg.php";
include $path."/bbdd/_f.php";
include $path."/bbdd/_formulari.php";
include $path."/bbdd/_combo_sql.php";
include $path."/bbdd/_taula_sql.php";
include $path."/utils/utils.php";
include $path."/utils/dates.php";
include $path."/utils/crypt.php";
include $path."/utils/_mail_html.php";
//http://tinymce.moxiecode.com/index.php
//CONNEXIONS BBDD
$conn_my = mysql_connect ("xxxxxxx", "xxxxx","xxxxx"); //connexió mysql
mysql_select_db("xxxxx", $conn_my );
//VARIABLES DE SESSIÓ
$_SESSION["pwd"] = "xxx";
$_SESSION["conn_my"] = $conn_my;
//VALIDACIÓ ACCÈS
if ($_POST["PWD"] == "1")
$_SESSION["in"] = "si";
//OPCIÓ DEL SWITCH. RECOLLIDA DE PARAMETRES GET ENCRIPTATS
if ($_POST["_op"] != "" ) {
$r[0] = $_POST["_op"];
$r[1] = $_POST["offset"];
$r[2] = $_POST["limit"];
$r[3] = $_POST["paraula"];
$r[4] = $_POST["_id"];
} else {
$r = GET2Array( decrypt( substr($_SERVER["REQUEST_URI"],strpos($_SERVER["REQUEST_URI"],"?")+1,100), $_SESSION["pwd"]) ); //posa a l'array r els paràmetres GET (desencriptats)
}
?>
<BODY TOPMARGIN="0" LEFTMARGIN="0" class="yui-skin-sam">
<?
if ( strpos($r[1],".") >=0)
?>
<SCRIPT>//location.href = 'xxxxxxx'</SCRIPT>
<?
if ($_SESSION["in"] == "si") {
?>
<TABLE WIDTH="100%" HEIGHT="100%" BORDER="0">
<TR>
<TD WIDTH="270" VALIGN="TOP"><? taula1("blau",270,"100%","","./inc/_menu_esq.php","../"); ?></TD>
<TD VALIGN="TOP" ALIGN="CENTER" HEIGHT="100%"><BR><BR><BR>
<?
$z="op=".$r[0]."&offset=0&limit=25¶ula=&order=order by ";
$consulta = mysql_query ("SELECT COUNT(*) FROM __clients WHERE email LIKE '".$_POST["user"]."' AND pwd LIKE '".$_POST["pwd"]."'") or die (mysql_eror());
switch ( $r[0] ) {
case 1 : taula_sql(1,
"TABLE1",
"taula_sql",
"#FFFFFF,#EDF5FF",
"110,70,150,150,120,130",
"Nº DE TRABAJO,DATA,RESPONSABLE,PACIENTE,FICHERO 3D,SITUACIÓN",
"",
"my",
"SELECT fit.id,fit.n_feina,data_cat,responsable,pacient,3d,sit.situacio FROM __fitxes fit, __clients cli, __situacions sit WHERE fit.id_client=cli.id AND fit.situacio=sit.id AND cli.id = ".$_SESSION["id_client"]." AND fit.situacio = 5 ".$r[4]." LIMIT ".$r[1].",".$r[2],
$r[3],
$r[4],
25,
"",
"", //delete
$z."n_feina,".$z."fit.data,".$z."responsable,".$z."pacient,".$z."fit.3d,".$z."sit.situacio",
"op=3&id=,,,,op=2&id=",
"0,,,,5");
break;
case 2 :
?> <SCRIPT>location.href = 'xxxxx'</SCRIPT> <?
break;
case 3 : pestanyes(700,550,$pestanya,
"HACER OBSERVACIONES,RESPUESTA DE DPLUS3",
"./inc/3_observacions.php,./inc/3_resposta.php");
break;
case 4 : taula_sql(4,
"TABLE1",
"taula_sql",
"#FFFFFF,#EDF5FF",
"110,70,150,150,120,130",
"Nº DE TRABAJO,DATA,RESPONSABLE,PACIENTE,FICHERO 3D,SITUACIÓN",
"",
"my",
"SELECT fit.id,fit.n_feina,data_cat,responsable,pacient,3d,sit.situacio FROM __fitxes fit, __clients cli, __situacions sit WHERE fit.id_client=cli.id AND fit.situacio=sit.id AND cli.id = ".$_SESSION["id_client"]." AND fit.situacio NOT LIKE 5 AND fit.situacio NOT LIKE 12 ".$r[4]." LIMIT ".$r[1].",".$r[2],
$r[3],
$r[4],
25,
"",
"", //delete
$z."n_feina,".$z."fit.data,".$z."responsable,".$z."pacient,".$z."fit.3d,".$z."sit.situacio",
",,,,op=2&id=",
"0,,,,5");
break;
case 5 : include "./inc/27_pwd.php";
break;
case 7 : taula_sql(7,
"TABLE1",
"taula_sql",
"#FFFFFF,#EDF5FF",
"110,70,150,150,120,130",
"Nº DE TRABAJO,DATA,RESPONSABLE,PACIENTE,FICHERO 3D,SITUACIÓN",
"",
"my",
"SELECT fit.id,fit.n_feina,data_cat,responsable,pacient,3d,sit.situacio FROM __fitxes fit, __clients cli, __situacions sit WHERE fit.id_client=cli.id AND fit.situacio=sit.id AND cli.id = ".$_SESSION["id_client"]." AND fit.situacio = 12 ".$r[4]." LIMIT ".$r[1].",".$r[2],
$r[3],
$r[4],
25,
"",
"", //delete
$z."n_feina,".$z."fit.data,".$z."responsable,".$z."pacient,".$z."fit.3d,".$z."sit.situacio",
",,,,op=2&id=",
"0,,,,5");
break;
case 9 : include "inc/3_alta_fitxa.php";
;
break;
default : echo "<IMG SRC='../imgs/Logo.gif'>";
break;
}
if ($_SESSION["error"] == "" )
{
if ($_POST["_url_retorn"] != "")
echo '<SCRIPT>location.href = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"</SCRIPT>';
}
else {
echo "<SCRIPT>alert('".$_SESSION["error"]."')</SCRIPT>";
$_SESSION["error"] = "";
}
?>
</TD>
</TR>
</TABLE>
<? }
else
echo "<SCRIPT>location.href='xxxxxxxxxxxxxx'</SCRIPT>";
?>
</BODY>
</HTML>