}
?>
<dd><input name="hub" type="checkbox" value="true" <?php 
echo $checked;
?>
/></dd>

<dt></dt>
<dd><input type="hidden" name="action" value="<?php 
echo $action;
?>
" />
	<input type="submit" name="submit" value="<?php 
echo $title;
?>
" />
</dd>
</dl>
</form>

<script type="text/javascript">
$("#airporticao").bind("blur", function()
{
	$.get(<?php 
echo adminaction('/operations/getfuelprice');
?>
?icao="+$(this).val(), function(data) {
		$("#livepriceavailable").html(data);
	});
});
</script>
</td>
	<td align="center"><a href="<?php 
    echo url('/pages/' . $page->filename);
    ?>
"><?php 
    echo $page->filename;
    ?>
</a></td>
	<td align="center" width="1%" nowrap>
		<button class="{button:{icons:{primary:'ui-icon-wrench'}}}" 
		onclick="window.location='<?php 
    echo adminurl('/sitecms/editpage?pageid=' . $page->pageid);
    ?>
';">Edit</button>

		<button class="deleteitem {button:{icons:{primary:'ui-icon-trash'}}}" 
			id="<?php 
    echo $page->pageid;
    ?>
"
			href="<?php 
    echo adminaction('/sitecms/viewpages?action=deletepage&pageid=' . $page->pageid);
    ?>
">Delete</button>
	</td>
</tr>
<?php 
}
?>
</tbody>
</table>
if (!defined('IN_PHPVMS') && IN_PHPVMS !== true) {
    die;
}
?>
<h3>Add to Group</h3>

<?php 
$total = count($freegroups);
if ($total == 0) {
    echo 'No groups to add to';
    return;
}
?>
<form id="pilotgroupform" action="<?php 
echo adminaction('/pilotadmin/viewpilots');
?>
" method="POST">
<dl>
	<dt>Select Group:</dt>
	<dd><select name="groupname">
		<?php 
foreach ($freegroups as $group) {
    echo '<option value="' . $group . '">' . $group . '</option>';
}
?>
		</select></dd>

	<dt></dt>
	<dd><input type="hidden" name="pilotid" value="<?php 
echo $pilotid;
Exemple #4
0
    echo date(DATE_FORMAT, $news->postdate);
    ?>
</td>
	<td align="center" width="1%" nowrap>
        <button class="{button:{icons:{primary:'ui-icon-wrench'}}}" onclick="window.location='<?php 
    echo adminaction('/sitecms/bumpnews?id=' . $news->id);
    ?>
';">
			Bump
		</button>
		<button class="{button:{icons:{primary:'ui-icon-wrench'}}}" onclick="window.location='<?php 
    echo adminurl('/sitecms/editnews?id=' . $news->id);
    ?>
';">
			Edit
		</button>
		<button class="deleteitem {button:{icons:{primary:'ui-icon-trash'}}}" 
			href="<?php 
    echo adminaction('/sitecms/viewnews');
    ?>
" action="deleteitem" id="<?php 
    echo $news->id;
    ?>
">Delete</button>
	</td>
</tr>
<?php 
}
?>
</tbody>
</table>
	</div>
    <?php 
}
if (PilotGroups::group_has_perm(Auth::$usergroups, FULL_ADMIN)) {
    ?>
    
	<div id="resetpass">
    <?php 
    Template::Show('pilots_options.tpl');
    ?>
	</div>
    <?php 
}
?>
    
</div>
</div>

<script type="text/javascript">
$("#tabcontainer").tabs();
/*
$("#pilotgroupslink").bind('click', function(e) {
    $.get("<?php 
echo adminaction('/pilotadmin/pilotgrouptab/' . $pilotinfo->pilotid);
?>
", function(d){
        $("#pilotgroups").html(d);
    })    
})
*/
</script>
	],
    pager: '#pager', rowNum: 25,
    sortname: 'icao', sortorder: 'asc',
    viewrecords: true, autowidth: true,
    height: '100%'
});

