Пример #1
0
            ?>
</li>
                <?php 
        }
        ?>
                </ul>
                <?php 
    }
    ?>
                <textarea name="report_text" placeholder="Type your story here." required="required"><?php 
    print he($_REQUEST['report_text']);
    ?>
</textarea>
            </label>
            <?php 
    reporteeNameField(array('label' => 'Who was involved?', 'description_html' => 'Link this to a Facebook profile by entering their name or <a href="http://findmyfacebookid.com/" target="_blank">Facebook user ID number</a>. (<a href="' . he(DOCUMENTATION_URL_BASE) . '/User-Manual:Searching" target="_blank">help</a>)'));
    ?>
            <label>
                Short description:
                <span class="description">Write a brief headline that will appear on others' Dashboards or when your statement shows up in a search.</span>
                <?php 
    if ($report && $report->getValidationErrors('report_title')) {
        ?>
                <ul class="errors">
                <?php 
        foreach ($report->getValidationErrors('report_title') as $error_message) {
            ?>
                    <li><?php 
            print he($error_message);
            ?>
</li>
                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 
                }
            }
        }
    }
}
?>
    <form id="pat-find-report-form" method="post" action="<?php 
print "{$_SERVER['PHP_SELF']}?action=lookup";
?>
">
        <fieldset><legend>Reportee details</legend>
            <?php 
reporteeNameField(array('label' => 'Show me information about', 'description_html' => 'Enter the name of any Facebook user. If you know their <a href="http://findmyfacebookid.com/" target="_blank">Facebook user ID number</a>, you can use that, too. (<a href="' . he(DOCUMENTATION_URL_BASE) . '/User-Manual:Searching" target="_blank">help</a>)'));
?>
        </fieldset>
        <input type="submit" name="submit" value="Search" />
    </form>
</section>