mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
169 lines
7.3 KiB
XML
169 lines
7.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE overlay PUBLIC "-//Stylite AG//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
|
|
<!-- $Id$ -->
|
|
<overlay>
|
|
<template id="etemplate.db-tools.cols" template="" lang="" group="0" version="1.9.002">
|
|
<grid>
|
|
<columns>
|
|
<column/>
|
|
<column/>
|
|
<column width="80"/>
|
|
<column width="80"/>
|
|
<column/>
|
|
<column/>
|
|
<column width="30"/>
|
|
<column width="40"/>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
</columns>
|
|
<rows>
|
|
<row class="th">
|
|
<description align="center" value="#" no_lang="1"/>
|
|
<description value="ColumnName"/>
|
|
<description value="Type"/>
|
|
<description value="Meta-type"/>
|
|
<description value="Precision"/>
|
|
<description value="Scale"/>
|
|
<description align="center" value="NOT NULL"/>
|
|
<description align="center" value="Primary Key"/>
|
|
<description value="Unique"/>
|
|
<description value="Indexed"/>
|
|
<description value="Default"/>
|
|
<description value="Comment"/>
|
|
<description value="Indexoptions"/>
|
|
<description value="Foreign Key"/>
|
|
<button align="center" statustext="Add a new column (after the existing ones)" label="Add Column" id="add_column" image="new"/>
|
|
</row>
|
|
<row class="nmr">
|
|
<description align="center" id="Row${row}[n]" no_lang="1"/>
|
|
<textbox statustext="need to be unique in the table and no reseved word from SQL, best prefix all with a common 2-digit short for the app, eg. 'et_'" id="Row${row}[name]" no_lang="1" size="15"/>
|
|
<menulist>
|
|
<menupopup statustext="type of the column" id="Row${row}[type]" no_lang="1"/>
|
|
</menulist>
|
|
<menulist>
|
|
<menupopup statustext="meta-type of the column" id="Row${row}[meta]" no_lang="1" options=",,,,,,,0" class="selectboxFullWidth"/>
|
|
</menulist>
|
|
<textbox type="integer" align="center" statustext="length for char+varchar, precisions int: 2, 4, 8 and float: 4, 8" id="Row${row}[precision]"/>
|
|
<textbox type="integer" statustext="scale for float" id="Row${row}[scale]"/>
|
|
<checkbox align="center" statustext="can not have special SQL-value NULL" id="Row${row}[notnull]"/>
|
|
<checkbox align="center" statustext="Primary key for the table, gets automaticaly indexed" id="Row${row}[pk]"/>
|
|
<checkbox align="center" statustext="DB ensures that every row has a unique value in that column" id="Row${row}[uc]"/>
|
|
<checkbox align="center" statustext="an indexed column speeds up querys using that column (cost space on the disk !!!)" id="Row${row}[ix]"/>
|
|
<textbox statustext="enter '' for an empty default, nothing mean no default" id="Row${row}[default]" size="8"/>
|
|
<textbox id="Row${row}[comment]" size="20"/>
|
|
<textbox statustext="DB-specific index options (comma-sep.), eg. mysql(FULLTEXT) or mysql(100) for the indexed length of a col" id="Row${row}[options]" size="8"/>
|
|
<textbox align="center" statustext="name of other table where column is a key from" id="Row${row}[fk]" size="8"/>
|
|
<button align="center" statustext="Deletes this column" label="Delete Column" id="delete[$row]" image="delete"/>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
</template>
|
|
<template id="etemplate.db-tools.indices" template="" lang="" group="0" version="1.5.001">
|
|
<grid width="100%">
|
|
<columns>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
<column width="40"/>
|
|
<column/>
|
|
</columns>
|
|
<rows>
|
|
<row class="th">
|
|
<description value="Multicolumn Indices" span="all"/>
|
|
</row>
|
|
<row class="th">
|
|
<description align="center" value="#" no_lang="1"/>
|
|
<description value="ColumnName"/>
|
|
<description value="ColumnName"/>
|
|
<description value="ColumnName"/>
|
|
<description value="ColumnName"/>
|
|
<description value="ColumnName"/>
|
|
<description value="ColumnName"/>
|
|
<description value="ColumnName"/>
|
|
<description value="Unique"/>
|
|
<button align="center" statustext="Add a new multi-column index" label="Add Index" id="add_index" image="new"/>
|
|
</row>
|
|
<row class="row">
|
|
<description align="center" id="Index[$row][n]" no_lang="1"/>
|
|
<menulist>
|
|
<menupopup statustext="Select the indexed columns in their desired order" id="Index[$row][0]" no_lang="1" options="none" class="selectboxFullWidth"/>
|
|
</menulist>
|
|
<menulist>
|
|
<menupopup align="center" statustext="Select the indexed columns in their desired order" id="Index[$row][1]" no_lang="1" options="none" class="selectboxFullWidth"/>
|
|
</menulist>
|
|
<menulist>
|
|
<menupopup statustext="Select the indexed columns in their desired order" id="Index[$row][2]" no_lang="1" options="none" class="selectboxFullWidth"/>
|
|
</menulist>
|
|
<menulist>
|
|
<menupopup align="center" statustext="Select the indexed columns in their desired order" id="Index[$row][3]" no_lang="1" options="none" class="selectboxFullWidth"/>
|
|
</menulist>
|
|
<menulist>
|
|
<menupopup statustext="Select the indexed columns in their desired order" id="Index[$row][4]" no_lang="1" options="none" class="selectboxFullWidth"/>
|
|
</menulist>
|
|
<menulist>
|
|
<menupopup statustext="Select the indexed columns in their desired order" id="Index[$row][5]" no_lang="1" options="none" class="selectboxFullWidth"/>
|
|
</menulist>
|
|
<menulist>
|
|
<menupopup statustext="Select the indexed columns in their desired order" id="Index[$row][6]" no_lang="1" options="none" class="selectboxFullWidth"/>
|
|
</menulist>
|
|
<checkbox align="center" statustext="DB ensures that every row has a unique value in that column" id="Index[$row][unique]"/>
|
|
<button align="center" statustext="Deletes this index" label="Delete Index" id="delete_index[$row]" image="delete"/>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
</template>
|
|
<template id="etemplate.db-tools.edit" template="" lang="" group="0" version="1.7.001">
|
|
<grid width="100%">
|
|
<columns>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
<column width="1%"/>
|
|
<column/>
|
|
<column/>
|
|
<column/>
|
|
</columns>
|
|
<rows>
|
|
<row disabled="!@msg">
|
|
<description id="msg" span="all" class="redItalic"/>
|
|
<description/>
|
|
<description/>
|
|
<description/>
|
|
<description/>
|
|
<description/>
|
|
<description/>
|
|
</row>
|
|
<row>
|
|
<menulist>
|
|
<menupopup type="select-app" statustext="Select an application, (*) = uninstalled" label="Application" id="app" no_lang="1" onchange="1" options="Select one ...,,all"/>
|
|
</menulist>
|
|
<menulist>
|
|
<menupopup statustext="Select an table of the application" label="TableName" id="table_name" no_lang="1" onchange="1"/>
|
|
</menulist>
|
|
<textbox align="right" statustext="Name of table to add" id="new_table_name" size="20"/>
|
|
<button statustext="Create a new table for the application" label="Add Table" id="add_table"/>
|
|
<button statustext="Import table-definitions from existing db-table" label="Import" id="import"/>
|
|
<button disabled="true" statustext="Drop a table - this can NOT be undone" label="Drop Table" id="drop_table"/>
|
|
<button align="right" statustext="Write <app>/setup/tables_current.inc.php" label="Write Tables" id="write_tables"/>
|
|
</row>
|
|
<row>
|
|
<template id="etemplate.db-tools.cols" span="all"/>
|
|
</row>
|
|
<row>
|
|
<template id="etemplate.db-tools.indices" span="all"/>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
</template>
|
|
</overlay>
|