Esempio n. 1
0
 public function _show()
 {
     $oExamplemodel = model_examplemodel::getInstance()->findById(module_examplemodule::getParam('id'));
     $oView = new _view('examplemodule::show');
     $oView->oExamplemodel = $oExamplemodel;
     //icishow
     return $oView;
 }
Esempio n. 2
0
<?php

$oForm = new plugin_form($this->oExamplemodel);
$oForm->setMessage($this->tMessage);
?>
<form class="form-horizontal" action="" method="POST" <?php 
//enctype
?>
>
<input type="hidden" name="formmodule" value="examplemodule" />

	<?php 
//ici
?>

<?php 
echo $oForm->getToken('token', $this->token);
?>


<div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
		<input type="submit" class="btn btn-success" value="Modifier" /> <a class="btn btn-link" href="<?php 
echo module_examplemodule::getLink('list');
?>
">Annuler</a>
	</div>
</div>
</form>

Esempio n. 3
0
if ($this->tExamplemodel) {
    ?>
	<?php 
    foreach ($this->tExamplemodel as $oExamplemodel) {
        ?>
	<tr <?php 
        echo plugin_tpl::alternate(array('', 'class="alt"'));
        ?>
>
		<?php 
        //ici
        ?>
		<td>
			
			
			<a href="<?php 
        echo module_examplemodule::getLink('show', array('id' => $oExamplemodel->getId()));
        ?>
">Show</a>
			
		</td>
	</tr>	
	<?php 
    }
    ?>
	<?php 
}
?>
</table>
<?php 
php;
Esempio n. 4
0
 public static function setRootLink($sRootModule, $tRootParams = null)
 {
     self::$sRootModule = $sRootModule;
     self::$tRootParams = $tRootParams;
 }