Created
August 28, 2013 02:55
-
-
Save orenmizr/6361664 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> | |
<%@page import="DBcontroll.*,java.util.*,model.*,servlets.*,services.*"%> | |
<%@include file="config.jsp" %> | |
<% | |
Object userName = session.getAttribute( "userName" ); | |
Object userId = session.getAttribute( "userId" ); | |
Object msg = session.getAttribute( "messageToUser"); | |
session.setAttribute( "messageToUser", null ); | |
UserWithMembershipDetails currUser = ServletUtils.getTargetUserFromRequest(request); | |
%> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="heb"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>צימרים</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<!-- Le scripts --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script> | |
<script src="js/bootstrap.min.js" type="text/javascript"></script> | |
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> | |
<script src="js/chosen.jquery.js" type="text/javascript"></script> | |
<script src="js/jquery.dataTables.min.js" type="text/javascript"></script> | |
<script src="js/jquery.form.min.js" type="text/javascript"></script> | |
<script src="js/jquery.validate.min.js" type="text/javascript"></script> | |
<script src="js/jquery.raty.min.js" type="text/javascript"></script> | |
<script src="js/kalendae.standalone.js" type="text/javascript" charset="utf-8"></script> | |
<script src="js/messages_he.js" type="text/javascript"></script> | |
<script src="js/default.js" type="text/javascript"></script> | |
<script src="js/main.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
// Get $_GET Parameters From URL And Send To App JS Object | |
var url = window.location.search.replace( "?", "" ).split("&"), | |
get = {}; | |
$.each( url, function( index, content ){ | |
param = content.split("="); | |
get[param[0]] = param[1]; | |
}); | |
// Fire Main Object | |
$( "body" ).chimme( get ); | |
}); | |
</script> | |
<style> | |
body | |
{ | |
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ | |
} | |
</style> | |
<!-- Le styles --> | |
<base href=""> | |
<link href="css/chosen.css" rel="stylesheet" type='text/css'> | |
<link href='css/bootstrap-rtl.min.css' rel='stylesheet' type='text/css'> | |
<link href='css/bootstrap-responsive-rtl.min.css' rel='stylesheet' type='text/css'> | |
<link href="http://blueimp.github.com/Bootstrap-Image-Gallery/css/bootstrap-image-gallery.min.css" rel="stylesheet"> | |
<link rel="stylesheet" href="css/kalendae.css" type="text/css" charset="utf-8"> | |
<link href='css/style.css' rel='stylesheet' type='text/css'> | |
<link href='css/styleapp.css' rel='stylesheet' type='text/css'> | |
<link href="css/jquery.fileupload-ui.css" rel="stylesheet" type='text/css'> | |
<noscript><link rel="stylesheet" href="css/jquery.fileupload-ui-noscript.css"></noscript> | |
<link rel="icon" type="image/x-icon" href="/favicon.ico" /> | |
</head> | |
<body> | |
<!-- Le content --> | |
<div class="navbar navbar-inverse navbar-fixed-top"> | |
<div class="navbar-inner"> | |
<div class="container-fluid"> | |
<div class="inner clearfix"> | |
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<a class="brand" href="index.jsp">צ'ימרס</a> | |
<div class="nav-collapse collapse"> | |
<!-- <ul class="nav"> --> | |
<!-- <li class="active"><a href="#">Home</a></li> --> | |
<!-- <li><a href="#about">About</a></li> --> | |
<!-- <li><a href="#contact">Contact</a></li> --> | |
<!-- </ul> --> | |
<!-- <form accept-charset="UTF-8" action="VenueServlet" class="navbar-form" id="search-form" method="get"> --> | |
<!-- <div class="input-prepend "> --> | |
<!-- <input class="span2" type="text" name="area" placeholder="חיפוש"> --> | |
<!-- <button type="submit" class="btn" id="search-submit"> --> | |
<!-- <span><i class="icon-search icon"></i></span> --> | |
<!-- </button> --> | |
<!-- </div> --> | |
<!-- </form> --> | |
<% if ( userName == null ) { %> | |
<ul class="nav pull-right"> | |
<li> | |
<div class="dropdown pull-right"> | |
<a href="/signin" class="btn btn-mini dropdown-toggle signin" data-event="Click Signin" data-target="inline-login-dropdown" data-toggle="dropdown" rel="nofollow">התחבר<span class="caret"></span></a> | |
<ul class="dropdown-menu pull-right login" id="inline-login"> | |
<!-- <li> --> | |
<!-- <div class="panel"> --> | |
<!-- <p class="btn-signin facebook fb-login" style="margin: 10px auto;"> --> | |
<!-- <a href="/users/auth/facebook" class="btn-signin facebook fb-login" style="z-index:1000000">Sign in with Facebook</a> --> | |
<!-- </p> --> | |
<!-- </div> --> | |
<!-- </li> --> | |
<!-- <li class="divider"></li> --> | |
<li> | |
<div class="panel"> | |
<form accept-charset="UTF-8" action="LoginServlet" method="post"> | |
<input id="user_email" name="userName" placeholder="שם משתמש" size="30" style="width: 160px;"> | |
<input id="user_password" name="userPassword" placeholder="סיסמא" size="30" style="width: 160px;" type="password"> | |
<input type="hidden" name="actionType" value="signIn"> | |
<input type="hidden" name="redirectPath" value="index.jsp"></td> | |
<div class="checkbox pull-right"> | |
<label for="user_remember_me"> | |
<input name="user[remember_me]" type="hidden" value="0"> | |
<input id="user_remember_me" name="user[remember_me]" type="checkbox" value="1"> זכור אותי | |
</label> | |
</div> | |
<input class="btn" type="submit" value="היכנס"> | |
</form> | |
</div> | |
</li> | |
<li class="divider"></li> | |
<li> | |
<div class="panel"> | |
<p class="help-inline"> | |
<a href="#forgatPass" data-toggle="modal">לא יכול להיכנס?</a> | <a href="signup.jsp">הירשם לאתר</a> | |
</p> | |
</div> | |
</li> | |
</ul> | |
</div> | |
</li> | |
</ul> | |
<% } else { %> | |
<ul class="nav pull-right"> | |
<li class="dropdown" id="user-dropdown"><a | |
class="dropdown-toggle" data-toggle="dropdown" | |
href="#user-dropdown"><%= currUser.getUserFirstName() %> <%= currUser.getUserLastName() %><span class="caret"></span></a> | |
<ul class="dropdown-menu"> | |
<li><a href="favorites.jsp" rel="nofollow">מועדפים</a></li> | |
<li><a href="my_chimmers.jsp" rel="nofollow">הצימרים שלי</a></li> | |
<li class="divider"></li> | |
<li><a href="inbox.jsp" rel="nofollow">דואר נכנס</a></li> | |
<li><a href="outbox.jsp" rel="nofollow">דואר יוצא</a></li> | |
<li class="divider"></li> | |
<% if ( currUser.isAdmin() == true ) { %> | |
<li><a href="admin_venues.jsp" rel="nofollow">ניהול צימרים</a></li> | |
<li><a href="admin_users.jsp" rel="nofollow">ניהול משתמשים</a></li> | |
<li class="divider"></li> | |
<% } %> | |
<li><a href="profile.jsp" rel="nofollow">ערוך פרופיל</a></li> | |
<li> | |
<a href="LoginServlet?actionType=signOut&userId=<%= userId %>" class="logout" data-event="Logout">התנתק</a> | |
</li> | |
</ul> | |
<!-- /dropdown-menu --> | |
</li> | |
</ul> | |
<% } %> | |
</div><!--/.nav-collapse --> | |
</div> | |
</div> | |
</div> | |
</div> | |
<% if( msg != null ) { %> | |
<div class="container" style=" width: 940px;"> | |
<div class="row"> | |
<div class="alert alert-info editSuccess"> | |
<%= msg %> | |
</div> | |
</div> | |
</div> | |
<% }%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment