/trunk/PHPnew/admin/admin_main.php
http://mycaptain.googlecode.com/ · PHP · 101 lines · 81 code · 18 blank · 2 comment · 2 complexity · 275e8b8de2e6175d421a2581f7e0ce5e MD5 · raw file
- <?php
- include_once ('admin_global.php');
-
- $r=$db->Get_user_shell_check($uid, $shell);
-
- if(@$_GET['action']=='logout')$db->Get_user_out();
-
-
- $query=$db->findall("p_config");
-
- while($row=$db->fetch_array($query))
- $row_arr[$row['name']]=$row['values'];
- //print_r($row_arr);
- //print_r($_POST);
-
- if(isset($_POST['update']))
- {
- unset($_POST['update']);//unset() ???????
- foreach($_POST as $name=>$values)// ????POST????? ???????$name,???$values
- {
- $db->query("update p_config set `values` ='$values' where `name` ='$name'");
- }
- $db->Get_admin_msg("admin_main.php");
- }
-
- ?>
-
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML><HEAD><TITLE>????</TITLE>
- <META http-equiv=Content-Type content="text/html; charset=gb2312">
- <META content=Alan name=Author><LINK rev=MADE
- href="mailto:haowubai@hotmail.com"><LINK href="images/private.css"
- type=text/css rel=stylesheet>
- <META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
- <BODY>
- <TABLE class=navi cellSpacing=1 align=center border=0>
- <TBODY>
- <TR>
- <form action="" method="post">
- <TH>?? >> ????</TH></TR></TBODY></TABLE><BR>
-
- <table border=0 cellspacing=1 align=center class=form>
- <tr>
- <th colspan="2">????</th>
- </tr>
- <tr>
- <td align="right">????:</td>
- <td><input type="text" name="websitename" value="<?php echo $row_arr['websitename'];?>" size="20" maxlength="40"/> </td>
- </tr>
- <tr>
- <td align="right">????:</td>
- <td><input type="text" name="website_url" value="<?php echo $row_arr['website_url'];?>" size="20" maxlength="40"/> </td>
- </tr>
- <tr>
- <td align="right">???:</td>
- <td><input type="text" name="website_keyword" value="<?php echo $row_arr['website_keyword'];?>" size="40" maxlength="40"/> </td>
- </tr>
- <tr>
- <td align="right">??:</td>
- <td><input type="text" name="website_cp" value="<?php echo $row_arr['website_cp'];?>" size="40" maxlength="40"/> </td>
- </tr>
- <tr>
- <td align="right">??:</td>
- <td><input type="text" name="website_tel" value="<?php echo $row_arr['website_tel'];?>" size="40" maxlength="40"/> </td>
- </tr>
- <tr>
- <td align="right">email:</td>
- <td><input type="text" name="website_email" value="<?php echo $row_arr['website_email'];?>" size="40" maxlength="40"/> </td>
- </tr>
- <tr>
- <td align="right">??:</td>
- <td><input type="text" name="principal_name" value="<?php echo $row_arr['principal_name'];?>" size="40" maxlength="40"/> </td>
- </tr>
-
- <tr>
- <td align="right">??:</td>
- <td><input type="text" name="principal_phone" value="<?php echo $row_arr['principal_phone'];?>" size="40" maxlength="40"/> </td>
- </tr>
-
-
-
-
-
- <tr>
- <td align="right">QQ:</td>
- <td><input type="text" name="principal_QQ" value="<?php echo $row_arr['principal_QQ'];?>" size="40" maxlength="40"/> </td>
- </tr>
- <tr>
- <td align="right">??:</td>
- <td><input type="text" name="principal_add" value="<?php echo $row_arr['principal_add'];?>" size="40" maxlength="40"/> </td>
- </tr>
-
- <tr>
- <td colspan="2" align="center" height='30'>
- <input type="submit" name="update" value=" ?? "/>
-
- </td> </form>
- </tr>
- </table>
-
- </BODY></HTML>