<?php
mt_srand();
$index = mt_rand(1, 9999);
?>
<div id="pjWrapper">
	<div class="container-fluid pjMlContainer">
		<?php include_once PJ_VIEWS_PATH . 'pjLoad/elements/header.php';?>
		
		<div class="pjMlBody">
			<div class="panel panel-default pjMlSearch">
				<div class="panel-body pjMlForm pjMlFormSearch">
					<form id="pjMlFormSearch_<?php echo $index;?>" method="get">
						<input type="hidden" value="pjLoad" name="controller">
						<input type="hidden" value="pjActionIndex" name="action">
						<input type="hidden" value="1" name="members_search">
					
						<p class="pjMlFormTitle"><?php __('front_search_members');?></p><!-- /.pjMlFormTitle -->
						
						<div class="row pjMlFormContent">
							<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
								<div class="form-group">
									<label for=""><?php __('front_member_name');?>: </label>
									
									<input type="text" name="name" class="form-control" />
								</div><!-- /.form-group -->

								<div class="form-group">
									<label for=""><?php __('front_age');?>: </label>

									<div class="form-control pjMlCustomSelect">
										<select name="age">
											<option value="">-- <?php __('front_select');?> --</option>
											<?php
											foreach(pjUtil::getAgeRange() as $k => $v)
											{
												?><option value="<?php echo $k;?>"><?php echo $v;?></option><?php
											} 
											?>
										</select>

										<span class="pjMlCustomSelectTriangle">
											<i class="fa fa-caret-down"></i>
										</span>
									</div><!-- /.form-control pjMlCustomSelect -->
								</div><!-- /.form-group -->

								<div class="form-group">
									<label for=""><?php __('front_city');?>: </label>
									
									<input type="text" name="city" class="form-control" />
								</div><!-- /.form-group -->
							</div><!-- /.col-lg-6 col-md-6 col-sm-6 col-xs-12 -->

							<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
								<div class="form-group">
									<label for=""><?php __('front_email_address');?>: </label>
									
									<input type="email" name="email" class="form-control"/>
									<div class="help-block with-errors"></div>
								</div><!-- /.form-group -->

								<div class="form-group">
									<label for=""><?php __('front_skills');?>: </label>
									
									<div class="row">
										<?php
										foreach($tpl['skill_arr'] as $v)
										{
											?>
											<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
												<div class="pjMlCheckbox pjMlCustomCheckbox">
													<input type="checkbox" id="skill_<?php echo $v['id'];?>" name="skills[]" value="<?php echo $v['id'];?>"/>
	
													<label for="skill_<?php echo $v['id'];?>">
														<span class="pjMlCustomCheckboxFake">
															<i class="fa fa-check"></i>
														</span>
	
														<?php echo pjSanitize::html($v['skill_title']);?>
													</label>
												</div><!-- /.pjMlCheckbox pjMlCustomCheckbox -->
											</div><!-- /.col-lg-6 col-md-6 col-sm-6 col-xs-6 -->
											<?php
										} 
										?>
									</div><!-- /.row -->
								</div><!-- /.form-group -->
							</div><!-- /.col-lg-6 col-md-6 col-sm-6 col-xs-12 -->
						</div><!-- /.row pjMlFormContent -->
						
						<div class="pjMlFormActions">
							<button type="submit" class="btn btn-default pjMlBtn pjMlBtnPrimary"><?php __('front_btn_search');?></button>
						</div><!-- /.pjMlFormActions -->
					</form>
				</div><!-- /.panel-body pjMlForm pjMlFormSearch -->
			</div><!-- /.panel panel-default pjMlSearch -->
		</div><!-- /.pjMlBody -->
	</div><!-- /.container-fluid pjMlContainer -->
</div><!-- /#pjWrapper -->
	
<?php include_once PJ_VIEWS_PATH . 'pjLoad/elements/loadjs.php';?>