<$mt:setvar name="position_actions_bottom" value="1"$>
<mt:setvarblock name="page_title"><__trans phrase="Edit Trackback"></mt:setvarblock>
<mt:setvarblock name="system_msg">
    <mt:if name="saved">
        <mtapp:statusmsg
            id="saved"
            class="success">
            <__trans phrase="Your changes have been saved.">
        </mtapp:statusmsg>
    </mt:if>
    <mt:if name="approved">
        <mtapp:statusmsg
            id="approved"
            class="success">
            <__trans phrase="The TrackBack has been approved.">
        </mtapp:statusmsg>
    </mt:if>
</mt:setvarblock>
<mt:setvarblock name="related_content">
    <mtapp:widget
        id="useful-links"
        label="<__trans phrase="Useful links">">
        <ul>
            <li><a href="<mt:var name="script_url">?__mode=list_pings&amp;blog_id=<mt:var name="blog_id">"><__trans phrase="Manage TrackBacks"></a></li>
            <li><mt:if name="entry_permalink"><a href="<mt:var name="entry_permalink">" target="<__trans phrase="_external_link_target">"><__trans phrase="View [_1]" params="<mt:var name="target_label">"></a></mt:if></li>
        </ul>
    </mtapp:widget>
    <$mtapp:PageActions$>
</mt:setvarblock>

<mt:setvartemplate name="action_buttons">
    <button
        type="submit"
        accesskey="s"
        title="<__trans phrase="Save changes to this TrackBack (s)">"
        class="save action primary-button"
        ><__trans phrase="Save Changes"></button>
    <button
        onclick="doRemoveItems(this.form, '<__trans phrase="TrackBack" escape="js">', '<__trans phrase="TrackBack" escape="js">', false, { 'return_args' : '__mode=list_pings&blog_id=<mt:var name="blog_id">'})"
        type="submit"
        accesskey="x"
        title="<__trans phrase="Delete this TrackBack (x)">"
        class="delete action"
        ><__trans phrase="Delete"></button>
    <mt:if name="is_ip_filter">
        <mt:if name="blog_id">
    <button
        onclick="doBanIP('<mt:var name="filter_val" escape="js">', '<mt:var name="blog_id">', '<mt:var name="magic_token">')"
        ><__trans phrase="Ban This IP"></button>
        class="action"
        </mt:if>
    </mt:if>
</mt:setvartemplate>

<mt:setvarblock name="object_nav">
    <ul class="object-nav">
        <li id="previous-link"><mt:if name="previous_ping_id"><a href="<mt:var name="script_url">?__mode=view&amp;_type=ping&amp;id=<mt:var name="previous_ping_id">&amp;blog_id=<mt:var name="blog_id">"><__trans phrase="Previous"></a><mt:else><span><__trans phrase="Previous"></span></mt:if></li>
        <li id="next-link"><mt:if name="next_ping_id"><a href="<mt:var name="script_url">?__mode=view&amp;_type=ping&amp;id=<mt:var name="next_ping_id">&amp;blog_id=<mt:var name="blog_id">"><__trans phrase="Next"></a><mt:else><span><__trans phrase="Next"></span></mt:if></li>
    </ul>
</mt:setvarblock>

<mt:include name="include/header.tmpl">

<form method="post" action="<mt:var name="script_url">">
    <input type="hidden" name="id" value="<mt:var name="id" escape="html">" />
    <input type="hidden" name="blog_id" value="<mt:var name="blog_id" escape="html">" />
    <input type="hidden" name="__mode" value="save" />
    <input type="hidden" name="action_name" value="save" />
    <input type="hidden" name="itemset_action_input" value="" />
    <input type="hidden" name="_type" value="ping" />
    <input type="hidden" name="return_args" value="<mt:var name="return_args" escape="html">" />
    <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />

    <mt:if name="position_actions_top">
        <mt:include name="include/actions_bar.tmpl" bar_position="top" hide_pager="1">
    </mt:if>

<mt:if name="ping_pending">
    <$mt:setvar name="ping_status" value="ping-status-unapproved"$>
<mt:else>
    <mt:if name="is_junk">
        <$mt:setvar name="ping_status" value="ping-status-spam"$>
    <mt:else>
        <$mt:setvar name="ping_status" value="ping-status-approved"$>
    </mt:if>
