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