mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 18:38:29 +02:00
Updated CodeCorner3 (markdown)
@ -333,18 +333,24 @@ function index($content=null)
|
||||
if (is_array($content)){
|
||||
$debug=true;
|
||||
// after submit
|
||||
$content['message']=print_r($content,true);
|
||||
if ($content['submit'])
|
||||
{
|
||||
$content['message']=print_r($content,true)."\n".'to continue please type a name ...';
|
||||
$content['datetime']=time();
|
||||
$content['who']=$content['name'];
|
||||
$content['name']='';
|
||||
$content['ergebnis']=$content['wert1']*$content['wert2'];
|
||||
$content['test_firstname']='';
|
||||
$content['test_name']='';
|
||||
} elseif ($content['new'])
|
||||
{
|
||||
$content['message']='cleared form !'."\n".'to continue please type a name ...';
|
||||
$content['datetime']=time();
|
||||
$content['test_firstname']='';
|
||||
$content['test_name']='';
|
||||
}
|
||||
} else {
|
||||
// first call
|
||||
/*
|
||||
$content=array(
|
||||
'who'=>', please type a name ...',
|
||||
'message'=>'... please type a name ...',
|
||||
);
|
||||
*/
|
||||
}
|
||||
$tpl=new etemplate('test.index');
|
||||
$tpl->set_cell_attribute('debuginfos','disabled',!$debug);
|
||||
@ -377,7 +383,7 @@ var $public_functions = array(
|
||||
<dd>
|
||||
<dl>
|
||||
<dt>Step 10</dt>
|
||||
<dd>You have to add a constructor to your test_ui class:</dd>
|
||||
<dd>You should add a constructor to your test_ui class:</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
</dl>
|
||||
|
Reference in New Issue
Block a user