Changeset 224

Show
Ignore:
Timestamp:
03/21/07 16:23:05 (2 years ago)
Author:
ludo
Message:

new file selection dialog (from r4133)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/webmin/backuppc/backuppc.js

    r164 r224  
    88   return true; 
    99} 
     10 
     11function addShare(sel, dest) 
     12{ 
     13    var toadd = sel.value; 
     14    if (toadd == "") return; 
     15    // already added ? 
     16    found = false; 
     17    for (n=0; n < dest.length; n++) { 
     18        if (dest.options[n].value == toadd) found = true; 
     19    } 
     20    if (found == false) { 
     21        dest.options[dest.length] = new Option(toadd, toadd); 
     22        dest.form.newshare.value = toadd; 
     23    } 
     24} 
     25 
     26function delShare(dest) 
     27{ 
     28    dest.remove(dest.selectedIndex); 
     29} 
     30 
     31function selectAllShares(dest) 
     32{ 
     33    sel = ""; 
     34    for (n=0; n < dest.length; n++) { 
     35        sel = sel + dest.options[n].value + "|"; 
     36    } 
     37    dest.form.selshares.value = sel; 
     38} 
  • trunk/webmin/backuppc/choix.cgi

    r164 r224  
    5757 
    5858  if (isset($_REQUEST['username']) && isset($_REQUEST['passwd'])) { // needed for smbclient 
    59     //$username = $_REQUEST['username']; 
     59    $username = $_REQUEST['username']; 
    6060    //$get_data = $get_data . "&username=$username"; 
    61     //$passwd = $_REQUEST['passwd']; 
     61    $passwd = $_REQUEST['passwd']; 
    6262    //$get_data = $get_data . "&passwd=$passwd";  
    6363  } 
     
    8787    } 
    8888  } 
    89  // add shares to $_REQUEST array   
    90   $get_data = $get_data . "&shares=";  
    91   for ($i=0; $i<count($shares); $i++)  
    92     if ($shares[$i] != "") 
    93       $get_data = $get_data . $shares[$i] . "|"; 
     89// add shares to $_REQUEST array   
     90//  $get_data = $get_data . "&shares=";  
     91//  for ($i=0; $i<count($shares); $i++)  
     92//    if ($shares[$i] != "") 
     93//      $get_data = $get_data . $shares[$i] . "|"; 
    9494 
    9595  if ( isset($_REQUEST['add']) && $_REQUEST['add'] != "") { // rsync - eventually add another folder 
     
    143143    $t->set_block("choix", "added_share_row","added_share_rows");   
    144144    foreach ($shares as $share) { 
    145       if (!in_array($share, $shares_all)) { 
    146145        $t->set_var("SHARE", $share); 
    147146        $t->parse("added_share_rows", "added_share_row", true); 
    148147        $i++; 
    149       } 
    150148    } 
    151149    $t->set_var("SHARE_SIZE", $i); 
    152150 
    153     # output everything 
    154          
     151    # translations 
     152    foreach (array("AVAIL_SHARES", "SELECTED_SHARES", "ADD", "SUBMIT") as $txt) { 
     153        $t->set_var("TEXT_$txt", $text[strtolower("lab_$txt")]); 
     154    } 
     155 
     156    # output everything         
    155157    echo perl_exec("lbs_header.cgi", array("backuppc host_configuration", $text{'tit_conf'}, "index")); 
    156158    $t->pparse("out", "choix"); 
     
    162164LIB_init_config(); 
    163165 
    164 $lbs = isLBS(); 
    165  
    166166$t = tmplInit( array( "choix" => "choix.tpl" ) ); 
    167167 
  • trunk/webmin/backuppc/debian/changelog

    r164 r224  
    1 webmin-backuppc (0.9.0) stable; urgency=low 
     1webmin-backuppc (0.9.1) stable; urgency=low 
    22 
    33  * See SVN history. 
  • trunk/webmin/backuppc/host_config.cgi

    r164 r224  
    100100      $get_data = $get_data . "&xfermethod=$xfermethod"; 
    101101    } 
    102     if (isset($_GET['username']) && isset($_GET['passwd'])) { // needed by smbclient in choix.php 
    103       $username = $_GET['username']; 
    104       $passwd = $_GET['passwd']; 
    105     } 
    106     if (isset($_GET['shares'])) { // got share from rsync or from multiple changes 
    107       $shares = explode("|", $_GET['shares']); 
     102    if (isset($_REQUEST['username']) && isset($_REQUEST['passwd'])) { // needed by smbclient in choix.php 
     103      $username = $_REQUEST['username']; 
     104      $passwd = $_REQUEST['passwd']; 
     105    } 
     106    if (isset($_REQUEST['selshares'])) { // got share from rsync or from multiple changes 
     107      $shares = split("\|", $_REQUEST['selshares']); 
    108108      if ($shares[count($shares) - 1] == "") 
    109109        array_splice($shares, count($shares) - 1, 1); 
    110 //      $get_data = $get_data . "&shares=" . $_GET['shares']; 
    111110    }  
    112111  } 
  • trunk/webmin/backuppc/lang/en

    r24 r224  
    1 author=<A HREF="http://www.freealter.com"><b>Free&Alter Soft</b></A> 
    2  
    3 tit_index=LRS Admin 
    4 tit_bmenu=Boot menu 
    5 tit_conf=Backup Configuration 
    6 tit_hwinfo=Hardware Config 
    7 tit_restorechoose=Image data to be restored  
    8 tit_delete=Delete 
    9 tit_desc=Description Edition 
    10 tit_title=Title edition 
    11 tit_move=Images 
    12 tit_imgbase=Base images 
    13 tit_dhcp=DHCP 
    14 tit_error=Error 
    15 tit_name=Name edition 
    16 tit_renamemac=Change MAC address 
    17 tit_tc=Traffic shaping 
    18 tit_details=Details 
    19 tit_showlogs=Backup Logs 
    20  
    21 lnk_imgbase=Base images 
    22 lnk_dhcp=DHCP form 
    23 lnk_index=Clients overview 
    24 lnk_tc=Traffic shaping 
    25  
    26 but_apply=Apply 
    27 but_cancel=Cancel 
    28 but_return=Return 
    29 but_rm_machine=Remove this client 
    30 but_rename=Rename 
    31 but_renamemac=Change MAC address 
    32 but_images=Images... 
    33 but_imgbase=Base images details 
    34  
    35  
    36 lab_adminid=Admin ID 
    37 lab_backup=Files 
    38 lab_baseimg=Base image 
    39 lab_burn=Burn 
    40 lab_datarestored=Data restored 
    41 lab_defchoice=Default choice 
    42 lab_desc=Description 
    43 lab_details=Details 
    44 lab_dir=Directory 
    45 lab_display=Display 
    46 lab_name=Name 
    47 lab_hwinfo=Info 
    48 lab_imglink=Link to an image 
    49 lab_ipaddr=IP address 
    50 lab_group=Group 
    51 lab_macaddr=MAC address 
    52 lab_menu=Menu 
    53 lab_rm=Remove 
    54 lab_title=Title 
    55 lab_tobase=To Base 
    56 lab_tolocal=To Local 
    57 lab_tomenu=To Menu 
    58 lab_usedby=Used by 
    59 lab_none=(none) 
    60 lab_notitle=(no title) 
    61 lab_nodesc=(no description) 
    62 lab_result=Result 
    63 lab_number=Images 
    64 lab_size=Size (MB) 
    65 lab_option=Option 
    66 lab_value=Value 
    67 lab_hidden=Hidden menu 
    68 lab_space=Disk space 
    69 lab_disk=Disk 
    70 lab_used=Used 
    71 lab_free=Free 
    72 lab_mount=Mount point 
    73 lab_woltasks=WOL tasks 
    74 lab_nosecurity=GRUB command line access 
    75 lab_tc_status=Detailed status of traffic shaping: 
    76 lab_ordynamic=<small>(or 'Dynamic' if the address is dynamically assigned)</small> 
    77 lab_newmac=New MAC address 
    78  
    79 tab_index=Registered hosts 
    80 tab_imgbase=Base images 
    81 tab_move_bootmenu=Boot menu 
    82 tab_move_local=Local images for this client 
    83 tab_move_base=Base images 
    84 tab_hwinfo_main=MAIN 
    85 tab_hwinfo_pci=PCI Devices 
    86 tab_hwinfo_disks=DISKS 
    87  
    88 msg_bootmenu_writeok=Host <b>$1</b> ($2):  boot menu successfully generated. 
    89 msg_delete_ok=Host <b>$1</b> ($2) successfully removed. 
    90 msg_delete_confirm=Remove host <b>$1</b> ($2) ? 
    91 msg_delete_warn=WARNING: All information about this host will be deleted, including backups ! 
    92 msg_delimg_confirm=Remove image <b>$1</b> ? 
    93 msg_delimg_warn=WARNING: All data about this image will be deleted! 
    94 msg_delimg_symlink=This image is just a link to one another. Only this link will be deleted. 
    95 msg_dhcp_formdesc=Register new host entry in dhcpd.conf 
    96 msg_dhcp_addofentry=Add of entry 
    97 msg_dhcp_nolic=Sorry, you cannot add more clients. License exhausted. 
    98 msg_imgbase_delconfirm=Remove image <b>$1</b> ? 
    99 msg_imgbase_delwarn=WARNING: All data about this image will be deleted! 
    100 msg_index_empty=No registered host. 
    101 msg_conf_partcopy=Partition $1, disk $2 ($3) 
    102 msg_conf_ptabs=Disk $1 partition table 
    103 msg_save_error=Backup error detected 
    104 msg_save_noerror=Backup clean 
    105 msg_save_log=See the full backup log 
    106  
    107 acl_modify=User can modify configuration 
    108 acl_yes=Yes 
    109 acl_no=No 
    110 acl_error=You have access to the system time module, but you can't edit neither system time or hardware time 
    111 acl_nomod=You are not allowed to modify the configuration 
    112  
    113 err_cnf=Error : $1 command not found 
    114 err_dnf='$1': Directory not found 
    115 err_fnf='$1': File not found 
    116 err_bootmenu_mustdef=Invalid menu. You must select a default menu item. 
    117 err_bootmenu_atleastone=Invalid menu. You must select at least one boot menu item. 
    118 err_bootmenu_baddef=Default boot menu '$1' is not valid, because it is not part of the selected boot menu items. 
    119 err_invalcgi_badop=Invalid CGI request. Operation not registered. 
    120 err_invalcgi_noimg=Invalid CGI request. No image argument. 
    121 err_invalcgi_nomac=Invalid CGI request. No mac argument. 
    122 err_invalcgi_nomenu=Invalid CGI request. No menu argument. 
    123 err_invalcgi_toofewargs=Invalid CGI request. Too few arguments. 
    124 err_mac_inval='$1': Invalid MAC address 
    125 err_mac_mandat=The MAC address is mandatory. 
    126 err_mac_used=MAC address already declared 
    127 err_name_mandat=The name is mandatory. 
    128 err_name_inval='$1': Invalid name. 
    129 err_name_usedby=Name '$1' is already used by host '$2'. 
    130 err_adminid_mandat=The admin ID is mandatory. 
    131 err_ip_inval='$1': Invalid IP address. 
    132 err_hwinfo_noini=Hardware configuration for host '$1' was not found. 
    133 err_imgbase_usedby='$1': This image can't be removed, because it is currently used by host(s):<br> $2 . 
    134 err_confnf=LRS configurtion file <b>$1</b> not found. Please check path in module configuration. 
    135 err_paramnf=Parameter <tt>$1</tt> not found in file <b>$2</b> . 
    136 err_basedirnf=LRS root directory <b>$1</b> not found. You should check <tt>basedir</tt> located into <tt>lbs.conf</tt> . 
    137 err_cantlink=Unable to link <tt>$1</tt> with <tt>$2</tt> . 
    138 err_gcr_not_running=The 'getClientResponse' daemon is not running. You probably have a license problem. Check that your licences are correct and then restart the lbs service by clicking <a href="restart.cgi">here</a>. 
    139  
    1401backup_empty_share=List of the share folders of this machine is empty.<BR>Check the user name and password. 
    1412backup_reg=This machine is not backuped. Add this client to BackupPC's hosts file? 
    142  
    143 smb_name=Windows (smb) 
    144 tar_name=Unix (NFS) 
    145 tarssh_name=Tar SSH 
    146 rsync_name=Distant backup (rsync) 
    147 rsyncd_name=Distant backup daemon (rsyncd) 
    148  
     3err_basedirnf=LRS root directory <b>$1</b> not found. You should check <tt>basedir</tt> located into <tt>lbs.conf</tt> . 
     4err_paramnf=Parameter <tt>$1</tt> not found in file <b>$2</b> . 
    1495gen_conf_title=General configuration 
     6lab_add=Add 
     7lab_avail_shares=Available shares 
     8lab_backup=Files 
     9lab_selected_shares=Selected shares 
     10lab_submit=Submit 
     11tit_conf=Backup Configuration 
     12tit_error=Error 
  • trunk/webmin/backuppc/lang/fr

    r164 r224  
    1 author=<A HREF="http://www.freealter.com/"><b>Free&Alter Soft</b></A> 
    2  
    3 tit_index=LRS Admin 
    4 tit_bmenu=Menu de démarrage 
    5 tit_conf=Configuration Sauvegarde 
    6 tit_delete=Effacement 
    7 tit_desc=Edition de description 
    8 tit_dhcp=DHCP 
    9 tit_error=Erreur 
    10 tit_hwinfo=Config matérielle 
    11 tit_imgbase=Images de base 
    12 tit_move=Images 
    13 tit_name=Edition du nom 
    14 tit_renamemac=Changement adresse MAC 
    15 tit_restorechoose=Choix des données à restaurer 
    16 tit_tc=Limitation de bande passante 
    17 tit_title=Edition de titre 
    18 tit_details=Détails 
    19 tit_showlogs=Logs de la sauvegarde 
    20  
    21 lnk_imgbase=Images de base 
    22 lnk_dhcp=Formulaire DHCP 
    23 lnk_index=Liste des clients 
    24 lnk_tc=Bande passante 
    25  
    26 but_apply=Appliquer 
    27 but_cancel=Annuler 
    28 but_return=Retour 
    29 but_rm_machine=Effacer cette machine 
    30 but_images=Images... 
    31 but_rename=Renommer 
    32 but_renamemac=Changement @ MAC 
    33 but_imgbase=Details Images de Base 
    34  
    35 lab_adminid=Admin ID 
    36 lab_baseimg=Image de base 
    37 lab_backup=Fichiers 
    38 lab_burn=Graver 
    39 lab_datarestored=Données restaurées 
    40 lab_defchoice=Choix par défaut 
    41 lab_desc=Description 
    42 lab_details=Détails 
    43 lab_dir=Répertoire 
    44 lab_display=Affichage 
    45 lab_name=Nom 
    46 lab_group=Groupe 
    47 lab_hwinfo=Info 
    48 lab_imglink=Lien vers une image 
    49 lab_ipaddr=Adresse IP 
    50 lab_macaddr=Adresse MAC 
    51 lab_menu=Menu 
    52 lab_rm=Effacer 
    53 lab_title=Titre 
    54 lab_tobase=Vers Base 
    55 lab_tolocal=Vers Local 
    56 lab_tomenu=Vers Menu 
    57 lab_usedby=Utilisée par 
    58 lab_none=(néant) 
    59 lab_notitle=(sans titre) 
    60 lab_nodesc=(sans description) 
    61 lab_result=Résultat 
    62 lab_number=Images 
    63 lab_size=Taille (Mo) 
    64 lab_option=Option 
    65 lab_value=Valeur 
    66 lab_hidden=Menu caché 
    67 lab_space=Espace disque 
    68 lab_disk=Disque 
    69 lab_used=Util. 
    70 lab_free=Libre 
    71 lab_mount=Monté sur 
    72 lab_woltasks=Tâches WOL 
    73 lab_nosecurity=Accès ligne de command GRUB 
    74 lab_tc_status=Etat détaillé de la limitation de BP: 
    75 lab_ordynamic=<small>(ou 'Dynamic' si l'adresse est assignée dynamiquement)</small> 
    76 lab_newmac=Nouvelle adresse MAC 
    77  
    78 tab_index=Clients enregistrés 
    79 tab_imgbase=Images de base 
    80 tab_move_bootmenu=Menu de démarrage 
    81 tab_move_local=Images locales de cette machine 
    82 tab_move_base=Images de base 
    83 tab_hwinfo_main=GENERAL 
    84 tab_hwinfo_pci=Périphériques PCI 
    85 tab_hwinfo_disks=Disques 
    86  
    87 msg_bootmenu_writeok=Génération du menu de démarrage de <b>$1</b> ($2) effectuée avec succès. 
    88 msg_delete_ok=Effacement de la machine <b>$1</b> ($2) effectué avec succès. 
    89 msg_delete_confirm=Effacer la machine <b>$1</b> ($2) ? 
    90 msg_delete_warn=ATTENTION: cela effacera toutes les données concernant cette machine. Y compris ses sauvegardes! 
    91 msg_delimg_confirm=Effacer l'image <b>$1</b> ? 
    92 msg_delimg_warn=ATTENTION: cela effacera toutes les données concernant cette image! 
    93 msg_delimg_symlink=Cette image est juste un lien vers une autre image. Seul le lien lui-même sera effacé. 
    94 msg_dhcp_formdesc=Ajout d'une nouvelle entrée dans dhcpd.conf 
    95 msg_dhcp_addofentry=Ajout de l'entrée 
    96 msg_dhcp_nolic=Désolé, vous ne pouvez plus ajouter d'autres clients. Pas assez de licences. 
    97 msg_imgbase_delconfirm=Effacer l'image <b>$1</b> ? 
    98 msg_imgbase_delwarn=ATTENTION: Cela effacera toutes les données concernant cette image ! 
    99 msg_index_empty=Aucune machine enregistrée 
    100 msg_conf_partcopy=Partition $1, disque $2 ($3) 
    101 msg_conf_ptabs=Table de partitions du disque $1 
    102 msg_save_error=Erreur de sauvegarde détectée 
    103 msg_save_noerror=Sauvegarde correcte 
    104 msg_save_log=Voir le log complet de sauvegarde 
    105  
    106 acl_modify=L'usager peut modifier la configuration 
    107 acl_yes=Oui 
    108 acl_no=Non 
    109 acl_error=Vous avez accès à ce module, mais vous n'êtes pas autorisé à effectuer de modifications 
    110 acl_nomod=Vous n'etes pas autorisé à modifier la configuration 
    111  
    112 err_cnf='$1': Commande introuvable 
    113 err_dnf='$1': Répertoire introuvable 
    114 err_fnf='$1': Fichier introuvable 
    115 err_bootmenu_mustdef=Menu invalide. Vous devez choisir un menu de boot par defaut. 
    116 err_bootmenu_atleastone=Menu invalide. Vous devez choisir au moins 1 menu de démarrage. 
    117 err_bootmenu_baddef=Le menu de boot par defaut '$1' est invalide, car il ne fait pas partie de la liste des menus de démarrage sélectionnés. 
    118 err_invalcgi_badop=Requete CGI invalide. Opération non reconnue. 
    119 err_invalcgi_noimg=Requete CGI invalide. Absence d'image. 
    120 err_invalcgi_nomac=Requete CGI invalide. Absence d'adresse mac. 
    121 err_invalcgi_nomenu=Requete CGI invalide. Absence de menu. 
    122 err_invalcgi_toofewargs=Requete CGI invalide. Pas assez d'arguments. 
    123 err_mac_inval='$1': Adresse MAC invalide. 
    124 err_mac_mandat=L'adresse MAC est obligatoire. 
    125 err_mac_used=Adresse MAC déjà déclarée 
    126 err_name_mandat=Le nom est obligatoire. 
    127 err_name_inval='$1': Format de nom invalide. 
    128 err_name_usedby=Le nom '$1' est déjà utilisé par la machine '$2'. 
    129 err_adminid_mandat=Le mot de passe d'identification est obligatoire. 
    130 err_ip_inval='$1': Adresse IP invalide. 
    131 err_hwinfo_noini=Configuration matérielle pour '$1' introuvable. 
    132 err_imgbase_usedby='$1': Cette image ne pas etre effacée, car elle est actuellement utilisée par les machines:<br> $2 . 
    133 err_confnf=Fichier de configuration LRS <b>$1</b> introuvable. Veuillez vérifier son chemin dans la configuration du module. 
    134 err_paramnf=Paramètre <tt>$1</tt> introuvable dans <b>$2</b> . 
    135 err_basedirnf=Le répertoire racine LRS <b>$1</b> est inaccessible. Veuillez vérifier le paramètre <tt>basedir</tt> dans le fichier <tt>lbs.conf</tt> . 
    136 err_cantlink=Impossible détablir un lien <tt>$1</tt> avec <tt>$2</tt> . 
    137 err_gcr_not_running=The 'getClientResponse' daemon is not running. You probably have a license problem. Check that your licences are correct and then restart the lbs service by clicking <a href="restart.cgi">here</a>. 
    138  
    1391backup_empty_share=La liste de dossiers partag&eacute;s de cette machine est vide.<BR>V&eacute;rifiez le nom d'utilisateur et le mot de passe. 
    1402backup_reg=Cette machine n'est pas sauvegardée. Ajouter cette machine au fichier '/etc/backuppc/hosts'? 
    141  
    142 smb_name=Windows (smb) 
    143 tar_name=Unix (NFS) 
    144 tarssh_name=Tar SSH 
    145 rsync_name=Sauvegarde distante (rsync) 
    146 rsyncd_name=Sauvegarde distante mode démon (rsyncd) 
    147  
     3err_basedirnf=Le répertoire racine LRS <b>$1</b> est inaccessible. Veuillez vérifier le paramètre <tt>basedir</tt> dans le fichier <tt>lbs.conf</tt> . 
     4err_paramnf=Paramètre <tt>$1</tt> introuvable dans <b>$2</b> . 
    1485gen_conf_title=Configuration générale 
     6lab_add=Ajouter 
     7lab_avail_shares=Partages disponibles 
     8lab_backup=Fichiers 
     9lab_selected_shares=Partages sauvegardés 
     10lab_submit=Valider 
     11tit_conf=Configuration Sauvegarde 
     12tit_error=Erreur 
  • trunk/webmin/backuppc/module.info

    r164 r224  
    44category=Webmin 
    55depends=0.94 lbs_common 
    6 version=0.9.0 
     6version=0.9.1 
  • trunk/webmin/backuppc/tmpl/en/choix.tpl

    r164 r224  
    1 <BR> 
     1<script type="text/javascript" language="JavaScript" src="backuppc.js"></script> 
     2<style media="screen" type="text/css"> 
     3.warning { border: 2px solid red;} 
     4.select { width: 250px; } 
     5.shareform { width: 500px; margin:0px auto; } 
     6.shareform td { border-style: none; } 
     7.shareform table { border-style: solid; 
     8border-width: 1px; 
     9padding: 10px; 
     10
     11</style> 
     12<div class="shareform"> 
     13 
     14<!-- BEGIN warning_row --> 
     15<p class="warning">{EMPTY_LIST}</p> 
     16<!-- END warning_row --> 
     17 
    218<FORM METHOD="post" ACTION="host_config.cgi{GET_DATA}"> 
    3   <INPUT TYPE="hidden" NAME="username" VALUE="{USERNAME}"> 
    4   <INPUT TYPE="hidden" NAME="passwd" VALUE="{PASSWD}"> 
    5   <INPUT TYPE="hidden" NAME="mac" VALUE="{MAC}"> 
    6   <INPUT TYPE="hidden" NAME="host" VALUE="{HOST}"> 
     19<INPUT TYPE="hidden" NAME="username" VALUE="{USERNAME}"> 
     20<INPUT TYPE="hidden" NAME="passwd" VALUE="{PASSWD}"> 
     21<INPUT TYPE="hidden" NAME="mac" VALUE="{MAC}"> 
     22<INPUT TYPE="hidden" NAME="host" VALUE="{HOST}"> 
     23<INPUT TYPE="hidden" NAME="selshares" VALUE=""> 
    724 
    8   <TABLE BORDER=1 CELLPADDING=5 ALIGN="center"> 
    9     <TR BGCOLOR="#e2e2e2"> 
    10       <TH ALIGN="left">Shared folders of {HOST}</TH> 
    11     </TR> 
    12     <TR ALIGN="center"> 
    13       <TD>Backup method: <B>{XFERMETHOD_NAME}</B></TD> 
    14     </TR> 
    15      
    16     <TR ALIGN="center" VALIGN="top"> 
    17       <TD> 
    18        
    19        
    20       <TABLE CELLPADDING="0" WIDTH="100%" class="noborder">   
    21         <!-- BEGIN warning_row --> 
    22         <TR> 
    23           <TD COLSPAN=3 ALIGN="center" class="noborder"> 
    24             <FONT COLOR="#FF0000">{EMPTY_LIST}</FONT> 
    25           </TD> 
    26         </TR> 
    27         <!-- END warning_row --> 
    28         <TR> 
    29           <TD ALIGN="LEFT" VALIGN="top" class="noborder">Shared folders:<BR><BR> 
    30             <INPUT TYPE="text" NAME="new_share"><BR> 
    31             <INPUT TYPE="button" VALUE="Add" onClick="window.location.href='choix.cgi{GET_DATA}&add='+new_share.value"> 
    32           </TD> 
    33           <TD COLSPAN="2" class="noborder"> 
    34           <!-- BEGIN found_share_row --> 
    35             <INPUT TYPE="checkbox" NAME="found_shares[]" {SHARE_CHECKED} VALUE="{SHARE}" onClick="window.location.href='choix.cgi{GET_DATA}&found_change='+this.checked+'&found_name='+this.value">{SHARE}<BR> 
    36           <!-- onChange --> 
    37           <!-- END found_share_row --> 
    38           </TD> 
    39         </TR> 
    40         <TR> 
    41           <TD ALIGN="RIGHT" VALIGN="top" class="noborder"> 
    42             <INPUT TYPE="button" VALUE="Delete" onClick="window.location.href='choix.cgi{GET_DATA}&delete='+added_shares.value"> 
    43           </TD> 
    44           <TD class="noborder"> 
    45             <SELECT NAME="added_shares" SIZE="{SHARE_SIZE}"> 
    46             <!-- BEGIN added_share_row --> 
    47               <OPTION VALUE="{SHARE}">{SHARE} 
    48             <!-- END added_share_row --> 
    49             </SELECT> 
    50           </TD> 
    51         </TR> 
    52  
    53       </TABLE>  
    54            
    55  
    56       </TD> 
    57     </TR> 
    58         <TR>         
    59           <TD ALIGN="center" VALIGN="bottom"> 
    60             <INPUT TYPE="submit" VALUE="Apply"> 
    61             <INPUT TYPE="button" VALUE="Cancel" onClick="window.location.href='host_config.cgi{GET_DATA_BREF}';"> 
    62           </TD> 
    63         </TR> 
    64   </TABLE> 
    65       </FORM> 
    66  
    67   <BR> 
    68 <BR> 
     25<table style="width: 100%;"> 
     26<tbody> 
     27<tr> 
     28<td style="width: 50%; text-align: center;">{TEXT_AVAIL_SHARES}:</td> 
     29<td style="width: 50%; text-align: center;">{TEXT_SELECTED_SHARES}:</td> 
     30</tr> 
     31<tr> 
     32<td> 
     33<select class="select" size="10" name="available" onClick="addShare(this.form.available, this.form.shares);"> 
     34<!-- BEGIN found_share_row --> 
     35<OPTION VALUE="{SHARE}">{SHARE}</OPTION> 
     36<!-- END found_share_row --> 
     37</select> 
     38</td> 
     39<td> 
     40<select class="select" size="10" name="shares" onChange="delShare(this.form.shares);" > 
     41<!-- BEGIN added_share_row --> 
     42<OPTION VALUE="{SHARE}">{SHARE}</OPTION> 
     43<!-- END added_share_row --> 
     44</select> 
     45</td> 
     46</tr> 
     47<tr> 
     48<td><input name="newshare" size="20"><input name="addshare" value="{TEXT_ADD}" type="button" onClick="addShare(this.form.newshare, this.form.shares);"></td> 
     49<td style="text-align: right"><input name="submit" value="{TEXT_SUBMIT}" type="submit" onClick="selectAllShares(this.form.shares);"></td> 
     50</tr> 
     51</tbody> 
     52</table> 
     53</form> 
     54</div>