Magellan Linux

Diff of /alx-src/branches/alx-web-070/show.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8006 by niro, Wed Dec 16 15:17:38 2015 UTC revision 8007 by niro, Wed Dec 16 16:06:40 2015 UTC
# Line 20  $gfxinfo = sqlfirst('SELECT * FROM cfg_g Line 20  $gfxinfo = sqlfirst('SELECT * FROM cfg_g
20    
21  if($kill==1)  if($kill==1)
22  {  {
23   foreach($tabs as $t) mysql_query('UPDATE '.$t.' SET serial=-serial WHERE serial='.$id);   //foreach($tabs as $t) mysql_query('UPDATE '.$t.' SET serial=-serial WHERE serial='.$id);
24     if($method=='DEACTIVATE') mysql_query('UPDATE client_serials SET enabled="0" WHERE serial='.$id);
25     else mysql_query('UPDATE client_serials SET enabled="1" WHERE serial='.$id);
26    
27   echo '<body onload="window.setTimeout(\'window.close()\', 1750)">';   echo '<body onload="window.setTimeout(\'window.close()\', 1750)">';
28   echo '<table width=100% height=100% style="border:solid black 1px; background-color:#d5e5ff"><tr><td valign=middle align=center>';   echo '<table width=100% height=100% style="border:solid black 1px; background-color:#d5e5ff"><tr><td valign=middle align=center>';
29    
30   if($id<0) echo 'ACTIVATED #'.abs($id);   if($method=='DEACTIVATE') echo 'DEACTIVATED #'$id;
31   else echo 'DEACTIVATED #'.$id;   else echo 'ACTIVATED #'.$id;
32    
33   echo '</td></tr></table>';   echo '</td></tr></table>';
34   return true;   return true;
# Line 386  echo '</td><td valign=top>'; Line 388  echo '</td><td valign=top>';
388   echo '<input class="but" type=submit name="do_add" value="ADD AUTOSTART" style="width:150px"><br>';   echo '<input class="but" type=submit name="do_add" value="ADD AUTOSTART" style="width:150px"><br>';
389   echo '<br>';   echo '<br>';
390    
391   if($id>0) $KILLCAP='DEACTIVATE'; else $KILLCAP='ACTIVATE';   $clientstatus = sqlfirst('SELECT * FROM client_serials WHERE serial='.$id);
392   echo '<input class="but" type=button value="'.$KILLCAP.'" style="width:150px" onclick="if(confirm(\''.$KILLCAP.' CLIENT #'.abs($id).' ?\')) { window.open(\'show.php?id='.$id.'&kill=1\', \'DeactWin\', \'width=200,height=100\'); location.href=\'index.php\'; }"><br>';   if($clientstatus['enabled']>0) $KILLCAP='DEACTIVATE'; else $KILLCAP='ACTIVATE';
393     echo '<input class="but" type=button value="'.$KILLCAP.'" style="width:150px" onclick="if(confirm(\''.$KILLCAP.' CLIENT #'.$id.' ?\')) { window.open(\'show.php?id='.$id.'&kill=1&method='.$KILLCAP.'\', \'DeactWin\', \'width=200,height=100\'); location.href=\'index.php\'; }"><br>';
394   echo '<input class="but" type=button value="IMPORT FROM..." style="width:150px" onclick="location.href=\'import.php?id='.$id.'\'"><br>';   echo '<input class="but" type=button value="IMPORT FROM..." style="width:150px" onclick="location.href=\'import.php?id='.$id.'\'"><br>';
395   echo '<input class="but" type=reset value="UNDO CHANGES" style="width:150px"><br><br>';   echo '<input class="but" type=reset value="UNDO CHANGES" style="width:150px"><br><br>';
396    

Legend:
Removed from v.8006  
changed lines
  Added in v.8007