diff options
author | M.Gergo | 2018-07-06 11:34:04 +0200 |
---|---|---|
committer | M.Gergo | 2018-07-06 11:34:04 +0200 |
commit | 095e5987eadbe3786be5e12ef385bda9640155b0 (patch) | |
tree | e796dcd1c575094cf43e0b0b7d4c8fb22896e66f /mayor-orig/www/policy/parent/portal | |
parent | 43de9af71f7f4ca5731b94a06d688ae8412ba427 (diff) | |
download | mayor-095e5987eadbe3786be5e12ef385bda9640155b0.tar.gz mayor-095e5987eadbe3786be5e12ef385bda9640155b0.zip |
checkupdate.sh + portal 2018/Feb kiinduló
Diffstat (limited to 'mayor-orig/www/policy/parent/portal')
3 files changed, 79 insertions, 0 deletions
diff --git a/mayor-orig/www/policy/parent/portal/portal/portal-pre.php b/mayor-orig/www/policy/parent/portal/portal/portal-pre.php new file mode 100644 index 00000000..f30cdaab --- /dev/null +++ b/mayor-orig/www/policy/parent/portal/portal/portal-pre.php @@ -0,0 +1,16 @@ +<?php + + if ($_SESSION['szuloDiakIdOk'] != true) { + header('Location: '.location('index.php?page=naplo&f=diakValaszto')); + } + + require_once('include/modules/portal/share/hirek.php'); + require_once('include/modules/portal/share/nevnap.php'); + require_once('include/modules/portal/share/kerdoiv.php'); + + $ADAT['hirek'] = getHirek(array('tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(6))); + + require('skin/classic/module-portal/html/share/doboz.phtml'); + require('skin/classic/module-portal/html/share/hirek.phtml'); + +?> diff --git a/mayor-orig/www/policy/parent/portal/portal/portal.php b/mayor-orig/www/policy/parent/portal/portal/portal.php new file mode 100644 index 00000000..ef2fcd3f --- /dev/null +++ b/mayor-orig/www/policy/parent/portal/portal/portal.php @@ -0,0 +1,16 @@ +<?php + + global $skin; + + /* $skinnek lennie kell */ + if (defined('_POLICY') && defined('__PORTAL_CODE') && file_exists('policy/'._POLICY.'/portal/portal/portal_'.__PORTAL_CODE.'.'.$skin.'.php') ) { + require('policy/'._POLICY.'/portal/portal/portal_'.__PORTAL_CODE.'.'.$skin.'.php'); + } elseif (file_exists('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'.$skin.'.php')) { + require('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'.$skin.'.php'); + } elseif (file_exists('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'._DEFAULT_SKIN.'.php')) { + require('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'._DEFAULT_SKIN.'.php'); + } + + + +?> diff --git a/mayor-orig/www/policy/parent/portal/portal/portal_demo.classic.php b/mayor-orig/www/policy/parent/portal/portal/portal_demo.classic.php new file mode 100644 index 00000000..c48052fd --- /dev/null +++ b/mayor-orig/www/policy/parent/portal/portal/portal_demo.classic.php @@ -0,0 +1,47 @@ +<?php + + global $ADAT,$vmPost,$AUTH; + + $LINKEK['inside'] = array( + array('href'=>href('index.php?page=naplo&sub=osztalyozo&f=diak'),'szoveg' => 'Osztályozó napló'), + array('href'=>href('index.php?page=naplo&sub=hianyzas&f=diak'),'szoveg' => 'Hiányzások'), + array('href'=>href('index.php?page=naplo&sub=uzeno&f=uzeno'),'szoveg' => 'Üzenő'), + array('href'=>href('index.php?page=naplo&sub=hirnok&f=hirnok'),'szoveg' => 'Hírnök'), + ); + + echo '<table class="portalMain">'; + echo '<tr><td class="bal">'; + + putDoboz('Napló',genLinkek($LINKEK['inside']),array('header-color'=>'cornflowerblue')); + putDoboz('Bejegyzések',ajaxUpdaterForm('bejegyzesek','index.php?page=naplo&sub=bejegyzesek&f=info',array(),'post',true), + array('header-color'=>'rgb(150,100,150)')); + + echo '</td>'; + echo '<td class="kozep">'; + + echo ajaxUpdaterForm('intezmenyNev','index.php?page=naplo&sub=tools&f=intezmenyNev',array(),'post',true); + echo '<script type="text/javascript">includeCSS(\'/skin/classic/module-naplo/css/naplo.css\')</script>'; + echo '<script type="text/javascript">includeCSS(\'/skin/classic/module-naplo/css/hirnok/hirnok.css\')</script>'; + echo ajaxUpdaterForm('hirnok','index.php?page=naplo&sub=hirnok&f=hirnok',array(),'post',true); + putHirek($ADAT); + + echo '<script type="text/javascript">includeCSS(\'/skin/classic/module-naplo/css/uzeno/uzeno.css\')</script>'; + echo ajaxUpdaterForm('uzenoKozep','index.php?page=naplo&sub=uzeno&f=uzeno',array(),'post',true); + + echo '</td>'; + echo '<td class="jobb">'; + + echo '<script type="text/javascript">includeCSS(\'/skin/ajax/module-naplo/css/tanev/orarend.css\')</script>'; + $_refStamp = mktime(date('H')+8,0,0,date('m'), date('d'), date('Y')); + $dt = date('Y-m-d', $_refStamp); + putDoboz('Órarend '.str_replace('-','.',$dt).'.',ajaxUpdaterForm('orarend','index.php?page=naplo&sub=tanev&f=orarend',array('dt' => $dt),'post',true) + ,array('header-color'=>'#f06')); + +// putDoboz('Hangya',ajaxUpdaterForm('hangya','index.php?page=naplo&sub=hibabejelento&f=admin',array(),'post',true), +// array('header-color'=>'rgb(150,100,150)')); + + echo '</td>'; + echo '</tr>'; + echo '</table>'; + +?> |