	
	<?php
	/*
	Hezecom Email Solution
	Author: Hezecom Technologies (http://hezecom.com) info@hezecom.net
	COPYRIGHT 2014 ALL RIGHTS RESERVED
	
	You must have purchased a valid license from CodeCanyon.com in order to have 
	access this file.

	You may only use this file according to the respective licensing terms 
	you agreed to when purchasing this item.
	*/
	if(!defined('VALID_DIR')) die('You are not allowed to execute this file directly');
	?>
	
	<div class="heze-table">
	<div class="col-12">
	<ul class="nav nav-tabs pull-right">
	<a href="<?php echo H_ADMIN;?>&view=mailusers&uid=<?php echo $rows->uid;?>&do=details" title="View Details" class="btn btn-default btn-sm tip"><i class="fa fa-th-list"></i> <?php echo LANG_DETAILS;?></a>
	
	<a href="<?php echo H_ADMIN;?>&view=mailusers&uid=<?php echo $rows->uid;?>&do=delete&dfile=<?php echo $rows->user_image;?>" title="<?php echo LANG_TIP_DELETE;?>" class="btn btn-default btn-sm tip" data-confirm="<?php echo LANG_DELETE_AUTH;?>"><i class="fa fa-trash-o"></i> <?php echo LANG_DELETE;?></a>
	
	<a href="<?php echo H_ADMIN;?>&view=mailusers&do=viewall" class="btn btn-default btn-sm tip" title="<?php echo LANG_TIP_VIEWALL;?>"><i class="fa fa-reply"></i> <?php echo LANG_GO_BACK;?></a>
	</ul>
	<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-reorder"></i> <strong><?php echo LANG_UPDATE;?></strong></h3></div>
  <div class="panel-body pformmargin">
	
	 
	 <p>
	 <form action="<?php htmlspecialchars($_SERVER['PHP_SELF']);?>" method="post" name="hezecomform" id="hezecomform" enctype="multipart/form-data">
	<input type="hidden" name="uid" value="<?php echo $rows->uid;?>">
	<div class="form-group">
    <label class="control-label" for="cfname"><?php echo LANG_FIRST_NAME;?></label>
	<input id="cfname" name="cfname" type="text" maxlength="50"  value="<?php echo $rows->cfname;?>" class="form-control styler" />
	</div>

	<div class="form-group">
    <label class="control-label" for="clname"><?php echo LANG_LAST_NAME;?></label>
	<input id="clname" name="clname" type="text" maxlength="50"  value="<?php echo $rows->clname;?>" class="form-control styler" />
	</div>


	<div class="form-group">
    <label class="control-label" for="cbirthday"><?php echo LANG_BITHDAY;?></label>
	<input id="cbirthday" name="cbirthday" type="text" maxlength="30"  value="<?php echo $rows->cbirthday;?>" class="form-control styler datepicker" />
	</div>

    <div class="form-group">
    <label class="control-label" for="cgender"><?php echo LANG_GENDER;?></label>
     <select name="cgender" id="cgender" class="form-control input-lg styler choz">
	<option value="<?php echo $rows->cgender;?>"><?php echo $rows->cgender;?></option>
    <option value="<?php echo LANG_MALE;?>"><?php echo LANG_MALE;?></option>
    <option value="<?php echo LANG_FEMALE;?>"><?php echo LANG_FEMALE;?></option>
    </select>
	</div>

	<div class="form-group">
    <label class="control-label" for="cphone"><?php echo LANG_PHONE;?></label>
	<input id="cphone" name="cphone" type="text" maxlength="50"  value="<?php echo $rows->cphone;?>" class="form-control styler" />
	</div>

	<div class="form-group">
    <label class="control-label" for="cemail"><?php echo LANG_ALTERNATE_EMAIL;?></label>
	<input id="cemail" name="cemail" type="text" maxlength="50"  value="<?php echo $rows->cemail;?>" class="form-control styler" />
	</div>

	<div class="form-group">
    <label class="control-label" for="clocation"><?php echo LANG_LOCATION;?></label>
     <select name="clocation" id="clocation" class="form-control input-lg styler choz">
	<option value="<?php echo $rows->clocation;?>"><?php echo $rows->clocation;?></option>
    <?php include('libraries/views/countries.html');?>
    </select>
	</div>

	<div class="form-group">
    <label class="control-label" for="user_image"><?php echo LANG_PICTURE;?></label>
	<input id="user_image" name="user_image"type="file" class="styler"/><br><?php if(is_file(UPLOAD_FOLDER.$rows->user_image)){?><a href="#"><img src="<?php echo UPLOAD_FOLDER.$rows->user_image;?>"></a><br><?php }?>
	<?php if(is_file(UPLOAD_FOLDER.$rows->user_image)){?>
	<a href="<?php echo H_ADMIN;?>&view=mailusers&uid=<?php echo $rows->uid;?>&dfile=<?php echo $rows->user_image;?>&do=delete&fdel=file" data-confirm="<?php echo LANG_DELETE_AUTH;?>"><span class="btn btn-xs btn-danger"><i class="fa fa-remove"></i> <?php echo LANG_DELETE;?></span></a><br><?php }else{?>
       <span class="fa fa-user" style="color:#CCC; font-size:150px;"></span>
       <?php }?>
	
	</div>

	 <div class="controls">
	 <div class="col-md-2" style="padding:0;">
	 <input type="submit" name="button" id="hButton" class="btn btn-primary btn-lg" value="<?php echo LANG_UPDATE_RECORD;?>" />
	 </div>
	 <div class="col-md-3" style="padding:0;">
	 <div id="output"></div>
	 </div>
	 </div>
	  
	</form>
	</p>
	 
	
	</div>
 </div><!--/col-12-->
 </div><!--/heze-table-->
	