function automount_popup() { $uuid = $_GET["automount-popup"]; $usb = new usb($uuid); $autfs = new autofs($uuid); $list = automount_list($uuid); $html = "<H1>{automount} {$usb->LABEL}</H1>\n\t<p class=caption>{automount_explain_text}</p>\n\t<div id='autofs_div'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>" . automount_status() . "</td>\n\t\t<td valign='top'>\n\t\t\t\n\t\t<table style='width:100%' class=table_form>\n\t\t<tr>\n\t\t\t<td class=legend>{auto_folder}:</td>\n\t\t\t<td valign='top'>" . Field_text('autofolder', "") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=2 align='right'><hr><input type='button' OnClick=\"javascript:AddAutoFS();\" value='{add} »'></td>\n\t\t</tr>\n\t\t</table>\n\t</td>\n\t</tr>\n\t</table>\n\t<br>\n\t<H3>ID: {$usb->uuid}</H3>\n\t" . RoundedLightWhite("<div style='width:100%;height:200px;overflow:auto'>{$list}</div>") . "\n\t</div>\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
exit; } if (isset($_GET["automount-popup"])) { automount_popup(); exit; } if (isset($_GET["automount-add"])) { automount_add(); exit; } if (isset($_GET["automount-del"])) { automount_del(); exit; } if (isset($_GET["automount-table"])) { automount_list(); exit; } if (isset($_GET["automount-list"])) { automount_table_list(); exit; } main_page(); function change_label_js() { $page = CurrentPageName(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body('{change_label}'); $html = "\n\t\nfunction LoadMainLabel(){\n\tYahooWin6('320','{$page}?change-label-popup={$_GET["uuid"]}','{$title} {$_GET["uuid"]}');\n\t}\t\n\t\nvar x_ChangeUsbLabelEdit=function (obj) {\n\tvar results=obj.responseText;\n\tif (results.length>0){\n\t\talert(results);\n\t\t\n\t}\n\tLoadMainLabel();\n\tif(document.getElementById('usblistbrowse')){\n\t\tLoadAjax('usblistbrowse','usb.browse.php?usblist=yes');\n\t}\t\n\tif(document.getElementById('NewusbForm2009')){\n\t\tLoadjs('usb.index.php?uuid-infos={$_GET["uuid"]}');\n\t}\t\t\n}\n\t\n\nfunction ChangeUsbLabelEdit(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('change-label-perform','{$_GET["uuid"]}');\n\t\tXHR.appendData('uuid',document.getElementById('uusb_label').value);\n\t\tdocument.getElementById('change_label_popup').innerHTML='<center style=\"width:100%\"><img src=img/wait_verybig.gif></center>';\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_ChangeUsbLabelEdit);\n\t}\n\n\tLoadMainLabel();\n\t\n"; echo $html; }
//umount=yes&uuid=$UUID if(isset($_GET["umount"])){umount_js();exit;} if(isset($_GET["umount-index-popup"])){umount_popup();exit;} if(isset($_GET["umount-mounted"])){umount_mounted();exit;} //mount=yes&uuid=$UUID&mounted=$path&type=$TYPE if(isset($_GET["mount"])){mount_js();exit;} if(isset($_GET["mount-index-popup"])){mount_popup();exit;} if(isset($_GET["mount-mounted"])){mount_mounted();exit;} if(isset($_GET["automount-js"])){automount_js();exit;} if(isset($_GET["automount-popup"])){automount_popup();exit;} if(isset($_GET["automount-add"])){automount_add();exit;} if(isset($_GET["automount-del"])){automount_del();exit;} if(isset($_GET["automount-table"])){automount_list();exit;} if(isset($_GET["automount-list"])){automount_table_list();exit;} main_page(); function change_label_js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body('{change_label}'); $html="