| [ PHPXref.com ] | [ Generated: Sun Jul 20 18:28:52 2008 ] | [ Limph 1.9.1 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 Limph Is Monitoring Pingable Hosts 4 Copyright (C) 2005 Jonathan Ciesla 5 6 This program is free software; you can redistribute it and/or 7 modify it under the terms of the GNU General Public License 8 as published by the Free Software Foundation; either version 2 9 of the License, or (at your option) any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software 18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 19 */ 20 require_once ("config.php"); 21 require_once ("functionlib.php"); 22 session_start(); 23 favicon(); 24 25 $link = dbms_connect($dbhost, $dbuser, $dbpass, $dbname); 26 27 $admin_level =$_SESSION['limphadmin']; 28 authentication($admin_level,1); 29 30 echo "<link rel=stylesheet href=css.php>"; 31 echo "<title>Limph: $sitetitle</title>"; 32 echo "<h3>Limph: $sitetitle</h3>"; 33 34 $number = $_POST['number']; 35 36 $query = "SELECT number,name,col,priority,collapse FROM groups WHERE number = '$number';"; 37 $result = dbms_query($query); 38 $line = dbms_fetch_array($result, "NUM"); 39 dbms_free_result($result); 40 41 echo "<table border=1 cellpadding=5 align=center>"; 42 echo "<tr><th colspan=3>Edit Group Info</th></tr>"; 43 echo "<tr><td align=center colspan=3>"; 44 echo "<form action=groups_man.php method=post>"; 45 echo "<input type=submit value=Delete />"; 46 echo "<input type=hidden name=number value=$number>"; 47 echo "<input type=hidden name=deletegroup value=yes>"; 48 echo "</form>"; 49 echo "</td></tr>"; 50 echo "<form action=groups_man.php method=post>"; 51 echo "<tr><td align=right colspan=2>Name:<input type=text name=name value=\"{$line['1']}\"></td></tr>"; 52 echo "<tr><td>Column:</td><td>"; 53 $query2 = "SELECT number,width FROM layout ORDER BY number ASC;"; 54 $result2 = dbms_query($query2); 55 while($line2 = dbms_fetch_array($result2, "NUM")){ 56 if($line[2]==$line2[0]){$flag="checked";}else{$flag="";}; 57 echo "{$line2['0']}:<input type=radio name=col value={$line2['0']} $flag>"; 58 }; 59 dbms_free_result($result2); 60 dbms_close($link); 61 62 echo "</td></tr>"; 63 echo "<tr><td colspan=3>Priority:<input type=text name=priority value={$line['3']}></td></tr>"; 64 if($line[4]=="1"){ $flag = "checked"; } else { $flag = ""; }; 65 echo "<tr><td align=right colspan=2>Collapse<input type=checkbox name=collapse $flag></td></tr>"; 66 echo "<tr><td colspan=3 align=center><input type=submit value=\"Change Group\"/></td></tr>"; 67 echo "<input type=hidden name=number value=$number>"; 68 echo "<input type=hidden name=groupedit value=yes>"; 69 echo "</form>"; 70 echo "</table>"; 71 72 73 echo "<br />"; 74 echo "<form action=groups_man.php method=post>"; 75 echo "<input type=submit value=Back />"; 76 echo "</form>"; 77 78 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |