プロジェクト

全般

プロフィール

サポート #5282

未完了
山武 山武

ページ修正

サポート #5282: ページ修正

山谷 武史 さんが6日前に追加. 2日前に更新.

ステータス:
フィードバック
優先度:
通常
担当者:
開始日:
2026/10/30
期日:
2026/11/02 (3日 遅れ)
進捗率:

50%

予定工数:
起票元ID:
自動起票の種別:
却下理由:

説明

指示内容

以下修正対応お願いします。
※添付資料確認お願いします

【修正内容】
・分譲用地一覧にある完売済(選択しても区画が出てこない)の工業団地を削除願います。


ファイル

アデ アルドリノ デフリン さんが2日前に更新 操作 #1

  • 担当者 を 山谷 武史 から アルドリノ デフリン に変更

アデ アルドリノ デフリン さんが2日前に更新 操作 #2

  • ステータス を 新規 から 進行中 に変更
  • 進捗率 を 0 から 30 に変更

アデ アルドリノ デフリン さんが2日前に更新 操作 #3

対応内容

どの工業団地を非表示にするかを個別に指定する処理から、その工業団地に分譲用地があるかどうかを確認する処理へと変更しました。
合わせて、クロスサイトスクリプティング(XSS)攻撃の対策として、エスケープ関数を追加しました。

修正前

<?php
$terms = get_terms('complex');
foreach ($terms as $key => $term) {
    $title = $term->name;
    $complex = $term->slug;
    if (($complex == "complex0") || ($complex == "complex9") || ($complex == "complex10") || ($complex == "complex11") || ($complex == "complex12")) {
        continue;
    } ?>
    <div>
        <h4 data-toggle="collapse" href="#collapse<?= $key; ?>" role="button" aria-expanded="false" aria-controls="collapse<?= $key; ?>">
            <?= $title; ?>
        </h4>
        <div class="collapse" id="collapse<?= $key; ?>">
            <div class="js-scrollable nowrap">
                <table class="table vertical-table">
                    <thead>
                        <tr>
                            <th>No.</th>
                            <th>面積(㎡)</th>
                            <th>面積(坪)</th>
                            <th>分譲価格(円)</th>
                            <th>リース価格(月額)</th>
                            <th>詳細</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $obj = get_db_info('sland', $complex);
                        foreach ($obj as $post_id) { ?>
                            <tr>
                                <td><a href="/database/<?= $post_id; ?>.html" target="_blank"><?= get_field('no', $post_id); ?></a></td>
                                <td><?= (!empty(get_field('meter', $post_id))) ? number_format(get_field('meter', $post_id), 2) : ""; ?></td>
                                <td><?= (!empty(get_field('tsubo', $post_id))) ? number_format(get_field('tsubo', $post_id)) : ""; ?></td>
                                <td><?= (!empty(get_field('price', $post_id))) ? number_format(get_field('price', $post_id)) : ""; ?></td>
                                <td><?= (!empty(get_field('lease', $post_id))) ? number_format(get_field('lease', $post_id)) : ""; ?></td>
                                <td><a href="/database/<?= $post_id; ?>.html" target="_blank"><i class="fas fa-external-link-alt"></i></a></td>
                            </tr>
                        <?php } ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
<?php } ?>

修正後

<?php
$terms = get_terms('complex');
foreach ($terms as $key => $term) :
    $title = $term->name;
    $complex = $term->slug;
    $obj = get_db_info('sland', $complex);
    if (empty($obj)) continue; ?>
    <div>
        <h4 data-toggle="collapse" href="#collapse<?= esc_attr($key); ?>" role="button" aria-expanded="false" aria-controls="collapse<?= esc_attr($key); ?>">
            <?= esc_html($title); ?>
        </h4>
        <div class="collapse" id="collapse<?= esc_attr($key); ?>">
            <div class="js-scrollable nowrap">
                <table class="table vertical-table">
                    <thead>
                        <tr>
                            <th>No.</th>
                            <th>面積(㎡)</th>
                            <th>面積(坪)</th>
                            <th>分譲価格(円)</th>
                            <th>リース価格(月額)</th>
                            <th>詳細</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        foreach ($obj as $post_id) :
                            $fields = get_fields($post_id); ?>
                            <tr>
                                <td><a href="/database/<?= esc_attr($post_id); ?>.html" target="_blank"><?= !empty($fields['no']) ? esc_html($fields['no']) : ""; ?></a></td>
                                <td><?= !empty($fields['meter']) ? number_format($fields['meter'], 2) : ""; ?></td>
                                <td><?= !empty($fields['tsubo']) ? number_format($fields['tsubo']) : ""; ?></td>
                                <td><?= !empty($fields['price']) ? number_format($fields['price']) : ""; ?></td>
                                <td><?= !empty($fields['lease']) ? number_format($fields['lease']) : ""; ?></td>
                                <td><a href="/database/<?= esc_attr($post_id); ?>.html" target="_blank"><i class="fas fa-external-link-alt"></i></a></td>
                            </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
<?php endforeach; ?>

アデ アルドリノ デフリン さんが2日前に更新 操作 #4

Screenshot_2026-11-02T05-39-13.232Z.png

ページを修正しました。
https://www.chitose-yuuchi.jp/land.html

他の形式にエクスポート: PDF Atom