diff options
author | M.Gergo | 2020-10-28 11:35:04 +0100 |
---|---|---|
committer | M.Gergo | 2020-10-28 11:35:04 +0100 |
commit | c279e479aa9c943fd0fc2b396638a5208c78cfb9 (patch) | |
tree | 934606a81b5facced41a555ccfd606f2ab56c195 /mayor-orig/mayor-portal/www/skin | |
parent | a5ac3d0ab4015ed2683706cd0677ce6ce159f0ed (diff) | |
download | mayor-c279e479aa9c943fd0fc2b396638a5208c78cfb9.tar.gz mayor-c279e479aa9c943fd0fc2b396638a5208c78cfb9.zip |
Rev: 4695rev4695
Diffstat (limited to 'mayor-orig/mayor-portal/www/skin')
7 files changed, 152 insertions, 36 deletions
diff --git a/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/hirek/egyhir.css b/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/hirek/egyhir.css index 8be4a7c3..1ea5cb6d 100644 --- a/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/hirek/egyhir.css +++ b/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/hirek/egyhir.css @@ -3,40 +3,62 @@ div.egyhir { margin-left: 50px; + margin-right:50px; } div.egyhir form { font-weight: bold; + margin-bottom: 40px; + border-bottom: solid 1px #eee; } div.egyhir label { - + padding-right: 1em; } div.egyhir input { - background-color: white; +/* background-color: white; border: solid 1px #667766; - } +*/ } div.egyhir textarea { width: 80%; height: 300px; +/* border: solid 1px #667766; background-color: white; +*/ } table.egyhirdetail { background-color: #eeeeee; - border-bottom: solid 2px #667766; } table.egyhirdetail td { border: solid 1px #667766; + line-height: 2em; + padding: 0.4em; } table.egyhirdetail th { - background-color: #667766; + background-color: cornflowerblue; color: white; height:30px; - border-bottom: solid 2px #001100; } .mceEditor iframe { border: blue 1px solid; } + + #pic, #cim { line-height: 1.4em; margin-bottom:1em;} + +span.kategoriaSelector { border-radius: 4px; padding: 2px 4px; background-color: white; border: solid 1px black; font-weight:normal; +cursor: pointer; +-webkit-transition : 100ms ease-out; + -moz-transition : 100ms ease-out; + -o-transition : 100ms ease-out; + transition : 100ms ease-out; + } + +span.kategoriaSelector.selected { background-color: #d64161; color:white; } +span.kategoriaSelector.modified { background-color: #878f99; color:white; border-color:white; } +span.kategoriaSelector.selected.modified { background-color: #6b5b95; color:white; border-color: black;} +span.kategoriaSelector:hover { border: solid 1px #6b5b95; background-color: #ff7b25; color:white; } +span.kategoriaSelector.selected:hover { background-color: #878f99; color:white; } + diff --git a/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/hirek/hirekAdmin.css b/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/hirek/hirekAdmin.css index 9e05068d..347cd17f 100644 --- a/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/hirek/hirekAdmin.css +++ b/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/hirek/hirekAdmin.css @@ -10,15 +10,24 @@ table.hAdmin { background-color: #445560; - + width:90%; } table.hAdmin tr td { - background-color: #eeeeee; + background-color: #eee; + padding: 2px 4px; + line-height: 1.6em; + } + table.hAdmin tr:hover td { + outline: solid 1px #d64161; + background-color: #fff; } + table.hAdmin tr td.latszik { + background-color: #d64161; color:white; + } table.hAdmin tr.unk td { - background-color: #993456; + background-color: #feb236; } table.hAdmin tr.old td { background-color: #999999; diff --git a/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/portal.css b/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/portal.css index cc128d4f..5152e545 100644 --- a/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/portal.css +++ b/mayor-orig/mayor-portal/www/skin/classic/module-portal/css/portal.css @@ -86,8 +86,10 @@ hr {display: none;} table.portalMain div.dobozTart a { color: black } - - + + div.static h1 { margin: 20px;} + div.static p { margin-left: 26px; margin-right:26px; margin-bottom: 1.2rem; font-size: 14px; line-height:1.6em;} + @media (max-width: 850px) { .bal, .jobb { display: none; diff --git a/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/hirek/egyhir.phtml b/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/hirek/egyhir.phtml index b8e0f7ee..f24068ca 100644 --- a/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/hirek/egyhir.phtml +++ b/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/hirek/egyhir.phtml @@ -30,7 +30,10 @@ echo '<script src="//cdn.ckeditor.com/4.14.0/standard/ckeditor.js" charset="utf-8"></script>'; echo '<table class="egyhirdetail" cellspacing="1">'; - echo '<tr><th colspan="3">'._BEALLITASOK.'</th></tr>'; + echo '<tr><th colspan="3">'; + echo _BEALLITASOK; + if ($HIR['owner']!='') echo ' ('.$HIR['owner'].')'; + echo '</th></tr>'; echo '<tr><td style="text-align:right">'; echo _TOLDT.': <input type="text" name="kdt" id="kdt" value="'.$HIR['kdt'].'" class="datetime" /><br/>'; @@ -40,21 +43,34 @@ echo '<td>'; reset($LANGUAGES); - echo '<select name="lang">'; - for($i=0; $i<count($LANGUAGES); $i++) { + + if (count($LANGUAGES) == 1) { + echo '<input type="hidden" name="lang" value="'.$LANGUAGES[0].'" />'; + } else { + echo '<select name="lang">'; + for($i=0; $i<count($LANGUAGES); $i++) { //echo '<input type="checkbox" name="policies" value="'.$LANGUAGES[$i].'" />'; $_CHK = ($LANGUAGES[$i]==$HIR['lang']) ? ' selected="selected" ':''; echo '<option value="'.$LANGUAGES[$i].'" '.$_CHK.'/>'; echo $LANGUAGES[$i]; echo '</option>'; + } + echo '</select>'; } - echo '</select>'; - _putKategoriak($ADAT,$HIR['cid']); echo '</td>'; - echo '<td>'; - echo $HIR['owner']; + echo '<td style="line-height:2em; max-width: 300px">'; + // ujfajta kategoria kezelés + $SELECTED_HIRKATEGORIAK = explode(',',$HIR['hirkategoriak']); + for ($i=0; $i<count($ADAT['kategoriak']); $i++) { + $_D = $ADAT['kategoriak'][$i]; + $_SEL = (in_array($_D['id'],$SELECTED_HIRKATEGORIAK)) ? ' selected ':''; + + echo '<span class="kategoriaSelector '.$_SEL.'" id="kategoriaSelector_'.$_D['id'].'" data-kategoriaid="'.$_D['id'].'">'.$_D['leiras'].'</span> '; + } + echo '<span id="kategoriaSelectorContainer"></span>'; + // ------------------------- echo '</td>'; echo '</tr>'; @@ -67,7 +83,6 @@ $_CHK = ($FLAGS[$i]==$HIR['flag']) ? ' checked="checked" ':''; echo '<input type="radio" id="F'.$i.'" name="flag" value="'.$FLAGS[$i].'" '.$_CHK.'/>'; echo '<label for="F'.$i.'">'; - echo ' '; echo $FLAGSS[$i]; echo '('.$FLAGS[$i].')'; echo '</label>'; @@ -124,8 +139,8 @@ echo "\n".'<textarea name="txt" id="txt" class="wysiwyg" rows="10" cols="80">'.htmlspecialchars($HIR['txt']).'</textarea>'."\n"; echo '<br/>'; - echo _KEP; - echo '<input type="text" name="pic" id="pic" size="128" value="'.$HIR['pic'].'" /><br/>'; + echo _KEP.': '; + echo '<input type="text" name="pic" id="pic" size="128" value="'.$HIR['pic'].'" placeholder="https://"/><br/>'; echo '<input type="submit" value="'._ROGZIT.'" />'; echo '<input type="hidden" name="action" value="save" />'; echo '<input type="hidden" name="hirId" value="'.($HIR['id']).'" />'; diff --git a/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/hirek/hirekAdmin.phtml b/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/hirek/hirekAdmin.phtml index 6dc5900d..1f55154a 100644 --- a/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/hirek/hirekAdmin.phtml +++ b/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/hirek/hirekAdmin.phtml @@ -1,27 +1,55 @@ <?php - function putHirek($ADAT) { + function putKategoriaSzerkeszto($ADAT) { + if (!in_array(__PORTAL_CODE,array('vmg','kanizsay'))) return false; + formBegin(); + echo '<table align="center">'; + + for ($i=0; $i<count($ADAT); $i++) { + $D = $ADAT[$i]; + echo '<tr>'; + echo '<td><input type="hidden" name="kategoriaId[]" value="'.$D['id'].'" />'; + echo '<input type="checkbox" name="kategoriaTorlendo[]" value="'.$D['id'].'" title="Törlöm!" />'; + echo $D['id']; + echo '</td>'; +// echo '<td>'.$D['leiras'].'</td>'; + echo '<td><input type="text" name="leiras_'.$D['id'].'" value="'.$D['leiras'].'" placeholder="leírás" /></td>'; + echo '<td><input type="text" name="precode_'.$D['id'].'" value="'.htmlentities($D['precode']).'" placeholder="precode" /></td>'; + echo '<td><input type="text" name="postcode_'.$D['id'].'" value="'.htmlentities($D['postcode']).'" placeholder="postcode" /></td>'; + echo '<td>'.$D['precode'].'</td>'; + echo '<td>'.$D['postcode'].'</td>'; + echo '</tr>'; + } -/* - hideShowContainer - onClickHideShow - openable -*/ + echo '<tr>'; + echo '<td><input type="text" name="id" value="" placeholder="id" /></td>'; + echo '<td><input type="text" name="leiras" value="" placeholder="leírás" /></td>'; + echo '<td><input type="text" name="precode" value="" placeholder="precode" /></td>'; + echo '<td><input type="text" name="postcode" value="" placeholder="postcode" /></td>'; + echo '</tr>'; + echo '<tr><th colspan="4">'; + echo '<input type="hidden" name="action" value="kategoriaSzerkeszt" />'; + echo '<input type="submit">'; + echo '</th></tr>'; + echo '</table>'; + formEnd(); + } + function putHirek($ADAT) { $CLASS = array(1=>'külső hír',2=>'kis hír',6=>'csak belső',0=>'ISMERETLEN'); $FLAGS = array(0=>'nem látszik', 1=>'látszik', 2=>2, 3=>3); $now = time(); - echo '<table class="hAdmin hideShowContainer" align="center">'; - echo '<tr><th colspan="5"><button type="button" class="onClickHideShow">+++</button></th></tr>'."\n"; - for ($i=0; $i<count($ADAT); $i++) { - $D = $ADAT[$i]; + echo '<table class="hAdmin hideShowContainer" align="center" cellspacing="1">'; + echo '<tr><td colspan="7"><button type="button" class="onClickHideShow">Mindent mutass!</button></td></tr>'."\n"; + for ($i=0; $i<count($ADAT['szovegek']); $i++) { + $D = $ADAT['szovegek'][$i]; if ($D['class']==0) $_class='class="unk"'; else if (strtotime($D['vdt'])<$now || $D['flag']==0) $_class='class="old openable" style="display: none"'; else $_class=""; echo '<tr '.$_class.'>'; - echo '<td>'; - echo $D['lang']; - echo '</td>'; + // echo '<td>'; + // echo $D['lang']; + // echo '</td>'; echo '<td>'; echo '<a href="'.href('index.php?page=portal&sub=hirek&f=egyhir&hirId='.$D['id']).'">'; @@ -36,10 +64,20 @@ echo ' '.$D['csoport']; echo '</td>'; echo '<td>'; - echo $D['owner']; + if ($D['hirkategoriak']!='') { + $_K = explode(',',$D['hirkategoriak']); + for($j=0; $j<count($_K); $j++) { + echo ' '.$ADAT['kategoriaId2txt'][$_K[$j]][0]['leiras']; + } + } echo '</td>'; echo '<td>'; + echo $D['owner']; + echo '</td>'; + echo '<td style="white-space: nowrap">'; echo $D['kdt']; + echo '</td>'; + echo '<td style="white-space: nowrap">'; echo $D['vdt']; echo '</td></tr>'; echo "\n\n"; diff --git a/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/share/doboz.phtml b/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/share/doboz.phtml index 7c903e27..8c8ded7b 100644 --- a/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/share/doboz.phtml +++ b/mayor-orig/mayor-portal/www/skin/classic/module-portal/html/share/doboz.phtml @@ -22,8 +22,9 @@ $bgcolor = ($SET['background-color']=='') ? '#eeeeee' : $SET['background-color'] ; $width = ($SET['width']=='') ? '100%':$SET['width']; if ($SET['header-link']!='') $cime = '<a href="'.$SET['header-link'].'">'.$cime.'</a>'; + if (isset($SET['header-css']) && $SET['header-css']!='') $_style = $SET['header-css']; echo '<div class="doboz">'; - echo '<div class="dobozCim" style="width: '.$width.'; background-color: '.$SET['header-color'].'"><span>'.$cime.'</span></div>'; + echo '<div class="dobozCim" style="width: '.$width.'; background-color: '.$SET['header-color'].'; '.$_style.'"><span>'.$cime.'</span></div>'; echo '<div class="dobozTart" style="background-color: '.$bgcolor.'">'.$bele.'</div>'; echo '</div>'; diff --git a/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js b/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js index 0969c5c7..41d70923 100644 --- a/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js +++ b/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js @@ -10,4 +10,33 @@ $(function() { } }); + $('span.kategoriaSelector').click(function() { + $(this).toggleClass('selected'); + $(this).toggleClass('modified'); + $('#kategoriaSelectorContainer').html(''); + $('span.kategoriaSelector.selected').each(function() { + $('<input />', { + type: 'hidden', + name: 'kategoriaId[]', + value: $(this).data('kategoriaid') + }).appendTo($('#kategoriaSelectorContainer')); + }); + }); + + +/* + myForm.on('submit', function(e) { + //e.preventDefault(); + $('span.kategoriaSelector.selected').each(function() { + $('<input />', { + type: 'text', + name: 'kategoriaId[]', + value: $(this).data('kategoriaid') + }).appendTo(myForm); // append each input to the form + }); + + //myForm.submit(); // submit the form + }); +*/ + }); |