<commit_before><header class="page-header relative">
	<h3>
		Project Tasks <small>Click 'Create Task' to create a new Task</small>
	</h3>
</header>

<div class="panel panel-default">
	<div class="panel-heading">Task Controls</div>

	<div role="form" class="form-inline panel-body">
		<div class="form-group inline col-xs-14 col-sm-2 col-lg-2">
			<a data-toggle="modal" href="#modal_createTask"
				class="btn btn-primary btn-sm form-control">Create Task</a>
		</div>
		<div class="form-group col-xs-6 col-lg-8 col-sm-8">

			<select class="form-control inline" id="taskAll_filter">
				<option value="empty">No Filter</option>
				<?php 
				if(isset($data['allTaskStatus']))
				{
					if($data['allTaskStatus']['success'] == true)
					{
						foreach($data['allTaskStatus']['data'] as $statusOption)
						{
							if(isset($taskStatus))
							{
								if($statusOption == $taskStatus){
								echo '<option value="'.$statusOption.'" selected="selected">'.$statusOption.'</option>';
							} else {
					echo '<option value="'.$statusOption.'">'.$statusOption.'</option>';
				}
							}else
							{
								echo '<option value="'.$statusOption.'">'.$statusOption.'</option>';
							}

						}
					}else
					{
						echo $data['allTaskStatus']['message'];
						/* DISPLAY ERROR */
					}
				}

				?>
			</select>
		</div>

		<div class="form-group col-xs-6 col-lg-2 col-sm-2">
			<button class="btn btn-primary form-control" id="filterReload">Filter</button>
		</div>
	</div>
</div>


<?php include_once 'modal_createTask.php'; ?>

<table
	class="table table-rowBorder table-hover table-zebra table-responsive-dropLast2Col">

	<thead>
		<th class="table-colSmall">Status</th>
		<th class="table-colLarge">Task</th>
		<th class="table-colMedium">Members</th>
		<th class="table-colMedium">Last Update</th>
	</thead>

	<tbody id="tasksContainer" class="tbodyFirstLineAccordion">

	</tbody>

</table>

<div class="text-center">
	<ul class="pagination" id="allTasksPaginator">
		<?php 

		if($data['taskCount']['success'] == true){
			$amountOfTasks = $data['taskCount']['data'][0];
			$amountOfPages = ceil($amountOfTasks / 5);
			include 'paginator_generator.php';
		}else
		{
			//echo $data['taskCount']['message'];
			echo "There was trouble loading the paginator";
		}

		?>
	</ul>
</div>
<script
	src="//<?php echo SITE_ROOT.AppBaseSTRIPPED; ?>Package/Task/includes/js/TaskLoaderNEW.js"></script>
<script
	src="//<?php echo SITE_ROOT.AppBaseSTRIPPED; ?>Package/Task/includes/js/TableLoaderNEW.js"></script>
<script>
ajaxBase = "<?php echo SITE_ROOT.AppBaseSTRIPPED; ?>Package/Task/";

/* MAIN TASK TABLE CONFIG ARRAY */
mainTaskTable = {
		'print_location'	:	'#tasksContainer',
		'quantity_per_page'	:	5,
		'last_page'			:	-1,
		'memberId'			:	<?php echo unserialize($_SESSION['accountObject'])->getMemberId(); ?>,
		'memberFirstName'	: 	"<?php echo unserialize($_SESSION['accountObject'])->getFirstName(); ?>",
		'content'			:	new Array(),
		'taskFilter'		:	false,
		'paginatorLocation'	:	"#allTasksPaginator"
};

