2007-06-08 Raul Mateos <raulofpandora@gmail.com>
* include/styles/god.css: Updated god51. * include/languages/language_en.php: Updated. * operation/reporting/custom_reporting, operation/users/user.php, godmode/agentes/module_manager.php, godmode/users/configure_user.php, godmode/reporting/reporting_builder.php: Updated with new table style. * images/reporting_edit.png: Added icon for creating reports in administration mode. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@495 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
47579d155d
commit
3697ee4c57
|
@ -1,3 +1,22 @@
|
|||
2007-06-08 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* include/styles/god.css: Updated god51.
|
||||
|
||||
* include/languages/language_en.php: Updated.
|
||||
|
||||
* operation/reporting/custom_reporting, operation/users/user.php,
|
||||
godmode/agentes/module_manager.php, godmode/users/configure_user.php,
|
||||
godmode/reporting/reporting_builder.php: Updated with new table style.
|
||||
|
||||
* images/reporting_edit.png: Added icon for creating reports in
|
||||
administration mode.
|
||||
|
||||
2007-06-07 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* operation/agentes/status_monitor.php, estado_alertas.php,
|
||||
operation/incidents/*.php, operation/events/events.php: Closed html
|
||||
tags. Updated with new table style.
|
||||
|
||||
2007-06-07 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* include/styles/god.css: Added god51 (reporting).
|
||||
|
|
|
@ -173,13 +173,13 @@ echo "<h3>".$lang_label["assigned_modules"]."
|
|||
if ($row=mysql_num_rows($result)){
|
||||
echo '<table width="750" cellpadding="4" cellspacing="4" class="databox">';
|
||||
echo '<tr>';
|
||||
echo "<th>".$lang_label["module_name"];
|
||||
echo "<th>".$lang_label["type"];
|
||||
echo "<th>".$lang_label["interval"];
|
||||
echo "<th>".$lang_label["description"];
|
||||
echo "<th>".$lang_label["module_group"];
|
||||
echo "<th>".$lang_label["max_min"];
|
||||
echo "<th width=65>".$lang_label["action"];
|
||||
echo "<th>".$lang_label["module_name"]."</th>";
|
||||
echo "<th>".$lang_label["type"]."</th>";
|
||||
echo "<th>".$lang_label["interval"]."</th>";
|
||||
echo "<th>".$lang_label["description"]."</th>";
|
||||
echo "<th>".$lang_label["module_group"]."</th>";
|
||||
echo "<th>".$lang_label["max_min"]."</th>";
|
||||
echo "<th width=65>".$lang_label["action"]."</th>";
|
||||
$color=1;$last_modulegroup = "0";
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
if ($color == 1){
|
||||
|
@ -368,7 +368,7 @@ if (isset($_POST["oid"])){
|
|||
// y el cabron de PHP me devuelve indices a partir de 1 !!!!!!!
|
||||
//echo "$i: $a[$i]<br />\n";
|
||||
$snmp_output = substr($i,0,35)." - ".substr($snmpwalk[$i],0,20);
|
||||
echo "<option value=$i>".salida_limpia(substr($snmp_output,0,55));
|
||||
echo "<option value=$i>".salida_limpia(substr($snmp_output,0,55))."</option>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -41,9 +41,9 @@ if (isset($_GET["delete"])){
|
|||
$id_content = $_GET["delete"];
|
||||
$sql = "DELETE FROM treport_content WHERE id_rc = $id_content";
|
||||
if ($res=mysql_query($sql))
|
||||
$result = "<h2 class=suc>".$lang_label["delete_ok"]."</h2>";
|
||||
$result = "<h3 class=suc>".$lang_label["delete_ok"]."</h3>";
|
||||
else
|
||||
$result = "<h2 class=error>".$lang_label["delete_no"]."</h2>";
|
||||
$result = "<h3 class=error>".$lang_label["delete_no"]."</h3>";
|
||||
echo $result;
|
||||
}
|
||||
|
||||
|
@ -55,9 +55,9 @@ if (isset($_GET["delete_report"])){
|
|||
$res=mysql_query($sql);
|
||||
$res2=mysql_query($sql2);
|
||||
if ($res AND $res2)
|
||||
$result = "<h2 class=suc>".$lang_label["delete_ok"]."</h2>";
|
||||
$result = "<h3 class=suc>".$lang_label["delete_reporting_ok"]."</h3>";
|
||||
else
|
||||
$result = "<h2 class=error>".$lang_label["delete_no"]."</h2>";
|
||||
$result = "<h3 class=error>".$lang_label["delete_reporting_no"]."</h3>";
|
||||
echo $result;
|
||||
}
|
||||
|
||||
|
@ -86,9 +86,9 @@ if (isset($_GET["add_module"])){
|
|||
|
||||
$sql = "INSERT INTO treport_content (id_report, id_gs, id_agent_module, type, sla_max, sla_min, sla_limit, period) VALUES ('$id_report', '$my_cg', '$my_id_module', '$my_type', '$my_slamax', '$my_slamin', '$my_slalimit', '$my_period')";
|
||||
if ($res=mysql_query($sql))
|
||||
$result = "<h2 class=suc>".$lang_label["create_ok"]."</h2>";
|
||||
$result = "<h3 class=suc>".$lang_label["create_reporting_ok"]."</h3>";
|
||||
else
|
||||
$result = "<h2 class=error>".$lang_label["create_no"]."</h2>";
|
||||
$result = "<h3 class=error>".$lang_label["create_reporting_no"]."</h3>";
|
||||
echo $result;
|
||||
}
|
||||
|
||||
|
@ -107,9 +107,9 @@ if (isset($_POST["createmode"])){
|
|||
$form_id_user = $id_user;
|
||||
$sql = "INSERT INTO treport (name, description, id_user, private) VALUES ('$form_report_name', '$form_report_description', '$form_id_user', '$form_report_private')";
|
||||
if ($res=mysql_query($sql))
|
||||
$result = "<h1 class=suc>".$lang_label["create_ok"]."</h1>";
|
||||
$result = "<h3 class=suc>".$lang_label["create_reporting_ok"]."</h3>";
|
||||
else
|
||||
$result = "<h1 class=error>".$lang_label["create_no"]."</h1>";
|
||||
$result = "<h3 class=error>".$lang_label["create_reporting_no"]."</h3>";
|
||||
$id_report = mysql_insert_id();
|
||||
// UPDATE REPORT DATA
|
||||
} else {
|
||||
|
@ -159,8 +159,8 @@ if ($createmode==2 OR isset($_GET["id"]) OR (isset($_POST["id_report"]))) {
|
|||
$form_id_user = $id_user;
|
||||
$createmode = 1;
|
||||
}
|
||||
|
||||
echo "<h1>".$lang_label["custom_reporting_builder"]."</h1>";
|
||||
echo "<h2>".$lang_label["reporting"]." > ";
|
||||
echo $lang_label["custom_reporting_builder"]."</h2>";
|
||||
echo "<form method='post' action='index.php?sec=greporting&sec2=godmode/reporting/reporting_builder'>";
|
||||
echo "<input type='hidden' name=createmode value='$createmode'>";
|
||||
if ($createmode == 0){
|
||||
|
@ -215,7 +215,7 @@ if ($createmode==2 OR isset($_GET["id"]) OR (isset($_POST["id_report"]))) {
|
|||
|
||||
echo "<tr>";
|
||||
echo "<td class='datos'><b>".$lang_label["source_agent"];
|
||||
echo "</b>";
|
||||
echo "</b></td>";
|
||||
echo "<td class='datos' colspan=2><select name='id_agent' style='width:180px;'>";
|
||||
if ($id_agent != 0)
|
||||
echo "<option value='$id_agent'>".dame_nombre_agente($id_agent);
|
||||
|
@ -223,13 +223,13 @@ if ($createmode==2 OR isset($_GET["id"]) OR (isset($_POST["id_report"]))) {
|
|||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
if ( $id_agent != $row["id_agente"])
|
||||
echo "<option value=".$row["id_agente"].">".$row["nombre"];
|
||||
echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
|
||||
}
|
||||
echo '</select>';
|
||||
echo '</select></td>';
|
||||
|
||||
|
||||
echo "<td class='datos' colspan=1 align='right'><input type=submit name='update_agent' class='sub upd' value='".$lang_label["get_info"]."'>";
|
||||
echo "</form>";
|
||||
echo "<td class='datos' colspan='1' align='right'>
|
||||
<input type=submit name='update_agent' class='sub upd' value='".$lang_label["get_info"]."'>";
|
||||
echo "</td></form>";
|
||||
|
||||
// Modules combo
|
||||
// -----------------------
|
||||
|
@ -242,13 +242,13 @@ if ($createmode==2 OR isset($_GET["id"]) OR (isset($_POST["id_report"]))) {
|
|||
echo "<b>".$lang_label["modules"]."</b>";
|
||||
echo "<td class='datos2' colspan=3>";
|
||||
echo "<select name='id_module' size=1 style='width:180px;'>";
|
||||
echo "<option value=-1> --";
|
||||
echo "<option value=-1> -- </option>";
|
||||
if ($id_agent != 0){
|
||||
// Populate Module/Agent combo
|
||||
$sql1="SELECT * FROM tagente_modulo WHERE id_agente = ".$id_agent. " order by nombre";
|
||||
$sql1="SELECT * FROM tagente_modulo WHERE id_agente = ".$id_agent. " ORDER BY nombre";
|
||||
$result = mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value=".$row["id_agente_modulo"].">".$row["nombre"];
|
||||
echo "<option value=".$row["id_agente_modulo"].">".$row["nombre"]."</option>";
|
||||
}
|
||||
}
|
||||
echo "</select>";
|
||||
|
@ -258,15 +258,15 @@ if ($createmode==2 OR isset($_GET["id"]) OR (isset($_POST["id_report"]))) {
|
|||
echo "<b>".$lang_label["reporting_type"]."</b>";
|
||||
echo "<td class='datos' colspan=3>";
|
||||
echo "<select name='type' size=1 style='width:180px;'>";
|
||||
echo "<option value=0>".$lang_label["simple_graph"];
|
||||
echo "<option value=1>".$lang_label["custom_graph"];
|
||||
echo "<option value=2>".$lang_label["SLA"];
|
||||
echo "<option value=3>".$lang_label["event_report"];
|
||||
echo "<option value=4>".$lang_label["alert_report"];
|
||||
echo "<option value=5>".$lang_label["monitor_report"];
|
||||
echo "<option value=6>".$lang_label["avg_value"];
|
||||
echo "<option value=7>".$lang_label["max_value"];
|
||||
echo "<option value=8>".$lang_label["min_value"];
|
||||
echo "<option value=0>".$lang_label["simple_graph"]."</option>";
|
||||
echo "<option value=1>".$lang_label["custom_graph"]."</option>";
|
||||
echo "<option value=2>".$lang_label["SLA"]."</option>";
|
||||
echo "<option value=3>".$lang_label["event_report"]."</option>";
|
||||
echo "<option value=4>".$lang_label["alert_report"]."</option>";
|
||||
echo "<option value=5>".$lang_label["monitor_report"]."</option>";
|
||||
echo "<option value=6>".$lang_label["avg_value"]."</option>";
|
||||
echo "<option value=7>".$lang_label["max_value"]."</option>";
|
||||
echo "<option value=8>".$lang_label["min_value"]."</option>";
|
||||
echo "</select>";
|
||||
|
||||
// Custom graph
|
||||
|
@ -288,39 +288,39 @@ if ($createmode==2 OR isset($_GET["id"]) OR (isset($_POST["id_report"]))) {
|
|||
echo "<b>".$lang_label["period"]."</b>";
|
||||
echo "<td class='datos' colspan=3>";
|
||||
echo "<select name='period'>";
|
||||
echo "<option value=3600>"."Hour";
|
||||
echo "<option value=7200>"."2 Hours";
|
||||
echo "<option value=10800>"."3 Hours";
|
||||
echo "<option value=21600>"."6 Hours";
|
||||
echo "<option value=43200>"."12 Hours";
|
||||
echo "<option value=86400>"."Last day";
|
||||
echo "<option value=172800>"."Two days";
|
||||
echo "<option value=604800>"."Last Week";
|
||||
echo "<option value=1296000>"."15 days";
|
||||
echo "<option value=2592000>"."Last Month";
|
||||
echo "<option value=5184000>"."Two Month";
|
||||
echo "<option value=15552000>"."Six Months";
|
||||
echo "<option value=3600>"."Hour</option>";
|
||||
echo "<option value=7200>"."2 Hours</option>";
|
||||
echo "<option value=10800>"."3 Hours</option>";
|
||||
echo "<option value=21600>"."6 Hours</option>";
|
||||
echo "<option value=43200>"."12 Hours</option>";
|
||||
echo "<option value=86400>"."Last day</option>";
|
||||
echo "<option value=172800>"."Two days</option>";
|
||||
echo "<option value=604800>"."Last Week</option>";
|
||||
echo "<option value=1296000>"."15 days</option>";
|
||||
echo "<option value=2592000>"."Last Month</option>";
|
||||
echo "<option value=5184000>"."Two Month</option>";
|
||||
echo "<option value=15552000>"."Six Months</option>";
|
||||
echo "</select>";
|
||||
|
||||
// SLA Max
|
||||
echo "<tr><td class='datos2'>";
|
||||
echo "<b>".$lang_label["sla_max"]."</b>";
|
||||
echo "<b>".$lang_label["sla_max"]."</b></td>";
|
||||
echo "<td class='datos2'>";
|
||||
echo "<input type=text size=6 name='sla_max'>";
|
||||
echo "<input type=text size=6 name='sla_max'></td>";
|
||||
// SLA Min
|
||||
echo "<td class='datos2'>";
|
||||
echo "<b>".$lang_label["sla_min"]."</b>";
|
||||
echo "<td class='datos2'>";
|
||||
echo "<input type=text size=6 name='sla_min'>";
|
||||
echo "<input type=text size=6 name='sla_min'></td>";
|
||||
|
||||
// SLA limit
|
||||
echo "<tr><td class='datos'>";
|
||||
echo "<b>".$lang_label["sla_limit"]."</b>";
|
||||
echo "<td class='datos'>";
|
||||
echo "<input type=text size=6 name='sla_limit'>";
|
||||
echo "<input type='text' size='6' name='sla_limit'></td>";
|
||||
echo "</table>";
|
||||
|
||||
echo "<table width=500 cellspacing=4 cellpading=4'>";
|
||||
echo "<table width='500' cellspacing='4' cellpading='4'>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<input type='submit' class='sub wand' value='".$lang_label["add"]."'>";
|
||||
echo "</table>";
|
||||
|
@ -332,7 +332,12 @@ if ($createmode==2 OR isset($_GET["id"]) OR (isset($_POST["id_report"]))) {
|
|||
|
||||
echo "<h2>".$lang_label["report_items"]."</h2>";
|
||||
echo "<table width=500 cellspacing=4 cellpadding=4 class='databox'>";
|
||||
echo "<tr><th>".$lang_label["type"]."<th>".$lang_label["agent_name"]."<th>".$lang_label["module_name"]."<th>".$lang_label["period"]."<th>".$lang_label["delete"];
|
||||
echo "<tr>
|
||||
<th>".$lang_label["type"]."</th>
|
||||
<th>".$lang_label["agent_name"]."</th>
|
||||
<th>".$lang_label["module_name"]."</th>
|
||||
<th>".$lang_label["period"]."</th>
|
||||
<th>".$lang_label["delete"]."</th>";
|
||||
$sql = "SELECT * FROM treport_content WHERE id_report = $id_report";
|
||||
$res=mysql_query($sql);
|
||||
$color = 0;
|
||||
|
@ -374,7 +379,7 @@ if ($createmode==2 OR isset($_GET["id"]) OR (isset($_POST["id_report"]))) {
|
|||
echo "<td class='$tdcolor'>".$period;
|
||||
echo "<td class='$tdcolor' align='center'>";
|
||||
if ($form_id_user == $id_user){
|
||||
echo "<a href='index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&id=1&delete=$id_rc'><img src='images/cancel.gif'></A>";
|
||||
echo "<a href='index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&id=1&delete=$id_rc'><img src='images/cross.png'></a>";
|
||||
}
|
||||
}
|
||||
echo "</table>";
|
||||
|
@ -384,9 +389,14 @@ if ($createmode==2 OR isset($_GET["id"]) OR (isset($_POST["id_report"]))) {
|
|||
|
||||
// Report LIST
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
echo "<h3>".$lang_label["custom_reporting"]."</h3>";
|
||||
echo "<h2>".$lang_label["reporting"]." > ";
|
||||
echo $lang_label["custom_reporting"]."</h2>";
|
||||
echo "<table width='500' cellpadding=4 cellpadding=4 class='databox'>";
|
||||
echo "<tr><th>".$lang_label["report_name"]."<th>".$lang_label["description"]."<th>".$lang_label["Manage"]."<th>".$lang_label["delete"];
|
||||
echo "<tr>
|
||||
<th>".$lang_label["report_name"]."</th>
|
||||
<th>".$lang_label["description"]."</th>
|
||||
<th>".$lang_label["Manage"]."</th>
|
||||
<th>".$lang_label["delete"]."</th>";
|
||||
$color=1;
|
||||
$sql="SELECT * FROM treport";
|
||||
$res=mysql_query($sql);
|
||||
|
@ -405,15 +415,19 @@ if ($createmode==2 OR isset($_GET["id"]) OR (isset($_POST["id_report"]))) {
|
|||
echo "<td valign='top' class='$tdcolor'>".$row["name"];
|
||||
echo "<td class='$tdcolor'>".$row["description"];
|
||||
$id_report = $row["id_report"];
|
||||
echo "<td valign='middle' class='$tdcolor' align='center'><a href='index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&id=$id_report'><img src='images/setup.png'></A>";
|
||||
echo "<td valign='middle' class='$tdcolor' align='center'><a href='index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&delete_report=$id_report'><img src='images/cancel.gif'></A>";
|
||||
echo "<td valign='middle' class='$tdcolor' align='center'>
|
||||
<a href='index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&id=$id_report'>
|
||||
<img src='images/setup.png'></a></td>";
|
||||
echo "<td valign='middle' class='$tdcolor' align='center'>
|
||||
<a href='index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&delete_report=$id_report'>
|
||||
<img src='images/cross.png'></a></td>";
|
||||
}
|
||||
}
|
||||
echo "</table>";
|
||||
echo "<table width=500 cellpadding=4 cellpadding=4>";
|
||||
echo "<form method=post action='index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&create_report=1'>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<input type=submit class='sub wizard' value='".$lang_label["add"]."'>";
|
||||
echo "<input type=submit class='sub next' value='".$lang_label["add"]."'>";
|
||||
echo "</form>";
|
||||
echo "</table>";
|
||||
}
|
||||
|
|
|
@ -229,9 +229,9 @@ if (comprueba_login() == 0)
|
|||
$result=mysql_query($sql1);
|
||||
|
||||
echo '<h3>'.$lang_label["listGroupUser"].'<a href="help/'.$help_code.'/chap2.php#22" target="_help" class="help"> <span>'.$lang_label["help"].'</span></a></h3>';
|
||||
echo "<table width='500' cellpadding='3' cellspacing='3' class='fon'>";
|
||||
echo "<table width='500' cellpadding='4' cellspacing='4' class='databox'>";
|
||||
if (mysql_num_rows($result)){
|
||||
echo '<tr><td class="lb" rowspan="'.mysql_num_rows($result).'" width="5">';
|
||||
echo '<tr>';
|
||||
$color=1;
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
if ($color == 1){
|
||||
|
@ -247,9 +247,10 @@ if (comprueba_login() == 0)
|
|||
echo "<b>".dame_grupo($row["id_grupo"])."</b>";
|
||||
echo '<td class="'.$tdcolor.'t"><a href="index.php?sec=gusuarios&sec2=godmode/users/configure_user&id_usuario_mio='.$id_usuario_mio.'&borrar_grupo='.$row["id_up"].' " onClick="if (!confirm(\' '.$lang_label["are_you_sure"].'\')) return false;"><img border=0 src="images/cross.png"></a><tr>';
|
||||
}
|
||||
echo "<tr><td colspan='3'><div class='raya'></div></td></tr>";
|
||||
}
|
||||
else { echo '<tr><td class="red" colspan="3">'.$lang_label["no_profile"].'</td></tr>';}
|
||||
else {
|
||||
echo '<div class="nf">'.$lang_label["no_profile"].'</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 986 B |
|
@ -802,8 +802,7 @@ $lang_label["period"]="Period";
|
|||
$lang_label["reporting_item_add"]="Add item to report";
|
||||
|
||||
$lang_label["template"]="Template";
|
||||
$lang_label["add_mod_ok"]="Modules added successfully";
|
||||
|
||||
$lang_label["add_mod_ok"]="Modules successfully added ";
|
||||
|
||||
$lang_label["simple_graph"] = "Simple graph";
|
||||
$lang_label["custom_graph"] = "Custom graph";
|
||||
|
@ -821,6 +820,12 @@ $lang_label["sla_min"] = "SLA Min. (value)";
|
|||
$lang_label["sla_limit"] = "SLA Limit (%)";
|
||||
$lang_label["up"]="Up";
|
||||
$lang_label["down"]="Down";
|
||||
|
||||
$lang_label["create_reporting_ok"]="Reporting successfully created";
|
||||
$lang_label["create_reporting_no"]="There was a problem creating reporting";
|
||||
$lang_label["delete_reporting_ok"]="Reporting successfully deleted";
|
||||
$lang_label["delete_reporting_no"]="There was a problem deleting reporting";
|
||||
|
||||
global $lang_label;
|
||||
global $help_label;
|
||||
?>
|
||||
|
|
|
@ -37,7 +37,7 @@ div#god1>ul, div#god2>ul, div#god3>ul, div#god4>ul, div#god5>ul, div#god51>ul, d
|
|||
background: url(../../images/god5.gif) no-repeat 3px 3px;
|
||||
}
|
||||
#god51 li, #god51 li:hover, #god51s li {
|
||||
background: url(../../images/reporting.png) no-repeat 4px 4px;
|
||||
background: url(../../images/reporting_edit.png) no-repeat 4px 4px;
|
||||
}
|
||||
#god6 li, #god6 li:hover, #god6s li {
|
||||
background: url(../../images/god6.gif) no-repeat 4px 3px;
|
||||
|
@ -62,7 +62,8 @@ div.arrowg>ul, div.arrowgs>ul {
|
|||
#god a:hover,
|
||||
#god1 li:hover, #god1s li, #god2 li:hover, #god2s li, #god3 li:hover, #god3s li,
|
||||
#god4 li:hover, #god4s li, #god5 li:hover, #god5s li, #god6 li:hover, #god6s li,
|
||||
#god7 li:hover, #god7s li, #god8 li:hover, #god8s li, #god_module li:hover, #god_module_sel li, #god51 li:hover, #god51s li,
|
||||
#god7 li:hover, #god7s li, #god8 li:hover, #god8s li,
|
||||
#god_module li:hover, #god_module_sel li, #god51 li:hover, #god51s li,
|
||||
.arrowg li:hover, .arrowgs li
|
||||
{
|
||||
background-color: #efefbd;
|
||||
|
|
|
@ -29,9 +29,13 @@ if (comprueba_login() != 0) {
|
|||
|
||||
//echo "SLA for Tato: %".return_module_SLA (50, 604800, 1, 1);
|
||||
|
||||
echo "<h3>".$lang_label["custom_reporting"]."</h3>";
|
||||
echo "<h2>".$lang_label["reporting"]." > ";
|
||||
echo $lang_label["custom_reporting"]."</h2>";
|
||||
echo "<table width='500' cellpadding=4 cellpadding=4 class='databox'>";
|
||||
echo "<tr><th>".$lang_label["report_name"]."<th>".$lang_label["description"]."<th>".$lang_label["view"];
|
||||
echo "<tr>
|
||||
<th>".$lang_label["report_name"]."</th>
|
||||
<th>".$lang_label["description"]."</th>
|
||||
<th>".$lang_label["view"]."</th>";
|
||||
$color=1;
|
||||
$sql="SELECT * FROM treport";
|
||||
$res=mysql_query($sql);
|
||||
|
@ -47,10 +51,13 @@ while ($row = mysql_fetch_array($res)){
|
|||
$color = 1;
|
||||
}
|
||||
echo "<tr>";
|
||||
echo "<td valign='top' class='$tdcolor'>".$row["name"];
|
||||
echo "<td class='$tdcolor'>".$row["description"];
|
||||
echo "<td valign='top' class='$tdcolor'>".$row["name"]."</td>";
|
||||
echo "<td class='$tdcolor'>".$row["description"]."</td>";
|
||||
$id_report = $row["id_report"];
|
||||
echo "<td valign='middle' class='$tdcolor' align='center'><a href='index.php?sec=reporting&sec2=operation/reporting/reporting_viewer&id=$id_report'><img src='images/reporting.png'></A>";
|
||||
echo "<td valign='middle' class='$tdcolor' align='center'>
|
||||
<a href='index.php?sec=reporting&sec2=operation/reporting/reporting_viewer&id=$id_report'>
|
||||
<img src='images/reporting.png'></a>
|
||||
</td></tr>";
|
||||
}
|
||||
}
|
||||
echo "</table>";
|
||||
|
|
|
@ -24,15 +24,15 @@ if (comprueba_login() == 0) {
|
|||
|
||||
?>
|
||||
|
||||
<h2><?php echo $lang_label["users_"] ?></h2>
|
||||
<h3><?php echo $lang_label["users"] ?><a href='help/<?php echo $help_code ?>/chap2.php#2' target='_help' class='help'> <span><?php echo $lang_label["help"] ?></span></a></h3>
|
||||
<h2><?php echo $lang_label["users_"] ?> >
|
||||
<?php echo $lang_label["users"] ?><a href='help/<?php echo $help_code ?>/chap2.php#2' target='_help' class='help'> <span><?php echo $lang_label["help"] ?></span></a></h2>
|
||||
|
||||
<table cellpadding="3" cellspacing="3" width="700">
|
||||
<th width="80px"><?php echo $lang_label["user_ID"]?>
|
||||
<th width="155px"><?php echo $lang_label["last_contact"]?>
|
||||
<th width="45px"><?php echo $lang_label["profile"]?>
|
||||
<th width="120px"><?php echo $lang_label["name"]?>
|
||||
<th><?php echo $lang_label["description"]?>
|
||||
<table cellpadding="4" cellspacing="4" width="700" class='databox'>
|
||||
<th width="80px"><?php echo $lang_label["user_ID"]?></th>
|
||||
<th width="155px"><?php echo $lang_label["last_contact"]?></th>
|
||||
<th width="45px"><?php echo $lang_label["profile"]?></th>
|
||||
<th width="120px"><?php echo $lang_label["name"]?></th>
|
||||
<th><?php echo $lang_label["description"]?></th>
|
||||
|
||||
<?php
|
||||
$color = 1;
|
||||
|
@ -74,32 +74,54 @@ while ($rowdup=mysql_fetch_array($resq1)){
|
|||
echo "</span></a>";
|
||||
echo "<td class='$tdcolor' width='100'>".substr($real_name,0,16)."</td>";
|
||||
echo "<td class='$tdcolor'>".$comments."</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
echo "<tr><td colspan='5'><div class='raya'></div></td></tr></table><br>";
|
||||
echo "</table><br>";
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<h3><?php echo $lang_label["definedprofiles"] ?><a href='help/<?php echo $help_code ?>/chap2.php#21' target='_help' class='help'> <span><?php echo $lang_label["help"] ?></span></a></h3>
|
||||
|
||||
<table cellpadding=3 cellspacing=3 border=0>
|
||||
<table cellpadding='4' cellspacing='4' class='databox'>
|
||||
<?php
|
||||
|
||||
$query_del1="SELECT * FROM tperfil";
|
||||
$resq1=mysql_query($query_del1);
|
||||
echo "<tr>";
|
||||
echo "<th width='180px'><font size=1>".$lang_label["profiles"];
|
||||
echo "<th width='40px'><font size=1>IR<a href='#' class='tipp'> <span>".$help_label["IR"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>IW<a href='#' class='tipp'> <span>".$help_label["IW"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>IM<a href='#' class='tipp'> <span>".$help_label["IM"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>AR<a href='#' class='tipp'> <span>".$help_label["AR"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>AW<a href='#' class='tipp'> <span>".$help_label["AW"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>LW<a href='#' class='tipp'> <span>".$help_label["LW"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>UM<a href='#' class='tipp'> <span>".$help_label["UM"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>DM<a href='#' class='tipp'> <span>".$help_label["DM"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>LM<a href='#' class='tipp'> <span>".$help_label["LM"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>PM<a href='#' class='tipp'> <span>".$help_label["PM"]."</span></a>";
|
||||
echo "<th width='180px'>
|
||||
<font size=1>".$lang_label["profiles"]."</th>";
|
||||
echo "<th width='40px'>
|
||||
<font size=1>IR<a href='#' class='tipp'> <span>".$help_label["IR"]."</span></a>
|
||||
</font></th>";
|
||||
echo "<th width='40px'>
|
||||
<font size=1>IW<a href='#' class='tipp'> <span>".$help_label["IW"]."</span></a>
|
||||
</font></th>";
|
||||
echo "<th width='40px'>
|
||||
<font size=1>IM<a href='#' class='tipp'> <span>".$help_label["IM"]."</span></a>
|
||||
</font></th>";
|
||||
echo "<th width='40px'>
|
||||
<font size=1>AR<a href='#' class='tipp'> <span>".$help_label["AR"]."</span></a>
|
||||
</font></th>";
|
||||
echo "<th width='40px'>
|
||||
<font size=1>AW<a href='#' class='tipp'> <span>".$help_label["AW"]."</span></a>
|
||||
</font></th>";
|
||||
echo "<th width='40px'>
|
||||
<font size=1>LW<a href='#' class='tipp'> <span>".$help_label["LW"]."</span></a>
|
||||
</font></th>";
|
||||
echo "<th width='40px'>
|
||||
<font size=1>UM<a href='#' class='tipp'> <span>".$help_label["UM"]."</span></a>
|
||||
</font></th>";
|
||||
echo "<th width='40px'>
|
||||
<font size=1>DM<a href='#' class='tipp'> <span>".$help_label["DM"]."</span></a>
|
||||
</font></th>";
|
||||
echo "<th width='40px'>
|
||||
<font size=1>LM<a href='#' class='tipp'> <span>".$help_label["LM"]."</span></a>
|
||||
</font></th>";
|
||||
echo "<th width='40px'>
|
||||
<font size=1>PM<a href='#' class='tipp'> <span>".$help_label["PM"]."</span></a>
|
||||
</font></th>";
|
||||
$color = 1;
|
||||
while ($rowdup=mysql_fetch_array($resq1)){
|
||||
$id_perfil = $rowdup["id_perfil"];
|
||||
|
@ -157,4 +179,4 @@ echo "<tr><td colspan='5'><div class='raya'></div></td></tr></table><br>";
|
|||
}
|
||||
} //end of page
|
||||
?>
|
||||
<tr><td colspan='11'><div class='raya'></div></td></tr></table>
|
||||
</tr></table>
|
Loading…
Reference in New Issue