Skip to content
Permalink
Browse files

added new page for non-gc caches

  • Loading branch information...
following5 committed Mar 10, 2016
1 parent 04d9085 commit a304b25550e7bb7a5bc2c2daece10ae6089e5af3
Showing with 23 additions and 2 deletions.
  1. +3 −0 htdocs/map2.php
  2. +11 −0 htdocs/ocmap.php
  3. +9 −2 htdocs/templates2/ocstyle/map2.tpl
@@ -218,6 +218,9 @@
$tpl->assign('aAttributesDisabled', $aAttributesDisabled);
$tpl->assign('maxAttributeId', $maxaid);
// filters
$tpl->assign('nongc', isset($nongc) && $nongc);
// options
$useroptions = new useroptions($login->userid);
$tpl->assign('opt_menumap', $useroptions->getOptValue(USR_OPT_MAP_MENU));
@@ -0,0 +1,11 @@
<?php
/***************************************************************************
* For license information see doc/license.txt
*
* Unicode Reminder メモ
***************************************************************************/
$nongc = true;
require "map2.php";
?>
@@ -2022,7 +2022,14 @@ function get_searchfilter_params(output, skipqueryid, zip)
sPostBody += document.getElementById('f_ignored').checked ? '&f_ignored=1' : '&f_ignored=0';
sPostBody += document.getElementById('f_disabled').checked ? '&f_disabled=1' : '&f_disabled=0';
sPostBody += document.getElementById('f_inactive').checked ? '&f_inactive=1' : '&f_inactive=0';
sPostBody += document.getElementById('f_otherPlatforms').checked ? '&f_otherPlatforms=1' : '&f_otherPlatforms=0';
{/literal}
{if $nongc}
var f_otherplatforms = true;
{else}
var f_otherplatforms = document.getElementById('f_otherPlatforms').checked;
{/if}
{literal}
sPostBody += f_otherplatforms ? '&f_otherPlatforms=1' : '&f_otherPlatforms=0';
sPostBody += document.getElementById('f_geokrets').checked ? '&f_geokrets=1' : '&f_geokrets=0';
/* rating options
@@ -2433,7 +2440,7 @@ function toggle_attribselection(bSaveCookies)
<label for="f_disabled">{t}disabled[pl]{/t}</label>
</td>
</tr>
<tr>
<tr {if $nongc}style='display:none'{/if}>
<td style="white-space:nowrap">
<input type="checkbox" id="f_otherPlatforms" name="f_otherPlatforms" value="1" onchange="filter_changed()" class="checkbox" />
<label for="f_otherPlatforms">{t}GC listings{/t}</label>

0 comments on commit a304b25

Please sign in to comment.
You can’t perform that action at this time.