Exemplo n.º 1
0
function cvtx_aeantrag_meta()
{
    global $post;
    $antrag_id = get_post_meta($post->ID, 'cvtx_aeantrag_antrag', true);
    echo '<label for="cvtx_aeantrag_antrag_select">' . __('Resolution', 'cvtx') . ':</label><br />';
    echo cvtx_dropdown_antraege($antrag_id, __('No agenda created', 'cvtx') . '.');
    echo '<br />';
    echo '<label for="cvtx_aeantrag_zeile_field">' . __('Line', 'cvtx') . ':</label><br />';
    echo '<input name="cvtx_aeantrag_zeile" id="cvtx_aeantrag_zeile_field" type="text" value="' . get_post_meta($post->ID, 'cvtx_aeantrag_zeile', true) . '" />';
    echo '<p id="admin_message" class="error">';
    echo '<span id="unique_error_cvtx_aeantrag_zeile" class="cvtx_unique_error">' . __('There is another amendment concering this line.', 'cvtx') . '</span> ';
    echo '<span id="empty_error_cvtx_aeantrag_zeile" class="cvtx_empty_error">' . __('Please insert line.', 'cvtx') . '</span> ';
    echo '</p>';
}
Exemplo n.º 2
0
function cvtx_spd_aeantrag_meta()
{
    global $post;
    $antrag_id = get_post_meta($post->ID, 'cvtx_aeantrag_antrag', true);
    echo '<label for="cvtx_aeantrag_antrag_select">' . __('Resolution', 'cvtx') . ':</label><br />';
    echo cvtx_dropdown_antraege($antrag_id, __('No agenda created', 'cvtx') . '.');
    echo '<br />';
    echo '<label for="cvtx_aeantrag_ord">' . __('Nr', 'cvtx') . ':</label><br />';
    echo '<input name="cvtx_aeantrag_ord" id="cvtx_aeantrag_ord_field" type="text" value="' . get_post_meta($post->ID, 'cvtx_aeantrag_ord', true) . '" />';
    echo '<br />';
    echo '<label for="cvtx_aeantrag_action_field">' . __('Action', 'cvtx') . ':</label><br />';
    echo '<select name="cvtx_aeantrag_action" id="cvtx_aeantrag_action"><option>Ändern</option>';
    $options = array(__('Einfügen', 'cvtx'), __('Ergänzen', 'cvtx'), __('Streichen', 'cvtx'));
    foreach ($options as $option) {
        echo '<option' . ($option == get_post_meta($post->ID, 'cvtx_aeantrag_action', true) ? ' selected="selected"' : '') . '>' . $option . '</option>';
    }
    echo '</select> ';
    echo '<br />';
    echo '<label for="cvtx_aeantrag_zeile_field">' . __('Line', 'cvtx') . ':</label><br />';
    echo '<input name="cvtx_aeantrag_zeile" id="cvtx_aeantrag_zeile_field" type="text" value="' . get_post_meta($post->ID, 'cvtx_aeantrag_zeile', true) . '" />';
    echo '<br />';
    echo '<label for="cvtx_aeantrag_seite_field">' . __('Page', 'cvtx') . ':</label><br />';
    echo '<input name="cvtx_aeantrag_seite" id="cvtx_aeantrag_seite_field" type="text" value="' . get_post_meta($post->ID, 'cvtx_aeantrag_seite', true) . '" />';
    echo '<p id="admin_message" class="error">';
    echo '<span id="unique_error_cvtx_aeantrag_ord" class="cvtx_unique_error">' . __('There is another amendment with this number.', 'cvtx') . '</span> ';
    echo '<span id="unique_error_cvtx_aeantrag_zeile" class="cvtx_unique_error">' . __('There is another amendment concering this line/page.', 'cvtx') . '</span> ';
    echo '<span id="empty_error_cvtx_aeantrag_zeile" class="cvtx_empty_error">' . __('Please insert line.', 'cvtx') . '</span> ';
    echo '</p>';
}