Beispiel #1
0
<?php

/*
 examplemodule
 * 
 exampleGroupId
 exampleActionId
 exampleItemId
 * */
$oForm = new plugin_form($this->oPermission);
$oForm->setMessage($this->tMessage);
?>
<form action="" method="POST" >

<table class="tb_list">
	
	<tr>
		<th>Groupe</th>
		<th>Action</th>
		<th>Element</th>
	</tr>
	
	<tr>
		<td>
			<?php 
echo $oForm->getSelect('#exampleGroupId#', $this->tJoinGroup);
?>
			<br/>ou <br/>
			<?php 
echo $oForm->getInputText('#exampleGroupId#_text');
?>
Beispiel #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>

Beispiel #3
0
<?php

$oForm = new plugin_form($this->oForm);
$oForm->setMessage($this->tMessage);
?>
<style>
.center{
	text-align:center;
}
.tb_list{
	margin:auto;
}
.tb_list td{
	vertical-align:top;
	text-align:left;
}
.tb_list .field p{
	text-align:left;
	
}
.main .content table th{
	background:white;
}
.tb_list td{
	border:1px solid gray;
}
.tb_list .empty{
	border:0px;
}
.nb{
	background:black;
Beispiel #4
0
<?php

/*
 examplemodule
 * 
 exampleGroupId
 exampleActionId
 exampleItemId
 * */
$oForm = new plugin_form($this->oPermission);
$oForm->setMessage($this->tMessage);
?>
<form action="" method="POST" >

<table class="tb_list">
	
	<tr>
		<th>Groupe</th>
		<th>Action</th>
		<th>Element</th>
	</tr>
	
	<tr>
		<td>
			<?php 
echo $oForm->getSelect('exampleGroupId', $this->tJoinGroup);
?>
		</td>
		
		<td>
			<?php 
Beispiel #5
0
<?php

$oForm = new plugin_form($this->oAuteur);
$oForm->setMessage($this->tMessage);
?>
<form  class="form-horizontal" action="" method="POST" >

	
	<div class="form-group">
		<label class="col-sm-2 control-label">nom</label>
		<div class="col-sm-10"><?php 
echo $oForm->getInputText('nom', array('class' => 'form-control'));
?>
</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label">prenom</label>
		<div class="col-sm-10"><?php 
echo $oForm->getSelect('prenom', $this->tJoinmodel_auteur, array('class' => 'form-control'));
?>
</div>
	</div>


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


<div class="form-group">
Beispiel #6
0
<h1>Inscription</h1>
<?php 
$oForm = new plugin_form($this->oUser);
$oForm->setMessage($this->tMessage);
?>
<form action="" method="POST" class="form-signin" role="form">
  
            <p>
               <label>Nom d'utilisateur</label>
               <?php 
echo $oForm->getInputText('#loginField#', array('class' => 'form-control'));
?>
           </p>
           <p>
               <label>Mot de passe</label>
               <input type="password" name="password" class="form-control" />
           </p>
           <p>
               <label>Confirmez le mot de passe</label>
               <input type="password" name="password2" class="form-control"/>
           </p>
      
   
   <p><input type="submit" value="S'enregistrer" /> <a href="<?php 
echo _root::getLink('#MODULE#::login');
?>
">Page de login</a> </p>


<?php 
if ($this->tMessage and isset($this->tMessage['success'])) {
Beispiel #7
0
<?php

$oForm = new plugin_form($this->oArticle);
$oForm->setMessage($this->tMessage);
?>
<form action="" method="POST">
<?php 
foreach ($this->tColumn as $sColumn) {
    ?>
	<?php 
    if (!in_array($sColumn, $this->tId)) {
        continue;
    }
    ?>
	<input type="hidden" name="<?php 
    echo $sColumn;
    ?>
" value="<?php 
    echo $this->oArticle->{$sColumn};
    ?>
" />
	<?php 
    if ($this->tMessage and isset($this->tMessage[$sColumn])) {
        echo implode(',', $this->tMessage[$sColumn]);
    }
}
?>
	
<table>
	
	<tr>
Beispiel #8
0
<?php

$oForm = new plugin_form($this->oPosts);
$oForm->setMessage($this->tMessage);
?>
<h1>Edit post</h1>

<p><a href="<?php 
echo _root::getLink('privatePosts::list');
?>
">< Back to posts</a></p>
<form action="" id="PostAdminEditForm" method="post" accept-charset="utf-8">
<input type="hidden" name="formmodule" value="postsadmin"/>
<div class="row">
	<div class="col-md-6">
		<div class="form-group required">
			<label for="PostName">Name :</label>
			<?php 
echo $oForm->getInputText('name', array('class' => 'form-control', 'maxlength' => 255, 'id' => 'PostName', 'required' => 'required'));
?>
		</div>
	</div>
	<div class="col-md-6">
		<div class="form-group required">
			<label for="PostSlug">Slug :</label>
			<?php 
echo $oForm->getInputText('slug', array('class' => 'form-control', 'maxlength' => 255, 'id' => 'PostSlug', 'required' => 'required'));
?>
		</div>
	</div>
</div>
Beispiel #9
0
<h1>Inscription</h1>
<?php 
$oForm = new plugin_form($this->oUser);
$oForm->setMessage($this->tMessage);
?>
<form action="" method="POST">
   <table>
           <tr>
               <th>Nom d'utilisateur</th>
               <td><?php 
echo $oForm->getInputText('#loginField#');
?>
</td>
           </tr>
           <tr>
               <th>Mot de passe</th>
               <td><input type="password" name="password" /></td>
           </tr>
           <tr>
               <th>Confirmez le mot de passe</th>
               <td><input type="password" name="password2" /></td>
           </tr>
      
   </table>
   <p><input type="submit" value="S'enregistrer" /> <a href="<?php 
echo _root::getLink('#MODULE#::login');
?>
">Page de login</a> </p>


<?php 
Beispiel #10
0
<?php

/*
 examplemodule
 * 
 exampleGroupId
 exampleActionId
 exampleItemId
 * */
$oForm = new plugin_form($this->oUser);
$oForm->setMessage($this->tMessage);
?>
<form action="" method="POST" >

<table class="tb_edit">
	
	<tr>
		<th>Login</th>
		<td><?php 
echo $this->oUser->exampleUser_login;
?>
</td>
	</tr>
	<tr>
		<th>Groupe</th>
		<td><?php 
echo $oForm->getSelect('exampleUser_groupsId', $this->tJoinGroup);
?>
</td>
	</tr>