Exemplo n.º 1
0
" />

                                                <fieldset >

                                                    <legend>Dados da Execução</legend>

                                                    <div class="row">

                                                        <div class="col-xs-12">

                                                            <div class="form-group">

                                                                <div class="form-group col-sm-4 col-lg-2">
                                                                    <label>Grupo</label>
                                                                    <?php 
echo create_combobox($grupos, "id", "descricao", "id_grupo", $agenda["id_grupo"], 'role="select-box"', true);
?>
                                                                </div>                                                                

                                                                <div class="form-group col-sm-6 col-lg-4">
                                                                    <label>Tipo <span class="text-red">*</span></label>
                                                                    <select class="form-control" name="tipo" role="select-box">
                                                                        <?php 
if ((int) $agenda["id"] == 0) {
    ?>
                                                                            <option value="-">Selecione</option>
                                                                        <?php 
}
?>
                                                                        <option value="0" <?php 
echo $agenda["tipo"] == 0 ? 'selected' : '';
Exemplo n.º 2
0
function clmc_init_metaboxes()
{
    $mb1 = new VP_Metabox(array('id' => 'clmc_book_meta', 'types' => array('product'), 'title' => __('Libro', 'vp_textdomain'), 'context' => 'normal', 'priority' => 'high', 'template' => array(array('type' => 'group', 'name' => 'group1', 'title' => __('Informazioni generali', 'vp_textdomain'), 'fields' => array(create_textbox('post_title', 'Titolo', true), create_textbox('sottotitolo'), array('type' => 'select', 'name' => 'libro_type', 'label' => __(ucfirst('Tipo Catalogazione'), 'vp_textdomain'), 'items' => array(array('value' => 'normale', 'label' => __('Normale', 'vp_textdomain')), array('value' => 'ebay', 'label' => __('Ebay', 'vp_textdomain')), array('value' => 'dd', 'label' => __('Dante & Descartes', 'vp_textdomain')), array('value' => 'catalogo', 'label' => __('Catalogo', 'vp_textdomain'))), 'default' => array('normale'), 'binding' => array('function' => 'soff_func', 'field' => 'pa_libro_type')), array('type' => 'group', 'repeating' => true, 'name' => 'autore', 'title' => __('Autore', 'vp_textdomain'), 'fields' => array(create_combobox('nome'), create_combobox('cognome'), array('type' => 'select', 'name' => 'ss_autore', 'label' => __('Ruolo', 'vp_textdomain'), 'items' => array(array('value' => 'pa_autore', 'label' => __('Autore', 'vp_textdomain')), array('value' => 'pa_traduttore', 'label' => __('Traduttore', 'vp_textdomain')), array('value' => 'pa_curatore', 'label' => __('Curatore', 'vp_textdomain'))), 'default' => array('pa_autore')))), create_textbox('_regular_price', 'Prezzo', true), create_combobox('editore'), create_combobox('a_publ', 'anno di pubblicazione'), create_combobox('isbn'), create_textbox('n_pag', 'Numero pagine'), create_combobox('lingua'), create_combobox('collana'), array('type' => 'select', 'name' => 'pa_condizione', 'label' => __('Condizione', 'vp_textdomain'), 'binding' => array('function' => 'soff_func', 'field' => 'pa_condizione'), 'items' => array(array('value' => 'nuovo', 'label' => __('Nuovo', 'vp_textdomain')), array('value' => 'c_nuovo', 'label' => __('Come Nuovo', 'vp_textdomain')), array('value' => 'ottime', 'label' => __('Ottime Condizioni', 'vp_textdomain')), array('value' => 'buone', 'label' => __('Buone', 'vp_textdomain')), array('value' => 'accettabile', 'label' => __('Accettabile', 'vp_textdomain'))), 'default' => array('buone')), create_textbox('c_cond', 'Condizione Info'), create_combobox('formato'), array('type' => 'checkbox', 'name' => 'pa_particolari', 'label' => __('Caratteristiche particolari', 'vp_textdomain'), 'binding' => array('function' => 'soff_func', 'field' => 'pa_particolari'), 'items' => array(array('value' => 'prima', 'label' => __('Prima Ed.', 'vp_textdomain')), array('value' => 'autogr', 'label' => __('Copia autograf.', 'vp_textdomain')), array('value' => 'sovracoperta', 'label' => __('Sovracoperta', 'vp_textdomain')))), create_texarea('quarta'), create_texarea('sinossi'), create_texarea('recenzione'), create_texarea('soffietto'), create_ebay_dep('autore_catalogo', 'Autore da Catalogo', 'textbox', true), create_ebay_dep('descrizione_catalogo', 'Descrizione Catalogo', 'textarea', true), create_ebay_dep('numero_argomento', 'Numero Argomento', 'textbox', true), array('type' => 'toggle', 'name' => 'pa_deposito', 'label' => __('Posseduto', 'vp_textdomain'), 'binding' => array('function' => 'soff_func', 'field' => 'pa_deposito'), 'default' => '1'))))));
}