jQuery("#grid").jqGrid('navGrid','#pager', 
	{edit:false,add:false,del:false,search:true,refresh:true},
	{}, // edit 
	{}, // add 
	{}, //del 
	{multipleSearch:true} // search options 
); 

function editairport(icao)
{
	$('#jqmdialog').jqm({
		ajax:'<?php 
echo adminaction('/operations/editairport?icao=');
?>
'+icao,
		onHide: function(h)
		{
			h.o.remove(); // remove overlay
			h.w.fadeOut(100); // hide window 
			$("#grid").trigger("reloadGrid"); 
		}
	}).jqmShow();
}
</script>
Exemple #7
0
echo fileurl('/lib/js/jqgrid/css/ui.jqgrid.css');
?>
" />
<script src="<?php 
echo fileurl('/lib/js/jqgrid/js/i18n/grid.locale-en.js');
?>
" type="text/javascript"></script>
<script src="<?php 
echo fileurl('/lib/js/jqgrid/js/jquery.jqGrid.min.js');
?>
" type="text/javascript"></script>

<script type="text/javascript">
$("#grid").jqGrid({
   url: '<?php 
echo adminaction('/pilotadmin/getpilotsjson');
?>
',
   datatype: 'json',
   mtype: 'GET',
   colNames: ['','Pilot ID', 'First', 'Last', 'Email', 'Location', 'Status', 'Rank', 'Flights', 'Hours', 'IP', 'Edit'],
   colModel : [
		{index: 'id', name: 'id', hidden: true, search: false },
		{index: 'pilotid', name : 'pilotid',sortable : true, align: 'left', search: 'true', searchoptions:{sopt:['in']}},
		{index: 'firstname', name : 'firstname',sortable : true, align: 'left', search: 'true', searchoptions:{sopt:['in']}},
		{index: 'lastname', name : 'lastname',  sortable : true, align: 'left', searchoptions:{sopt:['in']}},
		{index: 'email', name : 'email', sortable : true, align: 'left',searchoptions:{sopt:['li']}},
		{index: 'location', name : 'location',  sortable : true, align: 'center',searchoptions:{sopt:['eq','ne']}},
		{index: 'retired', name : 'status', sortable : true, align: 'center',searchoptions:{sopt:['in']}},
		{index: 'rank', name : 'rank', sortable : true, align: 'center', searchoptions:{sopt:['eq','ne']}},
		{index: 'totalflights', name : 'totalflights', sortable : true, align: 'center',searchoptions:{sopt:['lt','gt']}},
        echo Config::Get('MONEY_UNIT') . $expense->cost;
    }
    ?>
</td>
	<td align="center"><?php 
    echo $expense_list[$expense->type];
    ?>
</td>
	<td align="center" width="1%" nowrap>
		<button id="dialog" class="jqModal button" 
			href="<?php 
    echo adminaction('/finance/editexpense/' . $expense->id);
    ?>
">
		Edit</button>
		
		<button href="<?php 
    echo adminaction('/finance/viewexpenses');
    ?>
" action="deleteexpense"
			id="<?php 
    echo $expense->id;
    ?>
" class="deleteitem button">Delete</button>
	</td>
</tr>
	<?php 
}
?>
</tbody>
</table>
<?php

if (!defined('IN_PHPVMS') && IN_PHPVMS !== true) {
    die;
}
?>
<h3><?php 
echo $title;
?>
</h3>
<form id="form" method="post" action="<?php 
echo adminaction('/downloads/overview');
?>
">
<dl>
	<dt>Select Category</dt>
	<dd>
		<?php 
if (!$allcategories) {
    echo 'No categories have been added! You must add one first';
    $allcategories = array();
}
?>
		<select name="category">
		<?php 
foreach ($allcategories as $category) {
    if ($category->id == $download->pid || $_GET['cat'] == $category->id) {
        $checked = ' selected ';
    } else {
        $checked = '';
    }
Exemple #10
0
<?php

if (!defined('IN_PHPVMS') && IN_PHPVMS !== true) {
    die;
}
?>
<h3>Export Schedules</h3>
<p>This allows you mass export your schedules, and then reimport them with all your modifications.</p>
<p><a class="button" href="<?php 
echo adminaction('/import/processexport');
?>
">Click to export</a></p>
Exemple #11
0
}*/
/*
	Added in 2.0!
*/
$chart_width = '800';
$chart_height = '200';
/* Don't need to change anything below this here */
?>
<script type="text/javascript" src="<?php 
echo fileurl('/lib/js/ofc/js/swfobject.js');
?>
"></script>
<script type="text/javascript">
swfobject.embedSWF("<?php 
echo fileurl('/lib/js/ofc/open-flash-chart.swf');
?>
", 
	"reportcounts", "<?php 
echo $chart_width;
?>
", "<?php 
echo $chart_height;
?>
", 
	"9.0.0", "expressInstall.swf", 
	{"data-file":"<?php 
echo adminaction('/dashboard/pirepcounts');
?>
"});
</script>
<?php

if (!defined('IN_PHPVMS') && IN_PHPVMS !== true) {
    die;
}
?>
<h3><?php 
echo $title;
?>
</h3>
<form  id="dialogform" action="<?php 
echo adminaction('/pilotadmin/pilotgroups');
?>
" method="post">

<table id="tabledlist" class="tablesorter">
<tbody>
	<tr>
		<td>Group Name: </td>
		<td><input type="text" name="name" value="<?php 
echo $group->name;
?>
" /></td>
	</tr>

	<tr>
		<td>Group Permissions: </td>
		<td>
			<?php 
if ($group->permissions == 0) {
    $checked = 'checked';
<script type="text/javascript" src="<?php 
echo fileurl('/lib/js/ofc/js/json/json2.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo fileurl('/lib/js/ofc/js/swfobject.js');
?>
"></script>
<script type="text/javascript">
swfobject.embedSWF("<?php 
echo fileurl('/lib/js/ofc/open-flash-chart.swf');
?>
", 
	"summary_chart", "<?php 
echo $chart_width;
?>
", "<?php 
echo $chart_height;
?>
", 
	"9.0.0", "expressInstall.swf", 
	{"data-file":"<?php 
echo adminaction('/finance/viewmonthchart?' . $_SERVER['QUERY_STRING']);
?>
"});
</script>
<?php 
/* End added in 2.0
*/
?>
</div>
<tbody>
<?php 
foreach ($allairlines as $airline) {
    ?>
<tr>
	<td align="center"><?php 
    echo $airline->code;
    ?>
</td>
	<td align="center"><?php 
    echo $airline->name;
    ?>
</td>
	<td align="center"><?php 
    echo $airline->enabled == 1 ? 'Yes' : 'No';
    ?>
</td>
	<td align="center" width="1%" nowrap>
	<button id="dialog" class="jqModal {button:{icons:{primary:'ui-icon-wrench'}}}" 
		href="<?php 
    echo adminaction('/operations/editairline?id=' . $airline->id);
    ?>
">
		Edit</button>
	</td>
</tr>
<?php 
}
?>
</tbody>
</table>
            ?>
</td>
	
	<td width="1%" nowrap>
		<button id="dialog" class="jqModal {button:{icons:{primary:'ui-icon-wrench'}}}" 
			href="<?php 
            echo adminaction('/downloads/editdownload?id=' . $download->id);
            ?>
">Edit</button>
			
		<button class="deleteitem {button:{icons:{primary:'ui-icon-trash'}}}" action="deletedownload" id="<?php 
            echo $download->id;
            ?>
"
			href="<?php 
            echo adminaction('/downloads');
            ?>
">Delete</button>	
	</td>
</tr>
<?php 
        }
        ?>
		</tbody>
		</table>
<?php 
    }
    ?>
	 </div>
<?php 
}
	{}, // add 
	{}, //del 
	{multipleSearch:true} // search options 
); 

function deleteschedule(id)
{
	var answer = confirm("Are you sure you want to delete?")
	if (answer) {
		$.post("<?php 
echo adminaction('/operations/schedules');
?>
", { action: "deleteschedule", id: id },
			function() 
			{ 
				$("#grid").trigger("reloadGrid"); 
			}
		);
	}
}

function showroute(schedule_id)
{
	$('#jqmdialog').jqm({
		ajax:'<?php 
echo adminaction('/operations/viewmap');
?>
?type=schedule&id='+schedule_id
	}).jqmShow();
}
</script>
<script type="text/javascript" src="<?php 
echo fileurl('/lib/js/ofc/js/json/json2.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo fileurl('/lib/js/ofc/js/swfobject.js');
?>
"></script>
<script type="text/javascript">
swfobject.embedSWF("<?php 
echo fileurl('/lib/js/ofc/open-flash-chart.swf');
?>
", 
	"summary_chart", "<?php 
echo $chart_width;
?>
", "<?php 
echo $chart_height;
?>
", 
	"9.0.0", "expressInstall.swf", 
	{"data-file":"<?php 
echo adminaction('/finance/viewexpensechart?' . $_SERVER['QUERY_STRING']);
?>
"});
</script>
<?php 
/* End added in 2.0
*/
?>
</div>
<ul class="filetree treeview-famfamfam">
	<li><span class="file">
		<a href="<?php 
echo adminurl('/operations/aircraft');
?>
">View aircraft</a>
	</span></li>

	<li><span class="file">
		<a href="<?php 
echo adminurl('/operations/addaircraft');
?>
">Add an aircraft</a>
	</span></li>

	<li><span class="file">
		<a href="<?php 
echo adminaction('/import/exportaircraft');
?>
">Export Aircraft</a>
	</span></li>
	<li><span class="file">
		<a href="<?php 
echo adminurl('/import/importaircraft');
?>
">Import Aircraft</a>
	</span></li>
</ul>
<h3>Help</h3>
<p>Add the aircraft that your VA operates from here. The aircraft name 
	is what is displayed in schedules. The ICAO and the full name are used for reference.</p>
if (!defined('IN_PHPVMS') && IN_PHPVMS !== true) {
    die;
}
?>
<h3>Give Award</h3>
<?php 
$allawards = AwardsData::GetAllAwards();
if (!$allawards) {
    echo 'You have no added any awards!';
    return;
}
?>

<form id="addaward" method="POST" action="<?php 
echo adminaction('/pilotadmin/pilotawards');
?>
">
<select name="awardid">
<?php 
foreach ($allawards as $award) {
    echo '<option value="' . $award->awardid . '">' . $award->name . '</option>';
}
?>
</select>
<input type="hidden" name="pilotid" value="<?php 
echo $pilotinfo->pilotid;
?>
" />
<input type="hidden" name="action" value="addaward" />
<input type="submit" name="submit" value="Add Award" />
<?php

if (!defined('IN_PHPVMS') && IN_PHPVMS !== true) {
    die;
}
?>
<h3><?php 
echo $title;
?>
</h3>
<form id="form" action="<?php 
echo adminaction('/operations/airlines');
?>
" method="post">
<dl>
<dt>Airline Code *</dt>
<dd><input name="code" type="text" value="<?php 
echo $airline->code;
?>
" /></dd>

<dt>Airline Name *</dt>
<dd><input name="name" type="text" value="<?php 
echo $airline->name;
?>
" /></dd>

<dt>Enabled *</dt>
<dd><?php 
$checked = $airline->enabled == 1 ? 'CHECKED' : '';
?>