J’ai besoin d’aide
j’ai parcouru la documentation sur egroupware et j’arrive pas
voila jai cree une application (validation) dont le code d’un etamplate est le suivant :
<?php
include_once(EGW_INCLUDE_ROOT . ‘/validation/inc/class.bovalidation.inc.php’);
class uiidentification extends bovalidation {
var $public_functions = array(
‘index’ => true,
‘edit’ => true,
‘view’ => true, );
function uiidentification(){
$this->tmpl =& CreateObject(‘etemplate.etemplate’,‘validation.ressource.index’);
}
function index($content=null,$view=false)
{
if (is_array($content)) // not first call from index
{
if ($content[‘id’] > 0)
{
$this->read($content);
}
_debug_array($content);
$this->data_merge($content);
echo "<p>index: data =";
_debug_array($this->data);
<b>if (isset($content['save']))
{
$msg .= !$this->save() ? lang('Entry saved') : lang('Error: while saving !!!');
}</b>
}
// now we filling the content array for the next call to etemplate.exec
$content = $this->data + array( 'msg' => $msg );
$sel_options = array( 'titre' => $this->titre );
$this->tmpl->exec('validation.identification.index',$content,$sel_options,$no_button,array('id' => $this->data['id']));
}
}
?>
mon problème c’est que j’ai pas compris le code concernant les boutons
il y a un bouton enregistrer (name=save) et j’arrive meme pas a afficher un popup ou meme un echo derriere .
si vous pouvez m’aider :
- modele pour executer un bouton ???
- il faut declarer la forme bouton???
- comment faire l’executer ???
svp j’ai besoinnnnn d’aidddeeee