コード例 #1
0
    }
    // Creation KO
    $mesg = $myobject->error;
}
/*
 * VIEW
 *
 * Put here all code to build page
 */
llxHeader('', 'MyPageName', '');
$form = new Form($db);
// Put here content of your page
// Example 1: Adding jquery code
echo '<script type="text/javascript" language="javascript">
	jQuery(document).ready(function() {
		public function init_myfunc()
		{
			jQuery("#myid").removeAttr(\'disabled\');
			jQuery("#myid").attr(\'disabled\',\'disabled\');
		}
		init_myfunc();
		jQuery("#mybutton").click(function() {
			init_needroot();
		});
	});
</script>';
// Example 2: Adding links to objects
// The class must extend CommonObject for this method to be available
$somethingshown = $myobject->showLinkedObjectBlock();
// End of page
llxFooter();