2008-10-02 Esteban Sanchez <estebans@artica.es>
* operation/reporting/reporting_viewer.php, operation/reporting/reporting_xml.php: Quote order field on get_db_all_rows_field_filter(), since it was a reserved word in SQL. Style corrections. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1129 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
a553e8613d
commit
9152344de7
|
@ -1,3 +1,10 @@
|
||||||
|
2008-10-02 Esteban Sanchez <estebans@artica.es>
|
||||||
|
|
||||||
|
* operation/reporting/reporting_viewer.php,
|
||||||
|
operation/reporting/reporting_xml.php: Quote order field on
|
||||||
|
get_db_all_rows_field_filter(), since it was a reserved word in SQL.
|
||||||
|
Style corrections.
|
||||||
|
|
||||||
2008-10-02 Esteban Sanchez <estebans@artica.es>
|
2008-10-02 Esteban Sanchez <estebans@artica.es>
|
||||||
|
|
||||||
* include/functions_db.php: Removed quotes when using $order_field so
|
* include/functions_db.php: Removed quotes when using $order_field so
|
||||||
|
|
|
@ -125,7 +125,7 @@ $table->rowclass = array ();
|
||||||
$table->rowclass[0] = 'datos3';
|
$table->rowclass[0] = 'datos3';
|
||||||
|
|
||||||
$group_name = dame_grupo ($report['id_group']);
|
$group_name = dame_grupo ($report['id_group']);
|
||||||
$contents = get_db_all_rows_field_filter ("treport_content","id_report",$id_report,"order");
|
$contents = get_db_all_rows_field_filter ("treport_content", "id_report", $id_report, "`order`");
|
||||||
if ($contents === false) {
|
if ($contents === false) {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
@ -163,7 +163,7 @@ foreach ($contents as $content) {
|
||||||
$data[2] = "<h4>".human_time_description ($content['period'])."</h4>";
|
$data[2] = "<h4>".human_time_description ($content['period'])."</h4>";
|
||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
|
|
||||||
$result = get_db_all_rows_field_filter ("tgraph_source","id_graph",$content['id_gs']);
|
$result = get_db_all_rows_field_filter ("tgraph_source", "id_graph", $content['id_gs']);
|
||||||
$modules = array ();
|
$modules = array ();
|
||||||
$weights = array ();
|
$weights = array ();
|
||||||
if ($result === false)
|
if ($result === false)
|
||||||
|
|
|
@ -64,7 +64,7 @@ if ($datetime > time ()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$group_name = dame_grupo ($report['id_group']);
|
$group_name = dame_grupo ($report['id_group']);
|
||||||
$contents = get_db_all_rows_field_filter ("treport_content","id_report",$id_report,"order");
|
$contents = get_db_all_rows_field_filter ('treport_content', 'id_report', $id_report, '`order`');
|
||||||
|
|
||||||
|
|
||||||
$xml["id"] = $id_report;
|
$xml["id"] = $id_report;
|
||||||
|
@ -209,10 +209,10 @@ foreach ($contents as $content) {
|
||||||
$data["objdata"] .= "]]>";
|
$data["objdata"] .= "]]>";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
array_push ($xml["reports"],$data);
|
array_push ($xml["reports"], $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
header('Content-type: application/xml; charset="utf-8"',true);
|
header ('Content-type: application/xml; charset="utf-8"',true);
|
||||||
|
|
||||||
|
|
||||||
function xml_array ($array) {
|
function xml_array ($array) {
|
||||||
|
|
Loading…
Reference in New Issue