Refactor code structure for improved readability and maintainability
This commit is contained in:
		
							
								
								
									
										19
									
								
								themes/connector/samples/export/csv.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								themes/connector/samples/export/csv.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| <?php | ||||
| 	require_once("../config.php"); | ||||
| 	$res=mysql_connect($mysql_server,$mysql_user,$mysql_pass); | ||||
| 	mysql_select_db($mysql_db); | ||||
| 	 | ||||
|  | ||||
| 	require("../../codebase/grid_connector.php"); | ||||
| 	require("../../codebase/convert.php"); | ||||
| 	 | ||||
| 	$convert = new ConvertService("http://dhtmlxgrid.appspot.com/export/csv"); | ||||
| 	$convert->excel(); | ||||
| 	 | ||||
| 	$grid = new GridConnector($res); | ||||
| 	$config = new GridConfiguration(); | ||||
| 	 | ||||
| 	$grid = new GridConnector($res); | ||||
| 	$grid->set_config($config); | ||||
| 	$grid->render_table("grid50"); | ||||
| ?> | ||||
		Reference in New Issue
	
	Block a user