Page 1 of 1

Jquery directory tree check box delete form ??

Posted: Fri Sep 02, 2011 12:18 pm
by Nexit
Hi i have problem with code for jquery ! I don't know how to make the check box delete form in jquery directory tree Seriously I need help !! :?: :banghead:
This is the code I'm using... please help :(
It look like this
It look like this

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
				<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"> 
				<head> 
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
				<title>jQuery Drop Down Menu</title> 
				 
				<!-- CSS For The Menu --> 
				<link rel="stylesheet" href="stylee.css" /> 
				 
				</head> 
				<body> 
				
				<!-- Menu Start --> 
				<div id="jQ-menu"> 
				 
				<?php
				error_reporting(0);
					$path = "store/".$diro."/";
				
					function createDir($path = '.')
					{	
						if ($handle = opendir($path)) 
						{
							echo "<ul>";
						
							while (false !== ($file = readdir($handle))) 
							{
								if (is_dir($path.$file) && $file != '.' && $file !='..')
									printSubDir($file, $path, $queue);
								else if ($file != '.' && $file !='..')
									$queue[] = $file;
							}
							
							printQueue($queue, $path);
							echo "</ul>";
						}
					}
					
					function printQueue($queue, $path)
					{
						foreach ($queue as $file) 
						{
							printFile($file, $path);
						} 
					}
					echo"<form action='osnovni_dokumenti.php?id=" . $data['ideo']. "' method='POST'>";
					function printFile($file, $path)
					{
						
				echo "<li><input type='checkbox' name='del[]' value='$file'/><a href=\"".$path.$file."\"><img src='slike_izgled/file.png'>$file</a></li>";      
										
					}
					
					function printSubDir($dir, $path)
					{
						echo "<li><img src='slike_izgled/directory.png' width='20' height='20'> <span class=\"toggle\">$dir</span>";
						createDir($path.$dir."/");
						echo "</li>";
					}
					
					createDir($path);
					echo"<p align='center'><input type='submit' name='filedel' value='Delete'></p>
					</form>";
					
					
					
					
			
							
				?>
				
				</div> 
				<!-- End Menu --> 
				 
				 
				<!-- Add jQuery From the Google AJAX Libraries --> 
				<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> 
				 
				<!-- jQuery Color Plugin --> 
				<script type="text/javascript" src="jquery.color.js"></script> 
				 
				<!-- Import The jQuery Script --> 
				<script type="text/javascript" src="jMenu.js"></script> 
				 
				</body> 
				</html>