PHP and JAVA
Posted: Wed Jun 08, 2005 4:54 am
Hello !
I put this lines in index.tpl, and .js skripts are in subfolder /javascript. This javascript script is called index.js.
This script is for browsing and editing web content or web server...
When you browse the content of the server in web browser, there is a checkbox beside, and now i want to :
You have a file displayed in browser called test.php and beside is a checkbox. Now i want to check it and press the button, and that onclik do rsync -avu ('/www/test/* /www/test2/'); (just for the checked file)
I added this, but i donst know how to go further. When checbox is checked, the <input type="visible" name="file" value="" /> dispays it in the textbox. but how to do: on click check the checkbox and rsync the checked file or folder.
feyd | Please review how to post code using
I put this lines in index.tpl, and .js skripts are in subfolder /javascript. This javascript script is called index.js.
This script is for browsing and editing web content or web server...
When you browse the content of the server in web browser, there is a checkbox beside, and now i want to :
You have a file displayed in browser called test.php and beside is a checkbox. Now i want to check it and press the button, and that onclik do rsync -avu ('/www/test/* /www/test2/'); (just for the checked file)
I added this, but i donst know how to go further. When checbox is checked, the <input type="visible" name="file" value="" /> dispays it in the textbox. but how to do: on click check the checkbox and rsync the checked file or folder.
Code: Select all
<table class="e;main_table"e; cellpadding="e;2"e; cellspacing="e;1"e;>
<tr>
<th class="e;header_cell"e;>{SYNC_COMP}</th>
</tr>
<tr>
<td class="e;task_cell"e;>
<form action="e;{THIS}"e; method="e;post"e; name="e;zip"e;>
<input type="e;visible"e; name="e;dir"e; value="e;{NEXT_DIR}"e; />
<input type="e;visible"e; name="e;op"e; value="e;sync"e; />
<input type="e;visible"e; name="e;folder"e; value="e;"e; />
<input type="e;visible"e; name="e;file"e; value="e;"e; />
<table border="e;0"e; width="e;100%"e; cellpadding="e;4"e;>
<td align="e;right"e; valign="e;bottom"e; rowspan="e;2"e;><input type="e;submit"e; onclick="e;JavaScript:return check();"e; value="e;{SYNC}"e; /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>feyd | Please review how to post code using
Code: Select all
andCode: Select all
tags. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]