/**
 * Comment section paginator on click event
 */
 $(document).on('click', ".pagination li a", function () {
		event.preventDefault();

		
		if($(this).text() == "<<")
		{
			$(this).parent().siblings().children().css('backgroundColor', 'white');
			$(this).parent().next().children().css('backgroundColor', '#eee');
			loadTasks(mainTaskTable, 1);
		}else if($(this).text() == ">>")
		{
			$(this).parent().siblings().children().css('backgroundColor', 'white');
			$(this).parent().prev().children().css('backgroundColor', '#eee');
			loadTasks(mainTaskTable, parseInt($(this).parent().prev().find(">:first-child").text()));
		}else
		{
			$(this).parent().siblings().children().css('backgroundColor', 'white');
			$(this).css('backgroundColor', '#eee');
			loadTasks(mainTaskTable, parseInt($(this).text()));
		}<commit_msg>Fuxed Task's paginator selected background color bug<commit_after><header class="page-header relative">
	<h3>
		Project Tasks <small>Click 'Create Task' to create a new Task</small>
	</h3>
</header>

<div class="panel panel-default">
	<div class="panel-heading">Task Controls</div>

	<div role="form" class="form-inline panel-body">
		<div class="form-group inline col-xs-14 col-sm-2 col-lg-2">
			<a data-toggle="modal" href="#modal_createTask"
				class="btn btn-primary btn-sm form-control">Create Task</a>
		</div>
		<div class="form-group col-xs-6 col-lg-8 col-sm-8">

			<select class="form-control inline" id="taskAll_filter">
				<option value="empty">No Filter</option>
				<?php 
				if(isset($data['allTaskStatus']))
				{
					if($data['allTaskStatus']['success'] == true)
					{
						foreach($data['allTaskStatus']['data'] as $statusOption)
						{
							if(isset($taskStatus))
							{
								if($statusOption == $taskStatus){
								echo '<option value="'.$statusOption.'" selected="selected">'.$statusOption.'</option>';
							} else {
					echo '<option value="'.$statusOption.'">'.$statusOption.'</option>';
				}
							}else
							{
								echo '<option value="'.$statusOption.'">'.$statusOption.'</option>';
							}

						}
					}else
					{
						echo $data['allTaskStatus']['message'];
						/* DISPLAY ERROR */
					}
				}

				?>
			</select>
		</div>

		<div class="form-group col-xs-6 col-lg-2 col-sm-2">
			<button class="btn btn-primary form-control" id="filterReload">Filter</button>
		</div>
	</div>
</div>


<?php include_once 'modal_createTask.php'; ?>

<table
	class="table table-rowBorder table-hover table-zebra table-responsive-dropLast2Col">

	<thead>
		<th class="table-colSmall">Status</th>
		<th class="table-colLarge">Task</th>
		<th class="table-colMedium">Members</th>
		<th class="table-colMedium">Last Update</th>
	</thead>

	<tbody id="tasksContainer" class="tbodyFirstLineAccordion">

	</tbody>

</table>

<div class="text-center">
	<ul class="pagination" id="allTasksPaginator">
		<?php 

		if($data['taskCount']['success'] == true){
			$amountOfTasks = $data['taskCount']['data'][0];
			$amountOfPages = ceil($amountOfTasks / 5);
			include 'paginator_generator.php';
		}else
		{
			//echo $data['taskCount']['message'];
			echo "There was trouble loading the paginator";
		}

		?>
	</ul>
</div>
<script
	src="//<?php echo SITE_ROOT.AppBaseSTRIPPED; ?>Package/Task/includes/js/TaskLoaderNEW.js"></script>
<script
	src="//<?php echo SITE_ROOT.AppBaseSTRIPPED; ?>Package/Task/includes/js/TableLoaderNEW.js"></script>
<script>
ajaxBase = "<?php echo SITE_ROOT.AppBaseSTRIPPED; ?>Package/Task/";

/* MAIN TASK TABLE CONFIG ARRAY */
mainTaskTable = {
		'print_location'	:	'#tasksContainer',
		'quantity_per_page'	:	5,
		'last_page'			:	-1,
		'memberId'			:	<?php echo unserialize($_SESSION['accountObject'])->getMemberId(); ?>,
		'memberFirstName'	: 	"<?php echo unserialize($_SESSION['accountObject'])->getFirstName(); ?>",
		'content'			:	new Array(),
		'taskFilter'		:	false,
		'paginatorLocation'	:	"#allTasksPaginator"
};

/**
 * Comment section paginator on click event
 */
 $(document).on('click', ".pagination li a", function () {
		event.preventDefault();

		
		if($(this).text() == "<<")
		{
			$(this).parent().siblings().children().removeClass("paginator-selected");
			$(this).parent().next().children().addClass("paginator-selected");
			loadTasks(mainTaskTable, 1);
		}else if($(this).text() == ">>")
		{
			$(this).parent().siblings().children().removeClass("paginator-selected");
			$(this).parent().prev().children().addClass("paginator-selected");
			loadTasks(mainTaskTable, parseInt($(this).parent().prev().find(">:first-child").text()));
		}else
		{
			$(this).parent().siblings().children().removeClass("paginator-selected");
			$(this).addClass("paginator-selected");
			loadTasks(mainTaskTable, parseInt($(this).text()));
		}
{'fraction_non_alphanumeric': 0.2068254990341275, 'fraction_numerical': 0.00463618802318094, 'mean_word_length': 4.13964262078094, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 139, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7247389', 'n_tokens_mistral': 3045, 'n_tokens_neox': 2611, 'n_words': 448}