@ -309,11 +309,11 @@ if($order==='A'){
|
|||||||
<th><a href="files.php?path=<?php echo $dir; ?>&C=S&O=<?php echo $sizeurl; ?>">Size</a></th>
|
<th><a href="files.php?path=<?php echo $dir; ?>&C=S&O=<?php echo $sizeurl; ?>">Size</a></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td colspan="4"><hr></td></tr>
|
<tr><td colspan="4"><hr></td></tr>
|
||||||
<tr><td></td><td class="back"></td><td colspan="3"><a href="files.php?path=<?php echo substr($dir, 0, strrpos(rtrim($dir, '/'), '/'))."/&C=$sort&O=$order"?>">Parent Directory</a></td></tr>
|
<tr><td><input type="checkbox" onclick="toggle(this);"></td><td class="back"></td><td colspan="3"><a href="files.php?path=<?php echo substr($dir, 0, strrpos(rtrim($dir, '/'), '/'))."/&C=$sort&O=$order"?>">Parent Directory</a></td></tr>
|
||||||
<?php
|
<?php
|
||||||
foreach($list as $element){
|
foreach($list as $element){
|
||||||
get_properties($element['name'], $icon, $element['size']);
|
get_properties($element['name'], $icon, $element['size']);
|
||||||
echo '<tr><td><input type="checkbox" name="files[]" value="'.htmlspecialchars($element['name'])."\"></td><td class=\"$icon\"></td><td><a href=\"files.php?path=$dir".str_replace('%2F', '/', rawurlencode($element['name'])).'">'.htmlspecialchars($element['name']).'</a></td><td>'.date("Y-m-d H:i", $element['mtime'])."</td><td>$element[size]</td></tr>";
|
echo '<tr><td><input type="checkbox" class="fileCheck" name="files[]" value="'.htmlspecialchars($element['name'])."\"></td><td class=\"$icon\"></td><td><a href=\"files.php?path=$dir".str_replace('%2F', '/', rawurlencode($element['name'])).'">'.htmlspecialchars($element['name']).'</a></td><td>'.date("Y-m-d H:i", $element['mtime'])."</td><td>$element[size]</td></tr>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr><td colspan="4"><hr></td></tr>
|
<tr><td colspan="4"><hr></td></tr>
|
||||||
@ -323,6 +323,14 @@ foreach($list as $element){
|
|||||||
<input type="submit" name="edit" value="Edit">
|
<input type="submit" name="edit" value="Edit">
|
||||||
<input type="submit" name="unzip" value="Unzip"><br><br>
|
<input type="submit" name="unzip" value="Unzip"><br><br>
|
||||||
</form>
|
</form>
|
||||||
|
<script>
|
||||||
|
function toggle(source) {
|
||||||
|
checkboxes = document.getElementsByClassName('fileCheck');
|
||||||
|
for(var i=0, n=checkboxes.length;i<n;i++) {
|
||||||
|
checkboxes[i].checked = source.checked;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body></html>
|
</body></html>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user