?
Path : /home/admin/domains/happytokorea.com/public_html_bk/gall/admin/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/gall/admin/edituser.php |
<? include("header.php");?> <div id="top-panel"> <div id="panel"> <ul> <li><a href="user.php" class="report">User</a></li> <!-- <li><a href="u_atb.php" class="report_seo">User Attribute</a></li> <li><a href="#" class="search">Search</a></li> <li><a href="#" class="feed">RSS Feed</a></li>--> </ul> </div> </div> <div id="content"> <? if(isset($_POST[edit])){ $u_id = $_POST[u_id]; unset($_POST[u_id]); unset($_POST[edit]); $db->update_array("user",$_POST,"u_id=$u_id"); echo "<script>window.location.href='user.php';</script>"; } ?> <div id="box" align="left"> <h3 id="adduser">Admin</h3> <form id="form" action="" method="post" enctype="multipart/form-data" onSubmit="return check_form(account_edit);"> <fieldset id="personal"> <legend>Edituser</legend> <? $acc = $db->queryUniqueObject("select * from user where u_id = ".$_GET[u_id]); ?> <label for="">Member Level: </label> <input type="radio" name="dealer" value="0" <? if($acc->dealer=='0'){?> CHECKED <? }?>> Customers <input type="radio" name="dealer" value="1" <? if($acc->dealer=='1'){?> CHECKED <? }?>> Dealer <br /> <label for="">Gender : </label> <input type="radio" name="gender" value="m" <? if($acc->gender=='m'){?> CHECKED <? }?>> Male <input type="radio" name="gender" value="f" <? if($acc->gender=='f'){?> CHECKED <? }?>> Female <br /> <label for="">First Name : </label> <input type="text" name="firstname" value="<? echo $acc->firstname;?>" > <br /> <label for="">Last Name : </label> <input type="text" name="lastname" value="<? echo $acc->lastname;?>" > <br /> <label for="">Date of Birth : </label> <input type="text" name="dob" value="<? echo $acc->dob;?>"> <br /> <label for="">E-Mail Address : </label> <input type="text" name="email_address" value="<? echo $acc->email_address;?>"> <br /> <label for="">Telephone : </label> <input type="text" name="telephone" value="<? echo $acc->telephone;?>"> <br /> <label for="">Fax Number : </label> <input type="text" name="telephone" value="<? echo $acc->fax;?>"> <br /> <input name="u_id" type="hidden" value="<? echo $_GET[u_id];?>" /> </fieldset><br /> <div align="center"> <input id="button1" type="submit" name="edit" value="Edit" /> <input id="button2" type="reset" /> </div> </form> </div> </div> <? include("footer.php");?>