<?php
include("includes/site_info.php");
include('session_handler.inc');

$WUserID = $_SESSION['Sess_UserId'];
$WUserType = $_SESSION['Sess_UserType'];
$WUserLastVisit = $_SESSION['Sess_LastVisit'];
$WUsername = $_SESSION['Sess_UserName'];
$result=mysql_query("SELECT mem_fullname, mem_nickname, mem_profileid, mem_email, mem_mobile, lang_id, mem_newsletter, mem_purpose FROM members WHERE mem_userid=$WUserID",$link);
$sql_array = mysql_fetch_object($result);


?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="white_back_t_xb p5">
                  <tr>
                    <td colspan="2" class="grey_12 orange_row_back solid_line_separator">
                      <div style="background-color:#0000FF; width:10px; height:10px; float:left; margin-top:3px; margin-right:5px;"><img src="images/spacer.gif" width="10" height="10"></div> 
                    My Membership </td>
  </tr>
                  <tr>
                    <td width="10">&nbsp;</td>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="5" class="white_back_t_xb p5">
                      <tr>
                        <td width="150">My Membership Level</td>
                        <td><strong>
                        <?php if($WUserType=="U") echo "Free Membership";?>
                        </strong></td>
                      </tr>
                      
                      
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="grey_12 orange_row_back solid_line_separator">
                      <div style="background-color:#0000FF; width:10px; height:10px; float:left; margin-top:3px; margin-right:5px;"><img src="images/spacer.gif" width="10" height="10"></div> 
                    Name </td>
  </tr>
                  <tr>
                    <td width="10">&nbsp;</td>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="5" class="white_back_t_xb p5">
                      <tr>
                        <td width="150">Full name</td>
                        <td><strong>
                        <?=$sql_array->mem_fullname?>
                        </strong></td>
                      </tr>
<!--                      <tr>
                        <td>Nickname</td>
                        <td><strong>
                        <?=$sql_array->mem_nickname?>
                        </strong></td>
                      </tr>
-->                      <tr>
                        <td>Profile URL Name </td>
                        <td><strong>
                        <?=$sql_array->mem_profileid?>
                        </strong></td>
                      </tr>
                      
                      
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="grey_12 orange_row_back solid_line_separator">
                          <div style="background-color:#0000FF; width:10px; height:10px; float:left; margin-top:3px; margin-right:5px;"><img src="images/spacer.gif" width="10" height="10"></div>
                    Email</td>
  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="5" class="white_back_t_xb p5">

                      <tr>
                        <td width="150">Authorize Email</td>
                        <td><strong>
                        <?=$sql_array->mem_email?>
                        </strong></td>
                      </tr>

                    </table></td>
                  </tr>

                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="grey_12 orange_row_back solid_line_separator">
                        <div style="background-color:#0000FF; width:10px; height:10px; float:left; margin-top:3px; margin-right:5px;"><img src="images/spacer.gif" width="10" height="10"></div>
                      Mobile</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="5" class="white_back_t_xb p5">
                        <tr>
                          <td width="150">Mobile No</td>
                          <td><strong>
                          <?=$sql_array->mem_mobile?>
                          </strong></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="grey_12 orange_row_back solid_line_separator">
                        <div style="background-color:#0000FF; width:10px; height:10px; float:left; margin-top:3px; margin-right:5px;"><img src="images/spacer.gif" width="10" height="10"></div>
                      Language</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="5" class="white_back_t_xb p5">
                        <tr>
                          <td width="150">Language</td>
                          <td>
                            <strong>
                            <?php
												$langr=mysql_query("select * FROM langfile WHERE lang_active=1 and lang_id='$sql_array->lang_id'");
												while($lang= mysql_fetch_array($langr))
												{
                            echo $lang["lang_name"];
												}
												?>
                            </strong> </td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="grey_12 orange_row_back solid_line_separator">
                          <div style="background-color:#0000FF; width:10px; height:10px; float:left; margin-top:3px; margin-right:5px;"><img src="images/spacer.gif" width="10" height="10"></div>
                    Newsletter</td>
  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="5" class="white_back_t_xb p5">
                        <tr>
                          <td width="150">Newsletter</td>
                          <td><input name="newsletter" type="checkbox" value="1" <?php if($sql_array->mem_newsletter==1) echo 'checked="checked"'; ?>  class="button"/></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="grey_12 orange_row_back solid_line_separator">
                        <div style="background-color:#0000FF; width:10px; height:10px; float:left; margin-top:3px; margin-right:5px;"><img src="images/spacer.gif" width="10" height="10"></div>
                      Purpose</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="5" class="white_back_t_xb p5">
                        <tr>
                          <td width="150">I'm Coming for</td>
                          <td><strong>
                          <?php
												$cfq=mysql_query("select * FROM comingfor where value='$sql_array->mem_purpose'");
												while($cf= mysql_fetch_array($cfq))
												{
							echo $cf["title"];
												}
												?>
                          </strong> </td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" align="right">
                      <input name="Button" type="button" class="button" value="Edit Changes" onclick="callpage('profile_account');"/></td>
  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
</table>