aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/policy/public/portal
diff options
context:
space:
mode:
authorM.Gergo2018-07-06 11:34:04 +0200
committerM.Gergo2018-07-06 11:34:04 +0200
commit095e5987eadbe3786be5e12ef385bda9640155b0 (patch)
treee796dcd1c575094cf43e0b0b7d4c8fb22896e66f /mayor-orig/www/policy/public/portal
parent43de9af71f7f4ca5731b94a06d688ae8412ba427 (diff)
downloadmayor-095e5987eadbe3786be5e12ef385bda9640155b0.tar.gz
mayor-095e5987eadbe3786be5e12ef385bda9640155b0.zip
checkupdate.sh + portal 2018/Feb kiinduló
Diffstat (limited to 'mayor-orig/www/policy/public/portal')
-rw-r--r--mayor-orig/www/policy/public/portal/portal/hir-pre.php24
-rw-r--r--mayor-orig/www/policy/public/portal/portal/hir.php11
-rw-r--r--mayor-orig/www/policy/public/portal/portal/portal-pre.php53
-rw-r--r--mayor-orig/www/policy/public/portal/portal/portal.php37
-rw-r--r--mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php43
-rw-r--r--mayor-orig/www/policy/public/portal/portal/portal_demo.pda.php29
6 files changed, 197 insertions, 0 deletions
diff --git a/mayor-orig/www/policy/public/portal/portal/hir-pre.php b/mayor-orig/www/policy/public/portal/portal/hir-pre.php
new file mode 100644
index 00000000..7e88f0f3
--- /dev/null
+++ b/mayor-orig/www/policy/public/portal/portal/hir-pre.php
@@ -0,0 +1,24 @@
+<?php
+ global $OG;
+
+ require_once('include/modules/portal/share/hirek.php');
+ $hirId = readVariable($_GET['hirId'],id);
+ if ($hirId>=1) {
+ if (_POLICY=='private')
+ $FILTER=array('id'=>$hirId);
+ else
+ $FILTER=array('id'=>$hirId,'flag'=>array(1),'class'=>array(1));
+
+ if (defined('__PORTAL_RESTRICT_CID'))
+ $FILTER['cid'] = explode(',',__PORTAL_RESTRICT_CID);
+
+ $ADAT['hirek'] = getHirek($FILTER);
+ /* opengraph attributumok */
+ $OG = array('title'=>$ADAT['hirek']['szovegek'][0]['cim'],'getparameter'=>'hirId='.$hirId);
+ if ($ADAT['hirek']['szovegek'][0]['pic']!='') {
+ $OG['image'] = $ADAT['hirek']['szovegek'][0]['pic'];
+ }
+ }
+
+
+?>
diff --git a/mayor-orig/www/policy/public/portal/portal/hir.php b/mayor-orig/www/policy/public/portal/portal/hir.php
new file mode 100644
index 00000000..6a7ee860
--- /dev/null
+++ b/mayor-orig/www/policy/public/portal/portal/hir.php
@@ -0,0 +1,11 @@
+<?php
+
+ /* including global phtml libs */
+
+ require_once('skin/classic/module-portal/html/share/doboz.phtml');
+ require_once('skin/classic/module-portal/html/share/hirek.phtml');
+
+ global $skin,$SKINSSHOW,$ADAT;
+
+ putHir($ADAT);
+?>
diff --git a/mayor-orig/www/policy/public/portal/portal/portal-pre.php b/mayor-orig/www/policy/public/portal/portal/portal-pre.php
new file mode 100644
index 00000000..7ef3ebca
--- /dev/null
+++ b/mayor-orig/www/policy/public/portal/portal/portal-pre.php
@@ -0,0 +1,53 @@
+<?php
+
+ require_once('include/modules/portal/share/hirek.php');
+ require_once('include/modules/portal/share/nevnap.php');
+ require_once('include/modules/portal/share/kerdoiv.php');
+
+ $ev=date('Y');
+ $honap=date('m');
+ $nap=date('d');
+
+ if ($ev % 4 ==0) {
+ if ($ev % 100 !==0) {
+ $szokoev=true;
+ } else {
+ if ($ev % 400==0) {
+ $szokoev=true;
+ }
+ }
+ } else {
+ $szokoev=false;
+ }
+
+ if (!$szokoev && $honap==2 && $nap>=24) {
+ $nap=$nap+1;
+ }
+
+ $ADAT['nevnap']['ma'] = getNevnap($honap,$nap);
+ $ADAT['nevnap']['holnap'] = getNevnap($honap,$nap+1);
+
+// $ADAT['nevnap']['ma'] = getNevnap(date('m'),date('d'));
+// $ADAT['nevnap']['holnap'] = getNevnap(date('m'),date('d')+1);
+
+ $FILTER=array('tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1));
+ if (defined('__PORTAL_RESTRICT_CID'))
+ $FILTER['cid'] = explode(',',__PORTAL_RESTRICT_CID);
+
+ $ADAT['hirek'] = getHirek($FILTER);
+ $ADAT['kerdoiv'] = getKerdoiv(_POLICY);
+
+ $kerdoivId = readVariable($_POST['kerdoivId'],'numeric',$ADAT['kerdoiv']['kerdes']['sorszam']);
+ $vId = readVariable($_POST['vId'],'numeric');
+ $szavazotte = szavazotte($kerdoivId);
+ // Kérdőív - <<<<
+ if ($action == 'szavaz' && $szavazotte==false) {
+ szavaz($vId,1,$kerdoivId);
+ $szavazotte = true;
+ $_SESSION['kerdoivSzavazott'] = true;
+ }
+ $ADAT['kerdoiv'] = getKerdoiv();
+ $ADAT['kerdoiv']['szavazott'] = $szavazotte;
+ // Kérdőív - >>>>
+
+?>
diff --git a/mayor-orig/www/policy/public/portal/portal/portal.php b/mayor-orig/www/policy/public/portal/portal/portal.php
new file mode 100644
index 00000000..96275bf4
--- /dev/null
+++ b/mayor-orig/www/policy/public/portal/portal/portal.php
@@ -0,0 +1,37 @@
+<?php
+
+ /* including global phtml libs */
+
+ require_once('skin/classic/module-portal/html/share/doboz.phtml');
+ require_once('skin/classic/module-portal/html/share/hirek.phtml');
+ require_once('skin/classic/module-portal/html/share/kerdoiv.phtml');
+
+ global $skin,$SKINSSHOW;
+
+/*
+ if (in_array($skin,$SKINSSHOW)) {
+ 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');
+ } else {
+ if (file_exists('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'._DEFAULT_SKIN.'.php'))
+ require('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'._DEFAULT_SKIN.'.php');
+ }
+ }
+*/
+
+ /* $skinnek lennie kell */
+ if (defined('_POLICY') && defined('__PORTAL_CODE')) {
+ if (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_'.__PORTAL_CODE.'.classic.php') )
+ require('policy/'._POLICY.'/portal/portal/portal_'.__PORTAL_CODE.'.'.'classic'.'.php');
+ elseif (file_exists('policy/'._POLICY.'/portal/portal/portal_demo.classic.php') )
+ require('policy/'._POLICY.'/portal/portal/portal_demo.classic'.'.php');
+ else
+ echo 'portal ERROR.:(';
+ } 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/public/portal/portal/portal_demo.classic.php b/mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php
new file mode 100644
index 00000000..31aebc95
--- /dev/null
+++ b/mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php
@@ -0,0 +1,43 @@
+<?php
+
+ global $ADAT,$vmPost;
+
+ $TXT['japszotar'] ='
+<!-- MaYoR-じしょ search form -->
+<form name="jisho" style="font-size:10px" method="post" action=" http://szotar.vmg.sulinet.hu/index.php?p=dict" target="_blank">
+<select name="lang" style="font-size:10px; width:110px; background-color: #eeeeee;">
+<option value="hu">magyar</option>
+<option value="jp">japán</option>
+<option value="en">angol</option>
+</select>
+<br/>
+<input name="word" value="" style="width: 90px; font-size:10px;" type="text" />
+<input src="skin/classic/module-portal/img/ok_button.gif" name="sent" value="Mehet" type="image" />
+</form>
+<!-- end of MaYoR-じしょ -->';
+
+
+ echo '<table class="portalMain">';
+ echo '<tr><td class="bal">';
+
+ putDoboz('MaYoR-じしょ',$TXT['japszotar'],array('header-color'=>'#bb0088'));
+
+ echo '</td>';
+ echo '<td class="kozep">';
+
+ putHirek($ADAT);
+
+ echo '</td>';
+ echo '<td class="jobb">';
+
+ putDoboz('Névnapok','Ma: '.$ADAT['nevnap']['ma'].'<br/>Holnap: '.$ADAT['nevnap']['holnap'],array('header-color'=>'rgb(138,128,238)'));
+
+
+ if (is_array($ADAT['kerdoiv']['kerdes']) && count($ADAT['kerdoiv']['kerdes']) > 0)
+ putDoboz('Kérdőív', genKerdoiv($ADAT['kerdoiv']), array('header-color'=>'rgb(238,82,38)'));
+
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>';
+
+?>
diff --git a/mayor-orig/www/policy/public/portal/portal/portal_demo.pda.php b/mayor-orig/www/policy/public/portal/portal/portal_demo.pda.php
new file mode 100644
index 00000000..3123adcd
--- /dev/null
+++ b/mayor-orig/www/policy/public/portal/portal/portal_demo.pda.php
@@ -0,0 +1,29 @@
+<?php
+
+ global $ADAT,$vmPost;
+
+ if ($_GET['show'] == 'hirek') {
+
+ putHirek($ADAT);
+
+ } else {
+ echo '
+ <h1>Belépés</h1>
+ <div class="set">
+ <a class="diak" href="'.href('index.php?page=auth&f=login&toPolicy=private&skin=pda&policy=public&toPolicy=private&toSkin=pda&toPSF=naplo:osztalyozo:diak').'">diák</a>
+ <a class="szulo" href="'.href('index.php?page=auth&f=login&toPolicy=private&skin=pda&policy=public&toPolicy=parent&toSkin=pda&toPSF=naplo:osztalyozo:diak').'">szülő</a>
+ <a class="tanar" href="'.href('index.php?page=auth&f=login&toPolicy=private&skin=pda&policy=public&toPolicy=private&toSkin=pda&toPSF=naplo::naplo').'">tanár</a>';
+
+ if (defined('__FORUM_INSTALLED') && __FORUM_INSTALLED===true)
+ echo '<a class="forum" href="'.href('index.php?page=auth&f=login&toPolicy=private&skin=pda&policy=public&toPolicy=public&toSkin=pda&toPSF=forum::').'">fórum</a>';
+ echo '</div>';
+
+ echo '<h1>Szolgáltatások</h1>
+ <div class="set">
+ <a class="orarend" href="'.href('index.php?page=naplo&sub=orarend&f=orarend').'">órarend</a>
+ <a class="helyettesites" href="'.href('index.php?page=naplo&sub=orarend&f=helyettesites').'">helyettesítés</a>
+ <a class="hirek" href="'.href('index.php?page=portal&f=portal&show=hirek').'">hírek</a>';
+ echo '</div>';
+ }
+
+?>