2024-07-29 13:50:16 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-08-07 08:13:55 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								                <!--  widget  " config "  --> 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-25 10:24:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                < div  class = " card text-center w-75 mx-lef " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-19 10:25:09 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                    < p  class = " h4 card-header " > Jilo  web  configuration </ p > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    < div  class = " card-body " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                        < p  class = " card-text " > main  variables </ p > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-13 19:46:56 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< ? php  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								include  '../app/helpers/render.php' ;  
						 
					
						
							
								
									
										
										
										
											2024-08-19 10:25:09 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								renderConfig ( $config ,  '0' );  
						 
					
						
							
								
									
										
										
										
											2024-08-13 19:46:56 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								echo  " \n " ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								?> 
  
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< hr  />  
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                        < p  class = " card-text " > platforms  configuration  & nbsp ; < a  class = " btn btn-secondary "  style = " padding: 0px; "  href = " <?= htmlspecialchars( $app_root ) ?>?page=config&item=platform&action=add " > add  new </ a ></ p > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< ? php  foreach  ( $platformsAll  as  $platform_array )  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    $agents  =  $agentObject -> getAgentDetails ( $platform_array [ 'id' ]); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								?> 
  
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                        < a  name = " platform<?= htmlspecialchars( $platform_array['id'] ) ?> " ></ a > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                        < div  class = " row mb-3 "  style = " padding-left: 0px; " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                            < div  class = " border bg-light "  style = " padding-left: 50px; padding-bottom: 0px; padding-top: 0px; " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                < a  style = " text-decoration: none; "  data - toggle = " collapse "  href = " #collapsePlatform<?= htmlspecialchars( $platform_array['id'] ) ?> "  role = " button "  aria - expanded = " true "  aria - controls = " collapsePlatform<?= htmlspecialchars( $platform_array['id'] ) ?> " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                    < div  class = " border bg-white text-start mb-3 rounded mt-3 "  data - toggle = " tooltip "  data - placement = " bottom "  title = " configuration for platform <?= htmlspecialchars( $platform_array['id'] ) ?> " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                        < i  class = " fas fa-wrench " ></ i > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                        < small > platform  < ? =  htmlspecialchars ( $platform_array [ 'id' ])  ?>  (<?= htmlspecialchars($platform_array['name']) ?>)</small>
 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                < div  class = " collapse show "  id = " collapsePlatform<?= htmlspecialchars( $platform_array['id'] ) ?> " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                    < div  class = " row mb-1 "  style = " padding-left: 0px; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                        < div  class = " col-md-8 text-start " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                            < div  class = " row mb-1 " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                < div  class = " col-md-8 text-start " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                    < a  class = " btn btn-secondary "  style = " padding: 2px; "  href = " <?= htmlspecialchars( $app_root ) ?>?page=config&platform=<?= htmlspecialchars( $platform_array['id'] ) ?>&action=edit " > edit  platform </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< ? php  if  ( count ( $platformsAll )  <=  1 )  {  ?> 
  
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                    < span  class = " btn btn-light "  style = " padding: 2px; "  href = " # "  data - toggle = " tooltip "  data - placement = " right "  data - offset = " 30.0 "  title = " can't delete the last platform " > delete  platform </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< ? php  }  else  {  ?> 
  
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                    < a  class = " btn btn-danger "  style = " padding: 2px; "  href = " <?= htmlspecialchars( $app_root ) ?>?page=config&platform=<?= htmlspecialchars( $platform_array['id'] ) ?>&action=delete " > delete  platform </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< ? php  }  ?> 
  
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                        < div  style = " padding-left: 100px; padding-bottom: 20px; " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< ? php  foreach  ( $platform_array  as  $key  =>  $value )  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        if  ( $key  ===  'id' )  continue ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								?> 
  
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                            < div  class = " row mb-1 "  style = " padding-left: 100px; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                < div  class = " col-md-4 text-end " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                    < ? =  htmlspecialchars ( $key )  ?> :
 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                < div  class = " border col-md-8 text-start " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                    < ? =  htmlspecialchars ( $value )  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                            </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< ? php  }  ?> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                        < hr  /> 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                        < p  class = " card-text " > jilo  agents  on  platform  < ? =  htmlspecialchars ( $platform_array [ 'id' ])  ?>  (<?= htmlspecialchars($platform_array['name']) ?>)
 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                            < br  /> 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                            total  < ? =  htmlspecialchars ( count ( $agents ))  ?>  <?= htmlspecialchars(count($agents)) === 1 ? 'jilo agent' : 'jilo agents' ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                            < a  class = " btn btn-secondary "  style = " padding: 0px; "  href = " <?= htmlspecialchars( $app_root ) ?>?page=config&platform=<?= htmlspecialchars( $platform_array['id'] ) ?>&action=add-agent " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                add  new 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                            </ a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                        </ p > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< ? php  foreach  ( $agents  as  $agent_array )  {  ?> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                        < a  name = " platform<?= htmlspecialchars( $platform_array['id'] ) ?>agent<?= htmlspecialchars( $agent_array['id'] ) ?> " ></ a > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                        < div  class = " row mb-3 "  style = " padding-left: 0px; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                            < div  class = " border rounded bg-light "  style = " padding-left: 50px; padding-bottom: 20px; padding-top: 20px; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                < div  class = " row mb-1 "  style = " padding-left: 0px; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                    < div  class = " col-md-4 text-end " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                        agent  id  < ? =  htmlspecialchars ( $agent_array [ 'id' ])  ?> :
 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                    </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                    < div  class = " col-md-8 text-start " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                        < a  class = " btn btn-secondary "  style = " padding: 2px; "  href = " <?= htmlspecialchars( $app_root ) ?>?page=config&platform=<?= htmlspecialchars( $agent_array['platform_id'] ) ?>&agent=<?= htmlspecialchars( $agent_array['id'] ) ?>&action=edit " > edit  agent </ a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                        < a  class = " btn btn-danger "  style = " padding: 2px; "  href = " <?= htmlspecialchars( $app_root ) ?>?page=config&platform=<?= htmlspecialchars( $agent_array['platform_id'] ) ?>&agent=<?= htmlspecialchars( $agent_array['id'] ) ?>&action=delete " > delete  agent </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                    </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                    < div  style = " padding-left: 100px; padding-bottom: 20px; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                        < div  class = " row mb-1 "  style = " padding-left: 100px; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                            < div  class = " col-md-4 text-end " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-03 08:40:41 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                                agent  type : 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                            < div  class = " border col-md-8 text-start " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                                < ? =  htmlspecialchars ( $agent_array [ 'agent_description' ])  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-03 08:40:41 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                        < div  class = " row mb-1 "  style = " padding-left: 100px; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                            < div  class = " col-md-4 text-end " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                                endpoint : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                            < div  class = " border col-md-8 text-start " > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-04 11:18:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                                < ? =  htmlspecialchars ( $agent_array [ 'url' ] . $agent_array [ 'agent_endpoint' ])  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                    </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< ? php  }  ?> 
  
						 
					
						
							
								
									
										
										
										
											2024-09-04 22:06:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-18 08:32:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-04 09:53:02 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< ? php  }  ?> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-08-19 10:25:09 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-07 08:13:55 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								                </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                <!--  / widget  " config "  -->