Example #1
0
<?php

defined('SYSPATH') or die('No direct script access.');
// Opciones de configuracion del editor WYSIWYG
echo View::factory("envio/script_config");
if ($cat == "Actividades") {
    $actividad = TRUE;
    echo HTMl::script("media/js/scw.js");
} else {
    $actividad = FALSE;
}
if (!$actividad) {
    ?>
    <script language="javascript" type="text/javascript">
        WYSIWYG.attach("contenido", personalizado);
    </script>
<?php 
}
?>
<script language="javascript">

    function nueva_ventana(url, nombre, ancho, alto){
	window.open(url, nombre, "width="+ancho+",height="+alto+",directories=NO,location=NO,menubar=NO,status=NO,titlebar=NO,toolbar=NO");
	return 0;
    }

    function validar(){
	// Limpia los valores en caso de haber errores anteriores
	document.getElementById("msj_titulo").innerHTML = "";
	document.getElementById("msj_fecha").innerHTML = "";
	document.getElementById("msj_hora").innerHTML = "";
 /**
 * creates the html for the global features-input
 *
 * @access   private
 * @return   string the html
 */
 function createQuestionFeatures()
 {
     $group =& $this->tree->getGroupObject($this->itemID);
     $templateID = $group->getTemplateID();
     if ($templateID) {
         $template = new EvaluationQuestion($templateID);
         $templateTitle = htmlReady($template->getText());
     } else {
         $templateTitle = NO_TEMPLATE_GROUP;
     }
     //_("keine Vorlage");
     if ($templateTitle == "") {
         $templateTitle = NO_TEMPLATE;
     }
     $table = new HTML("table");
     $table->addAttr("border", "0");
     $table->addAttr("align", "center");
     $table->addAttr("cellspacing", "0");
     $table->addAttr("cellpadding", "0");
     $table->addAttr("width", "98%");
     //    $table->addAttr ("style", "border:5px solid white;");
     $tr = new HTML("tr");
     $td = new HTMl("td");
     $td->addAttr("class", "table_row_odd");
     $td->addAttr("colspan", "2");
     $b = new HTML("b");
     $b->addContent(_("Eigenschaften"));
     $b->addContent(":");
     $td->addContent($b);
     $tr->addContent($td);
     $table->addContent($tr);
     $tr = new HTML("tr");
     $td = new HTMl("td");
     $td->addAttr("style", "border-bottom:0px dotted black;");
     $td->addContent(_("Die Fragen dieses Blocks müssen beantwortet werden (Pflichtfelder):"));
     $tr->addContent($td);
     $td = new HTMl("td");
     $td->addAttr("style", "border-bottom:0px dotted black;");
     $input = new HTMLempty("input");
     $input->addAttr("type", "radio");
     $input->addAttr("value", "0");
     $input->addAttr("name", "mandatory");
     if (!$group->isMandatory()) {
         $input->addAttr("checked", "checked");
     }
     $td->addContent($input);
     $td->addContent(_("nein"));
     $td->addContent(new HTMLempty("br"));
     $input = new HTMLempty("input");
     $input->addAttr("type", "radio");
     $input->addAttr("value", "1");
     $input->addAttr("name", "mandatory");
     if ($group->isMandatory()) {
         $input->addAttr("checked", "checked");
     }
     $td->addContent($input);
     $td->addContent(_("ja"));
     $tr->addContent($td);
     $table->addContent($tr);
     $tr = new HTML("tr");
     $td = new HTML("td");
     $td->addAttr("style", "border-bottom:0px dotted black;");
     $td->addHTMLContent(sprintf(_("Diesem Fragenblock ist die Antwortenvorlage <b>%s</b> zugewiesen."), $templateTitle));
     $text = _("Das Zuweisen einer Antwortenvorlage ändert alle Antwortenmöglichkeiten der Fragen dieses Fragenblocks.");
     if ($templateTitle == NO_TEMPLATE_GROUP) {
         $text .= " " . _("Da dieser Fragenblock keine Antwortenvorlage benutzt, würde ein Zuweisen einer Antwortenvorlage zum Verlust aller eingegebenen Antworten führen.");
     }
     $td->addHTMLContent($this->createImage(EVAL_PIC_HELP, $text));
     $tr->addContent($td);
     $td = new HTML("td");
     $td->addAttr("style", "border-bottom:0px dotted black;");
     $td->addAttr("nowrap", "nowrap");
     $td->addHTMLContent($this->createTemplateSelection($templateID));
     $td->addContent(" ");
     $td->addHTMLContent(Button::create(_('Zuweisen'), 'cmd[ChangeTemplate]', array('title' => _('Eine andere Antwortenvorlage für diesen Fragenblock auswählen'))));
     $tr->addContent($td);
     $table->addContent($tr);
     return $table->createContent();
 }
Example #3
0
<?php

$login = new ModelLogin();
$concert = new Concert();
if ($login->isUserLoggedIn() && ($login->isMusico() || $login->isLocal())) {
    if ($login->isLocal()) {
        echo HTML::title("h3", "Concierto de " . $login->getUserDataCampo($_SESSION['band_id_concierto'], "usuario_nombre"));
    }
    if ($login->isMusico()) {
        echo HTML::title("h3", "Concierto en el local " . $login->getUserDataCampo($_SESSION['local_id_concierto'], "usuario_nombre"));
    }
    echo HTML::open_form(ROUTER::create_action_url("event/concert"), "POST", "form_new_concert");
    echo HTML::label("concierto_precio", "Precio de concierto");
    echo HTML::input("text", "concierto_precio", null, array("placeholder" => "xx€"));
    echo HTML::br(2);
    echo HTMl::label("concierto_fecha", "Fecha del concierto:");
    echo HTML::input("text", "concierto_fecha", null, array("placeholder" => "dia/mes/año"));
    echo HTML::br(2);
    echo HTML::label("concierto_duracion", "Duración del concierto");
    echo HTML::input("text", "concierto_duracion", null, array("placeholder" => "minutos"));
    echo HTML::br(2);
    echo HTML::label("concierto_aforo", "Aforo");
    echo HTML::input("text", "concierto_aforo", null);
    echo HTML::br(2);
    echo HTML::input("submit", "form_new_concert", "Crear concierto");
    echo HTML::close_form();
} else {
    if (isset($_GET['verification_code'])) {
    } else {
        echo "Loggeate como músico o local para crear un concierto!";
    }