<div id="content">
  	<div class="row contentheader">
  		<span class="left"><?php getLanguage(119)?></span>
  		<span class="right">
  			<a class="toptabs" href="account/points" ><?php getLanguage(838) ?></a>
			<a class="toptabs" href="account/design" ><?php getLanguage(33) ?></a>
			<a class="toptabs" href="account/profile" ><?php getLanguage(31) ?></a>
		</span>
	</div>
	<div id="centercontent">
		<div id="topcontainer">
		<?php
		    switch(SESSION_MESSAGE)
		    {
			    case 1: echo('<p class="message"><i class="fa fa-check-circle-o"></i> <b>'.getLanguage(129, 1).'</b>'.getLanguage(148, 1).'</p>'); break;
			    case 2: echo('<p class="error"><i class="fa fa-exclamation-circle"></i> <b>'.getLanguage(40, 1).'</b>'.getLanguage(140, 1).'</p>'); break;
			    case 3: echo('<p class="error"><i class="fa fa-exclamation-circle"></i> <b>'.getLanguage(40, 1).'</b>'.getLanguage(317, 1).'</p>'); break;
				case 403: echo('<p class="error"><i class="fa fa-exclamation-circle"></i> <b>'.getLanguage(40, 1).'</b> '.getLanguage(403, 1).' 5 '.getLanguage(404, 1).'</p>'); break;
				case 405: echo('<p class="error"><i class="fa fa-exclamation-circle"></i> <b>'.getLanguage(40, 1).'</b> '.getLanguage(405, 1).'</p>'); break;
			}
		    unset($_SESSION['msg']);
	    ?>

     	<form method="POST" action="account/settings" enctype="multipart/form-data" id="profileForm">
     		<input type="hidden" name="img" value="photo">
			    <div class="row">
			      	<div class="col-md-3 text-right">
			      		<label for="photo"><?php getLanguage(32)?></label>
			      	</div>
			      	<div class="col-md-2">
			      		<?php if(PHOTO_URL=="") { ?>
		    			  <img src="media/images/users/photo_default.png" alt="photo" width="75">
		    			 <?php } else { ?>
		    			  <img src="media/images/users/<?php echo PHOTO_URL ?>" alt="photo" width="75">
		    			 <?php } ?>
			      	</div>
			      	<div class="col-md-5 text-left">
						<div id="photoPreview">
			        		<a id="deletePhotoLink" href="#" onclick="deletePhoto(); return false"><?php getLanguage(132)?></a>
			      		</div>
			      		<input type="hidden" id="deletephoto" name="deletephoto" value="0">
			      		<div id="photoUpload" style="display:none">
					        <input type="file" name="photo" id="photo" size="30" class="w40">
					    </div><br />
					    <span class="supporting"><?php getLanguage(133)?><br><?php getLanguage(134)?><br /><?php getLanguage(135)?> <?php echo PHOTO_MAX_WIDTH ?> px | <?php getLanguage(136)?>  <?php echo PHOTO_MAX_HEIGHT ?> px</span>
					</div>
					<div class="col-md-2">
					    <input id="saveProfileButton" type="submit" value="<?php getLanguage(137)?>" class="btn btn-primary">
			      	</div>
			    </div>
      	</form>
      	<br><br>
      	<form method="POST" action="account/settings" enctype="multipart/form-data" id="profileForm">
     		<input type="hidden" name="img" value="cover">
			    <div class="row">
			      	<div class="col-md-3 text-right">
			      		<label for="photo"><?php getLanguage(43)?></label>
			      	</div>
			      	<div class="col-md-2">
			      		<?php if(COVER_URL=="") { ?>
		    			  <img src="media/images/users/photo_default.png" alt="photo" width="75">
		    			 <?php } else { ?>
		    			  <img src="media/images/users/<?php echo COVER_URL ?>" alt="photo" width="75">
		    			 <?php } ?>
			      	</div>
			      	<div class="col-md-5 text-left">
						<div id="coverPreview">
			        		<a id="deletePhotoLink" href="#" onclick="deleteCover(); return false"><?php getLanguage(132)?></a>
			      		</div>
			      		<input type="hidden" id="deletephoto" name="deletephoto" value="0">
			      		<div id="coverUpload" style="display:none">
					        <input type="file" name="photo" id="photo" size="30" class="w40">
					    </div><br />
					    <span class="supporting"><span style="color:green"><?php getLanguage(431)?></span><br><?php getLanguage(134)?><br /><?php getLanguage(135)?> <?php echo PHOTO_MAX_WIDTH ?> px | <?php getLanguage(136)?>  <?php echo PHOTO_MAX_HEIGHT ?> px</span>
					</div>
					<div class="col-md-2">
					    <input id="saveProfileButton" type="submit" value="<?php getLanguage(137)?>" class="btn btn-primary">
			      	</div>
			    </div>
      	</form>
      	<br><hr><br>
      	<form method="post" action="account/settings" id="profileForm">
      		<input type="hidden" name="img" value="none">
      		<div class="row">
			    <div class="col-md-3 text-right">
			    	<label for="website"><?php getLanguage(141)?></label>
			    </div>
			    <input type="hidden" name="profileForm" value="1">
			    <div class="col-md-9 text-left">
					<input type="hidden" name="profileForm" value="1">
    				<input type="text" name="website" id="website" value="<?php echo SETTINGS_WEBSITE; ?>" size="40" class="w40" placeholder="<?php getLanguage(141)?>"/><br>
                	<span class="supporting"><?php getLanguage(141)?></span>
                </div>
            </div>
            <br>
			<div class="row">
			    <div class="col-md-3 text-right">
                	<label for="location"><?php getLanguage(142)?></label>
                </div>
                <div class="col-md-9 text-left">
                	<input type="text" name="location" id="location" value="<?php echo SETTINGS_LOCALIZATION; ?>" size="40" class="w40" placeholder="<?php getLanguage(142)?>"/><br>
	               <span class="supporting"><?php getLanguage(143)?></span>
	            </div>
	        </div>
	        <br>
            <div class="row">
			    <div class="col-md-3 text-right">
                	<label for="status"><?php getLanguage(146)?></label>
                </div>
                <div class="col-md-9 text-left">
                	<input type="text" name="status" value="<?php echo SETTINGS_USER_STATUS; ?>" size="40" class="w40" maxlength="120" placeholder="<?php getLanguage(146)?>"/><br>
	              	<span class="supporting"><?php getLanguage(147)?></span>
            	</div>
            </div>
            <br>
            <div class="row">
			    <div class="col-md-3 text-right">
                	<label for="bio"><?php getLanguage(144)?></label>
                </div>
				<div class="col-md-9 text-left">
					<textarea name="bio" id="bio" rows="3" data-maxsize="200" data-output="numcounts" cols="30" class="w40" placeholder="<?php getLanguage(144)?>"><?php echo SETTINGS_BIO; ?></textarea><br>
	              	<span class="supporting"><?php getLanguage(145)?><span id="numcounts" style="font-weight:bold;text-align:right;padding-left:200px"></span></span>
           		</div>
           	</div>
           	<br>
			<div class="row">
				<div class="col-md-10 text-right">
					<img id="saveProfileIndicator" src="media/images/indicator.gif" alt="." class="indicator" style="display:none">
				</div>
				<div class="col-md-2">
					<input id="saveProfileButton" type="submit" value="<?php getLanguage(137)?>" onclick="checkWebsite()" class="btn btn-primary">
      			</div>
      		</div>
    	</div>
	</form>

		</div>
	</div>
	<div style="padding-bottom:15px"></div>
  </div>
  <div id="footerspace"></div>
</div>