<?php // dummy way to check if this file is loaded by the system if (empty($CFG)) { die; } // build data table $table_data = array(); //file title $input_data = do_get_output('do_input', array('S_title', 'text', $file->title, 'size="20" maxlength="50"')); $table_data[] = array(__('Título:') . ' *', $input_data); //description $input_data = <<<END <textarea name="S_descr" cols="50" rows="2">{$file->descr}</textarea> END; $table_data[] = array(__('Descripción:') . ' *', $input_data); // public? $input_data = do_get_output('do_input_yes_no', array('I_public', $file->public)); $table_data[] = array(__('Público:') . ' *', $input_data); // file! if (Action == 'editfile') { $input_data = $file->name; } else { $input_data = do_get_output('do_input', array('S_filename', 'file', '', 'id=\'S_filename\'')); $input_data .= '<br /><span class="littleinfo">' . __('El tamaño máximo de subida es de <strong>2 Mb</strong>, si tu archivo supera el límite<br /> por favor envíalo a') . ' <a href="mailto:' . $CFG->adminmail . '">' . $CFG->adminmail . '</a>'; } $table_data[] = array(__('Archivo:') . ' *', $input_data); // show tdata do_table_input($table_data, 'narrow-form');
<?php // dummy way to check if this file is loaded by the system if (empty($CFG) || Context != 'admin') { die; } // build data table $table_data = array(); $year = substr($date->fecha, 0, 4); $month = substr($date->fecha, 5, 2); $day = substr($date->fecha, 8, 2); $startyear = (int) strftime('%Y'); // date name $input_data = do_get_output('do_input_date_select', array('I_e_day', 'I_e_month', 'I_e_year', $day, $month, $year, $startyear, $startyear + 2)); $table_data[] = array(__('Fecha de evento:') . ' *', $input_data); // date description $input_data = do_get_output('do_input', array('S_descr', 'text', $date->descr, 'size="30"')); $table_data[] = array(__('Descripción:') . ' ', $input_data); // show tdata do_table_input($table_data);
//organizational events can assign to no room if (Action == 'newevent' || $proposal->id_prop_tipo > 100) { // $default_lugar = 'Exteriores'; } if (!empty($rooms)) { $input_data = do_get_output('do_input_select', array('I_id_lugar', $rooms, $event->id_lugar, true, $default_lugar)); } else { $input_data = '<em>' . __('No se encuentra ningún lugar registrado') . '</em>'; } $table_data[] = array(__('Lugar de evento:') . ' *', $input_data); // hour //$input_data = do_get_output('do_input_number_select', array('I_hora', $CFG->def_hora_ini, $CFG->def_hora_fin-1, $event->hora)); $input_data = do_get_output('do_input_time_slot', array('I_hora', $CFG->def_hora_ini, $CFG->def_hora_fin - 1, $event->hora, $proposal->duracion)); $table_data[] = array(__('Hora:') . ' *', $input_data); if (Action == 'newevent') { // duracion $input_data = do_get_output('do_input_number_select', array('I_duracion', 1, 4, $proposal->duracion, true, '', 0, true)); $table_data[] = array(__('Duración:') . ' *', $input_data); } // show extraordinary option to magistral conference and organizational events // DISABLED if (false && (Action == 'newevent' || $proposal->id_prop_tipo >= 100)) { // extraordinario $selected = empty($extraordinario) ? 0 : 1; $input_data = do_get_output('do_input_yes_no', array('I_extraordinario', $selected)); $desc = '<span class="littleinfo">' . __('Selecciona "Si" para reservar la hora en todos los lugares.') . '</span>'; $table_data[] = array(__('Evento extraordinario:') . ' *', $input_data . $desc); } // show tdata do_table_input($table_data, 'left');