예제 #1
0
" />
        <input type="hidden" name="reportee_name" value="<?php 
        print he($_REQUEST['reportee_name']);
        ?>
" />
        <input type="hidden" name="report_title" value="<?php 
        print he($_REQUEST['report_title']);
        ?>
" />
        <input type="hidden" name="report_text" value="<?php 
        print he($_REQUEST['report_text']);
        ?>
" />
        <input type="hidden" name="communication_preference" value="<?php 
        print he($_REQUEST['communication_preference']);
        ?>
" />
        <input type="hidden" name="report_visibility" value="<?php 
        print he($_REQUEST['report_visibility']);
        ?>
" />
        <?php 
        clarifyReportee($search_results, array('description' => "Please clarify who you're sharing this story about. It's important this field is accurate, so double-check just to be sure!", 'next' => $next_search_results_url));
        ?>
    </form>
    <?php 
    }
}
?>
</section>
            }
            ?>
    <?php 
        } else {
            if (($_REQUEST['submit'] || $_REQUEST['submit_clarification']) && empty($reportee_id)) {
                ?>
    <form id="pat-find-report-form" method="post" action="<?php 
                print "{$_SERVER['PHP_SELF']}?action=lookup";
                ?>
">
        <input type="hidden" name="reportee_name" value="<?php 
                print he($_REQUEST['reportee_name']);
                ?>
" />
        <?php 
                clarifyReportee($search_results, array('description' => "Please clarify who you're trying to find stories about.", 'next' => $next_search_results_url));
                ?>
    </form>
    <?php 
            } else {
                if ($_REQUEST['submit'] || $_REQUEST['submit_clarification']) {
                    ?>
    <p>No information on this person could be found. Would you like to <a href="<?php 
                    print he(AppInfo::getUrl("/reports.php?action=new&reportee_id={$reportee_id}"));
                    ?>
">share some</a>?</p>
    <?php 
                }
            }
        }
    }