</mt:if>

<mtapp:setting
    id="status"
    label="<__trans phrase="Status">"
    label_class="left-label <$mt:var name="ping_status"$>"
    hint="<__trans phrase="Update the status of this TrackBack">"
    show_hint="0">
        <mt:if name="has_publish_access">
        <select name="status" class="ping-status width90">
            <option value="publish" <mt:if name="ping_approved">selected="selected"</mt:if>><__trans phrase="Approved"></option>
            <option value="moderate" <mt:if name="ping_pending">selected="selected"</mt:if>><__trans phrase="Unapproved"></option>
            <option value="junk" <mt:if name="is_junk">selected="selected"</mt:if>><__trans phrase="Reported as Spam"></option>
        </select>
        <mt:else>
            <mt:if name="ping_approved">
        <span><__trans phrase="Approved"></span><input type="hidden" name="status" value="publish" />
        <mt:else>
            <mt:if name="ping_pending">
        <span><__trans phrase="Unapproved"></span><input type="hidden" name="status" value="moderate" />
            <mt:else>
                <mt:if name="is_junk">
        <span><__trans phrase="Junk"></span><input type="hidden" name="status" value="junk" />
                </mt:if>
            </mt:if>
        </mt:if>
        </mt:if>
        <a title="<__trans phrase="View all TrackBacks with this status">" href="<mt:var name="script_url">?__mode=list_pings&amp;blog_id=<mt:var name="blog_id"><mt:if name="is_junk">&amp;tab=junk<mt:else>&amp;filter=status&amp;filter_val=<mt:if name="ping_approved">approved</mt:if><mt:if name="ping_pending">pending</mt:if></mt:if>"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>

        <mt:if name="junk_log_loop">
        <div class="ping-spam-info">
                <a href="javascript:void(0)" onclick="toggleHidden('ping-feedback-rating'); toggleActive('spam-details-toggle'); return true" id="spam-details-toggle"><__trans phrase="Spam Details"></a>
        </div>
        <div id="ping-feedback-rating" class="hidden">
            <strong><__trans phrase="Total Feedback Rating: [_1]" params="<$mt:var name="junk_score"$>"></strong>
            <div id="spam-log-listing" class="listing">
                <table class="spam-log-listing-table" cellspacing="0">
                    <thead>
                    <tr>
                        <th id="jl-test"><__trans phrase="Test"></th>
                        <th id="jl-score"><__trans phrase="Score"></th>
                        <th id="jl-results"><__trans phrase="Results"></th>
                    </tr>
                    </thead>
                    <tbody>
            <mt:loop name="junk_log_loop">
                        <tr valign="top" class="<mt:if name="__odd__">odd<mt:else>even</mt:if>">
                            <td><mt:var name="test" escape="html"></td>
                            <td><mt:var name="score"></td>
                            <td><mt:var name="log"></td>
                        </tr>
            </mt:loop>
                    </tbody>
                </table>
            </div>
        </div>
        </mt:if>
        
        
</mtapp:setting>

<mtapp:setting
    id="source_blog"
    label="<__trans phrase="Source Site">"
    hint=""
    show_hint="0">
    <input type="text" name="blog_name" id="blog_name" value="<mt:var name="source_blog_name" escape="html">" class="width90" />
    <a title="<__trans phrase="Search for other TrackBacks from this site">" href="<mt:var name="script_url">?__mode=search_replace&amp;blog_id=<mt:var name="blog_id">&amp;_type=ping&amp;search=<mt:var name="source_blog_name" escape="url">&amp;do_search=1"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
</mtapp:setting>

<mtapp:setting
    id="source_title"
    label="<__trans phrase="Source Title">"
    hint=""
    show_hint="0">
    <input type="text" name="title" id="title" value="<mt:var name="title" escape="html">" class="width90" />
    <a title="<__trans phrase="Search for other TrackBacks with this title">" href="<mt:var name="script_url">?__mode=search_replace&amp;_type=ping&amp;blog_id=<mt:var name="blog_id">&amp;search=<mt:var name="title" escape="url">&amp;do_search=1"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
</mtapp:setting>

