?
Path : /home/admin/domains/happytokorea.com/public_html/modules/profile/ |
Current File : /home/admin/domains/happytokorea.com/public_html/modules/profile/com_edit_profile.php |
<? require_once('function.php'); global $db,$user_login; $data=$db->getDataOneRow('user_profile',$user_login['ID'],'user_id'); $data2=$db->getDataOneRow('users',$user_login['Login'],'user_login'); /*if($data['photo']!=''){ $data['photo']=$data['photo']; }else{ $data['photo']='images.jpg'; }*/ ?> <script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script> <script type="text/javascript"> //<![CDATA[ bkLib.onDomLoaded(function() { nicEditors.allTextAreas() }); //]]> </script> <div class="content" style="margin-top:15px;"> <div class="title" style="border-bottom:1px solid #cccccc;"><i class="fa fa-pencil-square fa-2x" aria-hidden="true"></i> <h1 style="display:inline;">แก้ไขข้อมูลส่วนตัว</h1> </div> <div style="padding-top:20px;"> <!-- Form begins --> <form method="post" action="<? echo"$PHPSELF?mod=profile&ac=edit_profile";?>" enctype="multipart/form-data"> <!-- Input text fields --> <fieldset> <div class="form-group" align="left"> <div class=" col-md-3 col-md-4 col-xs-12"> <label class="control-label">รูปถ่าย :</label> </div> <div class=" col-md-9 col-md-8 col-xs-12"> <? if($data['photo'] == ''){ ?> <img src="backend/images/avatar.png"> <? } else{ ?> <img src="images/users/<?=$data['photo'];?>" width="55" height="54" > <? } ?> <input type="file" name="files" class="basicBtn" size="45"> ประเภทไฟล์ JPG, GIF, PNG ขนาดไม่ควรเกิน 100 kb </div> </div> <div class="form-group" align="left"> <div class=" col-md-3 col-md-4 col-xs-12"> <label class="control-label">ชื่อ</label> </div> <div class=" col-md-9 col-md-8 col-xs-12"> <input type="text" name="name" class="form-control" value="<?=$data['name'];?>"> </div> </div> <div class="form-group" align="left"> <div class=" col-md-3 col-md-4 col-xs-12"> <label class="control-label">นามสกุล</label> </div> <div class=" col-md-9 col-md-8 col-xs-12"> <input type="text" name="lastname" class="form-control" value="<?=$data['lastname'];?>"> </div> </div> <div class="form-group" align="left"> <div class=" col-md-3 col-md-4 col-xs-12"> <label class="control-label">ชื่อแสดงหน้าเขียนรีวิว</label> </div> <div class=" col-md-9 col-md-8 col-xs-12"> <input type="text" name="nickname" class="form-control" value="<?=$data['nickname'];?>"> </div> </div> <div class="form-group" align="left"> <div class=" col-md-3 col-md-4 col-xs-12"> <label class="control-label">รายละเอียดผู้เขียนรีวิว</label> </div> <div class=" col-md-9 col-md-8 col-xs-12"> <textarea class="form-control" name="blogger" cols="100%" rows="6"><?=$data['blogger'];?> </textarea> </div> </div> <div class="form-group" align="left"> <div class=" col-md-3 col-md-4 col-xs-12"> <label class="control-label">วันเกิด</label> </div> <div class=" col-md-9 col-md-8 col-xs-12"> <select name=day> <? for($i=1;$i<32;$i++){ if($data['day']==$i){ echo "<OPTION selected>".$i."</OPTION>"; }else{echo "<OPTION >".$i."</OPTION>";} } ?> </select> <select name=month> <? for($i=1;$i<=count($global_Month);$i++){ if($data['month']==$global_Month[$i]){ echo "<OPTION selected>".$global_Month[$i]."</OPTION>"; }else{ echo "<OPTION >".$global_Month[$i]."</OPTION>"; } } ?> </select> <select name=year> <? foreach($global_Year as $k=>$v){ if($data['year']==$v){ echo "<OPTION selected>".$v."</OPTION>"; }else{ echo "<OPTION>$v</OPTION>"; } } ?> </select> </div> </div> <div class="form-group" align="left"> <div class=" col-md-3 col-md-4 col-xs-12"> <label class="control-label">Email </label> </div> <div class=" col-md-9 col-md-8 col-xs-12"> <input name="email1" type="text" id="email1" class="form-control" value="<?=$data['email1'];?>" /> </div> </div> <!--จัดการระบบ--> <div class="form-group" align="left"> <div class=" col-md-3 col-md-4 col-xs-12"> <h3>จัดการระบบ</h3> <label class="control-label">แก้ไขรหัสผ่าน</label> </div> <div class=" col-md-9 col-md-8 col-xs-12"><input type="password" name="password" class="form-control"></div> </div> <div class="form-group" align="left"> <div class=" col-md-3 col-md-4 col-xs-12"> <label class="control-label">ยืนยันรหัสผ่าน</label> </div> <div class=" col-md-9 col-md-8 col-xs-12"><input type="password" name="repassword" class="form-control"></div> </div> <div class="form-group" align="center"> <input type="submit" value="บันทึกบทความ" class="btn btn-default" /> <input type="reset" value="ยกเลิกบทความ" class="btn btn-default" /> </div> </fieldset> </form> </div> </div>