예제 #1
0
</div><!-- /.page-header -->
<div class="row">
	<div class="col-xs-12">
		<div class="clearfix">
			
		</div>
		<div class="table-header">
			Formulaire: "<?php 
echo ACTIV_APP;
?>
"

		</div>
		<div class="widget-content">
			<div class="widget-box">
				
<?php 
$form = new Mform('addlangue', 'addlangue', 'langue');
//Nom de la Langue
$fnom_array[] = array('required', 'true', ' Insérer Nom Langue');
$form->input('Nom de la Langue', 'lang', 'text', 6, null, $fnom_array);
//Button submit
$form->button('Enregistrer Langue');
//Form render
$form->render();
?>
			</div>
		</div>
	</div>
</div>
예제 #2
0
							<button class="btn btn-primary" type="submit"><i class="ace-icon fa fa-check bigger-110"></i>Enregistrer Utilisateur</button>
							&nbsp; &nbsp; &nbsp;
							<button class="btn" type="reset">
								<i class="ace-icon fa fa-undo bigger-110"></i>
								Reset
							</button>
						</div>

					</div>
				</form>
<?php 
$form = new Mform('test');
$form->input('description', 'id', 'text', 6, 'value');
$rules_array[] = array('required', 'true', 'Message rule');
$rules_array[] = array('minlength', '3', 'Min 3 car');
$form->js_rules('id', $rules_array);
$form->select_table('Description', 'select', '4', 'modul', 'id', 'modul', 'modul', $indx = NULL, $selected = NULL, $multi = NULL, $where = NULL);
$rules_array[] = array('required', 'true', 'Message rule select');
$rules_array[] = array('minlength', '5', 'Min 1 car');
$form->js_rules('select', $rules_array);
$form->select_count('counter', 'count', 2, 25, $indx = NULL, $selected = NULL);
$array_option = array('1' => 'OUI', '0' => 'NON');
$form->select('select Array', 'array', 2, $array_option, $indx = NULL, $selected = '0');
$form->button('Enregistrer button');
$form->render();
?>
			</div>
		</div>
	</div>
</div>
예제 #3
0
		</div>
		<div class="widget-content">
			<div class="widget-box">
				
<?php 
$form = new Mform('addtask', 'addtask', 'task');
$form->input_hidden('id_modul', Mreq::tg('id'));
//Déscription application
$desc_array[] = array('required', 'true', 'Insérer la Déscription');
$form->input('Déscription', 'description', 'text', 6, null, $desc_array);
//Nom Application
$app_array[] = array('required', 'true', 'Insérer Nom d l' . "\\'" . ' application');
$app_array[] = array('minlength', '3', 'Minimum 3 caractères');
$app_array[] = array('remote', 'app#task', 'Ce nom existe déja');
$form->input('Nom Application', 'app', 'text', 6, null, $app_array);
//Option Application système
$app_sys = array('NON' => 0, 'OUI' => 1);
$form->select('Application Système', 'app_sys', 3, $app_sys, $indx = NULL, $selected = NULL);
//Button submit
$form->button('Enregistrer Application');
//Add JS function if need
//$form->js_add_funct('alert(\'Test alert\');');
//Form render
$form->render();
?>
			</div>
		</div>
	</div>
</div>
예제 #4
0
파일: adduser_v.php 프로젝트: ATS001/MRN
/*$radio_array[]  = array('Option 1' , 'Valeur1' );
$radio_array[]  = array('Option 2' , 'Valeur2' );
$radio_array[]  = array('Option 3' , 'Valeur3' );
$radio_array[]  = array('Option 4' , 'Valeur4' );
$radio_js_array[]  = array('required', 'true', 'Insérer le mot de passe' );
$form->radio('Exemple Radio', 'radio', 'Valeur2', $radio_array, $radio_js_array);*/
//Confirm Mot de passe
$cpass_array[] = array('required', 'true', 'Confirmez le mot de passe');
$cpass_array[] = array('minlength', '8', 'Minimum 8 caractères');
$cpass_array[] = array('equalTo', '#pass', 'les deux mots de passe incompatibles');
$form->input('Confirmation mot de passe', 'passc', 'password', 6, null, $cpass_array);
//Nom utilisature
$tel_array[] = array('required', 'true', 'Insérer N° de téléphone');
$tel_array[] = array('number', '3', 'Le N° de téléphone doit contenir au moins 8 chiffres');
$tel_array[] = array('minlength', 'true', 'Entrez un N° Téléphone Valid');
$form->input('N° Téléphone', 'tel', 'text', 6, null, $tel_array);
//Service
$service_array[] = array('required', 'true', 'Choisir le Service');
$form->select_table('Service', 'service', 6, 'services', 'id', 'service', 'service', $indx = '------', $selected = NULL, $multi = NULL, $where = NULL, $service_array);
//Button submit
$form->button('Enregistrer Utilisateur');
//Add JS function if need
//$form->js_add_funct('alert(\'Test alert\');');
//Form render
$form->render();
?>
			</div>
		</div>
	</div>
</div>
예제 #5
0
$modul_array[] = array('required', 'true', 'Insérer Nom de Module');
$modul_array[] = array('minlength', '3', 'Minimum 3 caractères');
$modul_array[] = array('regex', 'true', 'Insérer Nom de Modul Valid');
$form->input('Nom Module', 'modul', 'text', 6, $info_modul->Shw('modul'), $modul_array);
//Déscription Module
$description_array[] = array('required', 'true', 'Insérer Prénom utilisateur');
$description_array[] = array('minlength', '3', 'Minimum 3 caractères');
$form->input('Déscription', 'description', 'text', 10, $info_modul->Shw('description'), $description_array);
//Titre bloc default TASK
$form->bloc_title('Informations Application par défault');
//Nom Application
$app_array[] = array('required', 'true', 'Insérer Nom d l' . "\\'" . ' application');
$app_array[] = array('minlength', '3', 'Minimum 3 caractères');
$app_array[] = array('regex', 'true', 'Insérer Nom d l' . "\\'" . ' application Valid');
$form->input('Nom Application', 'app', 'text', 6, $info_modul->Shw('app'), $app_array);
//Class en cas de app de base
$sbclass_array[] = array('regex', 'true', 'Insérer Classe Valid');
$sbclass_array[] = array('minlength', '3', 'Minimum 3 caractères');
$form->input('Class TDB', 'sbclass', 'text', 6, $info_modul->Shw('sbclass'), $sbclass_array);
//Button submit
$form->button('Enregistrer le Module');
//Add JS function if need
//$form->js_add_funct('alert(\'Test alert\');');
//Form render
$form->render();
?>
			</div>
		</div>
	</div>
</div>