<mtapp:setting
    id="source_url"
    label="<__trans phrase="URL">"
    hint=""
    show_hint="0">
    <input type="text" name="source_url" id="source_url" value="<mt:var name="source_url" escape="html">" class="width90" />
    <a title="<__trans phrase="Search for other TrackBacks with this status">" href="<mt:var name="script_url">?__mode=search_replace&amp;_type=ping&amp;blog_id=<mt:var name="blog_id">&amp;search=<mt:var name="source_url" escape="url">&amp;do_search=1"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
</mtapp:setting>

<mt:if name="entry_ping">
    <mtapp:setting
        id="target_entry"
        label='<__trans phrase="Target [_1]" params="<$mt:var name="target_label">">'
        content_class="field-content-text"
        hint=""
        show_hint="0">
        <mt:if name="no_entry">
            [<__trans phrase="Entry no longer exists">]
        <mt:else>
            <a href="<mt:var name="script_url">?__mode=view&amp;_type=<mt:var name="target_type">&amp;id=<mt:var name="entry_id" escape="url">&amp;blog_id=<mt:var name="blog_id" escape="url">"><mt:if name="entry_title"><mt:var name="entry_title" escape="html"><mt:else>[<__trans phrase="No title">]</mt:if></a>
        </mt:if>
        <a href="<$mt:var name="script_url"$>?__mode=list_pings&amp;filter=entry_id&amp;filter_val=<$mt:var name="entry_id" escape="url"$>&amp;blog_id=<$mt:var name="blog_id" escape="url"$>" title="<__trans phrase="View all TrackBacks on this entry">"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
    </mtapp:setting>
</mt:if>

<mt:if name="category_ping">
    <mtapp:setting
        id="target_category"
        label="<__trans phrase="Target Category">"
        content_class="field-content-text"
        hint=""
        show_hint="0">
        <mt:if name="no_category">
            [<__trans phrase="Category no longer exists">]
        <mt:else>
            <a href="<mt:var name="script_url">?__mode=view&amp;_type=category&amp;id=<mt:var name="category_id">&amp;blog_id=<mt:var name="blog_id">"><mt:if name="category_label"><mt:var name="category_label" escape="html"><mt:else>[<__trans phrase="No title">]</mt:if></a>
        </mt:if>
        <a title="<__trans phrase="View all TrackBacks on this category">" href="<mt:var name="script_url">?__mode=list_pings&amp;blog_id=<mt:var name="blog_id">&amp;filter=category_id&amp;filter_val=<mt:var name="category_id" escape="html">"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
    </mtapp:setting>
</mt:if>

<mtapp:setting
    id="date"
    label="<__trans phrase="Date">"
    content_class="field-content-text"
    hint=""
    show_hint="0">
    <mt:var name="created_on_time_formatted">
    <a title="<__trans phrase="View all TrackBacks created on this day">" href="
        <mt:var name="script_url">?__mode=search_replace&amp;_type=ping&amp;blog_id=<mt:var name="blog_id">&amp;from=<mt:var name="created_on" escape="html">&amp;to=<mt:var name="created_on" escape="html">&amp;show_all=1&amp;do_search=1"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
</mtapp:setting>

<mtapp:setting
    id="source_ip"
    label="<__trans phrase="IP">"
    content_class="field-content-text"
    hint=""
    show_hint="0">
    <mt:var name="ip" escape="html">
    <a title="<__trans phrase="View all TrackBacks from this IP address">" href="<mt:var name="script_url">?__mode=search_replace&amp;_type=ping&amp;blog_id=<mt:var name="blog_id">&amp;search_cols=ip&amp;search=<mt:var name="ip" escape="url">&amp;do_search=1"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
</mtapp:setting>

<mtapp:setting
    id="text"
    label="<__trans phrase="TrackBack Text">"
    hint="<__trans phrase="Excerpt of the TrackBack entry">"
    show_hint="0">
    <textarea rows="" cols="" name="excerpt" id="excerpt" class="full-width medium"><mt:var name="excerpt" escape="html"></textarea>
</mtapp:setting>

<mt:if name="position_actions_bottom">
    <mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1">
</mt:if>

</form>
<mt:include name="include/footer.tmpl">
