コード例 #1
0
ファイル: ci_admin_asistentes.php プロジェクト: emma5021/toba
 function evt__form_tipo_operacion__modificacion($datos)
 {
     $this->s__formulario_tipo = $datos;
     $this->s__datos_asistente = toba_info_editores::get_lista_tipo_molde($this->s__formulario_tipo['tipo']);
     $this->cargar_editor_molde(true);
     //-- Si no hay zona, hay que crear el item y cargarla
     if (!toba::zona()->cargada()) {
         $id_item = $this->asistente()->crear_item($this->s__formulario_tipo['nombre'], $datos['carpeta']);
         if (isset($id_item)) {
             toba::zona()->cargar(array($id_item['proyecto'], $id_item['clave']));
             admin_util::refrescar_editor_item();
         }
     }
 }
コード例 #2
0
ファイル: pant_tipo_operacion.php プロジェクト: emma5021/toba
 function generar_layout()
 {
     $tipos_rs = toba_info_editores::get_lista_tipo_molde();
     $tipos = array();
     foreach ($tipos_rs as $tipo) {
         $tipos[$tipo['operacion_tipo']] = array('descripcion' => $tipo['descripcion'], 'vista_previa' => toba_recurso::imagen_proyecto($tipo['vista_previa'], false));
     }
     echo toba_js::abrir();
     echo 'var tipos_operacion = ' . toba_js::arreglo($tipos, true, true) . "\n";
     echo toba_js::cerrar();
     $this->dep('form_tipo_operacion')->generar_html();
     //$this->generar_botones();
     //$this->generar_boton('siguiente_editar');
     echo "<div style='background-color: #808080;padding-bottom: 15px;margin-top: 5px; color: white; text-align:center; font-size:12px; font-weight: bold;'><hr>";
     echo "<div id='operacion_descripcion'></div>";
     echo "<div id='operacion_vista_previa' style='display:none; padding-top:10px;'></div>";
     echo '</div>';
 }