From fee6ccc1e5ce11783fef14bf24f989c62f9a83d2 Mon Sep 17 00:00:00 2001 From: leithoff Date: Tue, 26 Jul 2016 16:43:06 +0200 Subject: [PATCH] Updated CodeCorner3 (markdown) --- CodeCorner3.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/CodeCorner3.md b/CodeCorner3.md index ef6869f..8e20f4d 100644 --- a/CodeCorner3.md +++ b/CodeCorner3.md @@ -337,8 +337,8 @@ This function is added to the class.test_ui.inc.php file. { $content['message']=print_r($content,true)."\n".'to continue please type a name ...'; $content['datetime']=time(); - $content['test_firstname']=''; - $content['test_name']=''; + $readonlys['test_firstname']=$content['test_firstname']; + $readonlys['test_name']=$content['test_name']; } elseif ($content['new']) { $content['message']='cleared form !'."\n".'to continue please type a name ...'; @@ -348,13 +348,11 @@ This function is added to the class.test_ui.inc.php file. } } else { // first call - $content=array( - 'message'=>'... please type a name ...', - ); } $tpl=new etemplate('test.index'); $tpl->setElementAttribute('debuginfo','disabled',!$debug); - $tpl->exec('test.test_ui.index',$content); + $tpl->setElementAttribute('submit','disabled',$content['submit']); + $tpl->exec('test.test_ui.index',$content,array(),$readonlys); // the debug info will be displayed at the very end of the page //_debug_array($content); } @@ -426,7 +424,7 @@ The index function is called from our index.php file or as callback for this for   @@ -436,8 +434,8 @@ The index function is called from our index.php file or as callback for this for