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; |
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 |
|
|