Changeset 3072

Show
Ignore:
Timestamp:
08/06/08 00:25:08 (4 months ago)
Author:
steevanb
Message:

Petit avancement du module sqldesigner

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/project/modules/devel/devtools/sqldesigner/templates/default.tpl

    r3032 r3072  
    1919</style> 
    2020 
    21  
    22     <div id="area"></div> 
    23     <div id="bar"> 
    24         <div class="shadow-left"></div> 
    25         <div class="shadow-corner"></div> 
    26         <div class="shadow-bottom"></div> 
    27          
    28         <input type="button" id="saveload" /> 
    29  
    30         <hr/> 
    31  
    32         <input type="button" id="addtable" /> 
    33         <input type="button" id="edittable" /> 
    34         <input type="button" id="tablekeys" /> 
    35         <input type="button" id="removetable" /> 
    36         <input type="button" id="aligntables" /> 
    37         <input type="button" id="cleartables" /> 
    38          
    39         <hr/> 
    40          
    41         <input type="button" id="addrow" /> 
    42         <input type="button" id="editrow" /> 
    43         <input type="button" id="uprow" class="small" /><input type="button" id="downrow" class="small"/> 
    44         <input type="button" id="foreigncreate" /> 
    45         <input type="button" id="removerow" /> 
    46          
    47         <hr/> 
    48          
    49         <input type="button" id="options" /> 
    50         <a href="doc/" target="_blank"><input type="button" id="docs" value="" /></a> 
    51     </div> 
    52      
    53     <div id="minimap"></div> 
    54      
    55     <div id="background"></div> 
    56      
    57     <div id="window"> 
    58         <div id="windowtitle"><img id="throbber" src="images/throbber.gif" alt="" title=""/></div> 
    59         <div id="windowcontent"></div> 
    60         <input type="button" id="windowok" /> 
    61         <input type="button" id="windowcancel" /> 
    62     </div> 
    63      
    64     <div id="opts"> 
     21<div id="area"></div> 
     22<div id="bar"> 
     23    <div class="shadow-left"></div> 
     24    <div class="shadow-corner"></div> 
     25    <div class="shadow-bottom"></div> 
     26     
     27    <input type="button" id="saveload" /> 
     28 
     29    <hr/> 
     30 
     31    <input type="button" id="addtable" /> 
     32    <input type="button" id="edittable" /> 
     33    <input type="button" id="tablekeys" /> 
     34    <input type="button" id="removetable" /> 
     35    <input type="button" id="aligntables" /> 
     36    <input type="button" id="cleartables" /> 
     37     
     38    <hr/> 
     39     
     40    <input type="button" id="addrow" /> 
     41    <input type="button" id="editrow" /> 
     42    <input type="button" id="uprow" class="small" /><input type="button" id="downrow" class="small"/> 
     43    <input type="button" id="foreigncreate" /> 
     44    <input type="button" id="removerow" /> 
     45     
     46    <hr/> 
     47     
     48    <input type="button" id="options" /> 
     49    <a href="doc/" target="_blank"><input type="button" id="docs" value="" /></a> 
     50</div> 
     51 
     52<div id="minimap"></div> 
     53 
     54<div id="background"></div> 
     55 
     56<div id="window"> 
     57    <div id="windowtitle"><img id="throbber" src="images/throbber.gif" alt="" title=""/></div> 
     58    <div id="windowcontent"></div> 
     59    <input type="button" id="windowok" /> 
     60    <input type="button" id="windowcancel" /> 
     61</div> 
     62 
     63<div id="opts"> 
     64    <table> 
     65        <tbody> 
     66            <tr> 
     67                <td> 
     68                    * <label id="language" for="optionlocale"></label> 
     69                </td> 
     70                <td> 
     71                    <select id="optionlocale"></select> 
     72                </td> 
     73            </tr> 
     74            <tr> 
     75                <td> 
     76                    * <label id="db" for="optiondb"></label>  
     77                </td> 
     78                <td> 
     79                    <select id="optiondb"></select> 
     80                </td> 
     81            </tr> 
     82            <tr> 
     83                <td> 
     84                    <label id="snap" for="optionsnap"></label>  
     85                </td> 
     86                <td> 
     87                    <input type="text" size="4" id="optionsnap" /> 
     88                    <span class="small" id="optionsnapnotice"></span> 
     89                </td> 
     90            </tr> 
     91            <tr> 
     92                <td> 
     93                    <label id="pattern" for="optionpattern"></label>  
     94                </td> 
     95                <td> 
     96                    <input type="text" size="6" id="optionpattern" /> 
     97                    <span class="small" id="optionpatternnotice"></span> 
     98                </td> 
     99            </tr> 
     100            <tr> 
     101                <td> 
     102                    <label id="hide" for="optionhide"></label>  
     103                </td> 
     104                <td> 
     105                    <input type="checkbox" id="optionhide" /> 
     106                </td> 
     107            </tr> 
     108            <tr> 
     109                <td> 
     110                    * <label id="vector" for="optionvector"></label>  
     111                </td> 
     112                <td> 
     113                    <input type="checkbox" id="optionvector" /> 
     114                </td> 
     115            </tr> 
     116        </tbody> 
     117    </table> 
     118 
     119    <hr /> 
     120 
     121    * <span class="small" id="optionsnotice"></span> 
     122</div> 
     123 
     124<div id="io"> 
     125    <table> 
     126        <tbody> 
     127            <tr> 
     128                <td> 
     129                    <fieldset> 
     130                        <legend id="client"></legend> 
     131                        <input type="button" id="clientsave" />  
     132                        <input type="button" id="clientload" /> 
     133                        <hr/> 
     134                        <input type="button" id="clientsql" /> 
     135                    </fieldset> 
     136                </td> 
     137                <td> 
     138                    <fieldset> 
     139                        <legend id="server"></legend> 
     140                        <label for="backend" id="backendlabel"></label> <select id="backend"></select> 
     141                        <hr/> 
     142                        <input type="button" id="serversave" />  
     143                        <input type="button" id="serverload" />  
     144                        <input type="button" id="serverlist" />  
     145                        <input type="button" id="serverimport" />  
     146                    </fieldset> 
     147                </td> 
     148            </tr> 
     149            <tr> 
     150                <td colspan="2"> 
     151                    <fieldset> 
     152                        <legend id="output"></legend> 
     153                        <textarea id="textarea"></textarea> 
     154                    </fieldset> 
     155                </td> 
     156            </tr> 
     157        </tbody> 
     158    </table> 
     159</div> 
     160 
     161<div id="keys"> 
     162    <fieldset> 
     163        <legend id="keyslistlabel"></legend>  
     164        <select id="keyslist"></select> 
     165        <input type="button" id="keyadd" /> 
     166        <input type="button" id="keyremove" /> 
     167    </fieldset> 
     168    <fieldset> 
     169        <legend id="keyedit"></legend> 
    65170        <table> 
    66171            <tbody> 
    67172                <tr> 
    68173                    <td> 
    69                         * <label id="language" for="optionlocale"></label> 
    70                     </td> 
    71                     <td> 
    72                         <select id="optionlocale"></select> 
     174                        <label for="keytype" id="keytypelabel"></label> 
     175                        <select id="keytype"></select> 
     176                    </td> 
     177                    <td></td> 
     178                    <td> 
     179                        <label for="keyname" id="keynamelabel"></label> 
     180                        <input type="text" id="keyname" size="10" /> 
    73181                    </td> 
    74182                </tr> 
    75183                <tr> 
    76                     <td> 
    77                         * <label id="db" for="optiondb"></label>  
    78                     </td> 
    79                     <td> 
    80                         <select id="optiondb"></select> 
    81                     </td> 
     184                    <td colspan="3"><hr/></td> 
    82185                </tr> 
    83186                <tr> 
    84187                    <td> 
    85                         <label id="snap" for="optionsnap"></label>  
    86                     </td> 
    87                     <td> 
    88                         <input type="text" size="4" id="optionsnap" /> 
    89                         <span class="small" id="optionsnapnotice"></span> 
    90                     </td> 
    91                 </tr> 
    92                 <tr> 
    93                     <td> 
    94                         <label id="pattern" for="optionpattern"></label>  
    95                     </td> 
    96                     <td> 
    97                         <input type="text" size="6" id="optionpattern" /> 
    98                         <span class="small" id="optionpatternnotice"></span> 
    99                     </td> 
    100                 </tr> 
    101                 <tr> 
    102                     <td> 
    103                         <label id="hide" for="optionhide"></label>  
    104                     </td> 
    105                     <td> 
    106                         <input type="checkbox" id="optionhide" /> 
    107                     </td> 
    108                 </tr> 
    109                 <tr> 
    110                     <td> 
    111                         * <label id="vector" for="optionvector"></label>  
    112                     </td> 
    113                     <td> 
    114                         <input type="checkbox" id="optionvector" /> 
     188                        <label for="keyfields" id="keyfieldslabel"></label><br/> 
     189                        <select id="keyfields" size="5" multiple="multiple"></select> 
     190                    </td> 
     191                    <td> 
     192                        <input type="button" id="keyleft" value="&lt;&lt;" /><br/> 
     193                        <input type="button" id="keyright" value="&gt;&gt;" /><br/> 
     194                    </td> 
     195                    <td> 
     196                        <label for="keyavail" id="keyavaillabel"></label><br/> 
     197                        <select id="keyavail" size="5" multiple="multiple"></select> 
    115198                    </td> 
    116199                </tr> 
    117200            </tbody> 
    118201        </table> 
    119  
    120         <hr /> 
    121  
    122         * <span class="small" id="optionsnotice"></span> 
    123     </div> 
    124      
    125     <div id="io"> 
    126         <table> 
    127             <tbody> 
    128                 <tr> 
    129                     <td> 
    130                         <fieldset> 
    131                             <legend id="client"></legend> 
    132                             <input type="button" id="clientsave" />  
    133                             <input type="button" id="clientload" /> 
    134                             <hr/> 
    135                             <input type="button" id="clientsql" /> 
    136                         </fieldset> 
    137                     </td> 
    138                     <td> 
    139                         <fieldset> 
    140                             <legend id="server"></legend> 
    141                             <label for="backend" id="backendlabel"></label> <select id="backend"></select> 
    142                             <hr/> 
    143                             <input type="button" id="serversave" />  
    144                             <input type="button" id="serverload" />  
    145                             <input type="button" id="serverlist" />  
    146                             <input type="button" id="serverimport" />  
    147                         </fieldset> 
    148                     </td> 
    149                 </tr> 
    150                 <tr> 
    151                     <td colspan="2"> 
    152                         <fieldset> 
    153                             <legend id="output"></legend> 
    154                             <textarea id="textarea"></textarea> 
    155                         </fieldset> 
    156                     </td> 
    157                 </tr> 
    158             </tbody> 
    159         </table> 
    160     </div> 
    161      
    162     <div id="keys"> 
    163         <fieldset> 
    164             <legend id="keyslistlabel"></legend>  
    165             <select id="keyslist"></select> 
    166             <input type="button" id="keyadd" /> 
    167             <input type="button" id="keyremove" /> 
    168         </fieldset> 
    169         <fieldset> 
    170             <legend id="keyedit"></legend> 
    171             <table> 
    172                 <tbody> 
    173                     <tr> 
    174                         <td> 
    175                             <label for="keytype" id="keytypelabel"></label> 
    176                             <select id="keytype"></select> 
    177                         </td> 
    178                         <td></td> 
    179                         <td> 
    180                             <label for="keyname" id="keynamelabel"></label> 
    181                             <input type="text" id="keyname" size="10" /> 
    182                         </td> 
    183                     </tr> 
    184                     <tr> 
    185                         <td colspan="3"><hr/></td> 
    186                     </tr> 
    187                     <tr> 
    188                         <td> 
    189                             <label for="keyfields" id="keyfieldslabel"></label><br/> 
    190                             <select id="keyfields" size="5" multiple="multiple"></select> 
    191                         </td> 
    192                         <td> 
    193                             <input type="button" id="keyleft" value="&lt;&lt;" /><br/> 
    194                             <input type="button" id="keyright" value="&gt;&gt;" /><br/> 
    195                         </td> 
    196                         <td> 
    197                             <label for="keyavail" id="keyavaillabel"></label><br/> 
    198                             <select id="keyavail" size="5" multiple="multiple"></select> 
    199                         </td> 
    200                     </tr> 
    201                 </tbody> 
    202             </table> 
    203         </fieldset> 
    204     </div> 
    205      
    206     <div id="table"> 
    207         <table> 
    208             <tbody> 
    209                 <tr> 
    210                     <td> 
    211                         <label id="tablenamelabel" for="tablename"></label> 
    212                     </td> 
    213                     <td> 
    214                         <input id="tablename" type="text" /> 
    215                     </td> 
    216                 </tr> 
    217                 <tr> 
    218                     <td> 
    219                         <label id="tablecommentlabel" for="tablecomment"></label>  
    220                     </td> 
    221                     <td> 
    222                         <textarea rows="5" cols="40" id="tablecomment"></textarea> 
    223                     </td> 
    224                 </tr> 
    225             </tbody> 
    226         </table> 
    227     </div> 
    228      
    229     <script type="text/javascript"> 
    230         //var d = new SQL.Designer(); 
    231     </script> 
     202    </fieldset> 
     203</div> 
     204 
     205<div id="table"> 
     206    <table> 
     207        <tbody> 
     208            <tr> 
     209                <td> 
     210                    <label id="tablenamelabel" for="tablename"></label> 
     211                </td> 
     212                <td> 
     213                    <input id="tablename" type="text" /> 
     214                </td> 
     215            </tr> 
     216            <tr> 
     217                <td> 
     218                    <label id="tablecommentlabel" for="tablecomment"></label>  
     219                </td> 
     220                <td> 
     221                    <textarea rows="5" cols="40" id="tablecomment"></textarea> 
     222                </td> 
     223            </tr> 
     224        </tbody> 
     225    </table> 
     226</div> 
  • trunk/project/modules/devel/devtools/sqldesigner/www/js/config.js

    r3032 r3072  
    44 
    55    AVAILABLE_LOCALES:["en","fr","de","cs"], 
    6     DEFAULT_LOCALE:"en", 
     6    DEFAULT_LOCALE:"fr", 
    77     
    88    AVAILABLE_BACKENDS:["php-mysql","php-blank","php-file"], 
  • trunk/project/modules/devel/devtools/sqldesigner/www/js/wwwsqldesigner.js

    r3071 r3072  
    19181918    this.requestLanguage(); 
    19191919    this.requestDB(); 
    1920      
    19211920    this.vector = this.getOption("vector") && (OZ.gecko || OZ.opera || OZ.safari || OZ.ie); 
    19221921    if (this.vector) { 
     
    19311930        this.dom.content.appendChild(this.dom.svg); 
    19321931    } 
     1932     
    19331933} 
    19341934 
     
    19481948        } 
    19491949    } 
     1950     
    19501951    this.flag--; 
    19511952    if (!this.flag) { this.init2(); }