Example #1
0
    ?>
"><?php 
    echo image_tag('icons/Grey/PNG/action_delete.png');
    ?>
</a>
		 	</div>            
		 	<div class="titol">
		 		Entrades del formulari  
		 	</div>
	    	<table>
	    	<?php 
    $WEBROOT = OptionsPeer::getString('SF_WEBROOT', $IDS);
    foreach ($VIEW_FORM_ENTRIES as $F) {
        echo '<tr>';
        echo '<td>
	    					<select name="estat" onChange="SubmitEstat(this,' . $F->getId() . ')">' . options_for_select(AppBlogsFormsEntriesPeer::selectEstats(), $F->getEstat()) . '</select>
	    				  </td>';
        echo '<td>';
        echo '<div class="hidden1" id="hidden1_' . $F->getId() . '">';
        echo $F->getId() . ' | ';
        foreach ($F->getArrayElements() as $K => $V) {
            if (in_array($K, $VIEW_FIELDS)) {
                echo '<b>' . $V . '</b> | ';
            }
        }
        echo '<a onClick="Activa(' . $F->getId() . ')"><img src="' . $WEBROOT . 'images/template/add.png' . '" /></a>';
        $O = $F->getObjeccions();
        if (!empty($O)) {
            echo ' <a onClick="Activa(' . $F->getId() . ')"><img src="' . $WEBROOT . 'images/template/buildings.png' . '" /></a>';
        }
        echo '</div>';