Esempio n. 1
0
||										AIMSys - Aircraft Inventory & Maintenance System										||
||										Jeremy Bloomstrom																		||
||										Ingenious Design																		||
||										jeremy@in.genio.us																		||
||										March 27, 2013																			||
||																																||
|________________________________________________________________________________________________________________________________|
||																																||
||																																||
||										default.php																				||
||										VIEW																					||
||										Default view of main controller															||
*********************************************************************************************************************************/
// Do Some Logic stuff
//User Info
$user = $_SESSION;
// Get Session Expiry
$ts = $user['expires'];
$oExpires = new Date($ts);
$year = $oExpires->_format("Y");
$month = $oExpires->_format("n") - 1;
$day = $oExpires->_format("j");
$hour = 1 * $oExpires->_format("H");
$minute = 1 * $oExpires->_format("i");
$second = 1 * $oExpires->_format("s");
$js_date = "{$year},{$month},{$day},{$hour},{$minute},{$second}";
// Get View
$oView = new view($view);
// Display View Script and View HTML
echo document::_addScript($oView->_script());
include_once $oView->_html();
Esempio n. 2
0
/*********************************************************************************************************************************
||																																||
||										AIMSys - Aircraft Inventory & Maintenance System										||
||										Jeremy Bloomstrom																		||
||										Ingenious Design																		||
||										jeremy@in.genio.us																		||
||										March 27, 2013																			||
||																																||
|________________________________________________________________________________________________________________________________|
||																																||
||																																||
||										popup.php																				||
||										VIEW																					||
||																																||
*********************************************************************************************************************************/
// Do Some Logic stuff
$table = req::_('table');
$rowid = req::_('rowid', 'new');
$editing = true;
// Initialize table by getting params and populating with data.
$oEditor = new editor($table, $rowid);
$oEditor->_getData();
$editor_html = $oEditor->_html();
// Get View
$oView = new view($view);
// Display View Script and View HTML
echo document::_addScript($oView->_script());
echo document::_addScript("ready.js");
include_once $oView->_html();
echo '<div class="clear"></div>';
//pre($data);