<?@header("Content-Type: text/html; charset=UTF-8");?><!DOCTYPE html>
<html>
<head>
	<title>ARCHLine.XP MyDesign</title>
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
	
	<link href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" rel="stylesheet" />
	
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
	<script type="text/javascript" src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
	
	<?/*
	<link href="/public/js/photoswipe/examples/jquery-mobile.css" type="text/css" rel="stylesheet" />
	<link href="/public/js/photoswipe/photoswipe.css" type="text/css" rel="stylesheet" />
	
	<script type="text/javascript" src="/public/js/photoswipe/lib/klass.min.js"></script>
	<script type="text/javascript" src="/public/js/photoswipe/code.photoswipe.jquery-3.0.4.min.js"></script>
	
	
	<script type="text/javascript">
		
		(function(window, $, PhotoSwipe){
			
			$(document).ready(function(){
				
				$('div.gallery-page')
					.live('pageshow', function(e){
						
						var 
							currentPage = $(e.target),
							options = {captionAndToolbarAutoHideDelay: 0},
							photoSwipeInstance = $("ul.gallery a", e.target).photoSwipe(options,  currentPage.attr('id'));
							
						return true;
						
					})
					
					.live('pagehide', function(e){
						
						var 
							currentPage = $(e.target),
							photoSwipeInstance = PhotoSwipe.getInstance(currentPage.attr('id'));

						if (typeof photoSwipeInstance != "undefined" && photoSwipeInstance != null) {
							PhotoSwipe.detatch(photoSwipeInstance);
						}
						
						return true;
						
					});
				
			});
		
		}(window, window.jQuery, window.Code.PhotoSwipe));
		
	</script>
	*/?>
	
<?if(!hun()):?>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-7485741-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<?else:?>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-5480261-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<?endif;?>
	
</head>
<body>
<?=$this->load->view('mobile/noscript')?>

<div data-role="page" id="Home">

	<div data-role="header">
		<h1>My Designs</h1>
		<?if($uid!="guest"):?>
		<a data-theme="a" data-wrapperels="span" data-iconshadow="true" data-shadow="true" data-corners="true" class="ui-btn-right ui-btn ui-shadow ui-btn-corner-all ui-btn-icon-right ui-focus ui-btn-up-a" href="/mobile/logout" data-icon="arrow-r">
		<span class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-text"><?=lang('forum_kilep')?></span>
		<span class="ui-icon ui-icon-arrow-r ui-icon-shadow">&nbsp;</span></span>
		</a>
		<?else:?>
		<a class="ui-btn ui-shadow ui-btn-corner-all ui-btn-icon-left ui-btn-up-a" data-theme="a" data-wrapperels="span" data-iconshadow="true" data-shadow="true" data-corners="true" href="/mobile/guests" data-role="button" data-icon="arrow-l" data-ajax="false">
		<span class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-text"><?=lang('forum_vissza')?></span>
		<span class="ui-icon ui-icon-arrow-l ui-icon-shadow">&nbsp;</span></span>
		</a>
		<?endif;?>
	</div>
	
	<div data-role="content">
		<?if($projektek && count($projektek)>0 ):?>
		<ul data-role="listview" data-inset="true">
			<?if(isset($megosztas) && $megosztas===true):?>
				<?foreach($projektek as $p):?>
				<li class="ui-btn ui-btn-icon-right ui-li ui-li-has-alt" data-iconpos="right" data-icon="gear" data-wrapperels="div" data-iconshadow="true" data-shadow="false" data-corners="false">
					<a href="/mobile/usergallery/<?=$p->userid?>/<?=$p->mappa?>" data-ajax="false"><?=$p->nev?></a>
					<a class="ui-li-link-alt" href="/mobile/editusergalleryproject/<?=$p->mappa?>">Edit project</a>
				</li>
				<?endforeach;?>
			<?else:?>
				<?foreach($projektek as $p):?>
				<li>
					<a href="/mobile/usergallery/<?=$p->userid?>/<?=$p->mappa?>" data-ajax="false" ><?=$p->nev?></a>
				</li>
				<?endforeach;?>
			<?endif;?>
		</ul>
		<?else:?>
		<?=lang('collec2_nincspro')?>
		<?endif;?>
	</div>

	<div data-role="footer">
		<h4><?=lang('m_cegnev')?></h4>
	</div>

</div>

</body>
</html>
