public function action_addPhoto()
 {
     $id = $this->req->id;
     $this->set_title("Module Admin Ajouter Photo");
     $f = new Form("?module=admModele&action=validePhoto", "f_addph");
     $f->add_hidden("id", "id", "Id")->set_value($this->req->id);
     $f->add_file("photo", "photo", "photo");
     $f->add_submit("Valider", "val_up")->set_value("Valider");
     $this->tpl->assign("f_addph", $f);
     $this->session->formPh = $f;
 }
Example #2
0
<?php

$guests = $g_display["guests"];
?>
<div class="evt_title"><p>{{Guest management}}</p></div>

<?php 
require $g_i18n->filename(SKIN_DIR . "/sidebar_promote.php");
$f = new Form();
$f->action = "?action=merge&amp;type=guest_file";
$f->method = "POST";
$f->add_file(_t("File with email address"), "guest_filename", _t("A valid text file that contains one email address per line."));
$f->add_submit(_t("Submit"));
echo $f->html();
?>
<table class="evt_table">
	<tr>
		<th>{{Id}}</th>
		<th>{{Email}}</th>
	</tr>
<?php 
foreach ($guests as $guest) {
    ?>
	<tr>
		<td><?php 
    echo $guest->id;
    ?>
</td>
		<td><?php 
    echo $guest->email;
    ?>