2007-06-12 Sancho Lerena <slerena@artica.es>
* operation/reporting/graph_viewer.php: ACL to delete graph git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@506 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6a790b88de
commit
0a2e469767
|
@ -1,5 +1,7 @@
|
||||||
2007-06-12 Sancho Lerena <slerena@artica.es>
|
2007-06-12 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* operation/reporting/graph_viewer.php: ACL to delete graph
|
||||||
|
|
||||||
* include/functions_reporting.php: Added event reporting and alert
|
* include/functions_reporting.php: Added event reporting and alert
|
||||||
reporting items for user reports. Now user reports is fully
|
reporting items for user reports. Now user reports is fully
|
||||||
operative !
|
operative !
|
||||||
|
|
|
@ -142,7 +142,10 @@ if (isset($_GET["view_graph"])){
|
||||||
echo "<h2>".$lang_label["reporting"]." > ";
|
echo "<h2>".$lang_label["reporting"]." > ";
|
||||||
echo $lang_label["custom_graph_viewer"]."</h2>";
|
echo $lang_label["custom_graph_viewer"]."</h2>";
|
||||||
echo "<table width='500' cellpadding=4 cellpadding=4 class='databox_frame'>";
|
echo "<table width='500' cellpadding=4 cellpadding=4 class='databox_frame'>";
|
||||||
echo "<tr><th>".$lang_label["graph_name"]."<th>".$lang_label["description"]."<th>".$lang_label["view"]."<th>";
|
echo "<tr><th>".$lang_label["graph_name"]."<th>".$lang_label["description"]."<th>".$lang_label["view"];
|
||||||
|
if ((give_acl($id_usuario,0,"AW") == 1 ) OR (dame_admin($id_user)==1))
|
||||||
|
echo "<th>";
|
||||||
|
|
||||||
$color=1;
|
$color=1;
|
||||||
$sql="SELECT * FROM tgraph";
|
$sql="SELECT * FROM tgraph";
|
||||||
$res=mysql_query($sql);
|
$res=mysql_query($sql);
|
||||||
|
@ -163,9 +166,11 @@ while ($row = mysql_fetch_array($res)){
|
||||||
$id_graph = $row["id_graph"];
|
$id_graph = $row["id_graph"];
|
||||||
echo "<td valign='middle' class='$tdcolor' align='center'><a href='index.php?sec=reporting&sec2=operation/reporting/graph_viewer&view_graph=$id_graph'><img src='images/images.png'></A>";
|
echo "<td valign='middle' class='$tdcolor' align='center'><a href='index.php?sec=reporting&sec2=operation/reporting/graph_viewer&view_graph=$id_graph'><img src='images/images.png'></A>";
|
||||||
|
|
||||||
|
if ((give_acl($id_usuario,0,"AW") == 1 ) OR (dame_admin($id_user)==1)) {
|
||||||
echo "<td class='$tdcolor'><a href='index.php?sec=reporting&sec2=operation/reporting/graph_viewer&delete=$id_graph' ".'onClick="if (!confirm(\' '.$lang_label["are_you_sure"].'\')) return false;">';
|
echo "<td class='$tdcolor'><a href='index.php?sec=reporting&sec2=operation/reporting/graph_viewer&delete=$id_graph' ".'onClick="if (!confirm(\' '.$lang_label["are_you_sure"].'\')) return false;">';
|
||||||
echo "<img src='images/cross.png'></a></td>";
|
echo "<img src='images/cross.png'></a></td>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue