mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
2008-07-17 Esteban Sanchez <estebans@artica.es>
* include/functions.php: Minimal style correction. * include/functions_db.php: Check sql_cache with empty() to avoid notices. * operation/agentes/status_monitor.php: Tab style correction. * general/logon_ok.php: Added missing field to SQL sentence which was causing PHP notices. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@956 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
347570ef42
commit
899619e246
@ -1,3 +1,15 @@
|
|||||||
|
2008-07-17 Esteban Sanchez <estebans@artica.es>
|
||||||
|
|
||||||
|
* include/functions.php: Minimal style correction.
|
||||||
|
|
||||||
|
* include/functions_db.php: Check sql_cache with empty() to avoid
|
||||||
|
notices.
|
||||||
|
|
||||||
|
* operation/agentes/status_monitor.php: Tab style correction.
|
||||||
|
|
||||||
|
* general/logon_ok.php: Added missing field to SQL sentence which was
|
||||||
|
causing PHP notices.
|
||||||
|
|
||||||
2008-07-15 Esteban Sanchez <estebans@artica.es>
|
2008-07-15 Esteban Sanchez <estebans@artica.es>
|
||||||
|
|
||||||
* ChangeLog: Fixed some indentation and lines length issues. Fixed
|
* ChangeLog: Fixed some indentation and lines length issues. Fixed
|
||||||
|
@ -44,7 +44,7 @@ echo "<tr><td valign='top'>";
|
|||||||
// Site news !
|
// Site news !
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
echo '<h2>' . $lang_label["site_news"] . '</h2>';
|
echo '<h2>' . $lang_label["site_news"] . '</h2>';
|
||||||
$sql_news = "SELECT subject,timestamp,text FROM tnews ORDER by timestamp DESC LIMIT 3";
|
$sql_news = "SELECT subject,timestamp,text,author FROM tnews ORDER by timestamp DESC LIMIT 3";
|
||||||
if ($result_news = mysql_query ($sql_news)){
|
if ($result_news = mysql_query ($sql_news)){
|
||||||
echo '<table cellpadding="4" cellspacing="4" width="270" class="databox">';
|
echo '<table cellpadding="4" cellspacing="4" width="270" class="databox">';
|
||||||
while ($row = mysql_fetch_array ($result_news)) {
|
while ($row = mysql_fetch_array ($result_news)) {
|
||||||
|
@ -1321,9 +1321,9 @@ function get_db_all_rows_sql ($sql) {
|
|||||||
global $sql_cache;
|
global $sql_cache;
|
||||||
$retval = array();
|
$retval = array();
|
||||||
|
|
||||||
if($sql_cache[$sql]) {
|
if (! empty ($sql_cache[$sql])) {
|
||||||
$retval = $sql_cache[$sql];
|
$retval = $sql_cache[$sql];
|
||||||
$sql_cache[saved]++;
|
$sql_cache['saved']++;
|
||||||
} else {
|
} else {
|
||||||
$result = mysql_query ($sql);
|
$result = mysql_query ($sql);
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
|
@ -180,8 +180,7 @@ $counter = get_db_sql ($SQL_COUNT);
|
|||||||
|
|
||||||
|
|
||||||
if ($counter > 0) {
|
if ($counter > 0) {
|
||||||
echo "
|
echo "<table cellpadding='4' cellspacing='4' width='750' class='databox'>
|
||||||
<table cellpadding='4' cellspacing='4' width='750' class='databox'>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<th>".$lang_label["agent"]."</th>
|
<th>".$lang_label["agent"]."</th>
|
||||||
@ -194,7 +193,6 @@ if ($counter > 0){
|
|||||||
$color =1;
|
$color =1;
|
||||||
$result=mysql_query($SQL_FINAL);
|
$result=mysql_query($SQL_FINAL);
|
||||||
|
|
||||||
|
|
||||||
while ($data=mysql_fetch_array($result)){ //while there are agents
|
while ($data=mysql_fetch_array($result)){ //while there are agents
|
||||||
if ($color == 1){
|
if ($color == 1){
|
||||||
$tdcolor="datos";
|
$tdcolor="datos";
|
||||||
@ -220,7 +218,7 @@ if ($counter > 0){
|
|||||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$data["id_agente"]."&id_agente_modulo=".$data[0]."&flag=1&tab=data&refr=60'>";
|
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$data["id_agente"]."&id_agente_modulo=".$data[0]."&flag=1&tab=data&refr=60'>";
|
||||||
echo "<img src='images/target.png'></a>";
|
echo "<img src='images/target.png'></a>";
|
||||||
echo "</td><td class='$tdcolor'>";
|
echo "</td><td class='$tdcolor'>";
|
||||||
echo "<b><a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$data[5]."'>".strtoupper(substr($data[1],0,21))."</a></b>";
|
echo "<strong><a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$data[5]."'>".strtoupper(substr($data[1],0,21))."</a></strong>";
|
||||||
echo "</td><td class='$tdcolor'>";
|
echo "</td><td class='$tdcolor'>";
|
||||||
echo "<img src='images/".show_icon_type($data[6])."' border=0></td>";
|
echo "<img src='images/".show_icon_type($data[6])."' border=0></td>";
|
||||||
echo "<td class='$tdcolor'>". substr($data[2],0,21). "</td>";
|
echo "<td class='$tdcolor'>". substr($data[2],0,21). "</td>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user